3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files"
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,gc,gcac; default
40 --disable-cpp don't provide a user-visible C preprocessor"
42 --with-cpp-install-dir=DIR
43 install the user visible C preprocessor in DIR
44 (relative to PREFIX) as well as PREFIX/bin"
46 --enable-c-mbchar enable multibyte characters for C and C++"
48 --enable-threads enable thread usage for target GCC
49 --enable-threads=LIB use LIB thread package for target GCC"
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime"
54 --with-dwarf2 force the default debug format to be DWARF 2"
56 --disable-shared don't provide a shared libgcc"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --enable-nls use Native Language Support (default)"
62 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 --disable-nls do not use Native Language Support"
66 --with-included-gettext use the GNU gettext library included here"
68 --disable-win32-registry
69 disable lookup of installation paths in the
70 Registry on Windows hosts
71 --enable-win32-registry enable registry lookup (default)
72 --enable-win32-registry=KEY
73 use KEY instead of GCC version as the last portion
76 --with-gc={simple,page} choose the garbage collection mechanism to use
79 --with-system-zlib use installed libz"
81 --enable-maintainer-mode
82 enable make rules and dependencies not useful
83 (and sometimes confusing) to the casual installer"
85 --enable-sjlj-exceptions
86 arrange to use setjmp/longjmp exception handling"
88 --enable-version-specific-runtime-libs
89 specify that runtime libraries should be
90 installed in a compiler-specific directory"
92 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file=./config.cache
107 program_transform_name=s,x,x,
115 bindir='${exec_prefix}/bin'
116 sbindir='${exec_prefix}/sbin'
117 libexecdir='${exec_prefix}/libexec'
118 datadir='${prefix}/share'
119 sysconfdir='${prefix}/etc'
120 sharedstatedir='${prefix}/com'
121 localstatedir='${prefix}/var'
122 libdir='${exec_prefix}/lib'
123 includedir='${prefix}/include'
124 oldincludedir='/usr/include'
125 infodir='${prefix}/info'
126 mandir='${prefix}/man'
128 # Initialize some other variables.
131 SHELL=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev=cache_file ;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
176 datadir="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev=exec_prefix ;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host | --host | --hos | --ho)
270 -host=* | --host=* | --hos=* | --ho=*)
273 -includedir | --includedir | --includedi | --included | --include \
274 | --includ | --inclu | --incl | --inc)
275 ac_prev=includedir ;;
276 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
277 | --includ=* | --inclu=* | --incl=* | --inc=*)
278 includedir="$ac_optarg" ;;
280 -infodir | --infodir | --infodi | --infod | --info | --inf)
282 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
283 infodir="$ac_optarg" ;;
285 -libdir | --libdir | --libdi | --libd)
287 -libdir=* | --libdir=* | --libdi=* | --libd=*)
288 libdir="$ac_optarg" ;;
290 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
291 | --libexe | --libex | --libe)
292 ac_prev=libexecdir ;;
293 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
294 | --libexe=* | --libex=* | --libe=*)
295 libexecdir="$ac_optarg" ;;
297 -localstatedir | --localstatedir | --localstatedi | --localstated \
298 | --localstate | --localstat | --localsta | --localst \
299 | --locals | --local | --loca | --loc | --lo)
300 ac_prev=localstatedir ;;
301 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
302 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
303 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
304 localstatedir="$ac_optarg" ;;
306 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
308 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 mandir="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
319 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
320 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
323 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
324 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
325 | --oldin | --oldi | --old | --ol | --o)
326 ac_prev=oldincludedir ;;
327 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
328 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
329 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
330 oldincludedir="$ac_optarg" ;;
332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
335 prefix="$ac_optarg" ;;
337 -program-prefix | --program-prefix | --program-prefi | --program-pref \
338 | --program-pre | --program-pr | --program-p)
339 ac_prev=program_prefix ;;
340 -program-prefix=* | --program-prefix=* | --program-prefi=* \
341 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
342 program_prefix="$ac_optarg" ;;
344 -program-suffix | --program-suffix | --program-suffi | --program-suff \
345 | --program-suf | --program-su | --program-s)
346 ac_prev=program_suffix ;;
347 -program-suffix=* | --program-suffix=* | --program-suffi=* \
348 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
349 program_suffix="$ac_optarg" ;;
351 -program-transform-name | --program-transform-name \
352 | --program-transform-nam | --program-transform-na \
353 | --program-transform-n | --program-transform- \
354 | --program-transform | --program-transfor \
355 | --program-transfo | --program-transf \
356 | --program-trans | --program-tran \
357 | --progr-tra | --program-tr | --program-t)
358 ac_prev=program_transform_name ;;
359 -program-transform-name=* | --program-transform-name=* \
360 | --program-transform-nam=* | --program-transform-na=* \
361 | --program-transform-n=* | --program-transform-=* \
362 | --program-transform=* | --program-transfor=* \
363 | --program-transfo=* | --program-transf=* \
364 | --program-trans=* | --program-tran=* \
365 | --progr-tra=* | --program-tr=* | --program-t=*)
366 program_transform_name="$ac_optarg" ;;
368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
369 | -silent | --silent | --silen | --sile | --sil)
372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
376 sbindir="$ac_optarg" ;;
378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
380 | --sharedst | --shareds | --shared | --share | --shar \
382 ac_prev=sharedstatedir ;;
383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
387 sharedstatedir="$ac_optarg" ;;
389 -site | --site | --sit)
391 -site=* | --site=* | --sit=*)
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev=sysconfdir ;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev=x_includes ;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev=x_libraries ;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE; then
561 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp='$CPP $CPPFLAGS'
584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
599 ac_n= ac_c='\c' ac_t=
607 symbolic_link='ln -s'
610 # Check for bogus environment variables.
611 # Test if LIBRARY_PATH contains the notation for the current directory
612 # since this would lead to problems installing/building glibc.
613 # LIBRARY_PATH contains the current directory if one of the following
615 # - one of the terminals (":" and ";") is the first or last sign
616 # - two terminals occur directly after each other
617 # - the path contains an element with a dot in it
618 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
619 echo "configure:620: checking LIBRARY_PATH variable" >&5
620 case ${LIBRARY_PATH} in
621 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
622 library_path_setting="contains current directory"
625 library_path_setting="ok"
628 echo "$ac_t""$library_path_setting" 1>&6
629 if test "$library_path_setting" != "ok"; then
630 { echo "configure: error:
631 *** LIBRARY_PATH shouldn't contain the current directory when
632 *** building gcc. Please change the environment variable
633 *** and run configure again." 1>&2; exit 1; }
636 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
637 # since this would lead to problems installing/building glibc.
638 # GCC_EXEC_PREFIX contains the current directory if one of the following
640 # - one of the terminals (":" and ";") is the first or last sign
641 # - two terminals occur directly after each other
642 # - the path contains an element with a dot in it
643 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
644 echo "configure:645: checking GCC_EXEC_PREFIX variable" >&5
645 case ${GCC_EXEC_PREFIX} in
646 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
647 gcc_exec_prefix_setting="contains current directory"
650 gcc_exec_prefix_setting="ok"
653 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
654 if test "$gcc_exec_prefix_setting" != "ok"; then
655 { echo "configure: error:
656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
657 *** building gcc. Please change the environment variable
658 *** and run configure again." 1>&2; exit 1; }
661 # Check for additional parameters
664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
665 if test "${with_gnu_ld+set}" = set; then
666 withval="$with_gnu_ld"
667 gnu_ld_flag="$with_gnu_ld"
673 # With pre-defined ld
674 # Check whether --with-ld or --without-ld was given.
675 if test "${with_ld+set}" = set; then
677 DEFAULT_LINKER="$with_ld"
680 if test x"${DEFAULT_LINKER+set}" = x"set"; then
681 if test ! -x "$DEFAULT_LINKER"; then
682 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
683 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
686 cat >> confdefs.h <<EOF
687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
693 # Check whether --with-gnu-as or --without-gnu-as was given.
694 if test "${with_gnu_as+set}" = set; then
695 withval="$with_gnu_as"
696 gas_flag="$with_gnu_as"
702 # Check whether --with-as or --without-as was given.
703 if test "${with_as+set}" = set; then
705 DEFAULT_ASSEMBLER="$with_as"
708 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
709 if test ! -x "$DEFAULT_ASSEMBLER"; then
710 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
711 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
714 cat >> confdefs.h <<EOF
715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
721 # Check whether --with-stabs or --without-stabs was given.
722 if test "${with_stabs+set}" = set; then
723 withval="$with_stabs"
731 # Check whether --with-elf or --without-elf was given.
732 if test "${with_elf+set}" = set; then
740 # Specify the local prefix
742 # Check whether --with-local-prefix or --without-local-prefix was given.
743 if test "${with_local_prefix+set}" = set; then
744 withval="$with_local_prefix"
746 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
748 *) local_prefix=$with_local_prefix ;;
753 # Default local prefix if it is empty
754 if test x$local_prefix = x; then
755 local_prefix=/usr/local
758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
759 # passed in by the toplevel make and thus we'd get different behavior
760 # depending on where we built the sources.
762 # Specify the g++ header file directory
763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
764 if test "${with_gxx_include_dir+set}" = set; then
765 withval="$with_gxx_include_dir"
767 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
769 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
774 if test x${gcc_gxx_include_dir} = x; then
775 if test x${enable_version_specific_runtime_libs} = xyes; then
776 gcc_gxx_include_dir='${libsubdir}/include/g++'
778 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
779 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
783 # Determine whether or not multilibs are enabled.
784 # Check whether --enable-multilib or --disable-multilib was given.
785 if test "${enable_multilib+set}" = set; then
786 enableval="$enable_multilib"
794 # Enable expensive internal checks
795 # Check whether --enable-checking or --disable-checking was given.
796 if test "${enable_checking+set}" = set; then
797 enableval="$enable_checking"
802 ac_gc_always_collect=
803 case "${enableval}" in
804 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
806 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
807 set fnord $enableval; shift
812 misc) ac_checking=1 ;;
813 tree) ac_tree_checking=1 ;;
814 rtl) ac_rtl_checking=1 ;;
815 gc) ac_gc_checking=1 ;;
816 gcac) ac_gc_always_collect=1 ;;
817 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Enable some checks by default for development versions of GCC
825 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
828 if test x$ac_checking != x ; then
829 cat >> confdefs.h <<\EOF
830 #define ENABLE_CHECKING 1
834 if test x$ac_tree_checking != x ; then
835 cat >> confdefs.h <<\EOF
836 #define ENABLE_TREE_CHECKING 1
840 if test x$ac_rtl_checking != x ; then
841 cat >> confdefs.h <<\EOF
842 #define ENABLE_RTL_CHECKING 1
846 if test x$ac_gc_checking != x ; then
847 cat >> confdefs.h <<\EOF
848 #define ENABLE_GC_CHECKING 1
852 if test x$ac_gc_always_collect != x ; then
853 cat >> confdefs.h <<\EOF
854 #define ENABLE_GC_ALWAYS_COLLECT 1
860 # Check whether --enable-cpp or --disable-cpp was given.
861 if test "${enable_cpp+set}" = set; then
862 enableval="$enable_cpp"
869 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
870 if test "${with_cpp_install_dir+set}" = set; then
871 withval="$with_cpp_install_dir"
872 if test x$withval = xyes; then
873 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
874 elif test x$withval != xno; then
875 cpp_install_dir=$withval
880 # Enable Multibyte Characters for C/C++
881 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
882 if test "${enable_c_mbchar+set}" = set; then
883 enableval="$enable_c_mbchar"
884 if test x$enable_c_mbchar != xno; then
885 cat >> confdefs.h <<\EOF
886 #define MULTIBYTE_CHARS 1
894 # Pass with no value to take the default
895 # Pass with a value to specify a thread package
896 # Check whether --enable-threads or --disable-threads was given.
897 if test "${enable_threads+set}" = set; then
898 enableval="$enable_threads"
905 enable_threads_flag=$enable_threads
906 # Check if a valid thread package
907 case x${enable_threads_flag} in
910 target_thread_file='single'
914 target_thread_file=''
916 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
917 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix)
918 target_thread_file=$enable_threads_flag
921 echo "$enable_threads is an unknown thread package" 1>&2
926 # Check whether --enable-objc-gc or --disable-objc-gc was given.
927 if test "${enable_objc_gc+set}" = set; then
928 enableval="$enable_objc_gc"
929 if test x$enable_objc_gc = xno; then
939 # Check whether --with-dwarf2 or --without-dwarf2 was given.
940 if test "${with_dwarf2+set}" = set; then
941 withval="$with_dwarf2"
942 dwarf2="$with_dwarf2"
948 # Check whether --enable-shared or --disable-shared was given.
949 if test "${enable_shared+set}" = set; then
950 enableval="$enable_shared"
952 case $enable_shared in
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
957 for pkg in $enableval; do
958 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
972 # Determine the host, build, and target systems
974 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
975 if test -f $ac_dir/install-sh; then
977 ac_install_sh="$ac_aux_dir/install-sh -c"
979 elif test -f $ac_dir/install.sh; then
981 ac_install_sh="$ac_aux_dir/install.sh -c"
985 if test -z "$ac_aux_dir"; then
986 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988 ac_config_guess=$ac_aux_dir/config.guess
989 ac_config_sub=$ac_aux_dir/config.sub
990 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
993 # Do some error checking and defaulting for the host and target type.
995 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 # 2. Host defaults to nonopt.
1001 # 3. If nonopt is not specified, then host defaults to the current host,
1002 # as determined by config.guess.
1003 # 4. Target and build default to nonopt.
1004 # 5. If nonopt is not specified, then target and build default to host.
1006 # The aliases save the names the user supplied, while $host etc.
1007 # will get canonicalized.
1008 case $host---$target---$nonopt in
1009 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1010 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1014 # Make sure we can run config.sub.
1015 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1016 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019 echo $ac_n "checking host system type""... $ac_c" 1>&6
1020 echo "configure:1021: checking host system type" >&5
1023 case "$host_alias" in
1027 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 *) host_alias=$nonopt ;;
1034 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 echo "$ac_t""$host" 1>&6
1040 echo $ac_n "checking target system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking target system type" >&5
1043 target_alias=$target
1044 case "$target_alias" in
1047 NONE) target_alias=$host_alias ;;
1048 *) target_alias=$nonopt ;;
1052 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$ac_t""$target" 1>&6
1058 echo $ac_n "checking build system type""... $ac_c" 1>&6
1059 echo "configure:1060: checking build system type" >&5
1062 case "$build_alias" in
1065 NONE) build_alias=$host_alias ;;
1066 *) build_alias=$nonopt ;;
1070 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074 echo "$ac_t""$build" 1>&6
1076 test "$host_alias" != "$target_alias" &&
1077 test "$program_prefix$program_suffix$program_transform_name" = \
1079 program_prefix=${target_alias}-
1082 # Set program_transform_name
1083 if test "$program_transform_name" = s,x,x,; then
1084 program_transform_name=
1086 # Double any \ or $. echo might interpret backslashes.
1087 cat <<\EOF_SED > conftestsed
1088 s,\\,\\\\,g; s,\$,$$,g
1090 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1093 test "$program_prefix" != NONE &&
1094 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1095 # Use a double $ so make ignores it.
1096 test "$program_suffix" != NONE &&
1097 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1099 # sed with no file args requires a program.
1100 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1103 # Find the native compiler
1104 # Extract the first word of "gcc", so it can be a program name with args.
1105 set dummy gcc; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$CC"; then
1112 ac_cv_prog_CC="$CC" # Let the user override the test.
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1116 for ac_dir in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir=.
1118 if test -f $ac_dir/$ac_word; then
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 if test -z "$CC"; then
1134 # Extract the first word of "cc", so it can be a program name with args.
1135 set dummy cc; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 if test -n "$CC"; then
1142 ac_cv_prog_CC="$CC" # Let the user override the test.
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 for ac_dir in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir=.
1149 if test -f $ac_dir/$ac_word; then
1150 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1151 ac_prog_rejected=yes
1159 if test $ac_prog_rejected = yes; then
1160 # We found a bogon in the path, so make sure we never use it.
1161 set dummy $ac_cv_prog_CC
1163 if test $# -gt 0; then
1164 # We chose a different compiler from the bogus one.
1165 # However, it has the same basename, so the bogon will be chosen
1166 # first if we set CC to just the basename; use the full file name.
1168 set dummy "$ac_dir/$ac_word" "$@"
1176 if test -n "$CC"; then
1177 echo "$ac_t""$CC" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 if test -z "$CC"; then
1183 case "`uname -s`" in
1185 # Extract the first word of "cl", so it can be a program name with args.
1186 set dummy cl; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$CC"; then
1193 ac_cv_prog_CC="$CC" # Let the user override the test.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1208 if test -n "$CC"; then
1209 echo "$ac_t""$CC" 1>&6
1211 echo "$ac_t""no" 1>&6
1216 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1219 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1224 ac_cpp='$CPP $CPPFLAGS'
1225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1227 cross_compiling=$ac_cv_prog_cc_cross
1229 cat > conftest.$ac_ext << EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1236 if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1237 ac_cv_prog_cc_works=yes
1238 # If we can't run a trivial program, we are probably using a cross compiler.
1239 if (./conftest; exit) 2>/dev/null; then
1240 ac_cv_prog_cc_cross=no
1242 ac_cv_prog_cc_cross=yes
1245 echo "configure: failed program was:" >&5
1246 cat conftest.$ac_ext >&5
1247 ac_cv_prog_cc_works=no
1251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1255 cross_compiling=$ac_cv_prog_cc_cross
1257 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1258 if test $ac_cv_prog_cc_works = no; then
1259 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1261 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1263 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1264 cross_compiling=$ac_cv_prog_cc_cross
1266 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1267 echo "configure:1268: checking whether we are using GNU C" >&5
1268 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 cat > conftest.c <<EOF
1276 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1283 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1285 if test $ac_cv_prog_gcc = yes; then
1291 ac_test_CFLAGS="${CFLAGS+set}"
1292 ac_save_CFLAGS="$CFLAGS"
1294 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1295 echo "configure:1296: checking whether ${CC-cc} accepts -g" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 echo 'void f(){}' > conftest.c
1300 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1309 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1310 if test "$ac_test_CFLAGS" = set; then
1311 CFLAGS="$ac_save_CFLAGS"
1312 elif test $ac_cv_prog_cc_g = yes; then
1313 if test "$GCC" = yes; then
1319 if test "$GCC" = yes; then
1326 if test "x$CC" != xcc; then
1327 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether $CC and cc understand -c and -o together" >&5
1330 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1331 echo "configure:1332: checking whether cc understands -c and -o together" >&5
1333 set dummy $CC; ac_cc="`echo $2 |
1334 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1335 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 echo 'foo(){}' > conftest.c
1339 # Make sure it works both with $CC and with simple cc.
1340 # We do the test twice because some compilers refuse to overwrite an
1341 # existing .o file with -o, though they will create one.
1342 ac_try='${CC-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; };
1346 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1347 if test "x$CC" != xcc; then
1348 # Test first that cc exists at all.
1349 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1350 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1351 if { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1352 test -f conftest.o && { (eval echo configure:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1357 # cc exists but doesn't like -o.
1358 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1363 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1368 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1371 echo "$ac_t""no" 1>&6
1372 cat >> confdefs.h <<\EOF
1373 #define NO_MINUS_C_MINUS_O 1
1378 # autoconf is lame and doesn't give us any substitution variable for this.
1379 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1380 NO_MINUS_C_MINUS_O=yes
1382 OUTPUT_OPTION='-o $@'
1387 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1388 echo "configure:1389: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1389 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 save_CFLAGS="$CFLAGS"
1393 CFLAGS="-Wno-long-long"
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1402 if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1404 ac_cv_prog_cc_no_long_long=yes
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1409 ac_cv_prog_cc_no_long_long=no
1412 CFLAGS="$save_CFLAGS"
1415 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1417 if test $ac_cv_prog_cc_no_long_long = yes; then
1418 strict1_warn="-pedantic -Wno-long-long"
1422 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1423 echo "configure:1424: checking how to run the C preprocessor" >&5
1424 # On Suns, sometimes $CPP names a directory.
1425 if test -n "$CPP" && test -d "$CPP"; then
1428 if test -z "$CPP"; then
1429 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 # This must be in double quotes, not single quotes, because CPP may get
1433 # substituted into the Makefile and "${CC-cc}" will confuse make.
1435 # On the NeXT, cc -E runs the code through the compiler's parser,
1436 # not just through cpp.
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1444 { (eval echo configure:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1446 if test -z "$ac_err"; then
1450 echo "configure: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1453 CPP="${CC-cc} -E -traditional-cpp"
1454 cat > conftest.$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1461 { (eval echo configure:1462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1463 if test -z "$ac_err"; then
1467 echo "configure: failed program was:" >&5
1468 cat conftest.$ac_ext >&5
1470 CPP="${CC-cc} -nologo -E"
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1478 { (eval echo configure:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1480 if test -z "$ac_err"; then
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1494 ac_cv_prog_CPP="$CPP"
1496 CPP="$ac_cv_prog_CPP"
1498 ac_cv_prog_CPP="$CPP"
1500 echo "$ac_t""$CPP" 1>&6
1502 echo $ac_n "checking for inline""... $ac_c" 1>&6
1503 echo "configure:1504: checking for inline" >&5
1504 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1508 for ac_kw in inline __inline__ __inline; do
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1517 if { (eval echo configure:1518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519 ac_cv_c_inline=$ac_kw; break
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1529 echo "$ac_t""$ac_cv_c_inline" 1>&6
1530 case "$ac_cv_c_inline" in
1532 no) cat >> confdefs.h <<\EOF
1536 *) cat >> confdefs.h <<EOF
1537 #define inline $ac_cv_c_inline
1542 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1543 echo "configure:1544: checking for volatile" >&5
1544 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1555 if { (eval echo configure:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1557 gcc_cv_c_volatile=yes
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1562 gcc_cv_c_volatile=no
1567 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1568 if test $gcc_cv_c_volatile = yes ; then
1569 cat >> confdefs.h <<\EOF
1570 #define HAVE_VOLATILE 1
1576 echo $ac_n "checking for long double""... $ac_c" 1>&6
1577 echo "configure:1578: checking for long double" >&5
1578 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 if test "$GCC" = yes; then
1582 gcc_cv_c_long_double=yes
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1590 long double foo = 0.0;
1591 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1592 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1595 if { (eval echo configure:1596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1597 gcc_cv_c_long_double=yes
1599 echo "configure: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1602 gcc_cv_c_long_double=no
1608 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1609 if test $gcc_cv_c_long_double = yes; then
1610 cat >> confdefs.h <<\EOF
1611 #define HAVE_LONG_DOUBLE 1
1616 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1617 echo "configure:1618: checking for long long int" >&5
1618 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1629 if { (eval echo configure:1630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1631 ac_cv_c_long_long=yes
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1636 ac_cv_c_long_long=no
1641 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1642 if test $ac_cv_c_long_long = yes; then
1643 cat >> confdefs.h <<\EOF
1644 #define HAVE_LONG_LONG 1
1648 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1649 echo "configure:1650: checking for __int64" >&5
1650 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1661 if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1673 echo "$ac_t""$ac_cv_c___int64" 1>&6
1674 if test $ac_cv_c___int64 = yes; then
1675 cat >> confdefs.h <<\EOF
1676 #define HAVE___INT64 1
1681 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1682 echo "configure:1683: checking for built-in _Bool" >&5
1683 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1694 if { (eval echo configure:1695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1707 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1708 if test $gcc_cv_c__bool = yes; then
1709 cat >> confdefs.h <<\EOF
1710 #define HAVE__BOOL 1
1716 # sizeof(char) is 1 by definition.
1717 echo $ac_n "checking size of short""... $ac_c" 1>&6
1718 echo "configure:1719: checking size of short" >&5
1719 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include "confdefs.h"
1727 #include <sys/types.h>
1731 switch (0) case 0: case (sizeof (short) == $ac_size):;
1734 if { (eval echo configure:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1736 ac_cv_sizeof_short=$ac_size
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1742 if test x$ac_cv_sizeof_short != x ; then break; fi
1747 if test x$ac_cv_sizeof_short = x ; then
1748 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1750 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1751 cat >> confdefs.h <<EOF
1752 #define SIZEOF_SHORT $ac_cv_sizeof_short
1756 echo $ac_n "checking size of int""... $ac_c" 1>&6
1757 echo "configure:1758: checking size of int" >&5
1758 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 #include "confdefs.h"
1766 #include <sys/types.h>
1770 switch (0) case 0: case (sizeof (int) == $ac_size):;
1773 if { (eval echo configure:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1775 ac_cv_sizeof_int=$ac_size
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1781 if test x$ac_cv_sizeof_int != x ; then break; fi
1786 if test x$ac_cv_sizeof_int = x ; then
1787 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1789 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1790 cat >> confdefs.h <<EOF
1791 #define SIZEOF_INT $ac_cv_sizeof_int
1795 echo $ac_n "checking size of long""... $ac_c" 1>&6
1796 echo "configure:1797: checking size of long" >&5
1797 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1804 #include "confdefs.h"
1805 #include <sys/types.h>
1809 switch (0) case 0: case (sizeof (long) == $ac_size):;
1812 if { (eval echo configure:1813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1814 ac_cv_sizeof_long=$ac_size
1816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1820 if test x$ac_cv_sizeof_long != x ; then break; fi
1825 if test x$ac_cv_sizeof_long = x ; then
1826 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1828 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1829 cat >> confdefs.h <<EOF
1830 #define SIZEOF_LONG $ac_cv_sizeof_long
1834 if test $ac_cv_c_long_long = yes; then
1835 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1836 echo "configure:1837: checking size of long long" >&5
1837 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 #include "confdefs.h"
1845 #include <sys/types.h>
1849 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1852 if { (eval echo configure:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1854 ac_cv_sizeof_long_long=$ac_size
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1860 if test x$ac_cv_sizeof_long_long != x ; then break; fi
1865 if test x$ac_cv_sizeof_long_long = x ; then
1866 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1868 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1869 cat >> confdefs.h <<EOF
1870 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1875 if test $ac_cv_c___int64 = yes; then
1876 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1877 echo "configure:1878: checking size of __int64" >&5
1878 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include "confdefs.h"
1886 #include <sys/types.h>
1890 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
1893 if { (eval echo configure:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1895 ac_cv_sizeof___int64=$ac_size
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1901 if test x$ac_cv_sizeof___int64 != x ; then break; fi
1906 if test x$ac_cv_sizeof___int64 = x ; then
1907 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1909 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1910 cat >> confdefs.h <<EOF
1911 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1917 echo $ac_n "checking execution character set""... $ac_c" 1>&6
1918 echo "configure:1919: checking execution character set" >&5
1919 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1925 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
1926 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
1930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1931 egrep "ASCII" >/dev/null 2>&1; then
1933 ac_cv_c_charset=ASCII
1937 if test x${ac_cv_c_charset+set} != xset; then
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
1942 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
1946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1947 egrep "EBCDIC" >/dev/null 2>&1; then
1949 ac_cv_c_charset=EBCDIC
1954 if test x${ac_cv_c_charset+set} != xset; then
1955 ac_cv_c_charset=unknown
1959 echo "$ac_t""$ac_cv_c_charset" 1>&6
1960 if test $ac_cv_c_charset = unknown; then
1961 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
1962 elif test $ac_cv_c_charset = EBCDIC; then
1963 cat >> confdefs.h <<\EOF
1964 #define HOST_EBCDIC 1
1969 # If the native compiler is GCC, we can enable warnings even in stage1.
1970 # That's useful for people building cross-compilers, or just running a
1973 if test "x$GCC" = "xyes"; then
1974 warn_cflags='$(GCC_WARN_CFLAGS)'
1978 # Stage specific cflags for build.
1982 if test x$GCC = xyes
1984 stage1_cflags="-Wa,-J"
1992 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether ${MAKE-make} sets \${MAKE}" >&5
1994 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1995 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftestmake <<\EOF
2000 @echo 'ac_maketemp="${MAKE}"'
2002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2003 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2004 if test -n "$ac_maketemp"; then
2005 eval ac_cv_prog_make_${ac_make}_set=yes
2007 eval ac_cv_prog_make_${ac_make}_set=no
2011 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2015 echo "$ac_t""no" 1>&6
2016 SET_MAKE="MAKE=${MAKE-make}"
2020 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether a default assembler was specified" >&5
2022 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2023 if test x"$gas_flag" = x"no"; then
2024 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2026 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2029 echo "$ac_t""no" 1>&6
2032 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2033 echo "configure:2034: checking whether a default linker was specified" >&5
2034 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2035 if test x"$gnu_ld_flag" = x"no"; then
2036 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2038 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2041 echo "$ac_t""no" 1>&6
2044 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2045 echo "configure:2046: checking for GNU C library" >&5
2046 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 #include <features.h>
2055 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2056 #error Not a GNU C library system
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 echo "configure: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2072 echo "$ac_t""$gcc_cv_glibc" 1>&6
2073 if test $gcc_cv_glibc = yes; then
2074 cat >> confdefs.h <<\EOF
2075 #define _GNU_SOURCE 1
2080 # Find some useful tools
2081 for ac_prog in mawk gawk nawk awk
2083 # Extract the first word of "$ac_prog", so it can be a program name with args.
2084 set dummy $ac_prog; ac_word=$2
2085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2086 echo "configure:2087: checking for $ac_word" >&5
2087 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 if test -n "$AWK"; then
2091 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2095 for ac_dir in $ac_dummy; do
2096 test -z "$ac_dir" && ac_dir=.
2097 if test -f $ac_dir/$ac_word; then
2098 ac_cv_prog_AWK="$ac_prog"
2105 AWK="$ac_cv_prog_AWK"
2106 if test -n "$AWK"; then
2107 echo "$ac_t""$AWK" 1>&6
2109 echo "$ac_t""no" 1>&6
2112 test -n "$AWK" && break
2115 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2116 echo "configure:2117: checking whether ln works" >&5
2117 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 rm -f conftestdata_t
2121 echo >conftestdata_f
2122 if ln conftestdata_f conftestdata_t 2>/dev/null
2126 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2128 gcc_cv_prog_LN="ln -s"
2133 rm -f conftestdata_f conftestdata_t
2136 LN="$gcc_cv_prog_LN"
2137 if test "$gcc_cv_prog_LN" = "ln"; then
2138 echo "$ac_t""yes" 1>&6
2140 if test "$gcc_cv_prog_LN" = "ln -s"; then
2141 echo "$ac_t""no, using ln -s" 1>&6
2143 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2147 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2148 echo "configure:2149: checking whether ln -s works" >&5
2149 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 rm -f conftestdata_t
2153 echo >conftestdata_f
2154 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2156 gcc_cv_prog_LN_S="ln -s"
2158 if ln conftestdata_f conftestdata_t 2>/dev/null
2165 rm -f conftestdata_f conftestdata_t
2168 LN_S="$gcc_cv_prog_LN_S"
2169 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2170 echo "$ac_t""yes" 1>&6
2172 if test "$gcc_cv_prog_LN_S" = "ln"; then
2173 echo "$ac_t""no, using ln" 1>&6
2175 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2179 # Extract the first word of "ranlib", so it can be a program name with args.
2180 set dummy ranlib; ac_word=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 if test -n "$RANLIB"; then
2187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2191 for ac_dir in $ac_dummy; do
2192 test -z "$ac_dir" && ac_dir=.
2193 if test -f $ac_dir/$ac_word; then
2194 ac_cv_prog_RANLIB="ranlib"
2199 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2202 RANLIB="$ac_cv_prog_RANLIB"
2203 if test -n "$RANLIB"; then
2204 echo "$ac_t""$RANLIB" 1>&6
2206 echo "$ac_t""no" 1>&6
2209 # Find a good install program. We prefer a C program (faster),
2210 # so one script is as good as another. But avoid the broken or
2211 # incompatible versions:
2212 # SysV /etc/install, /usr/sbin/install
2213 # SunOS /usr/etc/install
2214 # IRIX /sbin/install
2216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2218 # ./install, which can be erroneously created by make from ./install.sh.
2219 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2220 echo "configure:2221: checking for a BSD compatible install" >&5
2221 if test -z "$INSTALL"; then
2222 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2226 for ac_dir in $PATH; do
2227 # Account for people who put trailing slashes in PATH elements.
2229 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2231 # OSF1 and SCO ODT 3.0 have their own names for install.
2232 for ac_prog in ginstall scoinst install; do
2233 if test -f $ac_dir/$ac_prog; then
2234 if test $ac_prog = install &&
2235 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2236 # AIX install. It has an incompatible calling convention.
2237 # OSF/1 installbsd also uses dspmsg, but is usable.
2240 ac_cv_path_install="$ac_dir/$ac_prog -c"
2251 if test "${ac_cv_path_install+set}" = set; then
2252 INSTALL="$ac_cv_path_install"
2254 # As a last resort, use the slow shell script. We don't cache a
2255 # path for INSTALL within a source directory, because that will
2256 # break other packages using the cache if that directory is
2257 # removed, or if the path is relative.
2258 INSTALL="$ac_install_sh"
2261 echo "$ac_t""$INSTALL" 1>&6
2263 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2264 # It thinks the first close brace ends the variable substitution.
2265 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2270 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2271 echo "configure:2272: checking for ANSI C header files" >&5
2272 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2288 ac_cv_header_stdc=yes
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 ac_cv_header_stdc=no
2298 if test $ac_cv_header_stdc = yes; then
2299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2306 egrep "memchr" >/dev/null 2>&1; then
2310 ac_cv_header_stdc=no
2316 if test $ac_cv_header_stdc = yes; then
2317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2324 egrep "free" >/dev/null 2>&1; then
2328 ac_cv_header_stdc=no
2334 if test $ac_cv_header_stdc = yes; then
2335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2336 if test "$cross_compiling" = yes; then
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2343 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2344 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2346 int main () { int i; for (i = 0; i < 256; i++)
2347 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 ac_cv_header_stdc=no
2366 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2367 if test $ac_cv_header_stdc = yes; then
2368 cat >> confdefs.h <<\EOF
2369 #define STDC_HEADERS 1
2374 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2375 echo "configure:2376: checking whether time.h and sys/time.h may both be included" >&5
2376 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 #include <sys/types.h>
2383 #include <sys/time.h>
2389 if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2391 ac_cv_header_time=yes
2393 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2396 ac_cv_header_time=no
2401 echo "$ac_t""$ac_cv_header_time" 1>&6
2402 if test $ac_cv_header_time = yes; then
2403 cat >> confdefs.h <<\EOF
2404 #define TIME_WITH_SYS_TIME 1
2409 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2410 echo "configure:2411: checking for working stdbool.h" >&5
2411 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 #include <stdbool.h>
2422 if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 ac_cv_header_stdbool_h=yes
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2429 ac_cv_header_stdbool_h=no
2434 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2435 if test $ac_cv_header_stdbool_h = yes; then
2436 cat >> confdefs.h <<\EOF
2437 #define HAVE_STDBOOL_H 1
2442 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2443 echo "configure:2444: checking whether string.h and strings.h may both be included" >&5
2444 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2451 #include <strings.h>
2456 if { (eval echo configure:2457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2458 gcc_cv_header_string=yes
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 gcc_cv_header_string=no
2468 echo "$ac_t""$gcc_cv_header_string" 1>&6
2469 if test $gcc_cv_header_string = yes; then
2470 cat >> confdefs.h <<\EOF
2471 #define STRING_WITH_STRINGS 1
2476 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2477 echo "configure:2478: checking for sys/wait.h that is POSIX.1 compatible" >&5
2478 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 #include <sys/types.h>
2485 #include <sys/wait.h>
2487 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2490 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2498 if { (eval echo configure:2499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2500 ac_cv_header_sys_wait_h=yes
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2505 ac_cv_header_sys_wait_h=no
2510 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2511 if test $ac_cv_header_sys_wait_h = yes; then
2512 cat >> confdefs.h <<\EOF
2513 #define HAVE_SYS_WAIT_H 1
2518 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2519 fcntl.h unistd.h sys/file.h sys/time.h \
2520 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2521 direct.h malloc.h langinfo.h
2523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_hdr" >&5
2526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2535 { (eval echo configure:2536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2537 if test -z "$ac_err"; then
2539 eval "ac_cv_header_$ac_safe=yes"
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2545 eval "ac_cv_header_$ac_safe=no"
2549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2550 echo "$ac_t""yes" 1>&6
2551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2552 cat >> confdefs.h <<EOF
2553 #define $ac_tr_hdr 1
2557 echo "$ac_t""no" 1>&6
2562 # Check for thread headers.
2563 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2564 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2565 echo "configure:2566: checking for thread.h" >&5
2566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2575 { (eval echo configure:2576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2577 if test -z "$ac_err"; then
2579 eval "ac_cv_header_$ac_safe=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 eval "ac_cv_header_$ac_safe=no"
2589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2593 echo "$ac_t""no" 1>&6
2597 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2598 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2599 echo "configure:2600: checking for pthread.h" >&5
2600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2606 #include <pthread.h>
2608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2609 { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2611 if test -z "$ac_err"; then
2613 eval "ac_cv_header_$ac_safe=yes"
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2619 eval "ac_cv_header_$ac_safe=no"
2623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2627 echo "$ac_t""no" 1>&6
2632 # These tests can't be done till we know if we have limits.h.
2633 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2634 echo "configure:2635: checking for CHAR_BIT" >&5
2635 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 #ifdef HAVE_LIMITS_H
2648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2649 egrep "found" >/dev/null 2>&1; then
2651 gcc_cv_decl_char_bit=yes
2654 gcc_cv_decl_char_bit=no
2661 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2662 if test $gcc_cv_decl_char_bit = no; then
2663 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2664 echo "configure:2665: checking number of bits in a byte" >&5
2665 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2670 while test $i -lt 65; do
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2677 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2678 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2682 if { (eval echo configure:2683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2684 gcc_cv_c_nbby=$i; break
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2692 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
2696 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2697 if test $gcc_cv_c_nbby = failed; then
2698 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2700 cat >> confdefs.h <<EOF
2701 #define CHAR_BIT $gcc_cv_c_nbby
2706 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2707 echo "configure:2708: checking byte ordering" >&5
2708 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 ac_cv_c_compile_endian=unknown
2714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2718 cross_compiling=$ac_cv_prog_cc_cross
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2724 #ifdef HAVE_LIMITS_H
2725 # include <limits.h>
2727 /* This structure must have no internal padding. */
2729 char prefix[sizeof "\nendian:" - 1];
2734 #if SIZEOF_SHORT == 4
2735 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2737 ('A' << CHAR_BIT) | 'B',
2741 if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2743 sed 's/^[0-7]*[ ]*/ /
2746 s/ [0-9][0-9][0-9]/./g
2752 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
2753 ac_cv_c_compile_endian=big-endian
2754 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
2755 ac_cv_c_compile_endian=little-endian
2760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2764 cross_compiling=$ac_cv_prog_cc_cross
2769 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2770 if test $ac_cv_c_compile_endian = unknown; then
2771 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2772 elif test $ac_cv_c_compile_endian = big-endian; then
2773 cat >> confdefs.h <<\EOF
2774 #define HOST_WORDS_BIG_ENDIAN 1
2779 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2780 echo "configure:2781: checking floating point format" >&5
2781 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2790 cross_compiling=$ac_cv_prog_cc_cross
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 /* This will not work unless sizeof(double) == 8. */
2796 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2798 /* This structure must have no internal padding. */
2799 struct possibility {
2805 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2806 struct possibility table [] =
2808 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2809 C( 3.53802595280598432000e+18), /* D__float - VAX */
2810 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2811 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2812 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2815 if { (eval echo configure:2816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2817 sed 's/^[0-7]*[ ]*/ /
2820 s/ [0-9][0-9][0-9]/./g
2826 if grep 'format:.@IEEEF.:tamrof' conftest.dmp >/dev/null 2>&1; then
2827 ac_cv_c_float_format='IEEE (big-endian)'
2828 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp >/dev/null 2>&1; then
2829 ac_cv_c_float_format='IEEE (big-endian)'
2830 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp >/dev/null 2>&1; then
2831 ac_cv_c_float_format='IEEE (little-endian)'
2832 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp >/dev/null 2>&1; then
2833 ac_cv_c_float_format='IEEE (little-endian)'
2834 elif grep 'format:.__floa.:tamrof' conftest.dmp >/dev/null 2>&1; then
2835 ac_cv_c_float_format='VAX D-float'
2836 elif grep 'format:..PDP-1.:tamrof' conftest.dmp >/dev/null 2>&1; then
2837 ac_cv_c_float_format='PDP-10'
2838 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp >/dev/null 2>&1; then
2839 ac_cv_c_float_format='IBM 370 hex'
2841 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
2844 { echo "configure: error: compile failed" 1>&2; exit 1; }
2848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2852 cross_compiling=$ac_cv_prog_cc_cross
2857 echo "$ac_t""$ac_cv_c_float_format" 1>&6
2858 # IEEE is the default format. If the float endianness isn't the same
2859 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
2860 # (which is a tristate: yes, no, default). This is only an issue with
2861 # IEEE; the other formats are only supported by a few machines each,
2862 # all with the same endianness.
2865 case $ac_cv_c_float_format in
2866 'IEEE (big-endian)' )
2867 if test $ac_cv_c_compile_endian = little-endian; then
2871 'IEEE (little-endian)' )
2872 if test $ac_cv_c_compile_endian = big-endian; then
2877 format=VAX_FLOAT_FORMAT
2880 format=PDP10_FLOAT_FORMAT
2883 format=IBM_FLOAT_FORMAT
2886 if test -n "$format"; then
2887 cat >> confdefs.h <<EOF
2888 #define HOST_FLOAT_FORMAT $format
2892 if test -n "$fbigend"; then
2893 cat >> confdefs.h <<EOF
2894 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
2900 # See if GNAT has been installed
2901 if test $host != $build; then
2902 ac_tool_prefix=${host_alias}-
2908 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2911 echo "configure:2912: checking for $ac_word" >&5
2912 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 if test -n "$GNATBIND"; then
2916 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2920 for ac_dir in $ac_dummy; do
2921 test -z "$ac_dir" && ac_dir=.
2922 if test -f $ac_dir/$ac_word; then
2923 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2930 GNATBIND="$ac_cv_prog_GNATBIND"
2931 if test -n "$GNATBIND"; then
2932 echo "$ac_t""$GNATBIND" 1>&6
2934 echo "$ac_t""no" 1>&6
2938 if test -z "$ac_cv_prog_GNATBIND"; then
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "gnatbind", so it can be a program name with args.
2941 set dummy gnatbind; ac_word=$2
2942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_word" >&5
2944 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 if test -n "$GNATBIND"; then
2948 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2952 for ac_dir in $ac_dummy; do
2953 test -z "$ac_dir" && ac_dir=.
2954 if test -f $ac_dir/$ac_word; then
2955 ac_cv_prog_GNATBIND="gnatbind"
2960 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2963 GNATBIND="$ac_cv_prog_GNATBIND"
2964 if test -n "$GNATBIND"; then
2965 echo "$ac_t""$GNATBIND" 1>&6
2967 echo "$ac_t""no" 1>&6
2975 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
2976 echo "configure:2977: checking for compiler driver that understands Ada" >&5
2977 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat >conftest.adb <<EOF
2981 procedure conftest is begin null; end conftest;
2984 # Have to do ac_tool_prefix and user overrides by hand.
2987 for cand in ${ac_tool_prefix}$user_adac $user_adac \
2988 ${ac_tool_prefix}$user_cc $user_cc \
2989 ${ac_tool_prefix}gcc gcc \
2990 ${ac_tool_prefix}cc cc \
2991 ${ac_tool_prefix}gnatgcc gnatgcc \
2992 ${ac_tool_prefix}gnatcc gnatcc \
2993 ${ac_tool_prefix}adagcc adagcc \
2994 ${ac_tool_prefix}adacc adacc ; do
2995 # There is a bug in all released versions of GCC which causes the
2996 # driver to exit successfully when the appropriate language module
2997 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2998 # Therefore we must check for the error message as well as an
2999 # unsuccessful exit.
3000 errors=`($cand -c conftest.adb) 2>&1 || echo failure`
3001 if test x"$errors" = x; then
3002 gcc_cv_prog_adac=$cand
3009 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
3010 ADAC=$gcc_cv_prog_adac
3013 if test x$GNATBIND != xno && test x$ADAC != xno; then
3020 # See if we have the mktemp command.
3021 # Extract the first word of "mktemp", so it can be a program name with args.
3022 set dummy mktemp; ac_word=$2
3023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_word" >&5
3025 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 if test -n "$have_mktemp_command"; then
3029 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
3031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3033 for ac_dir in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_prog_have_mktemp_command="yes"
3041 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
3044 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
3045 if test -n "$have_mktemp_command"; then
3046 echo "$ac_t""$have_mktemp_command" 1>&6
3048 echo "$ac_t""no" 1>&6
3052 # Do we have a single-tree copy of texinfo?
3053 if test -f $srcdir/../texinfo/Makefile.in; then
3054 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
3055 gcc_cv_prog_makeinfo_modern=yes
3056 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3058 # See if makeinfo has been installed and is modern enough
3059 # that we can use it.
3060 # Extract the first word of "makeinfo", so it can be a program name with args.
3061 set dummy makeinfo; ac_word=$2
3062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_word" >&5
3064 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 if test -n "$MAKEINFO"; then
3068 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3072 for ac_dir in $ac_dummy; do
3073 test -z "$ac_dir" && ac_dir=.
3074 if test -f $ac_dir/$ac_word; then
3075 ac_cv_prog_MAKEINFO="makeinfo"
3082 MAKEINFO="$ac_cv_prog_MAKEINFO"
3083 if test -n "$MAKEINFO"; then
3084 echo "$ac_t""$MAKEINFO" 1>&6
3086 echo "$ac_t""no" 1>&6
3089 if test -n "$MAKEINFO"; then
3090 # Found it, now check the version.
3091 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3092 echo "configure:3093: checking for modern makeinfo" >&5
3093 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 ac_prog_version=`$MAKEINFO --version 2>&1 |
3097 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3098 echo "configure:3099: version of makeinfo is $ac_prog_version" >&5
3099 case $ac_prog_version in
3100 '') gcc_cv_prog_makeinfo_modern=no;;
3102 gcc_cv_prog_makeinfo_modern=yes;;
3103 *) gcc_cv_prog_makeinfo_modern=no;;
3108 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3110 gcc_cv_prog_makeinfo_modern=no
3115 if test $gcc_cv_prog_makeinfo_modern = no; then
3116 echo "configure: warning:
3117 *** Makeinfo is missing or too old.
3118 *** Info documentation will not be built." 1>&2
3124 # Is pod2man recent enough to regenerate manpages?
3125 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3126 echo "configure:3127: checking for recent Pod::Man" >&5
3127 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
3128 echo "$ac_t""yes" 1>&6
3129 GENERATED_MANPAGES=generated-manpages
3131 echo "$ac_t""no" 1>&6
3136 if test -f $srcdir/../flex/skel.c; then
3137 FLEX='$(objdir)/../flex/flex'
3139 # Extract the first word of "flex", so it can be a program name with args.
3140 set dummy flex; ac_word=$2
3141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3142 echo "configure:3143: checking for $ac_word" >&5
3143 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3146 if test -n "$FLEX"; then
3147 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3151 for ac_dir in $ac_dummy; do
3152 test -z "$ac_dir" && ac_dir=.
3153 if test -f $ac_dir/$ac_word; then
3154 ac_cv_prog_FLEX="flex"
3159 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
3162 FLEX="$ac_cv_prog_FLEX"
3163 if test -n "$FLEX"; then
3164 echo "$ac_t""$FLEX" 1>&6
3166 echo "$ac_t""no" 1>&6
3172 # The -L switch is so bison can find its skeleton file.
3173 if test -f $srcdir/../bison/bison.simple; then
3174 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3176 # Extract the first word of "bison", so it can be a program name with args.
3177 set dummy bison; ac_word=$2
3178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3179 echo "configure:3180: checking for $ac_word" >&5
3180 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 if test -n "$BISON"; then
3184 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3188 for ac_dir in $ac_dummy; do
3189 test -z "$ac_dir" && ac_dir=.
3190 if test -f $ac_dir/$ac_word; then
3191 ac_cv_prog_BISON="bison"
3196 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
3199 BISON="$ac_cv_prog_BISON"
3200 if test -n "$BISON"; then
3201 echo "$ac_t""$BISON" 1>&6
3203 echo "$ac_t""no" 1>&6
3208 # These libraries may be used by collect2.
3209 # We may need a special search path to get them linked.
3210 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3211 echo "configure:3212: checking for collect2 libraries" >&5
3212 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3216 for libs in '' -lld -lmld \
3217 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3218 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3235 gcc_cv_collect2_libs="$libs"; break
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3243 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
3246 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3247 case $gcc_cv_collect2_libs in
3249 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
3253 # When building Ada code on Alpha, we need exc_resume which is usually in
3254 # -lexc. So test for it.
3258 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3259 echo "configure:3260: checking for library containing exc_resume" >&5
3260 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 ac_func_search_save_LIBS="$LIBS"
3264 ac_cv_search_exc_resume="no"
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 /* Override any gcc2 internal prototype to avoid an error. */
3269 /* We use char because int might match the return type of a gcc2
3270 builtin and then its argument prototype would still apply. */
3277 if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3279 ac_cv_search_exc_resume="none required"
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3285 test "$ac_cv_search_exc_resume" = "no" && for i in exc; do
3286 LIBS="-l$i $ac_func_search_save_LIBS"
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 /* Override any gcc2 internal prototype to avoid an error. */
3291 /* We use char because int might match the return type of a gcc2
3292 builtin and then its argument prototype would still apply. */
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3301 ac_cv_search_exc_resume="-l$i"
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3309 LIBS="$ac_func_search_save_LIBS"
3312 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3313 if test "$ac_cv_search_exc_resume" != "no"; then
3314 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
3323 # See if the stage1 system preprocessor understands the ANSI C
3324 # preprocessor stringification operator. (Used by symcat.h.)
3327 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3328 echo "configure:3329: checking for preprocessor stringizing operator" >&5
3329 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3338 char *s = x(teststring);
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342 egrep "#teststring" >/dev/null 2>&1; then
3344 ac_cv_c_stringize=no
3347 ac_cv_c_stringize=yes
3353 if test "${ac_cv_c_stringize}" = yes
3355 cat >> confdefs.h <<\EOF
3356 #define HAVE_STRINGIZE 1
3360 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3363 # Use <inttypes.h> only if it exists,
3364 # doesn't clash with <sys/types.h>, and declares intmax_t.
3365 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3366 echo "configure:3367: checking for inttypes.h" >&5
3367 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <sys/types.h>
3374 #include <inttypes.h>
3379 if { (eval echo configure:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3381 gcc_cv_header_inttypes_h=yes
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 gcc_cv_header_inttypes_h=no
3391 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3392 if test $gcc_cv_header_inttypes_h = yes; then
3393 cat >> confdefs.h <<\EOF
3394 #define HAVE_INTTYPES_H 1
3400 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
3401 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3402 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat
3404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_func" >&5
3406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 /* System header to define __stub macros and hopefully few prototypes,
3413 which can conflict with char $ac_func(); below. */
3415 /* Override any gcc2 internal prototype to avoid an error. */
3416 /* We use char because int might match the return type of a gcc2
3417 builtin and then its argument prototype would still apply. */
3422 /* The GNU C library defines this for functions which it implements
3423 to always fail with ENOSYS. Some functions are actually named
3424 something starting with __ and the normal name is an alias. */
3425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3435 eval "ac_cv_func_$ac_func=yes"
3437 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3440 eval "ac_cv_func_$ac_func=no"
3445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3446 echo "$ac_t""yes" 1>&6
3447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3448 cat >> confdefs.h <<EOF
3449 #define $ac_tr_func 1
3453 echo "$ac_t""no" 1>&6
3458 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3459 echo "configure:3460: checking for ssize_t" >&5
3460 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3475 ac_cv_type_ssize_t=yes
3478 ac_cv_type_ssize_t=no
3483 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3484 if test $ac_cv_type_ssize_t = no; then
3485 cat >> confdefs.h <<\EOF
3492 # Try to determine the array type of the second argument of getgroups
3493 # for the target system (int or gid_t).
3494 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3495 echo "configure:3496: checking for uid_t in sys/types.h" >&5
3496 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 #include <sys/types.h>
3504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3505 egrep "uid_t" >/dev/null 2>&1; then
3507 ac_cv_type_uid_t=yes
3516 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3517 if test $ac_cv_type_uid_t = no; then
3518 cat >> confdefs.h <<\EOF
3522 cat >> confdefs.h <<\EOF
3528 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3529 echo "configure:3530: checking type of array argument to getgroups" >&5
3530 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 if test "$cross_compiling" = yes; then
3534 ac_cv_type_getgroups=cross
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3540 /* Thanks to Mike Rendell for this test. */
3541 #include <sys/types.h>
3544 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3549 union { gid_t gval; long lval; } val;
3552 for (i = 0; i < NGID; i++)
3553 gidset[i] = val.gval;
3554 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3556 /* Exit non-zero if getgroups seems to require an array of ints. This
3557 happens when gid_t is short but getgroups modifies an array of ints. */
3558 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3562 if { (eval echo configure:3563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3564 ac_cv_type_getgroups=gid_t
3566 echo "configure: failed program was:" >&5
3567 cat conftest.$ac_ext >&5
3569 ac_cv_type_getgroups=int
3574 if test $ac_cv_type_getgroups = cross; then
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3583 ac_cv_type_getgroups=gid_t
3586 ac_cv_type_getgroups=int
3593 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3594 cat >> confdefs.h <<EOF
3595 #define GETGROUPS_T $ac_cv_type_getgroups
3599 if test "${target}" = "${build}"; then
3600 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
3603 # This condition may need some tweaking. It should include all
3604 # targets where the array type of the second argument of getgroups
3605 # is int and the type of gid_t is not equivalent to int.
3606 *-*-sunos* | *-*-ultrix*)
3607 TARGET_GETGROUPS_T=int
3610 TARGET_GETGROUPS_T=gid_t
3616 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3617 echo "configure:3618: checking whether the printf functions support %p" >&5
3618 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 if test "$cross_compiling" = yes; then
3622 gcc_cv_func_printf_ptr=no
3624 cat > conftest.$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3632 char *p = buf, *q = NULL;
3633 sprintf(buf, "%p", p);
3634 sscanf(buf, "%p", &q);
3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3640 gcc_cv_func_printf_ptr=yes
3642 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3645 gcc_cv_func_printf_ptr=no
3650 rm -f core core.* *.core
3653 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3654 if test $gcc_cv_func_printf_ptr = yes ; then
3655 cat >> confdefs.h <<\EOF
3656 #define HAVE_PRINTF_PTR 1
3664 { echo "configure: error:
3665 *** UWIN may not be used as a host platform because
3666 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3669 # Under VMS, vfork works very different than on Unix. The standard test
3670 # won't work, and it isn't easily adaptable. It makes more sense to
3672 ac_cv_func_vfork_works=yes
3675 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3676 echo "configure:3677: checking for pid_t" >&5
3677 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 #include <sys/types.h>
3689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3692 ac_cv_type_pid_t=yes
3700 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3701 if test $ac_cv_type_pid_t = no; then
3702 cat >> confdefs.h <<\EOF
3708 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3709 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3710 echo "configure:3711: checking for vfork.h" >&5
3711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3720 { (eval echo configure:3721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3722 if test -z "$ac_err"; then
3724 eval "ac_cv_header_$ac_safe=yes"
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3730 eval "ac_cv_header_$ac_safe=no"
3734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3736 cat >> confdefs.h <<\EOF
3737 #define HAVE_VFORK_H 1
3741 echo "$ac_t""no" 1>&6
3744 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3745 echo "configure:3746: checking for working vfork" >&5
3746 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 if test "$cross_compiling" = yes; then
3750 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3751 echo "configure:3752: checking for vfork" >&5
3752 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 /* System header to define __stub macros and hopefully few prototypes,
3759 which can conflict with char vfork(); below. */
3761 /* Override any gcc2 internal prototype to avoid an error. */
3762 /* We use char because int might match the return type of a gcc2
3763 builtin and then its argument prototype would still apply. */
3768 /* The GNU C library defines this for functions which it implements
3769 to always fail with ENOSYS. Some functions are actually named
3770 something starting with __ and the normal name is an alias. */
3771 #if defined (__stub_vfork) || defined (__stub___vfork)
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 eval "ac_cv_func_vfork=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 eval "ac_cv_func_vfork=no"
3791 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3792 echo "$ac_t""yes" 1>&6
3795 echo "$ac_t""no" 1>&6
3798 ac_cv_func_vfork_works=$ac_cv_func_vfork
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* Thanks to Paul Eggert for this test. */
3805 #include <sys/types.h>
3806 #include <sys/stat.h>
3807 #ifdef HAVE_UNISTD_H
3813 /* On some sparc systems, changes by the child to local and incoming
3814 argument registers are propagated back to the parent.
3815 The compiler is told about this with #include <vfork.h>,
3816 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3817 Test for this by using a static variable whose address
3818 is put into a register that is clobbered by the vfork. */
3821 sparc_address_test (int arg)
3823 sparc_address_test (arg) int arg;
3841 pid_t parent = getpid ();
3844 sparc_address_test ();
3849 /* Here is another test for sparc vfork register problems.
3850 This test uses lots of local variables, at least
3851 as many local variables as main has allocated so far
3852 including compiler temporaries. 4 locals are enough for
3853 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3854 A buggy compiler should reuse the register of parent
3855 for one of the local variables, since it will think that
3856 parent can't possibly be used any more in this routine.
3857 Assigning to the local variable will thus munge parent
3858 in the parent process. */
3860 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3861 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3862 /* Convince the compiler that p..p7 are live; otherwise, it might
3863 use the same hardware register for all 8 local variables. */
3864 if (p != p1 || p != p2 || p != p3 || p != p4
3865 || p != p5 || p != p6 || p != p7)
3868 /* On some systems (e.g. IRIX 3.3),
3869 vfork doesn't separate parent from child file descriptors.
3870 If the child closes a descriptor before it execs or exits,
3871 this munges the parent's descriptor as well.
3872 Test for this by closing stdout in the child. */
3873 _exit(close(fileno(stdout)) != 0);
3878 while (wait(&status) != child)
3881 /* Was there some problem with vforking? */
3884 /* Did the child fail? (This shouldn't happen.) */
3887 /* Did the vfork/compiler bug occur? */
3888 || parent != getpid()
3890 /* Did the file descriptor bug occur? */
3891 || fstat(fileno(stdout), &st) != 0
3896 if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3898 ac_cv_func_vfork_works=yes
3900 echo "configure: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3903 ac_cv_func_vfork_works=no
3910 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3911 if test $ac_cv_func_vfork_works = no; then
3912 cat >> confdefs.h <<\EOF
3918 for ac_func in getpagesize
3920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3921 echo "configure:3922: checking for $ac_func" >&5
3922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* System header to define __stub macros and hopefully few prototypes,
3929 which can conflict with char $ac_func(); below. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3938 /* The GNU C library defines this for functions which it implements
3939 to always fail with ENOSYS. Some functions are actually named
3940 something starting with __ and the normal name is an alias. */
3941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_func_$ac_func=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_func_$ac_func=no"
3961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3964 cat >> confdefs.h <<EOF
3965 #define $ac_tr_func 1
3969 echo "$ac_t""no" 1>&6
3973 # The test program for the next two tests is the same except for one
3975 cat >ct-mmap.inc <<'EOF'
3976 #include <sys/types.h>
3977 #include <sys/mman.h>
3983 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3984 # define MAP_ANONYMOUS MAP_ANON
3987 /* This mess was copied from the GNU getpagesize.h. */
3988 #ifndef HAVE_GETPAGESIZE
3989 # ifdef HAVE_UNISTD_H
3990 # include <unistd.h>
3993 /* Assume that all systems that can run configure have sys/param.h. */
3994 # ifndef HAVE_SYS_PARAM_H
3995 # define HAVE_SYS_PARAM_H 1
3998 # ifdef _SC_PAGESIZE
3999 # define getpagesize() sysconf(_SC_PAGESIZE)
4000 # else /* no _SC_PAGESIZE */
4001 # ifdef HAVE_SYS_PARAM_H
4002 # include <sys/param.h>
4003 # ifdef EXEC_PAGESIZE
4004 # define getpagesize() EXEC_PAGESIZE
4005 # else /* no EXEC_PAGESIZE */
4007 # define getpagesize() NBPG * CLSIZE
4010 # endif /* no CLSIZE */
4011 # else /* no NBPG */
4013 # define getpagesize() NBPC
4014 # else /* no NBPC */
4016 # define getpagesize() PAGESIZE
4017 # endif /* PAGESIZE */
4018 # endif /* no NBPC */
4019 # endif /* no NBPG */
4020 # endif /* no EXEC_PAGESIZE */
4021 # else /* no HAVE_SYS_PARAM_H */
4022 # define getpagesize() 8192 /* punt totally */
4023 # endif /* no HAVE_SYS_PARAM_H */
4024 # endif /* no _SC_PAGESIZE */
4026 #endif /* no HAVE_GETPAGESIZE */
4029 # define MAP_FAILED -1
4033 #define perror_exit(str, val) \
4034 do { perror(str); exit(val); } while (0)
4036 /* Some versions of cygwin mmap require that munmap is called with the
4037 same parameters as mmap. GCC expects that this is not the case.
4038 Test for various forms of this problem. Warning - icky signal games. */
4040 static sigset_t unblock_sigsegv;
4050 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4051 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4053 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4054 MAP_PRIVATE, devzero, 0);
4062 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4066 /* Basic functionality test. */
4070 char *x = anonmap (pg);
4071 if (x == (char *) MAP_FAILED)
4072 perror_exit("test 0 mmap", 2);
4076 if (munmap(x, pg) < 0)
4077 perror_exit("test 0 munmap", 3);
4080 /* 1. If we map a 2-page region and unmap its second page, the first page
4085 char *x = anonmap (pg * 2);
4086 if (x == (char *)MAP_FAILED)
4087 perror_exit ("test 1 mmap", 4);
4089 signal (SIGSEGV, sigsegv);
4091 perror_exit ("test 1 fault", 5);
4096 if (munmap (x + pg, pg) < 0)
4097 perror_exit ("test 1 munmap 1", 6);
4100 if (setjmp (r) == 0)
4103 perror_exit ("test 1 no fault", 7);
4105 if (munmap (x, pg) < 0)
4106 perror_exit ("test 1 munmap 2", 8);
4109 /* 2. If we map a 2-page region and unmap its first page, the second
4110 page must remain. */
4114 char *x = anonmap (pg * 2);
4115 if (x == (char *)MAP_FAILED)
4116 perror_exit ("test 2 mmap", 9);
4118 signal (SIGSEGV, sigsegv);
4120 perror_exit ("test 2 fault", 10);
4125 if (munmap (x, pg) < 0)
4126 perror_exit ("test 2 munmap 1", 11);
4130 if (setjmp (r) == 0)
4133 perror_exit ("test 2 no fault", 12);
4136 if (munmap (x+pg, pg) < 0)
4137 perror_exit ("test 2 munmap 2", 13);
4140 /* 3. If we map two adjacent 1-page regions and unmap them both with
4141 one munmap, both must go away.
4143 Getting two adjacent 1-page regions with two mmap calls is slightly
4144 tricky. All OS's tested skip over already-allocated blocks; therefore
4145 we have been careful to unmap all allocated regions in previous tests.
4146 HP/UX allocates pages backward in memory. No OS has yet been observed
4147 to be so perverse as to leave unmapped space between consecutive calls
4156 if (x == (char *)MAP_FAILED)
4157 perror_exit ("test 3 mmap 1", 14);
4159 if (y == (char *)MAP_FAILED)
4160 perror_exit ("test 3 mmap 2", 15);
4165 z = y, y = x, x = z;
4168 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4169 (unsigned long)x, (unsigned long)y);
4174 signal (SIGSEGV, sigsegv);
4176 perror_exit ("test 3 fault", 17);
4181 if (munmap (x, pg*2) < 0)
4182 perror_exit ("test 3 munmap", 18);
4184 if (setjmp (r) == 0)
4187 perror_exit ("test 3 no fault 1", 19);
4190 signal (SIGSEGV, sigsegv);
4191 if (setjmp (r) == 0)
4194 perror_exit ("test 3 no fault 2", 20);
4201 sigemptyset (&unblock_sigsegv);
4202 sigaddset (&unblock_sigsegv, SIGSEGV);
4203 pg = getpagesize ();
4204 #ifndef USE_MAP_ANON
4205 devzero = open ("/dev/zero", O_RDWR);
4207 perror_exit ("open /dev/zero", 1);
4219 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4220 echo "configure:4221: checking for working mmap from /dev/zero" >&5
4221 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 if test "$cross_compiling" = yes; then
4225 # If this is not cygwin, and /dev/zero is a character device, it's probably
4226 # safe to assume it works.
4228 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
4229 * ) if test -c /dev/zero
4230 then ac_cv_func_mmap_dev_zero=yes
4231 else ac_cv_func_mmap_dev_zero=no
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 #include "ct-mmap.inc"
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4242 ac_cv_func_mmap_dev_zero=yes
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4248 then ac_cv_func_mmap_dev_zero=no
4249 else ac_cv_func_mmap_dev_zero=buggy
4258 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4259 if test $ac_cv_func_mmap_dev_zero = yes; then
4260 cat >> confdefs.h <<\EOF
4261 #define HAVE_MMAP_DEV_ZERO 1
4266 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4267 echo "configure:4268: checking for working mmap with MAP_ANON(YMOUS)" >&5
4268 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 if test "$cross_compiling" = yes; then
4272 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4273 # just because it's there. Some SCO Un*xen define it but don't implement it.
4274 ac_cv_func_mmap_anon=no
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 #define USE_MAP_ANON
4280 #include "ct-mmap.inc"
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4284 ac_cv_func_mmap_anon=yes
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4290 then ac_cv_func_mmap_anon=no
4291 else ac_cv_func_mmap_anon=buggy
4300 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4301 if test $ac_cv_func_mmap_anon = yes; then
4302 cat >> confdefs.h <<\EOF
4303 #define HAVE_MMAP_ANON 1
4309 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4310 echo "configure:4311: checking for working mmap of a file" >&5
4311 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 # Create a file one thousand bytes long.
4315 for i in 1 2 3 4 5 6 7 8 9 0
4316 do for j in 1 2 3 4 5 6 7 8 9 0
4319 done > conftestdata$$
4321 if test "$cross_compiling" = yes; then
4322 ac_cv_func_mmap_file=no
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4328 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4329 Richard Henderson and Alexandre Oliva.
4330 Check whether read-only mmap of a plain file works. */
4331 #include <sys/types.h>
4332 #include <sys/stat.h>
4334 #include <sys/mman.h>
4342 fd = open("conftestdata$$", O_RDONLY);
4346 if (fstat (fd, &st))
4349 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4350 if (x == (char *) -1)
4353 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4356 if (munmap(x, st.st_size) < 0)
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4364 ac_cv_func_mmap_file=yes
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4369 ac_cv_func_mmap_file=no
4376 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4377 if test $ac_cv_func_mmap_file = yes; then
4378 cat >> confdefs.h <<\EOF
4379 #define HAVE_MMAP_FILE 1
4387 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4388 if test "${with_libiconv_prefix+set}" = set; then
4389 withval="$with_libiconv_prefix"
4391 for dir in `echo "$withval" | tr : ' '`; do
4392 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4393 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
4399 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4400 echo "configure:4401: checking for iconv" >&5
4401 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4405 am_cv_func_iconv="no, consider installing GNU libiconv"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4413 iconv_t cd = iconv_open("","");
4414 iconv(cd,NULL,NULL,NULL,NULL);
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4420 am_cv_func_iconv=yes
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4426 if test "$am_cv_func_iconv" != yes; then
4427 am_save_LIBS="$LIBS"
4428 LIBS="$LIBS -liconv"
4429 cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4435 iconv_t cd = iconv_open("","");
4436 iconv(cd,NULL,NULL,NULL,NULL);
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4443 am_cv_func_iconv=yes
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4449 LIBS="$am_save_LIBS"
4454 echo "$ac_t""$am_cv_func_iconv" 1>&6
4455 if test "$am_cv_func_iconv" = yes; then
4456 cat >> confdefs.h <<\EOF
4457 #define HAVE_ICONV 1
4460 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4461 echo "configure:4462: checking for iconv declaration" >&5
4462 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4476 #if defined(__STDC__) || defined(__cplusplus)
4477 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4486 if { (eval echo configure:4487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4488 am_cv_proto_iconv_arg1=""
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4493 am_cv_proto_iconv_arg1="const"
4496 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4499 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4500 echo "$ac_t""${ac_t:-
4501 }$am_cv_proto_iconv" 1>&6
4502 cat >> confdefs.h <<EOF
4503 #define ICONV_CONST $am_cv_proto_iconv_arg1
4508 if test "$am_cv_lib_iconv" = yes; then
4514 # We will need to find libiberty.h and ansidecl.h
4515 saved_CFLAGS="$CFLAGS"
4516 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4517 for ac_func in getenv atol sbrk abort atof getcwd getwd \
4518 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4519 fprintf_unlocked strstr environ errno \
4520 malloc realloc calloc free basename getopt clock
4522 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4523 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4524 echo "configure:4525: checking whether $ac_func is declared" >&5
4525 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4532 #define $ac_tr_decl 1
4534 #include "ansidecl.h"
4539 char *(*pfn) = (char *(*)) $ac_func ;
4543 if { (eval echo configure:4544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4545 eval "gcc_cv_have_decl_$ac_func=yes"
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4550 eval "gcc_cv_have_decl_$ac_func=no"
4555 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4556 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4557 #define $ac_tr_decl 1
4561 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4562 #define $ac_tr_decl 0
4568 if test x = y ; then
4569 cat >> confdefs.h <<\EOF
4570 #define HAVE_DECL_GETENV 1
4572 cat >> confdefs.h <<\EOF
4573 #define HAVE_DECL_ATOL 1
4575 cat >> confdefs.h <<\EOF
4576 #define HAVE_DECL_SBRK 1
4578 cat >> confdefs.h <<\EOF
4579 #define HAVE_DECL_ABORT 1
4581 cat >> confdefs.h <<\EOF
4582 #define HAVE_DECL_ATOF 1
4584 cat >> confdefs.h <<\EOF
4585 #define HAVE_DECL_GETCWD 1
4587 cat >> confdefs.h <<\EOF
4588 #define HAVE_DECL_GETWD 1
4591 cat >> confdefs.h <<\EOF
4592 #define HAVE_DECL_STRSIGNAL 1
4594 cat >> confdefs.h <<\EOF
4595 #define HAVE_DECL_PUTC_UNLOCKED 1
4597 cat >> confdefs.h <<\EOF
4598 #define HAVE_DECL_FPUTS_UNLOCKED 1
4600 cat >> confdefs.h <<\EOF
4601 #define HAVE_DECL_FWRITE_UNLOCKED 1
4604 cat >> confdefs.h <<\EOF
4605 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4607 cat >> confdefs.h <<\EOF
4608 #define HAVE_DECL_STRSTR 1
4610 cat >> confdefs.h <<\EOF
4611 #define HAVE_DECL_ENVIRON 1
4613 cat >> confdefs.h <<\EOF
4614 #define HAVE_DECL_ERRNO 1
4617 cat >> confdefs.h <<\EOF
4618 #define HAVE_DECL_MALLOC 1
4620 cat >> confdefs.h <<\EOF
4621 #define HAVE_DECL_REALLOC 1
4623 cat >> confdefs.h <<\EOF
4624 #define HAVE_DECL_CALLOC 1
4626 cat >> confdefs.h <<\EOF
4627 #define HAVE_DECL_FREE 1
4629 cat >> confdefs.h <<\EOF
4630 #define HAVE_DECL_BASENAME 1
4632 cat >> confdefs.h <<\EOF
4633 #define HAVE_DECL_GETOPT 1
4635 cat >> confdefs.h <<\EOF
4636 #define HAVE_DECL_CLOCK 1
4641 for ac_func in getrlimit setrlimit getrusage
4643 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4644 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4645 echo "configure:4646: checking whether $ac_func is declared" >&5
4646 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4653 #define $ac_tr_decl 1
4655 #include "ansidecl.h"
4657 #ifdef HAVE_SYS_RESOURCE_H
4658 #include <sys/resource.h>
4664 char *(*pfn) = (char *(*)) $ac_func ;
4668 if { (eval echo configure:4669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4670 eval "gcc_cv_have_decl_$ac_func=yes"
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4675 eval "gcc_cv_have_decl_$ac_func=no"
4680 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4682 #define $ac_tr_decl 1
4686 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4687 #define $ac_tr_decl 0
4693 if test x = y ; then
4694 cat >> confdefs.h <<\EOF
4695 #define HAVE_DECL_GETRLIMIT 1
4697 cat >> confdefs.h <<\EOF
4698 #define HAVE_DECL_SETRLIMIT 1
4700 cat >> confdefs.h <<\EOF
4701 #define HAVE_DECL_GETRUSAGE 1
4706 for ac_func in times
4708 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4709 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4710 echo "configure:4711: checking whether $ac_func is declared" >&5
4711 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4718 #define $ac_tr_decl 1
4720 #include "ansidecl.h"
4722 #ifdef HAVE_SYS_TIMES_H
4723 #include <sys/times.h>
4729 char *(*pfn) = (char *(*)) $ac_func ;
4733 if { (eval echo configure:4734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4735 eval "gcc_cv_have_decl_$ac_func=yes"
4737 echo "configure: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4740 eval "gcc_cv_have_decl_$ac_func=no"
4745 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4746 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4747 #define $ac_tr_decl 1
4751 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4752 #define $ac_tr_decl 0
4758 if test x = y ; then
4759 cat >> confdefs.h <<\EOF
4760 #define HAVE_DECL_TIMES 1
4765 # More time-related stuff.
4766 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4767 echo "configure:4768: checking for struct tms" >&5
4768 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4776 #include "ansidecl.h"
4778 #ifdef HAVE_SYS_TIMES_H
4779 #include <sys/times.h>
4786 if { (eval echo configure:4787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4788 ac_cv_struct_tms=yes
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4798 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4799 if test $ac_cv_struct_tms = yes; then
4800 cat >> confdefs.h <<\EOF
4801 #define HAVE_STRUCT_TMS 1
4806 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4807 # revisit after autoconf 2.50.
4808 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4809 echo "configure:4810: checking for clock_t" >&5
4810 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4818 #include "ansidecl.h"
4825 if { (eval echo configure:4826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4827 gcc_cv_type_clock_t=yes
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 gcc_cv_type_clock_t=no
4837 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4838 if test $gcc_cv_type_clock_t = yes; then
4839 cat >> confdefs.h <<\EOF
4840 #define HAVE_CLOCK_T 1
4845 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4846 CFLAGS="$saved_CFLAGS"
4848 # mkdir takes a single argument on some systems.
4849 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4850 echo "configure:4851: checking if mkdir takes one argument" >&5
4851 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4858 #include <sys/types.h>
4859 #ifdef HAVE_SYS_STAT_H
4860 # include <sys/stat.h>
4862 #ifdef HAVE_UNISTD_H
4863 # include <unistd.h>
4865 #ifdef HAVE_DIRECT_H
4866 # include <direct.h>
4872 if { (eval echo configure:4873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4874 gcc_cv_mkdir_takes_one_arg=no
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4879 gcc_cv_mkdir_takes_one_arg=yes
4884 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4885 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4886 cat >> confdefs.h <<\EOF
4887 #define MKDIR_TAKES_ONE_ARG 1
4901 build_install_headers_dir=install-headers-tar
4906 host_truncate_target=
4909 # Decode the host machine, then the target machine.
4910 # For the host machine, we save the xm_file variable as host_xm_file;
4911 # then we decode the target machine and forget everything else
4912 # that came from the host machine.
4913 for machine in $build $host $target; do
4914 . ${srcdir}/config.gcc
4917 extra_objs="${host_extra_objs} ${extra_objs}"
4919 # Default the target-machine variables that were not explicitly set.
4920 if test x"$tm_file" = x
4921 then tm_file=$cpu_type/$cpu_type.h; fi
4923 if test x"$extra_headers" = x
4924 then extra_headers=; fi
4926 if test x$md_file = x
4927 then md_file=$cpu_type/$cpu_type.md; fi
4929 if test x$out_file = x
4930 then out_file=$cpu_type/$cpu_type.c; fi
4932 if test x"$tmake_file" = x
4933 then tmake_file=$cpu_type/t-$cpu_type
4936 if test x"$dwarf2" = xyes
4937 then tm_file="$tm_file tm-dwarf2.h"
4940 if test x$float_format = x
4941 then float_format=i64
4944 if test $float_format = none
4945 then float_h_file=Makefile.in
4946 else float_h_file=float-$float_format.h
4949 # Handle cpp installation.
4950 if test x$enable_cpp != xno
4952 tmake_file="$tmake_file t-install-cpp"
4955 # Say what files are being used for the output code and MD file.
4956 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4957 echo "Using \`$srcdir/config/$md_file' as machine description file."
4959 # If any of the xm_file variables contain nonexistent files, warn
4960 # about them and drop them.
4963 for x in $build_xm_file; do
4964 if test -f $srcdir/config/$x
4966 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4972 for x in $host_xm_file; do
4973 if test -f $srcdir/config/$x
4975 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4981 for x in $xm_file; do
4982 if test -f $srcdir/config/$x
4984 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4990 for f in $tm_file; do
4993 if test $count = ax; then
4994 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4996 echo "Using the following target machine macro files:"
4997 for f in $tm_file; do
4998 echo " $srcdir/config/$f"
5003 for f in $host_xm_file; do
5006 if test $count = a; then
5008 elif test $count = ax; then
5009 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5011 echo "Using the following host machine macro files:"
5012 for f in $host_xm_file; do
5013 echo " $srcdir/config/$f"
5017 if test "$host_xm_file" != "$build_xm_file"; then
5019 for f in $build_xm_file; do
5022 if test $count = a; then
5024 elif test $count = ax; then
5025 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5027 echo "Using the following build machine macro files:"
5028 for f in $build_xm_file; do
5029 echo " $srcdir/config/$f"
5034 if test x$thread_file = x; then
5035 if test x$target_thread_file != x; then
5036 thread_file=$target_thread_file
5038 thread_file='single'
5042 # auto-host.h is the file containing items generated by autoconf and is
5043 # the first file included by config.h.
5044 # If host=build, it is correct to have hconfig include auto-host.h
5045 # as well. If host!=build, we are in error and need to do more
5046 # work to find out the build config parameters.
5047 if test x$host = x$build
5049 build_auto=auto-host.h
5052 # We create a subdir, then run autoconf in the subdir.
5053 # To prevent recursion we set host and build for the new
5054 # invocation of configure to the build for this invocation
5061 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
5062 *) realsrcdir=../${srcdir};;
5064 saved_CFLAGS="${CFLAGS}"
5065 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
5066 ${realsrcdir}/configure \
5067 --target=$target --host=$build --build=$build
5068 CFLAGS="${saved_CFLAGS}"
5070 # We just finished tests for the build machine, so rename
5071 # the file auto-build.h in the gcc directory.
5072 mv auto-host.h ../auto-build.h
5075 build_auto=auto-build.h
5080 tm_file="${tm_file} defaults.h"
5081 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5082 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5083 xm_file="ansidecl.h ${xm_file} ${tm_file}"
5085 # Truncate the target if necessary
5086 if test x$host_truncate_target != x; then
5087 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5090 # Get the version trigger filename from the toplevel
5091 if test "${with_gcc_version_trigger+set}" = set; then
5092 gcc_version_trigger=$with_gcc_version_trigger
5094 gcc_version_trigger=${srcdir}/version.c
5096 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5097 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5099 # Compile in configure arguments.
5100 if test -f configargs.h ; then
5101 # Being re-configured.
5102 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5103 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5105 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5107 cat > configargs.h <<EOF
5108 /* Generated automatically. */
5109 static const char configuration_arguments[] = "$gcc_config_arguments";
5110 static const char thread_model[] = "$thread_file";
5113 # Internationalization
5115 VERSION="$gcc_version"
5119 # Enable NLS support by default
5120 # Check whether --enable-nls or --disable-nls was given.
5121 if test "${enable_nls+set}" = set; then
5122 enableval="$enable_nls"
5129 # if cross compiling, disable NLS support.
5130 # It's not worth the trouble, at least for now.
5132 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5133 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5139 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5140 echo "configure:5141: checking for library containing strerror" >&5
5141 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 ac_func_search_save_LIBS="$LIBS"
5145 ac_cv_search_strerror="no"
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5160 ac_cv_search_strerror="none required"
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5166 test "$ac_cv_search_strerror" = "no" && for i in cposix; do
5167 LIBS="-l$i $ac_func_search_save_LIBS"
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5180 if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5182 ac_cv_search_strerror="-l$i"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5190 LIBS="$ac_func_search_save_LIBS"
5193 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5194 if test "$ac_cv_search_strerror" != "no"; then
5195 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5202 echo $ac_n "checking for working const""... $ac_c" 1>&6
5203 echo "configure:5204: checking for working const" >&5
5204 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5213 /* Ultrix mips cc rejects this. */
5214 typedef int charset[2]; const charset x;
5215 /* SunOS 4.1.1 cc rejects this. */
5216 char const *const *ccp;
5218 /* NEC SVR4.0.2 mips cc rejects this. */
5219 struct point {int x, y;};
5220 static struct point const zero = {0,0};
5221 /* AIX XL C 1.02.0.0 rejects this.
5222 It does not let you subtract one const X* pointer from another in an arm
5223 of an if-expression whose if-part is not a constant expression */
5224 const char *g = "string";
5225 ccp = &g + (g ? g-g : 0);
5226 /* HPUX 7.0 cc rejects these. */
5229 ccp = (char const *const *) p;
5230 { /* SCO 3.2v4 cc rejects this. */
5232 char const *s = 0 ? (char *) 0 : (char const *) 0;
5236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5238 const int *foo = &x[0];
5241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5242 typedef const int *iptr;
5246 { /* AIX XL C 1.02.0.0 rejects this saying
5247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5248 struct s { int j; const int *ap[3]; };
5249 struct s *b; b->j = 5;
5251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5257 if { (eval echo configure:5258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5269 echo "$ac_t""$ac_cv_c_const" 1>&6
5270 if test $ac_cv_c_const = no; then
5271 cat >> confdefs.h <<\EOF
5277 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5278 echo "configure:5279: checking for off_t" >&5
5279 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 #include <sys/types.h>
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5294 ac_cv_type_off_t=yes
5302 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5303 if test $ac_cv_type_off_t = no; then
5304 cat >> confdefs.h <<\EOF
5310 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5311 echo "configure:5312: checking for size_t" >&5
5312 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 #include <sys/types.h>
5324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5325 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5327 ac_cv_type_size_t=yes
5330 ac_cv_type_size_t=no
5335 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5336 if test $ac_cv_type_size_t = no; then
5337 cat >> confdefs.h <<\EOF
5338 #define size_t unsigned
5343 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5344 # for constant arguments. Useless!
5345 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5346 echo "configure:5347: checking for working alloca.h" >&5
5347 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5348 echo $ac_n "(cached) $ac_c" 1>&6
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5355 char *p = alloca(2 * sizeof(int));
5358 if { (eval echo configure:5359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5360 ac_cv_header_alloca_h=yes
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5365 ac_cv_header_alloca_h=no
5370 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5371 if test $ac_cv_header_alloca_h = yes; then
5372 cat >> confdefs.h <<\EOF
5373 #define HAVE_ALLOCA_H 1
5378 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5379 echo "configure:5380: checking for alloca" >&5
5380 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5388 # define alloca __builtin_alloca
5391 # include <malloc.h>
5392 # define alloca _alloca
5395 # include <alloca.h>
5400 # ifndef alloca /* predefined by HP cc +Olibcalls */
5409 char *p = (char *) alloca(1);
5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5414 ac_cv_func_alloca_works=yes
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5419 ac_cv_func_alloca_works=no
5424 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5425 if test $ac_cv_func_alloca_works = yes; then
5426 cat >> confdefs.h <<\EOF
5427 #define HAVE_ALLOCA 1
5432 if test $ac_cv_func_alloca_works = no; then
5433 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5434 # that cause trouble. Some versions do not even contain alloca or
5435 # contain a buggy version. If you still want to use their alloca,
5436 # use ar to extract alloca.o from them instead of compiling alloca.c.
5437 ALLOCA=alloca.${ac_objext}
5438 cat >> confdefs.h <<\EOF
5443 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5444 echo "configure:5445: checking whether alloca needs Cray hooks" >&5
5445 if eval "test \"`echo '$''{'ac_cv_os_cray'+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 #if defined(CRAY) && ! defined(CRAY2)
5458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5459 egrep "webecray" >/dev/null 2>&1; then
5470 echo "$ac_t""$ac_cv_os_cray" 1>&6
5471 if test $ac_cv_os_cray = yes; then
5472 for ac_func in _getb67 GETB67 getb67; do
5473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5474 echo "configure:5475: checking for $ac_func" >&5
5475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 /* System header to define __stub macros and hopefully few prototypes,
5482 which can conflict with char $ac_func(); below. */
5484 /* Override any gcc2 internal prototype to avoid an error. */
5485 /* We use char because int might match the return type of a gcc2
5486 builtin and then its argument prototype would still apply. */
5491 /* The GNU C library defines this for functions which it implements
5492 to always fail with ENOSYS. Some functions are actually named
5493 something starting with __ and the normal name is an alias. */
5494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5502 if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5504 eval "ac_cv_func_$ac_func=yes"
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5509 eval "ac_cv_func_$ac_func=no"
5514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5515 echo "$ac_t""yes" 1>&6
5516 cat >> confdefs.h <<EOF
5517 #define CRAY_STACKSEG_END $ac_func
5522 echo "$ac_t""no" 1>&6
5528 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5529 echo "configure:5530: checking stack direction for C alloca" >&5
5530 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5531 echo $ac_n "(cached) $ac_c" 1>&6
5533 if test "$cross_compiling" = yes; then
5534 ac_cv_c_stack_direction=0
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5539 find_stack_direction ()
5541 static char *addr = 0;
5546 return find_stack_direction ();
5549 return (&dummy > addr) ? 1 : -1;
5553 exit (find_stack_direction() < 0);
5556 if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5558 ac_cv_c_stack_direction=1
5560 echo "configure: failed program was:" >&5
5561 cat conftest.$ac_ext >&5
5563 ac_cv_c_stack_direction=-1
5570 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5571 cat >> confdefs.h <<EOF
5572 #define STACK_DIRECTION $ac_cv_c_stack_direction
5578 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5579 echo "configure:5580: checking whether we are using the GNU C Library 2.1 or newer" >&5
5580 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5587 #include <features.h>
5588 #ifdef __GNU_LIBRARY__
5589 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 egrep "Lucky GNU user" >/dev/null 2>&1; then
5598 ac_cv_gnu_library_2_1=yes
5601 ac_cv_gnu_library_2_1=no
5609 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5611 GLIBC21="$ac_cv_gnu_library_2_1"
5615 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5616 stdlib.h string.h unistd.h sys/param.h
5618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5620 echo "configure:5621: checking for $ac_hdr" >&5
5621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5630 { (eval echo configure:5631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5632 if test -z "$ac_err"; then
5634 eval "ac_cv_header_$ac_safe=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5640 eval "ac_cv_header_$ac_safe=no"
5644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5647 cat >> confdefs.h <<EOF
5648 #define $ac_tr_hdr 1
5652 echo "$ac_t""no" 1>&6
5656 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5657 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5658 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_func" >&5
5662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* System header to define __stub macros and hopefully few prototypes,
5669 which can conflict with char $ac_func(); below. */
5671 /* Override any gcc2 internal prototype to avoid an error. */
5672 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5678 /* The GNU C library defines this for functions which it implements
5679 to always fail with ENOSYS. Some functions are actually named
5680 something starting with __ and the normal name is an alias. */
5681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5691 eval "ac_cv_func_$ac_func=yes"
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5696 eval "ac_cv_func_$ac_func=no"
5701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5702 echo "$ac_t""yes" 1>&6
5703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5704 cat >> confdefs.h <<EOF
5705 #define $ac_tr_func 1
5709 echo "$ac_t""no" 1>&6
5716 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5717 if test "${with_libiconv_prefix+set}" = set; then
5718 withval="$with_libiconv_prefix"
5720 for dir in `echo "$withval" | tr : ' '`; do
5721 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5722 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
5728 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5729 echo "configure:5730: checking for iconv" >&5
5730 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5734 am_cv_func_iconv="no, consider installing GNU libiconv"
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5742 iconv_t cd = iconv_open("","");
5743 iconv(cd,NULL,NULL,NULL,NULL);
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5749 am_cv_func_iconv=yes
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5755 if test "$am_cv_func_iconv" != yes; then
5756 am_save_LIBS="$LIBS"
5757 LIBS="$LIBS -liconv"
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5764 iconv_t cd = iconv_open("","");
5765 iconv(cd,NULL,NULL,NULL,NULL);
5769 if { (eval echo configure:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5772 am_cv_func_iconv=yes
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5778 LIBS="$am_save_LIBS"
5783 echo "$ac_t""$am_cv_func_iconv" 1>&6
5784 if test "$am_cv_func_iconv" = yes; then
5785 cat >> confdefs.h <<\EOF
5786 #define HAVE_ICONV 1
5789 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5790 echo "configure:5791: checking for iconv declaration" >&5
5791 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5795 cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5805 #if defined(__STDC__) || defined(__cplusplus)
5806 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5815 if { (eval echo configure:5816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5817 am_cv_proto_iconv_arg1=""
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 am_cv_proto_iconv_arg1="const"
5825 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5828 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5829 echo "$ac_t""${ac_t:-
5830 }$am_cv_proto_iconv" 1>&6
5831 cat >> confdefs.h <<EOF
5832 #define ICONV_CONST $am_cv_proto_iconv_arg1
5837 if test "$am_cv_lib_iconv" = yes; then
5843 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5844 echo "configure:5845: checking for nl_langinfo and CODESET" >&5
5845 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5851 #include <langinfo.h>
5853 char* cs = nl_langinfo(CODESET);
5856 if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5858 am_cv_langinfo_codeset=yes
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5863 am_cv_langinfo_codeset=no
5869 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5870 if test $am_cv_langinfo_codeset = yes; then
5871 cat >> confdefs.h <<\EOF
5872 #define HAVE_LANGINFO_CODESET 1
5877 if test $ac_cv_header_locale_h = yes; then
5878 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5879 echo "configure:5880: checking for LC_MESSAGES" >&5
5880 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 am_cv_val_LC_MESSAGES=yes
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 am_cv_val_LC_MESSAGES=no
5903 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5904 if test $am_cv_val_LC_MESSAGES = yes; then
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE_LC_MESSAGES 1
5911 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5912 echo "configure:5913: checking whether NLS is requested" >&5
5913 # Check whether --enable-nls or --disable-nls was given.
5914 if test "${enable_nls+set}" = set; then
5915 enableval="$enable_nls"
5921 echo "$ac_t""$USE_NLS" 1>&6
5924 BUILD_INCLUDED_LIBINTL=no
5925 USE_INCLUDED_LIBINTL=no
5929 if test "$USE_NLS" = "yes"; then
5930 cat >> confdefs.h <<\EOF
5931 #define ENABLE_NLS 1
5934 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5935 echo "configure:5936: checking whether included gettext is requested" >&5
5936 # Check whether --with-included-gettext or --without-included-gettext was given.
5937 if test "${with_included_gettext+set}" = set; then
5938 withval="$with_included_gettext"
5939 nls_cv_force_use_gnu_gettext=$withval
5941 nls_cv_force_use_gnu_gettext=no
5944 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5946 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5947 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5953 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5954 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5955 echo "configure:5956: checking for libintl.h" >&5
5956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5962 #include <libintl.h>
5964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5965 { (eval echo configure:5966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5967 if test -z "$ac_err"; then
5969 eval "ac_cv_header_$ac_safe=yes"
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5975 eval "ac_cv_header_$ac_safe=no"
5979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5981 cat >> confdefs.h <<\EOF
5982 #define HAVE_LIBINTL_H 1
5985 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
5986 echo "configure:5987: checking for GNU gettext in libc" >&5
5987 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 #include <libintl.h>
5994 extern int _nl_msg_cat_cntr;
5996 bindtextdomain ("", "");
5997 return (int) gettext ("") + _nl_msg_cat_cntr
6000 if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6002 gt_cv_func_gnugettext1_libc=yes
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6007 gt_cv_func_gnugettext1_libc=no
6012 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6014 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6015 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6016 echo "configure:6017: checking for GNU gettext in libintl" >&5
6017 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6018 echo $ac_n "(cached) $ac_c" 1>&6
6020 gt_save_LIBS="$LIBS"
6021 LIBS="$LIBS -lintl $LIBICONV"
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6025 #include <libintl.h>
6026 extern int _nl_msg_cat_cntr;
6028 bindtextdomain ("", "");
6029 return (int) gettext ("") + _nl_msg_cat_cntr
6032 if { (eval echo configure:6033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6034 gt_cv_func_gnugettext1_libintl=yes
6036 echo "configure: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6039 gt_cv_func_gnugettext1_libintl=no
6042 LIBS="$gt_save_LIBS"
6045 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6048 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6049 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6050 && test "$PACKAGE" != gettext; }; then
6051 cat >> confdefs.h <<\EOF
6052 #define HAVE_GETTEXT 1
6056 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6057 INTLLIBS="-lintl $LIBICONV"
6060 gt_save_LIBS="$LIBS"
6061 LIBS="$LIBS $INTLLIBS"
6062 for ac_func in dcgettext
6064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_func" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073 which can conflict with char $ac_func(); below. */
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 eval "ac_cv_func_$ac_func=yes"
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6100 eval "ac_cv_func_$ac_func=no"
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 cat >> confdefs.h <<EOF
6109 #define $ac_tr_func 1
6113 echo "$ac_t""no" 1>&6
6117 LIBS="$gt_save_LIBS"
6119 # Extract the first word of "msgfmt", so it can be a program name with args.
6120 set dummy msgfmt; ac_word=$2
6121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6122 echo "configure:6123: checking for $ac_word" >&5
6123 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6128 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6132 for ac_dir in $PATH; do
6133 test -z "$ac_dir" && ac_dir=.
6134 if test -f $ac_dir/$ac_word; then
6135 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
6136 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6142 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6146 MSGFMT="$ac_cv_path_MSGFMT"
6147 if test "$MSGFMT" != ":"; then
6148 echo "$ac_t""$MSGFMT" 1>&6
6150 echo "$ac_t""no" 1>&6
6153 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6154 set dummy gmsgfmt; ac_word=$2
6155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6156 echo "configure:6157: checking for $ac_word" >&5
6157 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6162 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6165 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
6168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6170 for ac_dir in $ac_dummy; do
6171 test -z "$ac_dir" && ac_dir=.
6172 if test -f $ac_dir/$ac_word; then
6173 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
6178 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6182 GMSGFMT="$ac_cv_path_GMSGFMT"
6183 if test -n "$GMSGFMT"; then
6184 echo "$ac_t""$GMSGFMT" 1>&6
6186 echo "$ac_t""no" 1>&6
6190 # Extract the first word of "xgettext", so it can be a program name with args.
6191 set dummy xgettext; ac_word=$2
6192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6193 echo "configure:6194: checking for $ac_word" >&5
6194 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6199 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6203 for ac_dir in $PATH; do
6204 test -z "$ac_dir" && ac_dir=.
6205 if test -f $ac_dir/$ac_word; then
6206 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
6207 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6213 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6217 XGETTEXT="$ac_cv_path_XGETTEXT"
6218 if test "$XGETTEXT" != ":"; then
6219 echo "$ac_t""$XGETTEXT" 1>&6
6221 echo "$ac_t""no" 1>&6
6229 echo "$ac_t""no" 1>&6
6233 if test "$CATOBJEXT" = "NONE"; then
6234 nls_cv_use_gnu_gettext=yes
6238 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6239 INTLOBJS="\$(GETTOBJS)"
6240 # Extract the first word of "msgfmt", so it can be a program name with args.
6241 set dummy msgfmt; ac_word=$2
6242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6243 echo "configure:6244: checking for $ac_word" >&5
6244 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6
6249 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6253 for ac_dir in $PATH; do
6254 test -z "$ac_dir" && ac_dir=.
6255 if test -f $ac_dir/$ac_word; then
6256 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
6257 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6263 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6267 MSGFMT="$ac_cv_path_MSGFMT"
6268 if test "$MSGFMT" != ":"; then
6269 echo "$ac_t""$MSGFMT" 1>&6
6271 echo "$ac_t""no" 1>&6
6274 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6275 set dummy gmsgfmt; ac_word=$2
6276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6277 echo "configure:6278: checking for $ac_word" >&5
6278 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6283 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6286 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
6289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6291 for ac_dir in $ac_dummy; do
6292 test -z "$ac_dir" && ac_dir=.
6293 if test -f $ac_dir/$ac_word; then
6294 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
6299 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6303 GMSGFMT="$ac_cv_path_GMSGFMT"
6304 if test -n "$GMSGFMT"; then
6305 echo "$ac_t""$GMSGFMT" 1>&6
6307 echo "$ac_t""no" 1>&6
6310 # Extract the first word of "xgettext", so it can be a program name with args.
6311 set dummy xgettext; ac_word=$2
6312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6313 echo "configure:6314: checking for $ac_word" >&5
6314 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6319 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6323 for ac_dir in $PATH; do
6324 test -z "$ac_dir" && ac_dir=.
6325 if test -f $ac_dir/$ac_word; then
6326 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
6327 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6333 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6337 XGETTEXT="$ac_cv_path_XGETTEXT"
6338 if test "$XGETTEXT" != ":"; then
6339 echo "$ac_t""$XGETTEXT" 1>&6
6341 echo "$ac_t""no" 1>&6
6345 BUILD_INCLUDED_LIBINTL=yes
6346 USE_INCLUDED_LIBINTL=yes
6348 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
6349 INTLDEPS="\$(top_builddir)/intl/libintl.a"
6350 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6353 if test "$GMSGFMT" != ":"; then
6354 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
6357 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6362 if test "$XGETTEXT" != ":"; then
6363 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
6366 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6376 if test "$PACKAGE" = gettext; then
6377 BUILD_INCLUDED_LIBINTL=yes
6380 for ac_prog in bison
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383 set dummy $ac_prog; ac_word=$2
6384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_word" >&5
6386 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6389 if test -n "$INTLBISON"; then
6390 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6394 for ac_dir in $ac_dummy; do
6395 test -z "$ac_dir" && ac_dir=.
6396 if test -f $ac_dir/$ac_word; then
6397 ac_cv_prog_INTLBISON="$ac_prog"
6404 INTLBISON="$ac_cv_prog_INTLBISON"
6405 if test -n "$INTLBISON"; then
6406 echo "$ac_t""$INTLBISON" 1>&6
6408 echo "$ac_t""no" 1>&6
6411 test -n "$INTLBISON" && break
6414 if test -z "$INTLBISON"; then
6417 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6418 echo "configure:6419: checking version of bison" >&5
6419 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6420 case $ac_prog_version in
6421 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6422 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6423 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6424 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6426 echo "$ac_t""$ac_prog_version" 1>&6
6428 if test $ac_verc_fail = yes; then
6441 if test $USE_INCLUDED_LIBINTL = yes; then
6442 cat >> confdefs.h <<\EOF
6443 #define USE_INCLUDED_LIBINTL 1
6449 nls_cv_header_libgt=
6461 if test "x$CATOBJEXT" != x; then
6462 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6463 echo "configure:6464: checking for catalogs to be installed" >&5
6464 # Look for .po and .gmo files in the source directory.
6467 for cat in $srcdir/po/*$CATOBJEXT $srcdir/po/*.po; do
6468 # If there aren't any .gmo files the shell will give us the
6469 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6471 case "$cat" in *\**)
6474 # The quadruple backslash is collapsed to a double backslash
6475 # by the backticks, then collapsed again by the double quotes,
6476 # leaving us with one backslash in the sed expression (right
6477 # before the dot that mustn't act as a wildcard). The dot to
6478 # be escaped in the second expression is hiding inside CATOBJEXT.
6479 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6480 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6481 # The user is allowed to set LINGUAS to a list of languages to
6482 # install catalogs for. If it's empty that means "all of them."
6483 if test "x$LINGUAS" = x; then
6484 CATALOGS="$CATALOGS $cat"
6485 XLINGUAS="$XLINGUAS $lang"
6487 case "$LINGUAS" in *$lang*)
6488 CATALOGS="$CATALOGS $cat"
6489 XLINGUAS="$XLINGUAS $lang"
6495 echo "$ac_t""$LINGUAS" 1>&6
6499 if test -n "$ac_aux_dir"; then
6500 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6502 if test -z "$MKINSTALLDIRS"; then
6503 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6507 INTL_LIBTOOL_SUFFIX_PREFIX=
6511 # Windows32 Registry support for specifying GCC installation paths.
6512 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6513 if test "${enable_win32_registry+set}" = set; then
6514 enableval="$enable_win32_registry"
6519 win32 | pe | cygwin* | mingw32* | uwin*)
6520 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6521 echo "configure:6522: checking whether windows registry support is requested" >&5
6522 if test "x$enable_win32_registry" != xno; then
6523 cat >> confdefs.h <<\EOF
6524 #define ENABLE_WIN32_REGISTRY 1
6527 echo "$ac_t""yes" 1>&6
6529 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6530 echo "configure:6531: checking for library containing RegOpenKeyExA" >&5
6531 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 ac_func_search_save_LIBS="$LIBS"
6535 ac_cv_search_RegOpenKeyExA="no"
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char RegOpenKeyExA();
6548 if { (eval echo configure:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 ac_cv_search_RegOpenKeyExA="none required"
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6556 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i in advapi32; do
6557 LIBS="-l$i $ac_func_search_save_LIBS"
6558 cat > conftest.$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6561 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6564 char RegOpenKeyExA();
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6572 ac_cv_search_RegOpenKeyExA="-l$i"
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6580 LIBS="$ac_func_search_save_LIBS"
6583 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6584 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6585 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
6591 echo "$ac_t""no" 1>&6
6594 # Check if user specified a different registry key.
6595 case "x${enable_win32_registry}" in
6598 gcc_cv_win32_registry_key="$VERSION"
6601 # no registry lookup.
6602 gcc_cv_win32_registry_key=''
6605 # user-specified key.
6606 gcc_cv_win32_registry_key="$enable_win32_registry"
6610 if test "x$enable_win32_registry" != xno; then
6611 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6612 echo "configure:6613: checking registry key on windows hosts" >&5
6613 cat >> confdefs.h <<EOF
6614 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6617 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6622 # Get an absolute path to the GCC top-level source directory
6628 # Conditionalize the makefile for this host machine.
6629 # Make-host contains the concatenation of all host makefile fragments
6630 # [there can be more than one]. This file is built by configure.frag.
6631 host_overrides=Make-host
6632 dep_host_xmake_file=
6633 for f in .. ${host_xmake_file}
6635 if test -f ${srcdir}/config/$f
6637 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
6641 # Conditionalize the makefile for this target machine.
6642 # Make-target contains the concatenation of all host makefile fragments
6643 # [there can be more than one]. This file is built by configure.frag.
6644 target_overrides=Make-target
6646 for f in .. ${tmake_file}
6648 if test -f ${srcdir}/config/$f
6650 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
6654 # If the host doesn't support symlinks, modify CC in
6655 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6656 # Otherwise, we can use "CC=$(CC)".
6658 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
6660 cc_set_by_configure="\$(CC)"
6661 quoted_cc_set_by_configure="\$(CC)"
6662 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
6663 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
6666 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
6668 symbolic_link="cp -p"
6672 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6673 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6674 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6675 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6679 out_object_file=`basename $out_file .c`.o
6682 for f in $tm_file; do
6685 tm_file_list="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6687 tm_file_list="${tm_file_list} $f" ;;
6688 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
6693 for f in $tm_p_file; do
6694 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
6698 for f in $host_xm_file; do
6701 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6702 auto-host.h | defaults.h )
6703 host_xm_file_list="${host_xm_file_list} $f" ;;
6704 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6709 for f in $build_xm_file; do
6712 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6713 auto-build.h | auto-host.h | defaults.h )
6714 build_xm_file_list="${build_xm_file_list} $f" ;;
6715 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6719 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6720 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6723 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
6724 if test x$host != x$target
6726 CROSS="-DCROSS_COMPILE"
6728 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
6731 # If this is a cross-compiler that does not
6732 # have its own set of headers then define
6735 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6736 # This prevents libgcc2 from containing any code which requires libc
6739 if test x$host != x$target && test x$with_headers = x; then
6740 inhibit_libc=-Dinhibit_libc
6742 if test x$with_newlib = xyes; then
6743 inhibit_libc=-Dinhibit_libc
6748 # When building gcc with a cross-compiler, we need to adjust things so
6749 # that the generator programs are still built with the native compiler.
6750 # Also, we cannot run fixincludes or fix-header.
6751 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6754 # These are the normal (build=host) settings:
6756 HOST_PREFIX_1=ignore-
6758 HOST_CFLAGS='$(ALL_CFLAGS)'
6760 STMP_FIXINC=stmp-fixinc
6761 STMP_FIXPROTO=stmp-fixproto
6763 # And these apply if build != host.
6764 if test x$build != x$host
6767 HOST_PREFIX_1=build-
6768 HOST_CC='$(CC_FOR_BUILD)'
6769 HOST_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6775 # Expand extra_headers to include complete path.
6776 # This substitutes for lots of t-* files.
6778 if test "x$extra_headers" = x
6781 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6782 for file in $extra_headers;
6784 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6788 if test x$use_collect2 = xno; then
6792 # Add a definition of USE_COLLECT2 if system wants one.
6793 if test x$use_collect2 != x
6795 host_xm_defines="${host_xm_defines} USE_COLLECT2"
6796 xm_defines="${xm_defines} USE_COLLECT2"
6799 # If we have gas in the build tree, make a link to it.
6800 if test -f ../gas/Makefile; then
6801 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
6804 # If we have nm and objdump in the build tree, make a link to them.
6805 if test -f ../binutils/Makefile; then
6806 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
6807 rm -f objdump; $symbolic_link ../binutils/objdump$host_exeext objdump$host_exeext 2>/dev/null
6810 # If we have ld in the build tree, make a link to it.
6811 if test -f ../ld/Makefile; then
6812 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
6815 # Figure out what assembler we will be using.
6816 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6817 echo "configure:6818: checking what assembler to use" >&5
6819 gcc_cv_gas_major_version=
6820 gcc_cv_gas_minor_version=
6821 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6822 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6823 if test -x "$DEFAULT_ASSEMBLER"; then
6824 gcc_cv_as="$DEFAULT_ASSEMBLER"
6825 elif test -x "$AS"; then
6827 elif test -x as$host_exeext; then
6828 # Build using assembler in the current directory.
6829 gcc_cv_as=./as$host_exeext
6830 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
6831 # Single tree build which includes gas.
6832 for f in $gcc_cv_as_bfd_srcdir/configure $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
6834 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6835 if test x$gcc_cv_gas_version != x; then
6839 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6840 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6843 if test "x$gcc_cv_as" = x -a x$host = x$target; then
6845 # Search the same directories that the installed compiler will
6846 # search. Else we may find the wrong assembler and lose. If we
6847 # do not find a suitable assembler binary, then try the user's
6850 # Also note we have to check MD_EXEC_PREFIX before checking the
6851 # user's path. Unfortunately, there is no good way to get at the
6852 # value of MD_EXEC_PREFIX here. So we do a brute force search
6853 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6854 # to be fixed as part of the make/configure rewrite too.
6856 if test "x$exec_prefix" = xNONE; then
6857 if test "x$prefix" = xNONE; then
6858 test_prefix=/usr/local
6863 test_prefix=$exec_prefix
6866 # If the loop below does not find an assembler, then use whatever
6867 # one we can find in the users's path.
6869 gcc_cv_as=as$host_exeext
6871 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6872 $test_prefix/lib/gcc-lib/$target \
6873 /usr/lib/gcc/$target/$gcc_version \
6874 /usr/lib/gcc/$target \
6875 $test_prefix/$target/bin/$target/$gcc_version \
6876 $test_prefix/$target/bin \
6881 /bsd43/usr/lib/cmplrs/cc \
6882 /usr/cross64/usr/bin \
6883 /usr/lib/cmplrs/cc \
6884 /sysv/usr/lib/cmplrs/cc \
6885 /svr4/usr/lib/cmplrs/cc \
6888 for dir in $test_dirs; do
6889 if test -f $dir/as$host_exeext; then
6890 gcc_cv_as=$dir/as$host_exeext
6895 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6896 echo "$ac_t"""newly built gas"" 1>&6
6898 echo "$ac_t""$gcc_cv_as" 1>&6
6901 # Figure out what linker we will be using.
6902 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6903 echo "configure:6904: checking what linker to use" >&5
6905 gcc_cv_gld_major_version=
6906 gcc_cv_gld_minor_version=
6907 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6908 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6909 if test -x "$DEFAULT_LINKER"; then
6910 gcc_cv_ld="$DEFAULT_LINKER"
6911 elif test -x "$LD"; then
6913 elif test -x ld$host_exeext; then
6914 # Build using linker in the current directory.
6915 gcc_cv_ld=./ld$host_exeext
6916 elif test -f $gcc_cv_ld_gld_srcdir/configure.in -a -f ../ld/Makefile; then
6917 # Single tree build which includes ld.
6918 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
6920 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6921 if test x$gcc_cv_gld_version != x; then
6925 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6926 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6929 if test "x$gcc_cv_ld" = x -a x$host = x$target; then
6931 # Search the same directories that the installed compiler will
6932 # search. Else we may find the wrong linker and lose. If we
6933 # do not find a suitable linker binary, then try the user's
6936 # Also note we have to check MD_EXEC_PREFIX before checking the
6937 # user's path. Unfortunately, there is no good way to get at the
6938 # value of MD_EXEC_PREFIX here. So we do a brute force search
6939 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6940 # to be fixed as part of the make/configure rewrite too.
6942 if test "x$exec_prefix" = xNONE; then
6943 if test "x$prefix" = xNONE; then
6944 test_prefix=/usr/local
6949 test_prefix=$exec_prefix
6952 # If the loop below does not find an linker, then use whatever
6953 # one we can find in the users's path.
6955 gcc_cv_ld=ld$host_exeext
6957 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6958 $test_prefix/lib/gcc-lib/$target \
6959 /usr/lib/gcc/$target/$gcc_version \
6960 /usr/lib/gcc/$target \
6961 $test_prefix/$target/bin/$target/$gcc_version \
6962 $test_prefix/$target/bin \
6967 /bsd43/usr/lib/cmplrs/cc \
6968 /usr/cross64/usr/bin \
6969 /usr/lib/cmplrs/cc \
6970 /sysv/usr/lib/cmplrs/cc \
6971 /svr4/usr/lib/cmplrs/cc \
6974 for dir in $test_dirs; do
6975 if test -f $dir/ld$host_exeext; then
6976 gcc_cv_ld=$dir/ld$host_exeext
6981 if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then
6982 echo "$ac_t"""newly built ld"" 1>&6
6984 echo "$ac_t""$gcc_cv_ld" 1>&6
6987 # Figure out what nm we will be using.
6988 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
6989 echo "configure:6990: checking what nm to use" >&5
6990 if test -x nm$host_exeext; then
6991 gcc_cv_nm=./nm$host_exeext
6992 elif test x$host = x$target; then
6994 gcc_cv_nm=nm$host_exeext
6996 echo "$ac_t""$gcc_cv_nm" 1>&6
6998 # Figure out what objdump we will be using.
6999 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7000 echo "configure:7001: checking what objdump to use" >&5
7001 if test -x objdump$host_exeext; then
7002 gcc_cv_objdump=./objdump$host_exeext
7003 elif test x$host = x$target; then
7005 gcc_cv_objdump=objdump$host_exeext
7007 echo "$ac_t""$gcc_cv_objdump" 1>&6
7009 # Figure out what assembler alignment features are present.
7010 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7011 echo "configure:7012: checking assembler alignment features" >&5
7012 gcc_cv_as_alignment_features=none
7013 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7014 # Gas version 2.6 and later support for .balign and .p2align.
7015 # bytes to skip when using .p2align.
7016 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
7017 gcc_cv_as_alignment_features=".balign and .p2align"
7018 cat >> confdefs.h <<\EOF
7019 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7023 # Gas version 2.8 and later support specifying the maximum
7024 # bytes to skip when using .p2align.
7025 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
7026 gcc_cv_as_alignment_features=".p2align including maximum skip"
7027 cat >> confdefs.h <<\EOF
7028 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7032 elif test x$gcc_cv_as != x; then
7033 # Check if we have .balign and .p2align
7034 echo ".balign 4" > conftest.s
7035 echo ".p2align 2" >> conftest.s
7036 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7037 gcc_cv_as_alignment_features=".balign and .p2align"
7038 cat >> confdefs.h <<\EOF
7039 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7043 rm -f conftest.s conftest.o
7044 # Check if specifying the maximum bytes to skip when
7045 # using .p2align is supported.
7046 echo ".p2align 4,,7" > conftest.s
7047 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7048 gcc_cv_as_alignment_features=".p2align including maximum skip"
7049 cat >> confdefs.h <<\EOF
7050 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7054 rm -f conftest.s conftest.o
7056 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7058 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7059 echo "configure:7060: checking assembler subsection support" >&5
7060 gcc_cv_as_subsections=no
7061 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7062 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
7063 gcc_cv_as_subsections="working .subsection -1"
7065 elif test x$gcc_cv_as != x; then
7066 # Check if we have .subsection
7067 echo ".subsection 1" > conftest.s
7068 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7069 gcc_cv_as_subsections=".subsection"
7070 if test x$gcc_cv_nm != x; then
7071 cat > conftest.s <<EOF
7072 conftest_label1: .word 0
7074 conftest_label2: .word 0
7077 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7078 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
7079 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
7080 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
7083 gcc_cv_as_subsections="working .subsection -1"
7088 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7090 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
7091 cat >> confdefs.h <<\EOF
7092 #define HAVE_GAS_SUBSECTION_ORDERING 1
7096 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7098 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7099 echo "configure:7100: checking assembler weak support" >&5
7101 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7102 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
7103 gcc_cv_as_weak="yes"
7105 elif test x$gcc_cv_as != x; then
7106 # Check if we have .weak
7107 echo " .weak foobar" > conftest.s
7108 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7109 gcc_cv_as_weak="yes"
7111 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7113 if test x"$gcc_cv_as_weak" = xyes; then
7114 cat >> confdefs.h <<\EOF
7115 #define HAVE_GAS_WEAK 1
7119 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7121 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7122 echo "configure:7123: checking assembler hidden support" >&5
7124 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7125 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
7126 gcc_cv_as_hidden="yes"
7128 elif test x$gcc_cv_as != x; then
7129 # Check if we have .hidden
7130 echo " .hidden foobar" > conftest.s
7131 echo "foobar:" >> conftest.s
7132 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7133 gcc_cv_as_hidden="yes"
7135 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7137 if test x"$gcc_cv_as_hidden" = xyes; then
7138 cat >> confdefs.h <<\EOF
7139 #define HAVE_GAS_HIDDEN 1
7143 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7145 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7146 echo "configure:7147: checking assembler leb128 support" >&5
7148 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7149 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
7150 gcc_cv_as_leb128="yes"
7152 elif test x$gcc_cv_as != x; then
7153 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7154 cat > conftest.s <<EOF
7162 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7163 gcc_cv_as_leb128="yes"
7165 # GAS versions before 2.11 do not support uleb128,
7166 # despite appearing to.
7167 # ??? There exists an elf-specific test that will crash
7168 # the assembler. Perhaps it's better to figure out whether
7169 # arbitrary sections are supported and try the test.
7170 as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
7171 if echo "$as_ver" | grep GNU > /dev/null; then
7172 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7173 as_major=`echo $as_ver | sed 's/\..*//'`
7174 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7175 if test $as_major -eq 2 -a $as_minor -lt 11; then
7176 gcc_cv_as_leb128="no"
7180 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7182 if test x"$gcc_cv_as_leb128" = xyes; then
7183 cat >> confdefs.h <<\EOF
7184 #define HAVE_AS_LEB128 1
7188 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7190 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7191 echo "configure:7192: checking assembler eh_frame optimization" >&5
7192 gcc_cv_as_eh_frame=no
7193 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7194 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
7195 gcc_cv_as_eh_frame="yes"
7197 elif test x$gcc_cv_as != x; then
7198 # Check if this is GAS.
7199 as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7200 rm -f a.out 2> /dev/null
7201 if echo "$as_ver" | grep GNU > /dev/null; then
7202 # Versions up to and including 2.11.0 may mis-optimize
7203 # .eh_frame data. Try something.
7204 cat > conftest.s <<EOF
7211 .section .eh_frame,"aw",@progbits
7213 .4byte .LECIE1-.LSCIE1
7227 .4byte .LEFDE1-.LASFDE1
7229 .4byte .LASFDE1-__FRAME_BEGIN__
7238 cat > conftest.lit <<EOF
7239 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7240 0010 01000000 12000000 18000000 00000000 ................
7241 0020 08000000 04080000 0044 .........D
7243 cat > conftest.big <<EOF
7244 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7245 0010 00000001 00000012 00000018 00000000 ................
7246 0020 00000008 04000000 0844 .........D
7248 # If the assembler didn't choke, and we can objdump,
7249 # and we got the correct data, then succeed.
7250 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
7251 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
7252 | tail -3 > conftest.got \
7253 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
7254 || cmp conftest.big conftest.got > /dev/null 2>&1; }
7256 gcc_cv_as_eh_frame="yes"
7258 gcc_cv_as_eh_frame="bad"
7259 if $gcc_cv_as -o conftest.o --traditional-format /dev/null; then
7260 cat >> confdefs.h <<\EOF
7261 #define USE_AS_TRADITIONAL_FORMAT 1
7269 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7271 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7272 echo "configure:7273: checking assembler section merging support" >&5
7273 gcc_cv_as_shf_merge=no
7274 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7275 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
7276 gcc_cv_as_shf_merge=yes
7278 elif test x$gcc_cv_as != x; then
7279 # Check if we support SHF_MERGE sections
7280 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7281 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s > /dev/null 2>&1; then
7282 gcc_cv_as_shf_merge=yes
7284 rm -f conftest.s conftest.o
7286 if test x"$gcc_cv_as_shf_merge" = xyes; then
7287 cat >> confdefs.h <<\EOF
7288 #define HAVE_GAS_SHF_MERGE 1
7292 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7295 # All TARGET_ABI_OSF targets.
7296 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
7297 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7298 echo "configure:7299: checking assembler supports explicit relocations" >&5
7299 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7303 gcc_cv_as_explicit_relocs=unknown
7304 if test x$gcc_cv_gas_major_version != x \
7305 -a x$gcc_cv_gas_minor_version != x
7307 if test "$gcc_cv_gas_major_version" -eq 2 \
7308 -a "$gcc_cv_gas_minor_version" -ge 12 \
7309 -o "$gcc_cv_gas_major_version" -gt 2; then
7310 gcc_cv_as_explicit_relocs=yes
7312 elif test x$gcc_cv_as != x; then
7313 cat > conftest.s << 'EOF'
7316 extbl $3, $2, $3 !lituse_bytoff!1
7317 ldq $2, a($29) !literal!1
7318 ldq $4, b($29) !literal!2
7319 ldq_u $3, 0($2) !lituse_base!1
7320 ldq $27, f($29) !literal!5
7321 jsr $26, ($27), f !lituse_jsr!5
7322 ldah $29, 0($26) !gpdisp!3
7323 lda $0, c($29) !gprel
7324 ldah $1, d($29) !gprelhigh
7325 lda $1, d($1) !gprellow
7326 lda $29, 0($29) !gpdisp!3
7328 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7329 gcc_cv_as_explicit_relocs=yes
7331 gcc_cv_as_explicit_relocs=no
7333 rm -f conftest.s conftest.o
7338 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7339 if test "x$gcc_cv_as_explicit_relocs" = xyes; then
7340 cat >> confdefs.h <<\EOF
7341 #define HAVE_AS_EXPLICIT_RELOCS 1
7347 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7348 echo "configure:7349: checking assembler .register pseudo-op support" >&5
7349 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7353 gcc_cv_as_register_pseudo_op=unknown
7354 if test x$gcc_cv_as != x; then
7355 # Check if we have .register
7356 echo ".register %g2, #scratch" > conftest.s
7357 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7358 gcc_cv_as_register_pseudo_op=yes
7360 gcc_cv_as_register_pseudo_op=no
7362 rm -f conftest.s conftest.o
7367 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7368 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
7369 cat >> confdefs.h <<\EOF
7370 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7375 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7376 echo "configure:7377: checking assembler supports -relax" >&5
7377 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7378 echo $ac_n "(cached) $ac_c" 1>&6
7381 gcc_cv_as_relax_opt=unknown
7382 if test x$gcc_cv_as != x; then
7383 # Check if gas supports -relax
7384 echo ".text" > conftest.s
7385 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
7386 gcc_cv_as_relax_opt=yes
7388 gcc_cv_as_relax_opt=no
7390 rm -f conftest.s conftest.o
7395 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7396 if test "x$gcc_cv_as_relax_opt" = xyes; then
7397 cat >> confdefs.h <<\EOF
7398 #define HAVE_AS_RELAX_OPTION 1
7403 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7404 echo "configure:7405: checking assembler and linker support unaligned pc related relocs" >&5
7405 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7409 gcc_cv_as_sparc_ua_pcrel=unknown
7410 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x; then
7411 gcc_cv_as_sparc_ua_pcrel=no
7412 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7413 if $gcc_cv_as -K PIC -o conftest.o conftest.s > /dev/null 2>&1; then
7414 if $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
7415 gcc_cv_as_sparc_ua_pcrel=yes
7418 rm -f conftest.s conftest.o conftest
7423 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7424 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes; then
7425 cat >> confdefs.h <<\EOF
7426 #define HAVE_AS_SPARC_UA_PCREL 1
7433 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
7434 echo "configure:7435: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
7435 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7439 if test -n "$gcc_cv_as"; then
7440 echo ".xword foo" > conftest.s
7441 gcc_cv_as_flags64=no
7442 for flag in "-xarch=v9" "-64 -Av9"; do
7443 if $gcc_cv_as $flag -o conftest.o conftest.s \
7444 > /dev/null 2>&1; then
7445 gcc_cv_as_flags64=$flag
7449 rm -f conftest.s conftest.o
7451 if test "$gas" = yes; then
7452 gcc_cv_as_flags64="-64 -Av9"
7454 gcc_cv_as_flags64="-xarch=v9"
7460 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
7461 if test "x$gcc_cv_as_flags64" = xno; then
7463 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7464 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7467 cat >> confdefs.h <<EOF
7468 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
7473 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
7477 if test "x$gcc_cv_as_flags64" != xno; then
7478 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7479 echo "configure:7480: checking for assembler offsetable %lo() support" >&5
7480 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7481 echo $ac_n "(cached) $ac_c" 1>&6
7484 gcc_cv_as_offsetable_lo10=unknown
7485 if test "x$gcc_cv_as" != x; then
7486 # Check if assembler has offsetable %lo()
7487 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7488 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7489 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7491 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7492 > /dev/null 2>&1; then
7493 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
7494 gcc_cv_as_offsetable_lo10=no
7496 gcc_cv_as_offsetable_lo10=yes
7499 gcc_cv_as_offsetable_lo10=no
7501 rm -f conftest.s conftest.o conftest1.s conftest1.o
7506 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7507 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
7508 cat >> confdefs.h <<\EOF
7509 #define HAVE_AS_OFFSETABLE_LO10 1
7517 i[34567]86-*-* | x86_64-*-*)
7518 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7519 echo "configure:7520: checking assembler instructions" >&5
7520 gcc_cv_as_instructions=
7521 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7522 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
7523 gcc_cv_as_instructions="filds fists"
7525 elif test x$gcc_cv_as != x; then
7526 set "filds fists" "filds mem; fists mem"
7529 echo "$2" > conftest.s
7530 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7531 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
7535 rm -f conftest.s conftest.o
7537 if test x"$gcc_cv_as_instructions" != x; then
7538 cat >> confdefs.h <<EOF
7539 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7543 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7545 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7546 echo "configure:7547: checking assembler GOTOFF in data directives" >&5
7547 gcc_cv_as_gotoff_in_data=no
7548 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x
7550 if test "$gcc_cv_gas_major_version" -eq 2 \
7551 -a "$gcc_cv_gas_minor_version" -ge 11 \
7552 -o "$gcc_cv_gas_major_version" -gt 2; then
7553 gcc_cv_as_gotoff_in_data=yes
7555 elif test x$gcc_cv_as != x; then
7556 cat > conftest.s <<EOF
7563 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7564 gcc_cv_as_gotoff_in_data=yes
7567 cat >> confdefs.h <<EOF
7568 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7571 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7575 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7576 echo "configure:7577: checking assembler dwarf2 debug_line support" >&5
7577 gcc_cv_as_dwarf2_debug_line=no
7578 # ??? Not all targets support dwarf2 debug_line, even within a version
7579 # of gas. Moreover, we need to emit a valid instruction to trigger any
7580 # info to the output file. So, as supported targets are added to gas 2.11,
7581 # add some instruction here to (also) show we expect this might work.
7582 # ??? Once 2.11 is released, probably need to add first known working
7583 # version to the per-target configury.
7585 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* | x86_64*-*-*)
7592 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
7594 if test "$gcc_cv_gas_major_version" -eq 2 \
7595 -a "$gcc_cv_gas_minor_version" -ge 11 \
7596 -o "$gcc_cv_gas_major_version" -gt 2 \
7597 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
7598 && test x"$insn" != x ; then
7599 gcc_cv_as_dwarf2_debug_line="yes"
7601 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
7602 echo ' .file 1 "conftest.s"' > conftest.s
7603 echo ' .loc 1 3 0' >> conftest.s
7604 echo " $insn" >> conftest.s
7605 # ??? This fails with non-gnu grep.
7606 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
7607 && grep debug_line conftest.o > /dev/null 2>&1 ; then
7608 # The .debug_line file table must be in the exact order that
7609 # we specified the files, since these indices are also used
7610 # by DW_AT_decl_file. Approximate this test by testing if
7611 # the assembler bitches if the same index is assigned twice.
7612 echo ' .file 1 "foo.s"' > conftest.s
7613 echo ' .file 1 "bar.s"' >> conftest.s
7614 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1
7616 gcc_cv_as_dwarf2_debug_line="no"
7618 gcc_cv_as_dwarf2_debug_line="yes"
7621 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7623 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
7624 cat >> confdefs.h <<\EOF
7625 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7629 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7631 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7632 echo "configure:7633: checking assembler --gdwarf2 support" >&5
7633 gcc_cv_as_gdwarf2_flag=no
7634 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
7636 if test "$gcc_cv_gas_major_version" -eq 2 \
7637 -a "$gcc_cv_gas_minor_version" -ge 11 \
7638 -o "$gcc_cv_gas_major_version" -gt 2 \
7639 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
7640 && test x"$insn" != x ; then
7641 gcc_cv_as_gdwarf2_debug_flag="yes"
7643 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
7644 echo '' > conftest.s
7645 # ??? This fails with non-gnu grep.
7646 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s > /dev/null 2>&1
7648 gcc_cv_as_gdwarf2_flag="yes"
7650 rm -f conftest.s conftest.o
7652 if test x"$gcc_cv_as_gdwarf2_flag" = xyes; then
7653 cat >> confdefs.h <<\EOF
7654 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7658 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7660 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7661 echo "configure:7662: checking assembler --gstabs support" >&5
7662 gcc_cv_as_gstabs_flag=no
7663 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
7665 if test "$gcc_cv_gas_major_version" -eq 2 \
7666 -a "$gcc_cv_gas_minor_version" -ge 11 \
7667 -o "$gcc_cv_gas_major_version" -gt 2 \
7668 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
7669 && test x"$insn" != x ; then
7670 gcc_cv_as_gstabs_debug_flag="yes"
7672 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
7673 echo '' > conftest.s
7674 # ??? This fails with non-gnu grep.
7675 if $gcc_cv_as --gstabs -o conftest.o conftest.s > /dev/null 2>&1 ; then
7676 gcc_cv_as_gstabs_flag="yes"
7678 rm -f conftest.s conftest.o
7680 if test x"$gcc_cv_as_gstabs_flag" = xyes; then
7681 cat >> confdefs.h <<\EOF
7682 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7686 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7688 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7689 echo "configure:7690: checking linker PT_GNU_EH_FRAME support" >&5
7690 gcc_cv_ld_eh_frame_hdr=no
7691 if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then
7692 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then
7693 gcc_cv_ld_eh_frame_hdr=yes
7695 elif test x$gcc_cv_ld != x; then
7696 # Check if linker supports --eh-frame-hdr option
7697 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
7698 gcc_cv_ld_eh_frame_hdr=yes
7701 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
7702 cat >> confdefs.h <<\EOF
7703 #define HAVE_LD_EH_FRAME_HDR 1
7707 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7709 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7710 cat >> confdefs.h <<EOF
7711 #define PREFIX_INCLUDE_DIR "$prefix/include"
7716 # Figure out what language subdirectories are present.
7717 # Look if the user specified --enable-languages="..."; if not, use
7718 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7720 # NB: embedded tabs in this IF block -- do not untabify
7721 if test x"${enable_languages+set}" != xset; then
7722 if test x"${LANGUAGES+set}" = xset; then
7723 enable_languages="${LANGUAGES}"
7724 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7727 enable_languages=all
7730 if test x"${enable_languages}" = x ||
7731 test x"${enable_languages}" = xyes;
7733 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7736 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7738 # First scan to see if an enabled language requires some other language.
7739 # We assume that a given config-lang.in will list all the language
7740 # front ends it requires, even if some are required indirectly.
7741 for lang in ${srcdir}/*/config-lang.in ..
7746 # The odd quoting in the next line works around
7747 # an apparent bug in bash 1.12 on linux.
7748 ${srcdir}/[*]/config-lang.in)
7751 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7752 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7753 for other in $this_lang_requires
7755 case ,${enable_languages}, in
7761 enable_languages="$enable_languages,$other"
7770 for lang in ${srcdir}/*/config-lang.in ..
7774 # The odd quoting in the next line works around
7775 # an apparent bug in bash 1.12 on linux.
7776 ${srcdir}/[*]/config-lang.in) ;;
7778 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7779 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7780 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7781 if test "x$lang_alias" = x
7783 echo "$lang doesn't set \$language." 1>&2
7786 case ${build_by_default},${enable_languages}, in
7787 *,$lang_alias,*) add_this_lang=yes ;;
7788 no,*) add_this_lang=no ;;
7789 *,all,*) add_this_lang=yes ;;
7790 *) add_this_lang=no ;;
7792 if test x"${add_this_lang}" = xyes; then
7794 ${srcdir}/ada/config-lang.in)
7795 if test x$have_gnat = xyes ; then
7796 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7800 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7808 # Make gthr-default.h if we have a thread file.
7810 if test $thread_file != single; then
7811 rm -f gthr-default.h
7812 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7813 gthread_flags=-DHAVE_GTHR_DEFAULT
7817 # Find out what GC implementation we want, or may, use.
7818 # Check whether --with-gc or --without-gc was given.
7819 if test "${with_gc+set}" = set; then
7826 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7834 echo "Using $GGC for garbage collection."
7836 # Use the system's zlib library.
7838 zlibinc="-I\$(srcdir)/../zlib"
7839 # Check whether --with-system-zlib or --without-system-zlib was given.
7840 if test "${with_system_zlib+set}" = set; then
7841 withval="$with_system_zlib"
7851 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7852 echo "configure:7853: checking whether to enable maintainer-specific portions of Makefiles" >&5
7853 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7854 if test "${enable_maintainer_mode+set}" = set; then
7855 enableval="$enable_maintainer_mode"
7856 maintainer_mode=$enableval
7862 echo "$ac_t""$maintainer_mode" 1>&6
7864 if test "$maintainer_mode" = "yes"; then
7870 # With Setjmp/Longjmp based exception handling.
7871 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7872 if test "${enable_sjlj_exceptions+set}" = set; then
7873 enableval="$enable_sjlj_exceptions"
7874 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
7875 cat >> confdefs.h <<EOF
7876 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
7882 # Make empty files to contain the specs and options for each language.
7883 # Then add #include lines to for a compiler that has specs and/or options.
7888 for subdir in . $subdirs
7890 if test -f $srcdir/$subdir/lang-specs.h; then
7891 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7893 if test -f $srcdir/$subdir/lang-options.h; then
7894 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
7896 if test -f $srcdir/$subdir/$subdir-tree.def; then
7897 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7901 # These (without "all_") are set in each config-lang.in.
7902 # `language' must be a single word so is spelled singularly.
7907 all_outputs='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc'
7908 # List of language makefile fragments.
7911 # Add the language fragments.
7912 # Languages are added via two mechanisms. Some information must be
7913 # recorded in makefile variables, these are defined in config-lang.in.
7914 # We accumulate them and plug them into the main Makefile.
7915 # The other mechanism is a set of hooks for each of the main targets
7916 # like `clean', `install', etc.
7918 language_fragments="Make-lang"
7919 language_hooks="Make-hooks"
7921 for s in .. $subdirs
7930 . ${srcdir}/$s/config-lang.in
7931 if test "x$language" = x
7933 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7936 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
7937 if test -f ${srcdir}/$s/Makefile.in
7938 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
7940 all_languages="$all_languages $language"
7941 if test "x$boot_language" = xyes
7943 all_boot_languages="$all_boot_languages $language"
7945 all_compilers="$all_compilers $compilers"
7946 all_stagestuff="$all_stagestuff $stagestuff"
7947 all_outputs="$all_outputs $outputs"
7952 for language in .. $all_languages
7954 if test $language != ".."
7956 check_languages="$check_languages check-$language"
7960 # Since we can't use `::' targets, we link each language in
7961 # with a set of hooks, reached indirectly via lang.${target}.
7965 target_list="all.build all.cross start.encap rest.encap \
7966 info dvi generated-manpages \
7967 install-normal install-common install-info install-man \
7969 mostlyclean clean distclean extraclean maintainer-clean \
7970 stage1 stage2 stage3 stage4"
7971 for t in $target_list
7974 for lang in .. $all_languages
7976 if test $lang != ".."; then
7980 echo "lang.$t: $x" >> Make-hooks
7985 echo "dir ." > .gdbinit
7986 echo "dir ${srcdir}" >> .gdbinit
7987 if test x$gdb_needs_out_file_path = xyes
7989 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7991 if test "x$subdirs" != x; then
7994 echo "dir ${srcdir}/$s" >> .gdbinit
7997 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
7999 # Define variables host_canonical and build_canonical
8000 # because some Cygnus local changes in the Makefile depend on them.
8001 build_canonical=${build}
8002 host_canonical=${host}
8004 if test "${host}" != "${target}" ; then
8005 target_subdir=${target_alias}/
8011 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8012 # absolute path for gcc_tooldir based on inserting the number of up-directory
8013 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8014 # $(libsubdir)/@(unlibsubdir) based path.
8015 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8016 # make and thus we'd get different behavior depending on where we built the
8018 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8019 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8021 # An explanation of the sed strings:
8022 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8023 # -e 's|/$||' match a trailing forward slash and eliminates it
8024 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8025 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8027 # (*) Note this pattern overwrites the first character of the string
8028 # with a forward slash if one is not already present. This is not a
8029 # problem because the exact names of the sub-directories concerned is
8030 # unimportant, just the number of them matters.
8032 # The practical upshot of these patterns is like this:
8034 # prefix exec_prefix result
8035 # ------ ----------- ------
8037 # /foo/ /foo/bar ../
8038 # /foo /foo/bar/ ../
8039 # /foo/ /foo/bar/ ../
8040 # /foo /foo/bar/ugg ../../
8043 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8048 # Find a directory in which to install a shared libgcc.
8050 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8051 if test "${enable_version_specific_runtime_libs+set}" = set; then
8052 enableval="$enable_version_specific_runtime_libs"
8057 # Check whether --with-slibdir or --without-slibdir was given.
8058 if test "${with_slibdir+set}" = set; then
8059 withval="$with_slibdir"
8060 slibdir="$with_slibdir"
8062 if test "${enable_version_specific_runtime_libs+set}" = set; then
8063 slibdir='$(libsubdir)'
8064 elif test "$host" != "$target"; then
8065 slibdir='$(build_tooldir)/lib'
8073 # Nothing to do for FLOAT_H, float_format already handled.
8077 # Process the language and host/target makefile fragments.
8078 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8080 # Substitute configuration variables
8144 # Echo that links are built
8145 if test x$host = x$target
8153 if test x$host != x$build
8155 str3=" on a $build system"
8158 if test "x$str2" != x || test "x$str3" != x
8163 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8165 if test "x$str2" != x || test "x$str3" != x
8167 echo " ${str2}${str3}." 1>&2
8170 # Truncate the target if necessary
8171 if test x$host_truncate_target != x; then
8172 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8175 # Configure the subdirectories
8176 # AC_CONFIG_SUBDIRS($subdirs)
8178 # Create the Makefile
8179 # and configure language subdirectories
8181 cat > confcache <<\EOF
8182 # This file is a shell script that caches the results of configure
8183 # tests run on this system so they can be shared between configure
8184 # scripts and configure runs. It is not useful on other systems.
8185 # If it contains results you don't want to keep, you may remove or edit it.
8187 # By default, configure uses ./config.cache as the cache file,
8188 # creating it if it does not exist already. You can give configure
8189 # the --cache-file=FILE option to use a different cache file; that is
8190 # what configure does when it calls configure scripts in
8191 # subdirectories, so they share the cache.
8192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8193 # config.status only pays attention to the cache file if you give it the
8194 # --recheck option to rerun configure.
8197 # The following way of writing the cache mishandles newlines in values,
8198 # but we know of no workaround that is simple, portable, and efficient.
8199 # So, don't put newlines in cache variables' values.
8200 # Ultrix sh set writes to stderr and can't be redirected directly,
8201 # and sets the high bit in the cache file unless we assign to the vars.
8203 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8205 # `set' does not quote correctly, so add quotes (double-quote substitution
8206 # turns \\\\ into \\, and sed turns \\ into \).
8208 -e "s/'/'\\\\''/g" \
8209 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8212 # `set' quotes correctly as required by POSIX, so do not add quotes.
8213 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8216 if cmp -s $cache_file confcache; then
8219 if test -w $cache_file; then
8220 echo "updating cache $cache_file"
8221 cat confcache > $cache_file
8223 echo "not updating unwritable cache $cache_file"
8228 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8231 # Let make expand exec_prefix.
8232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8234 # Any assignment to VPATH causes Sun make to only execute
8235 # the first set of double-colon rules, so remove it if not needed.
8236 # If there is a colon in the path, we need to keep it.
8237 if test "x$srcdir" = x.; then
8238 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8241 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8243 DEFS=-DHAVE_CONFIG_H
8245 # Without the "./", some shells look in PATH for config.status.
8246 : ${CONFIG_STATUS=./config.status}
8248 echo creating $CONFIG_STATUS
8249 rm -f $CONFIG_STATUS
8250 cat > $CONFIG_STATUS <<EOF
8252 # Generated automatically by configure.
8253 # Run this file to recreate the current configuration.
8254 # This directory was configured as follows,
8255 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8257 # $0 $ac_configure_args
8259 # Compiler output produced by configure, useful for debugging
8260 # configure, is in ./config.log if it exists.
8262 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8265 case "\$ac_option" in
8266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8267 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8268 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8269 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8270 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8272 -help | --help | --hel | --he | --h)
8273 echo "\$ac_cs_usage"; exit 0 ;;
8274 *) echo "\$ac_cs_usage"; exit 1 ;;
8278 ac_given_srcdir=$srcdir
8280 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8282 cat >> $CONFIG_STATUS <<EOF
8284 # Protect against being on the right side of a sed subst in config.status.
8285 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8286 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8290 s%@CFLAGS@%$CFLAGS%g
8291 s%@CPPFLAGS@%$CPPFLAGS%g
8292 s%@CXXFLAGS@%$CXXFLAGS%g
8293 s%@FFLAGS@%$FFLAGS%g
8295 s%@LDFLAGS@%$LDFLAGS%g
8297 s%@exec_prefix@%$exec_prefix%g
8298 s%@prefix@%$prefix%g
8299 s%@program_transform_name@%$program_transform_name%g
8300 s%@bindir@%$bindir%g
8301 s%@sbindir@%$sbindir%g
8302 s%@libexecdir@%$libexecdir%g
8303 s%@datadir@%$datadir%g
8304 s%@sysconfdir@%$sysconfdir%g
8305 s%@sharedstatedir@%$sharedstatedir%g
8306 s%@localstatedir@%$localstatedir%g
8307 s%@libdir@%$libdir%g
8308 s%@includedir@%$includedir%g
8309 s%@oldincludedir@%$oldincludedir%g
8310 s%@infodir@%$infodir%g
8311 s%@mandir@%$mandir%g
8312 s%@enable_multilib@%$enable_multilib%g
8313 s%@enable_shared@%$enable_shared%g
8315 s%@host_alias@%$host_alias%g
8316 s%@host_cpu@%$host_cpu%g
8317 s%@host_vendor@%$host_vendor%g
8318 s%@host_os@%$host_os%g
8319 s%@target@%$target%g
8320 s%@target_alias@%$target_alias%g
8321 s%@target_cpu@%$target_cpu%g
8322 s%@target_vendor@%$target_vendor%g
8323 s%@target_os@%$target_os%g
8325 s%@build_alias@%$build_alias%g
8326 s%@build_cpu@%$build_cpu%g
8327 s%@build_vendor@%$build_vendor%g
8328 s%@build_os@%$build_os%g
8330 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8331 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8332 s%@strict1_warn@%$strict1_warn%g
8334 s%@warn_cflags@%$warn_cflags%g
8335 s%@stage1_cflags@%$stage1_cflags%g
8336 s%@SET_MAKE@%$SET_MAKE%g
8340 s%@RANLIB@%$RANLIB%g
8341 s%@INSTALL@%$INSTALL%g
8342 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8343 s%@INSTALL_DATA@%$INSTALL_DATA%g
8344 s%@GNATBIND@%$GNATBIND%g
8346 s%@have_mktemp_command@%$have_mktemp_command%g
8347 s%@MAKEINFO@%$MAKEINFO%g
8348 s%@BUILD_INFO@%$BUILD_INFO%g
8349 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8352 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8353 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8354 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8355 s%@LIBICONV@%$LIBICONV%g
8356 s%@manext@%$manext%g
8357 s%@objext@%$objext%g
8358 s%@FORBUILD@%$FORBUILD%g
8359 s%@PACKAGE@%$PACKAGE%g
8360 s%@VERSION@%$VERSION%g
8361 s%@ALLOCA@%$ALLOCA%g
8362 s%@GLIBC21@%$GLIBC21%g
8363 s%@USE_NLS@%$USE_NLS%g
8364 s%@MSGFMT@%$MSGFMT%g
8365 s%@GMSGFMT@%$GMSGFMT%g
8366 s%@XGETTEXT@%$XGETTEXT%g
8367 s%@INTLBISON@%$INTLBISON%g
8368 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8369 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8370 s%@CATALOGS@%$CATALOGS%g
8371 s%@CATOBJEXT@%$CATOBJEXT%g
8372 s%@INTLLIBS@%$INTLLIBS%g
8373 s%@INTLDEPS@%$INTLDEPS%g
8374 s%@INTLOBJS@%$INTLOBJS%g
8376 s%@DATADIRNAME@%$DATADIRNAME%g
8377 s%@INSTOBJEXT@%$INSTOBJEXT%g
8378 s%@GENCAT@%$GENCAT%g
8379 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8380 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8383 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8384 s%@inhibit_libc@%$inhibit_libc%g
8385 s%@HOST_PREFIX@%$HOST_PREFIX%g
8386 s%@HOST_PREFIX_1@%$HOST_PREFIX_1%g
8387 s%@HOST_CC@%$HOST_CC%g
8388 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8389 s%@STMP_FIXINC@%$STMP_FIXINC%g
8390 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8391 s%@gthread_flags@%$gthread_flags%g
8393 s%@zlibdir@%$zlibdir%g
8394 s%@zlibinc@%$zlibinc%g
8396 s%@build_canonical@%$build_canonical%g
8397 s%@host_canonical@%$host_canonical%g
8398 s%@target_subdir@%$target_subdir%g
8399 s%@gcc_tooldir@%$gcc_tooldir%g
8400 s%@dollar@%$dollar%g
8401 s%@slibdir@%$slibdir%g
8402 s%@objdir@%$objdir%g
8403 s%@subdirs@%$subdirs%g
8404 s%@all_boot_languages@%$all_boot_languages%g
8405 s%@all_compilers@%$all_compilers%g
8406 s%@all_lang_makefiles@%$all_lang_makefiles%g
8407 s%@all_languages@%$all_languages%g
8408 s%@all_stagestuff@%$all_stagestuff%g
8409 s%@build_exeext@%$build_exeext%g
8410 s%@build_install_headers_dir@%$build_install_headers_dir%g
8411 s%@build_xm_file_list@%$build_xm_file_list%g
8412 s%@build_xm_file@%$build_xm_file%g
8413 s%@build_xm_defines@%$build_xm_defines%g
8414 s%@check_languages@%$check_languages%g
8415 s%@cc_set_by_configure@%$cc_set_by_configure%g
8416 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8417 s%@cpp_install_dir@%$cpp_install_dir%g
8418 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8419 s%@dep_tmake_file@%$dep_tmake_file%g
8420 s%@extra_headers_list@%$extra_headers_list%g
8421 s%@extra_objs@%$extra_objs%g
8422 s%@extra_parts@%$extra_parts%g
8423 s%@extra_passes@%$extra_passes%g
8424 s%@extra_programs@%$extra_programs%g
8425 s%@float_h_file@%$float_h_file%g
8426 s%@gcc_config_arguments@%$gcc_config_arguments%g
8427 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8428 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8429 s%@gcc_version@%$gcc_version%g
8430 s%@gcc_version_full@%$gcc_version_full%g
8431 s%@gcc_version_trigger@%$gcc_version_trigger%g
8432 s%@host_exeext@%$host_exeext%g
8433 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8434 s%@host_xm_file_list@%$host_xm_file_list%g
8435 s%@host_xm_file@%$host_xm_file%g
8436 s%@host_xm_defines@%$host_xm_defines%g
8437 s%@install@%$install%g
8438 s%@lang_options_files@%$lang_options_files%g
8439 s%@lang_specs_files@%$lang_specs_files%g
8440 s%@lang_tree_files@%$lang_tree_files%g
8441 s%@local_prefix@%$local_prefix%g
8442 s%@md_file@%$md_file%g
8443 s%@objc_boehm_gc@%$objc_boehm_gc%g
8444 s%@out_file@%$out_file%g
8445 s%@out_object_file@%$out_object_file%g
8446 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8447 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8448 s%@symbolic_link@%$symbolic_link%g
8449 s%@thread_file@%$thread_file%g
8450 s%@tm_file_list@%$tm_file_list%g
8451 s%@tm_file@%$tm_file%g
8452 s%@tm_p_file_list@%$tm_p_file_list%g
8453 s%@tm_p_file@%$tm_p_file%g
8454 s%@xm_file@%$xm_file%g
8455 s%@xm_defines@%$xm_defines%g
8456 s%@c_target_objs@%$c_target_objs%g
8457 s%@cxx_target_objs@%$cxx_target_objs%g
8458 s%@target_cpu_default@%$target_cpu_default%g
8459 /@target_overrides@/r $target_overrides
8460 s%@target_overrides@%%g
8461 /@host_overrides@/r $host_overrides
8462 s%@host_overrides@%%g
8463 /@language_fragments@/r $language_fragments
8464 s%@language_fragments@%%g
8465 /@language_hooks@/r $language_hooks
8466 s%@language_hooks@%%g
8471 cat >> $CONFIG_STATUS <<\EOF
8473 # Split the substitutions into bite-sized pieces for seds with
8474 # small command number limits, like on Digital OSF/1 and HP-UX.
8475 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8476 ac_file=1 # Number of current file.
8477 ac_beg=1 # First line for current file.
8478 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8481 while $ac_more_lines; do
8482 if test $ac_beg -gt 1; then
8483 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8485 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8487 if test ! -s conftest.s$ac_file; then
8489 rm -f conftest.s$ac_file
8491 if test -z "$ac_sed_cmds"; then
8492 ac_sed_cmds="sed -f conftest.s$ac_file"
8494 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8496 ac_file=`expr $ac_file + 1`
8498 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8501 if test -z "$ac_sed_cmds"; then
8506 cat >> $CONFIG_STATUS <<EOF
8508 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8510 cat >> $CONFIG_STATUS <<\EOF
8511 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8514 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8515 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8516 *) ac_file_in="${ac_file}.in" ;;
8519 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8521 # Remove last slash and all that follows it. Not all systems have dirname.
8522 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8523 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8524 # The file is in a subdirectory.
8525 test ! -d "$ac_dir" && mkdir "$ac_dir"
8526 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8527 # A "../" for each directory in $ac_dir_suffix.
8528 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8530 ac_dir_suffix= ac_dots=
8533 case "$ac_given_srcdir" in
8535 if test -z "$ac_dots"; then top_srcdir=.
8536 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8537 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8539 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8540 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8544 echo creating "$ac_file"
8546 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8548 *Makefile*) ac_comsub="1i\\
8549 # $configure_input" ;;
8553 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8555 s%@configure_input@%$configure_input%g
8556 s%@srcdir@%$srcdir%g
8557 s%@top_srcdir@%$top_srcdir%g
8558 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8562 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8563 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8565 # ac_d sets the value in "#define NAME VALUE" lines.
8566 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8567 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8570 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8571 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8572 ac_uB='\([ ]\)%\1#\2define\3'
8575 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8576 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8577 ac_eB='$%\1#\2define\3'
8581 if test "${CONFIG_HEADERS+set}" != set; then
8583 cat >> $CONFIG_STATUS <<EOF
8584 CONFIG_HEADERS="auto-host.h:config.in"
8586 cat >> $CONFIG_STATUS <<\EOF
8588 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8589 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8591 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8592 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8593 *) ac_file_in="${ac_file}.in" ;;
8596 echo creating $ac_file
8598 rm -f conftest.frag conftest.in conftest.out
8599 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8600 cat $ac_file_inputs > conftest.in
8604 # Transform confdefs.h into a sed script conftest.vals that substitutes
8605 # the proper values into config.h.in to produce config.h. And first:
8606 # Protect against being on the right side of a sed subst in config.status.
8607 # Protect against being in an unquoted here document in config.status.
8609 cat > conftest.hdr <<\EOF
8612 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8616 sed -n -f conftest.hdr confdefs.h > conftest.vals
8619 # This sed command replaces #undef with comments. This is necessary, for
8620 # example, in the case of _POSIX_SOURCE, which is predefined and required
8621 # on some systems where configure will not decide to define it.
8622 cat >> conftest.vals <<\EOF
8623 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8626 # Break up conftest.vals because some shells have a limit on
8627 # the size of here documents, and old seds have small limits too.
8632 ac_lines=`grep -c . conftest.vals`
8633 # grep -c gives empty output for an empty file on some AIX systems.
8634 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8635 # Write a limited-size here document to conftest.frag.
8636 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8637 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8639 sed -f conftest.frag conftest.in > conftest.out
8641 mv conftest.out conftest.in
8643 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8645 mv conftest.tail conftest.vals
8649 cat >> $CONFIG_STATUS <<\EOF
8650 rm -f conftest.frag conftest.h
8651 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8652 cat conftest.in >> conftest.h
8654 if cmp -s $ac_file conftest.h 2>/dev/null; then
8655 echo "$ac_file is unchanged"
8658 # Remove last slash and all that follows it. Not all systems have dirname.
8659 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8660 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8661 # The file is in a subdirectory.
8662 test ! -d "$ac_dir" && mkdir "$ac_dir"
8665 mv conftest.h $ac_file
8670 cat >> $CONFIG_STATUS <<EOF
8673 symbolic_link='$symbolic_link'
8676 cat >> $CONFIG_STATUS <<\EOF
8677 for ac_file in $CONFIG_FILES; do
8678 # Support "outfile[:infile[:infile...]]"
8680 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8682 # PO directories have a Makefile.in generated from Makefile.in.in.
8683 case "$ac_file" in */Makefile.in)
8684 # Adjust a relative srcdir.
8685 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8686 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8687 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8688 # In autoconf-2.13 it is called $ac_given_srcdir.
8689 # In autoconf-2.50 it is called $srcdir.
8690 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8691 case "$ac_given_srcdir" in
8692 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8693 /*) top_srcdir="$ac_given_srcdir" ;;
8694 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8696 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8697 rm -f "$ac_dir/POTFILES"
8698 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8699 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8700 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8701 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8707 case x$CONFIG_HEADERS in
8708 xauto-host.h:config.in)
8711 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8712 # bootstrapping and the installation procedure can still use
8713 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8714 # FLAGS_TO_PASS has been modified to solve the problem there.
8715 # This is virtually a duplicate of what happens in configure.lang; we do
8716 # an extra check to make sure this only happens if ln -s can be used.
8717 if test "$symbolic_link" = "ln -s"; then
8718 for d in .. ${subdirs} fixinc ; do
8719 if test $d != ..; then
8722 for t in stage1 stage2 stage3 stage4 include
8725 $symbolic_link ../$t $t 2>/dev/null
8731 # Avoid having to add intl to our include paths.
8732 if test -f intl/libintl.h; then
8733 echo creating libintl.h
8734 echo '#include "intl/libintl.h"' >libintl.h
8739 chmod +x $CONFIG_STATUS
8740 rm -fr confdefs* $ac_clean_files
8741 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1