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."
30 enable libstdc++-v3 for building and installation"
32 --with-gxx-include-dir=DIR
33 specifies directory to put g++ header files."
35 --enable-checking[=LIST]
36 enable expensive run-time checks. With LIST,
37 enable only specific categories of checks.
38 Categories are: misc,tree,rtl,gc,gcac; default
41 --disable-cpp don't provide a user-visible C preprocessor."
43 --with-cpp-install-dir=DIR
44 install the user visible C preprocessor in DIR
45 (relative to PREFIX) as well as PREFIX/bin."
47 --enable-c-cpplib link cpplib directly into C and C++ compilers
48 (HIGHLY EXPERIMENTAL)."
50 --enable-c-mbchar Enable multibyte characters for C and C++."
52 --enable-threads enable thread usage for target GCC.
53 --enable-threads=LIB use LIB thread package for target GCC."
55 --enable-objc-gc enable the use of Boehm's garbage collector with
56 the GNU Objective-C runtime."
58 --with-dwarf2 force the default debug format to be DWARF2."
60 --disable-shared don't provide a shared libgcc."
62 --enable-nls use Native Language Support (default)"
64 --disable-nls do not use Native Language Support"
66 --with-included-gettext use the GNU gettext library included here"
68 --with-catgets use catgets functions if available"
70 --disable-win32-registry
71 Disable lookup of installation paths in the
72 Registry on Windows hosts.
73 --enable-win32-registry Enable registry lookup (default).
74 --enable-win32-registry=KEY
75 Use KEY instead of GCC version as the last portion
78 --with-gc={simple,page} Choose the garbage collection mechanism to use
81 --with-system-zlib use installed libz"
84 select the new abi for g++. You must select an ABI
85 at configuration time, so that the correct runtime
86 support is built. You cannot mix ABIs."
88 --enable-maintainer-mode enable make rules and dependencies not useful
89 (and sometimes confusing) to the casual installer"
91 # Initialize some variables set by options.
92 # The variables have the same names as the options, with
93 # dashes changed to underlines.
95 cache_file=./config.cache
104 program_transform_name=s,x,x,
112 bindir='${exec_prefix}/bin'
113 sbindir='${exec_prefix}/sbin'
114 libexecdir='${exec_prefix}/libexec'
115 datadir='${prefix}/share'
116 sysconfdir='${prefix}/etc'
117 sharedstatedir='${prefix}/com'
118 localstatedir='${prefix}/var'
119 libdir='${exec_prefix}/lib'
120 includedir='${prefix}/include'
121 oldincludedir='/usr/include'
122 infodir='${prefix}/info'
123 mandir='${prefix}/man'
125 # Initialize some other variables.
128 SHELL=${CONFIG_SHELL-/bin/sh}
129 # Maximum number of lines to put in a shell here document.
136 # If the previous option needs an argument, assign it.
137 if test -n "$ac_prev"; then
138 eval "$ac_prev=\$ac_option"
144 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
148 # Accept the important Cygnus configure options, so we can diagnose typos.
152 -bindir | --bindir | --bindi | --bind | --bin | --bi)
154 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
155 bindir="$ac_optarg" ;;
157 -build | --build | --buil | --bui | --bu)
159 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
160 build="$ac_optarg" ;;
162 -cache-file | --cache-file | --cache-fil | --cache-fi \
163 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
164 ac_prev=cache_file ;;
165 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
166 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
167 cache_file="$ac_optarg" ;;
169 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173 datadir="$ac_optarg" ;;
175 -disable-* | --disable-*)
176 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}=no" ;;
184 -enable-* | --enable-*)
185 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
195 eval "enable_${ac_feature}='$ac_optarg'" ;;
197 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
198 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
199 | --exec | --exe | --ex)
200 ac_prev=exec_prefix ;;
201 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
202 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
203 | --exec=* | --exe=* | --ex=*)
204 exec_prefix="$ac_optarg" ;;
206 -gas | --gas | --ga | --g)
207 # Obsolete; use --with-gas.
210 -help | --help | --hel | --he)
211 # Omit some internal or obsolete options to make the list less imposing.
212 # This message is too long to be a string in the A/UX 3.1 sh.
214 Usage: configure [options] [host]
215 Options: [defaults in brackets after descriptions]
217 --cache-file=FILE cache test results in FILE
218 --help print this message
219 --no-create do not create output files
220 --quiet, --silent do not print \`checking...' messages
221 --version print the version of autoconf that created configure
222 Directory and file names:
223 --prefix=PREFIX install architecture-independent files in PREFIX
225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 --bindir=DIR user executables in DIR [EPREFIX/bin]
228 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
229 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
230 --datadir=DIR read-only architecture-independent data in DIR
232 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
233 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
236 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
237 --includedir=DIR C header files in DIR [PREFIX/include]
238 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
239 --infodir=DIR info documentation in DIR [PREFIX/info]
240 --mandir=DIR man documentation in DIR [PREFIX/man]
241 --srcdir=DIR find the sources in DIR [configure dir or ..]
242 --program-prefix=PREFIX prepend PREFIX to installed program names
243 --program-suffix=SUFFIX append SUFFIX to installed program names
244 --program-transform-name=PROGRAM
245 run sed PROGRAM on installed program names
249 --build=BUILD configure for building on BUILD [BUILD=HOST]
250 --host=HOST configure for HOST [guessed]
251 --target=TARGET configure for TARGET [TARGET=HOST]
252 Features and packages:
253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
255 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
256 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
257 --x-includes=DIR X include files are in DIR
258 --x-libraries=DIR X library files are in DIR
260 if test -n "$ac_help"; then
261 echo "--enable and --with options recognized:$ac_help"
265 -host | --host | --hos | --ho)
267 -host=* | --host=* | --hos=* | --ho=*)
270 -includedir | --includedir | --includedi | --included | --include \
271 | --includ | --inclu | --incl | --inc)
272 ac_prev=includedir ;;
273 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
274 | --includ=* | --inclu=* | --incl=* | --inc=*)
275 includedir="$ac_optarg" ;;
277 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
280 infodir="$ac_optarg" ;;
282 -libdir | --libdir | --libdi | --libd)
284 -libdir=* | --libdir=* | --libdi=* | --libd=*)
285 libdir="$ac_optarg" ;;
287 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
288 | --libexe | --libex | --libe)
289 ac_prev=libexecdir ;;
290 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
291 | --libexe=* | --libex=* | --libe=*)
292 libexecdir="$ac_optarg" ;;
294 -localstatedir | --localstatedir | --localstatedi | --localstated \
295 | --localstate | --localstat | --localsta | --localst \
296 | --locals | --local | --loca | --loc | --lo)
297 ac_prev=localstatedir ;;
298 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
299 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
300 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
301 localstatedir="$ac_optarg" ;;
303 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
306 mandir="$ac_optarg" ;;
309 # Obsolete; use --without-fp.
312 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
320 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
321 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
322 | --oldin | --oldi | --old | --ol | --o)
323 ac_prev=oldincludedir ;;
324 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
325 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
326 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
327 oldincludedir="$ac_optarg" ;;
329 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
332 prefix="$ac_optarg" ;;
334 -program-prefix | --program-prefix | --program-prefi | --program-pref \
335 | --program-pre | --program-pr | --program-p)
336 ac_prev=program_prefix ;;
337 -program-prefix=* | --program-prefix=* | --program-prefi=* \
338 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
339 program_prefix="$ac_optarg" ;;
341 -program-suffix | --program-suffix | --program-suffi | --program-suff \
342 | --program-suf | --program-su | --program-s)
343 ac_prev=program_suffix ;;
344 -program-suffix=* | --program-suffix=* | --program-suffi=* \
345 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
346 program_suffix="$ac_optarg" ;;
348 -program-transform-name | --program-transform-name \
349 | --program-transform-nam | --program-transform-na \
350 | --program-transform-n | --program-transform- \
351 | --program-transform | --program-transfor \
352 | --program-transfo | --program-transf \
353 | --program-trans | --program-tran \
354 | --progr-tra | --program-tr | --program-t)
355 ac_prev=program_transform_name ;;
356 -program-transform-name=* | --program-transform-name=* \
357 | --program-transform-nam=* | --program-transform-na=* \
358 | --program-transform-n=* | --program-transform-=* \
359 | --program-transform=* | --program-transfor=* \
360 | --program-transfo=* | --program-transf=* \
361 | --program-trans=* | --program-tran=* \
362 | --progr-tra=* | --program-tr=* | --program-t=*)
363 program_transform_name="$ac_optarg" ;;
365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
366 | -silent | --silent | --silen | --sile | --sil)
369 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 sbindir="$ac_optarg" ;;
375 -sharedstatedir | --sharedstatedir | --sharedstatedi \
376 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
377 | --sharedst | --shareds | --shared | --share | --shar \
379 ac_prev=sharedstatedir ;;
380 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
381 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
382 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 sharedstatedir="$ac_optarg" ;;
386 -site | --site | --sit)
388 -site=* | --site=* | --sit=*)
391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
394 srcdir="$ac_optarg" ;;
396 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
397 | --syscon | --sysco | --sysc | --sys | --sy)
398 ac_prev=sysconfdir ;;
399 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
400 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
401 sysconfdir="$ac_optarg" ;;
403 -target | --target | --targe | --targ | --tar | --ta | --t)
405 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
406 target="$ac_optarg" ;;
408 -v | -verbose | --verbose | --verbos | --verbo | --verb)
411 -version | --version | --versio | --versi | --vers)
412 echo "configure generated by autoconf version 2.13"
416 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}='$ac_optarg'" ;;
428 -without-* | --without-*)
429 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}=no" ;;
438 # Obsolete; use --with-x.
441 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
442 | --x-incl | --x-inc | --x-in | --x-i)
443 ac_prev=x_includes ;;
444 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
445 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
446 x_includes="$ac_optarg" ;;
448 -x-libraries | --x-libraries | --x-librarie | --x-librari \
449 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
450 ac_prev=x_libraries ;;
451 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
452 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
453 x_libraries="$ac_optarg" ;;
455 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
459 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
460 echo "configure: warning: $ac_option: invalid host type" 1>&2
462 if test "x$nonopt" != xNONE; then
463 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
471 if test -n "$ac_prev"; then
472 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477 # File descriptor usage:
480 # 2 errors and warnings
481 # 3 some systems may open it to /dev/tty
482 # 4 used on the Kubota Titan
483 # 6 checking for... messages and results
484 # 5 compiler messages saved in config.log
485 if test "$silent" = yes; then
493 This file contains any messages produced by compilers while
494 running configure, to aid debugging if configure makes a mistake.
497 # Strip out --no-create and --no-recursion so they do not pile up.
498 # Also quote any args containing shell metacharacters.
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c) ;;
505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
507 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
508 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
509 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
514 # Only set these to C if already set. These must not be set unconditionally
515 # because not all systems understand e.g. LANG=C (notably SCO).
516 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
517 # Non-C LC_CTYPE values break the ctype check.
518 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
519 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
520 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
521 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
524 rm -rf conftest* confdefs.h
525 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
528 # A filename unique to this package, relative to the directory that
529 # configure is in, which we can look for to find out if srcdir is correct.
530 ac_unique_file=tree.c
532 # Find the source files, if location was not specified.
533 if test -z "$srcdir"; then
534 ac_srcdir_defaulted=yes
535 # Try the directory containing this script, then its parent.
537 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540 if test ! -r $srcdir/$ac_unique_file; then
544 ac_srcdir_defaulted=no
546 if test ! -r $srcdir/$ac_unique_file; then
547 if test "$ac_srcdir_defaulted" = yes; then
548 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
553 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555 # Prefer explicitly selected file to automatically selected ones.
556 if test -z "$CONFIG_SITE"; then
557 if test "x$prefix" != xNONE; then
558 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
563 for ac_site_file in $CONFIG_SITE; do
564 if test -r "$ac_site_file"; then
565 echo "loading site script $ac_site_file"
570 if test -r "$cache_file"; then
571 echo "loading cache $cache_file"
574 echo "creating cache $cache_file"
579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
580 ac_cpp='$CPP $CPPFLAGS'
581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
583 cross_compiling=$ac_cv_prog_cc_cross
587 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
588 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
589 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
596 ac_n= ac_c='\c' ac_t=
604 symbolic_link='ln -s'
607 # Check for bogus environment variables.
608 # Test if LIBRARY_PATH contains the notation for the current directory
609 # since this would lead to problems installing/building glibc.
610 # LIBRARY_PATH contains the current directory if one of the following
612 # - one of the terminals (":" and ";") is the first or last sign
613 # - two terminals occur directly after each other
614 # - the path contains an element with a dot in it
615 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
616 echo "configure:617: checking LIBRARY_PATH variable" >&5
617 case ${LIBRARY_PATH} in
618 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
619 library_path_setting="contains current directory"
622 library_path_setting="ok"
625 echo "$ac_t""$library_path_setting" 1>&6
626 if test "$library_path_setting" != "ok"; then
627 { echo "configure: error:
628 *** LIBRARY_PATH shouldn't contain the current directory when
629 *** building gcc. Please change the environment variable
630 *** and run configure again." 1>&2; exit 1; }
633 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
634 # since this would lead to problems installing/building glibc.
635 # GCC_EXEC_PREFIX contains the current directory if one of the following
637 # - one of the terminals (":" and ";") is the first or last sign
638 # - two terminals occur directly after each other
639 # - the path contains an element with a dot in it
640 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
641 echo "configure:642: checking GCC_EXEC_PREFIX variable" >&5
642 case ${GCC_EXEC_PREFIX} in
643 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
644 gcc_exec_prefix_setting="contains current directory"
647 gcc_exec_prefix_setting="ok"
650 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
651 if test "$gcc_exec_prefix_setting" != "ok"; then
652 { echo "configure: error:
653 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
654 *** building gcc. Please change the environment variable
655 *** and run configure again." 1>&2; exit 1; }
658 # Check for additional parameters
661 # Check whether --with-gnu-ld or --without-gnu-ld was given.
662 if test "${with_gnu_ld+set}" = set; then
663 withval="$with_gnu_ld"
664 gnu_ld_flag="$with_gnu_ld"
670 # With pre-defined ld
671 # Check whether --with-ld or --without-ld was given.
672 if test "${with_ld+set}" = set; then
674 DEFAULT_LINKER="$with_ld"
677 if test x"${DEFAULT_LINKER+set}" = x"set"; then
678 if test ! -x "$DEFAULT_LINKER"; then
679 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
680 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
683 cat >> confdefs.h <<EOF
684 #define DEFAULT_LINKER "$DEFAULT_LINKER"
690 # Check whether --with-gnu-as or --without-gnu-as was given.
691 if test "${with_gnu_as+set}" = set; then
692 withval="$with_gnu_as"
693 gas_flag="$with_gnu_as"
699 # Check whether --with-as or --without-as was given.
700 if test "${with_as+set}" = set; then
702 DEFAULT_ASSEMBLER="$with_as"
705 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
706 if test ! -x "$DEFAULT_ASSEMBLER"; then
707 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
708 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
711 cat >> confdefs.h <<EOF
712 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
718 # Check whether --with-stabs or --without-stabs was given.
719 if test "${with_stabs+set}" = set; then
720 withval="$with_stabs"
728 # Check whether --with-elf or --without-elf was given.
729 if test "${with_elf+set}" = set; then
737 # Specify the local prefix
739 # Check whether --with-local-prefix or --without-local-prefix was given.
740 if test "${with_local_prefix+set}" = set; then
741 withval="$with_local_prefix"
743 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
745 *) local_prefix=$with_local_prefix ;;
750 # Default local prefix if it is empty
751 if test x$local_prefix = x; then
752 local_prefix=/usr/local
755 # Build a new-libstdc++ system (ie libstdc++-v3)
756 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
757 echo "configure:758: checking for libstdc++ to install" >&5
758 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
759 if test "${enable_libstdcxx_v3+set}" = set; then
760 enableval="$enable_libstdcxx_v3"
761 enable_libstdcxx_v3="$enableval"
763 enable_libstdcxx_v3=yes
767 if test x$enable_libstdcxx_v3 = xyes; then
768 echo "$ac_t""v3" 1>&6
772 echo "$ac_t""v2" 1>&6
777 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
778 # passed in by the toplevel make and thus we'd get different behavior
779 # depending on where we built the sources.
781 # Specify the g++ header file directory
782 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
783 if test "${with_gxx_include_dir+set}" = set; then
784 withval="$with_gxx_include_dir"
786 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
788 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
793 if test x${gcc_gxx_include_dir} = x; then
794 if test x${enable_version_specific_runtime_libs} = xyes; then
795 gcc_gxx_include_dir='${libsubdir}/include/g++'
797 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
798 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
802 # Enable expensive internal checks
803 # Check whether --enable-checking or --disable-checking was given.
804 if test "${enable_checking+set}" = set; then
805 enableval="$enable_checking"
810 ac_gc_always_collect=
811 case "${enableval}" in
812 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
814 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
815 set fnord $enableval; shift
820 misc) ac_checking=1 ;;
821 tree) ac_tree_checking=1 ;;
822 rtl) ac_rtl_checking=1 ;;
823 gc) ac_gc_checking=1 ;;
824 gcac) ac_gc_always_collect=1 ;;
825 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
832 # Enable some checks by default for development versions of GCC
833 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
836 if test x$ac_checking != x ; then
837 cat >> confdefs.h <<\EOF
838 #define ENABLE_CHECKING 1
842 if test x$ac_tree_checking != x ; then
843 cat >> confdefs.h <<\EOF
844 #define ENABLE_TREE_CHECKING 1
848 if test x$ac_rtl_checking != x ; then
849 cat >> confdefs.h <<\EOF
850 #define ENABLE_RTL_CHECKING 1
854 if test x$ac_gc_checking != x ; then
855 cat >> confdefs.h <<\EOF
856 #define ENABLE_GC_CHECKING 1
860 if test x$ac_gc_always_collect != x ; then
861 cat >> confdefs.h <<\EOF
862 #define ENABLE_GC_ALWAYS_COLLECT 1
868 # Check whether --enable-cpp or --disable-cpp was given.
869 if test "${enable_cpp+set}" = set; then
870 enableval="$enable_cpp"
877 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
878 if test "${with_cpp_install_dir+set}" = set; then
879 withval="$with_cpp_install_dir"
880 if test x$withval = xyes; then
881 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
882 elif test x$withval != xno; then
883 cpp_install_dir=$withval
888 # Link cpplib into the compiler proper, for C/C++/ObjC. Defaults to on.
889 maybe_cpplib=libcpp.a
890 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
891 if test "${enable_c_cpplib+set}" = set; then
892 enableval="$enable_c_cpplib"
893 if test x$enable_c_cpplib != xyes; then
899 if test x$maybe_cpplib != x ; then
900 cat >> confdefs.h <<\EOF
907 # Enable Multibyte Characters for C/C++
908 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
909 if test "${enable_c_mbchar+set}" = set; then
910 enableval="$enable_c_mbchar"
911 if test x$enable_c_mbchar != xno; then
912 cat >> confdefs.h <<\EOF
913 #define MULTIBYTE_CHARS 1
921 # Pass with no value to take the default
922 # Pass with a value to specify a thread package
923 # Check whether --enable-threads or --disable-threads was given.
924 if test "${enable_threads+set}" = set; then
925 enableval="$enable_threads"
932 enable_threads_flag=$enable_threads
933 # Check if a valid thread package
934 case x${enable_threads_flag} in
937 target_thread_file='single'
941 target_thread_file=''
943 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
944 xsolaris | xwin32 | xdce | xvxworks | xaix)
945 target_thread_file=$enable_threads_flag
948 echo "$enable_threads is an unknown thread package" 1>&2
953 # Check whether --enable-objc-gc or --disable-objc-gc was given.
954 if test "${enable_objc_gc+set}" = set; then
955 enableval="$enable_objc_gc"
956 if test x$enable_objc_gc = xno; then
966 # Check whether --with-dwarf2 or --without-dwarf2 was given.
967 if test "${with_dwarf2+set}" = set; then
968 withval="$with_dwarf2"
969 dwarf2="$with_dwarf2"
975 # Check whether --enable-shared or --disable-shared was given.
976 if test "${enable_shared+set}" = set; then
977 enableval="$enable_shared"
985 # Determine the host, build, and target systems
987 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
988 if test -f $ac_dir/install-sh; then
990 ac_install_sh="$ac_aux_dir/install-sh -c"
992 elif test -f $ac_dir/install.sh; then
994 ac_install_sh="$ac_aux_dir/install.sh -c"
998 if test -z "$ac_aux_dir"; then
999 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1001 ac_config_guess=$ac_aux_dir/config.guess
1002 ac_config_sub=$ac_aux_dir/config.sub
1003 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1006 # Do some error checking and defaulting for the host and target type.
1008 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1011 # 1. You are not allowed to specify --host, --target, and nonopt at the
1013 # 2. Host defaults to nonopt.
1014 # 3. If nonopt is not specified, then host defaults to the current host,
1015 # as determined by config.guess.
1016 # 4. Target and build default to nonopt.
1017 # 5. If nonopt is not specified, then target and build default to host.
1019 # The aliases save the names the user supplied, while $host etc.
1020 # will get canonicalized.
1021 case $host---$target---$nonopt in
1022 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1023 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1027 # Make sure we can run config.sub.
1028 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1029 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1032 echo $ac_n "checking host system type""... $ac_c" 1>&6
1033 echo "configure:1034: checking host system type" >&5
1036 case "$host_alias" in
1040 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1041 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1043 *) host_alias=$nonopt ;;
1047 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1048 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$host" 1>&6
1053 echo $ac_n "checking target system type""... $ac_c" 1>&6
1054 echo "configure:1055: checking target system type" >&5
1056 target_alias=$target
1057 case "$target_alias" in
1060 NONE) target_alias=$host_alias ;;
1061 *) target_alias=$nonopt ;;
1065 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1066 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1067 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1068 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069 echo "$ac_t""$target" 1>&6
1071 echo $ac_n "checking build system type""... $ac_c" 1>&6
1072 echo "configure:1073: checking build system type" >&5
1075 case "$build_alias" in
1078 NONE) build_alias=$host_alias ;;
1079 *) build_alias=$nonopt ;;
1083 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1084 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1085 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1086 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1087 echo "$ac_t""$build" 1>&6
1089 test "$host_alias" != "$target_alias" &&
1090 test "$program_prefix$program_suffix$program_transform_name" = \
1092 program_prefix=${target_alias}-
1095 # Find the native compiler
1096 # Extract the first word of "gcc", so it can be a program name with args.
1097 set dummy gcc; ac_word=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 if test -n "$CC"; then
1104 ac_cv_prog_CC="$CC" # Let the user override the test.
1106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1108 for ac_dir in $ac_dummy; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1119 if test -n "$CC"; then
1120 echo "$ac_t""$CC" 1>&6
1122 echo "$ac_t""no" 1>&6
1125 if test -z "$CC"; then
1126 # Extract the first word of "cc", so it can be a program name with args.
1127 set dummy cc; ac_word=$2
1128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_word" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 if test -n "$CC"; then
1134 ac_cv_prog_CC="$CC" # Let the user override the test.
1136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1139 for ac_dir in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1142 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1143 ac_prog_rejected=yes
1151 if test $ac_prog_rejected = yes; then
1152 # We found a bogon in the path, so make sure we never use it.
1153 set dummy $ac_cv_prog_CC
1155 if test $# -gt 0; then
1156 # We chose a different compiler from the bogus one.
1157 # However, it has the same basename, so the bogon will be chosen
1158 # first if we set CC to just the basename; use the full file name.
1160 set dummy "$ac_dir/$ac_word" "$@"
1168 if test -n "$CC"; then
1169 echo "$ac_t""$CC" 1>&6
1171 echo "$ac_t""no" 1>&6
1174 if test -z "$CC"; then
1175 case "`uname -s`" in
1177 # Extract the first word of "cl", so it can be a program name with args.
1178 set dummy cl; ac_word=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$CC"; then
1185 ac_cv_prog_CC="$CC" # Let the user override the test.
1187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1189 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 if test -f $ac_dir/$ac_word; then
1200 if test -n "$CC"; then
1201 echo "$ac_t""$CC" 1>&6
1203 echo "$ac_t""no" 1>&6
1208 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1211 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1212 echo "configure:1213: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1216 ac_cpp='$CPP $CPPFLAGS'
1217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1219 cross_compiling=$ac_cv_prog_cc_cross
1221 cat > conftest.$ac_ext << EOF
1223 #line 1224 "configure"
1224 #include "confdefs.h"
1228 if { (eval echo configure:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1229 ac_cv_prog_cc_works=yes
1230 # If we can't run a trivial program, we are probably using a cross compiler.
1231 if (./conftest; exit) 2>/dev/null; then
1232 ac_cv_prog_cc_cross=no
1234 ac_cv_prog_cc_cross=yes
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1239 ac_cv_prog_cc_works=no
1243 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1246 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1247 cross_compiling=$ac_cv_prog_cc_cross
1249 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1250 if test $ac_cv_prog_cc_works = no; then
1251 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1253 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1254 echo "configure:1255: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1255 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1256 cross_compiling=$ac_cv_prog_cc_cross
1258 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether we are using GNU C" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 cat > conftest.c <<EOF
1268 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1275 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1277 if test $ac_cv_prog_gcc = yes; then
1283 ac_test_CFLAGS="${CFLAGS+set}"
1284 ac_save_CFLAGS="$CFLAGS"
1286 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1287 echo "configure:1288: checking whether ${CC-cc} accepts -g" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 echo 'void f(){}' > conftest.c
1292 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1301 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1302 if test "$ac_test_CFLAGS" = set; then
1303 CFLAGS="$ac_save_CFLAGS"
1304 elif test $ac_cv_prog_cc_g = yes; then
1305 if test "$GCC" = yes; then
1311 if test "$GCC" = yes; then
1318 if test "x$CC" != xcc; then
1319 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether $CC and cc understand -c and -o together" >&5
1322 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1323 echo "configure:1324: checking whether cc understands -c and -o together" >&5
1325 set dummy $CC; ac_cc="`echo $2 |
1326 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1327 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 echo 'foo(){}' > conftest.c
1331 # Make sure it works both with $CC and with simple cc.
1332 # We do the test twice because some compilers refuse to overwrite an
1333 # existing .o file with -o, though they will create one.
1334 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1335 if { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1336 test -f conftest.o && { (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1338 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1339 if test "x$CC" != xcc; then
1340 # Test first that cc exists at all.
1341 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1342 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1343 if { (eval echo configure:1344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1344 test -f conftest.o && { (eval echo configure:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1349 # cc exists but doesn't like -o.
1350 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1360 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1363 echo "$ac_t""no" 1>&6
1364 cat >> confdefs.h <<\EOF
1365 #define NO_MINUS_C_MINUS_O 1
1370 # autoconf is lame and doesn't give us any substitution variable for this.
1371 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1372 NO_MINUS_C_MINUS_O=yes
1374 OUTPUT_OPTION='-o $@'
1379 echo $ac_n "checking for long double""... $ac_c" 1>&6
1380 echo "configure:1381: checking for long double" >&5
1381 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 if test "$GCC" = yes; then
1385 gcc_cv_c_long_double=yes
1387 cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1392 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1393 long double foo = 0.0;
1394 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1395 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1398 if { (eval echo configure:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 gcc_cv_c_long_double=yes
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 gcc_cv_c_long_double=no
1411 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1412 if test $gcc_cv_c_long_double = yes; then
1413 cat >> confdefs.h <<\EOF
1414 #define HAVE_LONG_DOUBLE 1
1420 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1422 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 save_CFLAGS="$CFLAGS"
1426 CFLAGS="-Wno-long-long"
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1435 if { (eval echo configure:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1437 ac_cv_prog_cc_no_long_long=yes
1439 echo "configure: failed program was:" >&5
1440 cat conftest.$ac_ext >&5
1442 ac_cv_prog_cc_no_long_long=no
1445 CFLAGS="$save_CFLAGS"
1448 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1450 if test $ac_cv_prog_cc_no_long_long = yes; then
1451 strict1_warn="-pedantic -Wno-long-long"
1455 # If the native compiler is GCC, we can enable warnings even in stage1.
1456 # That's useful for people building cross-compilers, or just running a
1459 if test "x$GCC" = "xyes"; then
1460 warn_cflags='$(GCC_WARN_CFLAGS)'
1464 # Stage specific cflags for build.
1468 if test x$GCC = xyes
1470 stage1_cflags="-Wa,-J"
1478 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1479 echo "configure:1480: checking whether ${MAKE-make} sets \${MAKE}" >&5
1480 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1481 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftestmake <<\EOF
1486 @echo 'ac_maketemp="${MAKE}"'
1488 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1489 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1490 if test -n "$ac_maketemp"; then
1491 eval ac_cv_prog_make_${ac_make}_set=yes
1493 eval ac_cv_prog_make_${ac_make}_set=no
1497 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1498 echo "$ac_t""yes" 1>&6
1501 echo "$ac_t""no" 1>&6
1502 SET_MAKE="MAKE=${MAKE-make}"
1506 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether a default assembler was specified" >&5
1508 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1509 if test x"$gas_flag" = x"no"; then
1510 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1512 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1515 echo "$ac_t""no" 1>&6
1518 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1519 echo "configure:1520: checking whether a default linker was specified" >&5
1520 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1521 if test x"$gnu_ld_flag" = x"no"; then
1522 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1524 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1527 echo "$ac_t""no" 1>&6
1530 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1531 echo "configure:1532: checking for GNU C library" >&5
1532 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 #include <features.h>
1541 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1542 #error Not a GNU C library system
1546 if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1550 echo "configure: failed program was:" >&5
1551 cat conftest.$ac_ext >&5
1558 echo "$ac_t""$gcc_cv_glibc" 1>&6
1559 if test $gcc_cv_glibc = yes; then
1560 cat >> confdefs.h <<\EOF
1561 #define _GNU_SOURCE 1
1566 echo $ac_n "checking for inline""... $ac_c" 1>&6
1567 echo "configure:1568: checking for inline" >&5
1568 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1572 for ac_kw in inline __inline__ __inline; do
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1578 } int $ac_kw foo() {
1581 if { (eval echo configure:1582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1583 ac_cv_c_inline=$ac_kw; break
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1593 echo "$ac_t""$ac_cv_c_inline" 1>&6
1594 case "$ac_cv_c_inline" in
1596 no) cat >> confdefs.h <<\EOF
1600 *) cat >> confdefs.h <<EOF
1601 #define inline $ac_cv_c_inline
1607 # Find some useful tools
1608 for ac_prog in mawk gawk nawk awk
1610 # Extract the first word of "$ac_prog", so it can be a program name with args.
1611 set dummy $ac_prog; ac_word=$2
1612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1613 echo "configure:1614: checking for $ac_word" >&5
1614 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 if test -n "$AWK"; then
1618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1622 for ac_dir in $ac_dummy; do
1623 test -z "$ac_dir" && ac_dir=.
1624 if test -f $ac_dir/$ac_word; then
1625 ac_cv_prog_AWK="$ac_prog"
1632 AWK="$ac_cv_prog_AWK"
1633 if test -n "$AWK"; then
1634 echo "$ac_t""$AWK" 1>&6
1636 echo "$ac_t""no" 1>&6
1639 test -n "$AWK" && break
1642 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1643 echo "configure:1644: checking whether ln works" >&5
1644 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 rm -f conftestdata_t
1648 echo >conftestdata_f
1649 if ln conftestdata_f conftestdata_t 2>/dev/null
1653 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1655 gcc_cv_prog_LN="ln -s"
1660 rm -f conftestdata_f conftestdata_t
1663 LN="$gcc_cv_prog_LN"
1664 if test "$gcc_cv_prog_LN" = "ln"; then
1665 echo "$ac_t""yes" 1>&6
1667 if test "$gcc_cv_prog_LN" = "ln -s"; then
1668 echo "$ac_t""no, using ln -s" 1>&6
1670 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1674 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether ln -s works" >&5
1676 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 rm -f conftestdata_t
1680 echo >conftestdata_f
1681 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1683 gcc_cv_prog_LN_S="ln -s"
1685 if ln conftestdata_f conftestdata_t 2>/dev/null
1692 rm -f conftestdata_f conftestdata_t
1695 LN_S="$gcc_cv_prog_LN_S"
1696 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1697 echo "$ac_t""yes" 1>&6
1699 if test "$gcc_cv_prog_LN_S" = "ln"; then
1700 echo "$ac_t""no, using ln" 1>&6
1702 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1706 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1707 echo "configure:1708: checking for volatile" >&5
1708 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1719 if { (eval echo configure:1720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1721 gcc_cv_c_volatile=yes
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1726 gcc_cv_c_volatile=no
1731 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1732 if test $gcc_cv_c_volatile = yes ; then
1733 cat >> confdefs.h <<\EOF
1734 #define HAVE_VOLATILE 1
1739 # Extract the first word of "ranlib", so it can be a program name with args.
1740 set dummy ranlib; ac_word=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 if test -n "$RANLIB"; then
1747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1751 for ac_dir in $ac_dummy; do
1752 test -z "$ac_dir" && ac_dir=.
1753 if test -f $ac_dir/$ac_word; then
1754 ac_cv_prog_RANLIB="ranlib"
1759 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1762 RANLIB="$ac_cv_prog_RANLIB"
1763 if test -n "$RANLIB"; then
1764 echo "$ac_t""$RANLIB" 1>&6
1766 echo "$ac_t""no" 1>&6
1769 # Find a good install program. We prefer a C program (faster),
1770 # so one script is as good as another. But avoid the broken or
1771 # incompatible versions:
1772 # SysV /etc/install, /usr/sbin/install
1773 # SunOS /usr/etc/install
1774 # IRIX /sbin/install
1776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1778 # ./install, which can be erroneously created by make from ./install.sh.
1779 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1780 echo "configure:1781: checking for a BSD compatible install" >&5
1781 if test -z "$INSTALL"; then
1782 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1786 for ac_dir in $PATH; do
1787 # Account for people who put trailing slashes in PATH elements.
1789 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1791 # OSF1 and SCO ODT 3.0 have their own names for install.
1792 for ac_prog in ginstall scoinst install; do
1793 if test -f $ac_dir/$ac_prog; then
1794 if test $ac_prog = install &&
1795 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1796 # AIX install. It has an incompatible calling convention.
1797 # OSF/1 installbsd also uses dspmsg, but is usable.
1800 ac_cv_path_install="$ac_dir/$ac_prog -c"
1811 if test "${ac_cv_path_install+set}" = set; then
1812 INSTALL="$ac_cv_path_install"
1814 # As a last resort, use the slow shell script. We don't cache a
1815 # path for INSTALL within a source directory, because that will
1816 # break other packages using the cache if that directory is
1817 # removed, or if the path is relative.
1818 INSTALL="$ac_install_sh"
1821 echo "$ac_t""$INSTALL" 1>&6
1823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1824 # It thinks the first close brace ends the variable substitution.
1825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1827 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1830 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1831 echo "configure:1832: checking how to run the C preprocessor" >&5
1832 # On Suns, sometimes $CPP names a directory.
1833 if test -n "$CPP" && test -d "$CPP"; then
1836 if test -z "$CPP"; then
1837 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 # This must be in double quotes, not single quotes, because CPP may get
1841 # substituted into the Makefile and "${CC-cc}" will confuse make.
1843 # On the NeXT, cc -E runs the code through the compiler's parser,
1844 # not just through cpp.
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 CPP="${CC-cc} -E -traditional-cpp"
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1878 CPP="${CC-cc} -nologo -E"
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1902 ac_cv_prog_CPP="$CPP"
1904 CPP="$ac_cv_prog_CPP"
1906 ac_cv_prog_CPP="$CPP"
1908 echo "$ac_t""$CPP" 1>&6
1910 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1911 echo "configure:1912: checking for ANSI C header files" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924 { (eval echo configure:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1926 if test -z "$ac_err"; then
1928 ac_cv_header_stdc=yes
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1934 ac_cv_header_stdc=no
1938 if test $ac_cv_header_stdc = yes; then
1939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1946 egrep "memchr" >/dev/null 2>&1; then
1950 ac_cv_header_stdc=no
1956 if test $ac_cv_header_stdc = yes; then
1957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1964 egrep "free" >/dev/null 2>&1; then
1968 ac_cv_header_stdc=no
1974 if test $ac_cv_header_stdc = yes; then
1975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1976 if test "$cross_compiling" = yes; then
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1983 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1984 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1986 int main () { int i; for (i = 0; i < 256; i++)
1987 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1991 if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1998 ac_cv_header_stdc=no
2006 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2007 if test $ac_cv_header_stdc = yes; then
2008 cat >> confdefs.h <<\EOF
2009 #define STDC_HEADERS 1
2014 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether time.h and sys/time.h may both be included" >&5
2016 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 cat > conftest.$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2022 #include <sys/types.h>
2023 #include <sys/time.h>
2029 if { (eval echo configure:2030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2031 ac_cv_header_time=yes
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2036 ac_cv_header_time=no
2041 echo "$ac_t""$ac_cv_header_time" 1>&6
2042 if test $ac_cv_header_time = yes; then
2043 cat >> confdefs.h <<\EOF
2044 #define TIME_WITH_SYS_TIME 1
2049 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether string.h and strings.h may both be included" >&5
2051 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2058 #include <strings.h>
2063 if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2065 gcc_cv_header_string=yes
2067 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 gcc_cv_header_string=no
2075 echo "$ac_t""$gcc_cv_header_string" 1>&6
2076 if test $gcc_cv_header_string = yes; then
2077 cat >> confdefs.h <<\EOF
2078 #define STRING_WITH_STRINGS 1
2083 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2084 echo "configure:2085: checking for sys/wait.h that is POSIX.1 compatible" >&5
2085 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+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"
2091 #include <sys/types.h>
2092 #include <sys/wait.h>
2094 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2097 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2102 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2105 if { (eval echo configure:2106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2107 ac_cv_header_sys_wait_h=yes
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 ac_cv_header_sys_wait_h=no
2117 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2118 if test $ac_cv_header_sys_wait_h = yes; then
2119 cat >> confdefs.h <<\EOF
2120 #define HAVE_SYS_WAIT_H 1
2125 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2126 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2127 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2128 direct.h malloc.h langinfo.h iconv.h
2130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_hdr" >&5
2133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2142 { (eval echo configure:2143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2144 if test -z "$ac_err"; then
2146 eval "ac_cv_header_$ac_safe=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2152 eval "ac_cv_header_$ac_safe=no"
2156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2159 cat >> confdefs.h <<EOF
2160 #define $ac_tr_hdr 1
2164 echo "$ac_t""no" 1>&6
2169 # Check for thread headers.
2170 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2171 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2172 echo "configure:2173: checking for thread.h" >&5
2173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2184 if test -z "$ac_err"; then
2186 eval "ac_cv_header_$ac_safe=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 eval "ac_cv_header_$ac_safe=no"
2196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2200 echo "$ac_t""no" 1>&6
2204 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2205 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2206 echo "configure:2207: checking for pthread.h" >&5
2207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 #include <pthread.h>
2215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2216 { (eval echo configure:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2218 if test -z "$ac_err"; then
2220 eval "ac_cv_header_$ac_safe=yes"
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2226 eval "ac_cv_header_$ac_safe=no"
2230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2234 echo "$ac_t""no" 1>&6
2239 # See if GNAT has been installed
2240 # Extract the first word of "gnatbind", so it can be a program name with args.
2241 set dummy gnatbind; ac_word=$2
2242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2243 echo "configure:2244: checking for $ac_word" >&5
2244 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 if test -n "$gnat"; then
2248 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2252 for ac_dir in $ac_dummy; do
2253 test -z "$ac_dir" && ac_dir=.
2254 if test -f $ac_dir/$ac_word; then
2255 ac_cv_prog_gnat="yes"
2260 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2263 gnat="$ac_cv_prog_gnat"
2264 if test -n "$gnat"; then
2265 echo "$ac_t""$gnat" 1>&6
2267 echo "$ac_t""no" 1>&6
2271 # Do we have a single-tree copy of texinfo?
2272 if test -f $srcdir/../texinfo/Makefile.in; then
2273 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2274 gcc_cv_prog_makeinfo_modern=yes
2275 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2277 # See if makeinfo has been installed and is modern enough
2278 # that we can use it.
2279 # Extract the first word of "makeinfo", so it can be a program name with args.
2280 set dummy makeinfo; ac_word=$2
2281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_word" >&5
2283 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 if test -n "$MAKEINFO"; then
2287 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2291 for ac_dir in $ac_dummy; do
2292 test -z "$ac_dir" && ac_dir=.
2293 if test -f $ac_dir/$ac_word; then
2294 ac_cv_prog_MAKEINFO="makeinfo"
2301 MAKEINFO="$ac_cv_prog_MAKEINFO"
2302 if test -n "$MAKEINFO"; then
2303 echo "$ac_t""$MAKEINFO" 1>&6
2305 echo "$ac_t""no" 1>&6
2308 if test -n "$MAKEINFO"; then
2309 # Found it, now check the version.
2310 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2311 echo "configure:2312: checking for modern makeinfo" >&5
2312 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 ac_prog_version=`$MAKEINFO --version 2>&1 |
2316 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2317 echo "configure:2318: version of makeinfo is $ac_prog_version" >&5
2318 case $ac_prog_version in
2319 '') gcc_cv_prog_makeinfo_modern=no;;
2320 3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
2321 gcc_cv_prog_makeinfo_modern=yes;;
2322 *) gcc_cv_prog_makeinfo_modern=no;;
2327 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2329 gcc_cv_prog_makeinfo_modern=no
2334 if test $gcc_cv_prog_makeinfo_modern = no; then
2335 echo "configure: warning:
2336 *** Makeinfo is missing or too old.
2337 *** Info documentation will not be built or installed." 1>&2
2342 INSTALL_INFO=install-info
2346 if test -f $srcdir/../flex/skel.c; then
2347 FLEX='$(objdir)/../flex/flex'
2349 # Extract the first word of "flex", so it can be a program name with args.
2350 set dummy flex; ac_word=$2
2351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_word" >&5
2353 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 if test -n "$FLEX"; then
2357 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2361 for ac_dir in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir=.
2363 if test -f $ac_dir/$ac_word; then
2364 ac_cv_prog_FLEX="flex"
2369 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
2372 FLEX="$ac_cv_prog_FLEX"
2373 if test -n "$FLEX"; then
2374 echo "$ac_t""$FLEX" 1>&6
2376 echo "$ac_t""no" 1>&6
2382 # The -L switch is so bison can find its skeleton file.
2383 if test -f $srcdir/../bison/bison.simple; then
2384 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2386 # Extract the first word of "bison", so it can be a program name with args.
2387 set dummy bison; ac_word=$2
2388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389 echo "configure:2390: checking for $ac_word" >&5
2390 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 if test -n "$BISON"; then
2394 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2398 for ac_dir in $ac_dummy; do
2399 test -z "$ac_dir" && ac_dir=.
2400 if test -f $ac_dir/$ac_word; then
2401 ac_cv_prog_BISON="bison"
2406 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
2409 BISON="$ac_cv_prog_BISON"
2410 if test -n "$BISON"; then
2411 echo "$ac_t""$BISON" 1>&6
2413 echo "$ac_t""no" 1>&6
2418 # See if the stage1 system preprocessor understands the ANSI C
2419 # preprocessor stringification operator.
2422 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2423 echo "configure:2424: checking for preprocessor stringizing operator" >&5
2424 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2433 char *s = x(teststring);
2436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2437 egrep "#teststring" >/dev/null 2>&1; then
2439 ac_cv_c_stringize=no
2442 ac_cv_c_stringize=yes
2448 if test "${ac_cv_c_stringize}" = yes
2450 cat >> confdefs.h <<\EOF
2451 #define HAVE_STRINGIZE 1
2455 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2458 # Use <inttypes.h> only if it exists,
2459 # doesn't clash with <sys/types.h>, and declares intmax_t.
2460 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2461 echo "configure:2462: checking for inttypes.h" >&5
2462 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+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 #include <sys/types.h>
2469 #include <inttypes.h>
2474 if { (eval echo configure:2475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 gcc_cv_header_inttypes_h=yes
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 gcc_cv_header_inttypes_h=no
2486 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2487 if test $gcc_cv_header_inttypes_h = yes; then
2488 cat >> confdefs.h <<\EOF
2489 #define HAVE_INTTYPES_H 1
2495 # Determine if enumerated bitfields are unsigned. ISO C says they can
2496 # be either signed or unsigned.
2498 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2499 echo "configure:2500: checking for unsigned enumerated bitfields" >&5
2500 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 if test "$cross_compiling" = yes; then
2504 gcc_cv_enum_bf_unsigned=yes
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2510 enum t { BLAH = 128 } ;
2511 struct s_t { enum t member : 8; } s ;
2515 if (s.member < 0) exit(1);
2520 if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2522 gcc_cv_enum_bf_unsigned=yes
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2527 gcc_cv_enum_bf_unsigned=no
2534 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2535 if test $gcc_cv_enum_bf_unsigned = yes; then
2536 cat >> confdefs.h <<\EOF
2537 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2542 for ac_func in strtoul bsearch putenv popen bcopy \
2543 strchr strrchr kill getrlimit setrlimit atoll atoq \
2544 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2545 fputs_unlocked getrusage valloc iconv nl_langinfo
2547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_func" >&5
2549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 /* System header to define __stub macros and hopefully few prototypes,
2556 which can conflict with char $ac_func(); below. */
2558 /* Override any gcc2 internal prototype to avoid an error. */
2559 /* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2565 /* The GNU C library defines this for functions which it implements
2566 to always fail with ENOSYS. Some functions are actually named
2567 something starting with __ and the normal name is an alias. */
2568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2576 if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2578 eval "ac_cv_func_$ac_func=yes"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2583 eval "ac_cv_func_$ac_func=no"
2588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2589 echo "$ac_t""yes" 1>&6
2590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2591 cat >> confdefs.h <<EOF
2592 #define $ac_tr_func 1
2596 echo "$ac_t""no" 1>&6
2601 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2602 echo "configure:2603: checking for ssize_t" >&5
2603 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <sys/types.h>
2615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2616 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2618 ac_cv_type_ssize_t=yes
2621 ac_cv_type_ssize_t=no
2626 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2627 if test $ac_cv_type_ssize_t = no; then
2628 cat >> confdefs.h <<\EOF
2635 # Try to determine the array type of the second argument of getgroups
2636 # for the target system (int or gid_t).
2637 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2638 echo "configure:2639: checking for uid_t in sys/types.h" >&5
2639 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 #include <sys/types.h>
2647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2648 egrep "uid_t" >/dev/null 2>&1; then
2650 ac_cv_type_uid_t=yes
2659 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2660 if test $ac_cv_type_uid_t = no; then
2661 cat >> confdefs.h <<\EOF
2665 cat >> confdefs.h <<\EOF
2671 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2672 echo "configure:2673: checking type of array argument to getgroups" >&5
2673 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 if test "$cross_compiling" = yes; then
2677 ac_cv_type_getgroups=cross
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2683 /* Thanks to Mike Rendell for this test. */
2684 #include <sys/types.h>
2687 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2692 union { gid_t gval; long lval; } val;
2695 for (i = 0; i < NGID; i++)
2696 gidset[i] = val.gval;
2697 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2699 /* Exit non-zero if getgroups seems to require an array of ints. This
2700 happens when gid_t is short but getgroups modifies an array of ints. */
2701 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2707 ac_cv_type_getgroups=gid_t
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 ac_cv_type_getgroups=int
2717 if test $ac_cv_type_getgroups = cross; then
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2724 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2726 ac_cv_type_getgroups=gid_t
2729 ac_cv_type_getgroups=int
2736 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2737 cat >> confdefs.h <<EOF
2738 #define GETGROUPS_T $ac_cv_type_getgroups
2742 if test "${target}" = "${build}"; then
2743 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
2746 # This condition may need some tweaking. It should include all
2747 # targets where the array type of the second argument of getgroups
2748 # is int and the type of gid_t is not equivalent to int.
2749 *-*-sunos* | *-*-ultrix*)
2750 TARGET_GETGROUPS_T=int
2753 TARGET_GETGROUPS_T=gid_t
2759 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2760 echo "configure:2761: checking for vprintf" >&5
2761 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2767 /* System header to define __stub macros and hopefully few prototypes,
2768 which can conflict with char vprintf(); below. */
2770 /* Override any gcc2 internal prototype to avoid an error. */
2771 /* We use char because int might match the return type of a gcc2
2772 builtin and then its argument prototype would still apply. */
2777 /* The GNU C library defines this for functions which it implements
2778 to always fail with ENOSYS. Some functions are actually named
2779 something starting with __ and the normal name is an alias. */
2780 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2788 if { (eval echo configure:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2790 eval "ac_cv_func_vprintf=yes"
2792 echo "configure: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2795 eval "ac_cv_func_vprintf=no"
2800 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 cat >> confdefs.h <<\EOF
2803 #define HAVE_VPRINTF 1
2807 echo "$ac_t""no" 1>&6
2810 if test "$ac_cv_func_vprintf" != yes; then
2811 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2812 echo "configure:2813: checking for _doprnt" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char _doprnt(); below. */
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2842 eval "ac_cv_func__doprnt=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_func__doprnt=no"
2852 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 cat >> confdefs.h <<\EOF
2855 #define HAVE_DOPRNT 1
2859 echo "$ac_t""no" 1>&6
2866 if test $ac_cv_func_vprintf != yes ; then
2868 if test $ac_cv_func__doprnt != yes ; then
2875 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2876 echo "configure:2877: checking whether the printf functions support %p" >&5
2877 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 if test "$cross_compiling" = yes; then
2881 gcc_cv_func_printf_ptr=no
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2891 char *p = buf, *q = NULL;
2892 sprintf(buf, "%p", p);
2893 sscanf(buf, "%p", &q);
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2899 gcc_cv_func_printf_ptr=yes
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 gcc_cv_func_printf_ptr=no
2909 rm -f core core.* *.core
2912 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2913 if test $gcc_cv_func_printf_ptr = yes ; then
2914 cat >> confdefs.h <<\EOF
2915 #define HAVE_PRINTF_PTR 1
2923 # Under some versions of uwin, vfork is notoriously buggy and the test
2924 # can hang configure; on other versions, vfork exists just as a stub.
2925 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2926 ac_cv_func_vfork_works=no
2929 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2930 echo "configure:2931: checking for pid_t" >&5
2931 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 #include <sys/types.h>
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2946 ac_cv_type_pid_t=yes
2954 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2955 if test $ac_cv_type_pid_t = no; then
2956 cat >> confdefs.h <<\EOF
2962 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2963 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2964 echo "configure:2965: checking for vfork.h" >&5
2965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2974 { (eval echo configure:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2976 if test -z "$ac_err"; then
2978 eval "ac_cv_header_$ac_safe=yes"
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2984 eval "ac_cv_header_$ac_safe=no"
2988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 cat >> confdefs.h <<\EOF
2991 #define HAVE_VFORK_H 1
2995 echo "$ac_t""no" 1>&6
2998 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2999 echo "configure:3000: checking for working vfork" >&5
3000 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 if test "$cross_compiling" = yes; then
3004 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3005 echo "configure:3006: checking for vfork" >&5
3006 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 /* System header to define __stub macros and hopefully few prototypes,
3013 which can conflict with char vfork(); below. */
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3022 /* The GNU C library defines this for functions which it implements
3023 to always fail with ENOSYS. Some functions are actually named
3024 something starting with __ and the normal name is an alias. */
3025 #if defined (__stub_vfork) || defined (__stub___vfork)
3033 if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3035 eval "ac_cv_func_vfork=yes"
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 eval "ac_cv_func_vfork=no"
3045 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3049 echo "$ac_t""no" 1>&6
3052 ac_cv_func_vfork_works=$ac_cv_func_vfork
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 /* Thanks to Paul Eggert for this test. */
3059 #include <sys/types.h>
3060 #include <sys/stat.h>
3061 #ifdef HAVE_UNISTD_H
3067 /* On some sparc systems, changes by the child to local and incoming
3068 argument registers are propagated back to the parent.
3069 The compiler is told about this with #include <vfork.h>,
3070 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3071 Test for this by using a static variable whose address
3072 is put into a register that is clobbered by the vfork. */
3075 sparc_address_test (int arg)
3077 sparc_address_test (arg) int arg;
3095 pid_t parent = getpid ();
3098 sparc_address_test ();
3103 /* Here is another test for sparc vfork register problems.
3104 This test uses lots of local variables, at least
3105 as many local variables as main has allocated so far
3106 including compiler temporaries. 4 locals are enough for
3107 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3108 A buggy compiler should reuse the register of parent
3109 for one of the local variables, since it will think that
3110 parent can't possibly be used any more in this routine.
3111 Assigning to the local variable will thus munge parent
3112 in the parent process. */
3114 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3115 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3116 /* Convince the compiler that p..p7 are live; otherwise, it might
3117 use the same hardware register for all 8 local variables. */
3118 if (p != p1 || p != p2 || p != p3 || p != p4
3119 || p != p5 || p != p6 || p != p7)
3122 /* On some systems (e.g. IRIX 3.3),
3123 vfork doesn't separate parent from child file descriptors.
3124 If the child closes a descriptor before it execs or exits,
3125 this munges the parent's descriptor as well.
3126 Test for this by closing stdout in the child. */
3127 _exit(close(fileno(stdout)) != 0);
3132 while (wait(&status) != child)
3135 /* Was there some problem with vforking? */
3138 /* Did the child fail? (This shouldn't happen.) */
3141 /* Did the vfork/compiler bug occur? */
3142 || parent != getpid()
3144 /* Did the file descriptor bug occur? */
3145 || fstat(fileno(stdout), &st) != 0
3150 if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3152 ac_cv_func_vfork_works=yes
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3157 ac_cv_func_vfork_works=no
3164 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3165 if test $ac_cv_func_vfork_works = no; then
3166 cat >> confdefs.h <<\EOF
3172 for ac_hdr in unistd.h
3174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3176 echo "configure:3177: checking for $ac_hdr" >&5
3177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3186 { (eval echo configure:3187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3188 if test -z "$ac_err"; then
3190 eval "ac_cv_header_$ac_safe=yes"
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 eval "ac_cv_header_$ac_safe=no"
3200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3203 cat >> confdefs.h <<EOF
3204 #define $ac_tr_hdr 1
3208 echo "$ac_t""no" 1>&6
3212 for ac_func in getpagesize
3214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_func" >&5
3216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* System header to define __stub macros and hopefully few prototypes,
3223 which can conflict with char $ac_func(); below. */
3225 /* Override any gcc2 internal prototype to avoid an error. */
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3232 /* The GNU C library defines this for functions which it implements
3233 to always fail with ENOSYS. Some functions are actually named
3234 something starting with __ and the normal name is an alias. */
3235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3243 if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3245 eval "ac_cv_func_$ac_func=yes"
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 eval "ac_cv_func_$ac_func=no"
3255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3256 echo "$ac_t""yes" 1>&6
3257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3258 cat >> confdefs.h <<EOF
3259 #define $ac_tr_func 1
3263 echo "$ac_t""no" 1>&6
3267 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3268 echo "configure:3269: checking for working mmap which provides zeroed pages anywhere" >&5
3269 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 if test "$cross_compiling" = yes; then
3273 ac_cv_func_mmap_anywhere=no
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3279 /* Test by Richard Henderson and Alexandre Oliva.
3280 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3281 #include <sys/types.h>
3283 #include <sys/mman.h>
3285 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3286 # define MAP_ANONYMOUS MAP_ANON
3289 /* This mess was copied from the GNU getpagesize.h. */
3290 #ifndef HAVE_GETPAGESIZE
3291 # ifdef HAVE_UNISTD_H
3292 # include <unistd.h>
3295 /* Assume that all systems that can run configure have sys/param.h. */
3296 # ifndef HAVE_SYS_PARAM_H
3297 # define HAVE_SYS_PARAM_H 1
3300 # ifdef _SC_PAGESIZE
3301 # define getpagesize() sysconf(_SC_PAGESIZE)
3302 # else /* no _SC_PAGESIZE */
3303 # ifdef HAVE_SYS_PARAM_H
3304 # include <sys/param.h>
3305 # ifdef EXEC_PAGESIZE
3306 # define getpagesize() EXEC_PAGESIZE
3307 # else /* no EXEC_PAGESIZE */
3309 # define getpagesize() NBPG * CLSIZE
3312 # endif /* no CLSIZE */
3313 # else /* no NBPG */
3315 # define getpagesize() NBPC
3316 # else /* no NBPC */
3318 # define getpagesize() PAGESIZE
3319 # endif /* PAGESIZE */
3320 # endif /* no NBPC */
3321 # endif /* no NBPG */
3322 # endif /* no EXEC_PAGESIZE */
3323 # else /* no HAVE_SYS_PARAM_H */
3324 # define getpagesize() 8192 /* punt totally */
3325 # endif /* no HAVE_SYS_PARAM_H */
3326 # endif /* no _SC_PAGESIZE */
3328 #endif /* no HAVE_GETPAGESIZE */
3335 #ifndef MAP_ANONYMOUS
3336 fd = open("/dev/zero", O_RDWR);
3342 #ifdef MAP_ANONYMOUS
3343 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3344 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3346 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3348 if (x == (char *) -1)
3353 if (munmap(x, pg) < 0)
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3361 ac_cv_func_mmap_anywhere=yes
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 ac_cv_func_mmap_anywhere=no
3373 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3374 if test $ac_cv_func_mmap_anywhere = yes; then
3375 cat >> confdefs.h <<\EOF
3376 #define HAVE_MMAP_ANYWHERE 1
3381 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3382 echo "configure:3383: checking for working mmap of a file" >&5
3383 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 # Create a file one thousand bytes long.
3387 for i in 1 2 3 4 5 6 7 8 9 0
3388 do for j in 1 2 3 4 5 6 7 8 9 0
3391 done > conftestdata$$
3393 if test "$cross_compiling" = yes; then
3394 ac_cv_func_mmap_file=no
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3400 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3401 Richard Henderson and Alexandre Oliva.
3402 Check whether read-only mmap of a plain file works. */
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3406 #include <sys/mman.h>
3414 fd = open("conftestdata$$", O_RDONLY);
3418 if (fstat (fd, &st))
3421 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3422 if (x == (char *) -1)
3425 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3428 if (munmap(x, st.st_size) < 0)
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3436 ac_cv_func_mmap_file=yes
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 ac_cv_func_mmap_file=no
3448 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3449 if test $ac_cv_func_mmap_file = yes; then
3450 cat >> confdefs.h <<\EOF
3451 #define HAVE_MMAP_FILE 1
3457 # We will need to find libiberty.h and ansidecl.h
3458 saved_CFLAGS="$CFLAGS"
3459 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3460 for ac_func in bcopy \
3461 getenv atol sbrk abort atof getcwd getwd \
3462 strsignal putc_unlocked fputs_unlocked strstr environ \
3463 malloc realloc calloc free basename getopt
3465 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3466 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3467 echo "configure:3468: checking whether $ac_func is declared" >&5
3468 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include "gansidecl.h"
3479 char *(*pfn) = (char *(*)) $ac_func ;
3483 if { (eval echo configure:3484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3485 eval "gcc_cv_have_decl_$ac_func=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3490 eval "gcc_cv_have_decl_$ac_func=no"
3495 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3497 #define $ac_tr_decl 1
3501 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3502 #define $ac_tr_decl 0
3508 if test x = y ; then
3509 cat >> confdefs.h <<EOF
3510 #define HAVE_DECL_BCOPY 1
3513 cat >> confdefs.h <<EOF
3514 #define HAVE_DECL_GETENV 1
3516 cat >> confdefs.h <<EOF
3517 #define HAVE_DECL_ATOL 1
3519 cat >> confdefs.h <<EOF
3520 #define HAVE_DECL_SBRK 1
3522 cat >> confdefs.h <<EOF
3523 #define HAVE_DECL_ABORT 1
3525 cat >> confdefs.h <<EOF
3526 #define HAVE_DECL_ATOF 1
3528 cat >> confdefs.h <<EOF
3529 #define HAVE_DECL_GETCWD 1
3531 cat >> confdefs.h <<EOF
3532 #define HAVE_DECL_GETWD 1
3535 cat >> confdefs.h <<EOF
3536 #define HAVE_DECL_STRSIGNAL 1
3538 cat >> confdefs.h <<EOF
3539 #define HAVE_DECL_PUTC_UNLOCKED 1
3541 cat >> confdefs.h <<EOF
3542 #define HAVE_DECL_FPUTS_UNLOCKED 1
3544 cat >> confdefs.h <<EOF
3545 #define HAVE_DECL_STRSTR 1
3547 cat >> confdefs.h <<EOF
3548 #define HAVE_DECL_ENVIRON 1
3551 cat >> confdefs.h <<EOF
3552 #define HAVE_DECL_MALLOC 1
3554 cat >> confdefs.h <<EOF
3555 #define HAVE_DECL_REALLOC 1
3557 cat >> confdefs.h <<EOF
3558 #define HAVE_DECL_CALLOC 1
3560 cat >> confdefs.h <<EOF
3561 #define HAVE_DECL_FREE 1
3563 cat >> confdefs.h <<EOF
3564 #define HAVE_DECL_BASENAME 1
3566 cat >> confdefs.h <<EOF
3567 #define HAVE_DECL_GETOPT 1
3572 for ac_func in getrlimit setrlimit getrusage
3574 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3575 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3576 echo "configure:3577: checking whether $ac_func is declared" >&5
3577 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include "gansidecl.h"
3585 #ifdef HAVE_SYS_RESOURCE_H
3586 #include <sys/resource.h>
3592 char *(*pfn) = (char *(*)) $ac_func ;
3596 if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3598 eval "gcc_cv_have_decl_$ac_func=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3603 eval "gcc_cv_have_decl_$ac_func=no"
3608 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3609 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3610 #define $ac_tr_decl 1
3614 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3615 #define $ac_tr_decl 0
3621 if test x = y ; then
3622 cat >> confdefs.h <<EOF
3623 #define HAVE_DECL_GETRLIMIT 1
3625 cat >> confdefs.h <<EOF
3626 #define HAVE_DECL_SETRLIMIT 1
3628 cat >> confdefs.h <<EOF
3629 #define HAVE_DECL_GETRUSAGE 1
3634 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3635 CFLAGS="$saved_CFLAGS"
3637 # mkdir takes a single argument on some systems.
3638 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3639 echo "configure:3640: checking if mkdir takes one argument" >&5
3640 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3647 #include <sys/types.h>
3648 #ifdef HAVE_SYS_STAT_H
3649 # include <sys/stat.h>
3651 #ifdef HAVE_UNISTD_H
3652 # include <unistd.h>
3654 #ifdef HAVE_DIRECT_H
3655 # include <direct.h>
3661 if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 gcc_cv_mkdir_takes_one_arg=no
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 gcc_cv_mkdir_takes_one_arg=yes
3673 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3674 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3675 cat >> confdefs.h <<\EOF
3676 #define MKDIR_TAKES_ONE_ARG 1
3690 build_install_headers_dir=install-headers-tar
3695 host_truncate_target=
3698 # Decode the host machine, then the target machine.
3699 # For the host machine, we save the xm_file variable as host_xm_file;
3700 # then we decode the target machine and forget everything else
3701 # that came from the host machine.
3702 for machine in $build $host $target; do
3703 . ${srcdir}/config.gcc
3706 extra_objs="${host_extra_objs} ${extra_objs}"
3708 # Default the target-machine variables that were not explicitly set.
3709 if test x"$tm_file" = x
3710 then tm_file=$cpu_type/$cpu_type.h; fi
3712 if test x$extra_headers = x
3713 then extra_headers=; fi
3715 if test x"$xm_file" = x
3716 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3718 if test x$md_file = x
3719 then md_file=$cpu_type/$cpu_type.md; fi
3721 if test x$out_file = x
3722 then out_file=$cpu_type/$cpu_type.c; fi
3724 if test x"$tmake_file" = x
3725 then tmake_file=$cpu_type/t-$cpu_type
3728 if test x"$dwarf2" = xyes
3729 then tm_file="$tm_file tm-dwarf2.h"
3732 if test x$float_format = x
3733 then float_format=i64
3736 if test $float_format = none
3737 then float_h_file=Makefile.in
3738 else float_h_file=float-$float_format.h
3741 # Handle cpp installation.
3742 if test x$enable_cpp != xno
3744 tmake_file="$tmake_file t-install-cpp"
3747 # Say what files are being used for the output code and MD file.
3748 echo "Using \`$srcdir/config/$out_file' to output insns."
3749 echo "Using \`$srcdir/config/$md_file' as machine description file."
3752 for f in $tm_file; do
3755 if test $count = ax; then
3756 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3758 echo "Using the following target machine macro files:"
3759 for f in $tm_file; do
3760 echo " $srcdir/config/$f"
3765 for f in $host_xm_file; do
3768 if test $count = ax; then
3769 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3771 echo "Using the following host machine macro files:"
3772 for f in $host_xm_file; do
3773 echo " $srcdir/config/$f"
3777 if test "$host_xm_file" != "$build_xm_file"; then
3779 for f in $build_xm_file; do
3782 if test $count = ax; then
3783 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3785 echo "Using the following build machine macro files:"
3786 for f in $build_xm_file; do
3787 echo " $srcdir/config/$f"
3792 if test x$thread_file = x; then
3793 if test x$target_thread_file != x; then
3794 thread_file=$target_thread_file
3796 thread_file='single'
3800 # Set up the header files.
3801 # $links is the list of header files to create.
3802 # $vars is the list of shell variables with file names to include.
3803 # auto-host.h is the file containing items generated by autoconf and is
3804 # the first file included by config.h.
3806 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3808 # If host=build, it is correct to have hconfig include auto-host.h
3809 # as well. If host!=build, we are in error and need to do more
3810 # work to find out the build config parameters.
3811 if test x$host = x$build
3813 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
3815 # We create a subdir, then run autoconf in the subdir.
3816 # To prevent recursion we set host and build for the new
3817 # invocation of configure to the build for this invocation
3824 /*) realsrcdir=${srcdir};;
3825 *) realsrcdir=../${srcdir};;
3827 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3828 --target=$target --host=$build --build=$build
3830 # We just finished tests for the build machine, so rename
3831 # the file auto-build.h in the gcc directory.
3832 mv auto-host.h ../auto-build.h
3835 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
3838 xm_file="gansidecl.h ${xm_file}"
3839 tm_file="gansidecl.h ${tm_file}"
3841 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
3842 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
3843 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
3846 if test -f config.status; then mv -f config.status config.bak; fi
3849 while test -n "$vars"
3851 set $vars; var=$1; shift; vars=$*
3852 set $links; link=$1; shift; links=$*
3853 set $defines; define=$1; shift; defines=$*
3856 # Make sure the file is created, even if it is empty.
3859 # Define TARGET_CPU_DEFAULT if the system wants one.
3860 # This substitutes for lots of *.h files.
3861 if test "$target_cpu_default" != "" -a $link = tm.h
3863 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3865 if test $link = tm.h
3867 echo "#ifndef GENERATOR_FILE" >>$link
3868 echo "#include \"insn-codes.h\"" >>$link
3869 echo "#endif" >>$link
3872 for file in `eval echo '$'$var`; do
3874 auto-host.h | auto-build.h )
3877 echo '#ifdef IN_GCC' >>$link
3880 echo "#include \"$file\"" >>$link
3882 auto-host.h | auto-build.h )
3885 echo '#endif' >>$link
3890 for def in `eval echo '$'$define`; do
3891 echo "#ifndef $def" >>$link
3892 echo "#define $def" >>$link
3893 echo "#endif" >>$link
3897 # Truncate the target if necessary
3898 if test x$host_truncate_target != x; then
3899 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3902 # Get the version trigger filename from the toplevel
3903 if test "${with_gcc_version_trigger+set}" = set; then
3904 gcc_version_trigger=$with_gcc_version_trigger
3906 gcc_version_trigger=${srcdir}/version.c
3908 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3909 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3911 # Compile in configure arguments.
3912 if test -f configargs.h ; then
3913 # Being re-configured.
3914 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3915 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
3917 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
3919 cat > configargs.h <<EOF
3920 /* Generated automatically. */
3921 static const char configuration_arguments[] = "$gcc_config_arguments";
3924 # Internationalization
3926 VERSION="$gcc_version"
3927 cat >> confdefs.h <<EOF
3928 #define PACKAGE "$PACKAGE"
3931 cat >> confdefs.h <<EOF
3932 #define VERSION "$VERSION"
3940 # Enable NLS support by default
3941 # Check whether --enable-nls or --disable-nls was given.
3942 if test "${enable_nls+set}" = set; then
3943 enableval="$enable_nls"
3950 # if cross compiling, disable NLS support.
3951 # It's not worth the trouble, at least for now.
3953 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
3954 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
3958 # if NLS is enabled, also enable check in po subdir
3959 if test $enable_nls = yes; then
3968 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
3969 echo "configure:3970: checking for strerror in -lcposix" >&5
3970 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
3971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 ac_save_LIBS="$LIBS"
3975 LIBS="-lcposix $LIBS"
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3988 if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3990 eval "ac_cv_lib_$ac_lib_var=yes"
3992 echo "configure: failed program was:" >&5
3993 cat conftest.$ac_ext >&5
3995 eval "ac_cv_lib_$ac_lib_var=no"
3998 LIBS="$ac_save_LIBS"
4001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4002 echo "$ac_t""yes" 1>&6
4003 LIBS="$LIBS -lcposix"
4005 echo "$ac_t""no" 1>&6
4010 echo $ac_n "checking for working const""... $ac_c" 1>&6
4011 echo "configure:4012: checking for working const" >&5
4012 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4021 /* Ultrix mips cc rejects this. */
4022 typedef int charset[2]; const charset x = {0,0};
4023 /* SunOS 4.1.1 cc rejects this. */
4024 char const *const *ccp;
4026 /* NEC SVR4.0.2 mips cc rejects this. */
4027 struct point {int x, y;};
4028 static struct point const zero = {0,0};
4029 /* AIX XL C 1.02.0.0 rejects this.
4030 It does not let you subtract one const X* pointer from another in an arm
4031 of an if-expression whose if-part is not a constant expression */
4032 const char *g = "string";
4033 ccp = &g + (g ? g-g : 0);
4034 /* HPUX 7.0 cc rejects these. */
4037 ccp = (char const *const *) p;
4038 { /* SCO 3.2v4 cc rejects this. */
4040 char const *s = 0 ? (char *) 0 : (char const *) 0;
4044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4046 const int *foo = &x[0];
4049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4050 typedef const int *iptr;
4054 { /* AIX XL C 1.02.0.0 rejects this saying
4055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4056 struct s { int j; const int *ap[3]; };
4057 struct s *b; b->j = 5;
4059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4065 if { (eval echo configure:4066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4077 echo "$ac_t""$ac_cv_c_const" 1>&6
4078 if test $ac_cv_c_const = no; then
4079 cat >> confdefs.h <<\EOF
4085 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4086 echo "configure:4087: checking for off_t" >&5
4087 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 #include <sys/types.h>
4099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4100 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4102 ac_cv_type_off_t=yes
4110 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4111 if test $ac_cv_type_off_t = no; then
4112 cat >> confdefs.h <<\EOF
4118 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4119 echo "configure:4120: checking for size_t" >&5
4120 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <sys/types.h>
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4135 ac_cv_type_size_t=yes
4138 ac_cv_type_size_t=no
4143 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4144 if test $ac_cv_type_size_t = no; then
4145 cat >> confdefs.h <<\EOF
4146 #define size_t unsigned
4151 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4152 # for constant arguments. Useless!
4153 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4154 echo "configure:4155: checking for working alloca.h" >&5
4155 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4163 void *p = alloca(2 * sizeof(int));
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168 ac_cv_header_alloca_h=yes
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4173 ac_cv_header_alloca_h=no
4178 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4179 if test $ac_cv_header_alloca_h = yes; then
4180 cat >> confdefs.h <<\EOF
4181 #define HAVE_ALLOCA_H 1
4186 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4187 echo "configure:4188: checking for alloca" >&5
4188 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4196 # define alloca __builtin_alloca
4199 # include <malloc.h>
4200 # define alloca _alloca
4203 # include <alloca.h>
4208 # ifndef alloca /* predefined by HP cc +Olibcalls */
4217 char *p = (char *) alloca(1);
4220 if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4222 ac_cv_func_alloca_works=yes
4224 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4227 ac_cv_func_alloca_works=no
4232 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4233 if test $ac_cv_func_alloca_works = yes; then
4234 cat >> confdefs.h <<\EOF
4235 #define HAVE_ALLOCA 1
4240 if test $ac_cv_func_alloca_works = no; then
4241 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4242 # that cause trouble. Some versions do not even contain alloca or
4243 # contain a buggy version. If you still want to use their alloca,
4244 # use ar to extract alloca.o from them instead of compiling alloca.c.
4245 ALLOCA=alloca.${ac_objext}
4246 cat >> confdefs.h <<\EOF
4251 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4252 echo "configure:4253: checking whether alloca needs Cray hooks" >&5
4253 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4259 #if defined(CRAY) && ! defined(CRAY2)
4266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 egrep "webecray" >/dev/null 2>&1; then
4278 echo "$ac_t""$ac_cv_os_cray" 1>&6
4279 if test $ac_cv_os_cray = yes; then
4280 for ac_func in _getb67 GETB67 getb67; do
4281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4282 echo "configure:4283: checking for $ac_func" >&5
4283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4289 /* System header to define __stub macros and hopefully few prototypes,
4290 which can conflict with char $ac_func(); below. */
4292 /* Override any gcc2 internal prototype to avoid an error. */
4293 /* We use char because int might match the return type of a gcc2
4294 builtin and then its argument prototype would still apply. */
4299 /* The GNU C library defines this for functions which it implements
4300 to always fail with ENOSYS. Some functions are actually named
4301 something starting with __ and the normal name is an alias. */
4302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312 eval "ac_cv_func_$ac_func=yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4317 eval "ac_cv_func_$ac_func=no"
4322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4323 echo "$ac_t""yes" 1>&6
4324 cat >> confdefs.h <<EOF
4325 #define CRAY_STACKSEG_END $ac_func
4330 echo "$ac_t""no" 1>&6
4336 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4337 echo "configure:4338: checking stack direction for C alloca" >&5
4338 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 if test "$cross_compiling" = yes; then
4342 ac_cv_c_stack_direction=0
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4347 find_stack_direction ()
4349 static char *addr = 0;
4354 return find_stack_direction ();
4357 return (&dummy > addr) ? 1 : -1;
4361 exit (find_stack_direction() < 0);
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4366 ac_cv_c_stack_direction=1
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 ac_cv_c_stack_direction=-1
4378 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4379 cat >> confdefs.h <<EOF
4380 #define STACK_DIRECTION $ac_cv_c_stack_direction
4386 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4387 unistd.h sys/param.h
4389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4391 echo "configure:4392: checking for $ac_hdr" >&5
4392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4401 { (eval echo configure:4402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4403 if test -z "$ac_err"; then
4405 eval "ac_cv_header_$ac_safe=yes"
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4411 eval "ac_cv_header_$ac_safe=no"
4415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4416 echo "$ac_t""yes" 1>&6
4417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4418 cat >> confdefs.h <<EOF
4419 #define $ac_tr_hdr 1
4423 echo "$ac_t""no" 1>&6
4427 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4428 strdup __argz_count __argz_stringify __argz_next
4430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_func" >&5
4432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 /* System header to define __stub macros and hopefully few prototypes,
4439 which can conflict with char $ac_func(); below. */
4441 /* Override any gcc2 internal prototype to avoid an error. */
4442 /* We use char because int might match the return type of a gcc2
4443 builtin and then its argument prototype would still apply. */
4448 /* The GNU C library defines this for functions which it implements
4449 to always fail with ENOSYS. Some functions are actually named
4450 something starting with __ and the normal name is an alias. */
4451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461 eval "ac_cv_func_$ac_func=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 eval "ac_cv_func_$ac_func=no"
4471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4474 cat >> confdefs.h <<EOF
4475 #define $ac_tr_func 1
4479 echo "$ac_t""no" 1>&6
4484 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4485 for ac_func in stpcpy
4487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4488 echo "configure:4489: checking for $ac_func" >&5
4489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4495 /* System header to define __stub macros and hopefully few prototypes,
4496 which can conflict with char $ac_func(); below. */
4498 /* Override any gcc2 internal prototype to avoid an error. */
4499 /* We use char because int might match the return type of a gcc2
4500 builtin and then its argument prototype would still apply. */
4505 /* The GNU C library defines this for functions which it implements
4506 to always fail with ENOSYS. Some functions are actually named
4507 something starting with __ and the normal name is an alias. */
4508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4518 eval "ac_cv_func_$ac_func=yes"
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 eval "ac_cv_func_$ac_func=no"
4528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4529 echo "$ac_t""yes" 1>&6
4530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4531 cat >> confdefs.h <<EOF
4532 #define $ac_tr_func 1
4536 echo "$ac_t""no" 1>&6
4541 if test "${ac_cv_func_stpcpy}" = "yes"; then
4542 cat >> confdefs.h <<\EOF
4543 #define HAVE_STPCPY 1
4548 if test $ac_cv_header_locale_h = yes; then
4549 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4550 echo "configure:4551: checking for LC_MESSAGES" >&5
4551 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4564 am_cv_val_LC_MESSAGES=yes
4566 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4569 am_cv_val_LC_MESSAGES=no
4574 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4575 if test $am_cv_val_LC_MESSAGES = yes; then
4576 cat >> confdefs.h <<\EOF
4577 #define HAVE_LC_MESSAGES 1
4582 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4583 echo "configure:4584: checking whether NLS is requested" >&5
4584 # Check whether --enable-nls or --disable-nls was given.
4585 if test "${enable_nls+set}" = set; then
4586 enableval="$enable_nls"
4592 echo "$ac_t""$USE_NLS" 1>&6
4595 USE_INCLUDED_LIBINTL=no
4597 if test "$USE_NLS" = "yes"; then
4598 cat >> confdefs.h <<\EOF
4599 #define ENABLE_NLS 1
4602 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4603 echo "configure:4604: checking whether included gettext is requested" >&5
4604 # Check whether --with-included-gettext or --without-included-gettext was given.
4605 if test "${with_included_gettext+set}" = set; then
4606 withval="$with_included_gettext"
4607 nls_cv_force_use_gnu_gettext=$withval
4609 nls_cv_force_use_gnu_gettext=no
4612 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4614 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4615 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4617 nls_cv_header_libgt=
4620 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4621 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4622 echo "configure:4623: checking for libintl.h" >&5
4623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 #include <libintl.h>
4631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4632 { (eval echo configure:4633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4634 if test -z "$ac_err"; then
4636 eval "ac_cv_header_$ac_safe=yes"
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4642 eval "ac_cv_header_$ac_safe=no"
4646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4647 echo "$ac_t""yes" 1>&6
4648 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4649 echo "configure:4650: checking for gettext in libc" >&5
4650 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <libintl.h>
4658 return (int) gettext ("")
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4663 gt_cv_func_gettext_libc=yes
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 gt_cv_func_gettext_libc=no
4673 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4675 if test "$gt_cv_func_gettext_libc" != "yes"; then
4676 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4677 echo "configure:4678: checking for bindtextdomain in -lintl" >&5
4678 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 ac_save_LIBS="$LIBS"
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 /* Override any gcc2 internal prototype to avoid an error. */
4688 /* We use char because int might match the return type of a gcc2
4689 builtin and then its argument prototype would still apply. */
4690 char bindtextdomain();
4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4698 eval "ac_cv_lib_$ac_lib_var=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 eval "ac_cv_lib_$ac_lib_var=no"
4706 LIBS="$ac_save_LIBS"
4709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4711 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4712 echo "configure:4713: checking for gettext in libintl" >&5
4713 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4717 echo "configure:4718: checking for gettext in -lintl" >&5
4718 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 ac_save_LIBS="$LIBS"
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 /* Override any gcc2 internal prototype to avoid an error. */
4728 /* We use char because int might match the return type of a gcc2
4729 builtin and then its argument prototype would still apply. */
4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4738 eval "ac_cv_lib_$ac_lib_var=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_lib_$ac_lib_var=no"
4746 LIBS="$ac_save_LIBS"
4749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4750 echo "$ac_t""yes" 1>&6
4751 gt_cv_func_gettext_libintl=yes
4753 echo "$ac_t""no" 1>&6
4754 gt_cv_func_gettext_libintl=no
4759 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4761 echo "$ac_t""no" 1>&6
4766 if test "$gt_cv_func_gettext_libc" = "yes" \
4767 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4768 cat >> confdefs.h <<\EOF
4769 #define HAVE_GETTEXT 1
4772 # Extract the first word of "msgfmt", so it can be a program name with args.
4773 set dummy msgfmt; ac_word=$2
4774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4775 echo "configure:4776: checking for $ac_word" >&5
4776 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4781 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4785 for ac_dir in $PATH; do
4786 test -z "$ac_dir" && ac_dir=.
4787 if test -f $ac_dir/$ac_word; then
4788 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4789 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
4795 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="no"
4799 MSGFMT="$gcc_cv_path_MSGFMT"
4800 if test -n "$MSGFMT"; then
4801 echo "$ac_t""$MSGFMT" 1>&6
4803 echo "$ac_t""no" 1>&6
4805 if test "$MSGFMT" != "no"; then
4806 for ac_func in dcgettext
4808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4809 echo "configure:4810: checking for $ac_func" >&5
4810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 /* System header to define __stub macros and hopefully few prototypes,
4817 which can conflict with char $ac_func(); below. */
4819 /* Override any gcc2 internal prototype to avoid an error. */
4820 /* We use char because int might match the return type of a gcc2
4821 builtin and then its argument prototype would still apply. */
4826 /* The GNU C library defines this for functions which it implements
4827 to always fail with ENOSYS. Some functions are actually named
4828 something starting with __ and the normal name is an alias. */
4829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4837 if { (eval echo configure:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4839 eval "ac_cv_func_$ac_func=yes"
4841 echo "configure: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4844 eval "ac_cv_func_$ac_func=no"
4849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4852 cat >> confdefs.h <<EOF
4853 #define $ac_tr_func 1
4857 echo "$ac_t""no" 1>&6
4861 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4862 set dummy gmsgfmt; ac_word=$2
4863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4864 echo "configure:4865: checking for $ac_word" >&5
4865 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4870 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4873 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4878 for ac_dir in $ac_dummy; do
4879 test -z "$ac_dir" && ac_dir=.
4880 if test -f $ac_dir/$ac_word; then
4881 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
4886 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
4890 GMSGFMT="$gcc_cv_path_GMSGFMT"
4891 if test -n "$GMSGFMT"; then
4892 echo "$ac_t""$GMSGFMT" 1>&6
4894 echo "$ac_t""no" 1>&6
4897 # Extract the first word of "xgettext", so it can be a program name with args.
4898 set dummy xgettext; ac_word=$2
4899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4900 echo "configure:4901: checking for $ac_word" >&5
4901 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4906 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4910 for ac_dir in $PATH; do
4911 test -z "$ac_dir" && ac_dir=.
4912 if test -f $ac_dir/$ac_word; then
4913 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4914 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
4920 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
4924 XGETTEXT="$gcc_cv_path_XGETTEXT"
4925 if test -n "$XGETTEXT"; then
4926 echo "$ac_t""$XGETTEXT" 1>&6
4928 echo "$ac_t""no" 1>&6
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4936 extern int _nl_msg_cat_cntr;
4937 return _nl_msg_cat_cntr
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4954 create_catalogs="no"
4959 echo "$ac_t""no" 1>&6
4963 if test "$CATOBJEXT" = "NONE"; then
4964 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4965 echo "configure:4966: checking whether catgets can be used" >&5
4966 # Check whether --with-catgets or --without-catgets was given.
4967 if test "${with_catgets+set}" = set; then
4968 withval="$with_catgets"
4969 nls_cv_use_catgets=$withval
4971 nls_cv_use_catgets=no
4974 echo "$ac_t""$nls_cv_use_catgets" 1>&6
4976 if test "$nls_cv_use_catgets" = "yes"; then
4977 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4978 echo "configure:4979: checking for main in -li" >&5
4979 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 ac_save_LIBS="$LIBS"
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4993 if { (eval echo configure:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4995 eval "ac_cv_lib_$ac_lib_var=yes"
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
5000 eval "ac_cv_lib_$ac_lib_var=no"
5003 LIBS="$ac_save_LIBS"
5006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5007 echo "$ac_t""yes" 1>&6
5008 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5009 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5010 cat >> confdefs.h <<EOF
5011 #define $ac_tr_lib 1
5017 echo "$ac_t""no" 1>&6
5020 echo $ac_n "checking for catgets""... $ac_c" 1>&6
5021 echo "configure:5022: checking for catgets" >&5
5022 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 /* System header to define __stub macros and hopefully few prototypes,
5029 which can conflict with char catgets(); below. */
5031 /* Override any gcc2 internal prototype to avoid an error. */
5032 /* We use char because int might match the return type of a gcc2
5033 builtin and then its argument prototype would still apply. */
5038 /* The GNU C library defines this for functions which it implements
5039 to always fail with ENOSYS. Some functions are actually named
5040 something starting with __ and the normal name is an alias. */
5041 #if defined (__stub_catgets) || defined (__stub___catgets)
5049 if { (eval echo configure:5050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5051 eval "ac_cv_func_catgets=yes"
5053 echo "configure: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5056 eval "ac_cv_func_catgets=no"
5061 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5062 echo "$ac_t""yes" 1>&6
5063 cat >> confdefs.h <<\EOF
5064 #define HAVE_CATGETS 1
5067 INTLOBJS="\$(CATOBJS)"
5068 # Extract the first word of "gencat", so it can be a program name with args.
5069 set dummy gencat; ac_word=$2
5070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5071 echo "configure:5072: checking for $ac_word" >&5
5072 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5077 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5080 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5085 for ac_dir in $ac_dummy; do
5086 test -z "$ac_dir" && ac_dir=.
5087 if test -f $ac_dir/$ac_word; then
5088 gcc_cv_path_GENCAT="$ac_dir/$ac_word"
5093 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT="no"
5097 GENCAT="$gcc_cv_path_GENCAT"
5098 if test -n "$GENCAT"; then
5099 echo "$ac_t""$GENCAT" 1>&6
5101 echo "$ac_t""no" 1>&6
5103 if test "$GENCAT" != "no"; then
5104 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5105 set dummy gmsgfmt; ac_word=$2
5106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5107 echo "configure:5108: checking for $ac_word" >&5
5108 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5113 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5116 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5121 for ac_dir in $ac_dummy; do
5122 test -z "$ac_dir" && ac_dir=.
5123 if test -f $ac_dir/$ac_word; then
5124 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5129 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="no"
5133 GMSGFMT="$gcc_cv_path_GMSGFMT"
5134 if test -n "$GMSGFMT"; then
5135 echo "$ac_t""$GMSGFMT" 1>&6
5137 echo "$ac_t""no" 1>&6
5140 if test "$GMSGFMT" = "no"; then
5141 # Extract the first word of "msgfmt", so it can be a program name with args.
5142 set dummy msgfmt; ac_word=$2
5143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5144 echo "configure:5145: checking for $ac_word" >&5
5145 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5150 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5154 for ac_dir in $PATH; do
5155 test -z "$ac_dir" && ac_dir=.
5156 if test -f $ac_dir/$ac_word; then
5157 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5158 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5164 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="msgfmt"
5168 GMSGFMT="$gcc_cv_path_GMSGFMT"
5169 if test -n "$GMSGFMT"; then
5170 echo "$ac_t""$GMSGFMT" 1>&6
5172 echo "$ac_t""no" 1>&6
5175 if test "$GMSGFMT" = "msgfmt"; then
5176 create_catalogs="no"
5179 # Extract the first word of "xgettext", so it can be a program name with args.
5180 set dummy xgettext; ac_word=$2
5181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5182 echo "configure:5183: checking for $ac_word" >&5
5183 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5188 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5192 for ac_dir in $PATH; do
5193 test -z "$ac_dir" && ac_dir=.
5194 if test -f $ac_dir/$ac_word; then
5195 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5196 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5202 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5206 XGETTEXT="$gcc_cv_path_XGETTEXT"
5207 if test -n "$XGETTEXT"; then
5208 echo "$ac_t""$XGETTEXT" 1>&6
5210 echo "$ac_t""no" 1>&6
5213 USE_INCLUDED_LIBINTL=yes
5217 INTLDEPS='$(top_builddir)/intl/libintl.a'
5219 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5220 nls_cv_header_intl=intl/libintl.h
5221 nls_cv_header_libgt=intl/libgettext.h
5224 echo "$ac_t""no" 1>&6
5230 if test "$CATOBJEXT" = "NONE"; then
5231 nls_cv_use_gnu_gettext=yes
5235 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5236 INTLOBJS="\$(GETTOBJS)"
5237 # Extract the first word of "msgfmt", so it can be a program name with args.
5238 set dummy msgfmt; ac_word=$2
5239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5240 echo "configure:5241: checking for $ac_word" >&5
5241 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5246 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5250 for ac_dir in $PATH; do
5251 test -z "$ac_dir" && ac_dir=.
5252 if test -f $ac_dir/$ac_word; then
5253 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5254 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5260 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="msgfmt"
5264 MSGFMT="$gcc_cv_path_MSGFMT"
5265 if test -n "$MSGFMT"; then
5266 echo "$ac_t""$MSGFMT" 1>&6
5268 echo "$ac_t""no" 1>&6
5271 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5272 set dummy gmsgfmt; ac_word=$2
5273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_word" >&5
5275 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5280 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5283 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5288 for ac_dir in $ac_dummy; do
5289 test -z "$ac_dir" && ac_dir=.
5290 if test -f $ac_dir/$ac_word; then
5291 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5296 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5300 GMSGFMT="$gcc_cv_path_GMSGFMT"
5301 if test -n "$GMSGFMT"; then
5302 echo "$ac_t""$GMSGFMT" 1>&6
5304 echo "$ac_t""no" 1>&6
5307 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
5308 create_catalogs="no"
5310 # Extract the first word of "xgettext", so it can be a program name with args.
5311 set dummy xgettext; ac_word=$2
5312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_word" >&5
5314 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5319 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5323 for ac_dir in $PATH; do
5324 test -z "$ac_dir" && ac_dir=.
5325 if test -f $ac_dir/$ac_word; then
5326 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5327 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5333 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5337 XGETTEXT="$gcc_cv_path_XGETTEXT"
5338 if test -n "$XGETTEXT"; then
5339 echo "$ac_t""$XGETTEXT" 1>&6
5341 echo "$ac_t""no" 1>&6
5345 USE_INCLUDED_LIBINTL=yes
5349 INTLDEPS='$(top_builddir)/intl/libintl.a'
5351 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5352 nls_cv_header_intl=intl/libintl.h
5353 nls_cv_header_libgt=intl/libgettext.h
5356 if test "$XGETTEXT" != ":"; then
5357 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5360 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5367 # We need to process the po/ directory.
5371 nls_cv_header_intl=intl/libintl.h
5372 nls_cv_header_libgt=intl/libgettext.h
5378 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5379 # because some of the sources are only built for this goal.
5380 if test "$PACKAGE" = gettext; then
5382 USE_INCLUDED_LIBINTL=yes
5385 for lang in $ALL_LINGUAS; do
5386 GMOFILES="$GMOFILES $lang.gmo"
5387 POFILES="$POFILES $lang.po"
5403 if test "x$create_catalogs" = "xno"; then
5404 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
5407 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
5408 if test "x$ALL_LINGUAS" = "x"; then
5411 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5412 echo "configure:5413: checking for catalogs to be installed" >&5
5413 if test "x$LINGUAS" = "x"; then
5414 LINGUAS=$ALL_LINGUAS
5417 for lang in $ALL_LINGUAS; do
5418 case " $LINGUAS " in
5419 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5422 LINGUAS=$NEW_LINGUAS
5424 echo "$ac_t""$LINGUAS" 1>&6
5427 if test -n "$LINGUAS"; then
5428 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5432 if test $ac_cv_header_locale_h = yes; then
5433 INCLUDE_LOCALE_H="#include <locale.h>"
5436 /* The system does not provide the header <locale.h>. Take care yourself. */"
5440 test -d intl || mkdir intl
5441 if test "$CATOBJEXT" = ".cat"; then
5442 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5443 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5444 echo "configure:5445: checking for linux/version.h" >&5
5445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5451 #include <linux/version.h>
5453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5454 { (eval echo configure:5455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5456 if test -z "$ac_err"; then
5458 eval "ac_cv_header_$ac_safe=yes"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 eval "ac_cv_header_$ac_safe=no"
5468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5472 echo "$ac_t""no" 1>&6
5477 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
5479 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5480 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
5482 if test "$PACKAGE" = "gettext"; then
5493 if test -n "$ac_aux_dir"; then
5494 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5496 if test -z "$MKINSTALLDIRS"; then
5497 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5504 test -d po || mkdir po
5505 if test "x$srcdir" != "x."; then
5506 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5507 posrcprefix="$srcdir/"
5509 posrcprefix="../$srcdir/"
5515 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5516 < $srcdir/po/POTFILES.in > po/POTFILES
5518 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
5520 # Windows32 Registry support for specifying GCC installation paths.
5521 # Check whether --enable-win32-registry or --disable-win32-registry was given.
5522 if test "${enable_win32_registry+set}" = set; then
5523 enableval="$enable_win32_registry"
5528 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
5529 echo "configure:5530: checking whether windows registry support is requested" >&5
5530 if test x$enable_win32_registry != xno; then
5531 cat >> confdefs.h <<\EOF
5532 #define ENABLE_WIN32_REGISTRY 1
5535 echo "$ac_t""yes" 1>&6
5537 echo "$ac_t""no" 1>&6
5540 # Check if user specified a different registry key.
5541 case x${enable_win32_registry} in
5544 gcc_cv_win32_registry_key="$VERSION"
5547 # no registry lookup.
5548 gcc_cv_win32_registry_key=''
5551 # user-specified key.
5552 gcc_cv_win32_registry_key="$enable_win32_registry"
5556 if test x$enable_win32_registry != xno; then
5557 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
5558 echo "configure:5559: checking registry key on windows hosts" >&5
5559 cat >> confdefs.h <<EOF
5560 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
5563 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
5566 # Get an absolute path to the GCC top-level source directory
5572 # Conditionalize the makefile for this host machine.
5573 # Make-host contains the concatenation of all host makefile fragments
5574 # [there can be more than one]. This file is built by configure.frag.
5575 host_overrides=Make-host
5576 dep_host_xmake_file=
5577 for f in .. ${host_xmake_file}
5579 if test -f ${srcdir}/config/$f
5581 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5585 # Conditionalize the makefile for this target machine.
5586 # Make-target contains the concatenation of all host makefile fragments
5587 # [there can be more than one]. This file is built by configure.frag.
5588 target_overrides=Make-target
5590 for f in .. ${tmake_file}
5592 if test -f ${srcdir}/config/$f
5594 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5598 # If the host doesn't support symlinks, modify CC in
5599 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5600 # Otherwise, we can use "CC=$(CC)".
5602 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
5604 cc_set_by_configure="\$(CC)"
5605 quoted_cc_set_by_configure="\$(CC)"
5606 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5609 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5611 symbolic_link="cp -p"
5615 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5616 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
5617 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5621 out_object_file=`basename $out_file .c`.o
5624 for f in $tm_file; do
5627 tm_file_list="${tm_file_list} $f" ;;
5628 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
5633 for f in $host_xm_file; do
5635 auto-host.h | gansidecl.h | hwint.h )
5636 host_xm_file_list="${host_xm_file_list} $f" ;;
5637 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
5642 for f in $build_xm_file; do
5644 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
5645 build_xm_file_list="${build_xm_file_list} $f" ;;
5646 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
5650 # Define macro CROSS_COMPILE in compilation
5651 # if this is a cross-compiler.
5652 # Also use all.cross instead of all.internal
5653 # and add cross-make to Makefile.
5654 cross_overrides="/dev/null"
5655 if test x$host != x$target
5657 cross_defines="CROSS=-DCROSS_COMPILE"
5658 cross_overrides="${topdir}/cross-make"
5661 # If this is a cross-compiler that does not
5662 # have its own set of headers then define
5665 # If this is using newlib, then define inhibit_libc in
5666 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5667 # libgcc.a, but that's OK because newlib should have its own version of
5670 if test x$host != x$target && test x$with_headers = x; then
5671 inhibit_libc=-Dinhibit_libc
5673 if test x$with_newlib = xyes; then
5674 inhibit_libc=-Dinhibit_libc
5679 # When building gcc with a cross-compiler, we need to fix a few things.
5680 # This must come after cross-make as we want all.build to override
5682 build_overrides="/dev/null"
5683 if test x$build != x$host
5685 build_overrides="${topdir}/build-make"
5688 # Expand extra_headers to include complete path.
5689 # This substitutes for lots of t-* files.
5691 if test "x$extra_headers" = x
5694 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5695 for file in $extra_headers;
5697 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5701 if test x$use_collect2 = xno; then
5705 # Add a definition of USE_COLLECT2 if system wants one.
5706 # Also tell toplev.c what to do.
5707 # This substitutes for lots of t-* files.
5708 if test x$use_collect2 = x
5713 will_use_collect2="collect2"
5714 maybe_use_collect2="-DUSE_COLLECT2"
5717 # If we have gas in the build tree, make a link to it.
5718 if test -f ../gas/Makefile; then
5719 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5722 # If we have nm in the build tree, make a link to it.
5723 if test -f ../binutils/Makefile; then
5724 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
5727 # If we have ld in the build tree, make a link to it.
5728 if test -f ../ld/Makefile; then
5729 # if test x$use_collect2 = x; then
5730 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5732 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5736 # Figure out what assembler we will be using.
5737 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
5738 echo "configure:5739: checking what assembler to use" >&5
5740 gcc_cv_gas_major_version=
5741 gcc_cv_gas_minor_version=
5742 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5743 if test -x "$DEFAULT_ASSEMBLER"; then
5744 gcc_cv_as="$DEFAULT_ASSEMBLER"
5745 elif test -x "$AS"; then
5747 elif test -x as$host_exeext; then
5748 # Build using assembler in the current directory.
5749 gcc_cv_as=./as$host_exeext
5750 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
5751 # Single tree build which includes gas.
5752 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
5754 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5755 if test x$gcc_cv_gas_version != x; then
5759 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5760 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5763 if test "x$gcc_cv_as" = x -a x$host = x$target; then
5765 # Search the same directories that the installed compiler will
5766 # search. Else we may find the wrong assembler and lose. If we
5767 # do not find a suitable assembler binary, then try the user's
5770 # Also note we have to check MD_EXEC_PREFIX before checking the
5771 # user's path. Unfortunately, there is no good way to get at the
5772 # value of MD_EXEC_PREFIX here. So we do a brute force search
5773 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5774 # to be fixed as part of the make/configure rewrite too.
5776 if test "x$exec_prefix" = xNONE; then
5777 if test "x$prefix" = xNONE; then
5778 test_prefix=/usr/local
5783 test_prefix=$exec_prefix
5786 # If the loop below does not find an assembler, then use whatever
5787 # one we can find in the users's path.
5791 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
5792 $test_prefix/lib/gcc-lib/$target \
5793 /usr/lib/gcc/$target/$gcc_version \
5794 /usr/lib/gcc/$target \
5795 $test_prefix/$target/bin/$target/$gcc_version \
5796 $test_prefix/$target/bin \
5801 /bsd43/usr/lib/cmplrs/cc \
5802 /usr/cross64/usr/bin \
5803 /usr/lib/cmplrs/cc \
5804 /sysv/usr/lib/cmplrs/cc \
5805 /svr4/usr/lib/cmplrs/cc \
5808 for dir in $test_dirs; do
5809 if test -f $dir/as$host_exeext; then
5810 gcc_cv_as=$dir/as$host_exeext
5815 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5816 echo "$ac_t"""newly built gas"" 1>&6
5818 echo "$ac_t""$gcc_cv_as" 1>&6
5821 # Figure out what nm we will be using.
5822 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
5823 echo "configure:5824: checking what nm to use" >&5
5824 if test -x nm$host_exeext; then
5825 gcc_cv_nm=./nm$host_exeext
5826 elif test x$host = x$target; then
5828 gcc_cv_nm=nm$host_exeext
5830 echo "$ac_t""$gcc_cv_nm" 1>&6
5832 # Figure out what assembler alignment features are present.
5833 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5834 echo "configure:5835: checking assembler alignment features" >&5
5835 gcc_cv_as_alignment_features=none
5836 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5837 # Gas version 2.6 and later support for .balign and .p2align.
5838 # bytes to skip when using .p2align.
5839 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
5840 gcc_cv_as_alignment_features=".balign and .p2align"
5841 cat >> confdefs.h <<\EOF
5842 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5846 # Gas version 2.8 and later support specifying the maximum
5847 # bytes to skip when using .p2align.
5848 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
5849 gcc_cv_as_alignment_features=".p2align including maximum skip"
5850 cat >> confdefs.h <<\EOF
5851 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5855 elif test x$gcc_cv_as != x; then
5856 # Check if we have .balign and .p2align
5857 echo ".balign 4" > conftest.s
5858 echo ".p2align 2" >> conftest.s
5859 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5860 gcc_cv_as_alignment_features=".balign and .p2align"
5861 cat >> confdefs.h <<\EOF
5862 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5866 rm -f conftest.s conftest.o
5867 # Check if specifying the maximum bytes to skip when
5868 # using .p2align is supported.
5869 echo ".p2align 4,,7" > conftest.s
5870 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5871 gcc_cv_as_alignment_features=".p2align including maximum skip"
5872 cat >> confdefs.h <<\EOF
5873 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5877 rm -f conftest.s conftest.o
5879 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5881 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5882 echo "configure:5883: checking assembler subsection support" >&5
5883 gcc_cv_as_subsections=no
5884 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5885 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
5886 gcc_cv_as_subsections="working .subsection -1"
5888 elif test x$gcc_cv_as != x; then
5889 # Check if we have .subsection
5890 echo ".subsection 1" > conftest.s
5891 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5892 gcc_cv_as_subsections=".subsection"
5893 if test x$gcc_cv_nm != x; then
5894 cat > conftest.s <<EOF
5895 conftest_label1: .word 0
5897 conftest_label2: .word 0
5900 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5901 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
5902 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
5903 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
5906 gcc_cv_as_subsections="working .subsection -1"
5911 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5913 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
5914 cat >> confdefs.h <<\EOF
5915 #define HAVE_GAS_SUBSECTION_ORDERING 1
5919 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
5921 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
5922 echo "configure:5923: checking assembler weak support" >&5
5924 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5925 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
5926 gcc_cv_as_weak="yes"
5928 elif test x$gcc_cv_as != x; then
5929 # Check if we have .weak
5930 echo " .weak foobar" > conftest.s
5931 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5932 gcc_cv_as_weak="yes"
5934 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5936 if test x"$gcc_cv_as_weak" = xyes; then
5937 cat >> confdefs.h <<\EOF
5938 #define HAVE_GAS_WEAK 1
5942 echo "$ac_t""$gcc_cv_as_weak" 1>&6
5944 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
5945 echo "configure:5946: checking assembler hidden support" >&5
5947 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5948 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
5949 gcc_cv_as_hidden="yes"
5951 elif test x$gcc_cv_as != x; then
5952 # Check if we have .hidden
5953 echo " .hidden foobar" > conftest.s
5954 echo "foobar:" >> conftest.s
5955 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5956 gcc_cv_as_hidden="yes"
5958 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5960 if test x"$gcc_cv_as_hidden" = xyes; then
5961 cat >> confdefs.h <<\EOF
5962 #define HAVE_GAS_HIDDEN 1
5966 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
5970 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
5971 echo "configure:5972: checking assembler .register pseudo-op support" >&5
5972 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5976 gcc_cv_as_register_pseudo_op=unknown
5977 if test x$gcc_cv_as != x; then
5978 # Check if we have .register
5979 echo ".register %g2, #scratch" > conftest.s
5980 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5981 gcc_cv_as_register_pseudo_op=yes
5983 gcc_cv_as_register_pseudo_op=no
5985 rm -f conftest.s conftest.o
5990 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
5991 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
5992 cat >> confdefs.h <<\EOF
5993 #define HAVE_AS_REGISTER_PSEUDO_OP 1
5998 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
5999 echo "configure:6000: checking assembler supports -relax" >&5
6000 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6004 gcc_cv_as_relax_opt=unknown
6005 if test x$gcc_cv_as != x; then
6006 # Check if gas supports -relax
6007 echo ".text" > conftest.s
6008 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
6009 gcc_cv_as_relax_opt=yes
6011 gcc_cv_as_relax_opt=no
6013 rm -f conftest.s conftest.o
6018 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
6019 if test "x$gcc_cv_as_relax_opt" = xyes; then
6020 cat >> confdefs.h <<\EOF
6021 #define HAVE_AS_RELAX_OPTION 1
6028 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
6029 echo "configure:6030: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
6030 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6034 if test -n "$gcc_cv_as"; then
6035 echo ".xword foo" > conftest.s
6036 gcc_cv_as_flags64=no
6037 for flag in "-xarch=v9" "-64 -Av9"; do
6038 if $gcc_cv_as $flag -o conftest.o conftest.s \
6039 > /dev/null 2>&1; then
6040 gcc_cv_as_flags64=$flag
6044 rm -f conftest.s conftest.o
6046 if test "$gas" = yes; then
6047 gcc_cv_as_flags64="-64 -Av9"
6049 gcc_cv_as_flags64="-xarch=v9"
6055 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
6056 if test "x$gcc_cv_as_flags64" = xno; then
6058 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6059 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6062 cat >> confdefs.h <<EOF
6063 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
6068 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
6072 if test "x$gcc_cv_as_flags64" != xno; then
6073 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6074 echo "configure:6075: checking for assembler offsetable %lo() support" >&5
6075 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6076 echo $ac_n "(cached) $ac_c" 1>&6
6079 gcc_cv_as_offsetable_lo10=unknown
6080 if test "x$gcc_cv_as" != x; then
6081 # Check if assembler has offsetable %lo()
6082 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6083 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6084 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
6086 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
6087 > /dev/null 2>&1; then
6088 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
6089 gcc_cv_as_offsetable_lo10=no
6091 gcc_cv_as_offsetable_lo10=yes
6094 gcc_cv_as_offsetable_lo10=no
6096 rm -f conftest.s conftest.o conftest1.s conftest1.o
6101 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6102 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
6103 cat >> confdefs.h <<\EOF
6104 #define HAVE_AS_OFFSETABLE_LO10 1
6112 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6113 echo "configure:6114: checking assembler instructions" >&5
6114 gcc_cv_as_instructions=
6115 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6116 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
6117 gcc_cv_as_instructions="filds fists"
6119 elif test x$gcc_cv_as != x; then
6120 set "filds fists" "filds mem; fists mem"
6123 echo "$2" > conftest.s
6124 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6125 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
6129 rm -f conftest.s conftest.o
6131 if test x"$gcc_cv_as_instructions" != x; then
6132 cat >> confdefs.h <<EOF
6133 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6137 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6141 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6142 echo "configure:6143: checking assembler dwarf2 debug_line support" >&5
6143 gcc_cv_as_dwarf2_debug_line=no
6144 # ??? Not all targets support dwarf2 debug_line, even within a version
6145 # of gas. Moreover, we need to emit a valid instruction to trigger any
6146 # info to the output file. So, as supported targets are added to gas 2.11,
6147 # add some instruction here to (also) show we expect this might work.
6148 # ??? Once 2.11 is released, probably need to add first known working
6149 # version to the per-target configury.
6151 i?86*-*-* | mips*-*-* | alpha*-*-* | sparc*-*-*)
6158 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
6160 if test "$gcc_cv_gas_major_version" -eq 2 \
6161 -a "$gcc_cv_gas_minor_version" -ge 11 \
6162 -o "$gcc_cv_gas_major_version" -gt 2 \
6163 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
6164 && test x"$insn" != x ; then
6165 gcc_cv_as_dwarf2_debug_line="yes"
6167 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
6168 echo ' .file 0 "conftest.s"' > conftest.s
6169 echo ' .loc 0 3 0' >> conftest.s
6170 echo " $insn" >> conftest.s
6171 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
6172 && grep debug_line conftest.o > /dev/null 2>&1 ; then
6173 gcc_cv_as_dwarf2_debug_line="yes"
6175 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6177 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
6178 cat >> confdefs.h <<\EOF
6179 #define HAVE_AS_DWARF2_DEBUG_LINE 1
6183 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
6185 # Figure out what language subdirectories are present.
6186 # Look if the user specified --enable-languages="..."; if not, use
6187 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6189 if test x"${enable_languages+set}" != xset; then
6190 if test x"${LANGUAGES+set}" = xset; then
6191 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
6193 enable_languages=all
6196 if test x"${enable_languages}" = x; then
6197 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
6201 for lang in ${srcdir}/*/config-lang.in ..
6205 # The odd quoting in the next line works around
6206 # an apparent bug in bash 1.12 on linux.
6207 ${srcdir}/[*]/config-lang.in) ;;
6209 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6210 if test "x$lang_alias" = x
6212 echo "$lang doesn't set \$language." 1>&2
6215 if test x"${enable_languages}" = xall && test x"${lang_alias}" != xCHILL; then
6218 case "${enable_languages}" in
6219 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
6227 if test x"${add_this_lang}" = xyes; then
6229 ${srcdir}/ada/config-lang.in)
6230 if test x$gnat = xyes ; then
6231 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6235 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6243 # Make gthr-default.h if we have a thread file.
6245 if test $thread_file != single; then
6246 rm -f gthr-default.h
6247 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
6248 gthread_flags=-DHAVE_GTHR_DEFAULT
6252 # Find out what GC implementation we want, or may, use.
6253 # Check whether --with-gc or --without-gc was given.
6254 if test "${with_gc+set}" = set; then
6261 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
6265 if test $ac_cv_func_mmap_anywhere = yes \
6266 || test $ac_cv_func_valloc = yes; then
6274 echo "Using $GGC for garbage collection."
6276 # Use the system's zlib library.
6278 zlibinc="-I\$(srcdir)/../zlib"
6279 # Check whether --with-system-zlib or --without-system-zlib was given.
6280 if test "${with_system_zlib+set}" = set; then
6281 withval="$with_system_zlib"
6290 # Build a new-abi (c++) system
6291 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
6292 if test "${enable_new_gxx_abi+set}" = set; then
6293 enableval="$enable_new_gxx_abi"
6296 enable_new_gxx_abi=yes
6300 if test x$enable_new_gxx_abi = xyes; then
6301 cat >> confdefs.h <<\EOF
6302 #define ENABLE_NEW_GXX_ABI 1
6305 GXX_ABI_FLAG='-fnew-abi'
6311 cat >> confdefs.h <<EOF
6312 #define ENABLE_STD_NAMESPACE $ac_esn
6318 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6319 echo "configure:6320: checking whether to enable maintainer-specific portions of Makefiles" >&5
6320 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6321 if test "${enable_maintainer_mode+set}" = set; then
6322 enableval="$enable_maintainer_mode"
6323 maintainer_mode=$enableval
6329 echo "$ac_t""$maintainer_mode" 1>&6
6331 if test "$maintainer_mode" = "yes"; then
6337 # Make empty files to contain the specs and options for each language.
6338 # Then add #include lines to for a compiler that has specs and/or options.
6343 rm -f specs.h options.h gencheck.h
6344 touch specs.h options.h gencheck.h
6345 for subdir in . $subdirs
6347 if test -f $srcdir/$subdir/lang-specs.h; then
6348 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
6349 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
6351 if test -f $srcdir/$subdir/lang-options.h; then
6352 echo "#include \"$subdir/lang-options.h\"" >>options.h
6353 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
6355 if test -f $srcdir/$subdir/$subdir-tree.def; then
6356 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
6357 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
6361 # These (without "all_") are set in each config-lang.in.
6362 # `language' must be a single word so is spelled singularly.
6368 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
6369 # List of language makefile fragments.
6374 # Add the language fragments.
6375 # Languages are added via two mechanisms. Some information must be
6376 # recorded in makefile variables, these are defined in config-lang.in.
6377 # We accumulate them and plug them into the main Makefile.
6378 # The other mechanism is a set of hooks for each of the main targets
6379 # like `clean', `install', etc.
6381 language_fragments="Make-lang"
6382 language_hooks="Make-hooks"
6384 for s in .. $subdirs
6396 . ${srcdir}/$s/config-lang.in
6397 if test "x$language" = x
6399 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
6402 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
6403 if test -f ${srcdir}/$s/Makefile.in
6404 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
6406 all_languages="$all_languages $language"
6407 if test "x$boot_language" = xyes
6409 all_boot_languages="$all_boot_languages $language"
6411 all_compilers="$all_compilers $compilers"
6412 all_stagestuff="$all_stagestuff $stagestuff"
6413 all_diff_excludes="$all_diff_excludes $diff_excludes"
6414 all_headers="$all_headers $headers"
6415 all_outputs="$all_outputs $outputs"
6416 all_lib2funcs="$all_lib2funcs $lib2funcs"
6420 # Since we can't use `::' targets, we link each language in
6421 # with a set of hooks, reached indirectly via lang.${target}.
6425 target_list="all.build all.cross start.encap rest.encap \
6427 install-normal install-common install-info install-man \
6429 mostlyclean clean distclean extraclean maintainer-clean \
6430 stage1 stage2 stage3 stage4"
6431 for t in $target_list
6434 for lang in .. $all_languages
6436 if test $lang != ".."; then
6440 echo "lang.$t: $x" >> Make-hooks
6443 # If we're not building in srcdir, create .gdbinit.
6445 if test ! -f Makefile.in; then
6446 echo "dir ." > .gdbinit
6447 echo "dir ${srcdir}" >> .gdbinit
6448 if test x$gdb_needs_out_file_path = xyes
6450 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
6452 if test "x$subdirs" != x; then
6455 echo "dir ${srcdir}/$s" >> .gdbinit
6458 echo "source ${srcdir}/.gdbinit" >> .gdbinit
6461 # Define variables host_canonical and build_canonical
6462 # because some Cygnus local changes in the Makefile depend on them.
6463 build_canonical=${build}
6464 host_canonical=${host}
6466 if test "${host}" != "${target}" ; then
6467 target_subdir=${target}/
6473 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
6474 # absolute path for gcc_tooldir based on inserting the number of up-directory
6475 # movements required to get from $(exec_prefix) to $(prefix) into the basic
6476 # $(libsubdir)/@(unlibsubdir) based path.
6477 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
6478 # make and thus we'd get different behavior depending on where we built the
6480 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
6481 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
6483 # An explanation of the sed strings:
6484 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
6485 # -e 's|/$||' match a trailing forward slash and eliminates it
6486 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
6487 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
6489 # (*) Note this pattern overwrites the first character of the string
6490 # with a forward slash if one is not already present. This is not a
6491 # problem because the exact names of the sub-directories concerned is
6492 # unimportant, just the number of them matters.
6494 # The practical upshot of these patterns is like this:
6496 # prefix exec_prefix result
6497 # ------ ----------- ------
6499 # /foo/ /foo/bar ../
6500 # /foo /foo/bar/ ../
6501 # /foo/ /foo/bar/ ../
6502 # /foo /foo/bar/ugg ../../
6505 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
6510 # Nothing to do for FLOAT_H, float_format already handled.
6514 # Process the language and host/target makefile fragments.
6515 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
6517 # Substitute configuration variables
6575 # Echo that links are built
6576 if test x$host = x$target
6584 if test x$host != x$build
6586 str3=" on a $build system"
6589 if test "x$str2" != x || test "x$str3" != x
6594 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
6596 if test "x$str2" != x || test "x$str3" != x
6598 echo " ${str2}${str3}." 1>&2
6601 # Truncate the target if necessary
6602 if test x$host_truncate_target != x; then
6603 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6606 # Configure the subdirectories
6607 # AC_CONFIG_SUBDIRS($subdirs)
6609 # Create the Makefile
6610 # and configure language subdirectories
6612 cat > confcache <<\EOF
6613 # This file is a shell script that caches the results of configure
6614 # tests run on this system so they can be shared between configure
6615 # scripts and configure runs. It is not useful on other systems.
6616 # If it contains results you don't want to keep, you may remove or edit it.
6618 # By default, configure uses ./config.cache as the cache file,
6619 # creating it if it does not exist already. You can give configure
6620 # the --cache-file=FILE option to use a different cache file; that is
6621 # what configure does when it calls configure scripts in
6622 # subdirectories, so they share the cache.
6623 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6624 # config.status only pays attention to the cache file if you give it the
6625 # --recheck option to rerun configure.
6628 # The following way of writing the cache mishandles newlines in values,
6629 # but we know of no workaround that is simple, portable, and efficient.
6630 # So, don't put newlines in cache variables' values.
6631 # Ultrix sh set writes to stderr and can't be redirected directly,
6632 # and sets the high bit in the cache file unless we assign to the vars.
6634 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6636 # `set' does not quote correctly, so add quotes (double-quote substitution
6637 # turns \\\\ into \\, and sed turns \\ into \).
6639 -e "s/'/'\\\\''/g" \
6640 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6643 # `set' quotes correctly as required by POSIX, so do not add quotes.
6644 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6647 if cmp -s $cache_file confcache; then
6650 if test -w $cache_file; then
6651 echo "updating cache $cache_file"
6652 cat confcache > $cache_file
6654 echo "not updating unwritable cache $cache_file"
6659 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6661 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6662 # Let make expand exec_prefix.
6663 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6665 # Any assignment to VPATH causes Sun make to only execute
6666 # the first set of double-colon rules, so remove it if not needed.
6667 # If there is a colon in the path, we need to keep it.
6668 if test "x$srcdir" = x.; then
6669 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6672 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6674 DEFS=-DHAVE_CONFIG_H
6676 # Without the "./", some shells look in PATH for config.status.
6677 : ${CONFIG_STATUS=./config.status}
6679 echo creating $CONFIG_STATUS
6680 rm -f $CONFIG_STATUS
6681 cat > $CONFIG_STATUS <<EOF
6683 # Generated automatically by configure.
6684 # Run this file to recreate the current configuration.
6685 # This directory was configured as follows,
6686 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6688 # $0 $ac_configure_args
6690 # Compiler output produced by configure, useful for debugging
6691 # configure, is in ./config.log if it exists.
6693 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6696 case "\$ac_option" in
6697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6698 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6699 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6700 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6701 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6703 -help | --help | --hel | --he | --h)
6704 echo "\$ac_cs_usage"; exit 0 ;;
6705 *) echo "\$ac_cs_usage"; exit 1 ;;
6709 ac_given_srcdir=$srcdir
6711 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6713 cat >> $CONFIG_STATUS <<EOF
6715 # Protect against being on the right side of a sed subst in config.status.
6716 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6717 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6721 s%@CFLAGS@%$CFLAGS%g
6722 s%@CPPFLAGS@%$CPPFLAGS%g
6723 s%@CXXFLAGS@%$CXXFLAGS%g
6724 s%@FFLAGS@%$FFLAGS%g
6726 s%@LDFLAGS@%$LDFLAGS%g
6728 s%@exec_prefix@%$exec_prefix%g
6729 s%@prefix@%$prefix%g
6730 s%@program_transform_name@%$program_transform_name%g
6731 s%@bindir@%$bindir%g
6732 s%@sbindir@%$sbindir%g
6733 s%@libexecdir@%$libexecdir%g
6734 s%@datadir@%$datadir%g
6735 s%@sysconfdir@%$sysconfdir%g
6736 s%@sharedstatedir@%$sharedstatedir%g
6737 s%@localstatedir@%$localstatedir%g
6738 s%@libdir@%$libdir%g
6739 s%@includedir@%$includedir%g
6740 s%@oldincludedir@%$oldincludedir%g
6741 s%@infodir@%$infodir%g
6742 s%@mandir@%$mandir%g
6743 s%@maybe_cpplib@%$maybe_cpplib%g
6744 s%@enable_shared@%$enable_shared%g
6746 s%@host_alias@%$host_alias%g
6747 s%@host_cpu@%$host_cpu%g
6748 s%@host_vendor@%$host_vendor%g
6749 s%@host_os@%$host_os%g
6750 s%@target@%$target%g
6751 s%@target_alias@%$target_alias%g
6752 s%@target_cpu@%$target_cpu%g
6753 s%@target_vendor@%$target_vendor%g
6754 s%@target_os@%$target_os%g
6756 s%@build_alias@%$build_alias%g
6757 s%@build_cpu@%$build_cpu%g
6758 s%@build_vendor@%$build_vendor%g
6759 s%@build_os@%$build_os%g
6761 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
6762 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
6763 s%@strict1_warn@%$strict1_warn%g
6764 s%@warn_cflags@%$warn_cflags%g
6765 s%@stage1_cflags@%$stage1_cflags%g
6766 s%@SET_MAKE@%$SET_MAKE%g
6770 s%@RANLIB@%$RANLIB%g
6771 s%@INSTALL@%$INSTALL%g
6772 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6773 s%@INSTALL_DATA@%$INSTALL_DATA%g
6776 s%@MAKEINFO@%$MAKEINFO%g
6777 s%@BUILD_INFO@%$BUILD_INFO%g
6778 s%@INSTALL_INFO@%$INSTALL_INFO%g
6781 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
6782 s%@vfprintf@%$vfprintf%g
6783 s%@doprint@%$doprint%g
6784 s%@manext@%$manext%g
6785 s%@objext@%$objext%g
6786 s%@PACKAGE@%$PACKAGE%g
6787 s%@VERSION@%$VERSION%g
6788 s%@CHECK_PO@%$CHECK_PO%g
6789 s%@ALLOCA@%$ALLOCA%g
6790 s%@USE_NLS@%$USE_NLS%g
6791 s%@MSGFMT@%$MSGFMT%g
6792 s%@GMSGFMT@%$GMSGFMT%g
6793 s%@XGETTEXT@%$XGETTEXT%g
6794 s%@GENCAT@%$GENCAT%g
6795 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6796 s%@CATALOGS@%$CATALOGS%g
6797 s%@CATOBJEXT@%$CATOBJEXT%g
6798 s%@DATADIRNAME@%$DATADIRNAME%g
6799 s%@GMOFILES@%$GMOFILES%g
6800 s%@INSTOBJEXT@%$INSTOBJEXT%g
6801 s%@INTLDEPS@%$INTLDEPS%g
6802 s%@INTLLIBS@%$INTLLIBS%g
6803 s%@INTLOBJS@%$INTLOBJS%g
6804 s%@POFILES@%$POFILES%g
6806 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6808 s%@GT_YES@%$GT_YES%g
6809 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6811 s%@inhibit_libc@%$inhibit_libc%g
6812 s%@gthread_flags@%$gthread_flags%g
6814 s%@zlibdir@%$zlibdir%g
6815 s%@zlibinc@%$zlibinc%g
6816 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
6817 s%@HAVE_LIBSTDCXX_V3@%$HAVE_LIBSTDCXX_V3%g
6819 s%@build_canonical@%$build_canonical%g
6820 s%@host_canonical@%$host_canonical%g
6821 s%@target_subdir@%$target_subdir%g
6822 s%@gcc_tooldir@%$gcc_tooldir%g
6823 s%@dollar@%$dollar%g
6824 s%@objdir@%$objdir%g
6825 s%@subdirs@%$subdirs%g
6826 s%@all_boot_languages@%$all_boot_languages%g
6827 s%@all_compilers@%$all_compilers%g
6828 s%@all_diff_excludes@%$all_diff_excludes%g
6829 s%@all_headers@%$all_headers%g
6830 s%@all_lang_makefiles@%$all_lang_makefiles%g
6831 s%@all_languages@%$all_languages%g
6832 s%@all_lib2funcs@%$all_lib2funcs%g
6833 s%@all_stagestuff@%$all_stagestuff%g
6834 s%@build_exeext@%$build_exeext%g
6835 s%@build_install_headers_dir@%$build_install_headers_dir%g
6836 s%@build_xm_file_list@%$build_xm_file_list%g
6837 s%@cc_set_by_configure@%$cc_set_by_configure%g
6838 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
6839 s%@cpp_install_dir@%$cpp_install_dir%g
6840 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6841 s%@dep_tmake_file@%$dep_tmake_file%g
6842 s%@extra_c_flags@%$extra_c_flags%g
6843 s%@extra_headers_list@%$extra_headers_list%g
6844 s%@extra_objs@%$extra_objs%g
6845 s%@extra_parts@%$extra_parts%g
6846 s%@extra_passes@%$extra_passes%g
6847 s%@extra_programs@%$extra_programs%g
6848 s%@float_h_file@%$float_h_file%g
6849 s%@gcc_config_arguments@%$gcc_config_arguments%g
6850 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
6851 s%@gcc_version@%$gcc_version%g
6852 s%@gcc_version_full@%$gcc_version_full%g
6853 s%@gcc_version_trigger@%$gcc_version_trigger%g
6854 s%@host_exeext@%$host_exeext%g
6855 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6856 s%@host_xm_file_list@%$host_xm_file_list%g
6857 s%@install@%$install%g
6858 s%@lang_options_files@%$lang_options_files%g
6859 s%@lang_specs_files@%$lang_specs_files%g
6860 s%@lang_tree_files@%$lang_tree_files%g
6861 s%@local_prefix@%$local_prefix%g
6862 s%@maybe_use_collect2@%$maybe_use_collect2%g
6863 s%@md_file@%$md_file%g
6864 s%@objc_boehm_gc@%$objc_boehm_gc%g
6865 s%@out_file@%$out_file%g
6866 s%@out_object_file@%$out_object_file%g
6867 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6868 s%@symbolic_link@%$symbolic_link%g
6869 s%@thread_file@%$thread_file%g
6870 s%@tm_file_list@%$tm_file_list%g
6871 s%@will_use_collect2@%$will_use_collect2%g
6872 /@target_overrides@/r $target_overrides
6873 s%@target_overrides@%%g
6874 /@host_overrides@/r $host_overrides
6875 s%@host_overrides@%%g
6876 s%@cross_defines@%$cross_defines%g
6877 /@cross_overrides@/r $cross_overrides
6878 s%@cross_overrides@%%g
6879 /@build_overrides@/r $build_overrides
6880 s%@build_overrides@%%g
6881 /@language_fragments@/r $language_fragments
6882 s%@language_fragments@%%g
6883 /@language_hooks@/r $language_hooks
6884 s%@language_hooks@%%g
6889 cat >> $CONFIG_STATUS <<\EOF
6891 # Split the substitutions into bite-sized pieces for seds with
6892 # small command number limits, like on Digital OSF/1 and HP-UX.
6893 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6894 ac_file=1 # Number of current file.
6895 ac_beg=1 # First line for current file.
6896 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6899 while $ac_more_lines; do
6900 if test $ac_beg -gt 1; then
6901 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6903 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6905 if test ! -s conftest.s$ac_file; then
6907 rm -f conftest.s$ac_file
6909 if test -z "$ac_sed_cmds"; then
6910 ac_sed_cmds="sed -f conftest.s$ac_file"
6912 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6914 ac_file=`expr $ac_file + 1`
6916 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6919 if test -z "$ac_sed_cmds"; then
6924 cat >> $CONFIG_STATUS <<EOF
6926 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
6928 cat >> $CONFIG_STATUS <<\EOF
6929 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6932 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6933 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6934 *) ac_file_in="${ac_file}.in" ;;
6937 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6939 # Remove last slash and all that follows it. Not all systems have dirname.
6940 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6941 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6942 # The file is in a subdirectory.
6943 test ! -d "$ac_dir" && mkdir "$ac_dir"
6944 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6945 # A "../" for each directory in $ac_dir_suffix.
6946 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6948 ac_dir_suffix= ac_dots=
6951 case "$ac_given_srcdir" in
6953 if test -z "$ac_dots"; then top_srcdir=.
6954 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6955 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6957 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6958 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6962 echo creating "$ac_file"
6964 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6966 *Makefile*) ac_comsub="1i\\
6967 # $configure_input" ;;
6971 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6973 s%@configure_input@%$configure_input%g
6974 s%@srcdir@%$srcdir%g
6975 s%@top_srcdir@%$top_srcdir%g
6976 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6980 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6981 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6983 # ac_d sets the value in "#define NAME VALUE" lines.
6984 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6985 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6988 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6989 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6990 ac_uB='\([ ]\)%\1#\2define\3'
6993 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6994 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6995 ac_eB='$%\1#\2define\3'
6999 if test "${CONFIG_HEADERS+set}" != set; then
7001 cat >> $CONFIG_STATUS <<EOF
7002 CONFIG_HEADERS="auto-host.h:config.in"
7004 cat >> $CONFIG_STATUS <<\EOF
7006 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7009 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7010 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7011 *) ac_file_in="${ac_file}.in" ;;
7014 echo creating $ac_file
7016 rm -f conftest.frag conftest.in conftest.out
7017 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7018 cat $ac_file_inputs > conftest.in
7022 # Transform confdefs.h into a sed script conftest.vals that substitutes
7023 # the proper values into config.h.in to produce config.h. And first:
7024 # Protect against being on the right side of a sed subst in config.status.
7025 # Protect against being in an unquoted here document in config.status.
7027 cat > conftest.hdr <<\EOF
7030 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7034 sed -n -f conftest.hdr confdefs.h > conftest.vals
7037 # This sed command replaces #undef with comments. This is necessary, for
7038 # example, in the case of _POSIX_SOURCE, which is predefined and required
7039 # on some systems where configure will not decide to define it.
7040 cat >> conftest.vals <<\EOF
7041 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7044 # Break up conftest.vals because some shells have a limit on
7045 # the size of here documents, and old seds have small limits too.
7050 ac_lines=`grep -c . conftest.vals`
7051 # grep -c gives empty output for an empty file on some AIX systems.
7052 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7053 # Write a limited-size here document to conftest.frag.
7054 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7055 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7057 sed -f conftest.frag conftest.in > conftest.out
7059 mv conftest.out conftest.in
7061 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7063 mv conftest.tail conftest.vals
7067 cat >> $CONFIG_STATUS <<\EOF
7068 rm -f conftest.frag conftest.h
7069 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7070 cat conftest.in >> conftest.h
7072 if cmp -s $ac_file conftest.h 2>/dev/null; then
7073 echo "$ac_file is unchanged"
7076 # Remove last slash and all that follows it. Not all systems have dirname.
7077 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7078 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7079 # The file is in a subdirectory.
7080 test ! -d "$ac_dir" && mkdir "$ac_dir"
7083 mv conftest.h $ac_file
7089 cat >> $CONFIG_STATUS <<EOF
7090 ac_sources="$nls_cv_header_libgt"
7091 ac_dests="$nls_cv_header_intl"
7094 cat >> $CONFIG_STATUS <<\EOF
7095 srcdir=$ac_given_srcdir
7096 while test -n "$ac_sources"; do
7097 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7098 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7100 echo "linking $srcdir/$ac_source to $ac_dest"
7102 if test ! -r $srcdir/$ac_source; then
7103 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7107 # Make relative symlinks.
7108 # Remove last slash and all that follows it. Not all systems have dirname.
7109 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7110 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7111 # The dest file is in a subdirectory.
7112 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7113 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7114 # A "../" for each directory in $ac_dest_dir_suffix.
7115 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7117 ac_dest_dir_suffix= ac_dots=
7121 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7122 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7125 # Make a symlink if possible; otherwise try a hard link.
7126 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7127 ln $srcdir/$ac_source $ac_dest; then :
7129 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7133 cat >> $CONFIG_STATUS <<EOF
7139 target_alias='${target_alias}'
7141 subdirs='${subdirs}'
7142 symbolic_link='${symbolic_link}'
7143 program_transform_set='${program_transform_set}'
7144 program_transform_name='${program_transform_name}'
7145 dep_host_xmake_file='${dep_host_xmake_file}'
7146 host_xmake_file='${host_xmake_file}'
7147 dep_tmake_file='${dep_tmake_file}'
7148 tmake_file='${tmake_file}'
7149 thread_file='${thread_file}'
7150 gcc_config_arguments='${gcc_config_arguments}'
7151 gcc_version='${gcc_version}'
7152 gcc_version_full='${gcc_version_full}'
7153 gcc_version_trigger='${gcc_version_trigger}'
7154 local_prefix='${local_prefix}'
7155 build_install_headers_dir='${build_install_headers_dir}'
7156 build_exeext='${build_exeext}'
7157 host_exeext='${host_exeext}'
7158 out_file='${out_file}'
7159 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7160 SET_MAKE='${SET_MAKE}'
7161 target_list='${target_list}'
7162 target_overrides='${target_overrides}'
7163 host_overrides='${host_overrides}'
7164 cross_defines='${cross_defines}'
7165 cross_overrides='${cross_overrides}'
7166 build_overrides='${build_overrides}'
7167 cpp_install_dir='${cpp_install_dir}'
7170 cat >> $CONFIG_STATUS <<\EOF
7171 case "$CONFIG_FILES" in *po/Makefile.in*)
7172 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7175 case x$CONFIG_HEADERS in
7176 xauto-host.h:config.in)
7179 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
7180 # bootstrapping and the installation procedure can still use
7181 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
7182 # FLAGS_TO_PASS has been modified to solve the problem there.
7183 # This is virtually a duplicate of what happens in configure.lang; we do
7184 # an extra check to make sure this only happens if ln -s can be used.
7185 if test "$symbolic_link" = "ln -s"; then
7186 for d in .. ${subdirs} ; do
7187 if test $d != ..; then
7190 for t in stage1 stage2 stage3 stage4 include
7193 $symbolic_link ../$t $t 2>/dev/null
7199 # Avoid having to add intl to our include paths.
7200 if test -f intl/libintl.h; then
7201 echo creating libintl.h
7202 echo '#include "intl/libintl.h"' >libintl.h
7207 chmod +x $CONFIG_STATUS
7208 rm -fr confdefs* $ac_clean_files
7209 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1