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-local-prefix=DIR specifies directory to put local include"
17 --with-gxx-include-dir=DIR
18 specifies directory to put g++ header files"
20 --with-cpp-install-dir=DIR
21 install the user visible C preprocessor in DIR
22 (relative to PREFIX) as well as PREFIX/bin"
24 --enable-generated-files-in-srcdir Put generated files in source dir"
26 --with-gnu-ld arrange to work with GNU ld."
28 --with-ld arrange to use the specified ld (full pathname)"
30 --with-gnu-as arrange to work with GNU as"
32 --with-as arrange to use the specified as (full pathname)"
34 --enable-werror enable -Werror in bootstrap stage2 and later"
36 --enable-checking[=LIST]
37 enable expensive run-time checks. With LIST,
38 enable only specific categories of checks.
39 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
40 default is misc,tree,gc,rtlflag"
42 --enable-coverage[=LEVEL]
43 enable compiler\'s code coverage collection.
44 Use to measure compiler performance and locate
45 unused parts of the compiler. With LEVEL, specify
46 optimization. Values are opt, noopt,
49 --with-stabs arrange to use stabs instead of host debug format"
51 --enable-multilib enable library support for multiple ABIs"
53 --enable-__cxa_atexit enable __cxa_atexit for C++"
55 --enable-threads enable thread usage for target GCC
56 --enable-threads=LIB use LIB thread package for target GCC"
58 --enable-objc-gc enable the use of Boehm's garbage collector with
59 the GNU Objective-C runtime"
61 --with-dwarf2 force the default debug format to be DWARF 2"
63 --disable-shared don't provide a shared libgcc"
65 --with-sysroot[=DIR] Search for usr/lib, usr/include, et al, within DIR."
67 --enable-intermodule build the compiler in one step"
69 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
71 --enable-initfini-array use .init_array/.fini_array sections"
73 --enable-sjlj-exceptions
74 arrange to use setjmp/longjmp exception handling"
76 --enable-libunwind-exceptions force use libunwind for exceptions"
78 --disable-win32-registry
79 disable lookup of installation paths in the
80 Registry on Windows hosts
81 --enable-win32-registry enable registry lookup (default)
82 --enable-win32-registry=KEY
83 use KEY instead of GCC version as the last portion
86 --with-gc={simple,page} choose the garbage collection mechanism to use
89 --with-system-zlib use installed libz"
91 --enable-maintainer-mode
92 enable make rules and dependencies not useful
93 (and sometimes confusing) to the casual installer"
95 --enable-version-specific-runtime-libs
96 specify that runtime libraries should be
97 installed in a compiler-specific directory"
99 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
101 # Initialize some variables set by options.
102 # The variables have the same names as the options, with
103 # dashes changed to underlines.
105 cache_file
=.
/config.cache
114 program_transform_name
=s
,x
,x
,
122 bindir
='${exec_prefix}/bin'
123 sbindir
='${exec_prefix}/sbin'
124 libexecdir
='${exec_prefix}/libexec'
125 datadir
='${prefix}/share'
126 sysconfdir
='${prefix}/etc'
127 sharedstatedir
='${prefix}/com'
128 localstatedir
='${prefix}/var'
129 libdir
='${exec_prefix}/lib'
130 includedir
='${prefix}/include'
131 oldincludedir
='/usr/include'
132 infodir
='${prefix}/info'
133 mandir
='${prefix}/man'
135 # Initialize some other variables.
138 SHELL
=${CONFIG_SHELL-/bin/sh}
139 # Maximum number of lines to put in a shell here document.
146 # If the previous option needs an argument, assign it.
147 if test -n "$ac_prev"; then
148 eval "$ac_prev=\$ac_option"
154 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
158 # Accept the important Cygnus configure options, so we can diagnose typos.
162 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
164 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
165 bindir
="$ac_optarg" ;;
167 -build |
--build |
--buil |
--bui |
--bu)
169 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
170 build
="$ac_optarg" ;;
172 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
173 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
174 ac_prev
=cache_file
;;
175 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
176 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
177 cache_file
="$ac_optarg" ;;
179 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
181 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
183 datadir
="$ac_optarg" ;;
185 -disable-* |
--disable-*)
186 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}=no" ;;
194 -enable-* |
--enable-*)
195 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
205 eval "enable_${ac_feature}='$ac_optarg'" ;;
207 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
208 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
209 |
--exec |
--exe |
--ex)
210 ac_prev
=exec_prefix
;;
211 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
212 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
213 |
--exec=* |
--exe=* |
--ex=*)
214 exec_prefix
="$ac_optarg" ;;
216 -gas |
--gas |
--ga |
--g)
217 # Obsolete; use --with-gas.
220 -help |
--help |
--hel |
--he)
221 # Omit some internal or obsolete options to make the list less imposing.
222 # This message is too long to be a string in the A/UX 3.1 sh.
224 Usage: configure [options] [host]
225 Options: [defaults in brackets after descriptions]
227 --cache-file=FILE cache test results in FILE
228 --help print this message
229 --no-create do not create output files
230 --quiet, --silent do not print \`checking...' messages
231 --version print the version of autoconf that created configure
232 Directory and file names:
233 --prefix=PREFIX install architecture-independent files in PREFIX
235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
237 --bindir=DIR user executables in DIR [EPREFIX/bin]
238 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
239 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
240 --datadir=DIR read-only architecture-independent data in DIR
242 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
243 --sharedstatedir=DIR modifiable architecture-independent data in DIR
245 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
246 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
247 --includedir=DIR C header files in DIR [PREFIX/include]
248 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
249 --infodir=DIR info documentation in DIR [PREFIX/info]
250 --mandir=DIR man documentation in DIR [PREFIX/man]
251 --srcdir=DIR find the sources in DIR [configure dir or ..]
252 --program-prefix=PREFIX prepend PREFIX to installed program names
253 --program-suffix=SUFFIX append SUFFIX to installed program names
254 --program-transform-name=PROGRAM
255 run sed PROGRAM on installed program names
259 --build=BUILD configure for building on BUILD [BUILD=HOST]
260 --host=HOST configure for HOST [guessed]
261 --target=TARGET configure for TARGET [TARGET=HOST]
262 Features and packages:
263 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
264 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
265 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
266 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
267 --x-includes=DIR X include files are in DIR
268 --x-libraries=DIR X library files are in DIR
270 if test -n "$ac_help"; then
271 echo "--enable and --with options recognized:$ac_help"
275 -host |
--host |
--hos |
--ho)
277 -host=* |
--host=* |
--hos=* |
--ho=*)
280 -includedir |
--includedir |
--includedi |
--included |
--include \
281 |
--includ |
--inclu |
--incl |
--inc)
282 ac_prev
=includedir
;;
283 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
284 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
285 includedir
="$ac_optarg" ;;
287 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
289 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
290 infodir
="$ac_optarg" ;;
292 -libdir |
--libdir |
--libdi |
--libd)
294 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
295 libdir
="$ac_optarg" ;;
297 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
298 |
--libexe |
--libex |
--libe)
299 ac_prev
=libexecdir
;;
300 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
301 |
--libexe=* |
--libex=* |
--libe=*)
302 libexecdir
="$ac_optarg" ;;
304 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
305 |
--localstate |
--localstat |
--localsta |
--localst \
306 |
--locals |
--local |
--loca |
--loc |
--lo)
307 ac_prev
=localstatedir
;;
308 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
309 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
310 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
311 localstatedir
="$ac_optarg" ;;
313 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
315 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
316 mandir
="$ac_optarg" ;;
319 # Obsolete; use --without-fp.
322 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
326 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
327 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
330 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
331 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
332 |
--oldin |
--oldi |
--old |
--ol |
--o)
333 ac_prev
=oldincludedir
;;
334 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
335 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
336 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
337 oldincludedir
="$ac_optarg" ;;
339 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
341 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
342 prefix
="$ac_optarg" ;;
344 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
345 |
--program-pre |
--program-pr |
--program-p)
346 ac_prev
=program_prefix
;;
347 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
348 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
349 program_prefix
="$ac_optarg" ;;
351 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
352 |
--program-suf |
--program-su |
--program-s)
353 ac_prev
=program_suffix
;;
354 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
355 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
356 program_suffix
="$ac_optarg" ;;
358 -program-transform-name |
--program-transform-name \
359 |
--program-transform-nam |
--program-transform-na \
360 |
--program-transform-n |
--program-transform- \
361 |
--program-transform |
--program-transfor \
362 |
--program-transfo |
--program-transf \
363 |
--program-trans |
--program-tran \
364 |
--progr-tra |
--program-tr |
--program-t)
365 ac_prev
=program_transform_name
;;
366 -program-transform-name=* |
--program-transform-name=* \
367 |
--program-transform-nam=* |
--program-transform-na=* \
368 |
--program-transform-n=* |
--program-transform-=* \
369 |
--program-transform=* |
--program-transfor=* \
370 |
--program-transfo=* |
--program-transf=* \
371 |
--program-trans=* |
--program-tran=* \
372 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
373 program_transform_name
="$ac_optarg" ;;
375 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
376 |
-silent |
--silent |
--silen |
--sile |
--sil)
379 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
381 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
383 sbindir
="$ac_optarg" ;;
385 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
386 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
387 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
389 ac_prev
=sharedstatedir
;;
390 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
391 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
392 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
394 sharedstatedir
="$ac_optarg" ;;
396 -site |
--site |
--sit)
398 -site=* |
--site=* |
--sit=*)
401 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
403 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
404 srcdir
="$ac_optarg" ;;
406 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
407 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
408 ac_prev
=sysconfdir
;;
409 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
410 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
411 sysconfdir
="$ac_optarg" ;;
413 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
415 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
416 target
="$ac_optarg" ;;
418 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
421 -version |
--version |
--versio |
--versi |
--vers)
422 echo "configure generated by autoconf version 2.13"
426 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package
=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}='$ac_optarg'" ;;
438 -without-* |
--without-*)
439 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package
=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}=no" ;;
448 # Obsolete; use --with-x.
451 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
452 |
--x-incl |
--x-inc |
--x-in |
--x-i)
453 ac_prev
=x_includes
;;
454 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
455 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
456 x_includes
="$ac_optarg" ;;
458 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
459 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
460 ac_prev
=x_libraries
;;
461 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
462 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
463 x_libraries
="$ac_optarg" ;;
465 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
469 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
470 echo "configure: warning: $ac_option: invalid host type" 1>&2
472 if test "x$nonopt" != xNONE
; then
473 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
481 if test -n "$ac_prev"; then
482 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
485 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
487 # File descriptor usage:
490 # 2 errors and warnings
491 # 3 some systems may open it to /dev/tty
492 # 4 used on the Kubota Titan
493 # 6 checking for... messages and results
494 # 5 compiler messages saved in config.log
495 if test "$silent" = yes; then
503 This file contains any messages produced by compilers while
504 running configure, to aid debugging if configure makes a mistake.
507 # Strip out --no-create and --no-recursion so they do not pile up.
508 # Also quote any args containing shell metacharacters.
513 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
514 |
--no-cr |
--no-c) ;;
515 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
516 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
517 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
518 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
519 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
524 # Only set these to C if already set. These must not be set unconditionally
525 # because not all systems understand e.g. LANG=C (notably SCO).
526 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
527 # Non-C LC_CTYPE values break the ctype check.
528 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
529 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
530 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
531 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
534 rm -rf conftest
* confdefs.h
535 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
538 # A filename unique to this package, relative to the directory that
539 # configure is in, which we can look for to find out if srcdir is correct.
540 ac_unique_file
=tree.c
542 # Find the source files, if location was not specified.
543 if test -z "$srcdir"; then
544 ac_srcdir_defaulted
=yes
545 # Try the directory containing this script, then its parent.
547 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
548 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
550 if test ! -r $srcdir/$ac_unique_file; then
554 ac_srcdir_defaulted
=no
556 if test ! -r $srcdir/$ac_unique_file; then
557 if test "$ac_srcdir_defaulted" = yes; then
558 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
560 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
563 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
565 # Prefer explicitly selected file to automatically selected ones.
566 if test -z "$CONFIG_SITE"; then
567 if test "x$prefix" != xNONE
; then
568 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
570 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
573 for ac_site_file
in $CONFIG_SITE; do
574 if test -r "$ac_site_file"; then
575 echo "loading site script $ac_site_file"
580 if test -r "$cache_file"; then
581 echo "loading cache $cache_file"
584 echo "creating cache $cache_file"
589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
590 ac_cpp
='$CPP $CPPFLAGS'
591 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
592 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
593 cross_compiling
=$ac_cv_prog_cc_cross
597 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
598 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
599 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
606 ac_n
= ac_c
='\c' ac_t
=
612 # Determine the host, build, and target systems
614 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
615 if test -f $ac_dir/install-sh
; then
617 ac_install_sh
="$ac_aux_dir/install-sh -c"
619 elif test -f $ac_dir/install.sh
; then
621 ac_install_sh
="$ac_aux_dir/install.sh -c"
625 if test -z "$ac_aux_dir"; then
626 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
628 ac_config_guess
=$ac_aux_dir/config.guess
629 ac_config_sub
=$ac_aux_dir/config.sub
630 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
633 # Do some error checking and defaulting for the host and target type.
635 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
638 # 1. You are not allowed to specify --host, --target, and nonopt at the
640 # 2. Host defaults to nonopt.
641 # 3. If nonopt is not specified, then host defaults to the current host,
642 # as determined by config.guess.
643 # 4. Target and build default to nonopt.
644 # 5. If nonopt is not specified, then target and build default to host.
646 # The aliases save the names the user supplied, while $host etc.
647 # will get canonicalized.
648 case $host---$target---$nonopt in
649 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
650 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
654 # Make sure we can run config.sub.
655 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
656 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
659 echo $ac_n "checking host system type""... $ac_c" 1>&6
660 echo "configure:661: checking host system type" >&5
663 case "$host_alias" in
667 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
668 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
670 *) host_alias
=$nonopt ;;
674 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
675 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
676 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
677 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$host" 1>&6
680 echo $ac_n "checking target system type""... $ac_c" 1>&6
681 echo "configure:682: checking target system type" >&5
684 case "$target_alias" in
687 NONE
) target_alias
=$host_alias ;;
688 *) target_alias
=$nonopt ;;
692 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
693 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
694 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
695 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
696 echo "$ac_t""$target" 1>&6
698 echo $ac_n "checking build system type""... $ac_c" 1>&6
699 echo "configure:700: checking build system type" >&5
702 case "$build_alias" in
705 NONE
) build_alias
=$host_alias ;;
706 *) build_alias
=$nonopt ;;
710 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
711 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
712 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
713 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo "$ac_t""$build" 1>&6
716 test "$host_alias" != "$target_alias" &&
717 test "$program_prefix$program_suffix$program_transform_name" = \
719 program_prefix
=${target_alias}-
722 # Determine the noncanonical target name, for directory use.
723 case ${build_alias} in
724 "") build_noncanonical
=${build} ;;
725 *) build_noncanonical
=${build_alias} ;;
728 case ${host_alias} in
729 "") host_noncanonical
=${build_noncanonical} ;;
730 *) host_noncanonical
=${host_alias} ;;
733 case ${target_alias} in
734 "") target_noncanonical
=${host_noncanonical} ;;
735 *) target_noncanonical
=${target_alias} ;;
739 # Determine the target- and build-specific subdirectories
740 # Prefix 'build-' so this never conflicts with target_subdir.
741 build_subdir
="build-${build_noncanonical}"
742 # Not really a subdirectory, but here for completeness.
745 target_subdir
=${target_noncanonical}
748 # Set program_transform_name
749 if test "$program_transform_name" = s
,x
,x
,; then
750 program_transform_name
=
752 # Double any \ or $. echo might interpret backslashes.
753 cat <<\EOF_SED
> conftestsed
754 s
,\\,\\\\,g
; s
,\$
,$$
,g
756 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
759 test "$program_prefix" != NONE
&&
760 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
761 # Use a double $ so make ignores it.
762 test "$program_suffix" != NONE
&&
763 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
765 # sed with no file args requires a program.
766 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
769 # Check for bogus environment variables.
770 # Test if LIBRARY_PATH contains the notation for the current directory
771 # since this would lead to problems installing/building glibc.
772 # LIBRARY_PATH contains the current directory if one of the following
774 # - one of the terminals (":" and ";") is the first or last sign
775 # - two terminals occur directly after each other
776 # - the path contains an element with a dot in it
777 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
778 echo "configure:779: checking LIBRARY_PATH variable" >&5
779 case ${LIBRARY_PATH} in
780 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
781 library_path_setting
="contains current directory"
784 library_path_setting
="ok"
787 echo "$ac_t""$library_path_setting" 1>&6
788 if test "$library_path_setting" != "ok"; then
789 { echo "configure: error:
790 *** LIBRARY_PATH shouldn't contain the current directory when
791 *** building gcc. Please change the environment variable
792 *** and run configure again." 1>&2; exit 1; }
795 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
796 # since this would lead to problems installing/building glibc.
797 # GCC_EXEC_PREFIX contains the current directory if one of the following
799 # - one of the terminals (":" and ";") is the first or last sign
800 # - two terminals occur directly after each other
801 # - the path contains an element with a dot in it
802 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
803 echo "configure:804: checking GCC_EXEC_PREFIX variable" >&5
804 case ${GCC_EXEC_PREFIX} in
805 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
806 gcc_exec_prefix_setting
="contains current directory"
809 gcc_exec_prefix_setting
="ok"
812 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
813 if test "$gcc_exec_prefix_setting" != "ok"; then
814 { echo "configure: error:
815 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
816 *** building gcc. Please change the environment variable
817 *** and run configure again." 1>&2; exit 1; }
824 # Specify the local prefix
826 # Check whether --with-local-prefix or --without-local-prefix was given.
827 if test "${with_local_prefix+set}" = set; then
828 withval
="$with_local_prefix"
830 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
832 *) local_prefix
=$with_local_prefix ;;
837 # Default local prefix if it is empty
838 if test x
$local_prefix = x
; then
839 local_prefix
=/usr
/local
842 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
843 # passed in by the toplevel make and thus we'd get different behavior
844 # depending on where we built the sources.
846 # Specify the g++ header file directory
847 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
848 if test "${with_gxx_include_dir+set}" = set; then
849 withval
="$with_gxx_include_dir"
851 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
853 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
858 if test x
${gcc_gxx_include_dir} = x
; then
859 if test x
${enable_version_specific_runtime_libs} = xyes
; then
860 gcc_gxx_include_dir
='${libsubdir}/include/c++'
862 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
863 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
867 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
868 if test "${with_cpp_install_dir+set}" = set; then
869 withval
="$with_cpp_install_dir"
870 if test x
$withval = xyes
; then
871 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
872 elif test x
$withval != xno
; then
873 cpp_install_dir
=$withval
878 # We would like to our source tree to be readonly. However when releases or
879 # pre-releases are generated, the flex/bison generated files as well as the
880 # various formats of manuals need to be included along with the rest of the
881 # sources. Therefore we have --enable-generated-files-in-srcdir to do
884 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
885 if test "${enable_generated_files_in_srcdir+set}" = set; then
886 enableval
="$enable_generated_files_in_srcdir"
888 no
) parsedir
='$(objdir)'; docobjdir
='$(objdir)/doc';;
889 yes,*) parsedir
='$(srcdir)'; docobjdir
='$(srcdir)/doc';;
892 parsedir
='$(objdir)'; docobjdir
='$(objdir)/doc';
896 # -------------------
897 # Find default linker
898 # -------------------
901 # Check whether --with-gnu-ld or --without-gnu-ld was given.
902 if test "${with_gnu_ld+set}" = set; then
903 withval
="$with_gnu_ld"
904 gnu_ld_flag
="$with_gnu_ld"
910 # With pre-defined ld
911 # Check whether --with-ld or --without-ld was given.
912 if test "${with_ld+set}" = set; then
914 DEFAULT_LINKER
="$with_ld"
917 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
918 if test ! -x "$DEFAULT_LINKER"; then
919 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
920 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
923 cat >> confdefs.h
<<EOF
924 #define DEFAULT_LINKER "$DEFAULT_LINKER"
929 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
930 echo "configure:931: checking whether a default linker was specified" >&5
931 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
932 if test x
"$gnu_ld_flag" = x
"no"; then
933 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
935 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
938 echo "$ac_t""no" 1>&6
941 # ----------------------
942 # Find default assembler
943 # ----------------------
946 # Check whether --with-gnu-as or --without-gnu-as was given.
947 if test "${with_gnu_as+set}" = set; then
948 withval
="$with_gnu_as"
949 gas_flag
="$with_gnu_as"
955 # Check whether --with-as or --without-as was given.
956 if test "${with_as+set}" = set; then
958 DEFAULT_ASSEMBLER
="$with_as"
961 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
962 if test ! -x "$DEFAULT_ASSEMBLER"; then
963 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
964 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
967 cat >> confdefs.h
<<EOF
968 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
973 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
974 echo "configure:975: checking whether a default assembler was specified" >&5
975 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
976 if test x
"$gas_flag" = x
"no"; then
977 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
979 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
982 echo "$ac_t""no" 1>&6
989 # Find the native compiler
990 # Extract the first word of "gcc", so it can be a program name with args.
991 set dummy gcc
; ac_word
=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$CC"; then
998 ac_cv_prog_CC
="$CC" # Let the user override the test.
1000 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1002 for ac_dir
in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir
=.
1004 if test -f $ac_dir/$ac_word; then
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1016 echo "$ac_t""no" 1>&6
1019 if test -z "$CC"; then
1020 # Extract the first word of "cc", so it can be a program name with args.
1021 set dummy cc
; ac_word
=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 if test -n "$CC"; then
1028 ac_cv_prog_CC
="$CC" # Let the user override the test.
1030 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1033 for ac_dir
in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir
=.
1035 if test -f $ac_dir/$ac_word; then
1036 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1037 ac_prog_rejected
=yes
1045 if test $ac_prog_rejected = yes; then
1046 # We found a bogon in the path, so make sure we never use it.
1047 set dummy
$ac_cv_prog_CC
1049 if test $# -gt 0; then
1050 # We chose a different compiler from the bogus one.
1051 # However, it has the same basename, so the bogon will be chosen
1052 # first if we set CC to just the basename; use the full file name.
1054 set dummy
"$ac_dir/$ac_word" "$@"
1062 if test -n "$CC"; then
1063 echo "$ac_t""$CC" 1>&6
1065 echo "$ac_t""no" 1>&6
1068 if test -z "$CC"; then
1069 case "`uname -s`" in
1071 # Extract the first word of "cl", so it can be a program name with args.
1072 set dummy cl
; ac_word
=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$CC"; then
1079 ac_cv_prog_CC
="$CC" # Let the user override the test.
1081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1083 for ac_dir
in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir
=.
1085 if test -f $ac_dir/$ac_word; then
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1097 echo "$ac_t""no" 1>&6
1102 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1105 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1106 echo "configure:1107: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp
='$CPP $CPPFLAGS'
1111 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling
=$ac_cv_prog_cc_cross
1115 cat > conftest.
$ac_ext << EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1122 if { (eval echo configure
:1123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1123 ac_cv_prog_cc_works
=yes
1124 # If we can't run a trivial program, we are probably using a cross compiler.
1125 if (.
/conftest
; exit) 2>/dev
/null
; then
1126 ac_cv_prog_cc_cross
=no
1128 ac_cv_prog_cc_cross
=yes
1131 echo "configure: failed program was:" >&5
1132 cat conftest.
$ac_ext >&5
1133 ac_cv_prog_cc_works
=no
1137 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1138 ac_cpp
='$CPP $CPPFLAGS'
1139 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1140 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1141 cross_compiling
=$ac_cv_prog_cc_cross
1143 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1144 if test $ac_cv_prog_cc_works = no
; then
1145 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1147 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1149 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1150 cross_compiling
=$ac_cv_prog_cc_cross
1152 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether we are using GNU C" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 cat > conftest.c
<<EOF
1162 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1169 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1171 if test $ac_cv_prog_gcc = yes; then
1177 ac_test_CFLAGS
="${CFLAGS+set}"
1178 ac_save_CFLAGS
="$CFLAGS"
1180 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether ${CC-cc} accepts -g" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 echo 'void f(){}' > conftest.c
1186 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1195 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1196 if test "$ac_test_CFLAGS" = set; then
1197 CFLAGS
="$ac_save_CFLAGS"
1198 elif test $ac_cv_prog_cc_g = yes; then
1199 if test "$GCC" = yes; then
1205 if test "$GCC" = yes; then
1212 if test "x$CC" != xcc
; then
1213 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1214 echo "configure:1215: checking whether $CC and cc understand -c and -o together" >&5
1216 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether cc understands -c and -o together" >&5
1219 set dummy
$CC; ac_cc
="`echo $2 |
1220 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1221 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 echo 'foo(){}' > conftest.c
1225 # Make sure it works both with $CC and with simple cc.
1226 # We do the test twice because some compilers refuse to overwrite an
1227 # existing .o file with -o, though they will create one.
1228 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1229 if { (eval echo configure
:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1230 test -f conftest.o
&& { (eval echo configure
:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1232 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1233 if test "x$CC" != xcc
; then
1234 # Test first that cc exists at all.
1235 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1236 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1237 if { (eval echo configure
:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1238 test -f conftest.o
&& { (eval echo configure
:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1243 # cc exists but doesn't like -o.
1244 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1249 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1254 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1257 echo "$ac_t""no" 1>&6
1258 cat >> confdefs.h
<<\EOF
1259 #define NO_MINUS_C_MINUS_O 1
1264 # autoconf is lame and doesn't give us any substitution variable for this.
1265 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1266 NO_MINUS_C_MINUS_O
=yes
1268 OUTPUT_OPTION
='-o $@'
1273 # -------------------------
1274 # Check C compiler features
1275 # -------------------------
1277 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1278 echo "configure:1279: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 save_CFLAGS
="$CFLAGS"
1283 CFLAGS
="-Wno-long-long"
1284 cat > conftest.
$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1292 if { (eval echo configure
:1293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1294 ac_cv_prog_cc_no_long_long
=yes
1296 echo "configure: failed program was:" >&5
1297 cat conftest.
$ac_ext >&5
1299 ac_cv_prog_cc_no_long_long
=no
1302 CFLAGS
="$save_CFLAGS"
1305 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1307 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1308 echo "configure:1309: checking how to run the C preprocessor" >&5
1309 # On Suns, sometimes $CPP names a directory.
1310 if test -n "$CPP" && test -d "$CPP"; then
1313 if test -z "$CPP"; then
1314 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 # This must be in double quotes, not single quotes, because CPP may get
1318 # substituted into the Makefile and "${CC-cc}" will confuse make.
1320 # On the NeXT, cc -E runs the code through the compiler's parser,
1321 # not just through cpp.
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1328 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1329 { (eval echo configure
:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1330 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1331 if test -z "$ac_err"; then
1335 echo "configure: failed program was:" >&5
1336 cat conftest.
$ac_ext >&5
1338 CPP
="${CC-cc} -E -traditional-cpp"
1339 cat > conftest.
$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1345 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1346 { (eval echo configure
:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1347 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1348 if test -z "$ac_err"; then
1352 echo "configure: failed program was:" >&5
1353 cat conftest.
$ac_ext >&5
1355 CPP
="${CC-cc} -nologo -E"
1356 cat > conftest.
$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1362 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363 { (eval echo configure
:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1364 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1365 if test -z "$ac_err"; then
1369 echo "configure: failed program was:" >&5
1370 cat conftest.
$ac_ext >&5
1379 ac_cv_prog_CPP
="$CPP"
1381 CPP
="$ac_cv_prog_CPP"
1383 ac_cv_prog_CPP
="$CPP"
1385 echo "$ac_t""$CPP" 1>&6
1387 echo $ac_n "checking for inline""... $ac_c" 1>&6
1388 echo "configure:1389: checking for inline" >&5
1389 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1393 for ac_kw
in inline __inline__ __inline
; do
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_c_inline
=$ac_kw; break
1406 echo "configure: failed program was:" >&5
1407 cat conftest.
$ac_ext >&5
1414 echo "$ac_t""$ac_cv_c_inline" 1>&6
1415 case "$ac_cv_c_inline" in
1417 no
) cat >> confdefs.h
<<\EOF
1421 *) cat >> confdefs.h
<<EOF
1422 #define inline $ac_cv_c_inline
1428 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1429 echo "configure:1430: checking for long long int" >&5
1430 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.
$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1441 if { (eval echo configure
:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1443 ac_cv_c_long_long
=yes
1445 echo "configure: failed program was:" >&5
1446 cat conftest.
$ac_ext >&5
1448 ac_cv_c_long_long
=no
1453 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1454 if test $ac_cv_c_long_long = yes; then
1455 cat >> confdefs.h
<<\EOF
1456 #define HAVE_LONG_LONG 1
1460 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1461 echo "configure:1462: checking for __int64" >&5
1462 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 cat > conftest.
$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1473 if { (eval echo configure
:1474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1477 echo "configure: failed program was:" >&5
1478 cat conftest.
$ac_ext >&5
1485 echo "$ac_t""$ac_cv_c___int64" 1>&6
1486 if test $ac_cv_c___int64 = yes; then
1487 cat >> confdefs.h
<<\EOF
1488 #define HAVE___INT64 1
1493 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1494 echo "configure:1495: checking for built-in _Bool" >&5
1495 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.
$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1506 if { (eval echo configure
:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1510 echo "configure: failed program was:" >&5
1511 cat conftest.
$ac_ext >&5
1519 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1520 if test $gcc_cv_c__bool = yes; then
1521 cat >> confdefs.h
<<\EOF
1522 #define HAVE__BOOL 1
1528 # sizeof(char) is 1 by definition.
1529 echo $ac_n "checking size of void *""... $ac_c" 1>&6
1530 echo "configure:1531: checking size of void *" >&5
1531 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1535 cat > conftest.
$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 #include "confdefs.h"
1539 #include <sys/types.h>
1543 switch (0) case 0: case (sizeof (void *) == $ac_size):;
1546 if { (eval echo configure
:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548 ac_cv_sizeof_void_p
=$ac_size
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1554 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
1559 if test x
$ac_cv_sizeof_void_p = x
; then
1560 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
1562 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
1563 cat >> confdefs.h
<<EOF
1564 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1568 echo $ac_n "checking size of short""... $ac_c" 1>&6
1569 echo "configure:1570: checking size of short" >&5
1570 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1574 cat > conftest.
$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1577 #include "confdefs.h"
1578 #include <sys/types.h>
1582 switch (0) case 0: case (sizeof (short) == $ac_size):;
1585 if { (eval echo configure
:1586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1587 ac_cv_sizeof_short
=$ac_size
1589 echo "configure: failed program was:" >&5
1590 cat conftest.
$ac_ext >&5
1593 if test x
$ac_cv_sizeof_short != x
; then break; fi
1598 if test x
$ac_cv_sizeof_short = x
; then
1599 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1601 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1602 cat >> confdefs.h
<<EOF
1603 #define SIZEOF_SHORT $ac_cv_sizeof_short
1607 echo $ac_n "checking size of int""... $ac_c" 1>&6
1608 echo "configure:1609: checking size of int" >&5
1609 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1613 cat > conftest.
$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 #include "confdefs.h"
1617 #include <sys/types.h>
1621 switch (0) case 0: case (sizeof (int) == $ac_size):;
1624 if { (eval echo configure
:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1626 ac_cv_sizeof_int
=$ac_size
1628 echo "configure: failed program was:" >&5
1629 cat conftest.
$ac_ext >&5
1632 if test x
$ac_cv_sizeof_int != x
; then break; fi
1637 if test x
$ac_cv_sizeof_int = x
; then
1638 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1640 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1641 cat >> confdefs.h
<<EOF
1642 #define SIZEOF_INT $ac_cv_sizeof_int
1646 echo $ac_n "checking size of long""... $ac_c" 1>&6
1647 echo "configure:1648: checking size of long" >&5
1648 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1652 cat > conftest.
$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include "confdefs.h"
1656 #include <sys/types.h>
1660 switch (0) case 0: case (sizeof (long) == $ac_size):;
1663 if { (eval echo configure
:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 ac_cv_sizeof_long
=$ac_size
1667 echo "configure: failed program was:" >&5
1668 cat conftest.
$ac_ext >&5
1671 if test x
$ac_cv_sizeof_long != x
; then break; fi
1676 if test x
$ac_cv_sizeof_long = x
; then
1677 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1679 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1680 cat >> confdefs.h
<<EOF
1681 #define SIZEOF_LONG $ac_cv_sizeof_long
1685 if test $ac_cv_c_long_long = yes; then
1686 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1687 echo "configure:1688: checking size of long long" >&5
1688 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1692 cat > conftest.
$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 #include "confdefs.h"
1696 #include <sys/types.h>
1700 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1703 if { (eval echo configure
:1704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1705 ac_cv_sizeof_long_long
=$ac_size
1707 echo "configure: failed program was:" >&5
1708 cat conftest.
$ac_ext >&5
1711 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
1716 if test x
$ac_cv_sizeof_long_long = x
; then
1717 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1719 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1720 cat >> confdefs.h
<<EOF
1721 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1726 if test $ac_cv_c___int64 = yes; then
1727 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1728 echo "configure:1729: checking size of __int64" >&5
1729 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1733 cat > conftest.
$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1736 #include "confdefs.h"
1737 #include <sys/types.h>
1741 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
1744 if { (eval echo configure
:1745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1746 ac_cv_sizeof___int64
=$ac_size
1748 echo "configure: failed program was:" >&5
1749 cat conftest.
$ac_ext >&5
1752 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
1757 if test x
$ac_cv_sizeof___int64 = x
; then
1758 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1760 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1761 cat >> confdefs.h
<<EOF
1762 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1772 # See if GNAT has been installed
1773 if test $host != $build; then
1774 ac_tool_prefix
=${host_alias}-
1780 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1781 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_word" >&5
1784 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 if test -n "$GNATBIND"; then
1788 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1790 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1792 for ac_dir
in $ac_dummy; do
1793 test -z "$ac_dir" && ac_dir
=.
1794 if test -f $ac_dir/$ac_word; then
1795 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1802 GNATBIND
="$ac_cv_prog_GNATBIND"
1803 if test -n "$GNATBIND"; then
1804 echo "$ac_t""$GNATBIND" 1>&6
1806 echo "$ac_t""no" 1>&6
1810 if test -z "$ac_cv_prog_GNATBIND"; then
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "gnatbind", so it can be a program name with args.
1813 set dummy gnatbind
; ac_word
=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 if test -n "$GNATBIND"; then
1820 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1822 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1824 for ac_dir
in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir
=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_prog_GNATBIND
="gnatbind"
1832 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1835 GNATBIND
="$ac_cv_prog_GNATBIND"
1836 if test -n "$GNATBIND"; then
1837 echo "$ac_t""$GNATBIND" 1>&6
1839 echo "$ac_t""no" 1>&6
1847 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1848 echo "configure:1849: checking for compiler driver that understands Ada" >&5
1849 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 cat >conftest.adb
<<EOF
1853 procedure conftest is begin null; end conftest;
1856 # Have to do ac_tool_prefix and user overrides by hand.
1857 for cand
in ${ADAC+"$ADAC"} ${CC+"$CC"} \
1858 ${ac_tool_prefix}gcc gcc \
1859 ${ac_tool_prefix}cc cc \
1860 ${ac_tool_prefix}gnatgcc gnatgcc \
1861 ${ac_tool_prefix}gnatcc gnatcc \
1862 ${ac_tool_prefix}adagcc adagcc \
1863 ${ac_tool_prefix}adacc adacc
; do
1864 # There is a bug in all released versions of GCC which causes the
1865 # driver to exit successfully when the appropriate language module
1866 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1867 # Therefore we must check for the error message as well as an
1868 # unsuccessful exit.
1869 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1870 if test x
"$errors" = x
; then
1871 gcc_cv_prog_adac
=$cand
1878 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1879 ADAC
=$gcc_cv_prog_adac
1882 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1889 if test x
$have_gnat != xno
; then
1890 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1891 echo "configure:1892: checking whether ${ADAC} accepts -Wno-long-long" >&5
1892 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 cat >conftest.adb
<<EOF
1896 procedure conftest is begin null; end conftest;
1898 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1899 ac_cv_prog_adac_no_long_long
=yes
1901 ac_cv_prog_adac_no_long_long
=no
1906 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1908 ac_cv_prog_adac_no_long_long
=yes
1911 # ---------------------
1912 # Warnings and checking
1913 # ---------------------
1916 if test $ac_cv_prog_cc_no_long_long = yes && \
1917 test $ac_cv_prog_adac_no_long_long = yes ; then
1918 strict1_warn
="-pedantic -Wno-long-long"
1922 # If the native compiler is GCC, we can enable warnings even in stage1.
1923 # That's useful for people building cross-compilers, or just running a
1926 if test "x$GCC" = "xyes"; then
1927 warn_cflags
='$(GCC_WARN_CFLAGS)'
1931 # Enable -Werror in bootstrap stage2 and later.
1932 # Change the default to "no" on release branches.
1933 # Check whether --enable-werror or --disable-werror was given.
1934 if test "${enable_werror+set}" = set; then
1935 enableval
="$enable_werror"
1941 if test x
$enable_werror = xyes
; then
1946 # Enable expensive internal checks
1947 # Check whether --enable-checking or --disable-checking was given.
1948 if test "${enable_checking+set}" = set; then
1949 enableval
="$enable_checking"
1953 ac_rtlflag_checking
=
1955 ac_gc_always_collect
=
1957 case "${enableval}" in
1958 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
1959 ac_rtlflag_checking
=1 ;;
1961 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
1962 set fnord
$enableval; shift
1967 misc
) ac_checking
=1 ;;
1968 tree
) ac_tree_checking
=1 ;;
1969 rtlflag
) ac_rtlflag_checking
=1 ;;
1970 rtl
) ac_rtl_checking
=1 ;;
1971 gc
) ac_gc_checking
=1 ;;
1972 gcac
) ac_gc_always_collect
=1 ;;
1973 fold) ac_fold_checking
=1 ;;
1974 valgrind
) ac_checking_valgrind
=1 ;;
1975 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
1982 # Enable some checks by default for development versions of GCC
1983 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
1987 if test x
$ac_checking != x
; then
1988 cat >> confdefs.h
<<\EOF
1989 #define ENABLE_CHECKING 1
1992 nocommon_flag
=-fno-common
1995 if test x
$ac_tree_checking != x
; then
1996 cat >> confdefs.h
<<\EOF
1997 #define ENABLE_TREE_CHECKING 1
2001 if test x
$ac_rtl_checking != x
; then
2002 cat >> confdefs.h
<<\EOF
2003 #define ENABLE_RTL_CHECKING 1
2007 if test x
$ac_rtlflag_checking != x
; then
2008 cat >> confdefs.h
<<\EOF
2009 #define ENABLE_RTL_FLAG_CHECKING 1
2013 if test x
$ac_gc_checking != x
; then
2014 cat >> confdefs.h
<<\EOF
2015 #define ENABLE_GC_CHECKING 1
2019 if test x
$ac_gc_always_collect != x
; then
2020 cat >> confdefs.h
<<\EOF
2021 #define ENABLE_GC_ALWAYS_COLLECT 1
2025 if test x
$ac_fold_checking != x
; then
2026 cat >> confdefs.h
<<\EOF
2027 #define ENABLE_FOLD_CHECKING 1
2031 valgrind_path_defines
=
2033 if test x
$ac_checking_valgrind != x
; then
2034 # It is certainly possible that there's valgrind but no valgrind.h.
2035 # GCC relies on making annotations so we must have both.
2036 echo $ac_n "checking for VALGRIND_DISCARD in <memcheck.h>""... $ac_c" 1>&6
2037 echo "configure:2038: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
2038 cat > conftest.
$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2041 #include <memcheck.h>
2042 #ifndef VALGRIND_DISCARD
2043 #error VALGRIND_DISCARD not defined
2046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure
:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2051 gcc_cv_header_memcheck_h
=yes
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 gcc_cv_header_memcheck_h
=no
2060 echo "$ac_t""$gcc_cv_header_memcheck_h" 1>&6
2061 ac_safe
=`echo "valgrind.h" | sed 'y%./+-%__p_%'`
2062 echo $ac_n "checking for valgrind.h""... $ac_c" 1>&6
2063 echo "configure:2064: checking for valgrind.h" >&5
2064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <valgrind.h>
2072 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2073 { (eval echo configure
:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2074 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2075 if test -z "$ac_err"; then
2077 eval "ac_cv_header_$ac_safe=yes"
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2083 eval "ac_cv_header_$ac_safe=no"
2087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2091 echo "$ac_t""no" 1>&6
2096 # Prepare PATH_SEPARATOR.
2097 # The user is always right.
2098 if test "${PATH_SEPARATOR+set}" != set; then
2099 echo "#! /bin/sh" >conf$$.sh
2100 echo "exit 0" >>conf$$.sh
2102 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
2110 # Find out how to test for executable files. Don't use a zero-byte file,
2111 # as systems may use methods other than mode bits to determine executability.
2112 cat >conf$$.
file <<_ASEOF
2116 chmod +x conf$$.
file
2117 if test -x conf$$.
file >/dev
/null
2>&1; then
2118 ac_executable_p
="test -x"
2120 ac_executable_p
="test -f"
2124 # Extract the first word of "valgrind", so it can be a program name with args.
2125 set dummy valgrind
; ac_word
=$2
2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2127 echo "configure:2128: checking for $ac_word" >&5
2128 if eval "test \"`echo '$''{'ac_cv_path_valgrind_path'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 case "$valgrind_path" in
2133 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
2136 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
2137 for ac_dir
in $PATH; do
2139 test -z "$ac_dir" && ac_dir
=.
2140 for ac_exec_ext
in '' $ac_executable_extensions; do
2141 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2142 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
2143 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
2153 valgrind_path
="$ac_cv_path_valgrind_path"
2154 if test -n "$valgrind_path"; then
2155 echo "$ac_t""$valgrind_path" 1>&6
2157 echo "$ac_t""no" 1>&6
2160 if test "x$valgrind_path" = "x" ||
(test $have_valgrind_h = no
&& test $gcc_cv_header_memcheck_h = no
); then
2161 { echo "configure: error: *** Can't find both valgrind and valgrind.h/memcheck.h" 1>&2; exit 1; }
2163 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
2164 valgrind_command
="$valgrind_path -q"
2165 cat >> confdefs.h
<<\EOF
2166 #define ENABLE_VALGRIND_CHECKING 1
2169 if test $gcc_cv_header_memcheck_h = yes; then
2170 cat >> confdefs.h
<<\EOF
2171 #define HAVE_MEMCHECK_H 1
2179 # Enable code coverage collection
2180 # Check whether --enable-coverage or --disable-coverage was given.
2181 if test "${enable_coverage+set}" = set; then
2182 enableval
="$enable_coverage"
2183 case "${enableval}" in
2185 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
2188 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
2191 { echo "configure: error: unknown coverage setting $enableval" 1>&2; exit 1; }
2200 # -------------------------------
2201 # Miscenalleous configure options
2202 # -------------------------------
2205 # Check whether --with-stabs or --without-stabs was given.
2206 if test "${with_stabs+set}" = set; then
2207 withval
="$with_stabs"
2214 # Determine whether or not multilibs are enabled.
2215 # Check whether --enable-multilib or --disable-multilib was given.
2216 if test "${enable_multilib+set}" = set; then
2217 enableval
="$enable_multilib"
2225 # Enable __cxa_atexit for C++.
2226 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
2227 if test "${enable___cxa_atexit+set}" = set; then
2228 enableval
="$enable___cxa_atexit"
2234 # Pass with no value to take the default
2235 # Pass with a value to specify a thread package
2236 # Check whether --enable-threads or --disable-threads was given.
2237 if test "${enable_threads+set}" = set; then
2238 enableval
="$enable_threads"
2244 # Save in case it gets overwritten in config.gcc
2245 enable_threads_flag
=$enable_threads
2247 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2248 if test "${enable_objc_gc+set}" = set; then
2249 enableval
="$enable_objc_gc"
2250 if test x
$enable_objc_gc = xno
; then
2260 # Check whether --with-dwarf2 or --without-dwarf2 was given.
2261 if test "${with_dwarf2+set}" = set; then
2262 withval
="$with_dwarf2"
2263 dwarf2
="$with_dwarf2"
2269 # Check whether --enable-shared or --disable-shared was given.
2270 if test "${enable_shared+set}" = set; then
2271 enableval
="$enable_shared"
2273 case $enable_shared in
2277 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2278 for pkg
in $enableval; do
2279 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
2293 # Check whether --with-sysroot or --without-sysroot was given.
2294 if test "${with_sysroot+set}" = set; then
2295 withval
="$with_sysroot"
2297 case ${with_sysroot} in
2298 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
2299 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
2302 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
2303 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
2305 if test "x$exec_prefix" = xNONE
; then
2306 if test "x$prefix" = xNONE
; then
2307 test_prefix
=/usr
/local
2312 test_prefix
=$exec_prefix
2314 case ${TARGET_SYSTEM_ROOT} in
2315 "${test_prefix}"|
"${test_prefix}/"*|\
2316 '${exec_prefix}'|
'${exec_prefix}/'*)
2317 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
2318 TARGET_SYSTEM_ROOT_DEFINE
="$t"
2325 TARGET_SYSTEM_ROOT_DEFINE
=
2326 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
2334 # Build with intermodule optimisations
2335 # Check whether --enable-intermodule or --disable-intermodule was given.
2336 if test "${enable_intermodule+set}" = set; then
2337 enableval
="$enable_intermodule"
2338 case ${enable_intermodule} in
2339 yes) onestep
="-onestep";;
2348 # -------------------------
2349 # Checks for other programs
2350 # -------------------------
2352 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2353 echo "configure:2354: checking whether ${MAKE-make} sets \${MAKE}" >&5
2354 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2355 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftestmake
<<\EOF
2360 @
echo 'ac_maketemp="${MAKE}"'
2362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2363 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2364 if test -n "$ac_maketemp"; then
2365 eval ac_cv_prog_make_
${ac_make}_set
=yes
2367 eval ac_cv_prog_make_
${ac_make}_set
=no
2371 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2375 echo "$ac_t""no" 1>&6
2376 SET_MAKE
="MAKE=${MAKE-make}"
2380 # Find some useful tools
2381 for ac_prog
in mawk gawk nawk
awk
2383 # Extract the first word of "$ac_prog", so it can be a program name with args.
2384 set dummy
$ac_prog; ac_word
=$2
2385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_word" >&5
2387 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 if test -n "$AWK"; then
2391 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2393 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2395 for ac_dir
in $ac_dummy; do
2396 test -z "$ac_dir" && ac_dir
=.
2397 if test -f $ac_dir/$ac_word; then
2398 ac_cv_prog_AWK
="$ac_prog"
2405 AWK
="$ac_cv_prog_AWK"
2406 if test -n "$AWK"; then
2407 echo "$ac_t""$AWK" 1>&6
2409 echo "$ac_t""no" 1>&6
2412 test -n "$AWK" && break
2415 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2416 echo "configure:2417: checking whether ln works" >&5
2417 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 rm -f conftestdata_t
2421 echo >conftestdata_f
2422 if ln conftestdata_f conftestdata_t
2>/dev
/null
2426 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2428 gcc_cv_prog_LN
="ln -s"
2433 rm -f conftestdata_f conftestdata_t
2436 LN
="$gcc_cv_prog_LN"
2437 if test "$gcc_cv_prog_LN" = "ln"; then
2438 echo "$ac_t""yes" 1>&6
2440 if test "$gcc_cv_prog_LN" = "ln -s"; then
2441 echo "$ac_t""no, using ln -s" 1>&6
2443 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2447 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2448 echo "configure:2449: checking whether ln -s works" >&5
2449 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 rm -f conftestdata_t
2453 echo >conftestdata_f
2454 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2456 gcc_cv_prog_LN_S
="ln -s"
2458 if ln conftestdata_f conftestdata_t
2>/dev
/null
2465 rm -f conftestdata_f conftestdata_t
2468 LN_S
="$gcc_cv_prog_LN_S"
2469 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2470 echo "$ac_t""yes" 1>&6
2472 if test "$gcc_cv_prog_LN_S" = "ln"; then
2473 echo "$ac_t""no, using ln" 1>&6
2475 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2479 # Extract the first word of "ranlib", so it can be a program name with args.
2480 set dummy ranlib
; ac_word
=$2
2481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2482 echo "configure:2483: checking for $ac_word" >&5
2483 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 if test -n "$RANLIB"; then
2487 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2489 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2491 for ac_dir
in $ac_dummy; do
2492 test -z "$ac_dir" && ac_dir
=.
2493 if test -f $ac_dir/$ac_word; then
2494 ac_cv_prog_RANLIB
="ranlib"
2499 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2502 RANLIB
="$ac_cv_prog_RANLIB"
2503 if test -n "$RANLIB"; then
2504 echo "$ac_t""$RANLIB" 1>&6
2506 echo "$ac_t""no" 1>&6
2509 # Find a good install program. We prefer a C program (faster),
2510 # so one script is as good as another. But avoid the broken or
2511 # incompatible versions:
2512 # SysV /etc/install, /usr/sbin/install
2513 # SunOS /usr/etc/install
2514 # IRIX /sbin/install
2516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2518 # ./install, which can be erroneously created by make from ./install.sh.
2519 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2520 echo "configure:2521: checking for a BSD compatible install" >&5
2521 if test -z "$INSTALL"; then
2522 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2526 for ac_dir
in $PATH; do
2527 # Account for people who put trailing slashes in PATH elements.
2529 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 for ac_prog
in ginstall scoinst
install; do
2533 if test -f $ac_dir/$ac_prog; then
2534 if test $ac_prog = install &&
2535 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2536 # AIX install. It has an incompatible calling convention.
2537 # OSF/1 installbsd also uses dspmsg, but is usable.
2540 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2551 if test "${ac_cv_path_install+set}" = set; then
2552 INSTALL
="$ac_cv_path_install"
2554 # As a last resort, use the slow shell script. We don't cache a
2555 # path for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the path is relative.
2558 INSTALL
="$ac_install_sh"
2561 echo "$ac_t""$INSTALL" 1>&6
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2567 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2570 # See if cmp has --ignore-initial.
2571 echo $ac_n "checking for cmp's capabilities""... $ac_c" 1>&6
2572 echo "configure:2573: checking for cmp's capabilities" >&5
2573 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2578 gcc_cv_prog_cmp_skip
=slowcompare
2579 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2580 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2583 gcc_cv_prog_cmp_skip
=gnucompare
2586 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
2587 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2588 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2591 gcc_cv_prog_cmp_skip
=fastcompare
2599 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2600 make_compare_target
=$gcc_cv_prog_cmp_skip
2604 # See if we have the mktemp command.
2605 # Extract the first word of "mktemp", so it can be a program name with args.
2606 set dummy mktemp
; ac_word
=$2
2607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_word" >&5
2609 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 if test -n "$have_mktemp_command"; then
2613 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
2615 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2617 for ac_dir
in $ac_dummy; do
2618 test -z "$ac_dir" && ac_dir
=.
2619 if test -f $ac_dir/$ac_word; then
2620 ac_cv_prog_have_mktemp_command
="yes"
2625 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
2628 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
2629 if test -n "$have_mktemp_command"; then
2630 echo "$ac_t""$have_mktemp_command" 1>&6
2632 echo "$ac_t""no" 1>&6
2636 # Do we have a single-tree copy of texinfo?
2637 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2638 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2639 gcc_cv_prog_makeinfo_modern
=yes
2640 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2642 # See if makeinfo has been installed and is modern enough
2643 # that we can use it.
2644 # Extract the first word of "makeinfo", so it can be a program name with args.
2645 set dummy makeinfo
; ac_word
=$2
2646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2647 echo "configure:2648: checking for $ac_word" >&5
2648 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 if test -n "$MAKEINFO"; then
2652 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2654 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2656 for ac_dir
in $ac_dummy; do
2657 test -z "$ac_dir" && ac_dir
=.
2658 if test -f $ac_dir/$ac_word; then
2659 ac_cv_prog_MAKEINFO
="makeinfo"
2666 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2667 if test -n "$MAKEINFO"; then
2668 echo "$ac_t""$MAKEINFO" 1>&6
2670 echo "$ac_t""no" 1>&6
2673 if test -n "$MAKEINFO"; then
2674 # Found it, now check the version.
2675 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2676 echo "configure:2677: checking for modern makeinfo" >&5
2677 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2681 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2682 echo "configure:2683: version of makeinfo is $ac_prog_version" >&5
2683 case $ac_prog_version in
2684 '') gcc_cv_prog_makeinfo_modern
=no
;;
2686 gcc_cv_prog_makeinfo_modern
=yes;;
2687 *) gcc_cv_prog_makeinfo_modern
=no
;;
2692 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2694 gcc_cv_prog_makeinfo_modern
=no
2699 if test $gcc_cv_prog_makeinfo_modern = no
; then
2700 echo "configure: warning:
2701 *** Makeinfo is missing or too old.
2702 *** Info documentation will not be built." 1>&2
2708 # Is pod2man recent enough to regenerate manpages?
2709 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
2710 echo "configure:2711: checking for recent Pod::Man" >&5
2711 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
2712 echo "$ac_t""yes" 1>&6
2713 GENERATED_MANPAGES
=generated-manpages
2715 echo "$ac_t""no" 1>&6
2720 if test -f $srcdir/..
/flex
/skel.c
; then
2721 FLEX
='$(objdir)/../flex/flex'
2723 # Extract the first word of "flex", so it can be a program name with args.
2724 set dummy flex
; ac_word
=$2
2725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_word" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test -n "$FLEX"; then
2731 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
2733 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2735 for ac_dir
in $ac_dummy; do
2736 test -z "$ac_dir" && ac_dir
=.
2737 if test -f $ac_dir/$ac_word; then
2738 ac_cv_prog_FLEX
="flex"
2743 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
2746 FLEX
="$ac_cv_prog_FLEX"
2747 if test -n "$FLEX"; then
2748 echo "$ac_t""$FLEX" 1>&6
2750 echo "$ac_t""no" 1>&6
2756 # The -L switch is so bison can find its skeleton file.
2757 if test -f $srcdir/..
/bison
/bison.simple
; then
2758 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2760 # Extract the first word of "bison", so it can be a program name with args.
2761 set dummy bison
; ac_word
=$2
2762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_word" >&5
2764 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 if test -n "$BISON"; then
2768 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
2770 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2772 for ac_dir
in $ac_dummy; do
2773 test -z "$ac_dir" && ac_dir
=.
2774 if test -f $ac_dir/$ac_word; then
2775 ac_cv_prog_BISON
="bison"
2780 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
2783 BISON
="$ac_cv_prog_BISON"
2784 if test -n "$BISON"; then
2785 echo "$ac_t""$BISON" 1>&6
2787 echo "$ac_t""no" 1>&6
2792 # --------------------
2793 # Checks for C headers
2794 # --------------------
2796 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2797 echo "configure:2798: checking for GNU C library" >&5
2798 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.
$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2804 #include <features.h>
2807 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2808 #error Not a GNU C library system
2812 if { (eval echo configure
:2813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2816 echo "configure: failed program was:" >&5
2817 cat conftest.
$ac_ext >&5
2824 echo "$ac_t""$gcc_cv_glibc" 1>&6
2825 if test $gcc_cv_glibc = yes; then
2826 cat >> confdefs.h
<<\EOF
2827 #define _GNU_SOURCE 1
2832 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2833 echo "configure:2834: checking for ANSI C header files" >&5
2834 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.
$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2845 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2846 { (eval echo configure
:2847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2847 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2848 if test -z "$ac_err"; then
2850 ac_cv_header_stdc
=yes
2853 echo "configure: failed program was:" >&5
2854 cat conftest.
$ac_ext >&5
2856 ac_cv_header_stdc
=no
2860 if test $ac_cv_header_stdc = yes; then
2861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2862 cat > conftest.
$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2868 egrep "memchr" >/dev
/null
2>&1; then
2872 ac_cv_header_stdc
=no
2878 if test $ac_cv_header_stdc = yes; then
2879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2880 cat > conftest.
$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2886 egrep "free" >/dev
/null
2>&1; then
2890 ac_cv_header_stdc
=no
2896 if test $ac_cv_header_stdc = yes; then
2897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2898 if test "$cross_compiling" = yes; then
2901 cat > conftest.
$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2905 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2906 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2908 int main () { int i; for (i = 0; i < 256; i++)
2909 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2913 if { (eval echo configure
:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2917 echo "configure: failed program was:" >&5
2918 cat conftest.
$ac_ext >&5
2920 ac_cv_header_stdc
=no
2928 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2929 if test $ac_cv_header_stdc = yes; then
2930 cat >> confdefs.h
<<\EOF
2931 #define STDC_HEADERS 1
2936 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2937 echo "configure:2938: checking whether time.h and sys/time.h may both be included" >&5
2938 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #include <sys/types.h>
2945 #include <sys/time.h>
2951 if { (eval echo configure
:2952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2953 ac_cv_header_time
=yes
2955 echo "configure: failed program was:" >&5
2956 cat conftest.
$ac_ext >&5
2958 ac_cv_header_time
=no
2963 echo "$ac_t""$ac_cv_header_time" 1>&6
2964 if test $ac_cv_header_time = yes; then
2965 cat >> confdefs.h
<<\EOF
2966 #define TIME_WITH_SYS_TIME 1
2971 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2972 echo "configure:2973: checking for working stdbool.h" >&5
2973 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 cat > conftest.
$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2979 #include <stdbool.h>
2984 if { (eval echo configure
:2985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2986 ac_cv_header_stdbool_h
=yes
2988 echo "configure: failed program was:" >&5
2989 cat conftest.
$ac_ext >&5
2991 ac_cv_header_stdbool_h
=no
2996 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2997 if test $ac_cv_header_stdbool_h = yes; then
2998 cat >> confdefs.h
<<\EOF
2999 #define HAVE_STDBOOL_H 1
3004 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
3005 echo "configure:3006: checking whether string.h and strings.h may both be included" >&5
3006 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.
$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3013 #include <strings.h>
3018 if { (eval echo configure
:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 gcc_cv_header_string
=yes
3022 echo "configure: failed program was:" >&5
3023 cat conftest.
$ac_ext >&5
3025 gcc_cv_header_string
=no
3030 echo "$ac_t""$gcc_cv_header_string" 1>&6
3031 if test $gcc_cv_header_string = yes; then
3032 cat >> confdefs.h
<<\EOF
3033 #define STRING_WITH_STRINGS 1
3038 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3039 echo "configure:3040: checking for sys/wait.h that is POSIX.1 compatible" >&5
3040 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 cat > conftest.
$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <sys/types.h>
3047 #include <sys/wait.h>
3049 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3052 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3057 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3060 if { (eval echo configure
:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3062 ac_cv_header_sys_wait_h
=yes
3064 echo "configure: failed program was:" >&5
3065 cat conftest.
$ac_ext >&5
3067 ac_cv_header_sys_wait_h
=no
3072 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3073 if test $ac_cv_header_sys_wait_h = yes; then
3074 cat >> confdefs.h
<<\EOF
3075 #define HAVE_SYS_WAIT_H 1
3080 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
3081 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
3082 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
3083 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
3085 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3087 echo "configure:3088: checking for $ac_hdr" >&5
3088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.
$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3096 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3097 { (eval echo configure
:3098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3098 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3099 if test -z "$ac_err"; then
3101 eval "ac_cv_header_$ac_safe=yes"
3104 echo "configure: failed program was:" >&5
3105 cat conftest.
$ac_ext >&5
3107 eval "ac_cv_header_$ac_safe=no"
3111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3113 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3114 cat >> confdefs.h
<<EOF
3115 #define $ac_tr_hdr 1
3119 echo "$ac_t""no" 1>&6
3124 # Check for thread headers.
3125 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
3126 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
3127 echo "configure:3128: checking for thread.h" >&5
3128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3136 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3137 { (eval echo configure
:3138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3138 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3139 if test -z "$ac_err"; then
3141 eval "ac_cv_header_$ac_safe=yes"
3144 echo "configure: failed program was:" >&5
3145 cat conftest.
$ac_ext >&5
3147 eval "ac_cv_header_$ac_safe=no"
3151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3152 echo "$ac_t""yes" 1>&6
3155 echo "$ac_t""no" 1>&6
3159 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
3160 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
3161 echo "configure:3162: checking for pthread.h" >&5
3162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 cat > conftest.
$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 #include <pthread.h>
3170 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3171 { (eval echo configure
:3172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3172 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3173 if test -z "$ac_err"; then
3175 eval "ac_cv_header_$ac_safe=yes"
3178 echo "configure: failed program was:" >&5
3179 cat conftest.
$ac_ext >&5
3181 eval "ac_cv_header_$ac_safe=no"
3185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3186 echo "$ac_t""yes" 1>&6
3189 echo "$ac_t""no" 1>&6
3194 # These tests can't be done till we know if we have limits.h.
3195 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
3196 echo "configure:3197: checking for CHAR_BIT" >&5
3197 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 #ifdef HAVE_LIMITS_H
3210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211 egrep "found" >/dev
/null
2>&1; then
3213 gcc_cv_decl_char_bit
=yes
3216 gcc_cv_decl_char_bit
=no
3223 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
3224 if test $gcc_cv_decl_char_bit = no
; then
3225 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
3226 echo "configure:3227: checking number of bits in a byte" >&5
3227 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3232 while test $i -lt 65; do
3233 cat > conftest.
$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3239 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
3240 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
3244 if { (eval echo configure
:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3246 gcc_cv_c_nbby
=$i; break
3248 echo "configure: failed program was:" >&5
3249 cat conftest.
$ac_ext >&5
3254 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
3258 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
3259 if test $gcc_cv_c_nbby = failed
; then
3260 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
3262 cat >> confdefs.h
<<EOF
3263 #define CHAR_BIT $gcc_cv_c_nbby
3268 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3269 echo "configure:3270: checking whether byte ordering is bigendian" >&5
3270 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 ac_cv_c_bigendian
=unknown
3274 # See if sys/param.h defines the BYTE_ORDER macro.
3275 cat > conftest.
$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 #include <sys/types.h>
3279 #include <sys/param.h>
3282 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3287 if { (eval echo configure
:3288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289 # It does; now see whether it defined to BIG_ENDIAN or not.
3290 cat > conftest.
$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 #include <sys/types.h>
3294 #include <sys/param.h>
3297 #if BYTE_ORDER != BIG_ENDIAN
3302 if { (eval echo configure
:3303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304 ac_cv_c_bigendian
=yes
3306 echo "configure: failed program was:" >&5
3307 cat conftest.
$ac_ext >&5
3309 ac_cv_c_bigendian
=no
3313 echo "configure: failed program was:" >&5
3314 cat conftest.
$ac_ext >&5
3317 if test $ac_cv_c_bigendian = unknown
; then
3318 if test "$cross_compiling" = yes; then
3319 echo $ac_n "cross-compiling... " 2>&6
3321 cat > conftest.
$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3325 /* Are we little or big endian? From Harbison&Steele. */
3329 char c[sizeof (long)];
3332 exit (u.c[sizeof (long) - 1] == 1);
3335 if { (eval echo configure
:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3337 ac_cv_c_bigendian
=no
3339 echo "configure: failed program was:" >&5
3340 cat conftest.
$ac_ext >&5
3342 ac_cv_c_bigendian
=yes
3350 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3351 if test $ac_cv_c_bigendian = unknown
; then
3352 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3353 echo "configure:3354: checking to probe for byte ordering" >&5
3355 cat >conftest.c
<<EOF
3356 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3357 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3358 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3359 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3360 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3361 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3362 int main() { _ascii (); _ebcdic (); return 0; }
3364 if test -f conftest.c
; then
3365 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
3366 if test `grep -l BIGenDianSyS conftest.o` ; then
3367 echo $ac_n ' big endian probe OK, ' 1>&6
3368 ac_cv_c_bigendian
=yes
3370 if test `grep -l LiTTleEnDian conftest.o` ; then
3371 echo $ac_n ' little endian probe OK, ' 1>&6
3372 if test $ac_cv_c_bigendian = yes ; then
3373 ac_cv_c_bigendian
=unknown
;
3375 ac_cv_c_bigendian
=no
3378 echo $ac_n 'guessing bigendian ... ' >&6
3381 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3383 if test $ac_cv_c_bigendian = yes; then
3384 cat >> confdefs.h
<<\EOF
3385 #define WORDS_BIGENDIAN 1
3388 cat >> confdefs.h
<<\EOF
3389 #define HOST_WORDS_BIG_ENDIAN 1
3396 cat >> confdefs.h
<<EOF
3397 #define BYTEORDER $BYTEORDER
3400 if test $ac_cv_c_bigendian = unknown
; then
3401 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3409 # Stage specific cflags for build.
3413 if test x
$GCC = xyes
3415 stage1_cflags
="-Wa,-J"
3421 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
3422 # sources; use -no-cpp-precomp to get to GNU cpp.
3423 # Apple's GCC has bugs in designated initializer handling, so disable
3425 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
3430 # These libraries may be used by collect2.
3431 # We may need a special search path to get them linked.
3432 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3433 echo "configure:3434: checking for collect2 libraries" >&5
3434 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3438 for libs
in '' -lld -lmld \
3439 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3440 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3443 cat > conftest.
$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 /* Override any gcc2 internal prototype to avoid an error. */
3447 /* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
3455 if { (eval echo configure
:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3457 gcc_cv_collect2_libs
="$libs"; break
3459 echo "configure: failed program was:" >&5
3460 cat conftest.
$ac_ext >&5
3465 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3468 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3469 case $gcc_cv_collect2_libs in
3471 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3475 # When building Ada code on Alpha, we need exc_resume which is usually in
3476 # -lexc. So test for it.
3480 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3481 echo "configure:3482: checking for library containing exc_resume" >&5
3482 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 ac_func_search_save_LIBS
="$LIBS"
3486 ac_cv_search_exc_resume
="no"
3487 cat > conftest.
$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 /* Override any gcc2 internal prototype to avoid an error. */
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3499 if { (eval echo configure
:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3501 ac_cv_search_exc_resume
="none required"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.
$ac_ext >&5
3507 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3508 LIBS
="-l$i $ac_func_search_save_LIBS"
3509 cat > conftest.
$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 /* Override any gcc2 internal prototype to avoid an error. */
3513 /* We use char because int might match the return type of a gcc2
3514 builtin and then its argument prototype would still apply. */
3521 if { (eval echo configure
:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3523 ac_cv_search_exc_resume
="-l$i"
3526 echo "configure: failed program was:" >&5
3527 cat conftest.
$ac_ext >&5
3531 LIBS
="$ac_func_search_save_LIBS"
3534 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3535 if test "$ac_cv_search_exc_resume" != "no"; then
3536 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3545 # Some systems put ldexp and frexp in libm instead of libc; assume
3546 # they're both in the same place. jcf-dump needs them.
3550 echo $ac_n "checking for library containing ldexp""... $ac_c" 1>&6
3551 echo "configure:3552: checking for library containing ldexp" >&5
3552 if eval "test \"`echo '$''{'ac_cv_search_ldexp'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_func_search_save_LIBS
="$LIBS"
3556 ac_cv_search_ldexp
="no"
3557 cat > conftest.
$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3569 if { (eval echo configure
:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3571 ac_cv_search_ldexp
="none required"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.
$ac_ext >&5
3577 test "$ac_cv_search_ldexp" = "no" && for i
in m
; do
3578 LIBS
="-l$i $ac_func_search_save_LIBS"
3579 cat > conftest.
$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 /* Override any gcc2 internal prototype to avoid an error. */
3583 /* We use char because int might match the return type of a gcc2
3584 builtin and then its argument prototype would still apply. */
3591 if { (eval echo configure
:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3593 ac_cv_search_ldexp
="-l$i"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.
$ac_ext >&5
3601 LIBS
="$ac_func_search_save_LIBS"
3604 echo "$ac_t""$ac_cv_search_ldexp" 1>&6
3605 if test "$ac_cv_search_ldexp" != "no"; then
3606 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
3615 # Use <inttypes.h> only if it exists,
3616 # doesn't clash with <sys/types.h>, and declares intmax_t.
3617 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3618 echo "configure:3619: checking for inttypes.h" >&5
3619 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.
$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <sys/types.h>
3626 #include <inttypes.h>
3631 if { (eval echo configure
:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3633 gcc_cv_header_inttypes_h
=yes
3635 echo "configure: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3638 gcc_cv_header_inttypes_h
=no
3643 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3644 if test $gcc_cv_header_inttypes_h = yes; then
3645 cat >> confdefs.h
<<\EOF
3646 #define HAVE_INTTYPES_H 1
3652 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3653 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3654 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
3655 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
3658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3659 echo "configure:3660: checking for $ac_func" >&5
3660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 cat > conftest.
$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 /* System header to define __stub macros and hopefully few prototypes,
3667 which can conflict with char $ac_func(); below. */
3669 /* Override any gcc2 internal prototype to avoid an error. */
3670 /* We use char because int might match the return type of a gcc2
3671 builtin and then its argument prototype would still apply. */
3676 /* The GNU C library defines this for functions which it implements
3677 to always fail with ENOSYS. Some functions are actually named
3678 something starting with __ and the normal name is an alias. */
3679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3687 if { (eval echo configure
:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3689 eval "ac_cv_func_$ac_func=yes"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.
$ac_ext >&5
3694 eval "ac_cv_func_$ac_func=no"
3699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3702 cat >> confdefs.h
<<EOF
3703 #define $ac_tr_func 1
3707 echo "$ac_t""no" 1>&6
3712 if test x
$ac_cv_func_mbstowcs = xyes
; then
3713 echo $ac_n "checking whether mbstowcs works""... $ac_c" 1>&6
3714 echo "configure:3715: checking whether mbstowcs works" >&5
3715 if eval "test \"`echo '$''{'gcc_cv_func_mbstowcs_works'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 if test "$cross_compiling" = yes; then
3719 gcc_cv_func_mbstowcs_works
=yes
3721 cat > conftest.
$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3731 if { (eval echo configure
:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3733 gcc_cv_func_mbstowcs_works
=yes
3735 echo "configure: failed program was:" >&5
3736 cat conftest.
$ac_ext >&5
3738 gcc_cv_func_mbstowcs_works
=no
3745 echo "$ac_t""$gcc_cv_func_mbstowcs_works" 1>&6
3746 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
3747 cat >> confdefs.h
<<\EOF
3748 #define HAVE_WORKING_MBSTOWCS 1
3754 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3755 echo "configure:3756: checking for ssize_t" >&5
3756 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.
$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3762 #include <sys/types.h>
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3771 ac_cv_type_ssize_t
=yes
3774 ac_cv_type_ssize_t
=no
3779 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3780 if test $ac_cv_type_ssize_t = no
; then
3781 cat >> confdefs.h
<<\EOF
3788 # Try to determine the array type of the second argument of getgroups
3789 # for the target system (int or gid_t).
3790 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3791 echo "configure:3792: checking for uid_t in sys/types.h" >&5
3792 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.
$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <sys/types.h>
3800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801 egrep "uid_t" >/dev
/null
2>&1; then
3803 ac_cv_type_uid_t
=yes
3812 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3813 if test $ac_cv_type_uid_t = no
; then
3814 cat >> confdefs.h
<<\EOF
3818 cat >> confdefs.h
<<\EOF
3824 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3825 echo "configure:3826: checking type of array argument to getgroups" >&5
3826 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 if test "$cross_compiling" = yes; then
3830 ac_cv_type_getgroups
=cross
3832 cat > conftest.
$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3836 /* Thanks to Mike Rendell for this test. */
3837 #include <sys/types.h>
3840 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3845 union { gid_t gval; long lval; } val;
3848 for (i = 0; i < NGID; i++)
3849 gidset[i] = val.gval;
3850 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3852 /* Exit non-zero if getgroups seems to require an array of ints. This
3853 happens when gid_t is short but getgroups modifies an array of ints. */
3854 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3858 if { (eval echo configure
:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3860 ac_cv_type_getgroups
=gid_t
3862 echo "configure: failed program was:" >&5
3863 cat conftest.
$ac_ext >&5
3865 ac_cv_type_getgroups
=int
3870 if test $ac_cv_type_getgroups = cross
; then
3871 cat > conftest.
$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3879 ac_cv_type_getgroups
=gid_t
3882 ac_cv_type_getgroups
=int
3889 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3890 cat >> confdefs.h
<<EOF
3891 #define GETGROUPS_T $ac_cv_type_getgroups
3895 if test "${target}" = "${build}"; then
3896 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3899 # This condition may need some tweaking. It should include all
3900 # targets where the array type of the second argument of getgroups
3901 # is int and the type of gid_t is not equivalent to int.
3902 *-*-sunos* |
*-*-ultrix*)
3903 TARGET_GETGROUPS_T
=int
3906 TARGET_GETGROUPS_T
=gid_t
3912 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3913 echo "configure:3914: checking whether the printf functions support %p" >&5
3914 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 if test "$cross_compiling" = yes; then
3918 gcc_cv_func_printf_ptr
=no
3920 cat > conftest.
$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3928 char *p = buf, *q = NULL;
3929 sprintf(buf, "%p", p);
3930 sscanf(buf, "%p", &q);
3934 if { (eval echo configure
:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3936 gcc_cv_func_printf_ptr
=yes
3938 echo "configure: failed program was:" >&5
3939 cat conftest.
$ac_ext >&5
3941 gcc_cv_func_printf_ptr
=no
3946 rm -f core core.
* *.core
3949 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3950 if test $gcc_cv_func_printf_ptr = yes ; then
3951 cat >> confdefs.h
<<\EOF
3952 #define HAVE_PRINTF_PTR 1
3957 if test $ac_cv_header_sys_mman_h != yes \
3958 ||
test $ac_cv_func_mmap != yes; then
3959 gcc_cv_func_mmap_file
=no
3960 gcc_cv_func_mmap_dev_zero
=no
3961 gcc_cv_func_mmap_anon
=no
3963 echo $ac_n "checking whether read-only mmap of a plain file works""... $ac_c" 1>&6
3964 echo "configure:3965: checking whether read-only mmap of a plain file works" >&5
3965 if eval "test \"`echo '$''{'gcc_cv_func_mmap_file'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 # Add a system to this blacklist if
3969 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
3970 # memory area containing the same data that you'd get if you applied
3971 # read() to the same fd. The only system known to have a problem here
3972 # is VMS, where text files have record structure.
3975 gcc_cv_func_mmap_file
=no
;;
3977 gcc_cv_func_mmap_file
=yes;;
3981 echo "$ac_t""$gcc_cv_func_mmap_file" 1>&6
3982 echo $ac_n "checking whether mmap from /dev/zero works""... $ac_c" 1>&6
3983 echo "configure:3984: checking whether mmap from /dev/zero works" >&5
3984 if eval "test \"`echo '$''{'gcc_cv_func_mmap_dev_zero'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 # Add a system to this blacklist if it has mmap() but /dev/zero
3988 # does not exist, or if mmapping /dev/zero does not give anonymous
3989 # zeroed pages with both the following properties:
3990 # 1. If you map N consecutive pages in with one call, and then
3991 # unmap any subset of those pages, the pages that were not
3992 # explicitly unmapped remain accessible.
3993 # 2. If you map two adjacent blocks of memory and then unmap them
3994 # both at once, they must both go away.
3995 # Systems known to be in this category are Windows (all variants),
3998 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
3999 gcc_cv_func_mmap_dev_zero
=no
;;
4001 gcc_cv_func_mmap_dev_zero
=yes;;
4005 echo "$ac_t""$gcc_cv_func_mmap_dev_zero" 1>&6
4007 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
4008 echo $ac_n "checking for MAP_ANON(YMOUS)""... $ac_c" 1>&6
4009 echo "configure:4010: checking for MAP_ANON(YMOUS)" >&5
4010 if eval "test \"`echo '$''{'gcc_cv_decl_map_anon'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4013 cat > conftest.
$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 #include <sys/types.h>
4017 #include <sys/mman.h>
4020 #ifndef MAP_ANONYMOUS
4021 #define MAP_ANONYMOUS MAP_ANON
4025 int n = MAP_ANONYMOUS;
4028 if { (eval echo configure
:4029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4030 gcc_cv_decl_map_anon
=yes
4032 echo "configure: failed program was:" >&5
4033 cat conftest.
$ac_ext >&5
4035 gcc_cv_decl_map_anon
=no
4040 echo "$ac_t""$gcc_cv_decl_map_anon" 1>&6
4042 if test $gcc_cv_decl_map_anon = no
; then
4043 gcc_cv_func_mmap_anon
=no
4045 echo $ac_n "checking whether mmap with MAP_ANON(YMOUS) works""... $ac_c" 1>&6
4046 echo "configure:4047: checking whether mmap with MAP_ANON(YMOUS) works" >&5
4047 if eval "test \"`echo '$''{'gcc_cv_func_mmap_anon'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 # Add a system to this blacklist if it has mmap() and MAP_ANON or
4051 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
4052 # doesn't give anonymous zeroed pages with the same properties listed
4053 # above for use of /dev/zero.
4054 # Systems known to be in this category are Windows, VMS, and SCO Unix.
4056 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
4057 gcc_cv_func_mmap_anon
=no
;;
4059 gcc_cv_func_mmap_anon
=yes;;
4063 echo "$ac_t""$gcc_cv_func_mmap_anon" 1>&6
4067 if test $gcc_cv_func_mmap_file = yes; then
4068 cat >> confdefs.h
<<\EOF
4069 #define HAVE_MMAP_FILE 1
4073 if test $gcc_cv_func_mmap_dev_zero = yes; then
4074 cat >> confdefs.h
<<\EOF
4075 #define HAVE_MMAP_DEV_ZERO 1
4079 if test $gcc_cv_func_mmap_anon = yes; then
4080 cat >> confdefs.h
<<\EOF
4081 #define HAVE_MMAP_ANON 1
4089 # Under VMS, vfork works very differently than on Unix. The standard test
4090 # won't work, and it isn't easily adaptable. It makes more sense to
4092 ac_cv_func_vfork_works
=yes
4095 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4096 echo "configure:4097: checking for pid_t" >&5
4097 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 cat > conftest.
$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 #include <sys/types.h>
4109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4112 ac_cv_type_pid_t
=yes
4120 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4121 if test $ac_cv_type_pid_t = no
; then
4122 cat >> confdefs.h
<<\EOF
4128 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
4129 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
4130 echo "configure:4131: checking for vfork.h" >&5
4131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 cat > conftest.
$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4139 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4140 { (eval echo configure
:4141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4141 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4142 if test -z "$ac_err"; then
4144 eval "ac_cv_header_$ac_safe=yes"
4147 echo "configure: failed program was:" >&5
4148 cat conftest.
$ac_ext >&5
4150 eval "ac_cv_header_$ac_safe=no"
4154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4156 cat >> confdefs.h
<<\EOF
4157 #define HAVE_VFORK_H 1
4161 echo "$ac_t""no" 1>&6
4164 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
4165 echo "configure:4166: checking for working vfork" >&5
4166 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 if test "$cross_compiling" = yes; then
4170 echo $ac_n "checking for vfork""... $ac_c" 1>&6
4171 echo "configure:4172: checking for vfork" >&5
4172 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 cat > conftest.
$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4178 /* System header to define __stub macros and hopefully few prototypes,
4179 which can conflict with char vfork(); below. */
4181 /* Override any gcc2 internal prototype to avoid an error. */
4182 /* We use char because int might match the return type of a gcc2
4183 builtin and then its argument prototype would still apply. */
4188 /* The GNU C library defines this for functions which it implements
4189 to always fail with ENOSYS. Some functions are actually named
4190 something starting with __ and the normal name is an alias. */
4191 #if defined (__stub_vfork) || defined (__stub___vfork)
4199 if { (eval echo configure
:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4201 eval "ac_cv_func_vfork=yes"
4203 echo "configure: failed program was:" >&5
4204 cat conftest.
$ac_ext >&5
4206 eval "ac_cv_func_vfork=no"
4211 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
4212 echo "$ac_t""yes" 1>&6
4215 echo "$ac_t""no" 1>&6
4218 ac_cv_func_vfork_works
=$ac_cv_func_vfork
4220 cat > conftest.
$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4223 /* Thanks to Paul Eggert for this test. */
4225 #include <sys/types.h>
4226 #include <sys/stat.h>
4227 #ifdef HAVE_UNISTD_H
4233 /* On some sparc systems, changes by the child to local and incoming
4234 argument registers are propagated back to the parent.
4235 The compiler is told about this with #include <vfork.h>,
4236 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4237 Test for this by using a static variable whose address
4238 is put into a register that is clobbered by the vfork. */
4241 sparc_address_test (int arg)
4243 sparc_address_test (arg) int arg;
4261 pid_t parent = getpid ();
4264 sparc_address_test ();
4269 /* Here is another test for sparc vfork register problems.
4270 This test uses lots of local variables, at least
4271 as many local variables as main has allocated so far
4272 including compiler temporaries. 4 locals are enough for
4273 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4274 A buggy compiler should reuse the register of parent
4275 for one of the local variables, since it will think that
4276 parent can't possibly be used any more in this routine.
4277 Assigning to the local variable will thus munge parent
4278 in the parent process. */
4280 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4281 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4282 /* Convince the compiler that p..p7 are live; otherwise, it might
4283 use the same hardware register for all 8 local variables. */
4284 if (p != p1 || p != p2 || p != p3 || p != p4
4285 || p != p5 || p != p6 || p != p7)
4288 /* On some systems (e.g. IRIX 3.3),
4289 vfork doesn't separate parent from child file descriptors.
4290 If the child closes a descriptor before it execs or exits,
4291 this munges the parent's descriptor as well.
4292 Test for this by closing stdout in the child. */
4293 _exit(close(fileno(stdout)) != 0);
4298 while (wait(&status) != child)
4301 /* Was there some problem with vforking? */
4304 /* Did the child fail? (This shouldn't happen.) */
4307 /* Did the vfork/compiler bug occur? */
4308 || parent != getpid()
4310 /* Did the file descriptor bug occur? */
4311 || fstat(fileno(stdout), &st) != 0
4316 if { (eval echo configure
:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4318 ac_cv_func_vfork_works
=yes
4320 echo "configure: failed program was:" >&5
4321 cat conftest.
$ac_ext >&5
4323 ac_cv_func_vfork_works
=no
4330 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4331 if test $ac_cv_func_vfork_works = no
; then
4332 cat >> confdefs.h
<<\EOF
4341 am_cv_lib_iconv_ldpath
=
4342 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4343 if test "${with_libiconv_prefix+set}" = set; then
4344 withval
="$with_libiconv_prefix"
4346 for dir
in `echo "$withval" | tr : ' '`; do
4347 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4348 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4354 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4355 echo "configure:4356: checking for iconv" >&5
4356 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4360 am_cv_func_iconv
="no, consider installing GNU libiconv"
4362 cat > conftest.
$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4368 iconv_t cd = iconv_open("","");
4369 iconv(cd,NULL,NULL,NULL,NULL);
4373 if { (eval echo configure
:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4375 am_cv_func_iconv
=yes
4377 echo "configure: failed program was:" >&5
4378 cat conftest.
$ac_ext >&5
4381 if test "$am_cv_func_iconv" != yes; then
4382 am_save_LIBS
="$LIBS"
4383 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4390 iconv_t cd = iconv_open("","");
4391 iconv(cd,NULL,NULL,NULL,NULL);
4395 if { (eval echo configure
:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4398 am_cv_func_iconv
=yes
4400 echo "configure: failed program was:" >&5
4401 cat conftest.
$ac_ext >&5
4404 LIBS
="$am_save_LIBS"
4409 echo "$ac_t""$am_cv_func_iconv" 1>&6
4410 if test "$am_cv_func_iconv" = yes; then
4411 cat >> confdefs.h
<<\EOF
4412 #define HAVE_ICONV 1
4415 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4416 echo "configure:4417: checking for iconv declaration" >&5
4417 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4421 cat > conftest.
$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4431 #if defined(__STDC__) || defined(__cplusplus)
4432 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4441 if { (eval echo configure
:4442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4443 am_cv_proto_iconv_arg1
=""
4445 echo "configure: failed program was:" >&5
4446 cat conftest.
$ac_ext >&5
4448 am_cv_proto_iconv_arg1
="const"
4451 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);"
4454 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4455 echo "$ac_t""${ac_t:-
4456 }$am_cv_proto_iconv" 1>&6
4457 cat >> confdefs.h
<<EOF
4458 #define ICONV_CONST $am_cv_proto_iconv_arg1
4463 if test "$am_cv_lib_iconv" = yes; then
4464 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4468 # Until we have in-tree GNU iconv:
4473 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4474 echo "configure:4475: checking for LC_MESSAGES" >&5
4475 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.
$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4486 if { (eval echo configure
:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4488 am_cv_val_LC_MESSAGES
=yes
4490 echo "configure: failed program was:" >&5
4491 cat conftest.
$ac_ext >&5
4493 am_cv_val_LC_MESSAGES
=no
4498 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4499 if test $am_cv_val_LC_MESSAGES = yes; then
4500 cat >> confdefs.h
<<\EOF
4501 #define HAVE_LC_MESSAGES 1
4507 # We will need to find libiberty.h and ansidecl.h
4508 saved_CFLAGS
="$CFLAGS"
4509 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4510 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4511 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4512 fprintf_unlocked strstr errno snprintf vasprintf \
4513 malloc realloc calloc free
basename getopt
clock
4515 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4516 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4517 echo "configure:4518: checking whether $ac_func is declared" >&5
4518 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4521 cat > conftest.
$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4525 #define $ac_tr_decl 1
4527 #include "ansidecl.h"
4532 char *(*pfn) = (char *(*)) $ac_func ;
4536 if { (eval echo configure
:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4538 eval "gcc_cv_have_decl_$ac_func=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.
$ac_ext >&5
4543 eval "gcc_cv_have_decl_$ac_func=no"
4548 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4550 #define $ac_tr_decl 1
4554 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4555 #define $ac_tr_decl 0
4561 if test x
= y
; then
4562 cat >> confdefs.h
<<\EOF
4563 #define HAVE_DECL_GETENV 1
4565 cat >> confdefs.h
<<\EOF
4566 #define HAVE_DECL_ATOL 1
4568 cat >> confdefs.h
<<\EOF
4569 #define HAVE_DECL_SBRK 1
4571 cat >> confdefs.h
<<\EOF
4572 #define HAVE_DECL_ABORT 1
4574 cat >> confdefs.h
<<\EOF
4575 #define HAVE_DECL_ATOF 1
4577 cat >> confdefs.h
<<\EOF
4578 #define HAVE_DECL_GETCWD 1
4580 cat >> confdefs.h
<<\EOF
4581 #define HAVE_DECL_GETWD 1
4584 cat >> confdefs.h
<<\EOF
4585 #define HAVE_DECL_STRSIGNAL 1
4587 cat >> confdefs.h
<<\EOF
4588 #define HAVE_DECL_PUTC_UNLOCKED 1
4590 cat >> confdefs.h
<<\EOF
4591 #define HAVE_DECL_FPUTS_UNLOCKED 1
4593 cat >> confdefs.h
<<\EOF
4594 #define HAVE_DECL_FWRITE_UNLOCKED 1
4597 cat >> confdefs.h
<<\EOF
4598 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4600 cat >> confdefs.h
<<\EOF
4601 #define HAVE_DECL_STRSTR 1
4603 cat >> confdefs.h
<<\EOF
4604 #define HAVE_DECL_ERRNO 1
4606 cat >> confdefs.h
<<\EOF
4607 #define HAVE_DECL_SNPRINTF 1
4609 cat >> confdefs.h
<<\EOF
4610 #define HAVE_DECL_VASPRINTF 1
4613 cat >> confdefs.h
<<\EOF
4614 #define HAVE_DECL_MALLOC 1
4616 cat >> confdefs.h
<<\EOF
4617 #define HAVE_DECL_REALLOC 1
4619 cat >> confdefs.h
<<\EOF
4620 #define HAVE_DECL_CALLOC 1
4622 cat >> confdefs.h
<<\EOF
4623 #define HAVE_DECL_FREE 1
4625 cat >> confdefs.h
<<\EOF
4626 #define HAVE_DECL_BASENAME 1
4628 cat >> confdefs.h
<<\EOF
4629 #define HAVE_DECL_GETOPT 1
4631 cat >> confdefs.h
<<\EOF
4632 #define HAVE_DECL_CLOCK 1
4637 for ac_func
in getrlimit setrlimit getrusage
4639 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4640 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4641 echo "configure:4642: checking whether $ac_func is declared" >&5
4642 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.
$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4649 #define $ac_tr_decl 1
4651 #include "ansidecl.h"
4653 #ifdef HAVE_SYS_RESOURCE_H
4654 #include <sys/resource.h>
4660 char *(*pfn) = (char *(*)) $ac_func ;
4664 if { (eval echo configure
:4665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4666 eval "gcc_cv_have_decl_$ac_func=yes"
4668 echo "configure: failed program was:" >&5
4669 cat conftest.
$ac_ext >&5
4671 eval "gcc_cv_have_decl_$ac_func=no"
4676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4677 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4678 #define $ac_tr_decl 1
4682 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4683 #define $ac_tr_decl 0
4689 if test x
= y
; then
4690 cat >> confdefs.h
<<\EOF
4691 #define HAVE_DECL_GETRLIMIT 1
4693 cat >> confdefs.h
<<\EOF
4694 #define HAVE_DECL_SETRLIMIT 1
4696 cat >> confdefs.h
<<\EOF
4697 #define HAVE_DECL_GETRUSAGE 1
4702 cat > conftest.
$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4706 #include "ansidecl.h"
4708 #ifdef HAVE_SYS_RESOURCE_H
4709 #include <sys/resource.h>
4716 if { (eval echo configure
:4717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4719 echo "configure: failed program was:" >&5
4720 cat conftest.
$ac_ext >&5
4722 cat >> confdefs.h
<<\EOF
4729 for ac_func
in ldgetname
4731 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4732 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4733 echo "configure:4734: checking whether $ac_func is declared" >&5
4734 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 cat > conftest.
$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4741 #define $ac_tr_decl 1
4743 #include "ansidecl.h"
4752 char *(*pfn) = (char *(*)) $ac_func ;
4756 if { (eval echo configure
:4757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4758 eval "gcc_cv_have_decl_$ac_func=yes"
4760 echo "configure: failed program was:" >&5
4761 cat conftest.
$ac_ext >&5
4763 eval "gcc_cv_have_decl_$ac_func=no"
4768 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4769 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4770 #define $ac_tr_decl 1
4774 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4775 #define $ac_tr_decl 0
4781 if test x
= y
; then
4782 cat >> confdefs.h
<<\EOF
4783 #define HAVE_DECL_LDGETNAME 1
4788 for ac_func
in times
4790 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4791 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4792 echo "configure:4793: checking whether $ac_func is declared" >&5
4793 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 cat > conftest.
$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4800 #define $ac_tr_decl 1
4802 #include "ansidecl.h"
4804 #ifdef HAVE_SYS_TIMES_H
4805 #include <sys/times.h>
4811 char *(*pfn) = (char *(*)) $ac_func ;
4815 if { (eval echo configure
:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4817 eval "gcc_cv_have_decl_$ac_func=yes"
4819 echo "configure: failed program was:" >&5
4820 cat conftest.
$ac_ext >&5
4822 eval "gcc_cv_have_decl_$ac_func=no"
4827 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4829 #define $ac_tr_decl 1
4833 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4834 #define $ac_tr_decl 0
4840 if test x
= y
; then
4841 cat >> confdefs.h
<<\EOF
4842 #define HAVE_DECL_TIMES 1
4847 # More time-related stuff.
4848 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4849 echo "configure:4850: checking for struct tms" >&5
4850 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4854 cat > conftest.
$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4858 #include "ansidecl.h"
4860 #ifdef HAVE_SYS_TIMES_H
4861 #include <sys/times.h>
4868 if { (eval echo configure
:4869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4870 ac_cv_struct_tms
=yes
4872 echo "configure: failed program was:" >&5
4873 cat conftest.
$ac_ext >&5
4880 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4881 if test $ac_cv_struct_tms = yes; then
4882 cat >> confdefs.h
<<\EOF
4883 #define HAVE_STRUCT_TMS 1
4888 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4889 # revisit after autoconf 2.50.
4890 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4891 echo "configure:4892: checking for clock_t" >&5
4892 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4896 cat > conftest.
$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4900 #include "ansidecl.h"
4907 if { (eval echo configure
:4908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4909 gcc_cv_type_clock_t
=yes
4911 echo "configure: failed program was:" >&5
4912 cat conftest.
$ac_ext >&5
4914 gcc_cv_type_clock_t
=no
4919 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4920 if test $gcc_cv_type_clock_t = yes; then
4921 cat >> confdefs.h
<<\EOF
4922 #define HAVE_CLOCK_T 1
4927 echo $ac_n "checking for uchar""... $ac_c" 1>&6
4928 echo "configure:4929: checking for uchar" >&5
4929 if eval "test \"`echo '$''{'gcc_cv_type_uchar'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4932 cat > conftest.
$ac_ext <<EOF
4933 #line 4934 "configure"
4934 #include "confdefs.h"
4936 #include "ansidecl.h"
4940 if ((uchar *)0) return 0;
4941 if (sizeof(uchar)) return 0;
4944 if { (eval echo configure
:4945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4946 ac_cv_type_uchar
=yes
4948 echo "configure: failed program was:" >&5
4949 cat conftest.
$ac_ext >&5
4956 echo "$ac_t""$gcc_cv_type_uchar" 1>&6
4957 if test $ac_cv_type_uchar = yes; then
4958 cat >> confdefs.h
<<\EOF
4959 #define HAVE_UCHAR 1
4964 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4965 CFLAGS
="$saved_CFLAGS"
4967 # Check whether --enable-initfini-array or --disable-initfini-array was given.
4968 if test "${enable_initfini_array+set}" = set; then
4969 enableval
="$enable_initfini_array"
4973 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
4974 echo "configure:4975: checking for .preinit_array/.init_array/.fini_array support" >&5
4975 if eval "test \"`echo '$''{'gcc_cv_initfini_array'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 if test "$cross_compiling" = yes; then
4979 gcc_cv_initfini_array
=no
4981 cat > conftest.
$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4986 int main (void) { return x; }
4987 int foo (void) { x = 0; }
4988 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4990 if { (eval echo configure
:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4992 gcc_cv_initfini_array
=yes
4994 echo "configure: failed program was:" >&5
4995 cat conftest.
$ac_ext >&5
4997 gcc_cv_initfini_array
=no
5004 echo "$ac_t""$gcc_cv_initfini_array" 1>&6
5005 enable_initfini_array
=$gcc_cv_initfini_array
5009 if test $enable_initfini_array = yes; then
5010 cat >> confdefs.h
<<\EOF
5011 #define HAVE_INITFINI_ARRAY 1
5016 # mkdir takes a single argument on some systems.
5017 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
5018 echo "configure:5019: checking if mkdir takes one argument" >&5
5019 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.
$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5026 #include <sys/types.h>
5027 #ifdef HAVE_SYS_STAT_H
5028 # include <sys/stat.h>
5030 #ifdef HAVE_UNISTD_H
5031 # include <unistd.h>
5033 #ifdef HAVE_DIRECT_H
5034 # include <direct.h>
5040 if { (eval echo configure
:5041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5042 gcc_cv_mkdir_takes_one_arg
=no
5044 echo "configure: failed program was:" >&5
5045 cat conftest.
$ac_ext >&5
5047 gcc_cv_mkdir_takes_one_arg
=yes
5052 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
5053 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
5054 cat >> confdefs.h
<<\EOF
5055 #define MKDIR_TAKES_ONE_ARG 1
5067 # With Setjmp/Longjmp based exception handling.
5068 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5069 if test "${enable_sjlj_exceptions+set}" = set; then
5070 enableval
="$enable_sjlj_exceptions"
5071 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
5072 cat >> confdefs.h
<<EOF
5073 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
5079 if test x
$host = x
$target; then
5080 echo $ac_n "checking for main in -lunwind""... $ac_c" 1>&6
5081 echo "configure:5082: checking for main in -lunwind" >&5
5082 ac_lib_var
=`echo unwind'_'main | sed 'y%./+-%__p_%'`
5083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 ac_save_LIBS
="$LIBS"
5087 LIBS
="-lunwind $LIBS"
5088 cat > conftest.
$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5096 if { (eval echo configure
:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5098 eval "ac_cv_lib_$ac_lib_var=yes"
5100 echo "configure: failed program was:" >&5
5101 cat conftest.
$ac_ext >&5
5103 eval "ac_cv_lib_$ac_lib_var=no"
5106 LIBS
="$ac_save_LIBS"
5109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5110 echo "$ac_t""yes" 1>&6
5111 use_libunwind_default
=yes
5113 echo "$ac_t""no" 1>&6
5114 use_libunwind_default
=no
5118 use_libunwind_default
=no
5120 # Use libunwind based exception handling.
5121 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
5122 if test "${enable_libunwind_exceptions+set}" = set; then
5123 enableval
="$enable_libunwind_exceptions"
5124 use_libunwind_exceptions
=$enableval
5126 use_libunwind_exceptions
=$use_libunwind_default
5129 if test x
"$use_libunwind_exceptions" = xyes
; then
5130 cat >> confdefs.h
<<\EOF
5131 #define USE_LIBUNWIND_EXCEPTIONS 1
5136 # --------------------------------------------------------
5137 # Build, host, and target specific configuration fragments
5138 # --------------------------------------------------------
5140 # Collect build-machine-specific information.
5141 .
${srcdir}/config.build
5143 # Collect host-machine-specific information.
5144 .
${srcdir}/config.
host
5148 # Collect target-machine-specific information.
5149 .
${srcdir}/config.gcc
5151 extra_objs
="${host_extra_objs} ${extra_objs}"
5153 # Default the target-machine variables that were not explicitly set.
5154 if test x
"$tm_file" = x
5155 then tm_file
=$cpu_type/$cpu_type.h
; fi
5157 if test x
"$extra_headers" = x
5158 then extra_headers
=; fi
5160 if test x
$md_file = x
5161 then md_file
=$cpu_type/$cpu_type.md
; fi
5163 if test x
$out_file = x
5164 then out_file
=$cpu_type/$cpu_type.c
; fi
5166 if test x
"$tmake_file" = x
5167 then tmake_file
=$cpu_type/t-
$cpu_type
5170 if test x
"$dwarf2" = xyes
5171 then tm_file
="$tm_file tm-dwarf2.h"
5174 # Say what files are being used for the output code and MD file.
5175 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
5176 echo "Using \`$srcdir/config/$md_file' as machine description file."
5178 # If any of the xm_file variables contain nonexistent files, warn
5179 # about them and drop them.
5182 for x
in $build_xm_file; do
5183 if test -f $srcdir/config
/$x
5185 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5191 for x
in $host_xm_file; do
5192 if test -f $srcdir/config
/$x
5194 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5200 for x
in $xm_file; do
5201 if test -f $srcdir/config
/$x
5203 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5209 for f
in $tm_file; do
5212 if test $count = ax
; then
5213 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5215 echo "Using the following target machine macro files:"
5216 for f
in $tm_file; do
5217 echo " $srcdir/config/$f"
5221 if test x
$need_64bit_hwint = xyes
; then
5222 cat >> confdefs.h
<<\EOF
5223 #define NEED_64BIT_HOST_WIDE_INT 1
5229 for f
in $host_xm_file; do
5232 if test $count = a
; then
5234 elif test $count = ax
; then
5235 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5237 echo "Using the following host machine macro files:"
5238 for f
in $host_xm_file; do
5239 echo " $srcdir/config/$f"
5242 echo "Using ${out_host_hook_obj} for host machine hooks."
5244 if test "$host_xm_file" != "$build_xm_file"; then
5246 for f
in $build_xm_file; do
5249 if test $count = a
; then
5251 elif test $count = ax
; then
5252 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5254 echo "Using the following build machine macro files:"
5255 for f
in $build_xm_file; do
5256 echo " $srcdir/config/$f"
5261 # Check if a valid thread package
5262 case ${enable_threads_flag} in
5265 target_thread_file
='single'
5269 target_thread_file
='single'
5271 aix | dce | gnat | irix | posix | rtems | \
5272 single | solaris | vxworks | win32
)
5273 target_thread_file
=${enable_threads_flag}
5276 echo "${enable_threads_flag} is an unknown thread package" 1>&2
5281 if test x
${thread_file} = x
; then
5282 # No thread file set by target-specific clauses in config.gcc,
5283 # so use file chosen by default logic above
5284 thread_file
=${target_thread_file}
5287 if test x
$enable___cxa_atexit = xyes || \
5288 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
5289 cat >> confdefs.h
<<\EOF
5290 #define DEFAULT_USE_CXA_ATEXIT 1
5295 # Look for a file containing extra machine modes.
5296 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
5297 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
5299 cat >> confdefs.h
<<EOF
5300 #define EXTRA_MODES_FILE "config/$extra_modes"
5305 # auto-host.h is the file containing items generated by autoconf and is
5306 # the first file included by config.h.
5307 # If host=build, it is correct to have bconfig include auto-host.h
5308 # as well. If host!=build, we are in error and need to do more
5309 # work to find out the build config parameters.
5310 if test x
$host = x
$build
5312 build_auto
=auto-host.h
5315 # We create a subdir, then run autoconf in the subdir.
5316 # To prevent recursion we set host and build for the new
5317 # invocation of configure to the build for this invocation
5324 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5325 *) realsrcdir
=..
/${srcdir};;
5327 saved_CFLAGS
="${CFLAGS}"
5328 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5329 ${realsrcdir}/configure \
5330 --target=$target_alias --host=$build_alias --build=$build_alias
5331 CFLAGS
="${saved_CFLAGS}"
5333 # We just finished tests for the build machine, so rename
5334 # the file auto-build.h in the gcc directory.
5335 mv auto-host.h ..
/auto-build.h
5338 build_auto
=auto-build.h
5339 FORBUILD
=..
/${build_subdir}
5343 tm_file
="${tm_file} defaults.h"
5344 tm_p_file
="${tm_p_file} tm-preds.h"
5345 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
5346 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
5347 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
5348 # put this back in temporarily.
5349 xm_file
="ansidecl.h ${xm_file}"
5355 # Get the version trigger filename from the toplevel
5356 if test "${with_gcc_version_trigger+set}" = set; then
5357 gcc_version_trigger
=$with_gcc_version_trigger
5359 gcc_version_trigger
=${srcdir}/version.c
5361 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5362 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5364 # Compile in configure arguments.
5365 if test -f configargs.h
; then
5366 # Being re-configured.
5367 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5368 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5370 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5373 # Double all backslashes and backslash all quotes to turn
5374 # gcc_config_arguments into a C string.
5375 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
5376 $gcc_config_arguments
5378 gcc_config_arguments_str
=`cat conftest.out`
5381 cat > configargs.h
<<EOF
5382 /* Generated automatically. */
5383 static const char configuration_arguments[] = "$gcc_config_arguments_str";
5384 static const char thread_model[] = "$thread_file";
5386 static const struct {
5387 const char *name, *value;
5388 } configure_default_options[] = $configure_default_options;
5391 # Internationalization
5393 VERSION
="$gcc_version"
5397 # If we haven't got the data from the intl directory,
5398 # assume NLS is disabled.
5406 if test -f ..
/intl
/config.intl
; then
5407 . ..
/intl
/config.intl
5409 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5410 echo "configure:5411: checking whether NLS is requested" >&5
5411 if test x
"$USE_NLS" != xyes
; then
5412 echo "$ac_t""no" 1>&6
5414 echo "$ac_t""yes" 1>&6
5415 cat >> confdefs.h
<<\EOF
5416 #define ENABLE_NLS 1
5420 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5421 echo "configure:5422: checking for catalogs to be installed" >&5
5422 # Look for .po and .gmo files in the source directory.
5425 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5426 # If there aren't any .gmo files the shell will give us the
5427 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5429 case "$cat" in *\
**)
5432 # The quadruple backslash is collapsed to a double backslash
5433 # by the backticks, then collapsed again by the double quotes,
5434 # leaving us with one backslash in the sed expression (right
5435 # before the dot that mustn't act as a wildcard).
5436 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5437 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5438 # The user is allowed to set LINGUAS to a list of languages to
5439 # install catalogs for. If it's empty that means "all of them."
5440 if test "x$LINGUAS" = x
; then
5441 CATALOGS
="$CATALOGS $cat"
5442 XLINGUAS
="$XLINGUAS $lang"
5444 case "$LINGUAS" in *$lang*)
5445 CATALOGS
="$CATALOGS $cat"
5446 XLINGUAS
="$XLINGUAS $lang"
5452 echo "$ac_t""$LINGUAS" 1>&6
5455 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
5456 # -liconv on the link line twice.
5457 case "$LIBINTL" in *$LIBICONV*)
5461 # Windows32 Registry support for specifying GCC installation paths.
5462 # Check whether --enable-win32-registry or --disable-win32-registry was given.
5463 if test "${enable_win32_registry+set}" = set; then
5464 enableval
="$enable_win32_registry"
5469 win32 | pe | cygwin
* | mingw32
* | uwin
*)
5470 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
5471 echo "configure:5472: checking whether windows registry support is requested" >&5
5472 if test "x$enable_win32_registry" != xno
; then
5473 cat >> confdefs.h
<<\EOF
5474 #define ENABLE_WIN32_REGISTRY 1
5477 echo "$ac_t""yes" 1>&6
5479 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
5480 echo "configure:5481: checking for library containing RegOpenKeyExA" >&5
5481 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5484 ac_func_search_save_LIBS
="$LIBS"
5485 ac_cv_search_RegOpenKeyExA
="no"
5486 cat > conftest.
$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5492 char RegOpenKeyExA();
5498 if { (eval echo configure
:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5500 ac_cv_search_RegOpenKeyExA
="none required"
5502 echo "configure: failed program was:" >&5
5503 cat conftest.
$ac_ext >&5
5506 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
5507 LIBS
="-l$i $ac_func_search_save_LIBS"
5508 cat > conftest.
$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5514 char RegOpenKeyExA();
5520 if { (eval echo configure
:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5522 ac_cv_search_RegOpenKeyExA
="-l$i"
5525 echo "configure: failed program was:" >&5
5526 cat conftest.
$ac_ext >&5
5530 LIBS
="$ac_func_search_save_LIBS"
5533 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
5534 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
5535 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
5541 echo "$ac_t""no" 1>&6
5544 # Check if user specified a different registry key.
5545 case "x${enable_win32_registry}" in
5548 gcc_cv_win32_registry_key
="$VERSION"
5551 # no registry lookup.
5552 gcc_cv_win32_registry_key
=''
5555 # user-specified key.
5556 gcc_cv_win32_registry_key
="$enable_win32_registry"
5560 if test "x$enable_win32_registry" != xno
; then
5561 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
5562 echo "configure:5563: checking registry key on windows hosts" >&5
5563 cat >> confdefs.h
<<EOF
5564 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
5567 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
5572 # Get an absolute path to the GCC top-level source directory
5573 holddir
=`${PWDCMD-pwd}`
5575 topdir
=`${PWDCMD-pwd}`
5578 # Conditionalize the makefile for this host machine.
5580 for f
in ${host_xmake_file}
5582 if test -f ${srcdir}/config
/$f
5584 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
5588 # Conditionalize the makefile for this target machine.
5590 for f
in ${tmake_file}
5592 if test -f ${srcdir}/config
/$f
5594 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
5597 tmake_file
="${tmake_file_}"
5599 symbolic_link
='ln -s'
5601 # If the host doesn't support symlinks, modify CC in
5602 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5603 # Otherwise, we can use "CC=$(CC)".
5605 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5607 cc_set_by_configure
="\$(CC)"
5608 quoted_cc_set_by_configure
="\$(CC)"
5609 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5610 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5613 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5615 symbolic_link
="cp -p"
5619 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5620 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
5621 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5622 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
5626 out_object_file
=`basename $out_file .c`.o
5630 for f
in $tm_file; do
5633 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
5634 tm_include_list
="${tm_include_list} $f"
5637 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
5638 tm_include_list
="${tm_include_list} config/$f"
5645 for f
in $tm_p_file; do
5648 tm_p_file_list
="${tm_p_file_list} $f"
5649 tm_p_include_list
="${tm_p_include_list} $f"
5652 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
5653 tm_p_include_list
="${tm_p_include_list} config/$f"
5659 for f
in $xm_file; do
5662 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
5663 xm_include_list
="${xm_include_list} $f"
5666 xm_file_list
="${xm_file_list} $f"
5667 xm_include_list
="${xm_include_list} $f"
5670 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
5671 xm_include_list
="${xm_include_list} config/$f"
5677 host_xm_include_list
=
5678 for f
in $host_xm_file; do
5681 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
5682 host_xm_include_list
="${host_xm_include_list} $f"
5685 host_xm_file_list
="${host_xm_file_list} $f"
5686 host_xm_include_list
="${host_xm_include_list} $f"
5689 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
5690 host_xm_include_list
="${host_xm_include_list} config/$f"
5696 for f
in $build_xm_file; do
5699 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
5700 build_xm_include_list
="${build_xm_include_list} $f"
5702 auto-build.h | auto-host.h
)
5703 build_xm_file_list
="${build_xm_file_list} $f"
5704 build_xm_include_list
="${build_xm_include_list} $f"
5707 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
5708 build_xm_include_list
="${build_xm_include_list} config/$f"
5713 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
5714 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
5717 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
5718 if test x
$host != x
$target
5720 CROSS
="-DCROSS_COMPILE"
5722 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
5723 case "$host","$target" in
5724 # Darwin crosses can use the host system's libraries and headers,
5725 # because of the fat library support. Of course, it must be the
5726 # same version of Darwin on both sides. Allow the user to
5727 # just say --target=foo-darwin without a version number to mean
5728 # "the version on this system".
5729 *-*-darwin*,*-*-darwin*)
5730 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
5731 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
5732 if test $hostos = $targetos -o $targetos = darwin
; then
5734 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
5739 i?
86-*-*,x86_64-
*-* \
5740 | powerpc
*-*-*,powerpc64
*-*-*)
5741 CROSS
="$CROSS -DNATIVE_CROSS" ;;
5743 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
5744 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
5745 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
5748 # If this is a cross-compiler that does not
5749 # have its own set of headers then define
5752 # If this is using newlib, without having the headers available now,
5753 # then define inhibit_libc in LIBGCC2_CFLAGS.
5754 # This prevents libgcc2 from containing any code which requires libc
5757 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
5758 test x
$with_newlib = xyes
; } &&
5759 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
5760 inhibit_libc
=-Dinhibit_libc
5764 # When building gcc with a cross-compiler, we need to adjust things so
5765 # that the generator programs are still built with the native compiler.
5766 # Also, we cannot run fixincludes or fix-header.
5768 # These are the normal (build=host) settings:
5770 BUILD_PREFIX_1
=ignore-
5771 CC_FOR_BUILD
='$(CC)'
5772 BUILD_CFLAGS
='$(ALL_CFLAGS)'
5774 STMP_FIXINC
=stmp-fixinc
5776 # Possibly disable fixproto, on a per-target basis.
5777 case ${use_fixproto} in
5782 STMP_FIXPROTO
=stmp-fixproto
5787 # And these apply if build != host, or we are generating coverage data
5788 if test x
$build != x
$host ||
test "x$coverage_flags" != x
5791 BUILD_PREFIX_1
=build-
5792 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
5794 if test "x$TARGET_SYSTEM_ROOT" = x
; then
5800 # Expand extra_headers to include complete path.
5801 # This substitutes for lots of t-* files.
5803 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
5804 for file in ${extra_headers} ; do
5805 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
5808 # Add a definition of USE_COLLECT2 if system wants one.
5809 case $use_collect2 in
5810 no
) use_collect2
= ;;
5813 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
5814 xm_defines
="${xm_defines} USE_COLLECT2"
5818 # Identify the assembler which will work hand-in-glove with the newly
5819 # built GCC, so that we can examine its features. This is the assembler
5820 # which will be driven by the driver program.
5822 # If build != host, and we aren't building gas in-tree, we identify a
5823 # build->target assembler and hope that it will have the same features
5824 # as the host->target assembler we'll be using.
5825 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
5826 echo "configure:5827: checking what assembler to use" >&5
5829 gcc_cv_gas_major_version
=
5830 gcc_cv_gas_minor_version
=
5831 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5832 if test -x "$DEFAULT_ASSEMBLER"; then
5833 gcc_cv_as
="$DEFAULT_ASSEMBLER"
5834 elif test -x "$AS"; then
5836 elif test -x as
$host_exeext; then
5837 # Build using assembler in the current directory.
5838 gcc_cv_as
=.
/as
$host_exeext
5839 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
5840 && test -f ..
/gas
/Makefile
; then
5841 # Single tree build which includes gas.
5843 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
5844 for f
in $gcc_cv_as_bfd_srcdir/configure \
5845 $gcc_cv_as_gas_srcdir/configure \
5846 $gcc_cv_as_gas_srcdir/configure.
in \
5847 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
5848 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5849 if test x
$gcc_cv_gas_version != x
; then
5853 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5854 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5855 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
5856 case $gcc_cv_gas_patch_version in
5857 "") gcc_cv_gas_patch_version
="0" ;;
5859 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
5860 + $gcc_cv_gas_minor_version \) \* 1000 \
5861 + $gcc_cv_gas_patch_version`
5863 rm -f as
$host_exeext
5864 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5865 in_tree_gas_is_elf
=no
5866 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
5867 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
5868 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
5870 in_tree_gas_is_elf
=yes
5874 if test "x$gcc_cv_as" = x
; then
5875 # Search the same directories that the installed compiler will
5876 # search. Else we may find the wrong assembler and lose. If we
5877 # do not find a suitable assembler binary, then try the user's
5880 # Also note we have to check MD_EXEC_PREFIX before checking the
5881 # user's path. Unfortunately, there is no good way to get at the
5882 # value of MD_EXEC_PREFIX here. So we do a brute force search
5883 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5884 # to be fixed as part of the make/configure rewrite too.
5886 if test "x$exec_prefix" = xNONE
; then
5887 if test "x$prefix" = xNONE
; then
5888 test_prefix
=/usr
/local
5893 test_prefix
=$exec_prefix
5896 # If the loop below does not find an assembler, then use whatever
5897 # one we can find in the users's path.
5899 if test "x$program_prefix" != xNONE
; then
5900 gcc_cv_as
=${program_prefix}as
$host_exeext
5902 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
5905 test_dirs
="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
5906 $test_prefix/lib/gcc-lib/$target_noncanonical \
5907 /usr/lib/gcc/$target_noncanonical/$gcc_version \
5908 /usr/lib/gcc/$target_noncanonical \
5909 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
5910 $test_prefix/$target_noncanonical/bin"
5912 if test x
$host = x
$target; then
5913 test_dirs
="$test_dirs \
5918 /bsd43/usr/lib/cmplrs/cc \
5919 /usr/cross64/usr/bin \
5920 /usr/lib/cmplrs/cc \
5921 /sysv/usr/lib/cmplrs/cc \
5922 /svr4/usr/lib/cmplrs/cc \
5926 for dir
in $test_dirs; do
5927 if test -x $dir/as
$host_exeext; then
5928 gcc_cv_as
=$dir/as
$host_exeext
5933 case $in_tree_gas in
5935 echo "$ac_t"""newly built gas
"" 1>&6
5938 echo "$ac_t""$gcc_cv_as" 1>&6
5942 # Identify the linker which will work hand-in-glove with the newly
5943 # built GCC, so that we can examine its features. This is the linker
5944 # which will be driven by the driver program.
5946 # If build != host, and we aren't building gas in-tree, we identify a
5947 # build->target linker and hope that it will have the same features
5948 # as the host->target linker we'll be using.
5949 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
5950 echo "configure:5951: checking what linker to use" >&5
5953 gcc_cv_gld_major_version
=
5954 gcc_cv_gld_minor_version
=
5955 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
5956 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
5957 if test -x "$DEFAULT_LINKER"; then
5958 gcc_cv_ld
="$DEFAULT_LINKER"
5959 elif test -x "$LD"; then
5961 elif test -x collect-ld
$host_exeext; then
5962 # Build using linker in the current directory.
5963 gcc_cv_ld
=.
/collect-ld
$host_exeext
5964 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
5965 && test -f ..
/ld
/Makefile
; then
5966 # Single tree build which includes ld.
5968 in_tree_ld_is_elf
=no
5969 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
5970 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
5971 in_tree_ld_is_elf
=yes
5973 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
5975 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5976 if test x
$gcc_cv_gld_version != x
; then
5980 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
5981 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5982 rm -f collect-ld
$host_exeext
5983 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
5987 if test "x$gcc_cv_ld" = x
; then
5988 # Search the same directories that the installed compiler will
5989 # search. Else we may find the wrong linker and lose. If we
5990 # do not find a suitable linker binary, then try the user's
5993 # Also note we have to check MD_EXEC_PREFIX before checking the
5994 # user's path. Unfortunately, there is no good way to get at the
5995 # value of MD_EXEC_PREFIX here. So we do a brute force search
5996 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5997 # to be fixed as part of the make/configure rewrite too.
5999 if test "x$exec_prefix" = xNONE
; then
6000 if test "x$prefix" = xNONE
; then
6001 test_prefix
=/usr
/local
6006 test_prefix
=$exec_prefix
6009 # If the loop below does not find an linker, then use whatever
6010 # one we can find in the users's path.
6012 if test "x$program_prefix" != xNONE
; then
6013 gcc_cv_ld
=${program_prefix}ld
$host_exeext
6015 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
6018 test_dirs
="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
6019 $test_prefix/lib/gcc-lib/$target_noncanonical \
6020 /usr/lib/gcc/$target_noncanonical/$gcc_version \
6021 /usr/lib/gcc/$target_noncanonical \
6022 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
6023 $test_prefix/$target_noncanonical/bin"
6025 if test x
$host = x
$target; then
6026 test_dirs
="$test_dirs \
6031 /bsd43/usr/lib/cmplrs/cc \
6032 /usr/cross64/usr/bin \
6033 /usr/lib/cmplrs/cc \
6034 /sysv/usr/lib/cmplrs/cc \
6035 /svr4/usr/lib/cmplrs/cc \
6039 for dir
in $test_dirs; do
6040 if test -x $dir/ld
$host_exeext; then
6041 gcc_cv_ld
=$dir/ld
$host_exeext
6048 echo "$ac_t"""newly built ld
"" 1>&6
6051 echo "$ac_t""$gcc_cv_ld" 1>&6
6055 # Figure out what nm we will be using.
6056 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
6057 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
6058 echo "configure:6059: checking what nm to use" >&5
6060 if test -x nm
$host_exeext; then
6061 gcc_cv_nm
=.
/nm
$host_exeext
6062 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
6063 && test -f ..
/binutils
/Makefile
; then
6064 # Single tree build which includes binutils.
6066 gcc_cv_nm
=.
/nm
$host_exeext
6067 rm -f nm
$host_exeext
6068 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6069 elif test "x$program_prefix" != xNONE
; then
6070 gcc_cv_nm
=${program_prefix}nm
$host_exeext
6072 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
6075 yes) echo "$ac_t"""newly built nm
"" 1>&6 ;;
6076 no
) echo "$ac_t""$gcc_cv_nm" 1>&6 ;;
6079 # Figure out what objdump we will be using.
6080 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
6081 echo "configure:6082: checking what objdump to use" >&5
6083 if test -x objdump
$host_exeext; then
6084 gcc_cv_objdump
=.
/objdump
$host_exeext
6085 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
6086 && test -f ..
/binutils
/Makefile
; then
6087 # Single tree build which includes binutils.
6089 gcc_cv_objdump
=.
/objdump
$host_exeext
6090 rm -f objdump
$host_exeext
6091 $symbolic_link ..
/binutils
/objdump
$host_exeext \
6092 objdump
$host_exeext 2>/dev
/null
6093 elif test "x$program_prefix" != xNONE
; then
6094 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
6096 gcc_cv_objdump
=`echo objdump | \
6097 sed ${program_transform_name}`$host_exeext
6099 case $in_tree_objdump in
6100 yes) echo "$ac_t"""newly built objdump
"" 1>&6 ;;
6101 no
) echo "$ac_t""$gcc_cv_objdump" 1>&6 ;;
6104 # Figure out what assembler alignment features are present.
6105 echo $ac_n "checking assembler for .balign and .p2align""... $ac_c" 1>&6
6106 echo "configure:6107: checking assembler for .balign and .p2align" >&5
6107 if eval "test \"`echo '$''{'gcc_cv_as_balign_and_p2align'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6110 gcc_cv_as_balign_and_p2align
=no
6111 if test $in_tree_gas = yes; then
6112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
6113 then gcc_cv_as_balign_and_p2align
=yes
6115 elif test x
$gcc_cv_as != x
; then
6117 .p2align 2' > conftest.s
6118 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6120 gcc_cv_as_balign_and_p2align
=yes
6122 echo "configure: failed program was" >&5
6125 rm -f conftest.o conftest.s
6129 echo "$ac_t""$gcc_cv_as_balign_and_p2align" 1>&6
6130 if test $gcc_cv_as_balign_and_p2align = yes; then
6131 cat >> confdefs.h
<<\EOF
6132 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6137 echo $ac_n "checking assembler for .p2align with maximum skip""... $ac_c" 1>&6
6138 echo "configure:6139: checking assembler for .p2align with maximum skip" >&5
6139 if eval "test \"`echo '$''{'gcc_cv_as_max_skip_p2align'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6142 gcc_cv_as_max_skip_p2align
=no
6143 if test $in_tree_gas = yes; then
6144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
6145 then gcc_cv_as_max_skip_p2align
=yes
6147 elif test x
$gcc_cv_as != x
; then
6148 echo '.p2align 4,,7' > conftest.s
6149 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6151 gcc_cv_as_max_skip_p2align
=yes
6153 echo "configure: failed program was" >&5
6156 rm -f conftest.o conftest.s
6160 echo "$ac_t""$gcc_cv_as_max_skip_p2align" 1>&6
6161 if test $gcc_cv_as_max_skip_p2align = yes; then
6162 cat >> confdefs.h
<<\EOF
6163 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6168 echo $ac_n "checking assembler for working .subsection -1""... $ac_c" 1>&6
6169 echo "configure:6170: checking assembler for working .subsection -1" >&5
6170 if eval "test \"`echo '$''{'gcc_cv_as_subsection_m1'+set}'`\" = set"; then
6171 echo $ac_n "(cached) $ac_c" 1>&6
6173 gcc_cv_as_subsection_m1
=no
6174 if test $in_tree_gas = yes; then
6175 if test $in_tree_gas_is_elf = yes \
6176 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
6177 then gcc_cv_as_subsection_m1
=yes
6179 elif test x
$gcc_cv_as != x
; then
6180 echo 'conftest_label1: .word 0
6182 conftest_label2: .word 0
6183 .previous' > conftest.s
6184 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6186 if test x
$gcc_cv_nm != x
; then
6187 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
6188 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
6189 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
6191 else gcc_cv_as_subsection_m1
=yes
6193 rm -f conftest.nm1 conftest.nm2
6196 echo "configure: failed program was" >&5
6199 rm -f conftest.o conftest.s
6203 echo "$ac_t""$gcc_cv_as_subsection_m1" 1>&6
6204 if test $gcc_cv_as_subsection_m1 = yes; then
6205 cat >> confdefs.h
<<\EOF
6206 #define HAVE_GAS_SUBSECTION_ORDERING 1
6211 echo $ac_n "checking assembler for .weak""... $ac_c" 1>&6
6212 echo "configure:6213: checking assembler for .weak" >&5
6213 if eval "test \"`echo '$''{'gcc_cv_as_weak'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6217 if test $in_tree_gas = yes; then
6218 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
6219 then gcc_cv_as_weak
=yes
6221 elif test x
$gcc_cv_as != x
; then
6222 echo ' .weak foobar' > conftest.s
6223 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6227 echo "configure: failed program was" >&5
6230 rm -f conftest.o conftest.s
6234 echo "$ac_t""$gcc_cv_as_weak" 1>&6
6235 if test $gcc_cv_as_weak = yes; then
6236 cat >> confdefs.h
<<\EOF
6237 #define HAVE_GAS_WEAK 1
6242 # .hidden needs to be supported in both the assembler and the linker,
6243 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
6244 # This is irritatingly difficult to feature test for; we have to check the
6245 # date string after the version number. If we've got an in-tree
6246 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
6248 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
6249 echo $ac_n "checking assembler for .hidden""... $ac_c" 1>&6
6250 echo "configure:6251: checking assembler for .hidden" >&5
6251 if eval "test \"`echo '$''{'gcc_cv_as_hidden'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6255 if test $in_tree_gas = yes; then
6256 if test $in_tree_gas_is_elf = yes \
6257 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
6258 then gcc_cv_as_hidden
=yes
6260 elif test x
$gcc_cv_as != x
; then
6261 echo ' .hidden foobar
6262 foobar:' > conftest.s
6263 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6265 gcc_cv_as_hidden
=yes
6267 echo "configure: failed program was" >&5
6270 rm -f conftest.o conftest.s
6274 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
6277 echo $ac_n "checking linker for .hidden support""... $ac_c" 1>&6
6278 echo "configure:6279: checking linker for .hidden support" >&5
6279 if eval "test \"`echo '$''{'gcc_cv_ld_hidden'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6282 if test $in_tree_ld = yes ; then
6284 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
6285 && test $in_tree_ld_is_elf = yes; then
6286 gcc_cv_ld_hidden
=yes
6289 gcc_cv_ld_hidden
=yes
6290 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
6291 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
6292 ld_vers
=`echo $ld_ver | sed -n \
6293 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
6294 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
6295 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
6296 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
6297 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
6298 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
6299 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
6300 if test 0"$ld_date" -lt 20020404; then
6301 if test -n "$ld_date"; then
6302 # If there was date string, but was earlier than 2002-04-04, fail
6304 elif test -z "$ld_vers"; then
6305 # If there was no date string nor ld version number, something is wrong
6308 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
6309 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
6310 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6311 test -z "$ld_vers_patch" && ld_vers_patch
=0
6312 if test "$ld_vers_major" -lt 2; then
6314 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
6315 gcc_cv_ld_hidden
="no"
6316 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
6322 # non-GNU linkers don't seem to support .hidden yet
6328 echo "$ac_t""$gcc_cv_ld_hidden" 1>&6
6329 libgcc_visibility
=no
6331 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
6332 libgcc_visibility
=yes
6333 cat >> confdefs.h
<<\EOF
6334 #define HAVE_GAS_HIDDEN 1
6339 # Check if we have .[us]leb128, and support symbol arithmetic with it.
6340 echo $ac_n "checking assembler for .sleb128 and .uleb128""... $ac_c" 1>&6
6341 echo "configure:6342: checking assembler for .sleb128 and .uleb128" >&5
6342 if eval "test \"`echo '$''{'gcc_cv_as_leb128'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6346 if test $in_tree_gas = yes; then
6347 if test $in_tree_gas_is_elf = yes \
6348 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
6349 then gcc_cv_as_leb128
=yes
6351 elif test x
$gcc_cv_as != x
; then
6358 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6360 # GAS versions before 2.11 do not support uleb128,
6361 # despite appearing to.
6362 # ??? There exists an elf-specific test that will crash
6363 # the assembler. Perhaps it's better to figure out whether
6364 # arbitrary sections are supported and try the test.
6365 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
6366 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
6367 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
6368 as_major
=`echo $as_ver | sed 's/\..*//'`
6369 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
6370 if test $as_major -eq 2 && test $as_minor -lt 11
6372 else gcc_cv_as_leb128
=yes
6376 echo "configure: failed program was" >&5
6379 rm -f conftest.o conftest.s
6383 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
6384 if test $gcc_cv_as_leb128 = yes; then
6385 cat >> confdefs.h
<<\EOF
6386 #define HAVE_AS_LEB128 1
6391 # GAS versions up to and including 2.11.0 may mis-optimize
6393 echo $ac_n "checking assembler for eh_frame optimization""... $ac_c" 1>&6
6394 echo "configure:6395: checking assembler for eh_frame optimization" >&5
6395 if eval "test \"`echo '$''{'gcc_cv_as_eh_frame'+set}'`\" = set"; then
6396 echo $ac_n "(cached) $ac_c" 1>&6
6398 gcc_cv_as_eh_frame
=no
6399 if test $in_tree_gas = yes; then
6400 if test $in_tree_gas_is_elf = yes \
6401 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
6402 then gcc_cv_as_eh_frame
=yes
6404 elif test x
$gcc_cv_as != x
; then
6411 .section .eh_frame,"aw",@progbits
6413 .4byte .LECIE1-.LSCIE1
6427 .4byte .LEFDE1-.LASFDE1
6429 .4byte .LASFDE1-__FRAME_BEGIN__
6436 .LEFDE1:' > conftest.s
6437 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6439 cat > conftest.lit
<<EOF
6440 0000 10000000 00000000 017a0001 781a0004 .........z..x...
6441 0010 01000000 12000000 18000000 00000000 ................
6442 0020 08000000 04080000 0044 .........D
6444 cat > conftest.big
<<EOF
6445 0000 00000010 00000000 017a0001 781a0004 .........z..x...
6446 0010 00000001 00000012 00000018 00000000 ................
6447 0020 00000008 04000000 0844 .........D
6449 # If the assembler didn't choke, and we can objdump,
6450 # and we got the correct data, then succeed.
6451 if test x
$gcc_cv_objdump != x \
6452 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
6453 |
tail -3 > conftest.got \
6454 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
6455 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
6457 gcc_cv_as_eh_frame
=yes
6458 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'; { (eval echo configure
:6459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
6459 gcc_cv_as_eh_frame
=buggy
6461 # Uh oh, what do we do now?
6462 gcc_cv_as_eh_frame
=no
6465 echo "configure: failed program was" >&5
6468 rm -f conftest.o conftest.s
6472 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
6475 if test $gcc_cv_as_eh_frame = buggy
; then
6476 cat >> confdefs.h
<<\EOF
6477 #define USE_AS_TRADITIONAL_FORMAT 1
6482 echo $ac_n "checking assembler for section merging support""... $ac_c" 1>&6
6483 echo "configure:6484: checking assembler for section merging support" >&5
6484 if eval "test \"`echo '$''{'gcc_cv_as_shf_merge'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6487 gcc_cv_as_shf_merge
=no
6488 if test $in_tree_gas = yes; then
6489 if test $in_tree_gas_is_elf = yes \
6490 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
6491 then gcc_cv_as_shf_merge
=yes
6493 elif test x
$gcc_cv_as != x
; then
6494 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
6495 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure
:6496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6497 gcc_cv_as_shf_merge
=yes
6499 echo "configure: failed program was" >&5
6502 rm -f conftest.o conftest.s
6506 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
6508 cat >> confdefs.h
<<EOF
6509 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
6513 # Thread-local storage - the check is heavily parametrized.
6521 .section ".tdata","awT",@progbits
6524 ldq $27,__tls_get_addr($29) !literal!1
6525 lda $16,foo($29) !tlsgd!1
6526 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
6527 ldq $27,__tls_get_addr($29) !literal!2
6528 lda $16,foo($29) !tlsldm!2
6529 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
6530 ldq $1,foo($29) !gotdtprel
6531 ldah $2,foo($29) !dtprelhi
6532 lda $3,foo($2) !dtprello
6533 lda $4,foo($29) !dtprel
6534 ldq $1,foo($29) !gottprel
6535 ldah $2,foo($29) !tprelhi
6536 lda $3,foo($2) !tprello
6537 lda $4,foo($29) !tprel'
6543 .section ".tdata","awT",@progbits
6547 leal foo@TLSGD(,%ebx,1), %eax
6548 leal foo@TLSLDM(%ebx), %eax
6549 leal foo@DTPOFF(%eax), %edx
6550 movl foo@GOTTPOFF(%ebx), %eax
6551 subl foo@GOTTPOFF(%ebx), %eax
6552 addl foo@GOTNTPOFF(%ebx), %eax
6553 movl foo@INDNTPOFF, %eax
6554 movl $foo@TPOFF, %eax
6555 subl $foo@TPOFF, %eax
6556 leal foo@NTPOFF(%ecx), %eax'
6562 .section ".tdata","awT",@progbits
6566 leaq foo@TLSGD(%rip), %rdi
6567 leaq foo@TLSLD(%rip), %rdi
6568 leaq foo@DTPOFF(%rax), %rdx
6569 movq foo@GOTTPOFF(%rip), %rax
6570 movq $foo@TPOFF, %rax'
6576 .section ".tdata","awT",@progbits
6579 addl r16 = @ltoff(@dtpmod(foo#)), gp
6580 addl r17 = @ltoff(@dtprel(foo#)), gp
6581 addl r18 = @ltoff(@tprel(foo#)), gp
6582 addl r19 = @dtprel(foo#), gp
6583 adds r21 = @dtprel(foo#), r13
6584 movl r23 = @dtprel(foo#)
6585 addl r20 = @tprel(foo#), gp
6586 adds r22 = @tprel(foo#), r13
6587 movl r24 = @tprel(foo#)'
6593 .section ".tdata","awT",@progbits
6601 addi 3,31,ld0@got@tlsgd
6603 addi 3,31,x1@got@tlsld
6606 addis 9,3,x2@dtprel@ha
6607 addi 9,9,x2@dtprel@l
6608 lwz 9,x3@got@tprel(31)
6611 addis 9,2,x2@tprel@ha
6612 addi 9,9,x2@tprel@l'
6619 .section ".tdata","awT",@progbits
6627 addi 3,2,ld0@got@tlsgd
6633 addi 3,2,x1@got@tlsld
6639 addis 9,3,x2@dtprel@ha
6640 addi 9,9,x2@dtprel@l
6643 ld 9,x3@got@dtprel(2)
6653 .section ".tdata","awT",@progbits
6662 l %r1,foo@GOTNTPOFF(%r12)
6663 l %r1,0(%r1):tls_load:foo
6664 bas %r14,0(%r1,%r13):tls_gdcall:foo
6665 bas %r14,0(%r1,%r13):tls_ldcall:foo'
6672 .section ".tdata","awT",@progbits
6680 lg %r1,foo@GOTNTPOFF(%r12)
6681 larl %r1,foo@INDNTPOFF
6682 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
6683 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
6686 tls_as_opt
="-m64 -Aesame"
6688 sh-
*-* | sh
[34]-*-*)
6690 .section ".tdata","awT",@progbits
6703 .section ".tdata","awT",@progbits
6706 sethi %tgd_hi22(foo), %o0
6707 add %o0, %tgd_lo10(foo), %o1
6708 add %l7, %o1, %o0, %tgd_add(foo)
6709 call __tls_get_addr, %tgd_call(foo)
6710 sethi %tldm_hi22(foo), %l1
6711 add %l1, %tldm_lo10(foo), %l2
6712 add %l7, %l2, %o0, %tldm_add(foo)
6713 call __tls_get_addr, %tldm_call(foo)
6714 sethi %tldo_hix22(foo), %l3
6715 xor %l3, %tldo_lox10(foo), %l4
6716 add %o0, %l4, %l5, %tldo_add(foo)
6717 sethi %tie_hi22(foo), %o3
6718 add %o3, %tie_lo10(foo), %o3
6719 ld [%l7 + %o3], %o2, %tie_ld(foo)
6720 add %g7, %o2, %o4, %tie_add(foo)
6721 sethi %tle_hix22(foo), %l1
6722 xor %l1, %tle_lox10(foo), %o5
6723 ld [%g7 + %o5], %o1'
6729 if test -z "$tls_first_major"; then
6730 : # If we don't have a check, assume no support.
6732 echo $ac_n "checking assembler for thread-local storage support""... $ac_c" 1>&6
6733 echo "configure:6734: checking assembler for thread-local storage support" >&5
6734 if eval "test \"`echo '$''{'gcc_cv_as_tls'+set}'`\" = set"; then
6735 echo $ac_n "(cached) $ac_c" 1>&6
6738 if test $in_tree_gas = yes; then
6739 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
6740 then gcc_cv_as_tls
=yes
6742 elif test x
$gcc_cv_as != x
; then
6743 echo "$conftest_s" > conftest.s
6744 if { ac_try
='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure
:6745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6748 echo "configure: failed program was" >&5
6751 rm -f conftest.o conftest.s
6755 echo "$ac_t""$gcc_cv_as_tls" 1>&6
6756 if test $gcc_cv_as_tls = yes; then
6757 cat >> confdefs.h
<<\EOF
6758 #define HAVE_AS_TLS 1
6764 # Target-specific assembler checks.
6767 # All TARGET_ABI_OSF targets.
6768 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
6769 echo $ac_n "checking assembler for explicit relocation support""... $ac_c" 1>&6
6770 echo "configure:6771: checking assembler for explicit relocation support" >&5
6771 if eval "test \"`echo '$''{'gcc_cv_as_alpha_explicit_relocs'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 gcc_cv_as_alpha_explicit_relocs
=no
6775 if test $in_tree_gas = yes; then
6776 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
6777 then gcc_cv_as_alpha_explicit_relocs
=yes
6779 elif test x
$gcc_cv_as != x
; then
6782 extbl $3, $2, $3 !lituse_bytoff!1
6783 ldq $2, a($29) !literal!1
6784 ldq $4, b($29) !literal!2
6785 ldq_u $3, 0($2) !lituse_base!1
6786 ldq $27, f($29) !literal!5
6787 jsr $26, ($27), f !lituse_jsr!5
6788 ldah $29, 0($26) !gpdisp!3
6789 lda $0, c($29) !gprel
6790 ldah $1, d($29) !gprelhigh
6791 lda $1, d($1) !gprellow
6792 lda $29, 0($29) !gpdisp!3' > conftest.s
6793 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6795 gcc_cv_as_alpha_explicit_relocs
=yes
6797 echo "configure: failed program was" >&5
6800 rm -f conftest.o conftest.s
6804 echo "$ac_t""$gcc_cv_as_alpha_explicit_relocs" 1>&6
6805 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
6806 cat >> confdefs.h
<<\EOF
6807 #define HAVE_AS_EXPLICIT_RELOCS 1
6814 echo $ac_n "checking assembler for .register""... $ac_c" 1>&6
6815 echo "configure:6816: checking assembler for .register" >&5
6816 if eval "test \"`echo '$''{'gcc_cv_as_sparc_register_op'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 gcc_cv_as_sparc_register_op
=no
6820 if test x
$gcc_cv_as != x
; then
6821 echo '.register %g2, #scratch' > conftest.s
6822 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:6823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6824 gcc_cv_as_sparc_register_op
=yes
6826 echo "configure: failed program was" >&5
6829 rm -f conftest.o conftest.s
6833 echo "$ac_t""$gcc_cv_as_sparc_register_op" 1>&6
6834 if test $gcc_cv_as_sparc_register_op = yes; then
6835 cat >> confdefs.h
<<\EOF
6836 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6841 echo $ac_n "checking assembler for -relax option""... $ac_c" 1>&6
6842 echo "configure:6843: checking assembler for -relax option" >&5
6843 if eval "test \"`echo '$''{'gcc_cv_as_sparc_relax'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 gcc_cv_as_sparc_relax
=no
6847 if test x
$gcc_cv_as != x
; then
6848 echo '.text' > conftest.s
6849 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'; { (eval echo configure
:6850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6851 gcc_cv_as_sparc_relax
=yes
6853 echo "configure: failed program was" >&5
6856 rm -f conftest.o conftest.s
6860 echo "$ac_t""$gcc_cv_as_sparc_relax" 1>&6
6861 if test $gcc_cv_as_sparc_relax = yes; then
6862 cat >> confdefs.h
<<\EOF
6863 #define HAVE_AS_RELAX_OPTION 1
6868 echo $ac_n "checking assembler for unaligned pcrel relocs""... $ac_c" 1>&6
6869 echo "configure:6870: checking assembler for unaligned pcrel relocs" >&5
6870 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6873 gcc_cv_as_sparc_ua_pcrel
=no
6874 if test x
$gcc_cv_as != x
; then
6881 .uaword %r_disp32(foo)' > conftest.s
6882 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure
:6883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6884 if test x
$gcc_cv_ld != x \
6885 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
6886 gcc_cv_as_sparc_ua_pcrel
=yes
6890 echo "configure: failed program was" >&5
6893 rm -f conftest.o conftest.s
6897 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
6898 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
6899 cat >> confdefs.h
<<\EOF
6900 #define HAVE_AS_SPARC_UA_PCREL 1
6904 echo $ac_n "checking assembler for unaligned pcrel relocs against hidden symbols""... $ac_c" 1>&6
6905 echo "configure:6906: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
6906 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 gcc_cv_as_sparc_ua_pcrel_hidden
=no
6910 if test x
$gcc_cv_as != x
; then
6914 .uaword %r_disp32(foo)
6915 .byte 0x32, 0x33, 0x34
6919 .skip 4' > conftest.s
6920 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure
:6921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6922 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
6923 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
6924 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
6925 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
6926 if $gcc_cv_objdump -R conftest
2> /dev
/null \
6927 |
grep 'DISP32' > /dev
/null
2>&1; then
6930 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
6935 echo "configure: failed program was" >&5
6938 rm -f conftest.o conftest.s
6942 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
6943 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
6944 cat >> confdefs.h
<<\EOF
6945 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
6950 fi # unaligned pcrel relocs
6952 echo $ac_n "checking assembler for offsetable %lo()""... $ac_c" 1>&6
6953 echo "configure:6954: checking assembler for offsetable %lo()" >&5
6954 if eval "test \"`echo '$''{'gcc_cv_as_sparc_offsetable_lo10'+set}'`\" = set"; then
6955 echo $ac_n "(cached) $ac_c" 1>&6
6957 gcc_cv_as_sparc_offsetable_lo10
=no
6958 if test x
$gcc_cv_as != x
; then
6960 or %g1, %lo(ab) + 12, %g1
6961 or %g1, %lo(ab + 12), %g1' > conftest.s
6962 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'; { (eval echo configure
:6963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
6964 if test x
$gcc_cv_objdump != x \
6965 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
6966 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
6967 gcc_cv_as_offsetable_lo10
=yes
6970 echo "configure: failed program was" >&5
6973 rm -f conftest.o conftest.s
6977 echo "$ac_t""$gcc_cv_as_sparc_offsetable_lo10" 1>&6
6978 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
6979 cat >> confdefs.h
<<\EOF
6980 #define HAVE_AS_OFFSETABLE_LO10 1
6986 i
[34567]86-*-* | x86_64-
*-*)
6987 echo $ac_n "checking assembler for filds and fists mnemonics""... $ac_c" 1>&6
6988 echo "configure:6989: checking assembler for filds and fists mnemonics" >&5
6989 if eval "test \"`echo '$''{'gcc_cv_as_ix86_filds_fists'+set}'`\" = set"; then
6990 echo $ac_n "(cached) $ac_c" 1>&6
6992 gcc_cv_as_ix86_filds_fists
=no
6993 if test $in_tree_gas = yes; then
6994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
6995 then gcc_cv_as_ix86_filds_fists
=yes
6997 elif test x
$gcc_cv_as != x
; then
6998 echo 'filds mem; fists mem' > conftest.s
6999 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:7000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7001 gcc_cv_as_ix86_filds_fists
=yes
7003 echo "configure: failed program was" >&5
7006 rm -f conftest.o conftest.s
7010 echo "$ac_t""$gcc_cv_as_ix86_filds_fists" 1>&6
7011 if test $gcc_cv_as_ix86_filds_fists = yes; then
7012 cat >> confdefs.h
<<\EOF
7013 #define HAVE_GAS_FILDS_FISTS 1
7018 echo $ac_n "checking assembler for cmov syntax""... $ac_c" 1>&6
7019 echo "configure:7020: checking assembler for cmov syntax" >&5
7020 if eval "test \"`echo '$''{'gcc_cv_as_ix86_cmov_sun_syntax'+set}'`\" = set"; then
7021 echo $ac_n "(cached) $ac_c" 1>&6
7023 gcc_cv_as_ix86_cmov_sun_syntax
=no
7024 if test x
$gcc_cv_as != x
; then
7025 echo 'cmovl.l %edx, %eax' > conftest.s
7026 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:7027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7028 gcc_cv_as_ix86_cmov_sun_syntax
=yes
7030 echo "configure: failed program was" >&5
7033 rm -f conftest.o conftest.s
7037 echo "$ac_t""$gcc_cv_as_ix86_cmov_sun_syntax" 1>&6
7038 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
7039 cat >> confdefs.h
<<\EOF
7040 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
7045 # This one is used unconditionally by i386.[ch]; it is to be defined
7046 # to 1 if the feature is present, 0 otherwise.
7047 echo $ac_n "checking assembler for GOTOFF in data""... $ac_c" 1>&6
7048 echo "configure:7049: checking assembler for GOTOFF in data" >&5
7049 if eval "test \"`echo '$''{'gcc_cv_as_ix86_gotoff_in_data'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 gcc_cv_as_ix86_gotoff_in_data
=no
7053 if test $in_tree_gas = yes; then
7054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
7055 then gcc_cv_as_ix86_gotoff_in_data
=yes
7057 elif test x
$gcc_cv_as != x
; then
7062 .long .L0@GOTOFF' > conftest.s
7063 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:7064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7065 gcc_cv_as_ix86_gotoff_in_data
=yes
7067 echo "configure: failed program was" >&5
7070 rm -f conftest.o conftest.s
7074 echo "$ac_t""$gcc_cv_as_ix86_gotoff_in_data" 1>&6
7076 cat >> confdefs.h
<<EOF
7077 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7083 echo $ac_n "checking assembler for ltoffx and ldxmov relocs""... $ac_c" 1>&6
7084 echo "configure:7085: checking assembler for ltoffx and ldxmov relocs" >&5
7085 if eval "test \"`echo '$''{'gcc_cv_as_ia64_ltoffx_ldxmov_relocs'+set}'`\" = set"; then
7086 echo $ac_n "(cached) $ac_c" 1>&6
7088 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
7089 if test $in_tree_gas = yes; then
7090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
7091 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
7093 elif test x
$gcc_cv_as != x
; then
7095 addl r15 = @ltoffx(x#), gp
7097 ld8.mov r16 = [r15], x#' > conftest.s
7098 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:7099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7100 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
7102 echo "configure: failed program was" >&5
7105 rm -f conftest.o conftest.s
7109 echo "$ac_t""$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" 1>&6
7110 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
7111 cat >> confdefs.h
<<\EOF
7112 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
7121 *-*-aix) conftest_s
=' .csect .textPR';;
7122 *) conftest_s
=' .text';;
7124 conftest_s
="$conftest_s
7127 echo $ac_n "checking assembler for mfcr field support""... $ac_c" 1>&6
7128 echo "configure:7129: checking assembler for mfcr field support" >&5
7129 if eval "test \"`echo '$''{'gcc_cv_as_powerpc_mfcrf'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7132 gcc_cv_as_powerpc_mfcrf
=no
7133 if test $in_tree_gas = yes; then
7134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
7135 then gcc_cv_as_powerpc_mfcrf
=yes
7137 elif test x
$gcc_cv_as != x
; then
7138 echo "$conftest_s" > conftest.s
7139 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:7140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7141 gcc_cv_as_powerpc_mfcrf
=yes
7143 echo "configure: failed program was" >&5
7146 rm -f conftest.o conftest.s
7150 echo "$ac_t""$gcc_cv_as_powerpc_mfcrf" 1>&6
7151 if test $gcc_cv_as_powerpc_mfcrf = yes; then
7152 cat >> confdefs.h
<<\EOF
7153 #define HAVE_AS_MFCRF 1
7160 echo $ac_n "checking assembler for explicit relocation support""... $ac_c" 1>&6
7161 echo "configure:7162: checking assembler for explicit relocation support" >&5
7162 if eval "test \"`echo '$''{'gcc_cv_as_mips_explicit_relocs'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 gcc_cv_as_mips_explicit_relocs
=no
7166 if test $in_tree_gas = yes; then
7167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
7168 then gcc_cv_as_mips_explicit_relocs
=yes
7170 elif test x
$gcc_cv_as != x
; then
7171 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
7172 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:7173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7174 gcc_cv_as_mips_explicit_relocs
=yes
7176 echo "configure: failed program was" >&5
7179 rm -f conftest.o conftest.s
7183 echo "$ac_t""$gcc_cv_as_mips_explicit_relocs" 1>&6
7184 if test $gcc_cv_as_mips_explicit_relocs = yes; then
7185 if test x
$target_cpu_default = x
7186 then target_cpu_default
=MASK_EXPLICIT_RELOCS
7187 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
7193 # ??? Not all targets support dwarf2 debug_line, even within a version
7194 # of gas. Moreover, we need to emit a valid instruction to trigger any
7195 # info to the output file. So, as supported targets are added to gas 2.11,
7196 # add some instruction here to (also) show we expect this might work.
7197 # ??? Once 2.11 is released, probably need to add first known working
7198 # version to the per-target configury.
7200 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
7201 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
7202 | xstormy16
*-*-* | cris-
*-*)
7212 if test x
"$insn" != x
; then
7214 .file 1 \"conftest.s\"
7217 echo $ac_n "checking assembler for dwarf2 debug_line support""... $ac_c" 1>&6
7218 echo "configure:7219: checking assembler for dwarf2 debug_line support" >&5
7219 if eval "test \"`echo '$''{'gcc_cv_as_dwarf2_debug_line'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7222 gcc_cv_as_dwarf2_debug_line
=no
7223 if test $in_tree_gas = yes; then
7224 if test $in_tree_gas_is_elf = yes \
7225 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
7226 then gcc_cv_as_dwarf2_debug_line
=yes
7228 elif test x
$gcc_cv_as != x
; then
7229 echo "$conftest_s" > conftest.s
7230 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:7231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7232 # ??? This fails with non-gnu grep. Maybe use objdump?
7233 if grep debug_line conftest.o
> /dev
/null
2>&1; then
7234 gcc_cv_as_dwarf2_debug_line
=yes
7237 echo "configure: failed program was" >&5
7240 rm -f conftest.o conftest.s
7244 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7247 # The .debug_line file table must be in the exact order that
7248 # we specified the files, since these indices are also used
7249 # by DW_AT_decl_file. Approximate this test by testing if
7250 # the assembler bitches if the same index is assigned twice.
7251 echo $ac_n "checking assembler for buggy dwarf2 .file directive""... $ac_c" 1>&6
7252 echo "configure:7253: checking assembler for buggy dwarf2 .file directive" >&5
7253 if eval "test \"`echo '$''{'gcc_cv_as_dwarf2_file_buggy'+set}'`\" = set"; then
7254 echo $ac_n "(cached) $ac_c" 1>&6
7256 gcc_cv_as_dwarf2_file_buggy
=no
7257 if test x
$gcc_cv_as != x
; then
7258 echo ' .file 1 "foo.s"
7259 .file 1 "bar.s"' > conftest.s
7260 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure
:7261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7262 gcc_cv_as_dwarf2_file_buggy
=yes
7264 echo "configure: failed program was" >&5
7267 rm -f conftest.o conftest.s
7271 echo "$ac_t""$gcc_cv_as_dwarf2_file_buggy" 1>&6
7274 if test $gcc_cv_as_dwarf2_debug_line = yes \
7275 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
7276 cat >> confdefs.h
<<\EOF
7277 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7282 echo $ac_n "checking assembler for --gdwarf2 option""... $ac_c" 1>&6
7283 echo "configure:7284: checking assembler for --gdwarf2 option" >&5
7284 if eval "test \"`echo '$''{'gcc_cv_as_gdwarf2_flag'+set}'`\" = set"; then
7285 echo $ac_n "(cached) $ac_c" 1>&6
7287 gcc_cv_as_gdwarf2_flag
=no
7288 if test $in_tree_gas = yes; then
7289 if test $in_tree_gas_is_elf = yes \
7290 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
7291 then gcc_cv_as_gdwarf2_flag
=yes
7293 elif test x
$gcc_cv_as != x
; then
7294 echo "$insn" > conftest.s
7295 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'; { (eval echo configure
:7296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7297 gcc_cv_as_gdwarf2_flag
=yes
7299 echo "configure: failed program was" >&5
7302 rm -f conftest.o conftest.s
7306 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7307 if test $gcc_cv_as_gdwarf2_flag = yes; then
7308 cat >> confdefs.h
<<\EOF
7309 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7314 echo $ac_n "checking assembler for --gstabs option""... $ac_c" 1>&6
7315 echo "configure:7316: checking assembler for --gstabs option" >&5
7316 if eval "test \"`echo '$''{'gcc_cv_as_gstabs_flag'+set}'`\" = set"; then
7317 echo $ac_n "(cached) $ac_c" 1>&6
7319 gcc_cv_as_gstabs_flag
=no
7320 if test $in_tree_gas = yes; then
7321 if test $in_tree_gas_is_elf = yes \
7322 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
7323 then gcc_cv_as_gstabs_flag
=yes
7325 elif test x
$gcc_cv_as != x
; then
7326 echo "$insn" > conftest.s
7327 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'; { (eval echo configure
:7328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7329 # The native Solaris 9/Intel assembler doesn't understand --gstabs
7330 # and warns about it, but still exits successfully. So check for
7332 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'; { (eval echo configure
:7333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
7334 else gcc_cv_as_gstabs_flag
=yes
7337 echo "configure: failed program was" >&5
7340 rm -f conftest.o conftest.s
7344 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7345 if test $gcc_cv_as_gstabs_flag = yes; then
7346 cat >> confdefs.h
<<\EOF
7347 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7353 echo $ac_n "checking linker read-only and read-write section mixing""... $ac_c" 1>&6
7354 echo "configure:7355: checking linker read-only and read-write section mixing" >&5
7355 gcc_cv_ld_ro_rw_mix
=unknown
7356 if test $in_tree_ld = yes ; then
7357 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
7358 && test $in_tree_ld_is_elf = yes; then
7359 gcc_cv_ld_ro_rw_mix
=read-write
7361 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
7362 echo '.section myfoosect, "a"' > conftest1.s
7363 echo '.section myfoosect, "aw"' > conftest2.s
7364 echo '.byte 1' >> conftest2.s
7365 echo '.section myfoosect, "a"' > conftest3.s
7366 echo '.byte 0' >> conftest3.s
7367 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
7368 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
7369 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
7370 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
7371 conftest2.o conftest3.o
> /dev
/null
2>&1; then
7372 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
7373 | sed -e '/myfoosect/!d' -e N`
7374 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
7375 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
7376 gcc_cv_ld_ro_rw_mix
=read-only
7378 gcc_cv_ld_ro_rw_mix
=read-write
7382 rm -f conftest.
* conftest
[123].
*
7384 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
7385 cat >> confdefs.h
<<\EOF
7386 #define HAVE_LD_RO_RW_SECTION_MIXING 1
7390 echo "$ac_t""$gcc_cv_ld_ro_rw_mix" 1>&6
7392 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7393 echo "configure:7394: checking linker PT_GNU_EH_FRAME support" >&5
7394 gcc_cv_ld_eh_frame_hdr
=no
7395 if test $in_tree_ld = yes ; then
7396 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 \
7397 && test $in_tree_ld_is_elf = yes; then
7398 gcc_cv_ld_eh_frame_hdr
=yes
7400 elif test x
$gcc_cv_ld != x
; then
7401 # Check if linker supports --eh-frame-hdr option
7402 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7403 gcc_cv_ld_eh_frame_hdr
=yes
7406 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7407 cat >> confdefs.h
<<\EOF
7408 #define HAVE_LD_EH_FRAME_HDR 1
7412 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7414 echo $ac_n "checking linker position independent executable support""... $ac_c" 1>&6
7415 echo "configure:7416: checking linker position independent executable support" >&5
7417 if test $in_tree_ld = yes ; then
7418 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
7419 && test $in_tree_ld_is_elf = yes; then
7422 elif test x
$gcc_cv_ld != x
; then
7423 # Check if linker supports -pie option
7424 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
7428 if test x
"$gcc_cv_ld_pie" = xyes
; then
7429 cat >> confdefs.h
<<\EOF
7430 #define HAVE_LD_PIE 1
7434 echo "$ac_t""$gcc_cv_ld_pie" 1>&6
7436 # Miscellaneous target-specific checks.
7439 echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6
7440 echo "configure:7441: checking whether libgloss uses STARTUP directives consistently" >&5
7441 gcc_cv_mips_libgloss_startup
=no
7442 gcc_cv_libgloss_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
7443 if test "x$exec_prefix" = xNONE
; then
7444 if test "x$prefix" = xNONE
; then
7445 test_prefix
=/usr
/local
7450 test_prefix
=$exec_prefix
7452 for f
in $gcc_cv_libgloss_srcdir/mips
/idt.ld
$test_prefix/$target_noncanonical/lib
/idt.ld
7454 if grep '^STARTUP' $f > /dev
/null
2>&1; then
7455 gcc_cv_mips_libgloss_startup
=yes
7459 if test x
"$gcc_cv_mips_libgloss_startup" = xyes
; then
7460 cat >> confdefs.h
<<\EOF
7461 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
7465 echo "$ac_t""$gcc_cv_mips_libgloss_startup" 1>&6
7469 if test x
$with_sysroot = x
&& test x
$host = x
$target \
7470 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
7471 cat >> confdefs.h
<<EOF
7472 #define PREFIX_INCLUDE_DIR "$prefix/include"
7477 # Figure out what language subdirectories are present.
7478 # Look if the user specified --enable-languages="..."; if not, use
7479 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7481 # NB: embedded tabs in this IF block -- do not untabify
7482 if test x
"${enable_languages+set}" != xset
; then
7483 if test x
"${LANGUAGES+set}" = xset
; then
7484 enable_languages
="${LANGUAGES}"
7485 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7488 enable_languages
=all
7491 if test x
"${enable_languages}" = x \
7492 ||
test x
"${enable_languages}" = xyes
;
7494 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7497 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7499 # First scan to see if an enabled language requires some other language.
7500 # We assume that a given config-lang.in will list all the language
7501 # front ends it requires, even if some are required indirectly.
7502 for lang
in ${srcdir}/*/config-lang.
in
7505 # The odd quoting in the next line works around
7506 # an apparent bug in bash 1.12 on linux.
7507 ${srcdir}/[*]/config-lang.
in)
7510 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7511 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7512 for other
in $this_lang_requires
7514 case ,${enable_languages}, in
7520 enable_languages
="$enable_languages,$other"
7528 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
7531 for lang
in ${srcdir}/*/config-lang.
in
7534 # The odd quoting in the next line works around
7535 # an apparent bug in bash 1.12 on linux.
7536 ${srcdir}/[*]/config-lang.
in) ;;
7538 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7539 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7540 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7541 if test "x$lang_alias" = x
7543 echo "$lang doesn't set \$language." 1>&2
7546 case ${build_by_default},${enable_languages}, in
7547 *,$lang_alias,*) add_this_lang
=yes ;;
7548 no
,*) add_this_lang
=no
;;
7549 *,all
,*) add_this_lang
=yes ;;
7550 *) add_this_lang
=no
;;
7552 found_languages
="${found_languages} ${lang_alias}"
7553 if test x
"${add_this_lang}" = xyes
; then
7555 ${srcdir}/ada
/config-lang.
in)
7556 if test x
$have_gnat = xyes
; then
7557 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7561 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7570 for expected_language
in ${expected_languages} ..
7572 if test "${expected_language}" != ..
; then
7573 missing_language
="${expected_language}"
7574 if test "${expected_language}" = "c" \
7575 ||
test "${expected_language}" = "all"; then
7578 for found_language
in ${found_languages} ..
7580 if test "${found_language}" != ..
; then
7581 if test "${expected_language}" = "${found_language}"; then
7586 if test "x${missing_language}" != x
; then
7587 missing_languages
="${missing_languages} ${missing_language}"
7592 if test "x$missing_languages" != x
; then
7593 { echo "configure: error:
7594 The following requested languages were not found:${missing_languages}
7595 The following languages were available: c${found_languages}" 1>&2; exit 1; }
7598 # Make gthr-default.h if we have a thread file.
7600 if test $thread_file != single
; then
7601 rm -f gthr-default.h
7602 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7603 gthread_flags
=-DHAVE_GTHR_DEFAULT
7607 # Find out what GC implementation we want, or may, use.
7608 # Check whether --with-gc or --without-gc was given.
7609 if test "${with_gc+set}" = set; then
7616 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7624 echo "Using $GGC for garbage collection."
7626 # Use the system's zlib library.
7628 zlibinc
="-I\$(srcdir)/../zlib"
7629 # Check whether --with-system-zlib or --without-system-zlib was given.
7630 if test "${with_system_zlib+set}" = set; then
7631 withval
="$with_system_zlib"
7641 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7642 echo "configure:7643: checking whether to enable maintainer-specific portions of Makefiles" >&5
7643 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7644 if test "${enable_maintainer_mode+set}" = set; then
7645 enableval
="$enable_maintainer_mode"
7646 maintainer_mode
=$enableval
7652 echo "$ac_t""$maintainer_mode" 1>&6
7654 if test "$maintainer_mode" = "yes"; then
7660 # Make empty files to contain the specs and options for each language.
7661 # Then add #include lines to for a compiler that has specs and/or options.
7666 for subdir
in .
$subdirs
7668 if test -f $srcdir/$subdir/lang.opt
; then
7669 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
7671 if test -f $srcdir/$subdir/lang-specs.h
; then
7672 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7674 if test -f $srcdir/$subdir/$subdir-tree.def
; then
7675 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7679 # These (without "all_") are set in each config-lang.in.
7680 # `language' must be a single word so is spelled singularly.
7685 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
7686 # List of language makefile fragments.
7688 # List of language subdirectory makefiles. Deprecated.
7690 # Files for gengtype
7691 all_gtfiles
="$target_gtfiles"
7692 # Files for gengtype with language
7693 all_gtfiles_files_langs
=
7694 all_gtfiles_files_files
=
7696 # Add the language fragments.
7697 # Languages are added via two mechanisms. Some information must be
7698 # recorded in makefile variables, these are defined in config-lang.in.
7699 # We accumulate them and plug them into the main Makefile.
7700 # The other mechanism is a set of hooks for each of the main targets
7701 # like `clean', `install', etc.
7703 language_hooks
="Make-hooks"
7713 .
${srcdir}/$s/config-lang.
in
7714 if test "x$language" = x
7716 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7719 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
7720 if test -f ${srcdir}/$s/Makefile.
in
7721 then all_lang_makefiles
="$s/Makefile"
7723 all_languages
="$all_languages $language"
7724 if test "x$boot_language" = xyes
7726 all_boot_languages
="$all_boot_languages $language"
7728 all_compilers
="$all_compilers $compilers"
7729 all_stagestuff
="$all_stagestuff $stagestuff"
7730 all_outputs
="$all_outputs $outputs"
7731 all_gtfiles
="$all_gtfiles $gtfiles"
7734 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
7735 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
7739 # Pick up gtfiles for c
7742 .
${srcdir}/c-config-lang.
in
7743 all_gtfiles
="$all_gtfiles $gtfiles"
7746 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
7747 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
7751 for language
in $all_languages
7753 check_languages
="$check_languages check-$language"
7756 # We link each language in with a set of hooks, reached indirectly via
7761 target_list
="all.build all.cross start.encap rest.encap tags \
7762 install-normal install-common install-info install-man \
7764 mostlyclean clean distclean extraclean maintainer-clean \
7765 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
7766 for t
in $target_list
7769 for lang
in $all_languages
7773 echo "lang.$t: $x" >> Make-hooks
7778 echo "dir ." > .gdbinit
7779 echo "dir ${srcdir}" >> .gdbinit
7780 if test x
$gdb_needs_out_file_path = xyes
7782 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7784 if test "x$subdirs" != x
; then
7787 echo "dir ${srcdir}/$s" >> .gdbinit
7790 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
7792 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
7793 # absolute path for gcc_tooldir based on inserting the number of up-directory
7794 # movements required to get from $(exec_prefix) to $(prefix) into the basic
7795 # $(libsubdir)/@(unlibsubdir) based path.
7796 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
7797 # make and thus we'd get different behavior depending on where we built the
7799 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
7800 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
7802 # An explanation of the sed strings:
7803 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
7804 # -e 's|/$||' match a trailing forward slash and eliminates it
7805 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
7806 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
7808 # (*) Note this pattern overwrites the first character of the string
7809 # with a forward slash if one is not already present. This is not a
7810 # problem because the exact names of the sub-directories concerned is
7811 # unimportant, just the number of them matters.
7813 # The practical upshot of these patterns is like this:
7815 # prefix exec_prefix result
7816 # ------ ----------- ------
7818 # /foo/ /foo/bar ../
7819 # /foo /foo/bar/ ../
7820 # /foo/ /foo/bar/ ../
7821 # /foo /foo/bar/ugg ../../
7824 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
7829 # Find a directory in which to install a shared libgcc.
7831 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
7832 if test "${enable_version_specific_runtime_libs+set}" = set; then
7833 enableval
="$enable_version_specific_runtime_libs"
7838 # Check whether --with-slibdir or --without-slibdir was given.
7839 if test "${with_slibdir+set}" = set; then
7840 withval
="$with_slibdir"
7841 slibdir
="$with_slibdir"
7843 if test "${enable_version_specific_runtime_libs+set}" = set; then
7844 slibdir
='$(libsubdir)'
7845 elif test "$host" != "$target"; then
7846 slibdir
='$(build_tooldir)/lib'
7854 objdir
=`${PWDCMD-pwd}`
7857 # Substitute configuration variables
7929 if test x
${build} = x
${host} ; then
7930 if test x
${host} = x
${target} ; then
7931 echo "Links are now set up to build a native compiler for ${target}." 1>&2
7933 echo "Links are now set up to build a cross-compiler" 1>&2
7934 echo " from ${host} to ${target}." 1>&2
7937 if test x
${host} = x
${target} ; then
7938 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
7939 echo " for ${target}." 1>&2
7941 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
7942 echo " from ${host} to ${target}." 1>&2
7946 # Configure the subdirectories
7947 # AC_CONFIG_SUBDIRS($subdirs)
7949 # Create the Makefile
7950 # and configure language subdirectories
7952 cat > confcache
<<\EOF
7953 # This file is a shell script that caches the results of configure
7954 # tests run on this system so they can be shared between configure
7955 # scripts and configure runs. It is not useful on other systems.
7956 # If it contains results you don't want to keep, you may remove or edit it.
7958 # By default, configure uses ./config.cache as the cache file,
7959 # creating it if it does not exist already. You can give configure
7960 # the --cache-file=FILE option to use a different cache file; that is
7961 # what configure does when it calls configure scripts in
7962 # subdirectories, so they share the cache.
7963 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7964 # config.status only pays attention to the cache file if you give it the
7965 # --recheck option to rerun configure.
7968 # The following way of writing the cache mishandles newlines in values,
7969 # but we know of no workaround that is simple, portable, and efficient.
7970 # So, don't put newlines in cache variables' values.
7971 # Ultrix sh set writes to stderr and can't be redirected directly,
7972 # and sets the high bit in the cache file unless we assign to the vars.
7974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7976 # `set' does not quote correctly, so add quotes (double-quote substitution
7977 # turns \\\\ into \\, and sed turns \\ into \).
7979 -e "s/'/'\\\\''/g" \
7980 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7983 # `set' quotes correctly as required by POSIX, so do not add quotes.
7984 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7987 if cmp -s $cache_file confcache
; then
7990 if test -w $cache_file; then
7991 echo "updating cache $cache_file"
7992 cat confcache
> $cache_file
7994 echo "not updating unwritable cache $cache_file"
7999 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8001 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8002 # Let make expand exec_prefix.
8003 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8005 # Any assignment to VPATH causes Sun make to only execute
8006 # the first set of double-colon rules, so remove it if not needed.
8007 # If there is a colon in the path, we need to keep it.
8008 if test "x$srcdir" = x.
; then
8009 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8012 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8014 DEFS
=-DHAVE_CONFIG_H
8016 # Without the "./", some shells look in PATH for config.status.
8017 : ${CONFIG_STATUS=./config.status}
8019 echo creating
$CONFIG_STATUS
8020 rm -f $CONFIG_STATUS
8021 cat > $CONFIG_STATUS <<EOF
8023 # Generated automatically by configure.
8024 # Run this file to recreate the current configuration.
8025 # This directory was configured as follows,
8026 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8028 # $0 $ac_configure_args
8030 # Compiler output produced by configure, useful for debugging
8031 # configure, is in ./config.log if it exists.
8033 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8036 case "\$ac_option" in
8037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8038 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8039 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8040 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8041 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8043 -help | --help | --hel | --he | --h)
8044 echo "\$ac_cs_usage"; exit 0 ;;
8045 *) echo "\$ac_cs_usage"; exit 1 ;;
8049 ac_given_srcdir=$srcdir
8051 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8053 cat >> $CONFIG_STATUS <<EOF
8055 # Protect against being on the right side of a sed subst in config.status.
8056 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8057 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8061 s%@CFLAGS@%$CFLAGS%g
8062 s%@CPPFLAGS@%$CPPFLAGS%g
8063 s%@CXXFLAGS@%$CXXFLAGS%g
8064 s%@FFLAGS@%$FFLAGS%g
8066 s%@LDFLAGS@%$LDFLAGS%g
8068 s%@exec_prefix@%$exec_prefix%g
8069 s%@prefix@%$prefix%g
8070 s%@program_transform_name@%$program_transform_name%g
8071 s%@bindir@%$bindir%g
8072 s%@sbindir@%$sbindir%g
8073 s%@libexecdir@%$libexecdir%g
8074 s%@datadir@%$datadir%g
8075 s%@sysconfdir@%$sysconfdir%g
8076 s%@sharedstatedir@%$sharedstatedir%g
8077 s%@localstatedir@%$localstatedir%g
8078 s%@libdir@%$libdir%g
8079 s%@includedir@%$includedir%g
8080 s%@oldincludedir@%$oldincludedir%g
8081 s%@infodir@%$infodir%g
8082 s%@mandir@%$mandir%g
8084 s%@host_alias@%$host_alias%g
8085 s%@host_cpu@%$host_cpu%g
8086 s%@host_vendor@%$host_vendor%g
8087 s%@host_os@%$host_os%g
8088 s%@target@%$target%g
8089 s%@target_alias@%$target_alias%g
8090 s%@target_cpu@%$target_cpu%g
8091 s%@target_vendor@%$target_vendor%g
8092 s%@target_os@%$target_os%g
8094 s%@build_alias@%$build_alias%g
8095 s%@build_cpu@%$build_cpu%g
8096 s%@build_vendor@%$build_vendor%g
8097 s%@build_os@%$build_os%g
8098 s%@build_subdir@%$build_subdir%g
8099 s%@host_subdir@%$host_subdir%g
8100 s%@target_subdir@%$target_subdir%g
8102 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8103 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8105 s%@GNATBIND@%$GNATBIND%g
8107 s%@strict1_warn@%$strict1_warn%g
8108 s%@warn_cflags@%$warn_cflags%g
8109 s%@WERROR@%$WERROR%g
8110 s%@nocommon_flag@%$nocommon_flag%g
8111 s%@valgrind_path@%$valgrind_path%g
8112 s%@valgrind_path_defines@%$valgrind_path_defines%g
8113 s%@valgrind_command@%$valgrind_command%g
8114 s%@coverage_flags@%$coverage_flags%g
8115 s%@enable_multilib@%$enable_multilib%g
8116 s%@enable_shared@%$enable_shared%g
8117 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
8118 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
8119 s%@CROSS_SYSTEM_HEADER_DIR@%$CROSS_SYSTEM_HEADER_DIR%g
8120 s%@onestep@%$onestep%g
8121 s%@SET_MAKE@%$SET_MAKE%g
8125 s%@RANLIB@%$RANLIB%g
8126 s%@INSTALL@%$INSTALL%g
8127 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8128 s%@INSTALL_DATA@%$INSTALL_DATA%g
8129 s%@make_compare_target@%$make_compare_target%g
8130 s%@have_mktemp_command@%$have_mktemp_command%g
8131 s%@MAKEINFO@%$MAKEINFO%g
8132 s%@BUILD_INFO@%$BUILD_INFO%g
8133 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8136 s%@stage1_cflags@%$stage1_cflags%g
8137 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8138 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8139 s%@LDEXP_LIB@%$LDEXP_LIB%g
8140 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8141 s%@LIBICONV@%$LIBICONV%g
8142 s%@LIBICONV_DEP@%$LIBICONV_DEP%g
8143 s%@manext@%$manext%g
8144 s%@objext@%$objext%g
8145 s%@extra_modes_file@%$extra_modes_file%g
8146 s%@FORBUILD@%$FORBUILD%g
8147 s%@PACKAGE@%$PACKAGE%g
8148 s%@VERSION@%$VERSION%g
8149 s%@USE_NLS@%$USE_NLS%g
8150 s%@LIBINTL@%$LIBINTL%g
8151 s%@LIBINTL_DEP@%$LIBINTL_DEP%g
8152 s%@INCINTL@%$INCINTL%g
8153 s%@XGETTEXT@%$XGETTEXT%g
8154 s%@GMSGFMT@%$GMSGFMT%g
8156 s%@CATALOGS@%$CATALOGS%g
8159 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8160 s%@inhibit_libc@%$inhibit_libc%g
8161 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
8162 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
8163 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
8164 s%@BUILD_CFLAGS@%$BUILD_CFLAGS%g
8165 s%@STMP_FIXINC@%$STMP_FIXINC%g
8166 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8167 s%@libgcc_visibility@%$libgcc_visibility%g
8168 s%@gthread_flags@%$gthread_flags%g
8170 s%@zlibdir@%$zlibdir%g
8171 s%@zlibinc@%$zlibinc%g
8173 s%@gcc_tooldir@%$gcc_tooldir%g
8174 s%@dollar@%$dollar%g
8175 s%@slibdir@%$slibdir%g
8176 s%@objdir@%$objdir%g
8177 s%@subdirs@%$subdirs%g
8178 s%@srcdir@%$srcdir%g
8179 s%@docobjdir@%$docobjdir%g
8180 s%@parsedir@%$parsedir%g
8181 s%@all_boot_languages@%$all_boot_languages%g
8182 s%@all_compilers@%$all_compilers%g
8183 s%@all_gtfiles@%$all_gtfiles%g
8184 s%@all_gtfiles_files_langs@%$all_gtfiles_files_langs%g
8185 s%@all_gtfiles_files_files@%$all_gtfiles_files_files%g
8186 s%@all_lang_makefrags@%$all_lang_makefrags%g
8187 s%@all_lang_makefiles@%$all_lang_makefiles%g
8188 s%@all_languages@%$all_languages%g
8189 s%@all_stagestuff@%$all_stagestuff%g
8190 s%@build_exeext@%$build_exeext%g
8191 s%@build_install_headers_dir@%$build_install_headers_dir%g
8192 s%@build_xm_file_list@%$build_xm_file_list%g
8193 s%@build_xm_include_list@%$build_xm_include_list%g
8194 s%@build_xm_defines@%$build_xm_defines%g
8195 s%@check_languages@%$check_languages%g
8196 s%@cc_set_by_configure@%$cc_set_by_configure%g
8197 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8198 s%@cpp_install_dir@%$cpp_install_dir%g
8199 s%@xmake_file@%$xmake_file%g
8200 s%@tmake_file@%$tmake_file%g
8201 s%@extra_headers_list@%$extra_headers_list%g
8202 s%@extra_objs@%$extra_objs%g
8203 s%@extra_parts@%$extra_parts%g
8204 s%@extra_passes@%$extra_passes%g
8205 s%@extra_programs@%$extra_programs%g
8206 s%@float_h_file@%$float_h_file%g
8207 s%@gcc_config_arguments@%$gcc_config_arguments%g
8208 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8209 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8210 s%@gcc_version@%$gcc_version%g
8211 s%@gcc_version_full@%$gcc_version_full%g
8212 s%@gcc_version_trigger@%$gcc_version_trigger%g
8213 s%@host_exeext@%$host_exeext%g
8214 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8215 s%@host_xm_file_list@%$host_xm_file_list%g
8216 s%@host_xm_include_list@%$host_xm_include_list%g
8217 s%@host_xm_defines@%$host_xm_defines%g
8218 s%@out_host_hook_obj@%$out_host_hook_obj%g
8219 s%@install@%$install%g
8220 s%@lang_opt_files@%$lang_opt_files%g
8221 s%@lang_specs_files@%$lang_specs_files%g
8222 s%@lang_tree_files@%$lang_tree_files%g
8223 s%@local_prefix@%$local_prefix%g
8224 s%@md_file@%$md_file%g
8225 s%@objc_boehm_gc@%$objc_boehm_gc%g
8226 s%@out_file@%$out_file%g
8227 s%@out_object_file@%$out_object_file%g
8228 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8229 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8230 s%@symbolic_link@%$symbolic_link%g
8231 s%@thread_file@%$thread_file%g
8232 s%@tm_file_list@%$tm_file_list%g
8233 s%@tm_include_list@%$tm_include_list%g
8234 s%@tm_defines@%$tm_defines%g
8235 s%@tm_p_file_list@%$tm_p_file_list%g
8236 s%@tm_p_include_list@%$tm_p_include_list%g
8237 s%@xm_file_list@%$xm_file_list%g
8238 s%@xm_include_list@%$xm_include_list%g
8239 s%@xm_defines@%$xm_defines%g
8240 s%@target_noncanonical@%$target_noncanonical%g
8241 s%@c_target_objs@%$c_target_objs%g
8242 s%@cxx_target_objs@%$cxx_target_objs%g
8243 s%@target_cpu_default@%$target_cpu_default%g
8244 /@language_hooks@/r $language_hooks
8245 s%@language_hooks@%%g
8250 cat >> $CONFIG_STATUS <<\EOF
8252 # Split the substitutions into bite-sized pieces for seds with
8253 # small command number limits, like on Digital OSF/1 and HP-UX.
8254 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8255 ac_file
=1 # Number of current file.
8256 ac_beg
=1 # First line for current file.
8257 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8260 while $ac_more_lines; do
8261 if test $ac_beg -gt 1; then
8262 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8264 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8266 if test ! -s conftest.s
$ac_file; then
8268 rm -f conftest.s
$ac_file
8270 if test -z "$ac_sed_cmds"; then
8271 ac_sed_cmds
="sed -f conftest.s$ac_file"
8273 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8275 ac_file
=`expr $ac_file + 1`
8277 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8280 if test -z "$ac_sed_cmds"; then
8285 cat >> $CONFIG_STATUS <<EOF
8287 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8289 cat >> $CONFIG_STATUS <<\EOF
8290 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8291 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8293 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8294 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8295 *) ac_file_in
="${ac_file}.in" ;;
8298 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8300 # Remove last slash and all that follows it. Not all systems have dirname.
8301 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8302 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8303 # The file is in a subdirectory.
8304 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8305 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8306 # A "../" for each directory in $ac_dir_suffix.
8307 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8309 ac_dir_suffix
= ac_dots
=
8312 case "$ac_given_srcdir" in
8314 if test -z "$ac_dots"; then top_srcdir
=.
8315 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8316 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8318 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8319 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8323 echo creating
"$ac_file"
8325 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8327 *Makefile
*) ac_comsub
="1i\\
8328 # $configure_input" ;;
8332 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8334 s%@configure_input@%$configure_input%g
8335 s%@srcdir@%$srcdir%g
8336 s%@top_srcdir@%$top_srcdir%g
8337 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8341 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8342 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8344 # ac_d sets the value in "#define NAME VALUE" lines.
8345 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8346 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8349 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8350 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8351 ac_uB
='\([ ]\)%\1#\2define\3'
8354 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8355 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8356 ac_eB
='$%\1#\2define\3'
8360 if test "${CONFIG_HEADERS+set}" != set; then
8362 cat >> $CONFIG_STATUS <<EOF
8363 CONFIG_HEADERS="auto-host.h:config.in"
8365 cat >> $CONFIG_STATUS <<\EOF
8367 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8368 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8370 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8371 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8372 *) ac_file_in
="${ac_file}.in" ;;
8375 echo creating
$ac_file
8377 rm -f conftest.frag conftest.
in conftest.out
8378 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8379 cat $ac_file_inputs > conftest.
in
8383 # Transform confdefs.h into a sed script conftest.vals that substitutes
8384 # the proper values into config.h.in to produce config.h. And first:
8385 # Protect against being on the right side of a sed subst in config.status.
8386 # Protect against being in an unquoted here document in config.status.
8388 cat > conftest.hdr
<<\EOF
8391 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8395 sed -n -f conftest.hdr confdefs.h > conftest.vals
8398 # This sed command replaces #undef with comments. This is necessary, for
8399 # example, in the case of _POSIX_SOURCE, which is predefined and required
8400 # on some systems where configure will not decide to define it.
8401 cat >> conftest.vals <<\EOF
8402 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8405 # Break up conftest.vals because some shells have a limit on
8406 # the size of here documents, and old seds have small limits too.
8411 ac_lines=`grep -c . conftest.vals
`
8412 # grep -c gives empty output for an empty file on some AIX systems.
8413 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8414 # Write a limited-size here document to conftest.frag.
8415 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8416 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8418 sed -f conftest.frag conftest.in > conftest.out
8420 mv conftest.out conftest.in
8422 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8424 mv conftest.tail conftest.vals
8428 cat >> $CONFIG_STATUS <<\EOF
8429 rm -f conftest.frag conftest.h
8430 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8431 cat conftest.in >> conftest.h
8433 if cmp -s $ac_file conftest.h 2>/dev/null; then
8434 echo "$ac_file is unchanged"
8437 # Remove last slash and all that follows it. Not all systems have dirname.
8438 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8439 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8440 # The file is in a subdirectory.
8441 test ! -d "$ac_dir" && mkdir "$ac_dir"
8444 mv conftest.h $ac_file
8449 cat >> $CONFIG_STATUS <<EOF
8451 symbolic_link='$symbolic_link'
8454 cat >> $CONFIG_STATUS <<\EOF
8456 case x$CONFIG_HEADERS in
8457 xauto-host.h:config.in)
8460 # Make sure all the subdirs exist.
8463 test -d $d || mkdir $d
8465 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8466 # bootstrapping and the installation procedure can still use
8467 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8468 # FLAGS_TO_PASS has been modified to solve the problem there.
8469 # This is virtually a duplicate of what happens in configure.lang; we do
8470 # an extra check to make sure this only happens if ln -s can be used.
8471 if test "$symbolic_link" = "ln -s"; then
8472 for d in ${subdirs} fixinc ; do
8473 STARTDIR=`${PWDCMD-pwd}`
8475 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
8478 $symbolic_link ../$t $t 2>/dev/null
8486 chmod +x $CONFIG_STATUS
8487 rm -fr confdefs* $ac_clean_files
8488 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1