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 --with-gnu-ld arrange to work with GNU ld."
26 --with-ld arrange to use the specified ld (full pathname)"
28 --with-gnu-as arrange to work with GNU as"
30 --with-as arrange to use the specified as (full pathname)"
32 --enable-werror enable -Werror in bootstrap stage2 and later"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,rtlflag,gc,gcac;
38 default is misc,tree,gc,rtlflag"
40 --enable-coverage[=LEVEL]
41 enable compiler\'s code coverage collection.
42 Use to measure compiler performance and locate
43 unused parts of the compiler. With LEVEL, specify
44 optimization. Values are opt, noopt,
47 --with-stabs arrange to use stabs instead of host debug format"
49 --with-elf arrange to use ELF 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 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
69 --enable-initfini-array use .init_array/.fini_array sections"
71 --enable-sjlj-exceptions
72 arrange to use setjmp/longjmp exception handling"
74 --enable-libunwind-exceptions force use libunwind for exceptions"
76 --disable-win32-registry
77 disable lookup of installation paths in the
78 Registry on Windows hosts
79 --enable-win32-registry enable registry lookup (default)
80 --enable-win32-registry=KEY
81 use KEY instead of GCC version as the last portion
84 --with-gc={simple,page} choose the garbage collection mechanism to use
87 --with-system-zlib use installed libz"
89 --enable-maintainer-mode
90 enable make rules and dependencies not useful
91 (and sometimes confusing) to the casual installer"
93 --enable-version-specific-runtime-libs
94 specify that runtime libraries should be
95 installed in a compiler-specific directory"
97 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
99 # Initialize some variables set by options.
100 # The variables have the same names as the options, with
101 # dashes changed to underlines.
103 cache_file
=.
/config.cache
112 program_transform_name
=s
,x
,x
,
120 bindir
='${exec_prefix}/bin'
121 sbindir
='${exec_prefix}/sbin'
122 libexecdir
='${exec_prefix}/libexec'
123 datadir
='${prefix}/share'
124 sysconfdir
='${prefix}/etc'
125 sharedstatedir
='${prefix}/com'
126 localstatedir
='${prefix}/var'
127 libdir
='${exec_prefix}/lib'
128 includedir
='${prefix}/include'
129 oldincludedir
='/usr/include'
130 infodir
='${prefix}/info'
131 mandir
='${prefix}/man'
133 # Initialize some other variables.
136 SHELL
=${CONFIG_SHELL-/bin/sh}
137 # Maximum number of lines to put in a shell here document.
144 # If the previous option needs an argument, assign it.
145 if test -n "$ac_prev"; then
146 eval "$ac_prev=\$ac_option"
152 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
156 # Accept the important Cygnus configure options, so we can diagnose typos.
160 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
162 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
163 bindir
="$ac_optarg" ;;
165 -build |
--build |
--buil |
--bui |
--bu)
167 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
168 build
="$ac_optarg" ;;
170 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
171 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
172 ac_prev
=cache_file
;;
173 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
174 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
175 cache_file
="$ac_optarg" ;;
177 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
179 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
181 datadir
="$ac_optarg" ;;
183 -disable-* |
--disable-*)
184 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}=no" ;;
192 -enable-* |
--enable-*)
193 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
203 eval "enable_${ac_feature}='$ac_optarg'" ;;
205 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
206 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
207 |
--exec |
--exe |
--ex)
208 ac_prev
=exec_prefix
;;
209 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
210 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
211 |
--exec=* |
--exe=* |
--ex=*)
212 exec_prefix
="$ac_optarg" ;;
214 -gas |
--gas |
--ga |
--g)
215 # Obsolete; use --with-gas.
218 -help |
--help |
--hel |
--he)
219 # Omit some internal or obsolete options to make the list less imposing.
220 # This message is too long to be a string in the A/UX 3.1 sh.
222 Usage: configure [options] [host]
223 Options: [defaults in brackets after descriptions]
225 --cache-file=FILE cache test results in FILE
226 --help print this message
227 --no-create do not create output files
228 --quiet, --silent do not print \`checking...' messages
229 --version print the version of autoconf that created configure
230 Directory and file names:
231 --prefix=PREFIX install architecture-independent files in PREFIX
233 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
235 --bindir=DIR user executables in DIR [EPREFIX/bin]
236 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
237 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
238 --datadir=DIR read-only architecture-independent data in DIR
240 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
241 --sharedstatedir=DIR modifiable architecture-independent data in DIR
243 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
244 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
245 --includedir=DIR C header files in DIR [PREFIX/include]
246 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
247 --infodir=DIR info documentation in DIR [PREFIX/info]
248 --mandir=DIR man documentation in DIR [PREFIX/man]
249 --srcdir=DIR find the sources in DIR [configure dir or ..]
250 --program-prefix=PREFIX prepend PREFIX to installed program names
251 --program-suffix=SUFFIX append SUFFIX to installed program names
252 --program-transform-name=PROGRAM
253 run sed PROGRAM on installed program names
257 --build=BUILD configure for building on BUILD [BUILD=HOST]
258 --host=HOST configure for HOST [guessed]
259 --target=TARGET configure for TARGET [TARGET=HOST]
260 Features and packages:
261 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
262 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
263 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
264 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
265 --x-includes=DIR X include files are in DIR
266 --x-libraries=DIR X library files are in DIR
268 if test -n "$ac_help"; then
269 echo "--enable and --with options recognized:$ac_help"
273 -host |
--host |
--hos |
--ho)
275 -host=* |
--host=* |
--hos=* |
--ho=*)
278 -includedir |
--includedir |
--includedi |
--included |
--include \
279 |
--includ |
--inclu |
--incl |
--inc)
280 ac_prev
=includedir
;;
281 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
282 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
283 includedir
="$ac_optarg" ;;
285 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
287 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
288 infodir
="$ac_optarg" ;;
290 -libdir |
--libdir |
--libdi |
--libd)
292 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
293 libdir
="$ac_optarg" ;;
295 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
296 |
--libexe |
--libex |
--libe)
297 ac_prev
=libexecdir
;;
298 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
299 |
--libexe=* |
--libex=* |
--libe=*)
300 libexecdir
="$ac_optarg" ;;
302 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
303 |
--localstate |
--localstat |
--localsta |
--localst \
304 |
--locals |
--local |
--loca |
--loc |
--lo)
305 ac_prev
=localstatedir
;;
306 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
307 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
308 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
309 localstatedir
="$ac_optarg" ;;
311 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
313 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
314 mandir
="$ac_optarg" ;;
317 # Obsolete; use --without-fp.
320 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
324 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
325 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
328 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
329 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
330 |
--oldin |
--oldi |
--old |
--ol |
--o)
331 ac_prev
=oldincludedir
;;
332 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
333 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
334 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
335 oldincludedir
="$ac_optarg" ;;
337 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
339 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
340 prefix
="$ac_optarg" ;;
342 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
343 |
--program-pre |
--program-pr |
--program-p)
344 ac_prev
=program_prefix
;;
345 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
346 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
347 program_prefix
="$ac_optarg" ;;
349 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
350 |
--program-suf |
--program-su |
--program-s)
351 ac_prev
=program_suffix
;;
352 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
353 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
354 program_suffix
="$ac_optarg" ;;
356 -program-transform-name |
--program-transform-name \
357 |
--program-transform-nam |
--program-transform-na \
358 |
--program-transform-n |
--program-transform- \
359 |
--program-transform |
--program-transfor \
360 |
--program-transfo |
--program-transf \
361 |
--program-trans |
--program-tran \
362 |
--progr-tra |
--program-tr |
--program-t)
363 ac_prev
=program_transform_name
;;
364 -program-transform-name=* |
--program-transform-name=* \
365 |
--program-transform-nam=* |
--program-transform-na=* \
366 |
--program-transform-n=* |
--program-transform-=* \
367 |
--program-transform=* |
--program-transfor=* \
368 |
--program-transfo=* |
--program-transf=* \
369 |
--program-trans=* |
--program-tran=* \
370 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
371 program_transform_name
="$ac_optarg" ;;
373 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
374 |
-silent |
--silent |
--silen |
--sile |
--sil)
377 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
379 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
381 sbindir
="$ac_optarg" ;;
383 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
384 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
385 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
387 ac_prev
=sharedstatedir
;;
388 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
389 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
390 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
392 sharedstatedir
="$ac_optarg" ;;
394 -site |
--site |
--sit)
396 -site=* |
--site=* |
--sit=*)
399 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
401 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
402 srcdir
="$ac_optarg" ;;
404 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
405 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
406 ac_prev
=sysconfdir
;;
407 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
408 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
409 sysconfdir
="$ac_optarg" ;;
411 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
413 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
414 target
="$ac_optarg" ;;
416 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
419 -version |
--version |
--versio |
--versi |
--vers)
420 echo "configure generated by autoconf version 2.13"
424 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}='$ac_optarg'" ;;
436 -without-* |
--without-*)
437 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
438 # Reject names that are not valid shell variable names.
439 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
440 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
442 ac_package
=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_${ac_package}=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
450 |
--x-incl |
--x-inc |
--x-in |
--x-i)
451 ac_prev
=x_includes
;;
452 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
453 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
454 x_includes
="$ac_optarg" ;;
456 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
457 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
458 ac_prev
=x_libraries
;;
459 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
460 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
461 x_libraries
="$ac_optarg" ;;
463 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
467 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
468 echo "configure: warning: $ac_option: invalid host type" 1>&2
470 if test "x$nonopt" != xNONE
; then
471 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
479 if test -n "$ac_prev"; then
480 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
483 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
485 # File descriptor usage:
488 # 2 errors and warnings
489 # 3 some systems may open it to /dev/tty
490 # 4 used on the Kubota Titan
491 # 6 checking for... messages and results
492 # 5 compiler messages saved in config.log
493 if test "$silent" = yes; then
501 This file contains any messages produced by compilers while
502 running configure, to aid debugging if configure makes a mistake.
505 # Strip out --no-create and --no-recursion so they do not pile up.
506 # Also quote any args containing shell metacharacters.
511 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
512 |
--no-cr |
--no-c) ;;
513 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
514 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
515 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
516 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
517 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
522 # Only set these to C if already set. These must not be set unconditionally
523 # because not all systems understand e.g. LANG=C (notably SCO).
524 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
525 # Non-C LC_CTYPE values break the ctype check.
526 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
527 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
528 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
529 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
531 # confdefs.h avoids OS command line length limits that DEFS can exceed.
532 rm -rf conftest
* confdefs.h
533 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
536 # A filename unique to this package, relative to the directory that
537 # configure is in, which we can look for to find out if srcdir is correct.
538 ac_unique_file
=tree.c
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted
=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted
=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
558 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
561 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
563 # Prefer explicitly selected file to automatically selected ones.
564 if test -z "$CONFIG_SITE"; then
565 if test "x$prefix" != xNONE
; then
566 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
568 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
571 for ac_site_file
in $CONFIG_SITE; do
572 if test -r "$ac_site_file"; then
573 echo "loading site script $ac_site_file"
578 if test -r "$cache_file"; then
579 echo "loading cache $cache_file"
582 echo "creating cache $cache_file"
587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
588 ac_cpp
='$CPP $CPPFLAGS'
589 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
590 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
591 cross_compiling
=$ac_cv_prog_cc_cross
595 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
596 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
597 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
604 ac_n
= ac_c
='\c' ac_t
=
610 # Determine the host, build, and target systems
612 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
613 if test -f $ac_dir/install-sh
; then
615 ac_install_sh
="$ac_aux_dir/install-sh -c"
617 elif test -f $ac_dir/install.sh
; then
619 ac_install_sh
="$ac_aux_dir/install.sh -c"
623 if test -z "$ac_aux_dir"; then
624 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
626 ac_config_guess
=$ac_aux_dir/config.guess
627 ac_config_sub
=$ac_aux_dir/config.sub
628 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
631 # Do some error checking and defaulting for the host and target type.
633 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
636 # 1. You are not allowed to specify --host, --target, and nonopt at the
638 # 2. Host defaults to nonopt.
639 # 3. If nonopt is not specified, then host defaults to the current host,
640 # as determined by config.guess.
641 # 4. Target and build default to nonopt.
642 # 5. If nonopt is not specified, then target and build default to host.
644 # The aliases save the names the user supplied, while $host etc.
645 # will get canonicalized.
646 case $host---$target---$nonopt in
647 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
648 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
652 # Make sure we can run config.sub.
653 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
654 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
657 echo $ac_n "checking host system type""... $ac_c" 1>&6
658 echo "configure:659: checking host system type" >&5
661 case "$host_alias" in
665 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
666 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668 *) host_alias
=$nonopt ;;
672 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
673 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
674 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
675 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo "$ac_t""$host" 1>&6
678 echo $ac_n "checking target system type""... $ac_c" 1>&6
679 echo "configure:680: checking target system type" >&5
682 case "$target_alias" in
685 NONE
) target_alias
=$host_alias ;;
686 *) target_alias
=$nonopt ;;
690 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
691 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
692 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
693 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo "$ac_t""$target" 1>&6
696 echo $ac_n "checking build system type""... $ac_c" 1>&6
697 echo "configure:698: checking build system type" >&5
700 case "$build_alias" in
703 NONE
) build_alias
=$host_alias ;;
704 *) build_alias
=$nonopt ;;
708 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
709 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$build" 1>&6
714 test "$host_alias" != "$target_alias" &&
715 test "$program_prefix$program_suffix$program_transform_name" = \
717 program_prefix
=${target_alias}-
720 # Determine the target- and build-specific subdirectories
721 case ${build_alias} in
722 "") build_noncanonical
=${build} ;;
723 *) build_noncanonical
=${build_alias} ;;
726 case ${host_alias} in
727 "") host_noncanonical
=${build_noncanonical} ;;
728 *) host_noncanonical
=${host_alias} ;;
731 case ${target_alias} in
732 "") target_noncanonical
=${host_noncanonical} ;;
733 *) target_noncanonical
=${target_alias} ;;
736 # Prefix 'build-' so this never conflicts with target_subdir.
737 build_subdir
="build-${build_noncanonical}"
738 # Not really a subdirectory, but here for completeness.
741 target_subdir
=${target_noncanonical}
744 # Set program_transform_name
745 if test "$program_transform_name" = s
,x
,x
,; then
746 program_transform_name
=
748 # Double any \ or $. echo might interpret backslashes.
749 cat <<\EOF_SED
> conftestsed
750 s
,\\,\\\\,g
; s
,\$
,$$
,g
752 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
755 test "$program_prefix" != NONE
&&
756 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
757 # Use a double $ so make ignores it.
758 test "$program_suffix" != NONE
&&
759 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
761 # sed with no file args requires a program.
762 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
765 # Check for bogus environment variables.
766 # Test if LIBRARY_PATH contains the notation for the current directory
767 # since this would lead to problems installing/building glibc.
768 # LIBRARY_PATH contains the current directory if one of the following
770 # - one of the terminals (":" and ";") is the first or last sign
771 # - two terminals occur directly after each other
772 # - the path contains an element with a dot in it
773 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
774 echo "configure:775: checking LIBRARY_PATH variable" >&5
775 case ${LIBRARY_PATH} in
776 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
777 library_path_setting
="contains current directory"
780 library_path_setting
="ok"
783 echo "$ac_t""$library_path_setting" 1>&6
784 if test "$library_path_setting" != "ok"; then
785 { echo "configure: error:
786 *** LIBRARY_PATH shouldn't contain the current directory when
787 *** building gcc. Please change the environment variable
788 *** and run configure again." 1>&2; exit 1; }
791 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
792 # since this would lead to problems installing/building glibc.
793 # GCC_EXEC_PREFIX contains the current directory if one of the following
795 # - one of the terminals (":" and ";") is the first or last sign
796 # - two terminals occur directly after each other
797 # - the path contains an element with a dot in it
798 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
799 echo "configure:800: checking GCC_EXEC_PREFIX variable" >&5
800 case ${GCC_EXEC_PREFIX} in
801 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
802 gcc_exec_prefix_setting
="contains current directory"
805 gcc_exec_prefix_setting
="ok"
808 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
809 if test "$gcc_exec_prefix_setting" != "ok"; then
810 { echo "configure: error:
811 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
812 *** building gcc. Please change the environment variable
813 *** and run configure again." 1>&2; exit 1; }
820 # Specify the local prefix
822 # Check whether --with-local-prefix or --without-local-prefix was given.
823 if test "${with_local_prefix+set}" = set; then
824 withval
="$with_local_prefix"
826 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
828 *) local_prefix
=$with_local_prefix ;;
833 # Default local prefix if it is empty
834 if test x
$local_prefix = x
; then
835 local_prefix
=/usr
/local
838 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
839 # passed in by the toplevel make and thus we'd get different behavior
840 # depending on where we built the sources.
842 # Specify the g++ header file directory
843 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
844 if test "${with_gxx_include_dir+set}" = set; then
845 withval
="$with_gxx_include_dir"
847 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
849 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
854 if test x
${gcc_gxx_include_dir} = x
; then
855 if test x
${enable_version_specific_runtime_libs} = xyes
; then
856 gcc_gxx_include_dir
='${libsubdir}/include/c++'
858 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
859 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
863 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
864 if test "${with_cpp_install_dir+set}" = set; then
865 withval
="$with_cpp_install_dir"
866 if test x
$withval = xyes
; then
867 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
868 elif test x
$withval != xno
; then
869 cpp_install_dir
=$withval
874 # -------------------
875 # Find default linker
876 # -------------------
879 # Check whether --with-gnu-ld or --without-gnu-ld was given.
880 if test "${with_gnu_ld+set}" = set; then
881 withval
="$with_gnu_ld"
882 gnu_ld_flag
="$with_gnu_ld"
888 # With pre-defined ld
889 # Check whether --with-ld or --without-ld was given.
890 if test "${with_ld+set}" = set; then
892 DEFAULT_LINKER
="$with_ld"
895 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
896 if test ! -x "$DEFAULT_LINKER"; then
897 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
898 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
901 cat >> confdefs.h
<<EOF
902 #define DEFAULT_LINKER "$DEFAULT_LINKER"
907 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
908 echo "configure:909: checking whether a default linker was specified" >&5
909 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
910 if test x
"$gnu_ld_flag" = x
"no"; then
911 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
913 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
916 echo "$ac_t""no" 1>&6
919 # ----------------------
920 # Find default assembler
921 # ----------------------
924 # Check whether --with-gnu-as or --without-gnu-as was given.
925 if test "${with_gnu_as+set}" = set; then
926 withval
="$with_gnu_as"
927 gas_flag
="$with_gnu_as"
933 # Check whether --with-as or --without-as was given.
934 if test "${with_as+set}" = set; then
936 DEFAULT_ASSEMBLER
="$with_as"
939 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
940 if test ! -x "$DEFAULT_ASSEMBLER"; then
941 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
942 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
945 cat >> confdefs.h
<<EOF
946 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
951 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
952 echo "configure:953: checking whether a default assembler was specified" >&5
953 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
954 if test x
"$gas_flag" = x
"no"; then
955 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
957 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
960 echo "$ac_t""no" 1>&6
967 # Find the native compiler
968 # Extract the first word of "gcc", so it can be a program name with args.
969 set dummy gcc
; ac_word
=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 if test -n "$CC"; then
976 ac_cv_prog_CC
="$CC" # Let the user override the test.
978 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
980 for ac_dir
in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir
=.
982 if test -f $ac_dir/$ac_word; then
991 if test -n "$CC"; then
992 echo "$ac_t""$CC" 1>&6
994 echo "$ac_t""no" 1>&6
997 if test -z "$CC"; then
998 # Extract the first word of "cc", so it can be a program name with args.
999 set dummy cc
; ac_word
=$2
1000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1001 echo "configure:1002: checking for $ac_word" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 if test -n "$CC"; then
1006 ac_cv_prog_CC
="$CC" # Let the user override the test.
1008 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1011 for ac_dir
in $ac_dummy; do
1012 test -z "$ac_dir" && ac_dir
=.
1013 if test -f $ac_dir/$ac_word; then
1014 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1015 ac_prog_rejected
=yes
1023 if test $ac_prog_rejected = yes; then
1024 # We found a bogon in the path, so make sure we never use it.
1025 set dummy
$ac_cv_prog_CC
1027 if test $# -gt 0; then
1028 # We chose a different compiler from the bogus one.
1029 # However, it has the same basename, so the bogon will be chosen
1030 # first if we set CC to just the basename; use the full file name.
1032 set dummy
"$ac_dir/$ac_word" "$@"
1040 if test -n "$CC"; then
1041 echo "$ac_t""$CC" 1>&6
1043 echo "$ac_t""no" 1>&6
1046 if test -z "$CC"; then
1047 case "`uname -s`" in
1049 # Extract the first word of "cl", so it can be a program name with args.
1050 set dummy cl
; ac_word
=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 if test -n "$CC"; then
1057 ac_cv_prog_CC
="$CC" # Let the user override the test.
1059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1061 for ac_dir
in $ac_dummy; do
1062 test -z "$ac_dir" && ac_dir
=.
1063 if test -f $ac_dir/$ac_word; then
1072 if test -n "$CC"; then
1073 echo "$ac_t""$CC" 1>&6
1075 echo "$ac_t""no" 1>&6
1080 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1083 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1088 ac_cpp
='$CPP $CPPFLAGS'
1089 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1090 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1091 cross_compiling
=$ac_cv_prog_cc_cross
1093 cat > conftest.
$ac_ext << EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1100 if { (eval echo configure
:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1101 ac_cv_prog_cc_works
=yes
1102 # If we can't run a trivial program, we are probably using a cross compiler.
1103 if (.
/conftest
; exit) 2>/dev
/null
; then
1104 ac_cv_prog_cc_cross
=no
1106 ac_cv_prog_cc_cross
=yes
1109 echo "configure: failed program was:" >&5
1110 cat conftest.
$ac_ext >&5
1111 ac_cv_prog_cc_works
=no
1115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1116 ac_cpp
='$CPP $CPPFLAGS'
1117 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1118 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1119 cross_compiling
=$ac_cv_prog_cc_cross
1121 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1122 if test $ac_cv_prog_cc_works = no
; then
1123 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1125 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1126 echo "configure:1127: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1127 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1128 cross_compiling
=$ac_cv_prog_cc_cross
1130 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether we are using GNU C" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 cat > conftest.c
<<EOF
1140 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1147 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1149 if test $ac_cv_prog_gcc = yes; then
1155 ac_test_CFLAGS
="${CFLAGS+set}"
1156 ac_save_CFLAGS
="$CFLAGS"
1158 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether ${CC-cc} accepts -g" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 echo 'void f(){}' > conftest.c
1164 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1173 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1174 if test "$ac_test_CFLAGS" = set; then
1175 CFLAGS
="$ac_save_CFLAGS"
1176 elif test $ac_cv_prog_cc_g = yes; then
1177 if test "$GCC" = yes; then
1183 if test "$GCC" = yes; then
1190 if test "x$CC" != xcc
; then
1191 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether $CC and cc understand -c and -o together" >&5
1194 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether cc understands -c and -o together" >&5
1197 set dummy
$CC; ac_cc
="`echo $2 |
1198 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1199 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 echo 'foo(){}' > conftest.c
1203 # Make sure it works both with $CC and with simple cc.
1204 # We do the test twice because some compilers refuse to overwrite an
1205 # existing .o file with -o, though they will create one.
1206 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1207 if { (eval echo configure
:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1208 test -f conftest.o
&& { (eval echo configure
:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1210 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1211 if test "x$CC" != xcc
; then
1212 # Test first that cc exists at all.
1213 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1214 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1215 if { (eval echo configure
:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1216 test -f conftest.o
&& { (eval echo configure
:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1221 # cc exists but doesn't like -o.
1222 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1227 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1232 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1233 echo "$ac_t""yes" 1>&6
1235 echo "$ac_t""no" 1>&6
1236 cat >> confdefs.h
<<\EOF
1237 #define NO_MINUS_C_MINUS_O 1
1242 # autoconf is lame and doesn't give us any substitution variable for this.
1243 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1244 NO_MINUS_C_MINUS_O
=yes
1246 OUTPUT_OPTION
='-o $@'
1251 # -------------------------
1252 # Check C compiler features
1253 # -------------------------
1255 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1256 echo "configure:1257: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 save_CFLAGS
="$CFLAGS"
1261 CFLAGS
="-Wno-long-long"
1262 cat > conftest.
$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1270 if { (eval echo configure
:1271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1272 ac_cv_prog_cc_no_long_long
=yes
1274 echo "configure: failed program was:" >&5
1275 cat conftest.
$ac_ext >&5
1277 ac_cv_prog_cc_no_long_long
=no
1280 CFLAGS
="$save_CFLAGS"
1283 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1285 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1286 echo "configure:1287: checking how to run the C preprocessor" >&5
1287 # On Suns, sometimes $CPP names a directory.
1288 if test -n "$CPP" && test -d "$CPP"; then
1291 if test -z "$CPP"; then
1292 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 # This must be in double quotes, not single quotes, because CPP may get
1296 # substituted into the Makefile and "${CC-cc}" will confuse make.
1298 # On the NeXT, cc -E runs the code through the compiler's parser,
1299 # not just through cpp.
1300 cat > conftest.
$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1306 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1307 { (eval echo configure
:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1308 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1309 if test -z "$ac_err"; then
1313 echo "configure: failed program was:" >&5
1314 cat conftest.
$ac_ext >&5
1316 CPP
="${CC-cc} -E -traditional-cpp"
1317 cat > conftest.
$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1323 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1324 { (eval echo configure
:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1325 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1326 if test -z "$ac_err"; then
1330 echo "configure: failed program was:" >&5
1331 cat conftest.
$ac_ext >&5
1333 CPP
="${CC-cc} -nologo -E"
1334 cat > conftest.
$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1340 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1341 { (eval echo configure
:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1342 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1343 if test -z "$ac_err"; then
1347 echo "configure: failed program was:" >&5
1348 cat conftest.
$ac_ext >&5
1357 ac_cv_prog_CPP
="$CPP"
1359 CPP
="$ac_cv_prog_CPP"
1361 ac_cv_prog_CPP
="$CPP"
1363 echo "$ac_t""$CPP" 1>&6
1365 echo $ac_n "checking for inline""... $ac_c" 1>&6
1366 echo "configure:1367: checking for inline" >&5
1367 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1371 for ac_kw
in inline __inline__ __inline
; do
1372 cat > conftest.
$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1380 if { (eval echo configure
:1381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1382 ac_cv_c_inline
=$ac_kw; break
1384 echo "configure: failed program was:" >&5
1385 cat conftest.
$ac_ext >&5
1392 echo "$ac_t""$ac_cv_c_inline" 1>&6
1393 case "$ac_cv_c_inline" in
1395 no
) cat >> confdefs.h
<<\EOF
1399 *) cat >> confdefs.h
<<EOF
1400 #define inline $ac_cv_c_inline
1406 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1407 echo "configure:1408: checking for long long int" >&5
1408 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 cat > conftest.
$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1419 if { (eval echo configure
:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1421 ac_cv_c_long_long
=yes
1423 echo "configure: failed program was:" >&5
1424 cat conftest.
$ac_ext >&5
1426 ac_cv_c_long_long
=no
1431 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1432 if test $ac_cv_c_long_long = yes; then
1433 cat >> confdefs.h
<<\EOF
1434 #define HAVE_LONG_LONG 1
1438 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1439 echo "configure:1440: checking for __int64" >&5
1440 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 cat > conftest.
$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1451 if { (eval echo configure
:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.
$ac_ext >&5
1463 echo "$ac_t""$ac_cv_c___int64" 1>&6
1464 if test $ac_cv_c___int64 = yes; then
1465 cat >> confdefs.h
<<\EOF
1466 #define HAVE___INT64 1
1471 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1472 echo "configure:1473: checking for built-in _Bool" >&5
1473 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 cat > conftest.
$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1484 if { (eval echo configure
:1485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 echo "configure: failed program was:" >&5
1489 cat conftest.
$ac_ext >&5
1497 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1498 if test $gcc_cv_c__bool = yes; then
1499 cat >> confdefs.h
<<\EOF
1500 #define HAVE__BOOL 1
1506 # sizeof(char) is 1 by definition.
1507 echo $ac_n "checking size of void *""... $ac_c" 1>&6
1508 echo "configure:1509: checking size of void *" >&5
1509 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1513 cat > conftest.
$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 #include "confdefs.h"
1517 #include <sys/types.h>
1521 switch (0) case 0: case (sizeof (void *) == $ac_size):;
1524 if { (eval echo configure
:1525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1526 ac_cv_sizeof_void_p
=$ac_size
1528 echo "configure: failed program was:" >&5
1529 cat conftest.
$ac_ext >&5
1532 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
1537 if test x
$ac_cv_sizeof_void_p = x
; then
1538 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
1540 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
1541 cat >> confdefs.h
<<EOF
1542 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1546 echo $ac_n "checking size of short""... $ac_c" 1>&6
1547 echo "configure:1548: checking size of short" >&5
1548 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1552 cat > conftest.
$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 #include "confdefs.h"
1556 #include <sys/types.h>
1560 switch (0) case 0: case (sizeof (short) == $ac_size):;
1563 if { (eval echo configure
:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 ac_cv_sizeof_short
=$ac_size
1567 echo "configure: failed program was:" >&5
1568 cat conftest.
$ac_ext >&5
1571 if test x
$ac_cv_sizeof_short != x
; then break; fi
1576 if test x
$ac_cv_sizeof_short = x
; then
1577 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1579 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1580 cat >> confdefs.h
<<EOF
1581 #define SIZEOF_SHORT $ac_cv_sizeof_short
1585 echo $ac_n "checking size of int""... $ac_c" 1>&6
1586 echo "configure:1587: checking size of int" >&5
1587 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1591 cat > conftest.
$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1594 #include "confdefs.h"
1595 #include <sys/types.h>
1599 switch (0) case 0: case (sizeof (int) == $ac_size):;
1602 if { (eval echo configure
:1603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1604 ac_cv_sizeof_int
=$ac_size
1606 echo "configure: failed program was:" >&5
1607 cat conftest.
$ac_ext >&5
1610 if test x
$ac_cv_sizeof_int != x
; then break; fi
1615 if test x
$ac_cv_sizeof_int = x
; then
1616 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1618 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1619 cat >> confdefs.h
<<EOF
1620 #define SIZEOF_INT $ac_cv_sizeof_int
1624 echo $ac_n "checking size of long""... $ac_c" 1>&6
1625 echo "configure:1626: checking size of long" >&5
1626 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1630 cat > conftest.
$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 #include "confdefs.h"
1634 #include <sys/types.h>
1638 switch (0) case 0: case (sizeof (long) == $ac_size):;
1641 if { (eval echo configure
:1642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1643 ac_cv_sizeof_long
=$ac_size
1645 echo "configure: failed program was:" >&5
1646 cat conftest.
$ac_ext >&5
1649 if test x
$ac_cv_sizeof_long != x
; then break; fi
1654 if test x
$ac_cv_sizeof_long = x
; then
1655 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1657 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1658 cat >> confdefs.h
<<EOF
1659 #define SIZEOF_LONG $ac_cv_sizeof_long
1663 if test $ac_cv_c_long_long = yes; then
1664 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1665 echo "configure:1666: checking size of long long" >&5
1666 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 #include "confdefs.h"
1674 #include <sys/types.h>
1678 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1681 if { (eval echo configure
:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1683 ac_cv_sizeof_long_long
=$ac_size
1685 echo "configure: failed program was:" >&5
1686 cat conftest.
$ac_ext >&5
1689 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
1694 if test x
$ac_cv_sizeof_long_long = x
; then
1695 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1697 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1698 cat >> confdefs.h
<<EOF
1699 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1704 if test $ac_cv_c___int64 = yes; then
1705 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1706 echo "configure:1707: checking size of __int64" >&5
1707 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1711 cat > conftest.
$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include "confdefs.h"
1715 #include <sys/types.h>
1719 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
1722 if { (eval echo configure
:1723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1724 ac_cv_sizeof___int64
=$ac_size
1726 echo "configure: failed program was:" >&5
1727 cat conftest.
$ac_ext >&5
1730 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
1735 if test x
$ac_cv_sizeof___int64 = x
; then
1736 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1738 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1739 cat >> confdefs.h
<<EOF
1740 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1750 # See if GNAT has been installed
1751 if test $host != $build; then
1752 ac_tool_prefix
=${host_alias}-
1758 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1759 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1761 echo "configure:1762: checking for $ac_word" >&5
1762 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 if test -n "$GNATBIND"; then
1766 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1768 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1770 for ac_dir
in $ac_dummy; do
1771 test -z "$ac_dir" && ac_dir
=.
1772 if test -f $ac_dir/$ac_word; then
1773 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1780 GNATBIND
="$ac_cv_prog_GNATBIND"
1781 if test -n "$GNATBIND"; then
1782 echo "$ac_t""$GNATBIND" 1>&6
1784 echo "$ac_t""no" 1>&6
1788 if test -z "$ac_cv_prog_GNATBIND"; then
1789 if test -n "$ac_tool_prefix"; then
1790 # Extract the first word of "gnatbind", so it can be a program name with args.
1791 set dummy gnatbind
; ac_word
=$2
1792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1793 echo "configure:1794: checking for $ac_word" >&5
1794 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 if test -n "$GNATBIND"; then
1798 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1800 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1802 for ac_dir
in $ac_dummy; do
1803 test -z "$ac_dir" && ac_dir
=.
1804 if test -f $ac_dir/$ac_word; then
1805 ac_cv_prog_GNATBIND
="gnatbind"
1810 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1813 GNATBIND
="$ac_cv_prog_GNATBIND"
1814 if test -n "$GNATBIND"; then
1815 echo "$ac_t""$GNATBIND" 1>&6
1817 echo "$ac_t""no" 1>&6
1825 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1826 echo "configure:1827: checking for compiler driver that understands Ada" >&5
1827 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 cat >conftest.adb
<<EOF
1831 procedure conftest is begin null; end conftest;
1834 # Have to do ac_tool_prefix and user overrides by hand.
1835 for cand
in ${ADAC+"$ADAC"} ${CC+"$CC"} \
1836 ${ac_tool_prefix}gcc gcc \
1837 ${ac_tool_prefix}cc cc \
1838 ${ac_tool_prefix}gnatgcc gnatgcc \
1839 ${ac_tool_prefix}gnatcc gnatcc \
1840 ${ac_tool_prefix}adagcc adagcc \
1841 ${ac_tool_prefix}adacc adacc
; do
1842 # There is a bug in all released versions of GCC which causes the
1843 # driver to exit successfully when the appropriate language module
1844 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1845 # Therefore we must check for the error message as well as an
1846 # unsuccessful exit.
1847 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1848 if test x
"$errors" = x
; then
1849 gcc_cv_prog_adac
=$cand
1856 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1857 ADAC
=$gcc_cv_prog_adac
1860 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1867 if test x
$have_gnat != xno
; then
1868 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1869 echo "configure:1870: checking whether ${ADAC} accepts -Wno-long-long" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 cat >conftest.adb
<<EOF
1874 procedure conftest is begin null; end conftest;
1876 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1877 ac_cv_prog_adac_no_long_long
=yes
1879 ac_cv_prog_adac_no_long_long
=no
1884 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1886 ac_cv_prog_adac_no_long_long
=yes
1889 # ---------------------
1890 # Warnings and checking
1891 # ---------------------
1894 if test $ac_cv_prog_cc_no_long_long = yes && \
1895 test $ac_cv_prog_adac_no_long_long = yes ; then
1896 strict1_warn
="-pedantic -Wno-long-long"
1900 # If the native compiler is GCC, we can enable warnings even in stage1.
1901 # That's useful for people building cross-compilers, or just running a
1904 if test "x$GCC" = "xyes"; then
1905 warn_cflags
='$(GCC_WARN_CFLAGS)'
1909 # Enable -Werror in bootstrap stage2 and later.
1910 # Change the default to "no" on release branches.
1911 # Check whether --enable-werror or --disable-werror was given.
1912 if test "${enable_werror+set}" = set; then
1913 enableval
="$enable_werror"
1919 if test x
$enable_werror = xyes
; then
1924 # Enable expensive internal checks
1925 # Check whether --enable-checking or --disable-checking was given.
1926 if test "${enable_checking+set}" = set; then
1927 enableval
="$enable_checking"
1931 ac_rtlflag_checking
=
1933 ac_gc_always_collect
=
1934 case "${enableval}" in
1935 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
1936 ac_rtlflag_checking
=1 ;;
1938 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
1939 set fnord
$enableval; shift
1944 misc
) ac_checking
=1 ;;
1945 tree
) ac_tree_checking
=1 ;;
1946 rtlflag
) ac_rtlflag_checking
=1 ;;
1947 rtl
) ac_rtl_checking
=1 ;;
1948 gc
) ac_gc_checking
=1 ;;
1949 gcac
) ac_gc_always_collect
=1 ;;
1950 valgrind
) ac_checking_valgrind
=1 ;;
1951 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
1958 # Enable some checks by default for development versions of GCC
1959 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
1963 if test x
$ac_checking != x
; then
1964 cat >> confdefs.h
<<\EOF
1965 #define ENABLE_CHECKING 1
1968 nocommon_flag
=-fno-common
1971 if test x
$ac_tree_checking != x
; then
1972 cat >> confdefs.h
<<\EOF
1973 #define ENABLE_TREE_CHECKING 1
1977 if test x
$ac_rtl_checking != x
; then
1978 cat >> confdefs.h
<<\EOF
1979 #define ENABLE_RTL_CHECKING 1
1983 if test x
$ac_rtlflag_checking != x
; then
1984 cat >> confdefs.h
<<\EOF
1985 #define ENABLE_RTL_FLAG_CHECKING 1
1989 if test x
$ac_gc_checking != x
; then
1990 cat >> confdefs.h
<<\EOF
1991 #define ENABLE_GC_CHECKING 1
1995 if test x
$ac_gc_always_collect != x
; then
1996 cat >> confdefs.h
<<\EOF
1997 #define ENABLE_GC_ALWAYS_COLLECT 1
2001 valgrind_path_defines
=
2003 if test x
$ac_checking_valgrind != x
; then
2004 # It is certainly possible that there's valgrind but no valgrind.h.
2005 # GCC relies on making annotations so we must have both.
2006 echo $ac_n "checking for VALGRIND_DISCARD in <memcheck.h>""... $ac_c" 1>&6
2007 echo "configure:2008: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
2008 cat > conftest.
$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011 #include <memcheck.h>
2012 #ifndef VALGRIND_DISCARD
2013 #error VALGRIND_DISCARD not defined
2016 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2017 { (eval echo configure
:2018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2018 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2019 if test -z "$ac_err"; then
2021 gcc_cv_header_memcheck_h
=yes
2024 echo "configure: failed program was:" >&5
2025 cat conftest.
$ac_ext >&5
2027 gcc_cv_header_memcheck_h
=no
2030 echo "$ac_t""$gcc_cv_header_memcheck_h" 1>&6
2031 ac_safe
=`echo "valgrind.h" | sed 'y%./+-%__p_%'`
2032 echo $ac_n "checking for valgrind.h""... $ac_c" 1>&6
2033 echo "configure:2034: checking for valgrind.h" >&5
2034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.
$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 #include <valgrind.h>
2042 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2043 { (eval echo configure
:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2044 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2045 if test -z "$ac_err"; then
2047 eval "ac_cv_header_$ac_safe=yes"
2050 echo "configure: failed program was:" >&5
2051 cat conftest.
$ac_ext >&5
2053 eval "ac_cv_header_$ac_safe=no"
2057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2061 echo "$ac_t""no" 1>&6
2066 # Prepare PATH_SEPARATOR.
2067 # The user is always right.
2068 if test "${PATH_SEPARATOR+set}" != set; then
2069 echo "#! /bin/sh" >conf$$.sh
2070 echo "exit 0" >>conf$$.sh
2072 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
2080 # Find out how to test for executable files. Don't use a zero-byte file,
2081 # as systems may use methods other than mode bits to determine executability.
2082 cat >conf$$.
file <<_ASEOF
2086 chmod +x conf$$.
file
2087 if test -x conf$$.
file >/dev
/null
2>&1; then
2088 ac_executable_p
="test -x"
2090 ac_executable_p
="test -f"
2094 # Extract the first word of "valgrind", so it can be a program name with args.
2095 set dummy valgrind
; ac_word
=$2
2096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_word" >&5
2098 if eval "test \"`echo '$''{'ac_cv_path_valgrind_path'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 case "$valgrind_path" in
2103 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
2106 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
2107 for ac_dir
in $PATH; do
2109 test -z "$ac_dir" && ac_dir
=.
2110 for ac_exec_ext
in '' $ac_executable_extensions; do
2111 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2112 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
2113 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
2123 valgrind_path
="$ac_cv_path_valgrind_path"
2124 if test -n "$valgrind_path"; then
2125 echo "$ac_t""$valgrind_path" 1>&6
2127 echo "$ac_t""no" 1>&6
2130 if test "x$valgrind_path" = "x" ||
(test $have_valgrind_h = no
&& test $gcc_cv_header_memcheck_h = no
); then
2131 { echo "configure: error: *** Can't find both valgrind and valgrind.h/memcheck.h" 1>&2; exit 1; }
2133 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
2134 valgrind_command
="$valgrind_path -q"
2135 cat >> confdefs.h
<<\EOF
2136 #define ENABLE_VALGRIND_CHECKING 1
2139 if test $gcc_cv_header_memcheck_h = yes; then
2140 cat >> confdefs.h
<<\EOF
2141 #define HAVE_MEMCHECK_H 1
2149 # Enable code coverage collection
2150 # Check whether --enable-coverage or --disable-coverage was given.
2151 if test "${enable_coverage+set}" = set; then
2152 enableval
="$enable_coverage"
2153 case "${enableval}" in
2155 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
2158 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
2161 { echo "configure: error: unknown coverage setting $enableval" 1>&2; exit 1; }
2170 # -------------------------------
2171 # Miscenalleous configure options
2172 # -------------------------------
2175 # Check whether --with-stabs or --without-stabs was given.
2176 if test "${with_stabs+set}" = set; then
2177 withval
="$with_stabs"
2185 # Check whether --with-elf or --without-elf was given.
2186 if test "${with_elf+set}" = set; then
2194 # Determine whether or not multilibs are enabled.
2195 # Check whether --enable-multilib or --disable-multilib was given.
2196 if test "${enable_multilib+set}" = set; then
2197 enableval
="$enable_multilib"
2205 # Enable __cxa_atexit for C++.
2206 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
2207 if test "${enable___cxa_atexit+set}" = set; then
2208 enableval
="$enable___cxa_atexit"
2214 # Pass with no value to take the default
2215 # Pass with a value to specify a thread package
2216 # Check whether --enable-threads or --disable-threads was given.
2217 if test "${enable_threads+set}" = set; then
2218 enableval
="$enable_threads"
2225 enable_threads_flag
=$enable_threads
2226 # Check if a valid thread package
2227 case x
${enable_threads_flag} in
2230 target_thread_file
='single'
2234 target_thread_file
=''
2236 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
2237 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix | xgnat
)
2238 target_thread_file
=$enable_threads_flag
2241 echo "$enable_threads is an unknown thread package" 1>&2
2246 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2247 if test "${enable_objc_gc+set}" = set; then
2248 enableval
="$enable_objc_gc"
2249 if test x
$enable_objc_gc = xno
; then
2259 # Check whether --with-dwarf2 or --without-dwarf2 was given.
2260 if test "${with_dwarf2+set}" = set; then
2261 withval
="$with_dwarf2"
2262 dwarf2
="$with_dwarf2"
2268 # Check whether --enable-shared or --disable-shared was given.
2269 if test "${enable_shared+set}" = set; then
2270 enableval
="$enable_shared"
2272 case $enable_shared in
2276 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2277 for pkg
in $enableval; do
2278 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
2292 # Check whether --with-sysroot or --without-sysroot was given.
2293 if test "${with_sysroot+set}" = set; then
2294 withval
="$with_sysroot"
2296 case ${with_sysroot} in
2297 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
2298 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
2301 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
2302 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
2304 if test "x$exec_prefix" = xNONE
; then
2305 if test "x$prefix" = xNONE
; then
2306 test_prefix
=/usr
/local
2311 test_prefix
=$exec_prefix
2313 case ${TARGET_SYSTEM_ROOT} in
2314 "${test_prefix}"|
"${test_prefix}/"*|\
2315 '${exec_prefix}'|
'${exec_prefix}/'*)
2316 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
2317 TARGET_SYSTEM_ROOT_DEFINE
="$t"
2324 TARGET_SYSTEM_ROOT_DEFINE
=
2325 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
2333 # -------------------------
2334 # Checks for other programs
2335 # -------------------------
2337 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2338 echo "configure:2339: checking whether ${MAKE-make} sets \${MAKE}" >&5
2339 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2340 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftestmake
<<\EOF
2345 @
echo 'ac_maketemp="${MAKE}"'
2347 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2348 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2349 if test -n "$ac_maketemp"; then
2350 eval ac_cv_prog_make_
${ac_make}_set
=yes
2352 eval ac_cv_prog_make_
${ac_make}_set
=no
2356 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2357 echo "$ac_t""yes" 1>&6
2360 echo "$ac_t""no" 1>&6
2361 SET_MAKE
="MAKE=${MAKE-make}"
2365 # Find some useful tools
2366 for ac_prog
in mawk gawk nawk
awk
2368 # Extract the first word of "$ac_prog", so it can be a program name with args.
2369 set dummy
$ac_prog; ac_word
=$2
2370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2371 echo "configure:2372: checking for $ac_word" >&5
2372 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 if test -n "$AWK"; then
2376 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2378 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2380 for ac_dir
in $ac_dummy; do
2381 test -z "$ac_dir" && ac_dir
=.
2382 if test -f $ac_dir/$ac_word; then
2383 ac_cv_prog_AWK
="$ac_prog"
2390 AWK
="$ac_cv_prog_AWK"
2391 if test -n "$AWK"; then
2392 echo "$ac_t""$AWK" 1>&6
2394 echo "$ac_t""no" 1>&6
2397 test -n "$AWK" && break
2400 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2401 echo "configure:2402: checking whether ln works" >&5
2402 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 rm -f conftestdata_t
2406 echo >conftestdata_f
2407 if ln conftestdata_f conftestdata_t
2>/dev
/null
2411 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2413 gcc_cv_prog_LN
="ln -s"
2418 rm -f conftestdata_f conftestdata_t
2421 LN
="$gcc_cv_prog_LN"
2422 if test "$gcc_cv_prog_LN" = "ln"; then
2423 echo "$ac_t""yes" 1>&6
2425 if test "$gcc_cv_prog_LN" = "ln -s"; then
2426 echo "$ac_t""no, using ln -s" 1>&6
2428 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2432 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2433 echo "configure:2434: checking whether ln -s works" >&5
2434 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 rm -f conftestdata_t
2438 echo >conftestdata_f
2439 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2441 gcc_cv_prog_LN_S
="ln -s"
2443 if ln conftestdata_f conftestdata_t
2>/dev
/null
2450 rm -f conftestdata_f conftestdata_t
2453 LN_S
="$gcc_cv_prog_LN_S"
2454 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2455 echo "$ac_t""yes" 1>&6
2457 if test "$gcc_cv_prog_LN_S" = "ln"; then
2458 echo "$ac_t""no, using ln" 1>&6
2460 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2464 # Extract the first word of "ranlib", so it can be a program name with args.
2465 set dummy ranlib
; ac_word
=$2
2466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2467 echo "configure:2468: checking for $ac_word" >&5
2468 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 if test -n "$RANLIB"; then
2472 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2474 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2476 for ac_dir
in $ac_dummy; do
2477 test -z "$ac_dir" && ac_dir
=.
2478 if test -f $ac_dir/$ac_word; then
2479 ac_cv_prog_RANLIB
="ranlib"
2484 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2487 RANLIB
="$ac_cv_prog_RANLIB"
2488 if test -n "$RANLIB"; then
2489 echo "$ac_t""$RANLIB" 1>&6
2491 echo "$ac_t""no" 1>&6
2494 # Find a good install program. We prefer a C program (faster),
2495 # so one script is as good as another. But avoid the broken or
2496 # incompatible versions:
2497 # SysV /etc/install, /usr/sbin/install
2498 # SunOS /usr/etc/install
2499 # IRIX /sbin/install
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2505 echo "configure:2506: checking for a BSD compatible install" >&5
2506 if test -z "$INSTALL"; then
2507 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2511 for ac_dir
in $PATH; do
2512 # Account for people who put trailing slashes in PATH elements.
2514 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2516 # OSF1 and SCO ODT 3.0 have their own names for install.
2517 for ac_prog
in ginstall scoinst
install; do
2518 if test -f $ac_dir/$ac_prog; then
2519 if test $ac_prog = install &&
2520 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2521 # AIX install. It has an incompatible calling convention.
2522 # OSF/1 installbsd also uses dspmsg, but is usable.
2525 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2536 if test "${ac_cv_path_install+set}" = set; then
2537 INSTALL
="$ac_cv_path_install"
2539 # As a last resort, use the slow shell script. We don't cache a
2540 # path for INSTALL within a source directory, because that will
2541 # break other packages using the cache if that directory is
2542 # removed, or if the path is relative.
2543 INSTALL
="$ac_install_sh"
2546 echo "$ac_t""$INSTALL" 1>&6
2548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2549 # It thinks the first close brace ends the variable substitution.
2550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2552 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2555 # See if we have the mktemp command.
2556 # Extract the first word of "mktemp", so it can be a program name with args.
2557 set dummy mktemp
; ac_word
=$2
2558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2559 echo "configure:2560: checking for $ac_word" >&5
2560 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 if test -n "$have_mktemp_command"; then
2564 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
2566 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2568 for ac_dir
in $ac_dummy; do
2569 test -z "$ac_dir" && ac_dir
=.
2570 if test -f $ac_dir/$ac_word; then
2571 ac_cv_prog_have_mktemp_command
="yes"
2576 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
2579 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
2580 if test -n "$have_mktemp_command"; then
2581 echo "$ac_t""$have_mktemp_command" 1>&6
2583 echo "$ac_t""no" 1>&6
2587 # Do we have a single-tree copy of texinfo?
2588 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2589 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2590 gcc_cv_prog_makeinfo_modern
=yes
2591 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2593 # See if makeinfo has been installed and is modern enough
2594 # that we can use it.
2595 # Extract the first word of "makeinfo", so it can be a program name with args.
2596 set dummy makeinfo
; ac_word
=$2
2597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2598 echo "configure:2599: checking for $ac_word" >&5
2599 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 if test -n "$MAKEINFO"; then
2603 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2605 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2607 for ac_dir
in $ac_dummy; do
2608 test -z "$ac_dir" && ac_dir
=.
2609 if test -f $ac_dir/$ac_word; then
2610 ac_cv_prog_MAKEINFO
="makeinfo"
2617 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2618 if test -n "$MAKEINFO"; then
2619 echo "$ac_t""$MAKEINFO" 1>&6
2621 echo "$ac_t""no" 1>&6
2624 if test -n "$MAKEINFO"; then
2625 # Found it, now check the version.
2626 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2627 echo "configure:2628: checking for modern makeinfo" >&5
2628 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2632 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2633 echo "configure:2634: version of makeinfo is $ac_prog_version" >&5
2634 case $ac_prog_version in
2635 '') gcc_cv_prog_makeinfo_modern
=no
;;
2637 gcc_cv_prog_makeinfo_modern
=yes;;
2638 *) gcc_cv_prog_makeinfo_modern
=no
;;
2643 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2645 gcc_cv_prog_makeinfo_modern
=no
2650 if test $gcc_cv_prog_makeinfo_modern = no
; then
2651 echo "configure: warning:
2652 *** Makeinfo is missing or too old.
2653 *** Info documentation will not be built." 1>&2
2659 # Is pod2man recent enough to regenerate manpages?
2660 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
2661 echo "configure:2662: checking for recent Pod::Man" >&5
2662 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
2663 echo "$ac_t""yes" 1>&6
2664 GENERATED_MANPAGES
=generated-manpages
2666 echo "$ac_t""no" 1>&6
2670 # 'make compare' can be significantly faster, if cmp itself can
2671 # skip bytes instead of using tail. The test being performed is
2672 # "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
2673 # but we need to sink errors and handle broken shells.
2674 echo $ac_n "checking for cmp's capabilities""... $ac_c" 1>&6
2675 echo "configure:2676: checking for cmp's capabilities" >&5
2678 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2679 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2680 make_compare_target
=slowcompare
2682 make_compare_target
=gnucompare
2685 make_compare_target
=slowcompare
2689 echo "$ac_t""$make_compare_target" 1>&6
2692 if test -f $srcdir/..
/flex
/skel.c
; then
2693 FLEX
='$(objdir)/../flex/flex'
2695 # Extract the first word of "flex", so it can be a program name with args.
2696 set dummy flex
; ac_word
=$2
2697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_word" >&5
2699 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 if test -n "$FLEX"; then
2703 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
2705 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2707 for ac_dir
in $ac_dummy; do
2708 test -z "$ac_dir" && ac_dir
=.
2709 if test -f $ac_dir/$ac_word; then
2710 ac_cv_prog_FLEX
="flex"
2715 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
2718 FLEX
="$ac_cv_prog_FLEX"
2719 if test -n "$FLEX"; then
2720 echo "$ac_t""$FLEX" 1>&6
2722 echo "$ac_t""no" 1>&6
2728 # The -L switch is so bison can find its skeleton file.
2729 if test -f $srcdir/..
/bison
/bison.simple
; then
2730 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2732 # Extract the first word of "bison", so it can be a program name with args.
2733 set dummy bison
; ac_word
=$2
2734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2735 echo "configure:2736: checking for $ac_word" >&5
2736 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 if test -n "$BISON"; then
2740 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
2742 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2744 for ac_dir
in $ac_dummy; do
2745 test -z "$ac_dir" && ac_dir
=.
2746 if test -f $ac_dir/$ac_word; then
2747 ac_cv_prog_BISON
="bison"
2752 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
2755 BISON
="$ac_cv_prog_BISON"
2756 if test -n "$BISON"; then
2757 echo "$ac_t""$BISON" 1>&6
2759 echo "$ac_t""no" 1>&6
2764 # --------------------
2765 # Checks for C headers
2766 # --------------------
2768 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2769 echo "configure:2770: checking for GNU C library" >&5
2770 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 cat > conftest.
$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <features.h>
2779 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2780 #error Not a GNU C library system
2784 if { (eval echo configure
:2785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2788 echo "configure: failed program was:" >&5
2789 cat conftest.
$ac_ext >&5
2796 echo "$ac_t""$gcc_cv_glibc" 1>&6
2797 if test $gcc_cv_glibc = yes; then
2798 cat >> confdefs.h
<<\EOF
2799 #define _GNU_SOURCE 1
2804 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2805 echo "configure:2806: checking for ANSI C header files" >&5
2806 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2809 cat > conftest.
$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2818 { (eval echo configure
:2819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2820 if test -z "$ac_err"; then
2822 ac_cv_header_stdc
=yes
2825 echo "configure: failed program was:" >&5
2826 cat conftest.
$ac_ext >&5
2828 ac_cv_header_stdc
=no
2832 if test $ac_cv_header_stdc = yes; then
2833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2834 cat > conftest.
$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2840 egrep "memchr" >/dev
/null
2>&1; then
2844 ac_cv_header_stdc
=no
2850 if test $ac_cv_header_stdc = yes; then
2851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2852 cat > conftest.
$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2858 egrep "free" >/dev
/null
2>&1; then
2862 ac_cv_header_stdc
=no
2868 if test $ac_cv_header_stdc = yes; then
2869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2870 if test "$cross_compiling" = yes; then
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2877 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2878 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2880 int main () { int i; for (i = 0; i < 256; i++)
2881 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2885 if { (eval echo configure
:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 ac_cv_header_stdc
=no
2900 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2901 if test $ac_cv_header_stdc = yes; then
2902 cat >> confdefs.h
<<\EOF
2903 #define STDC_HEADERS 1
2908 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2909 echo "configure:2910: checking whether time.h and sys/time.h may both be included" >&5
2910 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 cat > conftest.
$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 #include <sys/types.h>
2917 #include <sys/time.h>
2923 if { (eval echo configure
:2924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2925 ac_cv_header_time
=yes
2927 echo "configure: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2930 ac_cv_header_time
=no
2935 echo "$ac_t""$ac_cv_header_time" 1>&6
2936 if test $ac_cv_header_time = yes; then
2937 cat >> confdefs.h
<<\EOF
2938 #define TIME_WITH_SYS_TIME 1
2943 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2944 echo "configure:2945: checking for working stdbool.h" >&5
2945 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 #include <stdbool.h>
2956 if { (eval echo configure
:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2958 ac_cv_header_stdbool_h
=yes
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2963 ac_cv_header_stdbool_h
=no
2968 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2969 if test $ac_cv_header_stdbool_h = yes; then
2970 cat >> confdefs.h
<<\EOF
2971 #define HAVE_STDBOOL_H 1
2976 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2977 echo "configure:2978: checking whether string.h and strings.h may both be included" >&5
2978 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.
$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2985 #include <strings.h>
2990 if { (eval echo configure
:2991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2992 gcc_cv_header_string
=yes
2994 echo "configure: failed program was:" >&5
2995 cat conftest.
$ac_ext >&5
2997 gcc_cv_header_string
=no
3002 echo "$ac_t""$gcc_cv_header_string" 1>&6
3003 if test $gcc_cv_header_string = yes; then
3004 cat >> confdefs.h
<<\EOF
3005 #define STRING_WITH_STRINGS 1
3010 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3011 echo "configure:3012: checking for sys/wait.h that is POSIX.1 compatible" >&5
3012 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.
$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 #include <sys/types.h>
3019 #include <sys/wait.h>
3021 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3024 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3029 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3032 if { (eval echo configure
:3033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3034 ac_cv_header_sys_wait_h
=yes
3036 echo "configure: failed program was:" >&5
3037 cat conftest.
$ac_ext >&5
3039 ac_cv_header_sys_wait_h
=no
3044 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3045 if test $ac_cv_header_sys_wait_h = yes; then
3046 cat >> confdefs.h
<<\EOF
3047 #define HAVE_SYS_WAIT_H 1
3052 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
3053 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
3054 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
3055 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
3057 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3059 echo "configure:3060: checking for $ac_hdr" >&5
3060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.
$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3068 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3069 { (eval echo configure
:3070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3070 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3071 if test -z "$ac_err"; then
3073 eval "ac_cv_header_$ac_safe=yes"
3076 echo "configure: failed program was:" >&5
3077 cat conftest.
$ac_ext >&5
3079 eval "ac_cv_header_$ac_safe=no"
3083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3084 echo "$ac_t""yes" 1>&6
3085 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3086 cat >> confdefs.h
<<EOF
3087 #define $ac_tr_hdr 1
3091 echo "$ac_t""no" 1>&6
3096 # Check for thread headers.
3097 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
3098 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
3099 echo "configure:3100: checking for thread.h" >&5
3100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.
$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3108 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3109 { (eval echo configure
:3110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3110 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3111 if test -z "$ac_err"; then
3113 eval "ac_cv_header_$ac_safe=yes"
3116 echo "configure: failed program was:" >&5
3117 cat conftest.
$ac_ext >&5
3119 eval "ac_cv_header_$ac_safe=no"
3123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3124 echo "$ac_t""yes" 1>&6
3127 echo "$ac_t""no" 1>&6
3131 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
3132 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
3133 echo "configure:3134: checking for pthread.h" >&5
3134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 cat > conftest.
$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3140 #include <pthread.h>
3142 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3143 { (eval echo configure
:3144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3144 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3145 if test -z "$ac_err"; then
3147 eval "ac_cv_header_$ac_safe=yes"
3150 echo "configure: failed program was:" >&5
3151 cat conftest.
$ac_ext >&5
3153 eval "ac_cv_header_$ac_safe=no"
3157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3161 echo "$ac_t""no" 1>&6
3166 # These tests can't be done till we know if we have limits.h.
3167 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
3168 echo "configure:3169: checking for CHAR_BIT" >&5
3169 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 cat > conftest.
$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 #ifdef HAVE_LIMITS_H
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183 egrep "found" >/dev
/null
2>&1; then
3185 gcc_cv_decl_char_bit
=yes
3188 gcc_cv_decl_char_bit
=no
3195 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
3196 if test $gcc_cv_decl_char_bit = no
; then
3197 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
3198 echo "configure:3199: checking number of bits in a byte" >&5
3199 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3204 while test $i -lt 65; do
3205 cat > conftest.
$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3211 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
3212 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
3216 if { (eval echo configure
:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3218 gcc_cv_c_nbby
=$i; break
3220 echo "configure: failed program was:" >&5
3221 cat conftest.
$ac_ext >&5
3226 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
3230 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
3231 if test $gcc_cv_c_nbby = failed
; then
3232 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
3234 cat >> confdefs.h
<<EOF
3235 #define CHAR_BIT $gcc_cv_c_nbby
3240 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3241 echo "configure:3242: checking whether byte ordering is bigendian" >&5
3242 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 ac_cv_c_bigendian
=unknown
3246 # See if sys/param.h defines the BYTE_ORDER macro.
3247 cat > conftest.
$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <sys/types.h>
3251 #include <sys/param.h>
3254 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3259 if { (eval echo configure
:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3261 # It does; now see whether it defined to BIG_ENDIAN or not.
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <sys/types.h>
3266 #include <sys/param.h>
3269 #if BYTE_ORDER != BIG_ENDIAN
3274 if { (eval echo configure
:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3276 ac_cv_c_bigendian
=yes
3278 echo "configure: failed program was:" >&5
3279 cat conftest.
$ac_ext >&5
3281 ac_cv_c_bigendian
=no
3285 echo "configure: failed program was:" >&5
3286 cat conftest.
$ac_ext >&5
3289 if test $ac_cv_c_bigendian = unknown
; then
3290 if test "$cross_compiling" = yes; then
3291 echo $ac_n "cross-compiling... " 2>&6
3293 cat > conftest.
$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3297 /* Are we little or big endian? From Harbison&Steele. */
3301 char c[sizeof (long)];
3304 exit (u.c[sizeof (long) - 1] == 1);
3307 if { (eval echo configure
:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3309 ac_cv_c_bigendian
=no
3311 echo "configure: failed program was:" >&5
3312 cat conftest.
$ac_ext >&5
3314 ac_cv_c_bigendian
=yes
3322 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3323 if test $ac_cv_c_bigendian = unknown
; then
3324 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3325 echo "configure:3326: checking to probe for byte ordering" >&5
3327 cat >conftest.c
<<EOF
3328 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3329 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3330 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3331 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3332 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3333 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3334 int main() { _ascii (); _ebcdic (); return 0; }
3336 if test -f conftest.c
; then
3337 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
3338 if test `grep -l BIGenDianSyS conftest.o` ; then
3339 echo $ac_n ' big endian probe OK, ' 1>&6
3340 ac_cv_c_bigendian
=yes
3342 if test `grep -l LiTTleEnDian conftest.o` ; then
3343 echo $ac_n ' little endian probe OK, ' 1>&6
3344 if test $ac_cv_c_bigendian = yes ; then
3345 ac_cv_c_bigendian
=unknown
;
3347 ac_cv_c_bigendian
=no
3350 echo $ac_n 'guessing bigendian ... ' >&6
3353 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3355 if test $ac_cv_c_bigendian = yes; then
3356 cat >> confdefs.h
<<\EOF
3357 #define WORDS_BIGENDIAN 1
3360 cat >> confdefs.h
<<\EOF
3361 #define HOST_WORDS_BIG_ENDIAN 1
3368 cat >> confdefs.h
<<EOF
3369 #define BYTEORDER $BYTEORDER
3372 if test $ac_cv_c_bigendian = unknown
; then
3373 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3381 # Stage specific cflags for build.
3385 if test x
$GCC = xyes
3387 stage1_cflags
="-Wa,-J"
3393 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
3394 # sources; use -no-cpp-precomp to get to GNU cpp.
3395 # Apple's GCC has bugs in designated initializer handling, so disable
3397 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
3402 # These libraries may be used by collect2.
3403 # We may need a special search path to get them linked.
3404 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3405 echo "configure:3406: checking for collect2 libraries" >&5
3406 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3410 for libs
in '' -lld -lmld \
3411 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3412 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3415 cat > conftest.
$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 /* Override any gcc2 internal prototype to avoid an error. */
3419 /* We use char because int might match the return type of a gcc2
3420 builtin and then its argument prototype would still apply. */
3427 if { (eval echo configure
:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3429 gcc_cv_collect2_libs
="$libs"; break
3431 echo "configure: failed program was:" >&5
3432 cat conftest.
$ac_ext >&5
3437 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3440 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3441 case $gcc_cv_collect2_libs in
3443 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3447 # When building Ada code on Alpha, we need exc_resume which is usually in
3448 # -lexc. So test for it.
3452 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3453 echo "configure:3454: checking for library containing exc_resume" >&5
3454 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 ac_func_search_save_LIBS
="$LIBS"
3458 ac_cv_search_exc_resume
="no"
3459 cat > conftest.
$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* Override any gcc2 internal prototype to avoid an error. */
3463 /* We use char because int might match the return type of a gcc2
3464 builtin and then its argument prototype would still apply. */
3471 if { (eval echo configure
:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3473 ac_cv_search_exc_resume
="none required"
3475 echo "configure: failed program was:" >&5
3476 cat conftest.
$ac_ext >&5
3479 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3480 LIBS
="-l$i $ac_func_search_save_LIBS"
3481 cat > conftest.
$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 /* Override any gcc2 internal prototype to avoid an error. */
3485 /* We use char because int might match the return type of a gcc2
3486 builtin and then its argument prototype would still apply. */
3493 if { (eval echo configure
:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3495 ac_cv_search_exc_resume
="-l$i"
3498 echo "configure: failed program was:" >&5
3499 cat conftest.
$ac_ext >&5
3503 LIBS
="$ac_func_search_save_LIBS"
3506 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3507 if test "$ac_cv_search_exc_resume" != "no"; then
3508 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3517 # Some systems put ldexp and frexp in libm instead of libc; assume
3518 # they're both in the same place. jcf-dump needs them.
3522 echo $ac_n "checking for library containing ldexp""... $ac_c" 1>&6
3523 echo "configure:3524: checking for library containing ldexp" >&5
3524 if eval "test \"`echo '$''{'ac_cv_search_ldexp'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 ac_func_search_save_LIBS
="$LIBS"
3528 ac_cv_search_ldexp
="no"
3529 cat > conftest.
$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 /* Override any gcc2 internal prototype to avoid an error. */
3533 /* We use char because int might match the return type of a gcc2
3534 builtin and then its argument prototype would still apply. */
3541 if { (eval echo configure
:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3543 ac_cv_search_ldexp
="none required"
3545 echo "configure: failed program was:" >&5
3546 cat conftest.
$ac_ext >&5
3549 test "$ac_cv_search_ldexp" = "no" && for i
in m
; do
3550 LIBS
="-l$i $ac_func_search_save_LIBS"
3551 cat > conftest.
$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 /* Override any gcc2 internal prototype to avoid an error. */
3555 /* We use char because int might match the return type of a gcc2
3556 builtin and then its argument prototype would still apply. */
3563 if { (eval echo configure
:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3565 ac_cv_search_ldexp
="-l$i"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.
$ac_ext >&5
3573 LIBS
="$ac_func_search_save_LIBS"
3576 echo "$ac_t""$ac_cv_search_ldexp" 1>&6
3577 if test "$ac_cv_search_ldexp" != "no"; then
3578 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
3587 # Use <inttypes.h> only if it exists,
3588 # doesn't clash with <sys/types.h>, and declares intmax_t.
3589 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3590 echo "configure:3591: checking for inttypes.h" >&5
3591 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 cat > conftest.
$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 #include <sys/types.h>
3598 #include <inttypes.h>
3603 if { (eval echo configure
:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3605 gcc_cv_header_inttypes_h
=yes
3607 echo "configure: failed program was:" >&5
3608 cat conftest.
$ac_ext >&5
3610 gcc_cv_header_inttypes_h
=no
3615 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3616 if test $gcc_cv_header_inttypes_h = yes; then
3617 cat >> confdefs.h
<<\EOF
3618 #define HAVE_INTTYPES_H 1
3624 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3625 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3626 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
3627 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
3630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3631 echo "configure:3632: checking for $ac_func" >&5
3632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3635 cat > conftest.
$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 /* System header to define __stub macros and hopefully few prototypes,
3639 which can conflict with char $ac_func(); below. */
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3648 /* The GNU C library defines this for functions which it implements
3649 to always fail with ENOSYS. Some functions are actually named
3650 something starting with __ and the normal name is an alias. */
3651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3659 if { (eval echo configure
:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3661 eval "ac_cv_func_$ac_func=yes"
3663 echo "configure: failed program was:" >&5
3664 cat conftest.
$ac_ext >&5
3666 eval "ac_cv_func_$ac_func=no"
3671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3673 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3674 cat >> confdefs.h
<<EOF
3675 #define $ac_tr_func 1
3679 echo "$ac_t""no" 1>&6
3684 if test x
$ac_cv_func_mbstowcs = xyes
; then
3685 echo $ac_n "checking whether mbstowcs works""... $ac_c" 1>&6
3686 echo "configure:3687: checking whether mbstowcs works" >&5
3687 if eval "test \"`echo '$''{'gcc_cv_func_mbstowcs_works'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 if test "$cross_compiling" = yes; then
3691 gcc_cv_func_mbstowcs_works
=yes
3693 cat > conftest.
$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3703 if { (eval echo configure
:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3705 gcc_cv_func_mbstowcs_works
=yes
3707 echo "configure: failed program was:" >&5
3708 cat conftest.
$ac_ext >&5
3710 gcc_cv_func_mbstowcs_works
=no
3717 echo "$ac_t""$gcc_cv_func_mbstowcs_works" 1>&6
3718 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
3719 cat >> confdefs.h
<<\EOF
3720 #define HAVE_WORKING_MBSTOWCS 1
3726 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3727 echo "configure:3728: checking for ssize_t" >&5
3728 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 cat > conftest.
$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <sys/types.h>
3740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3741 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3743 ac_cv_type_ssize_t
=yes
3746 ac_cv_type_ssize_t
=no
3751 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3752 if test $ac_cv_type_ssize_t = no
; then
3753 cat >> confdefs.h
<<\EOF
3760 # Try to determine the array type of the second argument of getgroups
3761 # for the target system (int or gid_t).
3762 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3763 echo "configure:3764: checking for uid_t in sys/types.h" >&5
3764 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 cat > conftest.
$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 #include <sys/types.h>
3772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773 egrep "uid_t" >/dev
/null
2>&1; then
3775 ac_cv_type_uid_t
=yes
3784 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3785 if test $ac_cv_type_uid_t = no
; then
3786 cat >> confdefs.h
<<\EOF
3790 cat >> confdefs.h
<<\EOF
3796 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3797 echo "configure:3798: checking type of array argument to getgroups" >&5
3798 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 if test "$cross_compiling" = yes; then
3802 ac_cv_type_getgroups
=cross
3804 cat > conftest.
$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3808 /* Thanks to Mike Rendell for this test. */
3809 #include <sys/types.h>
3812 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3817 union { gid_t gval; long lval; } val;
3820 for (i = 0; i < NGID; i++)
3821 gidset[i] = val.gval;
3822 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3824 /* Exit non-zero if getgroups seems to require an array of ints. This
3825 happens when gid_t is short but getgroups modifies an array of ints. */
3826 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3830 if { (eval echo configure
:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3832 ac_cv_type_getgroups
=gid_t
3834 echo "configure: failed program was:" >&5
3835 cat conftest.
$ac_ext >&5
3837 ac_cv_type_getgroups
=int
3842 if test $ac_cv_type_getgroups = cross
; then
3843 cat > conftest.
$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3851 ac_cv_type_getgroups
=gid_t
3854 ac_cv_type_getgroups
=int
3861 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3862 cat >> confdefs.h
<<EOF
3863 #define GETGROUPS_T $ac_cv_type_getgroups
3867 if test "${target}" = "${build}"; then
3868 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3871 # This condition may need some tweaking. It should include all
3872 # targets where the array type of the second argument of getgroups
3873 # is int and the type of gid_t is not equivalent to int.
3874 *-*-sunos* |
*-*-ultrix*)
3875 TARGET_GETGROUPS_T
=int
3878 TARGET_GETGROUPS_T
=gid_t
3884 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3885 echo "configure:3886: checking whether the printf functions support %p" >&5
3886 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 if test "$cross_compiling" = yes; then
3890 gcc_cv_func_printf_ptr
=no
3892 cat > conftest.
$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3900 char *p = buf, *q = NULL;
3901 sprintf(buf, "%p", p);
3902 sscanf(buf, "%p", &q);
3906 if { (eval echo configure
:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3908 gcc_cv_func_printf_ptr
=yes
3910 echo "configure: failed program was:" >&5
3911 cat conftest.
$ac_ext >&5
3913 gcc_cv_func_printf_ptr
=no
3918 rm -f core core.
* *.core
3921 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3922 if test $gcc_cv_func_printf_ptr = yes ; then
3923 cat >> confdefs.h
<<\EOF
3924 #define HAVE_PRINTF_PTR 1
3929 if test $ac_cv_header_sys_mman_h != yes \
3930 ||
test $ac_cv_func_mmap != yes; then
3931 gcc_cv_func_mmap_file
=no
3932 gcc_cv_func_mmap_dev_zero
=no
3933 gcc_cv_func_mmap_anon
=no
3935 echo $ac_n "checking whether read-only mmap of a plain file works""... $ac_c" 1>&6
3936 echo "configure:3937: checking whether read-only mmap of a plain file works" >&5
3937 if eval "test \"`echo '$''{'gcc_cv_func_mmap_file'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 # Add a system to this blacklist if
3941 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
3942 # memory area containing the same data that you'd get if you applied
3943 # read() to the same fd. The only system known to have a problem here
3944 # is VMS, where text files have record structure.
3947 gcc_cv_func_mmap_file
=no
;;
3949 gcc_cv_func_mmap_file
=yes;;
3953 echo "$ac_t""$gcc_cv_func_mmap_file" 1>&6
3954 echo $ac_n "checking whether mmap from /dev/zero works""... $ac_c" 1>&6
3955 echo "configure:3956: checking whether mmap from /dev/zero works" >&5
3956 if eval "test \"`echo '$''{'gcc_cv_func_mmap_dev_zero'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3959 # Add a system to this blacklist if it has mmap() but /dev/zero
3960 # does not exist, or if mmapping /dev/zero does not give anonymous
3961 # zeroed pages with both the following properties:
3962 # 1. If you map N consecutive pages in with one call, and then
3963 # unmap any subset of those pages, the pages that were not
3964 # explicitly unmapped remain accessible.
3965 # 2. If you map two adjacent blocks of memory and then unmap them
3966 # both at once, they must both go away.
3967 # Systems known to be in this category are Windows (all variants),
3970 vms
* | cygwin
* | pe | mingw
* | darwin
*)
3971 gcc_cv_func_mmap_dev_zero
=no
;;
3973 gcc_cv_func_mmap_dev_zero
=yes;;
3977 echo "$ac_t""$gcc_cv_func_mmap_dev_zero" 1>&6
3979 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
3980 echo $ac_n "checking for MAP_ANON(YMOUS)""... $ac_c" 1>&6
3981 echo "configure:3982: checking for MAP_ANON(YMOUS)" >&5
3982 if eval "test \"`echo '$''{'gcc_cv_decl_map_anon'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 cat > conftest.
$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 #include <sys/types.h>
3989 #include <sys/mman.h>
3992 #ifndef MAP_ANONYMOUS
3993 #define MAP_ANONYMOUS MAP_ANON
3997 int n = MAP_ANONYMOUS;
4000 if { (eval echo configure
:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4002 gcc_cv_decl_map_anon
=yes
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4007 gcc_cv_decl_map_anon
=no
4012 echo "$ac_t""$gcc_cv_decl_map_anon" 1>&6
4014 if test $gcc_cv_decl_map_anon = no
; then
4015 gcc_cv_func_mmap_anon
=no
4017 echo $ac_n "checking whether mmap with MAP_ANON(YMOUS) works""... $ac_c" 1>&6
4018 echo "configure:4019: checking whether mmap with MAP_ANON(YMOUS) works" >&5
4019 if eval "test \"`echo '$''{'gcc_cv_func_mmap_anon'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 # Add a system to this blacklist if it has mmap() and MAP_ANON or
4023 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
4024 # doesn't give anonymous zeroed pages with the same properties listed
4025 # above for use of /dev/zero.
4026 # Systems known to be in this category are Windows, VMS, and SCO Unix.
4028 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
4029 gcc_cv_func_mmap_anon
=no
;;
4031 gcc_cv_func_mmap_anon
=yes;;
4035 echo "$ac_t""$gcc_cv_func_mmap_anon" 1>&6
4039 if test $gcc_cv_func_mmap_file = yes; then
4040 cat >> confdefs.h
<<\EOF
4041 #define HAVE_MMAP_FILE 1
4045 if test $gcc_cv_func_mmap_dev_zero = yes; then
4046 cat >> confdefs.h
<<\EOF
4047 #define HAVE_MMAP_DEV_ZERO 1
4051 if test $gcc_cv_func_mmap_anon = yes; then
4052 cat >> confdefs.h
<<\EOF
4053 #define HAVE_MMAP_ANON 1
4061 { echo "configure: error:
4062 *** UWIN may not be used as a host platform because
4063 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
4066 # Under VMS, vfork works very different than on Unix. The standard test
4067 # won't work, and it isn't easily adaptable. It makes more sense to
4069 ac_cv_func_vfork_works
=yes
4072 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4073 echo "configure:4074: checking for pid_t" >&5
4074 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 cat > conftest.
$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 #include <sys/types.h>
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4089 ac_cv_type_pid_t
=yes
4097 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4098 if test $ac_cv_type_pid_t = no
; then
4099 cat >> confdefs.h
<<\EOF
4105 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
4106 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
4107 echo "configure:4108: checking for vfork.h" >&5
4108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4116 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4117 { (eval echo configure
:4118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4118 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4119 if test -z "$ac_err"; then
4121 eval "ac_cv_header_$ac_safe=yes"
4124 echo "configure: failed program was:" >&5
4125 cat conftest.
$ac_ext >&5
4127 eval "ac_cv_header_$ac_safe=no"
4131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 cat >> confdefs.h
<<\EOF
4134 #define HAVE_VFORK_H 1
4138 echo "$ac_t""no" 1>&6
4141 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
4142 echo "configure:4143: checking for working vfork" >&5
4143 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 if test "$cross_compiling" = yes; then
4147 echo $ac_n "checking for vfork""... $ac_c" 1>&6
4148 echo "configure:4149: checking for vfork" >&5
4149 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 cat > conftest.
$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 /* System header to define __stub macros and hopefully few prototypes,
4156 which can conflict with char vfork(); below. */
4158 /* Override any gcc2 internal prototype to avoid an error. */
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4165 /* The GNU C library defines this for functions which it implements
4166 to always fail with ENOSYS. Some functions are actually named
4167 something starting with __ and the normal name is an alias. */
4168 #if defined (__stub_vfork) || defined (__stub___vfork)
4176 if { (eval echo configure
:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4178 eval "ac_cv_func_vfork=yes"
4180 echo "configure: failed program was:" >&5
4181 cat conftest.
$ac_ext >&5
4183 eval "ac_cv_func_vfork=no"
4188 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4192 echo "$ac_t""no" 1>&6
4195 ac_cv_func_vfork_works
=$ac_cv_func_vfork
4197 cat > conftest.
$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4200 /* Thanks to Paul Eggert for this test. */
4202 #include <sys/types.h>
4203 #include <sys/stat.h>
4204 #ifdef HAVE_UNISTD_H
4210 /* On some sparc systems, changes by the child to local and incoming
4211 argument registers are propagated back to the parent.
4212 The compiler is told about this with #include <vfork.h>,
4213 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4214 Test for this by using a static variable whose address
4215 is put into a register that is clobbered by the vfork. */
4218 sparc_address_test (int arg)
4220 sparc_address_test (arg) int arg;
4238 pid_t parent = getpid ();
4241 sparc_address_test ();
4246 /* Here is another test for sparc vfork register problems.
4247 This test uses lots of local variables, at least
4248 as many local variables as main has allocated so far
4249 including compiler temporaries. 4 locals are enough for
4250 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4251 A buggy compiler should reuse the register of parent
4252 for one of the local variables, since it will think that
4253 parent can't possibly be used any more in this routine.
4254 Assigning to the local variable will thus munge parent
4255 in the parent process. */
4257 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4258 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4259 /* Convince the compiler that p..p7 are live; otherwise, it might
4260 use the same hardware register for all 8 local variables. */
4261 if (p != p1 || p != p2 || p != p3 || p != p4
4262 || p != p5 || p != p6 || p != p7)
4265 /* On some systems (e.g. IRIX 3.3),
4266 vfork doesn't separate parent from child file descriptors.
4267 If the child closes a descriptor before it execs or exits,
4268 this munges the parent's descriptor as well.
4269 Test for this by closing stdout in the child. */
4270 _exit(close(fileno(stdout)) != 0);
4275 while (wait(&status) != child)
4278 /* Was there some problem with vforking? */
4281 /* Did the child fail? (This shouldn't happen.) */
4284 /* Did the vfork/compiler bug occur? */
4285 || parent != getpid()
4287 /* Did the file descriptor bug occur? */
4288 || fstat(fileno(stdout), &st) != 0
4293 if { (eval echo configure
:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4295 ac_cv_func_vfork_works
=yes
4297 echo "configure: failed program was:" >&5
4298 cat conftest.
$ac_ext >&5
4300 ac_cv_func_vfork_works
=no
4307 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4308 if test $ac_cv_func_vfork_works = no
; then
4309 cat >> confdefs.h
<<\EOF
4318 am_cv_lib_iconv_ldpath
=
4319 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4320 if test "${with_libiconv_prefix+set}" = set; then
4321 withval
="$with_libiconv_prefix"
4323 for dir
in `echo "$withval" | tr : ' '`; do
4324 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4325 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4331 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4332 echo "configure:4333: checking for iconv" >&5
4333 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4337 am_cv_func_iconv
="no, consider installing GNU libiconv"
4339 cat > conftest.
$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4345 iconv_t cd = iconv_open("","");
4346 iconv(cd,NULL,NULL,NULL,NULL);
4350 if { (eval echo configure
:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4352 am_cv_func_iconv
=yes
4354 echo "configure: failed program was:" >&5
4355 cat conftest.
$ac_ext >&5
4358 if test "$am_cv_func_iconv" != yes; then
4359 am_save_LIBS
="$LIBS"
4360 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4361 cat > conftest.
$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4367 iconv_t cd = iconv_open("","");
4368 iconv(cd,NULL,NULL,NULL,NULL);
4372 if { (eval echo configure
:4373: \"$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 LIBS
="$am_save_LIBS"
4386 echo "$ac_t""$am_cv_func_iconv" 1>&6
4387 if test "$am_cv_func_iconv" = yes; then
4388 cat >> confdefs.h
<<\EOF
4389 #define HAVE_ICONV 1
4392 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4393 echo "configure:4394: checking for iconv declaration" >&5
4394 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4398 cat > conftest.
$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4408 #if defined(__STDC__) || defined(__cplusplus)
4409 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4418 if { (eval echo configure
:4419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4420 am_cv_proto_iconv_arg1
=""
4422 echo "configure: failed program was:" >&5
4423 cat conftest.
$ac_ext >&5
4425 am_cv_proto_iconv_arg1
="const"
4428 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);"
4431 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4432 echo "$ac_t""${ac_t:-
4433 }$am_cv_proto_iconv" 1>&6
4434 cat >> confdefs.h
<<EOF
4435 #define ICONV_CONST $am_cv_proto_iconv_arg1
4440 if test "$am_cv_lib_iconv" = yes; then
4441 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4445 # Until we have in-tree GNU iconv:
4450 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4451 echo "configure:4452: checking for LC_MESSAGES" >&5
4452 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4455 cat > conftest.
$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4463 if { (eval echo configure
:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4465 am_cv_val_LC_MESSAGES
=yes
4467 echo "configure: failed program was:" >&5
4468 cat conftest.
$ac_ext >&5
4470 am_cv_val_LC_MESSAGES
=no
4475 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4476 if test $am_cv_val_LC_MESSAGES = yes; then
4477 cat >> confdefs.h
<<\EOF
4478 #define HAVE_LC_MESSAGES 1
4484 # We will need to find libiberty.h and ansidecl.h
4485 saved_CFLAGS
="$CFLAGS"
4486 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4487 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4488 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4489 fprintf_unlocked strstr errno vasprintf \
4490 malloc realloc calloc free
basename getopt
clock
4492 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4493 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4494 echo "configure:4495: checking whether $ac_func is declared" >&5
4495 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.
$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4502 #define $ac_tr_decl 1
4504 #include "ansidecl.h"
4509 char *(*pfn) = (char *(*)) $ac_func ;
4513 if { (eval echo configure
:4514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4515 eval "gcc_cv_have_decl_$ac_func=yes"
4517 echo "configure: failed program was:" >&5
4518 cat conftest.
$ac_ext >&5
4520 eval "gcc_cv_have_decl_$ac_func=no"
4525 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4526 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4527 #define $ac_tr_decl 1
4531 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4532 #define $ac_tr_decl 0
4538 if test x
= y
; then
4539 cat >> confdefs.h
<<\EOF
4540 #define HAVE_DECL_GETENV 1
4542 cat >> confdefs.h
<<\EOF
4543 #define HAVE_DECL_ATOL 1
4545 cat >> confdefs.h
<<\EOF
4546 #define HAVE_DECL_SBRK 1
4548 cat >> confdefs.h
<<\EOF
4549 #define HAVE_DECL_ABORT 1
4551 cat >> confdefs.h
<<\EOF
4552 #define HAVE_DECL_ATOF 1
4554 cat >> confdefs.h
<<\EOF
4555 #define HAVE_DECL_GETCWD 1
4557 cat >> confdefs.h
<<\EOF
4558 #define HAVE_DECL_GETWD 1
4561 cat >> confdefs.h
<<\EOF
4562 #define HAVE_DECL_STRSIGNAL 1
4564 cat >> confdefs.h
<<\EOF
4565 #define HAVE_DECL_PUTC_UNLOCKED 1
4567 cat >> confdefs.h
<<\EOF
4568 #define HAVE_DECL_FPUTS_UNLOCKED 1
4570 cat >> confdefs.h
<<\EOF
4571 #define HAVE_DECL_FWRITE_UNLOCKED 1
4574 cat >> confdefs.h
<<\EOF
4575 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4577 cat >> confdefs.h
<<\EOF
4578 #define HAVE_DECL_STRSTR 1
4580 cat >> confdefs.h
<<\EOF
4581 #define HAVE_DECL_ERRNO 1
4583 cat >> confdefs.h
<<\EOF
4584 #define HAVE_DECL_VASPRINTF 1
4587 cat >> confdefs.h
<<\EOF
4588 #define HAVE_DECL_MALLOC 1
4590 cat >> confdefs.h
<<\EOF
4591 #define HAVE_DECL_REALLOC 1
4593 cat >> confdefs.h
<<\EOF
4594 #define HAVE_DECL_CALLOC 1
4596 cat >> confdefs.h
<<\EOF
4597 #define HAVE_DECL_FREE 1
4599 cat >> confdefs.h
<<\EOF
4600 #define HAVE_DECL_BASENAME 1
4602 cat >> confdefs.h
<<\EOF
4603 #define HAVE_DECL_GETOPT 1
4605 cat >> confdefs.h
<<\EOF
4606 #define HAVE_DECL_CLOCK 1
4611 for ac_func
in getrlimit setrlimit getrusage
4613 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4614 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4615 echo "configure:4616: checking whether $ac_func is declared" >&5
4616 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 cat > conftest.
$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4623 #define $ac_tr_decl 1
4625 #include "ansidecl.h"
4627 #ifdef HAVE_SYS_RESOURCE_H
4628 #include <sys/resource.h>
4634 char *(*pfn) = (char *(*)) $ac_func ;
4638 if { (eval echo configure
:4639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4640 eval "gcc_cv_have_decl_$ac_func=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4645 eval "gcc_cv_have_decl_$ac_func=no"
4650 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4652 #define $ac_tr_decl 1
4656 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4657 #define $ac_tr_decl 0
4663 if test x
= y
; then
4664 cat >> confdefs.h
<<\EOF
4665 #define HAVE_DECL_GETRLIMIT 1
4667 cat >> confdefs.h
<<\EOF
4668 #define HAVE_DECL_SETRLIMIT 1
4670 cat >> confdefs.h
<<\EOF
4671 #define HAVE_DECL_GETRUSAGE 1
4676 cat > conftest.
$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4680 #include "ansidecl.h"
4682 #ifdef HAVE_SYS_RESOURCE_H
4683 #include <sys/resource.h>
4690 if { (eval echo configure
:4691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4693 echo "configure: failed program was:" >&5
4694 cat conftest.
$ac_ext >&5
4696 cat >> confdefs.h
<<\EOF
4703 for ac_func
in ldgetname
4705 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4706 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4707 echo "configure:4708: checking whether $ac_func is declared" >&5
4708 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 cat > conftest.
$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4715 #define $ac_tr_decl 1
4717 #include "ansidecl.h"
4726 char *(*pfn) = (char *(*)) $ac_func ;
4730 if { (eval echo configure
:4731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4732 eval "gcc_cv_have_decl_$ac_func=yes"
4734 echo "configure: failed program was:" >&5
4735 cat conftest.
$ac_ext >&5
4737 eval "gcc_cv_have_decl_$ac_func=no"
4742 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4744 #define $ac_tr_decl 1
4748 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4749 #define $ac_tr_decl 0
4755 if test x
= y
; then
4756 cat >> confdefs.h
<<\EOF
4757 #define HAVE_DECL_LDGETNAME 1
4762 for ac_func
in times
4764 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4765 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4766 echo "configure:4767: checking whether $ac_func is declared" >&5
4767 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4770 cat > conftest.
$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4774 #define $ac_tr_decl 1
4776 #include "ansidecl.h"
4778 #ifdef HAVE_SYS_TIMES_H
4779 #include <sys/times.h>
4785 char *(*pfn) = (char *(*)) $ac_func ;
4789 if { (eval echo configure
:4790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4791 eval "gcc_cv_have_decl_$ac_func=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.
$ac_ext >&5
4796 eval "gcc_cv_have_decl_$ac_func=no"
4801 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4803 #define $ac_tr_decl 1
4807 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4808 #define $ac_tr_decl 0
4814 if test x
= y
; then
4815 cat >> confdefs.h
<<\EOF
4816 #define HAVE_DECL_TIMES 1
4821 # More time-related stuff.
4822 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4823 echo "configure:4824: checking for struct tms" >&5
4824 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4828 cat > conftest.
$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4832 #include "ansidecl.h"
4834 #ifdef HAVE_SYS_TIMES_H
4835 #include <sys/times.h>
4842 if { (eval echo configure
:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 ac_cv_struct_tms
=yes
4846 echo "configure: failed program was:" >&5
4847 cat conftest.
$ac_ext >&5
4854 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4855 if test $ac_cv_struct_tms = yes; then
4856 cat >> confdefs.h
<<\EOF
4857 #define HAVE_STRUCT_TMS 1
4862 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4863 # revisit after autoconf 2.50.
4864 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4865 echo "configure:4866: checking for clock_t" >&5
4866 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4870 cat > conftest.
$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4874 #include "ansidecl.h"
4881 if { (eval echo configure
:4882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4883 gcc_cv_type_clock_t
=yes
4885 echo "configure: failed program was:" >&5
4886 cat conftest.
$ac_ext >&5
4888 gcc_cv_type_clock_t
=no
4893 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4894 if test $gcc_cv_type_clock_t = yes; then
4895 cat >> confdefs.h
<<\EOF
4896 #define HAVE_CLOCK_T 1
4901 echo $ac_n "checking for uchar""... $ac_c" 1>&6
4902 echo "configure:4903: checking for uchar" >&5
4903 if eval "test \"`echo '$''{'gcc_cv_type_uchar'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4906 cat > conftest.
$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4910 #include "ansidecl.h"
4914 if ((uchar *)0) return 0;
4915 if (sizeof(uchar)) return 0;
4918 if { (eval echo configure
:4919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4920 ac_cv_type_uchar
=yes
4922 echo "configure: failed program was:" >&5
4923 cat conftest.
$ac_ext >&5
4930 echo "$ac_t""$gcc_cv_type_uchar" 1>&6
4931 if test $ac_cv_type_uchar = yes; then
4932 cat >> confdefs.h
<<\EOF
4933 #define HAVE_UCHAR 1
4938 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4939 CFLAGS
="$saved_CFLAGS"
4941 # Check whether --enable-initfini-array or --disable-initfini-array was given.
4942 if test "${enable_initfini_array+set}" = set; then
4943 enableval
="$enable_initfini_array"
4947 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
4948 echo "configure:4949: checking for .preinit_array/.init_array/.fini_array support" >&5
4949 if eval "test \"`echo '$''{'gcc_cv_initfini_array'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 if test "$cross_compiling" = yes; then
4953 gcc_cv_initfini_array
=no
4955 cat > conftest.
$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4960 int main (void) { return x; }
4961 int foo (void) { x = 0; }
4962 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4964 if { (eval echo configure
:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4966 gcc_cv_initfini_array
=yes
4968 echo "configure: failed program was:" >&5
4969 cat conftest.
$ac_ext >&5
4971 gcc_cv_initfini_array
=no
4978 echo "$ac_t""$gcc_cv_initfini_array" 1>&6
4979 enable_initfini_array
=$gcc_cv_initfini_array
4983 if test $enable_initfini_array = yes; then
4984 cat >> confdefs.h
<<\EOF
4985 #define HAVE_INITFINI_ARRAY 1
4990 # mkdir takes a single argument on some systems.
4991 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4992 echo "configure:4993: checking if mkdir takes one argument" >&5
4993 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 cat > conftest.
$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
5000 #include <sys/types.h>
5001 #ifdef HAVE_SYS_STAT_H
5002 # include <sys/stat.h>
5004 #ifdef HAVE_UNISTD_H
5005 # include <unistd.h>
5007 #ifdef HAVE_DIRECT_H
5008 # include <direct.h>
5014 if { (eval echo configure
:5015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5016 gcc_cv_mkdir_takes_one_arg
=no
5018 echo "configure: failed program was:" >&5
5019 cat conftest.
$ac_ext >&5
5021 gcc_cv_mkdir_takes_one_arg
=yes
5026 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
5027 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
5028 cat >> confdefs.h
<<\EOF
5029 #define MKDIR_TAKES_ONE_ARG 1
5041 # With Setjmp/Longjmp based exception handling.
5042 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5043 if test "${enable_sjlj_exceptions+set}" = set; then
5044 enableval
="$enable_sjlj_exceptions"
5045 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
5046 cat >> confdefs.h
<<EOF
5047 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
5053 echo $ac_n "checking for main in -lunwind""... $ac_c" 1>&6
5054 echo "configure:5055: checking for main in -lunwind" >&5
5055 ac_lib_var
=`echo unwind'_'main | sed 'y%./+-%__p_%'`
5056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 ac_save_LIBS
="$LIBS"
5060 LIBS
="-lunwind $LIBS"
5061 cat > conftest.
$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5069 if { (eval echo configure
:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.
$ac_ext >&5
5076 eval "ac_cv_lib_$ac_lib_var=no"
5079 LIBS
="$ac_save_LIBS"
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 use_libunwind_default
=yes
5086 echo "$ac_t""no" 1>&6
5087 use_libunwind_default
=no
5090 # Use libunwind based exception handling.
5091 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
5092 if test "${enable_libunwind_exceptions+set}" = set; then
5093 enableval
="$enable_libunwind_exceptions"
5094 use_libunwind_exceptions
=$enableval
5096 use_libunwind_exceptions
=$use_libunwind_default
5099 if test x
"$use_libunwind_exceptions" = xyes
; then
5100 cat >> confdefs.h
<<\EOF
5101 #define USE_LIBUNWIND_EXCEPTIONS 1
5106 # --------------------------------------------------------
5107 # Build, host, and target specific configuration fragments
5108 # --------------------------------------------------------
5113 build_install_headers_dir
=install-headers-tar
5120 # Decode the host machine, then the target machine.
5121 # For the host machine, we save the xm_file variable as host_xm_file;
5122 # then we decode the target machine and forget everything else
5123 # that came from the host machine.
5124 for machine
in $build $host $target; do
5125 .
${srcdir}/config.gcc
5128 extra_objs
="${host_extra_objs} ${extra_objs}"
5130 # Default the target-machine variables that were not explicitly set.
5131 if test x
"$tm_file" = x
5132 then tm_file
=$cpu_type/$cpu_type.h
; fi
5134 if test x
"$extra_headers" = x
5135 then extra_headers
=; fi
5137 if test x
$md_file = x
5138 then md_file
=$cpu_type/$cpu_type.md
; fi
5140 if test x
$out_file = x
5141 then out_file
=$cpu_type/$cpu_type.c
; fi
5143 if test x
"$tmake_file" = x
5144 then tmake_file
=$cpu_type/t-
$cpu_type
5147 if test x
"$dwarf2" = xyes
5148 then tm_file
="$tm_file tm-dwarf2.h"
5151 # Say what files are being used for the output code and MD file.
5152 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
5153 echo "Using \`$srcdir/config/$md_file' as machine description file."
5155 # If any of the xm_file variables contain nonexistent files, warn
5156 # about them and drop them.
5159 for x
in $build_xm_file; do
5160 if test -f $srcdir/config
/$x
5162 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5168 for x
in $host_xm_file; do
5169 if test -f $srcdir/config
/$x
5171 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5177 for x
in $xm_file; do
5178 if test -f $srcdir/config
/$x
5180 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5186 for f
in $tm_file; do
5189 if test $count = ax
; then
5190 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5192 echo "Using the following target machine macro files:"
5193 for f
in $tm_file; do
5194 echo " $srcdir/config/$f"
5198 if test x
$need_64bit_hwint = xyes
; then
5199 cat >> confdefs.h
<<\EOF
5200 #define NEED_64BIT_HOST_WIDE_INT 1
5206 for f
in $host_xm_file; do
5209 if test $count = a
; then
5211 elif test $count = ax
; then
5212 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5214 echo "Using the following host machine macro files:"
5215 for f
in $host_xm_file; do
5216 echo " $srcdir/config/$f"
5219 echo "Using ${out_host_hook_obj} for host machine hooks."
5221 if test "$host_xm_file" != "$build_xm_file"; then
5223 for f
in $build_xm_file; do
5226 if test $count = a
; then
5228 elif test $count = ax
; then
5229 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5231 echo "Using the following build machine macro files:"
5232 for f
in $build_xm_file; do
5233 echo " $srcdir/config/$f"
5238 if test x
$thread_file = x
; then
5239 if test x
$target_thread_file != x
; then
5240 thread_file
=$target_thread_file
5242 thread_file
='single'
5246 if test x
$enable___cxa_atexit = xyes || \
5247 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
5248 cat >> confdefs.h
<<\EOF
5249 #define DEFAULT_USE_CXA_ATEXIT 1
5254 # Look for a file containing extra machine modes.
5255 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
5256 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
5258 cat >> confdefs.h
<<EOF
5259 #define EXTRA_MODES_FILE "$extra_modes"
5262 cat >> confdefs.h
<<\EOF
5263 #define EXTRA_CC_MODES 1
5268 # auto-host.h is the file containing items generated by autoconf and is
5269 # the first file included by config.h.
5270 # If host=build, it is correct to have bconfig include auto-host.h
5271 # as well. If host!=build, we are in error and need to do more
5272 # work to find out the build config parameters.
5273 if test x
$host = x
$build
5275 build_auto
=auto-host.h
5278 # We create a subdir, then run autoconf in the subdir.
5279 # To prevent recursion we set host and build for the new
5280 # invocation of configure to the build for this invocation
5287 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5288 *) realsrcdir
=..
/${srcdir};;
5290 saved_CFLAGS
="${CFLAGS}"
5291 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5292 ${realsrcdir}/configure \
5293 --target=$target_alias --host=$build_alias --build=$build_alias
5294 CFLAGS
="${saved_CFLAGS}"
5296 # We just finished tests for the build machine, so rename
5297 # the file auto-build.h in the gcc directory.
5298 mv auto-host.h ..
/auto-build.h
5301 build_auto
=auto-build.h
5302 FORBUILD
=..
/${build_subdir}
5306 tm_file
="${tm_file} defaults.h"
5307 tm_p_file
="${tm_p_file} tm-preds.h"
5308 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
5309 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
5310 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
5311 # put this back in temporarily.
5312 xm_file
="ansidecl.h ${xm_file}"
5318 # Get the version trigger filename from the toplevel
5319 if test "${with_gcc_version_trigger+set}" = set; then
5320 gcc_version_trigger
=$with_gcc_version_trigger
5322 gcc_version_trigger
=${srcdir}/version.c
5324 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5325 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5327 # Compile in configure arguments.
5328 if test -f configargs.h
; then
5329 # Being re-configured.
5330 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5331 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5333 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5335 cat > configargs.h
<<EOF
5336 /* Generated automatically. */
5337 static const char configuration_arguments[] = "$gcc_config_arguments";
5338 static const char thread_model[] = "$thread_file";
5340 static const struct {
5341 const char *name, *value;
5342 } configure_default_options[] = $configure_default_options;
5345 # Internationalization
5347 VERSION
="$gcc_version"
5351 # If we haven't got the data from the intl directory,
5352 # assume NLS is disabled.
5360 if test -f ..
/intl
/config.intl
; then
5361 . ..
/intl
/config.intl
5363 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5364 echo "configure:5365: checking whether NLS is requested" >&5
5365 if test x
"$USE_NLS" != xyes
; then
5366 echo "$ac_t""no" 1>&6
5368 echo "$ac_t""yes" 1>&6
5369 cat >> confdefs.h
<<\EOF
5370 #define ENABLE_NLS 1
5374 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5375 echo "configure:5376: checking for catalogs to be installed" >&5
5376 # Look for .po and .gmo files in the source directory.
5379 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5380 # If there aren't any .gmo files the shell will give us the
5381 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5383 case "$cat" in *\
**)
5386 # The quadruple backslash is collapsed to a double backslash
5387 # by the backticks, then collapsed again by the double quotes,
5388 # leaving us with one backslash in the sed expression (right
5389 # before the dot that mustn't act as a wildcard).
5390 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5391 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5392 # The user is allowed to set LINGUAS to a list of languages to
5393 # install catalogs for. If it's empty that means "all of them."
5394 if test "x$LINGUAS" = x
; then
5395 CATALOGS
="$CATALOGS $cat"
5396 XLINGUAS
="$XLINGUAS $lang"
5398 case "$LINGUAS" in *$lang*)
5399 CATALOGS
="$CATALOGS $cat"
5400 XLINGUAS
="$XLINGUAS $lang"
5406 echo "$ac_t""$LINGUAS" 1>&6
5409 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
5410 # -liconv on the link line twice.
5411 case "$LIBINTL" in *$LIBICONV*)
5415 # Windows32 Registry support for specifying GCC installation paths.
5416 # Check whether --enable-win32-registry or --disable-win32-registry was given.
5417 if test "${enable_win32_registry+set}" = set; then
5418 enableval
="$enable_win32_registry"
5423 win32 | pe | cygwin
* | mingw32
* | uwin
*)
5424 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
5425 echo "configure:5426: checking whether windows registry support is requested" >&5
5426 if test "x$enable_win32_registry" != xno
; then
5427 cat >> confdefs.h
<<\EOF
5428 #define ENABLE_WIN32_REGISTRY 1
5431 echo "$ac_t""yes" 1>&6
5433 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
5434 echo "configure:5435: checking for library containing RegOpenKeyExA" >&5
5435 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 ac_func_search_save_LIBS
="$LIBS"
5439 ac_cv_search_RegOpenKeyExA
="no"
5440 cat > conftest.
$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5446 char RegOpenKeyExA();
5452 if { (eval echo configure
:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5454 ac_cv_search_RegOpenKeyExA
="none required"
5456 echo "configure: failed program was:" >&5
5457 cat conftest.
$ac_ext >&5
5460 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
5461 LIBS
="-l$i $ac_func_search_save_LIBS"
5462 cat > conftest.
$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5468 char RegOpenKeyExA();
5474 if { (eval echo configure
:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5476 ac_cv_search_RegOpenKeyExA
="-l$i"
5479 echo "configure: failed program was:" >&5
5480 cat conftest.
$ac_ext >&5
5484 LIBS
="$ac_func_search_save_LIBS"
5487 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
5488 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
5489 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
5495 echo "$ac_t""no" 1>&6
5498 # Check if user specified a different registry key.
5499 case "x${enable_win32_registry}" in
5502 gcc_cv_win32_registry_key
="$VERSION"
5505 # no registry lookup.
5506 gcc_cv_win32_registry_key
=''
5509 # user-specified key.
5510 gcc_cv_win32_registry_key
="$enable_win32_registry"
5514 if test "x$enable_win32_registry" != xno
; then
5515 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
5516 echo "configure:5517: checking registry key on windows hosts" >&5
5517 cat >> confdefs.h
<<EOF
5518 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
5521 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
5526 # Get an absolute path to the GCC top-level source directory
5527 holddir
=`${PWDCMD-pwd}`
5529 topdir
=`${PWDCMD-pwd}`
5532 # Conditionalize the makefile for this host machine.
5533 # Make-host contains the concatenation of all host makefile fragments
5534 # [there can be more than one]. This file is built by configure.frag.
5535 host_overrides
=Make-host
5536 dep_host_xmake_file
=
5537 for f
in ..
${host_xmake_file}
5539 if test -f ${srcdir}/config
/$f
5541 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
5545 # Conditionalize the makefile for this target machine.
5546 # Make-target contains the concatenation of all host makefile fragments
5547 # [there can be more than one]. This file is built by configure.frag.
5548 target_overrides
=Make-target
5550 for f
in ..
${tmake_file}
5552 if test -f ${srcdir}/config
/$f
5554 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5558 symbolic_link
='ln -s'
5560 # If the host doesn't support symlinks, modify CC in
5561 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5562 # Otherwise, we can use "CC=$(CC)".
5564 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5566 cc_set_by_configure
="\$(CC)"
5567 quoted_cc_set_by_configure
="\$(CC)"
5568 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5569 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5572 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5574 symbolic_link
="cp -p"
5578 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5579 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
5580 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5581 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
5585 out_object_file
=`basename $out_file .c`.o
5588 for f
in $tm_file; do
5591 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
5593 tm_file_list
="${tm_file_list} \$(srcdir)/$f" ;;
5594 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
5599 for f
in $tm_p_file; do
5602 tm_p_file_list
="${tm_p_file_list} $f" ;;
5603 *) tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f" ;;
5608 for f
in $host_xm_file; do
5611 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
5613 host_xm_file_list
="${host_xm_file_list} $f" ;;
5615 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
5616 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
5621 for f
in $build_xm_file; do
5624 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
5625 auto-build.h | auto-host.h
)
5626 build_xm_file_list
="${build_xm_file_list} $f" ;;
5628 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
5629 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
5633 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
5634 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
5637 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
5638 if test x
$host != x
$target
5640 CROSS
="-DCROSS_COMPILE"
5642 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
5643 case "$host","$target" in
5644 i?
86-*-*,x86_64-
*-* \
5645 | powerpc
*-*-*,powerpc64
*-*-*)
5646 CROSS
="$CROSS -DNATIVE_CROSS" ;;
5648 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
5649 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
5650 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
5653 # If this is a cross-compiler that does not
5654 # have its own set of headers then define
5657 # If this is using newlib, without having the headers available now,
5658 # then define inhibit_libc in LIBGCC2_CFLAGS.
5659 # This prevents libgcc2 from containing any code which requires libc
5662 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
5663 test x
$with_newlib = xyes
; } &&
5664 test "x$with_headers" = x
; then
5665 inhibit_libc
=-Dinhibit_libc
5669 # When building gcc with a cross-compiler, we need to adjust things so
5670 # that the generator programs are still built with the native compiler.
5671 # Also, we cannot run fixincludes or fix-header.
5673 # These are the normal (build=host) settings:
5675 BUILD_PREFIX_1
=ignore-
5676 CC_FOR_BUILD
='$(CC)'
5677 BUILD_CFLAGS
='$(ALL_CFLAGS)'
5679 STMP_FIXINC
=stmp-fixinc
5680 STMP_FIXPROTO
=stmp-fixproto
5682 # And these apply if build != host, or we are generating coverage data
5683 if test x
$build != x
$host ||
test "x$coverage_flags" != x
5686 BUILD_PREFIX_1
=build-
5687 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
5689 if test "x$TARGET_SYSTEM_ROOT" = x
; then
5695 # Expand extra_headers to include complete path.
5696 # This substitutes for lots of t-* files.
5698 if test "x$extra_headers" = x
5701 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
5702 for file in $extra_headers;
5704 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
5708 # Add a definition of USE_COLLECT2 if system wants one.
5709 case $use_collect2 in
5710 no
) use_collect2
= ;;
5713 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
5714 xm_defines
="${xm_defines} USE_COLLECT2"
5718 # Identify the assembler which will work hand-in-glove with the newly
5719 # built GCC, so that we can examine its features. This is the assembler
5720 # which will be driven by the driver program.
5722 # If build != host, and we aren't building gas in-tree, we identify a
5723 # build->target assembler and hope that it will have the same features
5724 # as the host->target assembler we'll be using.
5725 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
5726 echo "configure:5727: checking what assembler to use" >&5
5729 gcc_cv_gas_major_version
=
5730 gcc_cv_gas_minor_version
=
5731 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5732 if test -x "$DEFAULT_ASSEMBLER"; then
5733 gcc_cv_as
="$DEFAULT_ASSEMBLER"
5734 elif test -x "$AS"; then
5736 elif test -x as
$host_exeext; then
5737 # Build using assembler in the current directory.
5738 gcc_cv_as
=.
/as
$host_exeext
5739 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
5740 && test -f ..
/gas
/Makefile
; then
5741 # Single tree build which includes gas.
5743 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
5744 for f
in $gcc_cv_as_bfd_srcdir/configure \
5745 $gcc_cv_as_gas_srcdir/configure \
5746 $gcc_cv_as_gas_srcdir/configure.
in \
5747 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
5748 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5749 if test x
$gcc_cv_gas_version != x
; then
5753 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5754 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5755 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
5757 rm -f as
$host_exeext
5758 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5759 in_tree_gas_is_elf
=no
5760 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
5761 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
5762 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
5764 in_tree_gas_is_elf
=yes
5768 if test "x$gcc_cv_as" = x
; then
5769 # Search the same directories that the installed compiler will
5770 # search. Else we may find the wrong assembler and lose. If we
5771 # do not find a suitable assembler binary, then try the user's
5774 # Also note we have to check MD_EXEC_PREFIX before checking the
5775 # user's path. Unfortunately, there is no good way to get at the
5776 # value of MD_EXEC_PREFIX here. So we do a brute force search
5777 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5778 # to be fixed as part of the make/configure rewrite too.
5780 if test "x$exec_prefix" = xNONE
; then
5781 if test "x$prefix" = xNONE
; then
5782 test_prefix
=/usr
/local
5787 test_prefix
=$exec_prefix
5790 # If the loop below does not find an assembler, then use whatever
5791 # one we can find in the users's path.
5793 if test "x$program_prefix" != xNONE
; then
5794 gcc_cv_as
=${program_prefix}as
$host_exeext
5796 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
5799 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
5800 $test_prefix/lib/gcc-lib/$target_alias \
5801 /usr/lib/gcc/$target_alias/$gcc_version \
5802 /usr/lib/gcc/$target_alias \
5803 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
5804 $test_prefix/$target_alias/bin"
5806 if test x
$host = x
$target; then
5807 test_dirs
="$test_dirs \
5812 /bsd43/usr/lib/cmplrs/cc \
5813 /usr/cross64/usr/bin \
5814 /usr/lib/cmplrs/cc \
5815 /sysv/usr/lib/cmplrs/cc \
5816 /svr4/usr/lib/cmplrs/cc \
5820 for dir
in $test_dirs; do
5821 if test -x $dir/as
$host_exeext; then
5822 gcc_cv_as
=$dir/as
$host_exeext
5827 case $in_tree_gas in
5829 echo "$ac_t"""newly built gas
"" 1>&6
5832 echo "$ac_t""$gcc_cv_as" 1>&6
5836 # Identify the linker which will work hand-in-glove with the newly
5837 # built GCC, so that we can examine its features. This is the linker
5838 # which will be driven by the driver program.
5840 # If build != host, and we aren't building gas in-tree, we identify a
5841 # build->target linker and hope that it will have the same features
5842 # as the host->target linker we'll be using.
5843 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
5844 echo "configure:5845: checking what linker to use" >&5
5847 gcc_cv_gld_major_version
=
5848 gcc_cv_gld_minor_version
=
5849 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
5850 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
5851 if test -x "$DEFAULT_LINKER"; then
5852 gcc_cv_ld
="$DEFAULT_LINKER"
5853 elif test -x "$LD"; then
5855 elif test -x collect-ld
$host_exeext; then
5856 # Build using linker in the current directory.
5857 gcc_cv_ld
=.
/collect-ld
$host_exeext
5858 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
5859 && test -f ..
/ld
/Makefile
; then
5860 # Single tree build which includes ld.
5862 in_tree_ld_is_elf
=no
5863 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
5864 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
5865 in_tree_ld_is_elf
=yes
5867 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
5869 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5870 if test x
$gcc_cv_gld_version != x
; then
5874 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
5875 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5876 rm -f collect-ld
$host_exeext
5877 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
5881 if test "x$gcc_cv_ld" = x
; then
5882 # Search the same directories that the installed compiler will
5883 # search. Else we may find the wrong linker and lose. If we
5884 # do not find a suitable linker binary, then try the user's
5887 # Also note we have to check MD_EXEC_PREFIX before checking the
5888 # user's path. Unfortunately, there is no good way to get at the
5889 # value of MD_EXEC_PREFIX here. So we do a brute force search
5890 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5891 # to be fixed as part of the make/configure rewrite too.
5893 if test "x$exec_prefix" = xNONE
; then
5894 if test "x$prefix" = xNONE
; then
5895 test_prefix
=/usr
/local
5900 test_prefix
=$exec_prefix
5903 # If the loop below does not find an linker, then use whatever
5904 # one we can find in the users's path.
5906 if test "x$program_prefix" != xNONE
; then
5907 gcc_cv_ld
=${program_prefix}ld
$host_exeext
5909 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
5912 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
5913 $test_prefix/lib/gcc-lib/$target_alias \
5914 /usr/lib/gcc/$target_alias/$gcc_version \
5915 /usr/lib/gcc/$target_alias \
5916 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
5917 $test_prefix/$target_alias/bin"
5919 if test x
$host = x
$target; then
5920 test_dirs
="$test_dirs \
5925 /bsd43/usr/lib/cmplrs/cc \
5926 /usr/cross64/usr/bin \
5927 /usr/lib/cmplrs/cc \
5928 /sysv/usr/lib/cmplrs/cc \
5929 /svr4/usr/lib/cmplrs/cc \
5933 for dir
in $test_dirs; do
5934 if test -x $dir/ld
$host_exeext; then
5935 gcc_cv_ld
=$dir/ld
$host_exeext
5942 echo "$ac_t"""newly built ld
"" 1>&6
5945 echo "$ac_t""$gcc_cv_ld" 1>&6
5949 # Figure out what nm we will be using.
5950 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
5951 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
5952 echo "configure:5953: checking what nm to use" >&5
5954 if test -x nm
$host_exeext; then
5955 gcc_cv_nm
=.
/nm
$host_exeext
5956 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
5957 && test -f ..
/binutils
/Makefile
; then
5958 # Single tree build which includes binutils.
5960 gcc_cv_nm
=.
/nm
$host_exeext
5961 rm -f nm
$host_exeext
5962 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
5963 elif test "x$program_prefix" != xNONE
; then
5964 gcc_cv_nm
=${program_prefix}nm
$host_exeext
5966 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
5969 yes) echo "$ac_t"""newly built nm
"" 1>&6 ;;
5970 no
) echo "$ac_t""$gcc_cv_nm" 1>&6 ;;
5973 # Figure out what objdump we will be using.
5974 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
5975 echo "configure:5976: checking what objdump to use" >&5
5977 if test -x objdump
$host_exeext; then
5978 gcc_cv_objdump
=.
/objdump
$host_exeext
5979 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
5980 && test -f ..
/binutils
/Makefile
; then
5981 # Single tree build which includes binutils.
5983 gcc_cv_objdump
=.
/objdump
$host_exeext
5984 rm -f objdump
$host_exeext
5985 $symbolic_link ..
/binutils
/objdump
$host_exeext \
5986 objdump
$host_exeext 2>/dev
/null
5987 elif test "x$program_prefix" != xNONE
; then
5988 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
5990 gcc_cv_objdump
=`echo objdump | \
5991 sed ${program_transform_name}`$host_exeext
5993 case $in_tree_objdump in
5994 yes) echo "$ac_t"""newly built objdump
"" 1>&6 ;;
5995 no
) echo "$ac_t""$gcc_cv_objdump" 1>&6 ;;
5998 # Figure out what assembler alignment features are present.
5999 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
6000 echo "configure:6001: checking assembler alignment features" >&5
6001 gcc_cv_as_alignment_features
=none
6002 if test $in_tree_gas = yes; then
6003 # Gas version 2.6 and later support for .balign and .p2align.
6004 if test $gcc_cv_gas_major_version -eq 2 \
6005 && test $gcc_cv_gas_minor_version -ge 6 \
6006 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6009 gcc_cv_as_alignment_features
=".balign and .p2align"
6010 cat >> confdefs.h
<<\EOF
6011 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6018 # Gas version 2.8 and later support specifying the maximum
6019 # bytes to skip when using .p2align.
6020 if test $gcc_cv_gas_major_version -eq 2 \
6021 && test $gcc_cv_gas_minor_version -ge 8 \
6022 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6025 gcc_cv_as_alignment_features
=".p2align including maximum skip"
6026 cat >> confdefs.h
<<\EOF
6027 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6034 elif test x
$gcc_cv_as != x
; then
6035 # Check if we have .balign and .p2align
6036 echo ".balign 4" > conftest.s
6037 echo ".p2align 2" >> conftest.s
6038 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6039 gcc_cv_as_alignment_features
=".balign and .p2align"
6040 cat >> confdefs.h
<<\EOF
6041 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6045 rm -f conftest.s conftest.o
6046 # Check if specifying the maximum bytes to skip when
6047 # using .p2align is supported.
6048 echo ".p2align 4,,7" > conftest.s
6049 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6050 gcc_cv_as_alignment_features
=".p2align including maximum skip"
6051 cat >> confdefs.h
<<\EOF
6052 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6056 rm -f conftest.s conftest.o
6058 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
6060 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
6061 echo "configure:6062: checking assembler subsection support" >&5
6062 gcc_cv_as_subsections
=no
6063 if test $in_tree_gas = yes ; then
6064 if test $gcc_cv_gas_major_version -eq 2 \
6065 && test $gcc_cv_gas_minor_version -ge 9 \
6066 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6069 test $in_tree_gas_is_elf = yes \
6070 && gcc_cv_as_subsections
="working .subsection -1"
6075 elif test x
$gcc_cv_as != x
; then
6076 # Check if we have .subsection
6077 echo ".subsection 1" > conftest.s
6078 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6079 gcc_cv_as_subsections
=".subsection"
6080 if test x
$gcc_cv_nm != x
; then
6081 cat > conftest.s
<<EOF
6082 conftest_label1: .word 0
6084 conftest_label2: .word 0
6087 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6088 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
6089 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
6090 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
6093 gcc_cv_as_subsections
="working .subsection -1"
6098 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6100 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
6101 cat >> confdefs.h
<<\EOF
6102 #define HAVE_GAS_SUBSECTION_ORDERING 1
6106 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
6108 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
6109 echo "configure:6110: checking assembler weak support" >&5
6111 if test $in_tree_gas = yes ; then
6112 if test $gcc_cv_gas_major_version -eq 2 \
6113 && test $gcc_cv_gas_minor_version -ge 2 \
6114 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6117 gcc_cv_as_weak
="yes"
6122 elif test x
$gcc_cv_as != x
; then
6123 # Check if we have .weak
6124 echo " .weak foobar" > conftest.s
6125 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6126 gcc_cv_as_weak
="yes"
6128 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6130 if test x
"$gcc_cv_as_weak" = xyes
; then
6131 cat >> confdefs.h
<<\EOF
6132 #define HAVE_GAS_WEAK 1
6136 echo "$ac_t""$gcc_cv_as_weak" 1>&6
6138 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
6139 echo "configure:6140: checking assembler hidden support" >&5
6141 if test $in_tree_gas = yes ; then
6142 if test $gcc_cv_gas_major_version -eq 2 \
6143 && (test $gcc_cv_gas_minor_version -gt 12 \
6144 ||
(test $gcc_cv_gas_minor_version -eq 12 \
6145 && test $gcc_cv_gas_patch_version -ge 1 )) \
6146 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6149 test $in_tree_gas_is_elf = yes && gcc_cv_as_hidden
="yes"
6154 elif test x
$gcc_cv_as != x
; then
6155 # Check if we have .hidden
6156 echo " .hidden foobar" > conftest.s
6157 echo "foobar:" >> conftest.s
6158 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6159 gcc_cv_as_hidden
="yes"
6161 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6163 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
6164 # This is irritatingly difficult to feature test for. Look for
6165 # the date string after the version number.
6166 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
6167 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
6168 ld_vers
=`echo $ld_ver | sed -n \
6169 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
6170 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
6171 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
6172 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
6173 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
6174 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
6175 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'`
6176 if test 0"$ld_date" -lt 20020404; then
6177 if test -n "$ld_date"; then
6178 # If there was date string, but was earlier than 2002-04-04, fail
6179 gcc_cv_as_hidden
="no"
6180 elif test -z "$ld_vers"; then
6181 # If there was no date string nor ld version number, something is wrong
6182 gcc_cv_as_hidden
="no"
6184 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
6185 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
6186 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6187 test -z "$ld_vers_patch" && ld_vers_patch
=0
6188 if test "$ld_vers_major" -lt 2; then
6189 gcc_cv_as_hidden
="no"
6190 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
6191 gcc_cv_as_hidden
="no"
6192 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
6193 -a "$ld_vers_patch" -eq 0; then
6194 gcc_cv_as_hidden
="no"
6202 if test x
"$gnu_ld_flag" = x
"no"; then
6203 # Even if using gas with .hidden support, the resulting object files
6204 # cannot be linked with the IRIX 6 O32 linker. With the N32 and
6205 # N64 linkers, the problem is that the linker refuses to accept
6206 # -call_shared (passed by default to the linker) and -r (used to
6207 # link the object file generated without .hidden directives with
6208 # one that hides symbols), so we also lose.
6213 if test x
"$gcc_cv_as_hidden" = xyes
; then
6214 cat >> confdefs.h
<<\EOF
6215 #define HAVE_GAS_HIDDEN 1
6219 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
6220 libgcc_visibility
=$gcc_cv_as_hidden
6223 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
6224 echo "configure:6225: checking assembler leb128 support" >&5
6226 if test $in_tree_gas = yes ; then
6227 if test $gcc_cv_gas_major_version -eq 2 \
6228 && test $gcc_cv_gas_minor_version -ge 11 \
6229 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6232 test $in_tree_gas_is_elf = yes && gcc_cv_as_leb128
="yes"
6237 elif test x
$gcc_cv_as != x
; then
6238 # Check if we have .[us]leb128, and support symbol arithmetic with it.
6239 cat > conftest.s
<<EOF
6247 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6248 gcc_cv_as_leb128
="yes"
6250 # GAS versions before 2.11 do not support uleb128,
6251 # despite appearing to.
6252 # ??? There exists an elf-specific test that will crash
6253 # the assembler. Perhaps it's better to figure out whether
6254 # arbitrary sections are supported and try the test.
6255 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
6256 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
6257 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
6258 as_major
=`echo $as_ver | sed 's/\..*//'`
6259 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
6260 if test $as_major -eq 2 -a $as_minor -lt 11; then
6261 gcc_cv_as_leb128
="no"
6265 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6267 if test x
"$gcc_cv_as_leb128" = xyes
; then
6268 cat >> confdefs.h
<<\EOF
6269 #define HAVE_AS_LEB128 1
6273 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
6275 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
6276 echo "configure:6277: checking assembler eh_frame optimization" >&5
6277 gcc_cv_as_eh_frame
=no
6278 if test $in_tree_gas = yes ; then
6279 if test $gcc_cv_gas_major_version -eq 2 \
6280 && test $gcc_cv_gas_minor_version -ge 12 \
6281 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6284 test $in_tree_gas_is_elf = yes && gcc_cv_as_eh_frame
="yes"
6289 elif test x
$gcc_cv_as != x
; then
6290 # Check if this is GAS.
6291 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
6292 rm -f a.out
2> /dev
/null
6293 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
6294 # Versions up to and including 2.11.0 may mis-optimize
6295 # .eh_frame data. Try something.
6296 cat > conftest.s
<<EOF
6303 .section .eh_frame,"aw",@progbits
6305 .4byte .LECIE1-.LSCIE1
6319 .4byte .LEFDE1-.LASFDE1
6321 .4byte .LASFDE1-__FRAME_BEGIN__
6330 cat > conftest.lit
<<EOF
6331 0000 10000000 00000000 017a0001 781a0004 .........z..x...
6332 0010 01000000 12000000 18000000 00000000 ................
6333 0020 08000000 04080000 0044 .........D
6335 cat > conftest.big
<<EOF
6336 0000 00000010 00000000 017a0001 781a0004 .........z..x...
6337 0010 00000001 00000012 00000018 00000000 ................
6338 0020 00000008 04000000 0844 .........D
6340 # If the assembler didn't choke, and we can objdump,
6341 # and we got the correct data, then succeed.
6342 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
6343 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
6344 |
tail -3 > conftest.got \
6345 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
6346 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
6348 gcc_cv_as_eh_frame
="yes"
6350 gcc_cv_as_eh_frame
="bad"
6351 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
6352 cat >> confdefs.h
<<\EOF
6353 #define USE_AS_TRADITIONAL_FORMAT 1
6361 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
6363 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
6364 echo "configure:6365: checking assembler section merging support" >&5
6365 gcc_cv_as_shf_merge
=no
6366 if test $in_tree_gas = yes ; then
6367 if test $gcc_cv_gas_major_version -eq 2 \
6368 && test $gcc_cv_gas_minor_version -ge 12 \
6369 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6372 test $in_tree_gas_is_elf = yes && gcc_cv_as_shf_merge
="yes"
6377 elif test x
$gcc_cv_as != x
; then
6378 # Check if we support SHF_MERGE sections
6379 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
6380 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
6381 gcc_cv_as_shf_merge
=yes
6383 rm -f conftest.s conftest.o
6385 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
6386 cat >> confdefs.h
<<\EOF
6387 #define HAVE_GAS_SHF_MERGE 1
6391 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
6393 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6
6394 echo "configure:6395: checking assembler thread-local storage support" >&5
6403 .section ".tdata","awT",@progbits
6406 ldq $27,__tls_get_addr($29) !literal!1
6407 lda $16,foo($29) !tlsgd!1
6408 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
6409 ldq $27,__tls_get_addr($29) !literal!2
6410 lda $16,foo($29) !tlsldm!2
6411 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
6412 ldq $1,foo($29) !gotdtprel
6413 ldah $2,foo($29) !dtprelhi
6414 lda $3,foo($2) !dtprello
6415 lda $4,foo($29) !dtprel
6416 ldq $1,foo($29) !gottprel
6417 ldah $2,foo($29) !tprelhi
6418 lda $3,foo($2) !tprello
6419 lda $4,foo($29) !tprel'
6425 .section ".tdata","awT",@progbits
6429 leal foo@TLSGD(,%ebx,1), %eax
6430 leal foo@TLSLDM(%ebx), %eax
6431 leal foo@DTPOFF(%eax), %edx
6432 movl foo@GOTTPOFF(%ebx), %eax
6433 subl foo@GOTTPOFF(%ebx), %eax
6434 addl foo@GOTNTPOFF(%ebx), %eax
6435 movl foo@INDNTPOFF, %eax
6436 movl $foo@TPOFF, %eax
6437 subl $foo@TPOFF, %eax
6438 leal foo@NTPOFF(%ecx), %eax'
6444 .section ".tdata","awT",@progbits
6448 leaq foo@TLSGD(%rip), %rdi
6449 leaq foo@TLSLD(%rip), %rdi
6450 leaq foo@DTPOFF(%rax), %rdx
6451 movq foo@GOTTPOFF(%rip), %rax
6452 movq $foo@TPOFF, %rax'
6458 .section ".tdata","awT",@progbits
6461 addl r16 = @ltoff(@dtpmod(foo#)), gp
6462 addl r17 = @ltoff(@dtprel(foo#)), gp
6463 addl r18 = @ltoff(@tprel(foo#)), gp
6464 addl r19 = @dtprel(foo#), gp
6465 adds r21 = @dtprel(foo#), r13
6466 movl r23 = @dtprel(foo#)
6467 addl r20 = @tprel(foo#), gp
6468 adds r22 = @tprel(foo#), r13
6469 movl r24 = @tprel(foo#)'
6475 .section ".tdata","awT",@progbits
6483 addi 3,31,ld0@got@tlsgd
6485 addi 3,31,x1@got@tlsld
6488 addis 9,3,x2@dtprel@ha
6489 addi 9,9,x2@dtprel@l
6490 lwz 9,x3@got@tprel(31)
6493 addis 9,2,x2@tprel@ha
6494 addi 9,9,x2@tprel@l'
6501 .section ".tdata","awT",@progbits
6509 addi 3,2,ld0@got@tlsgd
6515 addi 3,2,x1@got@tlsld
6521 addis 9,3,x2@dtprel@ha
6522 addi 9,9,x2@dtprel@l
6525 ld 9,x3@got@dtprel(2)
6535 .section ".tdata","awT",@progbits
6544 l %r1,foo@GOTNTPOFF(%r12)
6545 l %r1,0(%r1):tls_load:foo
6546 bas %r14,0(%r1,%r13):tls_gdcall:foo
6547 bas %r14,0(%r1,%r13):tls_ldcall:foo'
6554 .section ".tdata","awT",@progbits
6562 lg %r1,foo@GOTNTPOFF(%r12)
6563 larl %r1,foo@INDNTPOFF
6564 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
6565 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
6568 tls_as_opt
="-m64 -Aesame"
6571 if test -z "$tls_first_major"; then
6573 elif test $in_tree_gas = yes ; then
6574 if test $gcc_cv_gas_major_version -eq $tls_first_major \
6575 && test $gcc_cv_gas_minor_version -ge $tls_first_minor \
6576 ||
test $gcc_cv_gas_major_version -gt $tls_first_major ; then
6584 elif test x
$gcc_cv_as != x
; then
6585 echo "$conftest_s" > conftest.s
6586 if $gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
6590 rm -f conftest.s conftest.o
6592 if test "$gcc_cv_as_tls" = yes; then
6593 cat >> confdefs.h
<<\EOF
6594 #define HAVE_AS_TLS 1
6598 echo "$ac_t""$gcc_cv_as_tls" 1>&6
6601 # All TARGET_ABI_OSF targets.
6602 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
6603 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
6604 echo "configure:6605: checking assembler supports explicit relocations" >&5
6605 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6609 gcc_cv_as_explicit_relocs
=unknown
6610 if test $in_tree_gas = yes ; then
6611 if test $gcc_cv_gas_major_version -eq 2 \
6612 && test $gcc_cv_gas_minor_version -ge 12 \
6613 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6616 gcc_cv_as_explicit_relocs
=yes
6621 elif test x
$gcc_cv_as != x
; then
6622 cat > conftest.s
<< 'EOF'
6625 extbl
$3, $2, $3 !lituse_bytoff
!1
6626 ldq
$2, a
($29) !literal
!1
6627 ldq
$4, b
($29) !literal
!2
6628 ldq_u
$3, 0($2) !lituse_base
!1
6629 ldq
$27, f
($29) !literal
!5
6630 jsr
$26, ($27), f
!lituse_jsr
!5
6631 ldah
$29, 0($26) !gpdisp
!3
6632 lda
$0, c
($29) !gprel
6633 ldah
$1, d
($29) !gprelhigh
6634 lda
$1, d
($1) !gprellow
6635 lda
$29, 0($29) !gpdisp
!3
6637 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6638 gcc_cv_as_explicit_relocs
=yes
6640 gcc_cv_as_explicit_relocs
=no
6642 rm -f conftest.s conftest.o
6647 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
6648 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
6649 cat >> confdefs.h
<<\EOF
6650 #define HAVE_AS_EXPLICIT_RELOCS 1
6656 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
6657 echo "configure:6658: checking assembler .register pseudo-op support" >&5
6658 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6662 gcc_cv_as_register_pseudo_op
=unknown
6663 if test x
$gcc_cv_as != x
; then
6664 # Check if we have .register
6665 echo ".register %g2, #scratch" > conftest.s
6666 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6667 gcc_cv_as_register_pseudo_op
=yes
6669 gcc_cv_as_register_pseudo_op
=no
6671 rm -f conftest.s conftest.o
6676 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
6677 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
6678 cat >> confdefs.h
<<\EOF
6679 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6684 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
6685 echo "configure:6686: checking assembler supports -relax" >&5
6686 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
6687 echo $ac_n "(cached) $ac_c" 1>&6
6690 gcc_cv_as_relax_opt
=unknown
6691 if test x
$gcc_cv_as != x
; then
6692 # Check if gas supports -relax
6693 echo ".text" > conftest.s
6694 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
6695 gcc_cv_as_relax_opt
=yes
6697 gcc_cv_as_relax_opt
=no
6699 rm -f conftest.s conftest.o
6704 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
6705 if test "x$gcc_cv_as_relax_opt" = xyes
; then
6706 cat >> confdefs.h
<<\EOF
6707 #define HAVE_AS_RELAX_OPTION 1
6712 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
6713 echo "configure:6714: checking assembler and linker support unaligned pc related relocs" >&5
6714 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6718 gcc_cv_as_sparc_ua_pcrel
=unknown
6719 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
6720 gcc_cv_as_sparc_ua_pcrel
=no
6721 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
6722 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
6723 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
6724 gcc_cv_as_sparc_ua_pcrel
=yes
6726 rm -f conftest.s conftest.o conftest
6731 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
6732 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
6733 cat >> confdefs.h
<<\EOF
6734 #define HAVE_AS_SPARC_UA_PCREL 1
6739 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
6740 echo "configure:6741: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
6741 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6745 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
6746 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
6747 if test x
$gcc_cv_objdump != x
; then
6748 gcc_cv_as_sparc_ua_pcrel_hidden
=no
6749 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
6750 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
6751 echo "foo: .skip 4" >> conftest.s
6752 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
6753 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
6754 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
6755 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
6756 if $gcc_cv_objdump -R conftest
2> /dev
/null \
6757 |
grep 'DISP32' > /dev
/null
2>&1; then
6760 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
6764 rm -f conftest.s conftest.o conftest
6766 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
6771 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
6772 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
6773 cat >> confdefs.h
<<\EOF
6774 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
6779 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6780 echo "configure:6781: checking for assembler offsetable %lo() support" >&5
6781 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6785 gcc_cv_as_offsetable_lo10
=unknown
6786 if test "x$gcc_cv_as" != x
; then
6787 # Check if assembler has offsetable %lo()
6788 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6789 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6790 if $gcc_cv_as -xarch=v9
-o conftest.o conftest.s \
6792 $gcc_cv_as -xarch=v9
-o conftest1.o conftest1.s \
6793 > /dev
/null
2>&1; then
6794 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
6795 gcc_cv_as_offsetable_lo10
=no
6797 gcc_cv_as_offsetable_lo10
=yes
6800 gcc_cv_as_offsetable_lo10
=no
6802 rm -f conftest.s conftest.o conftest1.s conftest1.o
6807 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6808 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
6809 cat >> confdefs.h
<<\EOF
6810 #define HAVE_AS_OFFSETABLE_LO10 1
6817 i
[34567]86-*-* | x86_64-
*-*)
6818 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6819 echo "configure:6820: checking assembler instructions" >&5
6820 gcc_cv_as_instructions
=
6821 if test $in_tree_gas = yes ; then
6822 if test $gcc_cv_gas_major_version -eq 2 \
6823 && test $gcc_cv_gas_minor_version -ge 9 \
6824 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6827 gcc_cv_as_instructions
="filds fists"
6832 elif test x
$gcc_cv_as != x
; then
6833 set "filds fists" "filds mem; fists mem"
6836 echo "$2" > conftest.s
6837 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6838 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
6842 rm -f conftest.s conftest.o
6844 if test x
"$gcc_cv_as_instructions" != x
; then
6845 cat >> confdefs.h
<<EOF
6846 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6850 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6852 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
6853 echo "configure:6854: checking assembler GOTOFF in data directives" >&5
6854 gcc_cv_as_gotoff_in_data
=no
6855 if test $in_tree_gas = yes ; then
6856 if test $gcc_cv_gas_major_version -eq 2 \
6857 && test $gcc_cv_gas_minor_version -ge 11 \
6858 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6861 gcc_cv_as_gotoff_in_data
=yes
6866 elif test x
$gcc_cv_as != x
; then
6867 cat > conftest.s
<<EOF
6874 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6875 gcc_cv_as_gotoff_in_data
=yes
6878 cat >> confdefs.h
<<EOF
6879 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
6882 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
6886 echo $ac_n "checking assembler supports ltoffx and ldxmov""... $ac_c" 1>&6
6887 echo "configure:6888: checking assembler supports ltoffx and ldxmov" >&5
6888 if eval "test \"`echo '$''{'gcc_cv_as_ltoffx_ldxmov_relocs'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6892 gcc_cv_as_ltoffx_ldxmov_relocs
=unknown
6893 if test $in_tree_gas = yes ; then
6894 if test $gcc_cv_gas_major_version -eq 2 \
6895 && test $gcc_cv_gas_minor_version -ge 14 \
6896 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6899 gcc_cv_as_ltoffx_ldxmov_relocs
=yes
6904 elif test x
$gcc_cv_as != x
; then
6905 cat > conftest.s
<< 'EOF'
6907 addl r15
= @ltoffx
(x
#), gp
6909 ld8.mov r16
= [r15
], x
#
6911 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6912 gcc_cv_as_ltoffx_ldxmov_relocs
=yes
6914 gcc_cv_as_ltoffx_ldxmov_relocs
=no
6916 rm -f conftest.s conftest.o
6921 echo "$ac_t""$gcc_cv_as_ltoffx_ldxmov_relocs" 1>&6
6922 if test "x$gcc_cv_as_ltoffx_ldxmov_relocs" = xyes
; then
6923 cat >> confdefs.h
<<\EOF
6924 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
6930 echo $ac_n "checking assembler supports mfcr field""... $ac_c" 1>&6
6931 echo "configure:6932: checking assembler supports mfcr field" >&5
6932 if eval "test \"`echo '$''{'gcc_cv_as_mfcrf'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6936 gcc_cv_as_mfcrf
=unknown
6937 if test $in_tree_gas = yes ; then
6938 if test $gcc_cv_gas_major_version -eq 2 \
6939 && test $gcc_cv_gas_minor_version -ge 14 \
6940 ||
test $gcc_cv_gas_major_version -gt 2 ; then
6948 elif test x
$gcc_cv_as != x
; then
6949 cat > conftest.s
<< 'EOF'
6960 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6965 rm -f conftest.s conftest.o
6970 echo "$ac_t""$gcc_cv_as_mfcrf" 1>&6
6971 if test "x$gcc_cv_as_mfcrf" = xyes
; then
6972 cat >> confdefs.h
<<\EOF
6973 #define HAVE_AS_MFCRF 1
6980 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6981 echo "configure:6982: checking assembler dwarf2 debug_line support" >&5
6982 gcc_cv_as_dwarf2_debug_line
=no
6983 # ??? Not all targets support dwarf2 debug_line, even within a version
6984 # of gas. Moreover, we need to emit a valid instruction to trigger any
6985 # info to the output file. So, as supported targets are added to gas 2.11,
6986 # add some instruction here to (also) show we expect this might work.
6987 # ??? Once 2.11 is released, probably need to add first known working
6988 # version to the per-target configury.
6990 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
6991 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
6992 | xstormy16
*-*-* | cris-
*-*)
7002 if test $in_tree_gas = yes ; then
7003 if test $gcc_cv_gas_major_version -eq 2 \
7004 && test $gcc_cv_gas_minor_version -ge 11 \
7005 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7008 test $in_tree_gas_is_elf = yes && test x
"$insn" != x \
7009 && gcc_cv_as_dwarf2_debug_line
="yes"
7014 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7015 echo ' .file 1 "conftest.s"' > conftest.s
7016 echo ' .loc 1 3 0' >> conftest.s
7017 echo " $insn" >> conftest.s
7018 # ??? This fails with non-gnu grep.
7019 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7020 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7021 # The .debug_line file table must be in the exact order that
7022 # we specified the files, since these indices are also used
7023 # by DW_AT_decl_file. Approximate this test by testing if
7024 # the assembler bitches if the same index is assigned twice.
7025 echo ' .file 1 "foo.s"' > conftest.s
7026 echo ' .file 1 "bar.s"' >> conftest.s
7027 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7029 gcc_cv_as_dwarf2_debug_line
="no"
7031 gcc_cv_as_dwarf2_debug_line
="yes"
7034 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7036 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7037 cat >> confdefs.h
<<\EOF
7038 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7042 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7044 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7045 echo "configure:7046: checking assembler --gdwarf2 support" >&5
7046 gcc_cv_as_gdwarf2_flag
=no
7047 if test $in_tree_gas = yes ; then
7048 if test $gcc_cv_gas_major_version -eq 2 \
7049 && test $gcc_cv_gas_minor_version -ge 11 \
7050 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7053 test $in_tree_gas_is_elf = yes && test x
"$insn" != x \
7054 && gcc_cv_as_gdwarf2_flag
="yes"
7059 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7060 echo '' > conftest.s
7061 # ??? This fails with non-gnu grep.
7062 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7064 gcc_cv_as_gdwarf2_flag
="yes"
7066 rm -f conftest.s conftest.o
7068 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7069 cat >> confdefs.h
<<\EOF
7070 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7074 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7076 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7077 echo "configure:7078: checking assembler --gstabs support" >&5
7078 gcc_cv_as_gstabs_flag
=no
7079 if test $in_tree_gas = yes ; then
7080 if test $gcc_cv_gas_major_version -eq 2 \
7081 && test $gcc_cv_gas_minor_version -ge 11 \
7082 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7085 test $in_tree_gas_is_elf = yes && test x
"$insn" != x \
7086 && gcc_cv_as_gstabs_flag
="yes"
7091 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7092 echo '' > conftest.s
7093 # ??? This fails with non-gnu grep.
7094 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7095 gcc_cv_as_gstabs_flag
="yes"
7096 # The native Solaris 9/Intel assembler doesn't understand --gstabs
7097 # and warns about it, but still exits successfully. So check for
7099 if $gcc_cv_as --gstabs -o conftest.o conftest.s
2>&1 | \
7100 grep -i warning
> /dev
/null
; then
7101 gcc_cv_as_gstabs_flag
="no"
7104 rm -f conftest.s conftest.o
7106 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7107 cat >> confdefs.h
<<\EOF
7108 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7112 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7114 echo $ac_n "checking linker read-only and read-write section mixing""... $ac_c" 1>&6
7115 echo "configure:7116: checking linker read-only and read-write section mixing" >&5
7116 gcc_cv_ld_ro_rw_mix
=unknown
7117 if test $in_tree_ld = yes ; then
7118 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 \
7119 && test $in_tree_ld_is_elf = yes; then
7120 gcc_cv_ld_ro_rw_mix
=read-write
7122 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
7123 echo '.section myfoosect, "a"' > conftest1.s
7124 echo '.section myfoosect, "aw"' > conftest2.s
7125 echo '.byte 1' >> conftest2.s
7126 echo '.section myfoosect, "a"' > conftest3.s
7127 echo '.byte 0' >> conftest3.s
7128 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
7129 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
7130 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
7131 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
7132 conftest2.o conftest3.o
> /dev
/null
2>&1; then
7133 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
7134 | sed -e '/myfoosect/!d' -e N`
7135 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
7136 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
7137 gcc_cv_ld_ro_rw_mix
=read-only
7139 gcc_cv_ld_ro_rw_mix
=read-write
7143 rm -f conftest.
* conftest
[123].
*
7145 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
7146 cat >> confdefs.h
<<\EOF
7147 #define HAVE_LD_RO_RW_SECTION_MIXING 1
7151 echo "$ac_t""$gcc_cv_ld_ro_rw_mix" 1>&6
7153 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7154 echo "configure:7155: checking linker PT_GNU_EH_FRAME support" >&5
7155 gcc_cv_ld_eh_frame_hdr
=no
7156 if test $in_tree_ld = yes ; then
7157 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 \
7158 && test $in_tree_ld_is_elf = yes; then
7159 gcc_cv_ld_eh_frame_hdr
=yes
7161 elif test x
$gcc_cv_ld != x
; then
7162 # Check if linker supports --eh-frame-hdr option
7163 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7164 gcc_cv_ld_eh_frame_hdr
=yes
7167 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7168 cat >> confdefs.h
<<\EOF
7169 #define HAVE_LD_EH_FRAME_HDR 1
7173 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7175 echo $ac_n "checking linker position independent executable support""... $ac_c" 1>&6
7176 echo "configure:7177: checking linker position independent executable support" >&5
7178 if test $in_tree_ld = yes ; then
7179 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 \
7180 && test $in_tree_ld_is_elf = yes; then
7183 elif test x
$gcc_cv_ld != x
; then
7184 # Check if linker supports -pie option
7185 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
7189 if test x
"$gcc_cv_ld_pie" = xyes
; then
7190 cat >> confdefs.h
<<\EOF
7191 #define HAVE_LD_PIE 1
7195 echo "$ac_t""$gcc_cv_ld_pie" 1>&6
7197 # Miscellaneous target-specific checks.
7200 echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6
7201 echo "configure:7202: checking whether libgloss uses STARTUP directives consistently" >&5
7202 gcc_cv_mips_libgloss_startup
=no
7203 gcc_cv_libgloss_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
7204 if test "x$exec_prefix" = xNONE
; then
7205 if test "x$prefix" = xNONE
; then
7206 test_prefix
=/usr
/local
7211 test_prefix
=$exec_prefix
7213 for f
in $gcc_cv_libgloss_srcdir/mips
/idt.ld
$test_prefix/$target_alias/lib
/idt.ld
7215 if grep '^STARTUP' $f > /dev
/null
2>&1; then
7216 gcc_cv_mips_libgloss_startup
=yes
7220 if test x
"$gcc_cv_mips_libgloss_startup" = xyes
; then
7221 cat >> confdefs.h
<<\EOF
7222 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
7226 echo "$ac_t""$gcc_cv_mips_libgloss_startup" 1>&6
7228 echo $ac_n "checking whether the assembler has explicit relocation support""... $ac_c" 1>&6
7229 echo "configure:7230: checking whether the assembler has explicit relocation support" >&5
7230 if test x
$gcc_cv_mips_explicit_relocs = x
; then
7231 gcc_cv_mips_explicit_relocs
=no
7232 if test $in_tree_gas = yes; then
7233 if test $gcc_cv_gas_major_version -eq 2 \
7234 && test $gcc_cv_gas_minor_version -ge 14 \
7235 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7238 gcc_cv_mips_explicit_relocs
=yes
7243 elif test x
$gcc_cv_as != x
; then
7244 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
7245 if $gcc_cv_as conftest.s
-o conftest.o
> /dev
/null
2>&1; then
7246 gcc_cv_mips_explicit_relocs
=yes
7248 rm -f conftest.s conftest.o
7251 if test $gcc_cv_mips_explicit_relocs = yes; then
7252 test x
$target_cpu_default != x || target_cpu_default
=0
7253 target_cpu_default
="(${target_cpu_default}|MASK_EXPLICIT_RELOCS)"
7255 echo "$ac_t""$gcc_cv_mips_explicit_relocs" 1>&6
7259 if test x
$with_sysroot = x
&& test x
$host = x
$target \
7260 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
7261 cat >> confdefs.h
<<EOF
7262 #define PREFIX_INCLUDE_DIR "$prefix/include"
7267 # Figure out what language subdirectories are present.
7268 # Look if the user specified --enable-languages="..."; if not, use
7269 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7271 # NB: embedded tabs in this IF block -- do not untabify
7272 if test x
"${enable_languages+set}" != xset
; then
7273 if test x
"${LANGUAGES+set}" = xset
; then
7274 enable_languages
="${LANGUAGES}"
7275 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7278 enable_languages
=all
7281 if test x
"${enable_languages}" = x \
7282 ||
test x
"${enable_languages}" = xyes
;
7284 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7287 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7289 # First scan to see if an enabled language requires some other language.
7290 # We assume that a given config-lang.in will list all the language
7291 # front ends it requires, even if some are required indirectly.
7292 for lang
in ${srcdir}/*/config-lang.
in ..
7297 # The odd quoting in the next line works around
7298 # an apparent bug in bash 1.12 on linux.
7299 ${srcdir}/[*]/config-lang.
in)
7302 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7303 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7304 for other
in $this_lang_requires
7306 case ,${enable_languages}, in
7312 enable_languages
="$enable_languages,$other"
7320 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
7323 for lang
in ${srcdir}/*/config-lang.
in ..
7327 # The odd quoting in the next line works around
7328 # an apparent bug in bash 1.12 on linux.
7329 ${srcdir}/[*]/config-lang.
in) ;;
7331 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7332 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7333 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7334 if test "x$lang_alias" = x
7336 echo "$lang doesn't set \$language." 1>&2
7339 case ${build_by_default},${enable_languages}, in
7340 *,$lang_alias,*) add_this_lang
=yes ;;
7341 no
,*) add_this_lang
=no
;;
7342 *,all
,*) add_this_lang
=yes ;;
7343 *) add_this_lang
=no
;;
7345 found_languages
="${found_languages} ${lang_alias}"
7346 if test x
"${add_this_lang}" = xyes
; then
7348 ${srcdir}/ada
/config-lang.
in)
7349 if test x
$have_gnat = xyes
; then
7350 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7354 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7363 for expected_language
in ${expected_languages} ..
7365 if test "${expected_language}" != ..
; then
7366 missing_language
="${expected_language}"
7367 if test "${expected_language}" = "c" \
7368 ||
test "${expected_language}" = "all"; then
7371 for found_language
in ${found_languages} ..
7373 if test "${found_language}" != ..
; then
7374 if test "${expected_language}" = "${found_language}"; then
7379 if test "x${missing_language}" != x
; then
7380 missing_languages
="${missing_languages} ${missing_language}"
7385 if test "x$missing_languages" != x
; then
7386 { echo "configure: error:
7387 The following requested languages were not found:${missing_languages}
7388 The following languages were available: c${found_languages}" 1>&2; exit 1; }
7391 # Make gthr-default.h if we have a thread file.
7393 if test $thread_file != single
; then
7394 rm -f gthr-default.h
7395 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7396 gthread_flags
=-DHAVE_GTHR_DEFAULT
7400 # Find out what GC implementation we want, or may, use.
7401 # Check whether --with-gc or --without-gc was given.
7402 if test "${with_gc+set}" = set; then
7409 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7417 echo "Using $GGC for garbage collection."
7419 # Use the system's zlib library.
7421 zlibinc
="-I\$(srcdir)/../zlib"
7422 # Check whether --with-system-zlib or --without-system-zlib was given.
7423 if test "${with_system_zlib+set}" = set; then
7424 withval
="$with_system_zlib"
7434 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7435 echo "configure:7436: checking whether to enable maintainer-specific portions of Makefiles" >&5
7436 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7437 if test "${enable_maintainer_mode+set}" = set; then
7438 enableval
="$enable_maintainer_mode"
7439 maintainer_mode
=$enableval
7445 echo "$ac_t""$maintainer_mode" 1>&6
7447 if test "$maintainer_mode" = "yes"; then
7453 # Make empty files to contain the specs and options for each language.
7454 # Then add #include lines to for a compiler that has specs and/or options.
7460 for subdir
in .
$subdirs
7462 if test -f $srcdir/$subdir/lang.opt
; then
7463 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
7465 if test -f $srcdir/$subdir/lang-specs.h
; then
7466 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7468 if test -f $srcdir/$subdir/lang-options.h
; then
7469 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
7471 if test -f $srcdir/$subdir/$subdir-tree.def
; then
7472 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7476 # These (without "all_") are set in each config-lang.in.
7477 # `language' must be a single word so is spelled singularly.
7482 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
7483 # List of language makefile fragments.
7485 # Files for gengtype
7486 all_gtfiles
="$target_gtfiles"
7487 # Files for gengtype with language
7488 all_gtfiles_files_langs
=
7489 all_gtfiles_files_files
=
7491 # Add the language fragments.
7492 # Languages are added via two mechanisms. Some information must be
7493 # recorded in makefile variables, these are defined in config-lang.in.
7494 # We accumulate them and plug them into the main Makefile.
7495 # The other mechanism is a set of hooks for each of the main targets
7496 # like `clean', `install', etc.
7498 language_fragments
="Make-lang"
7499 language_hooks
="Make-hooks"
7501 for s
in ..
$subdirs
7511 .
${srcdir}/$s/config-lang.
in
7512 if test "x$language" = x
7514 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7517 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
7518 if test -f ${srcdir}/$s/Makefile.
in
7519 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
7521 all_languages
="$all_languages $language"
7522 if test "x$boot_language" = xyes
7524 all_boot_languages
="$all_boot_languages $language"
7526 all_compilers
="$all_compilers $compilers"
7527 all_stagestuff
="$all_stagestuff $stagestuff"
7528 all_outputs
="$all_outputs $outputs"
7529 all_gtfiles
="$all_gtfiles $gtfiles"
7530 for f
in ..
$gtfiles
7534 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
7535 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
7541 # Pick up gtfiles for c
7544 .
${srcdir}/c-config-lang.
in
7545 all_gtfiles
="$all_gtfiles $gtfiles"
7546 for f
in ..
$gtfiles
7550 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
7551 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
7556 for language
in ..
$all_languages
7558 if test $language != ".."
7560 check_languages
="$check_languages check-$language"
7564 # Since we can't use `::' targets, we link each language in
7565 # with a set of hooks, reached indirectly via lang.${target}.
7569 target_list
="all.build all.cross start.encap rest.encap tags \
7570 info dvi generated-manpages \
7571 install-normal install-common install-info install-man \
7573 mostlyclean clean distclean extraclean maintainer-clean \
7574 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
7575 for t
in $target_list
7578 for lang
in ..
$all_languages
7580 if test $lang != ".."; then
7584 echo "lang.$t: $x" >> Make-hooks
7589 echo "dir ." > .gdbinit
7590 echo "dir ${srcdir}" >> .gdbinit
7591 if test x
$gdb_needs_out_file_path = xyes
7593 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7595 if test "x$subdirs" != x
; then
7598 echo "dir ${srcdir}/$s" >> .gdbinit
7601 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
7603 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
7604 # absolute path for gcc_tooldir based on inserting the number of up-directory
7605 # movements required to get from $(exec_prefix) to $(prefix) into the basic
7606 # $(libsubdir)/@(unlibsubdir) based path.
7607 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
7608 # make and thus we'd get different behavior depending on where we built the
7610 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
7611 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
7613 # An explanation of the sed strings:
7614 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
7615 # -e 's|/$||' match a trailing forward slash and eliminates it
7616 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
7617 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
7619 # (*) Note this pattern overwrites the first character of the string
7620 # with a forward slash if one is not already present. This is not a
7621 # problem because the exact names of the sub-directories concerned is
7622 # unimportant, just the number of them matters.
7624 # The practical upshot of these patterns is like this:
7626 # prefix exec_prefix result
7627 # ------ ----------- ------
7629 # /foo/ /foo/bar ../
7630 # /foo /foo/bar/ ../
7631 # /foo/ /foo/bar/ ../
7632 # /foo /foo/bar/ugg ../../
7635 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
7640 # Find a directory in which to install a shared libgcc.
7642 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
7643 if test "${enable_version_specific_runtime_libs+set}" = set; then
7644 enableval
="$enable_version_specific_runtime_libs"
7649 # Check whether --with-slibdir or --without-slibdir was given.
7650 if test "${with_slibdir+set}" = set; then
7651 withval
="$with_slibdir"
7652 slibdir
="$with_slibdir"
7654 if test "${enable_version_specific_runtime_libs+set}" = set; then
7655 slibdir
='$(libsubdir)'
7656 elif test "$host" != "$target"; then
7657 slibdir
='$(build_tooldir)/lib'
7665 objdir
=`${PWDCMD-pwd}`
7668 # Process the language and host/target makefile fragments.
7669 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
7671 # Substitute configuration variables
7742 # Echo that links are built
7743 if test x
$host = x
$target
7751 if test x
$host != x
$build
7753 str3
=" on a $build system"
7756 if test "x$str2" != x ||
test "x$str3" != x
7761 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
7763 if test "x$str2" != x ||
test "x$str3" != x
7765 echo " ${str2}${str3}." 1>&2
7768 # Configure the subdirectories
7769 # AC_CONFIG_SUBDIRS($subdirs)
7771 # Create the Makefile
7772 # and configure language subdirectories
7774 cat > confcache
<<\EOF
7775 # This file is a shell script that caches the results of configure
7776 # tests run on this system so they can be shared between configure
7777 # scripts and configure runs. It is not useful on other systems.
7778 # If it contains results you don't want to keep, you may remove or edit it.
7780 # By default, configure uses ./config.cache as the cache file,
7781 # creating it if it does not exist already. You can give configure
7782 # the --cache-file=FILE option to use a different cache file; that is
7783 # what configure does when it calls configure scripts in
7784 # subdirectories, so they share the cache.
7785 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7786 # config.status only pays attention to the cache file if you give it the
7787 # --recheck option to rerun configure.
7790 # The following way of writing the cache mishandles newlines in values,
7791 # but we know of no workaround that is simple, portable, and efficient.
7792 # So, don't put newlines in cache variables' values.
7793 # Ultrix sh set writes to stderr and can't be redirected directly,
7794 # and sets the high bit in the cache file unless we assign to the vars.
7796 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7798 # `set' does not quote correctly, so add quotes (double-quote substitution
7799 # turns \\\\ into \\, and sed turns \\ into \).
7801 -e "s/'/'\\\\''/g" \
7802 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7805 # `set' quotes correctly as required by POSIX, so do not add quotes.
7806 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7809 if cmp -s $cache_file confcache
; then
7812 if test -w $cache_file; then
7813 echo "updating cache $cache_file"
7814 cat confcache
> $cache_file
7816 echo "not updating unwritable cache $cache_file"
7821 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7823 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7824 # Let make expand exec_prefix.
7825 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7827 # Any assignment to VPATH causes Sun make to only execute
7828 # the first set of double-colon rules, so remove it if not needed.
7829 # If there is a colon in the path, we need to keep it.
7830 if test "x$srcdir" = x.
; then
7831 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7834 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7836 DEFS
=-DHAVE_CONFIG_H
7838 # Without the "./", some shells look in PATH for config.status.
7839 : ${CONFIG_STATUS=./config.status}
7841 echo creating
$CONFIG_STATUS
7842 rm -f $CONFIG_STATUS
7843 cat > $CONFIG_STATUS <<EOF
7845 # Generated automatically by configure.
7846 # Run this file to recreate the current configuration.
7847 # This directory was configured as follows,
7848 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7850 # $0 $ac_configure_args
7852 # Compiler output produced by configure, useful for debugging
7853 # configure, is in ./config.log if it exists.
7855 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7858 case "\$ac_option" in
7859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7860 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7861 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7862 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7863 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7865 -help | --help | --hel | --he | --h)
7866 echo "\$ac_cs_usage"; exit 0 ;;
7867 *) echo "\$ac_cs_usage"; exit 1 ;;
7871 ac_given_srcdir=$srcdir
7873 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7875 cat >> $CONFIG_STATUS <<EOF
7877 # Protect against being on the right side of a sed subst in config.status.
7878 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7879 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7883 s%@CFLAGS@%$CFLAGS%g
7884 s%@CPPFLAGS@%$CPPFLAGS%g
7885 s%@CXXFLAGS@%$CXXFLAGS%g
7886 s%@FFLAGS@%$FFLAGS%g
7888 s%@LDFLAGS@%$LDFLAGS%g
7890 s%@exec_prefix@%$exec_prefix%g
7891 s%@prefix@%$prefix%g
7892 s%@program_transform_name@%$program_transform_name%g
7893 s%@bindir@%$bindir%g
7894 s%@sbindir@%$sbindir%g
7895 s%@libexecdir@%$libexecdir%g
7896 s%@datadir@%$datadir%g
7897 s%@sysconfdir@%$sysconfdir%g
7898 s%@sharedstatedir@%$sharedstatedir%g
7899 s%@localstatedir@%$localstatedir%g
7900 s%@libdir@%$libdir%g
7901 s%@includedir@%$includedir%g
7902 s%@oldincludedir@%$oldincludedir%g
7903 s%@infodir@%$infodir%g
7904 s%@mandir@%$mandir%g
7906 s%@host_alias@%$host_alias%g
7907 s%@host_cpu@%$host_cpu%g
7908 s%@host_vendor@%$host_vendor%g
7909 s%@host_os@%$host_os%g
7910 s%@target@%$target%g
7911 s%@target_alias@%$target_alias%g
7912 s%@target_cpu@%$target_cpu%g
7913 s%@target_vendor@%$target_vendor%g
7914 s%@target_os@%$target_os%g
7916 s%@build_alias@%$build_alias%g
7917 s%@build_cpu@%$build_cpu%g
7918 s%@build_vendor@%$build_vendor%g
7919 s%@build_os@%$build_os%g
7920 s%@build_subdir@%$build_subdir%g
7921 s%@host_subdir@%$host_subdir%g
7922 s%@target_subdir@%$target_subdir%g
7924 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
7925 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
7927 s%@GNATBIND@%$GNATBIND%g
7929 s%@strict1_warn@%$strict1_warn%g
7930 s%@warn_cflags@%$warn_cflags%g
7931 s%@WERROR@%$WERROR%g
7932 s%@nocommon_flag@%$nocommon_flag%g
7933 s%@valgrind_path@%$valgrind_path%g
7934 s%@valgrind_path_defines@%$valgrind_path_defines%g
7935 s%@valgrind_command@%$valgrind_command%g
7936 s%@coverage_flags@%$coverage_flags%g
7937 s%@enable_multilib@%$enable_multilib%g
7938 s%@enable_shared@%$enable_shared%g
7939 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
7940 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
7941 s%@CROSS_SYSTEM_HEADER_DIR@%$CROSS_SYSTEM_HEADER_DIR%g
7942 s%@SET_MAKE@%$SET_MAKE%g
7946 s%@RANLIB@%$RANLIB%g
7947 s%@INSTALL@%$INSTALL%g
7948 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7949 s%@INSTALL_DATA@%$INSTALL_DATA%g
7950 s%@have_mktemp_command@%$have_mktemp_command%g
7951 s%@MAKEINFO@%$MAKEINFO%g
7952 s%@BUILD_INFO@%$BUILD_INFO%g
7953 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
7954 s%@make_compare_target@%$make_compare_target%g
7957 s%@stage1_cflags@%$stage1_cflags%g
7958 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
7959 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
7960 s%@LDEXP_LIB@%$LDEXP_LIB%g
7961 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
7962 s%@LIBICONV@%$LIBICONV%g
7963 s%@LIBICONV_DEP@%$LIBICONV_DEP%g
7964 s%@manext@%$manext%g
7965 s%@objext@%$objext%g
7966 s%@extra_modes_file@%$extra_modes_file%g
7967 s%@FORBUILD@%$FORBUILD%g
7968 s%@PACKAGE@%$PACKAGE%g
7969 s%@VERSION@%$VERSION%g
7970 s%@USE_NLS@%$USE_NLS%g
7971 s%@LIBINTL@%$LIBINTL%g
7972 s%@LIBINTL_DEP@%$LIBINTL_DEP%g
7973 s%@INCINTL@%$INCINTL%g
7974 s%@XGETTEXT@%$XGETTEXT%g
7975 s%@GMSGFMT@%$GMSGFMT%g
7977 s%@CATALOGS@%$CATALOGS%g
7980 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
7981 s%@inhibit_libc@%$inhibit_libc%g
7982 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
7983 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
7984 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7985 s%@BUILD_CFLAGS@%$BUILD_CFLAGS%g
7986 s%@STMP_FIXINC@%$STMP_FIXINC%g
7987 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
7988 s%@libgcc_visibility@%$libgcc_visibility%g
7989 s%@gthread_flags@%$gthread_flags%g
7991 s%@zlibdir@%$zlibdir%g
7992 s%@zlibinc@%$zlibinc%g
7994 s%@gcc_tooldir@%$gcc_tooldir%g
7995 s%@dollar@%$dollar%g
7996 s%@slibdir@%$slibdir%g
7997 s%@objdir@%$objdir%g
7998 s%@subdirs@%$subdirs%g
7999 s%@srcdir@%$srcdir%g
8000 s%@all_boot_languages@%$all_boot_languages%g
8001 s%@all_compilers@%$all_compilers%g
8002 s%@all_gtfiles@%$all_gtfiles%g
8003 s%@all_gtfiles_files_langs@%$all_gtfiles_files_langs%g
8004 s%@all_gtfiles_files_files@%$all_gtfiles_files_files%g
8005 s%@all_lang_makefiles@%$all_lang_makefiles%g
8006 s%@all_languages@%$all_languages%g
8007 s%@all_stagestuff@%$all_stagestuff%g
8008 s%@build_exeext@%$build_exeext%g
8009 s%@build_install_headers_dir@%$build_install_headers_dir%g
8010 s%@build_xm_file_list@%$build_xm_file_list%g
8011 s%@build_xm_file@%$build_xm_file%g
8012 s%@build_xm_defines@%$build_xm_defines%g
8013 s%@check_languages@%$check_languages%g
8014 s%@cc_set_by_configure@%$cc_set_by_configure%g
8015 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8016 s%@cpp_install_dir@%$cpp_install_dir%g
8017 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8018 s%@dep_tmake_file@%$dep_tmake_file%g
8019 s%@extra_headers_list@%$extra_headers_list%g
8020 s%@extra_objs@%$extra_objs%g
8021 s%@extra_parts@%$extra_parts%g
8022 s%@extra_passes@%$extra_passes%g
8023 s%@extra_programs@%$extra_programs%g
8024 s%@float_h_file@%$float_h_file%g
8025 s%@gcc_config_arguments@%$gcc_config_arguments%g
8026 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8027 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8028 s%@gcc_version@%$gcc_version%g
8029 s%@gcc_version_full@%$gcc_version_full%g
8030 s%@gcc_version_trigger@%$gcc_version_trigger%g
8031 s%@host_exeext@%$host_exeext%g
8032 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8033 s%@host_xm_file_list@%$host_xm_file_list%g
8034 s%@host_xm_file@%$host_xm_file%g
8035 s%@host_xm_defines@%$host_xm_defines%g
8036 s%@out_host_hook_obj@%$out_host_hook_obj%g
8037 s%@install@%$install%g
8038 s%@lang_opt_files@%$lang_opt_files%g
8039 s%@lang_options_files@%$lang_options_files%g
8040 s%@lang_specs_files@%$lang_specs_files%g
8041 s%@lang_tree_files@%$lang_tree_files%g
8042 s%@local_prefix@%$local_prefix%g
8043 s%@md_file@%$md_file%g
8044 s%@objc_boehm_gc@%$objc_boehm_gc%g
8045 s%@out_file@%$out_file%g
8046 s%@out_object_file@%$out_object_file%g
8047 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8048 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8049 s%@symbolic_link@%$symbolic_link%g
8050 s%@thread_file@%$thread_file%g
8051 s%@tm_file_list@%$tm_file_list%g
8052 s%@tm_file@%$tm_file%g
8053 s%@tm_defines@%$tm_defines%g
8054 s%@tm_p_file_list@%$tm_p_file_list%g
8055 s%@tm_p_file@%$tm_p_file%g
8056 s%@xm_file@%$xm_file%g
8057 s%@xm_defines@%$xm_defines%g
8058 s%@c_target_objs@%$c_target_objs%g
8059 s%@cxx_target_objs@%$cxx_target_objs%g
8060 s%@target_cpu_default@%$target_cpu_default%g
8061 /@target_overrides@/r $target_overrides
8062 s%@target_overrides@%%g
8063 /@host_overrides@/r $host_overrides
8064 s%@host_overrides@%%g
8065 /@language_fragments@/r $language_fragments
8066 s%@language_fragments@%%g
8067 /@language_hooks@/r $language_hooks
8068 s%@language_hooks@%%g
8073 cat >> $CONFIG_STATUS <<\EOF
8075 # Split the substitutions into bite-sized pieces for seds with
8076 # small command number limits, like on Digital OSF/1 and HP-UX.
8077 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8078 ac_file
=1 # Number of current file.
8079 ac_beg
=1 # First line for current file.
8080 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8083 while $ac_more_lines; do
8084 if test $ac_beg -gt 1; then
8085 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8087 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8089 if test ! -s conftest.s
$ac_file; then
8091 rm -f conftest.s
$ac_file
8093 if test -z "$ac_sed_cmds"; then
8094 ac_sed_cmds
="sed -f conftest.s$ac_file"
8096 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8098 ac_file
=`expr $ac_file + 1`
8100 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8103 if test -z "$ac_sed_cmds"; then
8108 cat >> $CONFIG_STATUS <<EOF
8110 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8112 cat >> $CONFIG_STATUS <<\EOF
8113 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8116 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8117 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8118 *) ac_file_in
="${ac_file}.in" ;;
8121 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8123 # Remove last slash and all that follows it. Not all systems have dirname.
8124 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8125 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8126 # The file is in a subdirectory.
8127 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8128 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8129 # A "../" for each directory in $ac_dir_suffix.
8130 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8132 ac_dir_suffix
= ac_dots
=
8135 case "$ac_given_srcdir" in
8137 if test -z "$ac_dots"; then top_srcdir
=.
8138 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8139 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8141 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8142 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8146 echo creating
"$ac_file"
8148 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8150 *Makefile
*) ac_comsub
="1i\\
8151 # $configure_input" ;;
8155 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8157 s%@configure_input@%$configure_input%g
8158 s%@srcdir@%$srcdir%g
8159 s%@top_srcdir@%$top_srcdir%g
8160 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8164 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8165 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8167 # ac_d sets the value in "#define NAME VALUE" lines.
8168 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8169 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8172 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8173 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8174 ac_uB
='\([ ]\)%\1#\2define\3'
8177 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8178 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8179 ac_eB
='$%\1#\2define\3'
8183 if test "${CONFIG_HEADERS+set}" != set; then
8185 cat >> $CONFIG_STATUS <<EOF
8186 CONFIG_HEADERS="auto-host.h:config.in"
8188 cat >> $CONFIG_STATUS <<\EOF
8190 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8193 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8194 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8195 *) ac_file_in
="${ac_file}.in" ;;
8198 echo creating
$ac_file
8200 rm -f conftest.frag conftest.
in conftest.out
8201 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8202 cat $ac_file_inputs > conftest.
in
8206 # Transform confdefs.h into a sed script conftest.vals that substitutes
8207 # the proper values into config.h.in to produce config.h. And first:
8208 # Protect against being on the right side of a sed subst in config.status.
8209 # Protect against being in an unquoted here document in config.status.
8211 cat > conftest.hdr
<<\EOF
8214 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8218 sed -n -f conftest.hdr confdefs.h > conftest.vals
8221 # This sed command replaces #undef with comments. This is necessary, for
8222 # example, in the case of _POSIX_SOURCE, which is predefined and required
8223 # on some systems where configure will not decide to define it.
8224 cat >> conftest.vals <<\EOF
8225 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8228 # Break up conftest.vals because some shells have a limit on
8229 # the size of here documents, and old seds have small limits too.
8234 ac_lines=`grep -c . conftest.vals
`
8235 # grep -c gives empty output for an empty file on some AIX systems.
8236 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8237 # Write a limited-size here document to conftest.frag.
8238 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8239 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8241 sed -f conftest.frag conftest.in > conftest.out
8243 mv conftest.out conftest.in
8245 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8247 mv conftest.tail conftest.vals
8251 cat >> $CONFIG_STATUS <<\EOF
8252 rm -f conftest.frag conftest.h
8253 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8254 cat conftest.in >> conftest.h
8256 if cmp -s $ac_file conftest.h 2>/dev/null; then
8257 echo "$ac_file is unchanged"
8260 # Remove last slash and all that follows it. Not all systems have dirname.
8261 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8262 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8263 # The file is in a subdirectory.
8264 test ! -d "$ac_dir" && mkdir "$ac_dir"
8267 mv conftest.h $ac_file
8272 cat >> $CONFIG_STATUS <<EOF
8274 symbolic_link='$symbolic_link'
8277 cat >> $CONFIG_STATUS <<\EOF
8279 case x$CONFIG_HEADERS in
8280 xauto-host.h:config.in)
8283 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8284 # bootstrapping and the installation procedure can still use
8285 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8286 # FLAGS_TO_PASS has been modified to solve the problem there.
8287 # This is virtually a duplicate of what happens in configure.lang; we do
8288 # an extra check to make sure this only happens if ln -s can be used.
8289 if test "$symbolic_link" = "ln -s"; then
8290 for d in .. ${subdirs} fixinc ; do
8291 if test $d != ..; then
8292 STARTDIR=`${PWDCMD-pwd}`
8294 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
8297 $symbolic_link ../$t $t 2>/dev/null
8306 chmod +x $CONFIG_STATUS
8307 rm -fr confdefs* $ac_clean_files
8308 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1