3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files"
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,rtlflag,gc,gcac;
38 default is misc,tree,gc,rtlflag"
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin"
44 --enable-__cxa_atexit enable __cxa_atexit for C++"
46 --enable-c-mbchar enable multibyte characters for C and C++"
48 --enable-threads enable thread usage for target GCC
49 --enable-threads=LIB use LIB thread package for target GCC"
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime"
54 --with-dwarf2 force the default debug format to be DWARF 2"
56 --disable-shared don't provide a shared libgcc"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --enable-nls use Native Language Support (default)"
62 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 --disable-nls do not use Native Language Support"
66 --with-included-gettext use the GNU gettext library included here"
68 --disable-win32-registry
69 disable lookup of installation paths in the
70 Registry on Windows hosts
71 --enable-win32-registry enable registry lookup (default)
72 --enable-win32-registry=KEY
73 use KEY instead of GCC version as the last portion
76 --with-gc={simple,page} choose the garbage collection mechanism to use
79 --with-system-zlib use installed libz"
81 --enable-maintainer-mode
82 enable make rules and dependencies not useful
83 (and sometimes confusing) to the casual installer"
85 --enable-sjlj-exceptions
86 arrange to use setjmp/longjmp exception handling"
88 --enable-version-specific-runtime-libs
89 specify that runtime libraries should be
90 installed in a compiler-specific directory"
92 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
607 symbolic_link
='ln -s'
610 # Check for bogus environment variables.
611 # Test if LIBRARY_PATH contains the notation for the current directory
612 # since this would lead to problems installing/building glibc.
613 # LIBRARY_PATH contains the current directory if one of the following
615 # - one of the terminals (":" and ";") is the first or last sign
616 # - two terminals occur directly after each other
617 # - the path contains an element with a dot in it
618 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
619 echo "configure:620: checking LIBRARY_PATH variable" >&5
620 case ${LIBRARY_PATH} in
621 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
622 library_path_setting
="contains current directory"
625 library_path_setting
="ok"
628 echo "$ac_t""$library_path_setting" 1>&6
629 if test "$library_path_setting" != "ok"; then
630 { echo "configure: error:
631 *** LIBRARY_PATH shouldn't contain the current directory when
632 *** building gcc. Please change the environment variable
633 *** and run configure again." 1>&2; exit 1; }
636 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
637 # since this would lead to problems installing/building glibc.
638 # GCC_EXEC_PREFIX contains the current directory if one of the following
640 # - one of the terminals (":" and ";") is the first or last sign
641 # - two terminals occur directly after each other
642 # - the path contains an element with a dot in it
643 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
644 echo "configure:645: checking GCC_EXEC_PREFIX variable" >&5
645 case ${GCC_EXEC_PREFIX} in
646 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
647 gcc_exec_prefix_setting
="contains current directory"
650 gcc_exec_prefix_setting
="ok"
653 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
654 if test "$gcc_exec_prefix_setting" != "ok"; then
655 { echo "configure: error:
656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
657 *** building gcc. Please change the environment variable
658 *** and run configure again." 1>&2; exit 1; }
661 # Check for additional parameters
664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
665 if test "${with_gnu_ld+set}" = set; then
666 withval
="$with_gnu_ld"
667 gnu_ld_flag
="$with_gnu_ld"
673 # With pre-defined ld
674 # Check whether --with-ld or --without-ld was given.
675 if test "${with_ld+set}" = set; then
677 DEFAULT_LINKER
="$with_ld"
680 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
681 if test ! -x "$DEFAULT_LINKER"; then
682 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
683 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
686 cat >> confdefs.h
<<EOF
687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
693 # Check whether --with-gnu-as or --without-gnu-as was given.
694 if test "${with_gnu_as+set}" = set; then
695 withval
="$with_gnu_as"
696 gas_flag
="$with_gnu_as"
702 # Check whether --with-as or --without-as was given.
703 if test "${with_as+set}" = set; then
705 DEFAULT_ASSEMBLER
="$with_as"
708 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
709 if test ! -x "$DEFAULT_ASSEMBLER"; then
710 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
711 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
714 cat >> confdefs.h
<<EOF
715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
721 # Check whether --with-stabs or --without-stabs was given.
722 if test "${with_stabs+set}" = set; then
723 withval
="$with_stabs"
731 # Check whether --with-elf or --without-elf was given.
732 if test "${with_elf+set}" = set; then
740 # Specify the local prefix
742 # Check whether --with-local-prefix or --without-local-prefix was given.
743 if test "${with_local_prefix+set}" = set; then
744 withval
="$with_local_prefix"
746 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
748 *) local_prefix
=$with_local_prefix ;;
753 # Default local prefix if it is empty
754 if test x
$local_prefix = x
; then
755 local_prefix
=/usr
/local
758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
759 # passed in by the toplevel make and thus we'd get different behavior
760 # depending on where we built the sources.
762 # Specify the g++ header file directory
763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
764 if test "${with_gxx_include_dir+set}" = set; then
765 withval
="$with_gxx_include_dir"
767 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
769 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
774 if test x
${gcc_gxx_include_dir} = x
; then
775 if test x
${enable_version_specific_runtime_libs} = xyes
; then
776 gcc_gxx_include_dir
='${libsubdir}/include/g++'
778 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
779 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
783 # Determine whether or not multilibs are enabled.
784 # Check whether --enable-multilib or --disable-multilib was given.
785 if test "${enable_multilib+set}" = set; then
786 enableval
="$enable_multilib"
794 # Enable expensive internal checks
795 # Check whether --enable-checking or --disable-checking was given.
796 if test "${enable_checking+set}" = set; then
797 enableval
="$enable_checking"
803 ac_gc_always_collect
=
804 case "${enableval}" in
805 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
806 ac_rtlflag_checking
=1 ;;
808 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
809 set fnord
$enableval; shift
814 misc
) ac_checking
=1 ;;
815 tree
) ac_tree_checking
=1 ;;
816 rtlflag
) ac_rtlflag_checking
=1 ;;
817 rtl
) ac_rtl_checking
=1 ;;
818 gc
) ac_gc_checking
=1 ;;
819 gcac
) ac_gc_always_collect
=1 ;;
820 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
827 # Enable some checks by default for development versions of GCC
828 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
831 if test x
$ac_checking != x
; then
832 cat >> confdefs.h
<<\EOF
833 #define ENABLE_CHECKING 1
837 if test x
$ac_tree_checking != x
; then
838 cat >> confdefs.h
<<\EOF
839 #define ENABLE_TREE_CHECKING 1
843 if test x
$ac_rtl_checking != x
; then
844 cat >> confdefs.h
<<\EOF
845 #define ENABLE_RTL_CHECKING 1
849 if test x
$ac_rtlflag_checking != x
; then
850 cat >> confdefs.h
<<\EOF
851 #define ENABLE_RTL_FLAG_CHECKING 1
855 if test x
$ac_gc_checking != x
; then
856 cat >> confdefs.h
<<\EOF
857 #define ENABLE_GC_CHECKING 1
861 if test x
$ac_gc_always_collect != x
; then
862 cat >> confdefs.h
<<\EOF
863 #define ENABLE_GC_ALWAYS_COLLECT 1
868 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
869 if test "${with_cpp_install_dir+set}" = set; then
870 withval
="$with_cpp_install_dir"
871 if test x
$withval = xyes
; then
872 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
873 elif test x
$withval != xno
; then
874 cpp_install_dir
=$withval
879 # Enable __cxa_atexit for C++.
880 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
881 if test "${enable___cxa_atexit+set}" = set; then
882 enableval
="$enable___cxa_atexit"
886 if test x
$enable___cxa_atexit = xyes
; then
887 cat >> confdefs.h
<<\EOF
888 #define DEFAULT_USE_CXA_ATEXIT 1
893 # Enable Multibyte Characters for C/C++
894 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
895 if test "${enable_c_mbchar+set}" = set; then
896 enableval
="$enable_c_mbchar"
897 if test x
$enable_c_mbchar != xno
; then
898 cat >> confdefs.h
<<\EOF
899 #define MULTIBYTE_CHARS 1
907 # Pass with no value to take the default
908 # Pass with a value to specify a thread package
909 # Check whether --enable-threads or --disable-threads was given.
910 if test "${enable_threads+set}" = set; then
911 enableval
="$enable_threads"
918 enable_threads_flag
=$enable_threads
919 # Check if a valid thread package
920 case x
${enable_threads_flag} in
923 target_thread_file
='single'
927 target_thread_file
=''
929 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
930 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
931 target_thread_file
=$enable_threads_flag
934 echo "$enable_threads is an unknown thread package" 1>&2
939 # Check whether --enable-objc-gc or --disable-objc-gc was given.
940 if test "${enable_objc_gc+set}" = set; then
941 enableval
="$enable_objc_gc"
942 if test x
$enable_objc_gc = xno
; then
952 # Check whether --with-dwarf2 or --without-dwarf2 was given.
953 if test "${with_dwarf2+set}" = set; then
954 withval
="$with_dwarf2"
955 dwarf2
="$with_dwarf2"
961 # Check whether --enable-shared or --disable-shared was given.
962 if test "${enable_shared+set}" = set; then
963 enableval
="$enable_shared"
965 case $enable_shared in
969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
970 for pkg
in $enableval; do
971 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
985 # Determine the host, build, and target systems
987 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
988 if test -f $ac_dir/install-sh
; then
990 ac_install_sh
="$ac_aux_dir/install-sh -c"
992 elif test -f $ac_dir/install.sh
; then
994 ac_install_sh
="$ac_aux_dir/install.sh -c"
998 if test -z "$ac_aux_dir"; then
999 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1001 ac_config_guess
=$ac_aux_dir/config.guess
1002 ac_config_sub
=$ac_aux_dir/config.sub
1003 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1006 # Do some error checking and defaulting for the host and target type.
1008 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1011 # 1. You are not allowed to specify --host, --target, and nonopt at the
1013 # 2. Host defaults to nonopt.
1014 # 3. If nonopt is not specified, then host defaults to the current host,
1015 # as determined by config.guess.
1016 # 4. Target and build default to nonopt.
1017 # 5. If nonopt is not specified, then target and build default to host.
1019 # The aliases save the names the user supplied, while $host etc.
1020 # will get canonicalized.
1021 case $host---$target---$nonopt in
1022 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1023 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1027 # Make sure we can run config.sub.
1028 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1029 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1032 echo $ac_n "checking host system type""... $ac_c" 1>&6
1033 echo "configure:1034: checking host system type" >&5
1036 case "$host_alias" in
1040 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1041 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1043 *) host_alias
=$nonopt ;;
1047 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1048 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$host" 1>&6
1053 echo $ac_n "checking target system type""... $ac_c" 1>&6
1054 echo "configure:1055: checking target system type" >&5
1056 target_alias
=$target
1057 case "$target_alias" in
1060 NONE
) target_alias
=$host_alias ;;
1061 *) target_alias
=$nonopt ;;
1065 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1066 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1067 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1068 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069 echo "$ac_t""$target" 1>&6
1071 echo $ac_n "checking build system type""... $ac_c" 1>&6
1072 echo "configure:1073: checking build system type" >&5
1075 case "$build_alias" in
1078 NONE
) build_alias
=$host_alias ;;
1079 *) build_alias
=$nonopt ;;
1083 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1084 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1085 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1086 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1087 echo "$ac_t""$build" 1>&6
1089 test "$host_alias" != "$target_alias" &&
1090 test "$program_prefix$program_suffix$program_transform_name" = \
1092 program_prefix
=${target_alias}-
1095 # Set program_transform_name
1096 if test "$program_transform_name" = s
,x
,x
,; then
1097 program_transform_name
=
1099 # Double any \ or $. echo might interpret backslashes.
1100 cat <<\EOF_SED
> conftestsed
1101 s
,\\,\\\\,g
; s
,\$
,$$
,g
1103 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1106 test "$program_prefix" != NONE
&&
1107 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1108 # Use a double $ so make ignores it.
1109 test "$program_suffix" != NONE
&&
1110 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1112 # sed with no file args requires a program.
1113 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1116 # Find the native compiler
1117 # Extract the first word of "gcc", so it can be a program name with args.
1118 set dummy gcc
; ac_word
=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$CC"; then
1125 ac_cv_prog_CC
="$CC" # Let the user override the test.
1127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1129 for ac_dir
in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir
=.
1131 if test -f $ac_dir/$ac_word; then
1140 if test -n "$CC"; then
1141 echo "$ac_t""$CC" 1>&6
1143 echo "$ac_t""no" 1>&6
1146 if test -z "$CC"; then
1147 # Extract the first word of "cc", so it can be a program name with args.
1148 set dummy cc
; ac_word
=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC
="$CC" # Let the user override the test.
1157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1160 for ac_dir
in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir
=.
1162 if test -f $ac_dir/$ac_word; then
1163 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1164 ac_prog_rejected
=yes
1172 if test $ac_prog_rejected = yes; then
1173 # We found a bogon in the path, so make sure we never use it.
1174 set dummy
$ac_cv_prog_CC
1176 if test $# -gt 0; then
1177 # We chose a different compiler from the bogus one.
1178 # However, it has the same basename, so the bogon will be chosen
1179 # first if we set CC to just the basename; use the full file name.
1181 set dummy
"$ac_dir/$ac_word" "$@"
1189 if test -n "$CC"; then
1190 echo "$ac_t""$CC" 1>&6
1192 echo "$ac_t""no" 1>&6
1195 if test -z "$CC"; then
1196 case "`uname -s`" in
1198 # Extract the first word of "cl", so it can be a program name with args.
1199 set dummy cl
; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$CC"; then
1206 ac_cv_prog_CC
="$CC" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1221 if test -n "$CC"; then
1222 echo "$ac_t""$CC" 1>&6
1224 echo "$ac_t""no" 1>&6
1229 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1232 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1237 ac_cpp
='$CPP $CPPFLAGS'
1238 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1239 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1240 cross_compiling
=$ac_cv_prog_cc_cross
1242 cat > conftest.
$ac_ext << EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 if { (eval echo configure
:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1250 ac_cv_prog_cc_works
=yes
1251 # If we can't run a trivial program, we are probably using a cross compiler.
1252 if (.
/conftest
; exit) 2>/dev
/null
; then
1253 ac_cv_prog_cc_cross
=no
1255 ac_cv_prog_cc_cross
=yes
1258 echo "configure: failed program was:" >&5
1259 cat conftest.
$ac_ext >&5
1260 ac_cv_prog_cc_works
=no
1264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1265 ac_cpp
='$CPP $CPPFLAGS'
1266 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1267 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1268 cross_compiling
=$ac_cv_prog_cc_cross
1270 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1271 if test $ac_cv_prog_cc_works = no
; then
1272 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1274 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1275 echo "configure:1276: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1276 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1277 cross_compiling
=$ac_cv_prog_cc_cross
1279 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1280 echo "configure:1281: checking whether we are using GNU C" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 cat > conftest.c
<<EOF
1289 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1296 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1298 if test $ac_cv_prog_gcc = yes; then
1304 ac_test_CFLAGS
="${CFLAGS+set}"
1305 ac_save_CFLAGS
="$CFLAGS"
1307 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether ${CC-cc} accepts -g" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 echo 'void f(){}' > conftest.c
1313 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1322 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1323 if test "$ac_test_CFLAGS" = set; then
1324 CFLAGS
="$ac_save_CFLAGS"
1325 elif test $ac_cv_prog_cc_g = yes; then
1326 if test "$GCC" = yes; then
1332 if test "$GCC" = yes; then
1339 if test "x$CC" != xcc
; then
1340 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1341 echo "configure:1342: checking whether $CC and cc understand -c and -o together" >&5
1343 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1344 echo "configure:1345: checking whether cc understands -c and -o together" >&5
1346 set dummy
$CC; ac_cc
="`echo $2 |
1347 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1348 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 echo 'foo(){}' > conftest.c
1352 # Make sure it works both with $CC and with simple cc.
1353 # We do the test twice because some compilers refuse to overwrite an
1354 # existing .o file with -o, though they will create one.
1355 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1356 if { (eval echo configure
:1357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1357 test -f conftest.o
&& { (eval echo configure
:1358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1359 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1360 if test "x$CC" != xcc
; then
1361 # Test first that cc exists at all.
1362 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1363 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1364 if { (eval echo configure
:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1365 test -f conftest.o
&& { (eval echo configure
:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1370 # cc exists but doesn't like -o.
1371 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1376 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1381 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1382 echo "$ac_t""yes" 1>&6
1384 echo "$ac_t""no" 1>&6
1385 cat >> confdefs.h
<<\EOF
1386 #define NO_MINUS_C_MINUS_O 1
1391 # autoconf is lame and doesn't give us any substitution variable for this.
1392 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1393 NO_MINUS_C_MINUS_O
=yes
1395 OUTPUT_OPTION
='-o $@'
1400 # See if GNAT has been installed
1401 if test $host != $build; then
1402 ac_tool_prefix
=${host_alias}-
1408 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1409 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1411 echo "configure:1412: checking for $ac_word" >&5
1412 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 if test -n "$GNATBIND"; then
1416 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1418 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1420 for ac_dir
in $ac_dummy; do
1421 test -z "$ac_dir" && ac_dir
=.
1422 if test -f $ac_dir/$ac_word; then
1423 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1430 GNATBIND
="$ac_cv_prog_GNATBIND"
1431 if test -n "$GNATBIND"; then
1432 echo "$ac_t""$GNATBIND" 1>&6
1434 echo "$ac_t""no" 1>&6
1438 if test -z "$ac_cv_prog_GNATBIND"; then
1439 if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "gnatbind", so it can be a program name with args.
1441 set dummy gnatbind
; ac_word
=$2
1442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1443 echo "configure:1444: checking for $ac_word" >&5
1444 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1447 if test -n "$GNATBIND"; then
1448 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1450 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1452 for ac_dir
in $ac_dummy; do
1453 test -z "$ac_dir" && ac_dir
=.
1454 if test -f $ac_dir/$ac_word; then
1455 ac_cv_prog_GNATBIND
="gnatbind"
1460 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1463 GNATBIND
="$ac_cv_prog_GNATBIND"
1464 if test -n "$GNATBIND"; then
1465 echo "$ac_t""$GNATBIND" 1>&6
1467 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1476 echo "configure:1477: checking for compiler driver that understands Ada" >&5
1477 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat >conftest.adb
<<EOF
1481 procedure conftest is begin null; end conftest;
1484 # Have to do ac_tool_prefix and user overrides by hand.
1487 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
1488 ${ac_tool_prefix}$user_cc $user_cc \
1489 ${ac_tool_prefix}gcc gcc \
1490 ${ac_tool_prefix}cc cc \
1491 ${ac_tool_prefix}gnatgcc gnatgcc \
1492 ${ac_tool_prefix}gnatcc gnatcc \
1493 ${ac_tool_prefix}adagcc adagcc \
1494 ${ac_tool_prefix}adacc adacc
; do
1495 # There is a bug in all released versions of GCC which causes the
1496 # driver to exit successfully when the appropriate language module
1497 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1498 # Therefore we must check for the error message as well as an
1499 # unsuccessful exit.
1500 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1501 if test x
"$errors" = x
; then
1502 gcc_cv_prog_adac
=$cand
1509 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1510 ADAC
=$gcc_cv_prog_adac
1513 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1520 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1521 echo "configure:1522: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1522 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 save_CFLAGS
="$CFLAGS"
1526 CFLAGS
="-Wno-long-long"
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1535 if { (eval echo configure
:1536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1537 ac_cv_prog_cc_no_long_long
=yes
1539 echo "configure: failed program was:" >&5
1540 cat conftest.
$ac_ext >&5
1542 ac_cv_prog_cc_no_long_long
=no
1545 CFLAGS
="$save_CFLAGS"
1548 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1550 if test x
$have_gnat != xno
; then
1551 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1552 echo "configure:1553: checking whether ${ADAC} accepts -Wno-long-long" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 cat >conftest.adb
<<EOF
1557 procedure conftest is begin null; end conftest;
1559 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1560 ac_cv_prog_adac_no_long_long
=yes
1562 ac_cv_prog_adac_no_long_long
=no
1567 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1569 ac_cv_prog_adac_no_long_long
=yes
1573 if test $ac_cv_prog_cc_no_long_long = yes && \
1574 test $ac_cv_prog_adac_no_long_long = yes ; then
1575 strict1_warn
="-pedantic -Wno-long-long"
1579 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1580 echo "configure:1581: checking how to run the C preprocessor" >&5
1581 # On Suns, sometimes $CPP names a directory.
1582 if test -n "$CPP" && test -d "$CPP"; then
1585 if test -z "$CPP"; then
1586 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 # This must be in double quotes, not single quotes, because CPP may get
1590 # substituted into the Makefile and "${CC-cc}" will confuse make.
1592 # On the NeXT, cc -E runs the code through the compiler's parser,
1593 # not just through cpp.
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1600 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure
:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1607 echo "configure: failed program was:" >&5
1608 cat conftest.
$ac_ext >&5
1610 CPP
="${CC-cc} -E -traditional-cpp"
1611 cat > conftest.
$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1617 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1618 { (eval echo configure
:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1619 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1620 if test -z "$ac_err"; then
1624 echo "configure: failed program was:" >&5
1625 cat conftest.
$ac_ext >&5
1627 CPP
="${CC-cc} -nologo -E"
1628 cat > conftest.
$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1635 { (eval echo configure
:1636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1637 if test -z "$ac_err"; then
1641 echo "configure: failed program was:" >&5
1642 cat conftest.
$ac_ext >&5
1651 ac_cv_prog_CPP
="$CPP"
1653 CPP
="$ac_cv_prog_CPP"
1655 ac_cv_prog_CPP
="$CPP"
1657 echo "$ac_t""$CPP" 1>&6
1659 echo $ac_n "checking for inline""... $ac_c" 1>&6
1660 echo "configure:1661: checking for inline" >&5
1661 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1665 for ac_kw
in inline __inline__ __inline
; do
1666 cat > conftest.
$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1674 if { (eval echo configure
:1675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1676 ac_cv_c_inline
=$ac_kw; break
1678 echo "configure: failed program was:" >&5
1679 cat conftest.
$ac_ext >&5
1686 echo "$ac_t""$ac_cv_c_inline" 1>&6
1687 case "$ac_cv_c_inline" in
1689 no
) cat >> confdefs.h
<<\EOF
1693 *) cat >> confdefs.h
<<EOF
1694 #define inline $ac_cv_c_inline
1699 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1700 echo "configure:1701: checking for volatile" >&5
1701 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1712 if { (eval echo configure
:1713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1714 gcc_cv_c_volatile
=yes
1716 echo "configure: failed program was:" >&5
1717 cat conftest.
$ac_ext >&5
1719 gcc_cv_c_volatile
=no
1724 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1725 if test $gcc_cv_c_volatile = yes ; then
1726 cat >> confdefs.h
<<\EOF
1727 #define HAVE_VOLATILE 1
1733 echo $ac_n "checking for long double""... $ac_c" 1>&6
1734 echo "configure:1735: checking for long double" >&5
1735 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 if test "$GCC" = yes; then
1739 gcc_cv_c_long_double
=yes
1741 cat > conftest.
$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1746 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1747 long double foo = 0.0;
1748 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1749 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1752 if { (eval echo configure
:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1754 gcc_cv_c_long_double
=yes
1756 echo "configure: failed program was:" >&5
1757 cat conftest.
$ac_ext >&5
1759 gcc_cv_c_long_double
=no
1765 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1766 if test $gcc_cv_c_long_double = yes; then
1767 cat >> confdefs.h
<<\EOF
1768 #define HAVE_LONG_DOUBLE 1
1773 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1774 echo "configure:1775: checking for long long int" >&5
1775 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 cat > conftest.
$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1786 if { (eval echo configure
:1787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1788 ac_cv_c_long_long
=yes
1790 echo "configure: failed program was:" >&5
1791 cat conftest.
$ac_ext >&5
1793 ac_cv_c_long_long
=no
1798 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1799 if test $ac_cv_c_long_long = yes; then
1800 cat >> confdefs.h
<<\EOF
1801 #define HAVE_LONG_LONG 1
1805 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1806 echo "configure:1807: checking for __int64" >&5
1807 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.
$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1818 if { (eval echo configure
:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1830 echo "$ac_t""$ac_cv_c___int64" 1>&6
1831 if test $ac_cv_c___int64 = yes; then
1832 cat >> confdefs.h
<<\EOF
1833 #define HAVE___INT64 1
1838 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1839 echo "configure:1840: checking for built-in _Bool" >&5
1840 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 cat > conftest.
$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1851 if { (eval echo configure
:1852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1855 echo "configure: failed program was:" >&5
1856 cat conftest.
$ac_ext >&5
1864 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1865 if test $gcc_cv_c__bool = yes; then
1866 cat >> confdefs.h
<<\EOF
1867 #define HAVE__BOOL 1
1873 # sizeof(char) is 1 by definition.
1874 echo $ac_n "checking size of short""... $ac_c" 1>&6
1875 echo "configure:1876: checking size of short" >&5
1876 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1880 cat > conftest.
$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include "confdefs.h"
1884 #include <sys/types.h>
1888 switch (0) case 0: case (sizeof (short) == $ac_size):;
1891 if { (eval echo configure
:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1893 ac_cv_sizeof_short
=$ac_size
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1899 if test x
$ac_cv_sizeof_short != x
; then break; fi
1904 if test x
$ac_cv_sizeof_short = x
; then
1905 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1907 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1908 cat >> confdefs.h
<<EOF
1909 #define SIZEOF_SHORT $ac_cv_sizeof_short
1913 echo $ac_n "checking size of int""... $ac_c" 1>&6
1914 echo "configure:1915: checking size of int" >&5
1915 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1922 #include "confdefs.h"
1923 #include <sys/types.h>
1927 switch (0) case 0: case (sizeof (int) == $ac_size):;
1930 if { (eval echo configure
:1931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1932 ac_cv_sizeof_int
=$ac_size
1934 echo "configure: failed program was:" >&5
1935 cat conftest.
$ac_ext >&5
1938 if test x
$ac_cv_sizeof_int != x
; then break; fi
1943 if test x
$ac_cv_sizeof_int = x
; then
1944 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1946 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1947 cat >> confdefs.h
<<EOF
1948 #define SIZEOF_INT $ac_cv_sizeof_int
1952 echo $ac_n "checking size of long""... $ac_c" 1>&6
1953 echo "configure:1954: checking size of long" >&5
1954 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1961 #include "confdefs.h"
1962 #include <sys/types.h>
1966 switch (0) case 0: case (sizeof (long) == $ac_size):;
1969 if { (eval echo configure
:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1971 ac_cv_sizeof_long
=$ac_size
1973 echo "configure: failed program was:" >&5
1974 cat conftest.
$ac_ext >&5
1977 if test x
$ac_cv_sizeof_long != x
; then break; fi
1982 if test x
$ac_cv_sizeof_long = x
; then
1983 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1985 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1986 cat >> confdefs.h
<<EOF
1987 #define SIZEOF_LONG $ac_cv_sizeof_long
1991 if test $ac_cv_c_long_long = yes; then
1992 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1993 echo "configure:1994: checking size of long long" >&5
1994 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include "confdefs.h"
2002 #include <sys/types.h>
2006 switch (0) case 0: case (sizeof (long long) == $ac_size):;
2009 if { (eval echo configure
:2010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2011 ac_cv_sizeof_long_long
=$ac_size
2013 echo "configure: failed program was:" >&5
2014 cat conftest.
$ac_ext >&5
2017 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2022 if test x
$ac_cv_sizeof_long_long = x
; then
2023 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2025 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2026 cat >> confdefs.h
<<EOF
2027 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2032 if test $ac_cv_c___int64 = yes; then
2033 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
2034 echo "configure:2035: checking size of __int64" >&5
2035 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2039 cat > conftest.
$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 #include "confdefs.h"
2043 #include <sys/types.h>
2047 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
2050 if { (eval echo configure
:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2052 ac_cv_sizeof___int64
=$ac_size
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2058 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
2063 if test x
$ac_cv_sizeof___int64 = x
; then
2064 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
2066 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
2067 cat >> confdefs.h
<<EOF
2068 #define SIZEOF___INT64 $ac_cv_sizeof___int64
2074 echo $ac_n "checking execution character set""... $ac_c" 1>&6
2075 echo "configure:2076: checking execution character set" >&5
2076 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 cat > conftest.
$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2083 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2088 egrep "ASCII" >/dev
/null
2>&1; then
2090 ac_cv_c_charset
=ASCII
2094 if test x
${ac_cv_c_charset+set} != xset
; then
2095 cat > conftest.
$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2099 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2104 egrep "EBCDIC" >/dev
/null
2>&1; then
2106 ac_cv_c_charset
=EBCDIC
2111 if test x
${ac_cv_c_charset+set} != xset
; then
2112 ac_cv_c_charset
=unknown
2116 echo "$ac_t""$ac_cv_c_charset" 1>&6
2117 if test $ac_cv_c_charset = unknown
; then
2118 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
2119 elif test $ac_cv_c_charset = EBCDIC
; then
2120 cat >> confdefs.h
<<\EOF
2121 #define HOST_EBCDIC 1
2126 # If the native compiler is GCC, we can enable warnings even in stage1.
2127 # That's useful for people building cross-compilers, or just running a
2130 if test "x$GCC" = "xyes"; then
2131 warn_cflags
='$(GCC_WARN_CFLAGS)'
2135 # Stage specific cflags for build.
2139 if test x
$GCC = xyes
2141 stage1_cflags
="-Wa,-J"
2147 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
2148 # sources; use -no-cpp-precomp to get to GNU cpp.
2149 # Apple's GCC has bugs in designated initializer handling, so disable
2151 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
2156 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2157 echo "configure:2158: checking whether ${MAKE-make} sets \${MAKE}" >&5
2158 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2159 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 cat > conftestmake
<<\EOF
2164 @
echo 'ac_maketemp="${MAKE}"'
2166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2167 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2168 if test -n "$ac_maketemp"; then
2169 eval ac_cv_prog_make_
${ac_make}_set
=yes
2171 eval ac_cv_prog_make_
${ac_make}_set
=no
2175 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2176 echo "$ac_t""yes" 1>&6
2179 echo "$ac_t""no" 1>&6
2180 SET_MAKE
="MAKE=${MAKE-make}"
2184 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2185 echo "configure:2186: checking whether a default assembler was specified" >&5
2186 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2187 if test x
"$gas_flag" = x
"no"; then
2188 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2190 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2193 echo "$ac_t""no" 1>&6
2196 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2197 echo "configure:2198: checking whether a default linker was specified" >&5
2198 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2199 if test x
"$gnu_ld_flag" = x
"no"; then
2200 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2202 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2205 echo "$ac_t""no" 1>&6
2208 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2209 echo "configure:2210: checking for GNU C library" >&5
2210 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 cat > conftest.
$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 #include <features.h>
2219 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2220 #error Not a GNU C library system
2224 if { (eval echo configure
:2225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2228 echo "configure: failed program was:" >&5
2229 cat conftest.
$ac_ext >&5
2236 echo "$ac_t""$gcc_cv_glibc" 1>&6
2237 if test $gcc_cv_glibc = yes; then
2238 cat >> confdefs.h
<<\EOF
2239 #define _GNU_SOURCE 1
2244 # Find some useful tools
2245 for ac_prog
in gawk mawk nawk
awk
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy
$ac_prog; ac_word
=$2
2249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2250 echo "configure:2251: checking for $ac_word" >&5
2251 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 if test -n "$AWK"; then
2255 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2257 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2259 for ac_dir
in $ac_dummy; do
2260 test -z "$ac_dir" && ac_dir
=.
2261 if test -f $ac_dir/$ac_word; then
2262 ac_cv_prog_AWK
="$ac_prog"
2269 AWK
="$ac_cv_prog_AWK"
2270 if test -n "$AWK"; then
2271 echo "$ac_t""$AWK" 1>&6
2273 echo "$ac_t""no" 1>&6
2276 test -n "$AWK" && break
2279 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2280 echo "configure:2281: checking whether ln works" >&5
2281 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 rm -f conftestdata_t
2285 echo >conftestdata_f
2286 if ln conftestdata_f conftestdata_t
2>/dev
/null
2290 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2292 gcc_cv_prog_LN
="ln -s"
2297 rm -f conftestdata_f conftestdata_t
2300 LN
="$gcc_cv_prog_LN"
2301 if test "$gcc_cv_prog_LN" = "ln"; then
2302 echo "$ac_t""yes" 1>&6
2304 if test "$gcc_cv_prog_LN" = "ln -s"; then
2305 echo "$ac_t""no, using ln -s" 1>&6
2307 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2311 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2312 echo "configure:2313: checking whether ln -s works" >&5
2313 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 rm -f conftestdata_t
2317 echo >conftestdata_f
2318 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2320 gcc_cv_prog_LN_S
="ln -s"
2322 if ln conftestdata_f conftestdata_t
2>/dev
/null
2329 rm -f conftestdata_f conftestdata_t
2332 LN_S
="$gcc_cv_prog_LN_S"
2333 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2334 echo "$ac_t""yes" 1>&6
2336 if test "$gcc_cv_prog_LN_S" = "ln"; then
2337 echo "$ac_t""no, using ln" 1>&6
2339 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2343 # Extract the first word of "ranlib", so it can be a program name with args.
2344 set dummy ranlib
; ac_word
=$2
2345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_word" >&5
2347 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 if test -n "$RANLIB"; then
2351 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2355 for ac_dir
in $ac_dummy; do
2356 test -z "$ac_dir" && ac_dir
=.
2357 if test -f $ac_dir/$ac_word; then
2358 ac_cv_prog_RANLIB
="ranlib"
2363 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2366 RANLIB
="$ac_cv_prog_RANLIB"
2367 if test -n "$RANLIB"; then
2368 echo "$ac_t""$RANLIB" 1>&6
2370 echo "$ac_t""no" 1>&6
2373 # Find a good install program. We prefer a C program (faster),
2374 # so one script is as good as another. But avoid the broken or
2375 # incompatible versions:
2376 # SysV /etc/install, /usr/sbin/install
2377 # SunOS /usr/etc/install
2378 # IRIX /sbin/install
2380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2384 echo "configure:2385: checking for a BSD compatible install" >&5
2385 if test -z "$INSTALL"; then
2386 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2390 for ac_dir
in $PATH; do
2391 # Account for people who put trailing slashes in PATH elements.
2393 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2395 # OSF1 and SCO ODT 3.0 have their own names for install.
2396 for ac_prog
in ginstall scoinst
install; do
2397 if test -f $ac_dir/$ac_prog; then
2398 if test $ac_prog = install &&
2399 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2400 # AIX install. It has an incompatible calling convention.
2401 # OSF/1 installbsd also uses dspmsg, but is usable.
2404 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2415 if test "${ac_cv_path_install+set}" = set; then
2416 INSTALL
="$ac_cv_path_install"
2418 # As a last resort, use the slow shell script. We don't cache a
2419 # path for INSTALL within a source directory, because that will
2420 # break other packages using the cache if that directory is
2421 # removed, or if the path is relative.
2422 INSTALL
="$ac_install_sh"
2425 echo "$ac_t""$INSTALL" 1>&6
2427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428 # It thinks the first close brace ends the variable substitution.
2429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2431 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2434 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2435 echo "configure:2436: checking for ANSI C header files" >&5
2436 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.
$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure
:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2452 ac_cv_header_stdc
=yes
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2458 ac_cv_header_stdc
=no
2462 if test $ac_cv_header_stdc = yes; then
2463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2464 cat > conftest.
$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2470 egrep "memchr" >/dev
/null
2>&1; then
2474 ac_cv_header_stdc
=no
2480 if test $ac_cv_header_stdc = yes; then
2481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2488 egrep "free" >/dev
/null
2>&1; then
2492 ac_cv_header_stdc
=no
2498 if test $ac_cv_header_stdc = yes; then
2499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2500 if test "$cross_compiling" = yes; then
2503 cat > conftest.
$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2507 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2508 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2510 int main () { int i; for (i = 0; i < 256; i++)
2511 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2515 if { (eval echo configure
:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2519 echo "configure: failed program was:" >&5
2520 cat conftest.
$ac_ext >&5
2522 ac_cv_header_stdc
=no
2530 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2531 if test $ac_cv_header_stdc = yes; then
2532 cat >> confdefs.h
<<\EOF
2533 #define STDC_HEADERS 1
2538 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2539 echo "configure:2540: checking whether time.h and sys/time.h may both be included" >&5
2540 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <sys/types.h>
2547 #include <sys/time.h>
2553 if { (eval echo configure
:2554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2555 ac_cv_header_time
=yes
2557 echo "configure: failed program was:" >&5
2558 cat conftest.
$ac_ext >&5
2560 ac_cv_header_time
=no
2565 echo "$ac_t""$ac_cv_header_time" 1>&6
2566 if test $ac_cv_header_time = yes; then
2567 cat >> confdefs.h
<<\EOF
2568 #define TIME_WITH_SYS_TIME 1
2573 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2574 echo "configure:2575: checking for working stdbool.h" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.
$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 #include <stdbool.h>
2586 if { (eval echo configure
:2587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2588 ac_cv_header_stdbool_h
=yes
2590 echo "configure: failed program was:" >&5
2591 cat conftest.
$ac_ext >&5
2593 ac_cv_header_stdbool_h
=no
2598 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2599 if test $ac_cv_header_stdbool_h = yes; then
2600 cat >> confdefs.h
<<\EOF
2601 #define HAVE_STDBOOL_H 1
2606 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2607 echo "configure:2608: checking whether string.h and strings.h may both be included" >&5
2608 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 cat > conftest.
$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2615 #include <strings.h>
2620 if { (eval echo configure
:2621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2622 gcc_cv_header_string
=yes
2624 echo "configure: failed program was:" >&5
2625 cat conftest.
$ac_ext >&5
2627 gcc_cv_header_string
=no
2632 echo "$ac_t""$gcc_cv_header_string" 1>&6
2633 if test $gcc_cv_header_string = yes; then
2634 cat >> confdefs.h
<<\EOF
2635 #define STRING_WITH_STRINGS 1
2640 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2641 echo "configure:2642: checking for sys/wait.h that is POSIX.1 compatible" >&5
2642 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 cat > conftest.
$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <sys/types.h>
2649 #include <sys/wait.h>
2651 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2654 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2659 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2662 if { (eval echo configure
:2663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2664 ac_cv_header_sys_wait_h
=yes
2666 echo "configure: failed program was:" >&5
2667 cat conftest.
$ac_ext >&5
2669 ac_cv_header_sys_wait_h
=no
2674 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2675 if test $ac_cv_header_sys_wait_h = yes; then
2676 cat >> confdefs.h
<<\EOF
2677 #define HAVE_SYS_WAIT_H 1
2682 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2683 fcntl.h unistd.h sys
/file.h sys
/time.h \
2684 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2685 direct.h malloc.h langinfo.h
2687 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2689 echo "configure:2690: checking for $ac_hdr" >&5
2690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.
$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2698 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2699 { (eval echo configure
:2700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2700 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2701 if test -z "$ac_err"; then
2703 eval "ac_cv_header_$ac_safe=yes"
2706 echo "configure: failed program was:" >&5
2707 cat conftest.
$ac_ext >&5
2709 eval "ac_cv_header_$ac_safe=no"
2713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2716 cat >> confdefs.h
<<EOF
2717 #define $ac_tr_hdr 1
2721 echo "$ac_t""no" 1>&6
2726 # Check for thread headers.
2727 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2728 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2729 echo "configure:2730: checking for thread.h" >&5
2730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2738 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2739 { (eval echo configure
:2740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2740 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2741 if test -z "$ac_err"; then
2743 eval "ac_cv_header_$ac_safe=yes"
2746 echo "configure: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2749 eval "ac_cv_header_$ac_safe=no"
2753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2757 echo "$ac_t""no" 1>&6
2761 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2762 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2763 echo "configure:2764: checking for pthread.h" >&5
2764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 cat > conftest.
$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 #include <pthread.h>
2772 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2773 { (eval echo configure
:2774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2774 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2775 if test -z "$ac_err"; then
2777 eval "ac_cv_header_$ac_safe=yes"
2780 echo "configure: failed program was:" >&5
2781 cat conftest.
$ac_ext >&5
2783 eval "ac_cv_header_$ac_safe=no"
2787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2788 echo "$ac_t""yes" 1>&6
2791 echo "$ac_t""no" 1>&6
2796 # These tests can't be done till we know if we have limits.h.
2797 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2798 echo "configure:2799: checking for CHAR_BIT" >&5
2799 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.
$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2805 #ifdef HAVE_LIMITS_H
2812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2813 egrep "found" >/dev
/null
2>&1; then
2815 gcc_cv_decl_char_bit
=yes
2818 gcc_cv_decl_char_bit
=no
2825 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2826 if test $gcc_cv_decl_char_bit = no
; then
2827 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2828 echo "configure:2829: checking number of bits in a byte" >&5
2829 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2834 while test $i -lt 65; do
2835 cat > conftest.
$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2841 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2842 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2846 if { (eval echo configure
:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2848 gcc_cv_c_nbby
=$i; break
2850 echo "configure: failed program was:" >&5
2851 cat conftest.
$ac_ext >&5
2856 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2860 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2861 if test $gcc_cv_c_nbby = failed
; then
2862 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2864 cat >> confdefs.h
<<EOF
2865 #define CHAR_BIT $gcc_cv_c_nbby
2870 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2871 echo "configure:2872: checking byte ordering" >&5
2872 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 ac_cv_c_compile_endian
=unknown
2878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2879 ac_cpp
='$CPP $CPPFLAGS'
2880 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2881 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2882 cross_compiling
=$ac_cv_prog_cc_cross
2884 cat > conftest.
$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2888 #ifdef HAVE_LIMITS_H
2889 # include <limits.h>
2891 /* This structure must have no internal padding. */
2893 char prefix[sizeof "\nendian:" - 1];
2898 #if SIZEOF_SHORT == 4
2899 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2901 ('A' << CHAR_BIT) | 'B',
2905 if { (eval echo configure
:2906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2907 sed 's/^[0-7]*[ ]*/ /
2910 s/ [0-9][0-9][0-9]/./g
2916 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2917 ac_cv_c_compile_endian
=big-endian
2918 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2919 ac_cv_c_compile_endian
=little-endian
2924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2925 ac_cpp
='$CPP $CPPFLAGS'
2926 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2927 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2928 cross_compiling
=$ac_cv_prog_cc_cross
2933 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2934 if test $ac_cv_c_compile_endian = unknown
; then
2935 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2936 elif test $ac_cv_c_compile_endian = big-endian
; then
2937 cat >> confdefs.h
<<\EOF
2938 #define HOST_WORDS_BIG_ENDIAN 1
2943 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2944 echo "configure:2945: checking floating point format" >&5
2945 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2951 ac_cpp
='$CPP $CPPFLAGS'
2952 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2953 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2954 cross_compiling
=$ac_cv_prog_cc_cross
2956 cat > conftest.
$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 /* This will not work unless sizeof(double) == 8. */
2960 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2962 /* This structure must have no internal padding. */
2963 struct possibility {
2969 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2970 struct possibility table [] =
2972 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2973 C( 3.53802595280598432000e+18), /* D__float - VAX */
2974 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2975 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2976 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2979 if { (eval echo configure
:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2981 sed 's/^[0-7]*[ ]*/ /
2984 s/ [0-9][0-9][0-9]/./g
2990 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2991 ac_cv_c_float_format
='IEEE (big-endian)'
2992 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2993 ac_cv_c_float_format
='IEEE (big-endian)'
2994 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2995 ac_cv_c_float_format
='IEEE (little-endian)'
2996 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2997 ac_cv_c_float_format
='IEEE (little-endian)'
2998 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2999 ac_cv_c_float_format
='VAX D-float'
3000 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3001 ac_cv_c_float_format
='PDP-10'
3002 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3003 ac_cv_c_float_format
='IBM 370 hex'
3005 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
3008 { echo "configure: error: compile failed" 1>&2; exit 1; }
3012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3013 ac_cpp
='$CPP $CPPFLAGS'
3014 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3015 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3016 cross_compiling
=$ac_cv_prog_cc_cross
3021 echo "$ac_t""$ac_cv_c_float_format" 1>&6
3022 # IEEE is the default format. If the float endianness isn't the same
3023 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
3024 # (which is a tristate: yes, no, default). This is only an issue with
3025 # IEEE; the other formats are only supported by a few machines each,
3026 # all with the same endianness.
3029 case $ac_cv_c_float_format in
3030 'IEEE (big-endian)' )
3031 if test $ac_cv_c_compile_endian = little-endian
; then
3035 'IEEE (little-endian)' )
3036 if test $ac_cv_c_compile_endian = big-endian
; then
3041 format
=VAX_FLOAT_FORMAT
3044 format
=PDP10_FLOAT_FORMAT
3047 format
=IBM_FLOAT_FORMAT
3050 if test -n "$format"; then
3051 cat >> confdefs.h
<<EOF
3052 #define HOST_FLOAT_FORMAT $format
3056 if test -n "$fbigend"; then
3057 cat >> confdefs.h
<<EOF
3058 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
3064 # See if we have the mktemp command.
3065 # Extract the first word of "mktemp", so it can be a program name with args.
3066 set dummy mktemp
; ac_word
=$2
3067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3068 echo "configure:3069: checking for $ac_word" >&5
3069 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 if test -n "$have_mktemp_command"; then
3073 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3077 for ac_dir
in $ac_dummy; do
3078 test -z "$ac_dir" && ac_dir
=.
3079 if test -f $ac_dir/$ac_word; then
3080 ac_cv_prog_have_mktemp_command
="yes"
3085 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3088 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3089 if test -n "$have_mktemp_command"; then
3090 echo "$ac_t""$have_mktemp_command" 1>&6
3092 echo "$ac_t""no" 1>&6
3096 # Do we have a single-tree copy of texinfo?
3097 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3098 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3099 gcc_cv_prog_makeinfo_modern
=yes
3100 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3102 # See if makeinfo has been installed and is modern enough
3103 # that we can use it.
3104 # Extract the first word of "makeinfo", so it can be a program name with args.
3105 set dummy makeinfo
; ac_word
=$2
3106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_word" >&5
3108 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 if test -n "$MAKEINFO"; then
3112 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3116 for ac_dir
in $ac_dummy; do
3117 test -z "$ac_dir" && ac_dir
=.
3118 if test -f $ac_dir/$ac_word; then
3119 ac_cv_prog_MAKEINFO
="makeinfo"
3126 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3127 if test -n "$MAKEINFO"; then
3128 echo "$ac_t""$MAKEINFO" 1>&6
3130 echo "$ac_t""no" 1>&6
3133 if test -n "$MAKEINFO"; then
3134 # Found it, now check the version.
3135 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3136 echo "configure:3137: checking for modern makeinfo" >&5
3137 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3141 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3142 echo "configure:3143: version of makeinfo is $ac_prog_version" >&5
3143 case $ac_prog_version in
3144 '') gcc_cv_prog_makeinfo_modern
=no
;;
3146 gcc_cv_prog_makeinfo_modern
=yes;;
3147 *) gcc_cv_prog_makeinfo_modern
=no
;;
3152 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3154 gcc_cv_prog_makeinfo_modern
=no
3159 if test $gcc_cv_prog_makeinfo_modern = no
; then
3160 echo "configure: warning:
3161 *** Makeinfo is missing or too old.
3162 *** Info documentation will not be built." 1>&2
3168 # Is pod2man recent enough to regenerate manpages?
3169 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3170 echo "configure:3171: checking for recent Pod::Man" >&5
3171 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3172 echo "$ac_t""yes" 1>&6
3173 GENERATED_MANPAGES
=generated-manpages
3175 echo "$ac_t""no" 1>&6
3180 if test -f $srcdir/..
/flex
/skel.c
; then
3181 FLEX
='$(objdir)/../flex/flex'
3183 # Extract the first word of "flex", so it can be a program name with args.
3184 set dummy flex
; ac_word
=$2
3185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_word" >&5
3187 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 if test -n "$FLEX"; then
3191 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3195 for ac_dir
in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir
=.
3197 if test -f $ac_dir/$ac_word; then
3198 ac_cv_prog_FLEX
="flex"
3203 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3206 FLEX
="$ac_cv_prog_FLEX"
3207 if test -n "$FLEX"; then
3208 echo "$ac_t""$FLEX" 1>&6
3210 echo "$ac_t""no" 1>&6
3216 # The -L switch is so bison can find its skeleton file.
3217 if test -f $srcdir/..
/bison
/bison.simple
; then
3218 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3220 # Extract the first word of "bison", so it can be a program name with args.
3221 set dummy bison
; ac_word
=$2
3222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3223 echo "configure:3224: checking for $ac_word" >&5
3224 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 if test -n "$BISON"; then
3228 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3230 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3232 for ac_dir
in $ac_dummy; do
3233 test -z "$ac_dir" && ac_dir
=.
3234 if test -f $ac_dir/$ac_word; then
3235 ac_cv_prog_BISON
="bison"
3240 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3243 BISON
="$ac_cv_prog_BISON"
3244 if test -n "$BISON"; then
3245 echo "$ac_t""$BISON" 1>&6
3247 echo "$ac_t""no" 1>&6
3252 # These libraries may be used by collect2.
3253 # We may need a special search path to get them linked.
3254 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3255 echo "configure:3256: checking for collect2 libraries" >&5
3256 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3260 for libs
in '' -lld -lmld \
3261 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3262 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3265 cat > conftest.
$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 /* Override any gcc2 internal prototype to avoid an error. */
3269 /* We use char because int might match the return type of a gcc2
3270 builtin and then its argument prototype would still apply. */
3277 if { (eval echo configure
:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3279 gcc_cv_collect2_libs
="$libs"; break
3281 echo "configure: failed program was:" >&5
3282 cat conftest.
$ac_ext >&5
3287 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3290 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3291 case $gcc_cv_collect2_libs in
3293 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3297 # When building Ada code on Alpha, we need exc_resume which is usually in
3298 # -lexc. So test for it.
3302 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3303 echo "configure:3304: checking for library containing exc_resume" >&5
3304 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 ac_func_search_save_LIBS
="$LIBS"
3308 ac_cv_search_exc_resume
="no"
3309 cat > conftest.
$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3321 if { (eval echo configure
:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3323 ac_cv_search_exc_resume
="none required"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3329 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3330 LIBS
="-l$i $ac_func_search_save_LIBS"
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* Override any gcc2 internal prototype to avoid an error. */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3343 if { (eval echo configure
:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3345 ac_cv_search_exc_resume
="-l$i"
3348 echo "configure: failed program was:" >&5
3349 cat conftest.
$ac_ext >&5
3353 LIBS
="$ac_func_search_save_LIBS"
3356 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3357 if test "$ac_cv_search_exc_resume" != "no"; then
3358 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3367 # See if the stage1 system preprocessor understands the ANSI C
3368 # preprocessor stringification operator. (Used by symcat.h.)
3371 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3372 echo "configure:3373: checking for preprocessor stringizing operator" >&5
3373 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 cat > conftest.
$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3382 char *s = x(teststring);
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 egrep "#teststring" >/dev
/null
2>&1; then
3388 ac_cv_c_stringize
=no
3391 ac_cv_c_stringize
=yes
3397 if test "${ac_cv_c_stringize}" = yes
3399 cat >> confdefs.h
<<\EOF
3400 #define HAVE_STRINGIZE 1
3404 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3407 # Use <inttypes.h> only if it exists,
3408 # doesn't clash with <sys/types.h>, and declares intmax_t.
3409 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3410 echo "configure:3411: checking for inttypes.h" >&5
3411 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 cat > conftest.
$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <sys/types.h>
3418 #include <inttypes.h>
3423 if { (eval echo configure
:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3425 gcc_cv_header_inttypes_h
=yes
3427 echo "configure: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3430 gcc_cv_header_inttypes_h
=no
3435 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3436 if test $gcc_cv_header_inttypes_h = yes; then
3437 cat >> confdefs.h
<<\EOF
3438 #define HAVE_INTTYPES_H 1
3444 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3445 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3446 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
3449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3450 echo "configure:3451: checking for $ac_func" >&5
3451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 cat > conftest.
$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 /* System header to define __stub macros and hopefully few prototypes,
3458 which can conflict with char $ac_func(); below. */
3460 /* Override any gcc2 internal prototype to avoid an error. */
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3467 /* The GNU C library defines this for functions which it implements
3468 to always fail with ENOSYS. Some functions are actually named
3469 something starting with __ and the normal name is an alias. */
3470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3478 if { (eval echo configure
:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3480 eval "ac_cv_func_$ac_func=yes"
3482 echo "configure: failed program was:" >&5
3483 cat conftest.
$ac_ext >&5
3485 eval "ac_cv_func_$ac_func=no"
3490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3492 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3493 cat >> confdefs.h
<<EOF
3494 #define $ac_tr_func 1
3498 echo "$ac_t""no" 1>&6
3503 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3504 echo "configure:3505: checking for ssize_t" >&5
3505 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 cat > conftest.
$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <sys/types.h>
3517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3518 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3520 ac_cv_type_ssize_t
=yes
3523 ac_cv_type_ssize_t
=no
3528 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3529 if test $ac_cv_type_ssize_t = no
; then
3530 cat >> confdefs.h
<<\EOF
3537 # Try to determine the array type of the second argument of getgroups
3538 # for the target system (int or gid_t).
3539 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3540 echo "configure:3541: checking for uid_t in sys/types.h" >&5
3541 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 cat > conftest.
$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <sys/types.h>
3549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3550 egrep "uid_t" >/dev
/null
2>&1; then
3552 ac_cv_type_uid_t
=yes
3561 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3562 if test $ac_cv_type_uid_t = no
; then
3563 cat >> confdefs.h
<<\EOF
3567 cat >> confdefs.h
<<\EOF
3573 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3574 echo "configure:3575: checking type of array argument to getgroups" >&5
3575 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3578 if test "$cross_compiling" = yes; then
3579 ac_cv_type_getgroups
=cross
3581 cat > conftest.
$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3585 /* Thanks to Mike Rendell for this test. */
3586 #include <sys/types.h>
3589 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3594 union { gid_t gval; long lval; } val;
3597 for (i = 0; i < NGID; i++)
3598 gidset[i] = val.gval;
3599 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3601 /* Exit non-zero if getgroups seems to require an array of ints. This
3602 happens when gid_t is short but getgroups modifies an array of ints. */
3603 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3607 if { (eval echo configure
:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3609 ac_cv_type_getgroups
=gid_t
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 ac_cv_type_getgroups
=int
3619 if test $ac_cv_type_getgroups = cross
; then
3620 cat > conftest.
$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3626 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3628 ac_cv_type_getgroups
=gid_t
3631 ac_cv_type_getgroups
=int
3638 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3639 cat >> confdefs.h
<<EOF
3640 #define GETGROUPS_T $ac_cv_type_getgroups
3644 if test "${target}" = "${build}"; then
3645 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3648 # This condition may need some tweaking. It should include all
3649 # targets where the array type of the second argument of getgroups
3650 # is int and the type of gid_t is not equivalent to int.
3651 *-*-sunos* |
*-*-ultrix*)
3652 TARGET_GETGROUPS_T
=int
3655 TARGET_GETGROUPS_T
=gid_t
3661 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3662 echo "configure:3663: checking whether the printf functions support %p" >&5
3663 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 if test "$cross_compiling" = yes; then
3667 gcc_cv_func_printf_ptr
=no
3669 cat > conftest.
$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3677 char *p = buf, *q = NULL;
3678 sprintf(buf, "%p", p);
3679 sscanf(buf, "%p", &q);
3683 if { (eval echo configure
:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3685 gcc_cv_func_printf_ptr
=yes
3687 echo "configure: failed program was:" >&5
3688 cat conftest.
$ac_ext >&5
3690 gcc_cv_func_printf_ptr
=no
3695 rm -f core core.
* *.core
3698 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3699 if test $gcc_cv_func_printf_ptr = yes ; then
3700 cat >> confdefs.h
<<\EOF
3701 #define HAVE_PRINTF_PTR 1
3709 { echo "configure: error:
3710 *** UWIN may not be used as a host platform because
3711 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3714 # Under VMS, vfork works very different than on Unix. The standard test
3715 # won't work, and it isn't easily adaptable. It makes more sense to
3717 ac_cv_func_vfork_works
=yes
3720 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3721 echo "configure:3722: checking for pid_t" >&5
3722 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 cat > conftest.
$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <sys/types.h>
3734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3737 ac_cv_type_pid_t
=yes
3745 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3746 if test $ac_cv_type_pid_t = no
; then
3747 cat >> confdefs.h
<<\EOF
3753 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3754 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3755 echo "configure:3756: checking for vfork.h" >&5
3756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.
$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3764 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3765 { (eval echo configure
:3766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3766 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3767 if test -z "$ac_err"; then
3769 eval "ac_cv_header_$ac_safe=yes"
3772 echo "configure: failed program was:" >&5
3773 cat conftest.
$ac_ext >&5
3775 eval "ac_cv_header_$ac_safe=no"
3779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3781 cat >> confdefs.h
<<\EOF
3782 #define HAVE_VFORK_H 1
3786 echo "$ac_t""no" 1>&6
3789 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3790 echo "configure:3791: checking for working vfork" >&5
3791 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 if test "$cross_compiling" = yes; then
3795 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3796 echo "configure:3797: checking for vfork" >&5
3797 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 cat > conftest.
$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* System header to define __stub macros and hopefully few prototypes,
3804 which can conflict with char vfork(); below. */
3806 /* Override any gcc2 internal prototype to avoid an error. */
3807 /* We use char because int might match the return type of a gcc2
3808 builtin and then its argument prototype would still apply. */
3813 /* The GNU C library defines this for functions which it implements
3814 to always fail with ENOSYS. Some functions are actually named
3815 something starting with __ and the normal name is an alias. */
3816 #if defined (__stub_vfork) || defined (__stub___vfork)
3824 if { (eval echo configure
:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3826 eval "ac_cv_func_vfork=yes"
3828 echo "configure: failed program was:" >&5
3829 cat conftest.
$ac_ext >&5
3831 eval "ac_cv_func_vfork=no"
3836 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3840 echo "$ac_t""no" 1>&6
3843 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3845 cat > conftest.
$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 /* Thanks to Paul Eggert for this test. */
3850 #include <sys/types.h>
3851 #include <sys/stat.h>
3852 #ifdef HAVE_UNISTD_H
3858 /* On some sparc systems, changes by the child to local and incoming
3859 argument registers are propagated back to the parent.
3860 The compiler is told about this with #include <vfork.h>,
3861 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3862 Test for this by using a static variable whose address
3863 is put into a register that is clobbered by the vfork. */
3866 sparc_address_test (int arg)
3868 sparc_address_test (arg) int arg;
3886 pid_t parent = getpid ();
3889 sparc_address_test ();
3894 /* Here is another test for sparc vfork register problems.
3895 This test uses lots of local variables, at least
3896 as many local variables as main has allocated so far
3897 including compiler temporaries. 4 locals are enough for
3898 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3899 A buggy compiler should reuse the register of parent
3900 for one of the local variables, since it will think that
3901 parent can't possibly be used any more in this routine.
3902 Assigning to the local variable will thus munge parent
3903 in the parent process. */
3905 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3906 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3907 /* Convince the compiler that p..p7 are live; otherwise, it might
3908 use the same hardware register for all 8 local variables. */
3909 if (p != p1 || p != p2 || p != p3 || p != p4
3910 || p != p5 || p != p6 || p != p7)
3913 /* On some systems (e.g. IRIX 3.3),
3914 vfork doesn't separate parent from child file descriptors.
3915 If the child closes a descriptor before it execs or exits,
3916 this munges the parent's descriptor as well.
3917 Test for this by closing stdout in the child. */
3918 _exit(close(fileno(stdout)) != 0);
3923 while (wait(&status) != child)
3926 /* Was there some problem with vforking? */
3929 /* Did the child fail? (This shouldn't happen.) */
3932 /* Did the vfork/compiler bug occur? */
3933 || parent != getpid()
3935 /* Did the file descriptor bug occur? */
3936 || fstat(fileno(stdout), &st) != 0
3941 if { (eval echo configure
:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3943 ac_cv_func_vfork_works
=yes
3945 echo "configure: failed program was:" >&5
3946 cat conftest.
$ac_ext >&5
3948 ac_cv_func_vfork_works
=no
3955 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3956 if test $ac_cv_func_vfork_works = no
; then
3957 cat >> confdefs.h
<<\EOF
3963 for ac_func
in getpagesize
3965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3966 echo "configure:3967: checking for $ac_func" >&5
3967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 cat > conftest.
$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* System header to define __stub macros and hopefully few prototypes,
3974 which can conflict with char $ac_func(); below. */
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3983 /* The GNU C library defines this for functions which it implements
3984 to always fail with ENOSYS. Some functions are actually named
3985 something starting with __ and the normal name is an alias. */
3986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3994 if { (eval echo configure
:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3996 eval "ac_cv_func_$ac_func=yes"
3998 echo "configure: failed program was:" >&5
3999 cat conftest.
$ac_ext >&5
4001 eval "ac_cv_func_$ac_func=no"
4006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4007 echo "$ac_t""yes" 1>&6
4008 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4009 cat >> confdefs.h
<<EOF
4010 #define $ac_tr_func 1
4014 echo "$ac_t""no" 1>&6
4018 # The test program for the next two tests is the same except for one
4020 cat >ct-mmap.inc
<<'EOF'
4021 #include <sys/types.h>
4022 #include <sys/mman.h>
4028 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4029 # define MAP_ANONYMOUS MAP_ANON
4032 /* This mess was copied from the GNU getpagesize.h. */
4033 #ifndef HAVE_GETPAGESIZE
4034 # ifdef HAVE_UNISTD_H
4035 # include <unistd.h>
4038 /* Assume that all systems that can run configure have sys/param.h. */
4039 # ifndef HAVE_SYS_PARAM_H
4040 # define HAVE_SYS_PARAM_H 1
4043 # ifdef _SC_PAGESIZE
4044 # define getpagesize() sysconf(_SC_PAGESIZE)
4045 # else /* no _SC_PAGESIZE */
4046 # ifdef HAVE_SYS_PARAM_H
4047 # include <sys/param.h>
4048 # ifdef EXEC_PAGESIZE
4049 # define getpagesize() EXEC_PAGESIZE
4050 # else /* no EXEC_PAGESIZE */
4052 # define getpagesize() NBPG * CLSIZE
4055 # endif /* no CLSIZE */
4056 # else /* no NBPG */
4058 # define getpagesize() NBPC
4059 # else /* no NBPC */
4061 # define getpagesize() PAGESIZE
4062 # endif /* PAGESIZE */
4063 # endif /* no NBPC */
4064 # endif /* no NBPG */
4065 # endif /* no EXEC_PAGESIZE */
4066 # else /* no HAVE_SYS_PARAM_H */
4067 # define getpagesize() 8192 /* punt totally */
4068 # endif /* no HAVE_SYS_PARAM_H */
4069 # endif /* no _SC_PAGESIZE */
4071 #endif /* no HAVE_GETPAGESIZE */
4074 # define MAP_FAILED -1
4078 #define perror_exit(str, val) \
4079 do { perror(str); exit(val); } while (0)
4081 /* Some versions of cygwin mmap require that munmap is called with the
4082 same parameters as mmap. GCC expects that this is not the case.
4083 Test for various forms of this problem. Warning - icky signal games. */
4085 static sigset_t unblock_sigsegv;
4095 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4096 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4098 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4099 MAP_PRIVATE, devzero, 0);
4107 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4111 /* Basic functionality test. */
4115 char *x = anonmap (pg);
4116 if (x == (char *) MAP_FAILED)
4117 perror_exit("test 0 mmap", 2);
4121 if (munmap(x, pg) < 0)
4122 perror_exit("test 0 munmap", 3);
4125 /* 1. If we map a 2-page region and unmap its second page, the first page
4130 char *x = anonmap (pg * 2);
4131 if (x == (char *)MAP_FAILED)
4132 perror_exit ("test 1 mmap", 4);
4134 signal (SIGSEGV, sigsegv);
4136 perror_exit ("test 1 fault", 5);
4141 if (munmap (x + pg, pg) < 0)
4142 perror_exit ("test 1 munmap 1", 6);
4145 if (setjmp (r) == 0)
4148 perror_exit ("test 1 no fault", 7);
4150 if (munmap (x, pg) < 0)
4151 perror_exit ("test 1 munmap 2", 8);
4154 /* 2. If we map a 2-page region and unmap its first page, the second
4155 page must remain. */
4159 char *x = anonmap (pg * 2);
4160 if (x == (char *)MAP_FAILED)
4161 perror_exit ("test 2 mmap", 9);
4163 signal (SIGSEGV, sigsegv);
4165 perror_exit ("test 2 fault", 10);
4170 if (munmap (x, pg) < 0)
4171 perror_exit ("test 2 munmap 1", 11);
4175 if (setjmp (r) == 0)
4178 perror_exit ("test 2 no fault", 12);
4181 if (munmap (x+pg, pg) < 0)
4182 perror_exit ("test 2 munmap 2", 13);
4185 /* 3. If we map two adjacent 1-page regions and unmap them both with
4186 one munmap, both must go away.
4188 Getting two adjacent 1-page regions with two mmap calls is slightly
4189 tricky. All OS's tested skip over already-allocated blocks; therefore
4190 we have been careful to unmap all allocated regions in previous tests.
4191 HP/UX allocates pages backward in memory. No OS has yet been observed
4192 to be so perverse as to leave unmapped space between consecutive calls
4201 if (x == (char *)MAP_FAILED)
4202 perror_exit ("test 3 mmap 1", 14);
4204 if (y == (char *)MAP_FAILED)
4205 perror_exit ("test 3 mmap 2", 15);
4210 z = y, y = x, x = z;
4213 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4214 (unsigned long)x, (unsigned long)y);
4219 signal (SIGSEGV, sigsegv);
4221 perror_exit ("test 3 fault", 17);
4226 if (munmap (x, pg*2) < 0)
4227 perror_exit ("test 3 munmap", 18);
4229 if (setjmp (r) == 0)
4232 perror_exit ("test 3 no fault 1", 19);
4235 signal (SIGSEGV, sigsegv);
4236 if (setjmp (r) == 0)
4239 perror_exit ("test 3 no fault 2", 20);
4246 sigemptyset (&unblock_sigsegv);
4247 sigaddset (&unblock_sigsegv, SIGSEGV);
4248 pg = getpagesize ();
4249 #ifndef USE_MAP_ANON
4250 devzero = open ("/dev/zero", O_RDWR);
4252 perror_exit ("open /dev/zero", 1);
4264 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4265 echo "configure:4266: checking for working mmap from /dev/zero" >&5
4266 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 if test "$cross_compiling" = yes; then
4270 # If this is not cygwin, and /dev/zero is a character device, it's probably
4271 # safe to assume it works.
4273 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4274 * ) if test -c /dev
/zero
4275 then ac_cv_func_mmap_dev_zero
=yes
4276 else ac_cv_func_mmap_dev_zero
=no
4280 cat > conftest.
$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 #include "ct-mmap.inc"
4285 if { (eval echo configure
:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4287 ac_cv_func_mmap_dev_zero
=yes
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4293 then ac_cv_func_mmap_dev_zero
=no
4294 else ac_cv_func_mmap_dev_zero
=buggy
4303 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4304 if test $ac_cv_func_mmap_dev_zero = yes; then
4305 cat >> confdefs.h
<<\EOF
4306 #define HAVE_MMAP_DEV_ZERO 1
4311 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4312 echo "configure:4313: checking for working mmap with MAP_ANON(YMOUS)" >&5
4313 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 if test "$cross_compiling" = yes; then
4317 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4318 # just because it's there. Some SCO Un*xen define it but don't implement it.
4319 ac_cv_func_mmap_anon
=no
4321 cat > conftest.
$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 #define USE_MAP_ANON
4325 #include "ct-mmap.inc"
4327 if { (eval echo configure
:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4329 ac_cv_func_mmap_anon
=yes
4331 echo "configure: failed program was:" >&5
4332 cat conftest.
$ac_ext >&5
4335 then ac_cv_func_mmap_anon
=no
4336 else ac_cv_func_mmap_anon
=buggy
4345 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4346 if test $ac_cv_func_mmap_anon = yes; then
4347 cat >> confdefs.h
<<\EOF
4348 #define HAVE_MMAP_ANON 1
4354 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4355 echo "configure:4356: checking for working mmap of a file" >&5
4356 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 # Create a file one thousand bytes long.
4360 for i
in 1 2 3 4 5 6 7 8 9 0
4361 do for j
in 1 2 3 4 5 6 7 8 9 0
4364 done > conftestdata$$
4366 if test "$cross_compiling" = yes; then
4367 ac_cv_func_mmap_file
=no
4369 cat > conftest.
$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4373 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4374 Richard Henderson and Alexandre Oliva.
4375 Check whether read-only mmap of a plain file works. */
4376 #include <sys/types.h>
4377 #include <sys/stat.h>
4379 #include <sys/mman.h>
4387 fd = open("conftestdata$$", O_RDONLY);
4391 if (fstat (fd, &st))
4394 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4395 if (x == (char *) -1)
4398 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4401 if (munmap(x, st.st_size) < 0)
4407 if { (eval echo configure
:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4409 ac_cv_func_mmap_file
=yes
4411 echo "configure: failed program was:" >&5
4412 cat conftest.
$ac_ext >&5
4414 ac_cv_func_mmap_file
=no
4421 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4422 if test $ac_cv_func_mmap_file = yes; then
4423 cat >> confdefs.h
<<\EOF
4424 #define HAVE_MMAP_FILE 1
4432 am_cv_lib_iconv_ldpath
=
4433 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4434 if test "${with_libiconv_prefix+set}" = set; then
4435 withval
="$with_libiconv_prefix"
4437 for dir
in `echo "$withval" | tr : ' '`; do
4438 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4439 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4445 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4446 echo "configure:4447: checking for iconv" >&5
4447 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4451 am_cv_func_iconv
="no, consider installing GNU libiconv"
4453 cat > conftest.
$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4459 iconv_t cd = iconv_open("","");
4460 iconv(cd,NULL,NULL,NULL,NULL);
4464 if { (eval echo configure
:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4466 am_cv_func_iconv
=yes
4468 echo "configure: failed program was:" >&5
4469 cat conftest.
$ac_ext >&5
4472 if test "$am_cv_func_iconv" != yes; then
4473 am_save_LIBS
="$LIBS"
4474 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4475 cat > conftest.
$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4481 iconv_t cd = iconv_open("","");
4482 iconv(cd,NULL,NULL,NULL,NULL);
4486 if { (eval echo configure
:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4489 am_cv_func_iconv
=yes
4491 echo "configure: failed program was:" >&5
4492 cat conftest.
$ac_ext >&5
4495 LIBS
="$am_save_LIBS"
4500 echo "$ac_t""$am_cv_func_iconv" 1>&6
4501 if test "$am_cv_func_iconv" = yes; then
4502 cat >> confdefs.h
<<\EOF
4503 #define HAVE_ICONV 1
4506 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4507 echo "configure:4508: checking for iconv declaration" >&5
4508 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4512 cat > conftest.
$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4522 #if defined(__STDC__) || defined(__cplusplus)
4523 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4532 if { (eval echo configure
:4533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4534 am_cv_proto_iconv_arg1
=""
4536 echo "configure: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4539 am_cv_proto_iconv_arg1
="const"
4542 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);"
4545 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4546 echo "$ac_t""${ac_t:-
4547 }$am_cv_proto_iconv" 1>&6
4548 cat >> confdefs.h
<<EOF
4549 #define ICONV_CONST $am_cv_proto_iconv_arg1
4554 if test "$am_cv_lib_iconv" = yes; then
4555 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4560 # We will need to find libiberty.h and ansidecl.h
4561 saved_CFLAGS
="$CFLAGS"
4562 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4563 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4564 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4565 fprintf_unlocked strstr errno \
4566 malloc realloc calloc free
basename getopt
clock
4568 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4569 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4570 echo "configure:4571: checking whether $ac_func is declared" >&5
4571 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.
$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4578 #define $ac_tr_decl 1
4580 #include "ansidecl.h"
4585 char *(*pfn) = (char *(*)) $ac_func ;
4589 if { (eval echo configure
:4590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4591 eval "gcc_cv_have_decl_$ac_func=yes"
4593 echo "configure: failed program was:" >&5
4594 cat conftest.
$ac_ext >&5
4596 eval "gcc_cv_have_decl_$ac_func=no"
4601 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4603 #define $ac_tr_decl 1
4607 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4608 #define $ac_tr_decl 0
4614 if test x
= y
; then
4615 cat >> confdefs.h
<<\EOF
4616 #define HAVE_DECL_GETENV 1
4618 cat >> confdefs.h
<<\EOF
4619 #define HAVE_DECL_ATOL 1
4621 cat >> confdefs.h
<<\EOF
4622 #define HAVE_DECL_SBRK 1
4624 cat >> confdefs.h
<<\EOF
4625 #define HAVE_DECL_ABORT 1
4627 cat >> confdefs.h
<<\EOF
4628 #define HAVE_DECL_ATOF 1
4630 cat >> confdefs.h
<<\EOF
4631 #define HAVE_DECL_GETCWD 1
4633 cat >> confdefs.h
<<\EOF
4634 #define HAVE_DECL_GETWD 1
4637 cat >> confdefs.h
<<\EOF
4638 #define HAVE_DECL_STRSIGNAL 1
4640 cat >> confdefs.h
<<\EOF
4641 #define HAVE_DECL_PUTC_UNLOCKED 1
4643 cat >> confdefs.h
<<\EOF
4644 #define HAVE_DECL_FPUTS_UNLOCKED 1
4646 cat >> confdefs.h
<<\EOF
4647 #define HAVE_DECL_FWRITE_UNLOCKED 1
4650 cat >> confdefs.h
<<\EOF
4651 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4653 cat >> confdefs.h
<<\EOF
4654 #define HAVE_DECL_STRSTR 1
4656 cat >> confdefs.h
<<\EOF
4657 #define HAVE_DECL_ERRNO 1
4660 cat >> confdefs.h
<<\EOF
4661 #define HAVE_DECL_MALLOC 1
4663 cat >> confdefs.h
<<\EOF
4664 #define HAVE_DECL_REALLOC 1
4666 cat >> confdefs.h
<<\EOF
4667 #define HAVE_DECL_CALLOC 1
4669 cat >> confdefs.h
<<\EOF
4670 #define HAVE_DECL_FREE 1
4672 cat >> confdefs.h
<<\EOF
4673 #define HAVE_DECL_BASENAME 1
4675 cat >> confdefs.h
<<\EOF
4676 #define HAVE_DECL_GETOPT 1
4678 cat >> confdefs.h
<<\EOF
4679 #define HAVE_DECL_CLOCK 1
4684 for ac_func
in getrlimit setrlimit getrusage
4686 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4687 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4688 echo "configure:4689: checking whether $ac_func is declared" >&5
4689 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 cat > conftest.
$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4696 #define $ac_tr_decl 1
4698 #include "ansidecl.h"
4700 #ifdef HAVE_SYS_RESOURCE_H
4701 #include <sys/resource.h>
4707 char *(*pfn) = (char *(*)) $ac_func ;
4711 if { (eval echo configure
:4712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4713 eval "gcc_cv_have_decl_$ac_func=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4718 eval "gcc_cv_have_decl_$ac_func=no"
4723 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4725 #define $ac_tr_decl 1
4729 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4730 #define $ac_tr_decl 0
4736 if test x
= y
; then
4737 cat >> confdefs.h
<<\EOF
4738 #define HAVE_DECL_GETRLIMIT 1
4740 cat >> confdefs.h
<<\EOF
4741 #define HAVE_DECL_SETRLIMIT 1
4743 cat >> confdefs.h
<<\EOF
4744 #define HAVE_DECL_GETRUSAGE 1
4749 for ac_func
in times
4751 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4752 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4753 echo "configure:4754: checking whether $ac_func is declared" >&5
4754 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.
$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4761 #define $ac_tr_decl 1
4763 #include "ansidecl.h"
4765 #ifdef HAVE_SYS_TIMES_H
4766 #include <sys/times.h>
4772 char *(*pfn) = (char *(*)) $ac_func ;
4776 if { (eval echo configure
:4777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4778 eval "gcc_cv_have_decl_$ac_func=yes"
4780 echo "configure: failed program was:" >&5
4781 cat conftest.
$ac_ext >&5
4783 eval "gcc_cv_have_decl_$ac_func=no"
4788 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4790 #define $ac_tr_decl 1
4794 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4795 #define $ac_tr_decl 0
4801 if test x
= y
; then
4802 cat >> confdefs.h
<<\EOF
4803 #define HAVE_DECL_TIMES 1
4808 # More time-related stuff.
4809 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4810 echo "configure:4811: checking for struct tms" >&5
4811 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4815 cat > conftest.
$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4819 #include "ansidecl.h"
4821 #ifdef HAVE_SYS_TIMES_H
4822 #include <sys/times.h>
4829 if { (eval echo configure
:4830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831 ac_cv_struct_tms
=yes
4833 echo "configure: failed program was:" >&5
4834 cat conftest.
$ac_ext >&5
4841 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4842 if test $ac_cv_struct_tms = yes; then
4843 cat >> confdefs.h
<<\EOF
4844 #define HAVE_STRUCT_TMS 1
4849 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4850 # revisit after autoconf 2.50.
4851 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4852 echo "configure:4853: checking for clock_t" >&5
4853 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4857 cat > conftest.
$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4861 #include "ansidecl.h"
4868 if { (eval echo configure
:4869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4870 gcc_cv_type_clock_t
=yes
4872 echo "configure: failed program was:" >&5
4873 cat conftest.
$ac_ext >&5
4875 gcc_cv_type_clock_t
=no
4880 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4881 if test $gcc_cv_type_clock_t = yes; then
4882 cat >> confdefs.h
<<\EOF
4883 #define HAVE_CLOCK_T 1
4888 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4889 CFLAGS
="$saved_CFLAGS"
4891 # mkdir takes a single argument on some systems.
4892 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4893 echo "configure:4894: checking if mkdir takes one argument" >&5
4894 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4897 cat > conftest.
$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4901 #include <sys/types.h>
4902 #ifdef HAVE_SYS_STAT_H
4903 # include <sys/stat.h>
4905 #ifdef HAVE_UNISTD_H
4906 # include <unistd.h>
4908 #ifdef HAVE_DIRECT_H
4909 # include <direct.h>
4915 if { (eval echo configure
:4916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4917 gcc_cv_mkdir_takes_one_arg
=no
4919 echo "configure: failed program was:" >&5
4920 cat conftest.
$ac_ext >&5
4922 gcc_cv_mkdir_takes_one_arg
=yes
4927 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4928 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4929 cat >> confdefs.h
<<\EOF
4930 #define MKDIR_TAKES_ONE_ARG 1
4945 build_install_headers_dir
=install-headers-tar
4950 host_truncate_target
=
4953 # Decode the host machine, then the target machine.
4954 # For the host machine, we save the xm_file variable as host_xm_file;
4955 # then we decode the target machine and forget everything else
4956 # that came from the host machine.
4957 for machine
in $build $host $target; do
4958 .
${srcdir}/config.gcc
4961 extra_objs
="${host_extra_objs} ${extra_objs}"
4963 # Default the target-machine variables that were not explicitly set.
4964 if test x
"$tm_file" = x
4965 then tm_file
=$cpu_type/$cpu_type.h
; fi
4967 if test x
"$extra_headers" = x
4968 then extra_headers
=; fi
4970 if test x
$md_file = x
4971 then md_file
=$cpu_type/$cpu_type.md
; fi
4973 if test x
$out_file = x
4974 then out_file
=$cpu_type/$cpu_type.c
; fi
4976 if test x
"$tmake_file" = x
4977 then tmake_file
=$cpu_type/t-
$cpu_type
4980 if test x
"$dwarf2" = xyes
4981 then tm_file
="$tm_file tm-dwarf2.h"
4984 if test x
$float_format = x
4985 then float_format
=i64
4988 if test $float_format = none
4989 then float_h_file
=Makefile.
in
4990 else float_h_file
=float-
$float_format.h
4993 # Say what files are being used for the output code and MD file.
4994 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4995 echo "Using \`$srcdir/config/$md_file' as machine description file."
4997 # If any of the xm_file variables contain nonexistent files, warn
4998 # about them and drop them.
5001 for x
in $build_xm_file; do
5002 if test -f $srcdir/config
/$x
5004 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5010 for x
in $host_xm_file; do
5011 if test -f $srcdir/config
/$x
5013 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5019 for x
in $xm_file; do
5020 if test -f $srcdir/config
/$x
5022 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5028 for f
in $tm_file; do
5031 if test $count = ax
; then
5032 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5034 echo "Using the following target machine macro files:"
5035 for f
in $tm_file; do
5036 echo " $srcdir/config/$f"
5041 for f
in $host_xm_file; do
5044 if test $count = a
; then
5046 elif test $count = ax
; then
5047 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5049 echo "Using the following host machine macro files:"
5050 for f
in $host_xm_file; do
5051 echo " $srcdir/config/$f"
5055 if test "$host_xm_file" != "$build_xm_file"; then
5057 for f
in $build_xm_file; do
5060 if test $count = a
; then
5062 elif test $count = ax
; then
5063 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5065 echo "Using the following build machine macro files:"
5066 for f
in $build_xm_file; do
5067 echo " $srcdir/config/$f"
5072 if test x
$thread_file = x
; then
5073 if test x
$target_thread_file != x
; then
5074 thread_file
=$target_thread_file
5076 thread_file
='single'
5080 # auto-host.h is the file containing items generated by autoconf and is
5081 # the first file included by config.h.
5082 # If host=build, it is correct to have hconfig include auto-host.h
5083 # as well. If host!=build, we are in error and need to do more
5084 # work to find out the build config parameters.
5085 if test x
$host = x
$build
5087 build_auto
=auto-host.h
5090 # We create a subdir, then run autoconf in the subdir.
5091 # To prevent recursion we set host and build for the new
5092 # invocation of configure to the build for this invocation
5099 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5100 *) realsrcdir
=..
/${srcdir};;
5102 saved_CFLAGS
="${CFLAGS}"
5103 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5104 ${realsrcdir}/configure \
5105 --target=$target_alias --host=$build_alias --build=$build_alias
5106 CFLAGS
="${saved_CFLAGS}"
5108 # We just finished tests for the build machine, so rename
5109 # the file auto-build.h in the gcc directory.
5110 mv auto-host.h ..
/auto-build.h
5113 build_auto
=auto-build.h
5118 tm_file
="${tm_file} defaults.h"
5119 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5120 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5121 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5123 # Truncate the target if necessary
5124 if test x
$host_truncate_target != x
; then
5125 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5128 # Get the version trigger filename from the toplevel
5129 if test "${with_gcc_version_trigger+set}" = set; then
5130 gcc_version_trigger
=$with_gcc_version_trigger
5132 gcc_version_trigger
=${srcdir}/version.c
5134 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5135 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5137 # Compile in configure arguments.
5138 if test -f configargs.h
; then
5139 # Being re-configured.
5140 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5141 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5143 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5145 cat > configargs.h
<<EOF
5146 /* Generated automatically. */
5147 static const char configuration_arguments[] = "$gcc_config_arguments";
5148 static const char thread_model[] = "$thread_file";
5151 # Internationalization
5153 VERSION
="$gcc_version"
5157 # Enable NLS support by default
5158 # Check whether --enable-nls or --disable-nls was given.
5159 if test "${enable_nls+set}" = set; then
5160 enableval
="$enable_nls"
5167 # if cross compiling, disable NLS support.
5168 # It's not worth the trouble, at least for now.
5170 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5171 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5177 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5178 echo "configure:5179: checking for library containing strerror" >&5
5179 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 ac_func_search_save_LIBS
="$LIBS"
5183 ac_cv_search_strerror
="no"
5184 cat > conftest.
$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 /* Override any gcc2 internal prototype to avoid an error. */
5188 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5196 if { (eval echo configure
:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5198 ac_cv_search_strerror
="none required"
5200 echo "configure: failed program was:" >&5
5201 cat conftest.
$ac_ext >&5
5204 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5205 LIBS
="-l$i $ac_func_search_save_LIBS"
5206 cat > conftest.
$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5218 if { (eval echo configure
:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5220 ac_cv_search_strerror
="-l$i"
5223 echo "configure: failed program was:" >&5
5224 cat conftest.
$ac_ext >&5
5228 LIBS
="$ac_func_search_save_LIBS"
5231 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5232 if test "$ac_cv_search_strerror" != "no"; then
5233 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5240 echo $ac_n "checking for working const""... $ac_c" 1>&6
5241 echo "configure:5242: checking for working const" >&5
5242 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 cat > conftest.
$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5251 /* Ultrix mips cc rejects this. */
5252 typedef int charset[2]; const charset x;
5253 /* SunOS 4.1.1 cc rejects this. */
5254 char const *const *ccp;
5256 /* NEC SVR4.0.2 mips cc rejects this. */
5257 struct point {int x, y;};
5258 static struct point const zero = {0,0};
5259 /* AIX XL C 1.02.0.0 rejects this.
5260 It does not let you subtract one const X* pointer from another in an arm
5261 of an if-expression whose if-part is not a constant expression */
5262 const char *g = "string";
5263 ccp = &g + (g ? g-g : 0);
5264 /* HPUX 7.0 cc rejects these. */
5267 ccp = (char const *const *) p;
5268 { /* SCO 3.2v4 cc rejects this. */
5270 char const *s = 0 ? (char *) 0 : (char const *) 0;
5274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5276 const int *foo = &x[0];
5279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5280 typedef const int *iptr;
5284 { /* AIX XL C 1.02.0.0 rejects this saying
5285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5286 struct s { int j; const int *ap[3]; };
5287 struct s *b; b->j = 5;
5289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5295 if { (eval echo configure
:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299 echo "configure: failed program was:" >&5
5300 cat conftest.
$ac_ext >&5
5307 echo "$ac_t""$ac_cv_c_const" 1>&6
5308 if test $ac_cv_c_const = no
; then
5309 cat >> confdefs.h
<<\EOF
5315 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5316 echo "configure:5317: checking for off_t" >&5
5317 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 cat > conftest.
$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5323 #include <sys/types.h>
5329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5332 ac_cv_type_off_t
=yes
5340 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5341 if test $ac_cv_type_off_t = no
; then
5342 cat >> confdefs.h
<<\EOF
5348 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5349 echo "configure:5350: checking for size_t" >&5
5350 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 cat > conftest.
$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 #include <sys/types.h>
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5365 ac_cv_type_size_t
=yes
5368 ac_cv_type_size_t
=no
5373 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5374 if test $ac_cv_type_size_t = no
; then
5375 cat >> confdefs.h
<<\EOF
5376 #define size_t unsigned
5381 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5382 # for constant arguments. Useless!
5383 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5384 echo "configure:5385: checking for working alloca.h" >&5
5385 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 cat > conftest.
$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5393 char *p = alloca(2 * sizeof(int));
5396 if { (eval echo configure
:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5398 ac_cv_header_alloca_h
=yes
5400 echo "configure: failed program was:" >&5
5401 cat conftest.
$ac_ext >&5
5403 ac_cv_header_alloca_h
=no
5408 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5409 if test $ac_cv_header_alloca_h = yes; then
5410 cat >> confdefs.h
<<\EOF
5411 #define HAVE_ALLOCA_H 1
5416 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5417 echo "configure:5418: checking for alloca" >&5
5418 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 cat > conftest.
$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5426 # define alloca __builtin_alloca
5429 # include <malloc.h>
5430 # define alloca _alloca
5433 # include <alloca.h>
5438 # ifndef alloca /* predefined by HP cc +Olibcalls */
5447 char *p = (char *) alloca(1);
5450 if { (eval echo configure
:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5452 ac_cv_func_alloca_works
=yes
5454 echo "configure: failed program was:" >&5
5455 cat conftest.
$ac_ext >&5
5457 ac_cv_func_alloca_works
=no
5462 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5463 if test $ac_cv_func_alloca_works = yes; then
5464 cat >> confdefs.h
<<\EOF
5465 #define HAVE_ALLOCA 1
5470 if test $ac_cv_func_alloca_works = no
; then
5471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5472 # that cause trouble. Some versions do not even contain alloca or
5473 # contain a buggy version. If you still want to use their alloca,
5474 # use ar to extract alloca.o from them instead of compiling alloca.c.
5475 ALLOCA
=alloca.
${ac_objext}
5476 cat >> confdefs.h
<<\EOF
5481 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5482 echo "configure:5483: checking whether alloca needs Cray hooks" >&5
5483 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.
$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 #if defined(CRAY) && ! defined(CRAY2)
5496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497 egrep "webecray" >/dev
/null
2>&1; then
5508 echo "$ac_t""$ac_cv_os_cray" 1>&6
5509 if test $ac_cv_os_cray = yes; then
5510 for ac_func
in _getb67 GETB67 getb67
; do
5511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5512 echo "configure:5513: checking for $ac_func" >&5
5513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 cat > conftest.
$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519 /* System header to define __stub macros and hopefully few prototypes,
5520 which can conflict with char $ac_func(); below. */
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5529 /* The GNU C library defines this for functions which it implements
5530 to always fail with ENOSYS. Some functions are actually named
5531 something starting with __ and the normal name is an alias. */
5532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5540 if { (eval echo configure
:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5542 eval "ac_cv_func_$ac_func=yes"
5544 echo "configure: failed program was:" >&5
5545 cat conftest.
$ac_ext >&5
5547 eval "ac_cv_func_$ac_func=no"
5552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5553 echo "$ac_t""yes" 1>&6
5554 cat >> confdefs.h
<<EOF
5555 #define CRAY_STACKSEG_END $ac_func
5560 echo "$ac_t""no" 1>&6
5566 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5567 echo "configure:5568: checking stack direction for C alloca" >&5
5568 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 if test "$cross_compiling" = yes; then
5572 ac_cv_c_stack_direction
=0
5574 cat > conftest.
$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 find_stack_direction ()
5579 static char *addr = 0;
5584 return find_stack_direction ();
5587 return (&dummy > addr) ? 1 : -1;
5591 exit (find_stack_direction() < 0);
5594 if { (eval echo configure
:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5596 ac_cv_c_stack_direction
=1
5598 echo "configure: failed program was:" >&5
5599 cat conftest.
$ac_ext >&5
5601 ac_cv_c_stack_direction
=-1
5608 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5609 cat >> confdefs.h
<<EOF
5610 #define STACK_DIRECTION $ac_cv_c_stack_direction
5616 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5617 echo "configure:5618: checking whether we are using the GNU C Library 2.1 or newer" >&5
5618 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 cat > conftest.
$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5625 #include <features.h>
5626 #ifdef __GNU_LIBRARY__
5627 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5636 ac_cv_gnu_library_2_1
=yes
5639 ac_cv_gnu_library_2_1
=no
5647 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5649 GLIBC21
="$ac_cv_gnu_library_2_1"
5653 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5654 stdlib.h string.h unistd.h sys
/param.h
5656 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5658 echo "configure:5659: checking for $ac_hdr" >&5
5659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5660 echo $ac_n "(cached) $ac_c" 1>&6
5662 cat > conftest.
$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5668 { (eval echo configure
:5669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5670 if test -z "$ac_err"; then
5672 eval "ac_cv_header_$ac_safe=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 eval "ac_cv_header_$ac_safe=no"
5682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5683 echo "$ac_t""yes" 1>&6
5684 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5685 cat >> confdefs.h
<<EOF
5686 #define $ac_tr_hdr 1
5690 echo "$ac_t""no" 1>&6
5694 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5695 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5696 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5699 echo "configure:5700: checking for $ac_func" >&5
5700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 cat > conftest.
$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5706 /* System header to define __stub macros and hopefully few prototypes,
5707 which can conflict with char $ac_func(); below. */
5709 /* Override any gcc2 internal prototype to avoid an error. */
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5716 /* The GNU C library defines this for functions which it implements
5717 to always fail with ENOSYS. Some functions are actually named
5718 something starting with __ and the normal name is an alias. */
5719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5727 if { (eval echo configure
:5728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5729 eval "ac_cv_func_$ac_func=yes"
5731 echo "configure: failed program was:" >&5
5732 cat conftest.
$ac_ext >&5
5734 eval "ac_cv_func_$ac_func=no"
5739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5740 echo "$ac_t""yes" 1>&6
5741 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5742 cat >> confdefs.h
<<EOF
5743 #define $ac_tr_func 1
5747 echo "$ac_t""no" 1>&6
5754 am_cv_lib_iconv_ldpath
=
5755 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5756 if test "${with_libiconv_prefix+set}" = set; then
5757 withval
="$with_libiconv_prefix"
5759 for dir
in `echo "$withval" | tr : ' '`; do
5760 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5761 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5767 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5768 echo "configure:5769: checking for iconv" >&5
5769 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5773 am_cv_func_iconv
="no, consider installing GNU libiconv"
5775 cat > conftest.
$ac_ext <<EOF
5776 #line 5777 "configure"
5777 #include "confdefs.h"
5781 iconv_t cd = iconv_open("","");
5782 iconv(cd,NULL,NULL,NULL,NULL);
5786 if { (eval echo configure
:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5788 am_cv_func_iconv
=yes
5790 echo "configure: failed program was:" >&5
5791 cat conftest.
$ac_ext >&5
5794 if test "$am_cv_func_iconv" != yes; then
5795 am_save_LIBS
="$LIBS"
5796 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5797 cat > conftest.
$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5803 iconv_t cd = iconv_open("","");
5804 iconv(cd,NULL,NULL,NULL,NULL);
5808 if { (eval echo configure
:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5811 am_cv_func_iconv
=yes
5813 echo "configure: failed program was:" >&5
5814 cat conftest.
$ac_ext >&5
5817 LIBS
="$am_save_LIBS"
5822 echo "$ac_t""$am_cv_func_iconv" 1>&6
5823 if test "$am_cv_func_iconv" = yes; then
5824 cat >> confdefs.h
<<\EOF
5825 #define HAVE_ICONV 1
5828 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5829 echo "configure:5830: checking for iconv declaration" >&5
5830 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.
$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5844 #if defined(__STDC__) || defined(__cplusplus)
5845 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5854 if { (eval echo configure
:5855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5856 am_cv_proto_iconv_arg1
=""
5858 echo "configure: failed program was:" >&5
5859 cat conftest.
$ac_ext >&5
5861 am_cv_proto_iconv_arg1
="const"
5864 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);"
5867 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5868 echo "$ac_t""${ac_t:-
5869 }$am_cv_proto_iconv" 1>&6
5870 cat >> confdefs.h
<<EOF
5871 #define ICONV_CONST $am_cv_proto_iconv_arg1
5876 if test "$am_cv_lib_iconv" = yes; then
5877 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5882 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5883 echo "configure:5884: checking for nl_langinfo and CODESET" >&5
5884 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 #include <langinfo.h>
5892 char* cs = nl_langinfo(CODESET);
5895 if { (eval echo configure
:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5897 am_cv_langinfo_codeset
=yes
5899 echo "configure: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5902 am_cv_langinfo_codeset
=no
5908 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5909 if test $am_cv_langinfo_codeset = yes; then
5910 cat >> confdefs.h
<<\EOF
5911 #define HAVE_LANGINFO_CODESET 1
5916 if test $ac_cv_header_locale_h = yes; then
5917 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5918 echo "configure:5919: checking for LC_MESSAGES" >&5
5919 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 cat > conftest.
$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5930 if { (eval echo configure
:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5932 am_cv_val_LC_MESSAGES
=yes
5934 echo "configure: failed program was:" >&5
5935 cat conftest.
$ac_ext >&5
5937 am_cv_val_LC_MESSAGES
=no
5942 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5943 if test $am_cv_val_LC_MESSAGES = yes; then
5944 cat >> confdefs.h
<<\EOF
5945 #define HAVE_LC_MESSAGES 1
5950 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5951 echo "configure:5952: checking whether NLS is requested" >&5
5952 # Check whether --enable-nls or --disable-nls was given.
5953 if test "${enable_nls+set}" = set; then
5954 enableval
="$enable_nls"
5960 echo "$ac_t""$USE_NLS" 1>&6
5963 BUILD_INCLUDED_LIBINTL
=no
5964 USE_INCLUDED_LIBINTL
=no
5968 if test "$USE_NLS" = "yes"; then
5969 cat >> confdefs.h
<<\EOF
5970 #define ENABLE_NLS 1
5973 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5974 echo "configure:5975: checking whether included gettext is requested" >&5
5975 # Check whether --with-included-gettext or --without-included-gettext was given.
5976 if test "${with_included_gettext+set}" = set; then
5977 withval
="$with_included_gettext"
5978 nls_cv_force_use_gnu_gettext
=$withval
5980 nls_cv_force_use_gnu_gettext
=no
5983 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5985 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5986 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5992 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5993 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5994 echo "configure:5995: checking for libintl.h" >&5
5995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5998 cat > conftest.
$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 #include <libintl.h>
6003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6004 { (eval echo configure
:6005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6006 if test -z "$ac_err"; then
6008 eval "ac_cv_header_$ac_safe=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.
$ac_ext >&5
6014 eval "ac_cv_header_$ac_safe=no"
6018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6019 echo "$ac_t""yes" 1>&6
6020 cat >> confdefs.h
<<\EOF
6021 #define HAVE_LIBINTL_H 1
6024 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6025 echo "configure:6026: checking for GNU gettext in libc" >&5
6026 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6027 echo $ac_n "(cached) $ac_c" 1>&6
6029 cat > conftest.
$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 #include <libintl.h>
6033 extern int _nl_msg_cat_cntr;
6035 bindtextdomain ("", "");
6036 return (int) gettext ("") + _nl_msg_cat_cntr
6039 if { (eval echo configure
:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6041 gt_cv_func_gnugettext1_libc
=yes
6043 echo "configure: failed program was:" >&5
6044 cat conftest.
$ac_ext >&5
6046 gt_cv_func_gnugettext1_libc
=no
6051 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6053 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6054 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6055 echo "configure:6056: checking for GNU gettext in libintl" >&5
6056 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 gt_save_LIBS
="$LIBS"
6060 LIBS
="$LIBS -lintl $LIBICONV"
6061 cat > conftest.
$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 #include <libintl.h>
6065 extern int _nl_msg_cat_cntr;
6067 bindtextdomain ("", "");
6068 return (int) gettext ("") + _nl_msg_cat_cntr
6071 if { (eval echo configure
:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6073 gt_cv_func_gnugettext1_libintl
=yes
6075 echo "configure: failed program was:" >&5
6076 cat conftest.
$ac_ext >&5
6078 gt_cv_func_gnugettext1_libintl
=no
6081 LIBS
="$gt_save_LIBS"
6084 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6087 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6088 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6089 && test "$PACKAGE" != gettext; }; then
6090 cat >> confdefs.h
<<\EOF
6091 #define HAVE_GETTEXT 1
6095 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6096 INTLLIBS
="-lintl $LIBICONV"
6099 gt_save_LIBS
="$LIBS"
6100 LIBS
="$LIBS $INTLLIBS"
6101 for ac_func
in dcgettext
6103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6104 echo "configure:6105: checking for $ac_func" >&5
6105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.
$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 /* System header to define __stub macros and hopefully few prototypes,
6112 which can conflict with char $ac_func(); below. */
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6121 /* The GNU C library defines this for functions which it implements
6122 to always fail with ENOSYS. Some functions are actually named
6123 something starting with __ and the normal name is an alias. */
6124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6132 if { (eval echo configure
:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6134 eval "ac_cv_func_$ac_func=yes"
6136 echo "configure: failed program was:" >&5
6137 cat conftest.
$ac_ext >&5
6139 eval "ac_cv_func_$ac_func=no"
6144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6145 echo "$ac_t""yes" 1>&6
6146 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6147 cat >> confdefs.h
<<EOF
6148 #define $ac_tr_func 1
6152 echo "$ac_t""no" 1>&6
6156 LIBS
="$gt_save_LIBS"
6158 # Extract the first word of "msgfmt", so it can be a program name with args.
6159 set dummy msgfmt
; ac_word
=$2
6160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_word" >&5
6162 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6167 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6170 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6171 for ac_dir
in $PATH; do
6172 test -z "$ac_dir" && ac_dir
=.
6173 if test -f $ac_dir/$ac_word; then
6174 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6175 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6181 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6185 MSGFMT
="$ac_cv_path_MSGFMT"
6186 if test "$MSGFMT" != ":"; then
6187 echo "$ac_t""$MSGFMT" 1>&6
6189 echo "$ac_t""no" 1>&6
6192 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6193 set dummy gmsgfmt
; ac_word
=$2
6194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6195 echo "configure:6196: checking for $ac_word" >&5
6196 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6201 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6204 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6209 for ac_dir
in $ac_dummy; do
6210 test -z "$ac_dir" && ac_dir
=.
6211 if test -f $ac_dir/$ac_word; then
6212 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6217 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6221 GMSGFMT
="$ac_cv_path_GMSGFMT"
6222 if test -n "$GMSGFMT"; then
6223 echo "$ac_t""$GMSGFMT" 1>&6
6225 echo "$ac_t""no" 1>&6
6229 # Extract the first word of "xgettext", so it can be a program name with args.
6230 set dummy xgettext
; ac_word
=$2
6231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6232 echo "configure:6233: checking for $ac_word" >&5
6233 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6238 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6242 for ac_dir
in $PATH; do
6243 test -z "$ac_dir" && ac_dir
=.
6244 if test -f $ac_dir/$ac_word; then
6245 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6246 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6252 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6256 XGETTEXT
="$ac_cv_path_XGETTEXT"
6257 if test "$XGETTEXT" != ":"; then
6258 echo "$ac_t""$XGETTEXT" 1>&6
6260 echo "$ac_t""no" 1>&6
6268 echo "$ac_t""no" 1>&6
6272 if test "$CATOBJEXT" = "NONE"; then
6273 nls_cv_use_gnu_gettext
=yes
6277 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6278 INTLOBJS
="\$(GETTOBJS)"
6279 # Extract the first word of "msgfmt", so it can be a program name with args.
6280 set dummy msgfmt
; ac_word
=$2
6281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6282 echo "configure:6283: checking for $ac_word" >&5
6283 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6288 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6291 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6292 for ac_dir
in $PATH; do
6293 test -z "$ac_dir" && ac_dir
=.
6294 if test -f $ac_dir/$ac_word; then
6295 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6296 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6302 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6306 MSGFMT
="$ac_cv_path_MSGFMT"
6307 if test "$MSGFMT" != ":"; then
6308 echo "$ac_t""$MSGFMT" 1>&6
6310 echo "$ac_t""no" 1>&6
6313 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6314 set dummy gmsgfmt
; ac_word
=$2
6315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6316 echo "configure:6317: checking for $ac_word" >&5
6317 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6322 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6325 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6328 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6330 for ac_dir
in $ac_dummy; do
6331 test -z "$ac_dir" && ac_dir
=.
6332 if test -f $ac_dir/$ac_word; then
6333 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6338 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6342 GMSGFMT
="$ac_cv_path_GMSGFMT"
6343 if test -n "$GMSGFMT"; then
6344 echo "$ac_t""$GMSGFMT" 1>&6
6346 echo "$ac_t""no" 1>&6
6349 # Extract the first word of "xgettext", so it can be a program name with args.
6350 set dummy xgettext
; ac_word
=$2
6351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_word" >&5
6353 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6358 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6361 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6362 for ac_dir
in $PATH; do
6363 test -z "$ac_dir" && ac_dir
=.
6364 if test -f $ac_dir/$ac_word; then
6365 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6366 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6372 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6376 XGETTEXT
="$ac_cv_path_XGETTEXT"
6377 if test "$XGETTEXT" != ":"; then
6378 echo "$ac_t""$XGETTEXT" 1>&6
6380 echo "$ac_t""no" 1>&6
6384 BUILD_INCLUDED_LIBINTL
=yes
6385 USE_INCLUDED_LIBINTL
=yes
6387 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6388 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6389 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6392 if test "$GMSGFMT" != ":"; then
6393 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6396 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6401 if test "$XGETTEXT" != ":"; then
6402 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6405 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6415 if test "$PACKAGE" = gettext; then
6416 BUILD_INCLUDED_LIBINTL
=yes
6419 for ac_prog
in bison
6421 # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy
$ac_prog; ac_word
=$2
6423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6424 echo "configure:6425: checking for $ac_word" >&5
6425 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6428 if test -n "$INTLBISON"; then
6429 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6431 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6433 for ac_dir
in $ac_dummy; do
6434 test -z "$ac_dir" && ac_dir
=.
6435 if test -f $ac_dir/$ac_word; then
6436 ac_cv_prog_INTLBISON
="$ac_prog"
6443 INTLBISON
="$ac_cv_prog_INTLBISON"
6444 if test -n "$INTLBISON"; then
6445 echo "$ac_t""$INTLBISON" 1>&6
6447 echo "$ac_t""no" 1>&6
6450 test -n "$INTLBISON" && break
6453 if test -z "$INTLBISON"; then
6456 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6457 echo "configure:6458: checking version of bison" >&5
6458 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6459 case $ac_prog_version in
6460 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6461 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6462 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6463 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6465 echo "$ac_t""$ac_prog_version" 1>&6
6467 if test $ac_verc_fail = yes; then
6480 if test $USE_INCLUDED_LIBINTL = yes; then
6481 cat >> confdefs.h
<<\EOF
6482 #define USE_INCLUDED_LIBINTL 1
6488 nls_cv_header_libgt
=
6500 if test "x$CATOBJEXT" != x
; then
6501 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6502 echo "configure:6503: checking for catalogs to be installed" >&5
6503 # Look for .po and .gmo files in the source directory.
6506 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6507 # If there aren't any .gmo files the shell will give us the
6508 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6510 case "$cat" in *\
**)
6513 # The quadruple backslash is collapsed to a double backslash
6514 # by the backticks, then collapsed again by the double quotes,
6515 # leaving us with one backslash in the sed expression (right
6516 # before the dot that mustn't act as a wildcard). The dot to
6517 # be escaped in the second expression is hiding inside CATOBJEXT.
6518 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6519 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6520 # The user is allowed to set LINGUAS to a list of languages to
6521 # install catalogs for. If it's empty that means "all of them."
6522 if test "x$LINGUAS" = x
; then
6523 CATALOGS
="$CATALOGS $cat"
6524 XLINGUAS
="$XLINGUAS $lang"
6526 case "$LINGUAS" in *$lang*)
6527 CATALOGS
="$CATALOGS $cat"
6528 XLINGUAS
="$XLINGUAS $lang"
6534 echo "$ac_t""$LINGUAS" 1>&6
6538 if test -n "$ac_aux_dir"; then
6539 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6541 if test -z "$MKINSTALLDIRS"; then
6542 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6546 INTL_LIBTOOL_SUFFIX_PREFIX
=
6550 # Windows32 Registry support for specifying GCC installation paths.
6551 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6552 if test "${enable_win32_registry+set}" = set; then
6553 enableval
="$enable_win32_registry"
6558 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6559 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6560 echo "configure:6561: checking whether windows registry support is requested" >&5
6561 if test "x$enable_win32_registry" != xno
; then
6562 cat >> confdefs.h
<<\EOF
6563 #define ENABLE_WIN32_REGISTRY 1
6566 echo "$ac_t""yes" 1>&6
6568 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6569 echo "configure:6570: checking for library containing RegOpenKeyExA" >&5
6570 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 ac_func_search_save_LIBS
="$LIBS"
6574 ac_cv_search_RegOpenKeyExA
="no"
6575 cat > conftest.
$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */
6581 char RegOpenKeyExA();
6587 if { (eval echo configure
:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6589 ac_cv_search_RegOpenKeyExA
="none required"
6591 echo "configure: failed program was:" >&5
6592 cat conftest.
$ac_ext >&5
6595 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6596 LIBS
="-l$i $ac_func_search_save_LIBS"
6597 cat > conftest.
$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603 char RegOpenKeyExA();
6609 if { (eval echo configure
:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6611 ac_cv_search_RegOpenKeyExA
="-l$i"
6614 echo "configure: failed program was:" >&5
6615 cat conftest.
$ac_ext >&5
6619 LIBS
="$ac_func_search_save_LIBS"
6622 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6623 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6624 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6630 echo "$ac_t""no" 1>&6
6633 # Check if user specified a different registry key.
6634 case "x${enable_win32_registry}" in
6637 gcc_cv_win32_registry_key
="$VERSION"
6640 # no registry lookup.
6641 gcc_cv_win32_registry_key
=''
6644 # user-specified key.
6645 gcc_cv_win32_registry_key
="$enable_win32_registry"
6649 if test "x$enable_win32_registry" != xno
; then
6650 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6651 echo "configure:6652: checking registry key on windows hosts" >&5
6652 cat >> confdefs.h
<<EOF
6653 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6656 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6661 # Get an absolute path to the GCC top-level source directory
6662 holddir
=`${PWDCMD-pwd}`
6664 topdir
=`${PWDCMD-pwd}`
6667 # Conditionalize the makefile for this host machine.
6668 # Make-host contains the concatenation of all host makefile fragments
6669 # [there can be more than one]. This file is built by configure.frag.
6670 host_overrides
=Make-host
6671 dep_host_xmake_file
=
6672 for f
in ..
${host_xmake_file}
6674 if test -f ${srcdir}/config
/$f
6676 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6680 # Conditionalize the makefile for this target machine.
6681 # Make-target contains the concatenation of all host makefile fragments
6682 # [there can be more than one]. This file is built by configure.frag.
6683 target_overrides
=Make-target
6685 for f
in ..
${tmake_file}
6687 if test -f ${srcdir}/config
/$f
6689 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6693 # If the host doesn't support symlinks, modify CC in
6694 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6695 # Otherwise, we can use "CC=$(CC)".
6697 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6699 cc_set_by_configure
="\$(CC)"
6700 quoted_cc_set_by_configure
="\$(CC)"
6701 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6702 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6705 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6707 symbolic_link
="cp -p"
6711 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6712 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6713 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6714 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6718 out_object_file
=`basename $out_file .c`.o
6721 for f
in $tm_file; do
6724 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6726 tm_file_list
="${tm_file_list} \$(srcdir)/$f" ;;
6727 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6732 for f
in $tm_p_file; do
6733 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6737 for f
in $host_xm_file; do
6740 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6742 host_xm_file_list
="${host_xm_file_list} $f" ;;
6744 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6745 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6750 for f
in $build_xm_file; do
6753 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6754 auto-build.h | auto-host.h
)
6755 build_xm_file_list
="${build_xm_file_list} $f" ;;
6757 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6758 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6762 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6763 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6766 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6767 if test x
$host != x
$target
6769 CROSS
="-DCROSS_COMPILE"
6771 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6772 case "$host","$target" in
6773 i?
86-*-*,x86_64-
*-* \
6774 | powerpc
*-*-*,powerpc64
*-*-*)
6775 CROSS
="$CROSS -DNATIVE_CROSS" ;;
6779 # If this is a cross-compiler that does not
6780 # have its own set of headers then define
6783 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6784 # This prevents libgcc2 from containing any code which requires libc
6787 if test x
$host != x
$target && test x
$with_headers = x
; then
6788 inhibit_libc
=-Dinhibit_libc
6790 if test x
$with_newlib = xyes
; then
6791 inhibit_libc
=-Dinhibit_libc
6796 # When building gcc with a cross-compiler, we need to adjust things so
6797 # that the generator programs are still built with the native compiler.
6798 # Also, we cannot run fixincludes or fix-header.
6799 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6802 # These are the normal (build=host) settings:
6804 BUILD_PREFIX_1
=ignore-
6806 HOST_CFLAGS
='$(ALL_CFLAGS)'
6808 STMP_FIXINC
=stmp-fixinc
6809 STMP_FIXPROTO
=stmp-fixproto
6811 # And these apply if build != host.
6812 if test x
$build != x
$host
6815 BUILD_PREFIX_1
=build-
6816 HOST_CC
='$(CC_FOR_BUILD)'
6817 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6823 # Expand extra_headers to include complete path.
6824 # This substitutes for lots of t-* files.
6826 if test "x$extra_headers" = x
6829 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6830 for file in $extra_headers;
6832 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6836 if test x
$use_collect2 = xno
; then
6840 # Add a definition of USE_COLLECT2 if system wants one.
6841 if test x
$use_collect2 != x
6843 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6844 xm_defines
="${xm_defines} USE_COLLECT2"
6847 # If we have gas in the build tree, make a link to it.
6848 if test -f ..
/gas
/Makefile
; then
6849 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6852 # If we have nm and objdump in the build tree, make a link to them.
6853 if test -f ..
/binutils
/Makefile
; then
6854 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6855 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6858 # If we have ld in the build tree, make a link to it.
6859 if test -f ..
/ld
/Makefile
; then
6860 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6863 # Figure out what assembler we will be using.
6864 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6865 echo "configure:6866: checking what assembler to use" >&5
6867 gcc_cv_gas_major_version
=
6868 gcc_cv_gas_minor_version
=
6869 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6870 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6871 if test -x "$DEFAULT_ASSEMBLER"; then
6872 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6873 elif test -x "$AS"; then
6875 elif test -x as
$host_exeext; then
6876 # Build using assembler in the current directory.
6877 gcc_cv_as
=.
/as
$host_exeext
6878 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6879 # Single tree build which includes gas.
6880 for f
in $gcc_cv_as_bfd_srcdir/configure
$gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
6882 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6883 if test x
$gcc_cv_gas_version != x
; then
6887 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6888 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6889 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
6892 if test "x$gcc_cv_as" = x
; then
6893 # Search the same directories that the installed compiler will
6894 # search. Else we may find the wrong assembler and lose. If we
6895 # do not find a suitable assembler binary, then try the user's
6898 # Also note we have to check MD_EXEC_PREFIX before checking the
6899 # user's path. Unfortunately, there is no good way to get at the
6900 # value of MD_EXEC_PREFIX here. So we do a brute force search
6901 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6902 # to be fixed as part of the make/configure rewrite too.
6904 if test "x$exec_prefix" = xNONE
; then
6905 if test "x$prefix" = xNONE
; then
6906 test_prefix
=/usr
/local
6911 test_prefix
=$exec_prefix
6914 # If the loop below does not find an assembler, then use whatever
6915 # one we can find in the users's path.
6917 if test "x$program_prefix" != xNONE
; then
6918 gcc_cv_as
=${program_prefix}as
$host_exeext
6920 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
6923 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
6924 $test_prefix/lib/gcc-lib/$target_alias \
6925 /usr/lib/gcc/$target_alias/$gcc_version \
6926 /usr/lib/gcc/$target_alias \
6927 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
6928 $test_prefix/$target_alias/bin"
6930 if test x
$host = x
$target; then
6931 test_dirs
="$test_dirs \
6936 /bsd43/usr/lib/cmplrs/cc \
6937 /usr/cross64/usr/bin \
6938 /usr/lib/cmplrs/cc \
6939 /sysv/usr/lib/cmplrs/cc \
6940 /svr4/usr/lib/cmplrs/cc \
6944 for dir
in $test_dirs; do
6945 if test -x $dir/as
$host_exeext; then
6946 gcc_cv_as
=$dir/as
$host_exeext
6951 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6952 echo "$ac_t"""newly built gas
"" 1>&6
6954 echo "$ac_t""$gcc_cv_as" 1>&6
6957 # Figure out what linker we will be using.
6958 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6959 echo "configure:6960: checking what linker to use" >&5
6961 gcc_cv_gld_major_version
=
6962 gcc_cv_gld_minor_version
=
6963 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6964 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6965 if test -x "$DEFAULT_LINKER"; then
6966 gcc_cv_ld
="$DEFAULT_LINKER"
6967 elif test -x "$LD"; then
6969 elif test -x ld
$host_exeext; then
6970 # Build using linker in the current directory.
6971 gcc_cv_ld
=.
/ld
$host_exeext
6972 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
6973 # Single tree build which includes ld.
6974 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
6976 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6977 if test x
$gcc_cv_gld_version != x
; then
6981 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6982 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6985 if test "x$gcc_cv_ld" = x
; then
6986 # Search the same directories that the installed compiler will
6987 # search. Else we may find the wrong linker and lose. If we
6988 # do not find a suitable linker binary, then try the user's
6991 # Also note we have to check MD_EXEC_PREFIX before checking the
6992 # user's path. Unfortunately, there is no good way to get at the
6993 # value of MD_EXEC_PREFIX here. So we do a brute force search
6994 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6995 # to be fixed as part of the make/configure rewrite too.
6997 if test "x$exec_prefix" = xNONE
; then
6998 if test "x$prefix" = xNONE
; then
6999 test_prefix
=/usr
/local
7004 test_prefix
=$exec_prefix
7007 # If the loop below does not find an linker, then use whatever
7008 # one we can find in the users's path.
7010 if test "x$program_prefix" != xNONE
; then
7011 gcc_cv_ld
=${program_prefix}ld
$host_exeext
7013 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
7016 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7017 $test_prefix/lib/gcc-lib/$target_alias \
7018 /usr/lib/gcc/$target_alias/$gcc_version \
7019 /usr/lib/gcc/$target_alias \
7020 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7021 $test_prefix/$target_alias/bin"
7023 if test x
$host = x
$target; then
7024 test_dirs
="$test_dirs \
7029 /bsd43/usr/lib/cmplrs/cc \
7030 /usr/cross64/usr/bin \
7031 /usr/lib/cmplrs/cc \
7032 /sysv/usr/lib/cmplrs/cc \
7033 /svr4/usr/lib/cmplrs/cc \
7037 for dir
in $test_dirs; do
7038 if test -x $dir/ld
$host_exeext; then
7039 gcc_cv_ld
=$dir/ld
$host_exeext
7044 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7045 echo "$ac_t"""newly built ld
"" 1>&6
7047 echo "$ac_t""$gcc_cv_ld" 1>&6
7050 # Figure out what nm we will be using.
7051 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7052 echo "configure:7053: checking what nm to use" >&5
7053 if test -x nm
$host_exeext; then
7054 gcc_cv_nm
=.
/nm
$host_exeext
7055 elif test "x$program_prefix" != xNONE
; then
7056 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7058 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7060 echo "$ac_t""$gcc_cv_nm" 1>&6
7062 # Figure out what objdump we will be using.
7063 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7064 echo "configure:7065: checking what objdump to use" >&5
7065 if test -x objdump
$host_exeext; then
7066 gcc_cv_objdump
=.
/objdump
$host_exeext
7067 elif test "x$program_prefix" != xNONE
; then
7068 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7070 gcc_cv_objdump
=`echo objdump | sed ${program_transform_name}`$host_exeext
7072 echo "$ac_t""$gcc_cv_objdump" 1>&6
7074 # Figure out what assembler alignment features are present.
7075 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7076 echo "configure:7077: checking assembler alignment features" >&5
7077 gcc_cv_as_alignment_features
=none
7078 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7079 # Gas version 2.6 and later support for .balign and .p2align.
7080 # bytes to skip when using .p2align.
7081 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
7082 gcc_cv_as_alignment_features
=".balign and .p2align"
7083 cat >> confdefs.h
<<\EOF
7084 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7088 # Gas version 2.8 and later support specifying the maximum
7089 # bytes to skip when using .p2align.
7090 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
7091 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7092 cat >> confdefs.h
<<\EOF
7093 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7097 elif test x
$gcc_cv_as != x
; then
7098 # Check if we have .balign and .p2align
7099 echo ".balign 4" > conftest.s
7100 echo ".p2align 2" >> conftest.s
7101 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7102 gcc_cv_as_alignment_features
=".balign and .p2align"
7103 cat >> confdefs.h
<<\EOF
7104 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7108 rm -f conftest.s conftest.o
7109 # Check if specifying the maximum bytes to skip when
7110 # using .p2align is supported.
7111 echo ".p2align 4,,7" > conftest.s
7112 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7113 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7114 cat >> confdefs.h
<<\EOF
7115 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7119 rm -f conftest.s conftest.o
7121 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7123 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7124 echo "configure:7125: checking assembler subsection support" >&5
7125 gcc_cv_as_subsections
=no
7126 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7127 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7128 gcc_cv_as_subsections
="working .subsection -1"
7130 elif test x
$gcc_cv_as != x
; then
7131 # Check if we have .subsection
7132 echo ".subsection 1" > conftest.s
7133 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7134 gcc_cv_as_subsections
=".subsection"
7135 if test x
$gcc_cv_nm != x
; then
7136 cat > conftest.s
<<EOF
7137 conftest_label1: .word 0
7139 conftest_label2: .word 0
7142 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7143 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7144 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7145 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7148 gcc_cv_as_subsections
="working .subsection -1"
7153 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7155 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7156 cat >> confdefs.h
<<\EOF
7157 #define HAVE_GAS_SUBSECTION_ORDERING 1
7161 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7163 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7164 echo "configure:7165: checking assembler weak support" >&5
7166 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7167 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
7168 gcc_cv_as_weak
="yes"
7170 elif test x
$gcc_cv_as != x
; then
7171 # Check if we have .weak
7172 echo " .weak foobar" > conftest.s
7173 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7174 gcc_cv_as_weak
="yes"
7176 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7178 if test x
"$gcc_cv_as_weak" = xyes
; then
7179 cat >> confdefs.h
<<\EOF
7180 #define HAVE_GAS_WEAK 1
7184 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7186 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7187 echo "configure:7188: checking assembler hidden support" >&5
7189 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7190 if test "$gcc_cv_gas_major_version" -eq 2 \
7191 -a "$gcc_cv_gas_minor_version" -eq 12 \
7192 -a "$gcc_cv_gas_patch_version" -ge 1 \
7193 -o "$gcc_cv_gas_major_version" -eq 2 \
7194 -a "$gcc_cv_gas_minor_version" -gt 12 \
7195 -o "$gcc_cv_gas_major_version" -gt 2 \
7196 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7197 gcc_cv_as_hidden
="yes"
7199 elif test x
$gcc_cv_as != x
; then
7200 # Check if we have .hidden
7201 echo " .hidden foobar" > conftest.s
7202 echo "foobar:" >> conftest.s
7203 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7204 gcc_cv_as_hidden
="yes"
7206 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7208 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7209 # This is irritatingly difficult to feature test for. Look for
7210 # the date string after the version number.
7211 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7212 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7213 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
7214 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'`
7215 if test 0"$ld_date" -lt 20020404; then
7216 if test -n "$ld_date"; then
7217 # If there was date string, but was earlier than 2002-04-04, fail
7218 gcc_cv_as_hidden
="no"
7219 elif test -z "$ld_vers"; then
7220 # If there was no date string nor ld version number, something is wrong
7221 gcc_cv_as_hidden
="no"
7223 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
7224 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
7225 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7226 test -z "$ld_vers_patch" && ld_vers_patch
=0
7227 if test "$ld_vers_major" -lt 2; then
7228 gcc_cv_as_hidden
="no"
7229 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
7230 gcc_cv_as_hidden
="no"
7231 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
7232 -a "$ld_vers_patch" -eq 0; then
7233 gcc_cv_as_hidden
="no"
7239 if test x
"$gcc_cv_as_hidden" = xyes
; then
7240 cat >> confdefs.h
<<\EOF
7241 #define HAVE_GAS_HIDDEN 1
7245 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7246 libgcc_visibility
=$gcc_cv_as_hidden
7249 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7250 echo "configure:7251: checking assembler leb128 support" >&5
7252 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7253 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7254 gcc_cv_as_leb128
="yes"
7256 elif test x
$gcc_cv_as != x
; then
7257 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7258 cat > conftest.s
<<EOF
7266 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7267 gcc_cv_as_leb128
="yes"
7269 # GAS versions before 2.11 do not support uleb128,
7270 # despite appearing to.
7271 # ??? There exists an elf-specific test that will crash
7272 # the assembler. Perhaps it's better to figure out whether
7273 # arbitrary sections are supported and try the test.
7274 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7275 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7276 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7277 as_major
=`echo $as_ver | sed 's/\..*//'`
7278 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7279 if test $as_major -eq 2 -a $as_minor -lt 11; then
7280 gcc_cv_as_leb128
="no"
7284 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7286 if test x
"$gcc_cv_as_leb128" = xyes
; then
7287 cat >> confdefs.h
<<\EOF
7288 #define HAVE_AS_LEB128 1
7292 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7294 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7295 echo "configure:7296: checking assembler eh_frame optimization" >&5
7296 gcc_cv_as_eh_frame
=no
7297 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7298 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7299 gcc_cv_as_eh_frame
="yes"
7301 elif test x
$gcc_cv_as != x
; then
7302 # Check if this is GAS.
7303 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7304 rm -f a.out
2> /dev
/null
7305 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7306 # Versions up to and including 2.11.0 may mis-optimize
7307 # .eh_frame data. Try something.
7308 cat > conftest.s
<<EOF
7315 .section .eh_frame,"aw",@progbits
7317 .4byte .LECIE1-.LSCIE1
7331 .4byte .LEFDE1-.LASFDE1
7333 .4byte .LASFDE1-__FRAME_BEGIN__
7342 cat > conftest.lit
<<EOF
7343 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7344 0010 01000000 12000000 18000000 00000000 ................
7345 0020 08000000 04080000 0044 .........D
7347 cat > conftest.big
<<EOF
7348 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7349 0010 00000001 00000012 00000018 00000000 ................
7350 0020 00000008 04000000 0844 .........D
7352 # If the assembler didn't choke, and we can objdump,
7353 # and we got the correct data, then succeed.
7354 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7355 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7356 |
tail -3 > conftest.got \
7357 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7358 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7360 gcc_cv_as_eh_frame
="yes"
7362 gcc_cv_as_eh_frame
="bad"
7363 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7364 cat >> confdefs.h
<<\EOF
7365 #define USE_AS_TRADITIONAL_FORMAT 1
7373 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7375 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7376 echo "configure:7377: checking assembler section merging support" >&5
7377 gcc_cv_as_shf_merge
=no
7378 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7379 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7380 gcc_cv_as_shf_merge
=yes
7382 elif test x
$gcc_cv_as != x
; then
7383 # Check if we support SHF_MERGE sections
7384 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7385 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7386 gcc_cv_as_shf_merge
=yes
7388 rm -f conftest.s conftest.o
7390 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7391 cat >> confdefs.h
<<\EOF
7392 #define HAVE_GAS_SHF_MERGE 1
7396 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7398 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6
7399 echo "configure:7400: checking assembler thread-local storage support" >&5
7407 .section ".tdata","awT",@progbits
7410 ldq $27,__tls_get_addr($29) !literal!1
7411 lda $16,foo($29) !tlsgd!1
7412 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
7413 ldq $27,__tls_get_addr($29) !literal!2
7414 lda $16,foo($29) !tlsldm!2
7415 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
7416 ldq $1,foo($29) !gotdtprel
7417 ldah $2,foo($29) !dtprelhi
7418 lda $3,foo($2) !dtprello
7419 lda $4,foo($29) !dtprel
7420 ldq $1,foo($29) !gottprel
7421 ldah $2,foo($29) !tprelhi
7422 lda $3,foo($2) !tprello
7423 lda $4,foo($29) !tprel'
7429 .section ".tdata","awT",@progbits
7433 leal foo@TLSGD(,%ebx,1), %eax
7434 leal foo@TLSLDM(%ebx), %eax
7435 leal foo@DTPOFF(%eax), %edx
7436 movl foo@GOTTPOFF(%ebx), %eax
7437 subl foo@GOTTPOFF(%ebx), %eax
7438 movl $foo@TPOFF, %eax
7439 subl $foo@TPOFF, %eax
7440 leal foo@NTPOFF(%ecx), %eax'
7446 .section ".tdata","awT",@progbits
7449 addl r16 = @ltoff(@dtpmod(foo#)), gp
7450 addl r17 = @ltoff(@dtprel(foo#)), gp
7451 addl r18 = @ltoff(@tprel(foo#)), gp
7452 addl r19 = @dtprel(foo#), gp
7453 adds r21 = @dtprel(foo#), r13
7454 movl r23 = @dtprel(foo#)
7455 addl r20 = @tprel(foo#), gp
7456 adds r22 = @tprel(foo#), r13
7457 movl r24 = @tprel(foo#)'
7462 if test -z "$tls_first_major"; then
7464 elif test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7466 if test "$gcc_cv_gas_major_version" -eq "$tls_first_major" \
7467 -a "$gcc_cv_gas_minor_version" -ge "$tls_first_minor" \
7468 -o "$gcc_cv_gas_major_version" -gt "$tls_first_major"; then
7471 elif test x
$gcc_cv_as != x
; then
7472 echo "$conftest_s" > conftest.s
7473 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
7477 rm -f conftest.s conftest.o
7479 if test "$gcc_cv_as_tls" = yes; then
7480 cat >> confdefs.h
<<\EOF
7481 #define HAVE_AS_TLS 1
7485 echo "$ac_t""$gcc_cv_as_tls" 1>&6
7488 # All TARGET_ABI_OSF targets.
7489 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7490 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7491 echo "configure:7492: checking assembler supports explicit relocations" >&5
7492 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7496 gcc_cv_as_explicit_relocs
=unknown
7497 if test x
$gcc_cv_gas_major_version != x \
7498 -a x
$gcc_cv_gas_minor_version != x
7500 if test "$gcc_cv_gas_major_version" -eq 2 \
7501 -a "$gcc_cv_gas_minor_version" -ge 12 \
7502 -o "$gcc_cv_gas_major_version" -gt 2; then
7503 gcc_cv_as_explicit_relocs
=yes
7505 elif test x
$gcc_cv_as != x
; then
7506 cat > conftest.s
<< 'EOF'
7509 extbl
$3, $2, $3 !lituse_bytoff
!1
7510 ldq
$2, a
($29) !literal
!1
7511 ldq
$4, b
($29) !literal
!2
7512 ldq_u
$3, 0($2) !lituse_base
!1
7513 ldq
$27, f
($29) !literal
!5
7514 jsr
$26, ($27), f
!lituse_jsr
!5
7515 ldah
$29, 0($26) !gpdisp
!3
7516 lda
$0, c
($29) !gprel
7517 ldah
$1, d
($29) !gprelhigh
7518 lda
$1, d
($1) !gprellow
7519 lda
$29, 0($29) !gpdisp
!3
7521 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7522 gcc_cv_as_explicit_relocs
=yes
7524 gcc_cv_as_explicit_relocs
=no
7526 rm -f conftest.s conftest.o
7531 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7532 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7533 cat >> confdefs.h
<<\EOF
7534 #define HAVE_AS_EXPLICIT_RELOCS 1
7540 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7541 echo "configure:7542: checking assembler .register pseudo-op support" >&5
7542 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7546 gcc_cv_as_register_pseudo_op
=unknown
7547 if test x
$gcc_cv_as != x
; then
7548 # Check if we have .register
7549 echo ".register %g2, #scratch" > conftest.s
7550 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7551 gcc_cv_as_register_pseudo_op
=yes
7553 gcc_cv_as_register_pseudo_op
=no
7555 rm -f conftest.s conftest.o
7560 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7561 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7562 cat >> confdefs.h
<<\EOF
7563 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7568 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7569 echo "configure:7570: checking assembler supports -relax" >&5
7570 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7574 gcc_cv_as_relax_opt
=unknown
7575 if test x
$gcc_cv_as != x
; then
7576 # Check if gas supports -relax
7577 echo ".text" > conftest.s
7578 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7579 gcc_cv_as_relax_opt
=yes
7581 gcc_cv_as_relax_opt
=no
7583 rm -f conftest.s conftest.o
7588 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7589 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7590 cat >> confdefs.h
<<\EOF
7591 #define HAVE_AS_RELAX_OPTION 1
7596 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7597 echo "configure:7598: checking assembler and linker support unaligned pc related relocs" >&5
7598 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7602 gcc_cv_as_sparc_ua_pcrel
=unknown
7603 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7604 gcc_cv_as_sparc_ua_pcrel
=no
7605 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7606 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7607 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7608 gcc_cv_as_sparc_ua_pcrel
=yes
7610 rm -f conftest.s conftest.o conftest
7615 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7616 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7617 cat >> confdefs.h
<<\EOF
7618 #define HAVE_AS_SPARC_UA_PCREL 1
7623 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
7624 echo "configure:7625: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
7625 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
7626 echo $ac_n "(cached) $ac_c" 1>&6
7629 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7630 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
7631 if test x
$gcc_cv_objdump != x
; then
7632 gcc_cv_as_sparc_ua_pcrel_hidden
=no
7633 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
7634 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
7635 echo "foo: .skip 4" >> conftest.s
7636 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7637 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
7638 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
7639 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
7640 if $gcc_cv_objdump -R conftest
2> /dev
/null \
7641 |
grep 'DISP32' > /dev
/null
2>&1; then
7644 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
7648 rm -f conftest.s conftest.o conftest
7650 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
7655 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
7656 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
7657 cat >> confdefs.h
<<\EOF
7658 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
7663 if test "x$gcc_cv_as_flags64" != xno
; then
7664 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7665 echo "configure:7666: checking for assembler offsetable %lo() support" >&5
7666 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7667 echo $ac_n "(cached) $ac_c" 1>&6
7670 gcc_cv_as_offsetable_lo10
=unknown
7671 if test "x$gcc_cv_as" != x
; then
7672 # Check if assembler has offsetable %lo()
7673 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7674 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7675 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7677 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7678 > /dev
/null
2>&1; then
7679 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7680 gcc_cv_as_offsetable_lo10
=no
7682 gcc_cv_as_offsetable_lo10
=yes
7685 gcc_cv_as_offsetable_lo10
=no
7687 rm -f conftest.s conftest.o conftest1.s conftest1.o
7692 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7693 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7694 cat >> confdefs.h
<<\EOF
7695 #define HAVE_AS_OFFSETABLE_LO10 1
7703 i
[34567]86-*-* | x86_64-
*-*)
7704 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7705 echo "configure:7706: checking assembler instructions" >&5
7706 gcc_cv_as_instructions
=
7707 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7708 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
7709 gcc_cv_as_instructions
="filds fists"
7711 elif test x
$gcc_cv_as != x
; then
7712 set "filds fists" "filds mem; fists mem"
7715 echo "$2" > conftest.s
7716 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7717 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7721 rm -f conftest.s conftest.o
7723 if test x
"$gcc_cv_as_instructions" != x
; then
7724 cat >> confdefs.h
<<EOF
7725 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7729 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7731 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7732 echo "configure:7733: checking assembler GOTOFF in data directives" >&5
7733 gcc_cv_as_gotoff_in_data
=no
7734 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7736 if test "$gcc_cv_gas_major_version" -eq 2 \
7737 -a "$gcc_cv_gas_minor_version" -ge 11 \
7738 -o "$gcc_cv_gas_major_version" -gt 2; then
7739 gcc_cv_as_gotoff_in_data
=yes
7741 elif test x
$gcc_cv_as != x
; then
7742 cat > conftest.s
<<EOF
7749 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7750 gcc_cv_as_gotoff_in_data
=yes
7753 cat >> confdefs.h
<<EOF
7754 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7757 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7761 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7762 echo "configure:7763: checking assembler dwarf2 debug_line support" >&5
7763 gcc_cv_as_dwarf2_debug_line
=no
7764 # ??? Not all targets support dwarf2 debug_line, even within a version
7765 # of gas. Moreover, we need to emit a valid instruction to trigger any
7766 # info to the output file. So, as supported targets are added to gas 2.11,
7767 # add some instruction here to (also) show we expect this might work.
7768 # ??? Once 2.11 is released, probably need to add first known working
7769 # version to the per-target configury.
7771 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-* | hppa
*-*-*)
7778 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7780 if test "$gcc_cv_gas_major_version" -eq 2 \
7781 -a "$gcc_cv_gas_minor_version" -ge 11 \
7782 -o "$gcc_cv_gas_major_version" -gt 2 \
7783 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7784 && test x
"$insn" != x
; then
7785 gcc_cv_as_dwarf2_debug_line
="yes"
7787 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7788 echo ' .file 1 "conftest.s"' > conftest.s
7789 echo ' .loc 1 3 0' >> conftest.s
7790 echo " $insn" >> conftest.s
7791 # ??? This fails with non-gnu grep.
7792 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7793 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7794 # The .debug_line file table must be in the exact order that
7795 # we specified the files, since these indices are also used
7796 # by DW_AT_decl_file. Approximate this test by testing if
7797 # the assembler bitches if the same index is assigned twice.
7798 echo ' .file 1 "foo.s"' > conftest.s
7799 echo ' .file 1 "bar.s"' >> conftest.s
7800 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7802 gcc_cv_as_dwarf2_debug_line
="no"
7804 gcc_cv_as_dwarf2_debug_line
="yes"
7807 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7809 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7810 cat >> confdefs.h
<<\EOF
7811 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7815 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7817 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7818 echo "configure:7819: checking assembler --gdwarf2 support" >&5
7819 gcc_cv_as_gdwarf2_flag
=no
7820 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7822 if test "$gcc_cv_gas_major_version" -eq 2 \
7823 -a "$gcc_cv_gas_minor_version" -ge 11 \
7824 -o "$gcc_cv_gas_major_version" -gt 2 \
7825 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7826 && test x
"$insn" != x
; then
7827 gcc_cv_as_gdwarf2_debug_flag
="yes"
7829 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7830 echo '' > conftest.s
7831 # ??? This fails with non-gnu grep.
7832 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7834 gcc_cv_as_gdwarf2_flag
="yes"
7836 rm -f conftest.s conftest.o
7838 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7839 cat >> confdefs.h
<<\EOF
7840 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7844 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7846 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7847 echo "configure:7848: checking assembler --gstabs support" >&5
7848 gcc_cv_as_gstabs_flag
=no
7849 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7851 if test "$gcc_cv_gas_major_version" -eq 2 \
7852 -a "$gcc_cv_gas_minor_version" -ge 11 \
7853 -o "$gcc_cv_gas_major_version" -gt 2 \
7854 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7855 && test x
"$insn" != x
; then
7856 gcc_cv_as_gstabs_debug_flag
="yes"
7858 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7859 echo '' > conftest.s
7860 # ??? This fails with non-gnu grep.
7861 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7862 gcc_cv_as_gstabs_flag
="yes"
7864 rm -f conftest.s conftest.o
7866 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7867 cat >> confdefs.h
<<\EOF
7868 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7872 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7874 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7875 echo "configure:7876: checking linker PT_GNU_EH_FRAME support" >&5
7876 gcc_cv_ld_eh_frame_hdr
=no
7877 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7878 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ..
/ld
/Makefile
> /dev
/null
; then
7879 gcc_cv_ld_eh_frame_hdr
=yes
7881 elif test x
$gcc_cv_ld != x
; then
7882 # Check if linker supports --eh-frame-hdr option
7883 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7884 gcc_cv_ld_eh_frame_hdr
=yes
7887 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7888 cat >> confdefs.h
<<\EOF
7889 #define HAVE_LD_EH_FRAME_HDR 1
7893 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7895 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7896 cat >> confdefs.h
<<EOF
7897 #define PREFIX_INCLUDE_DIR "$prefix/include"
7902 # Figure out what language subdirectories are present.
7903 # Look if the user specified --enable-languages="..."; if not, use
7904 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7906 # NB: embedded tabs in this IF block -- do not untabify
7907 if test x
"${enable_languages+set}" != xset
; then
7908 if test x
"${LANGUAGES+set}" = xset
; then
7909 enable_languages
="${LANGUAGES}"
7910 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7913 enable_languages
=all
7916 if test x
"${enable_languages}" = x ||
7917 test x
"${enable_languages}" = xyes
;
7919 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7922 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7924 # First scan to see if an enabled language requires some other language.
7925 # We assume that a given config-lang.in will list all the language
7926 # front ends it requires, even if some are required indirectly.
7927 for lang
in ${srcdir}/*/config-lang.
in ..
7932 # The odd quoting in the next line works around
7933 # an apparent bug in bash 1.12 on linux.
7934 ${srcdir}/[*]/config-lang.
in)
7937 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7938 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7939 for other
in $this_lang_requires
7941 case ,${enable_languages}, in
7947 enable_languages
="$enable_languages,$other"
7956 for lang
in ${srcdir}/*/config-lang.
in ..
7960 # The odd quoting in the next line works around
7961 # an apparent bug in bash 1.12 on linux.
7962 ${srcdir}/[*]/config-lang.
in) ;;
7964 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7965 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7966 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7967 if test "x$lang_alias" = x
7969 echo "$lang doesn't set \$language." 1>&2
7972 case ${build_by_default},${enable_languages}, in
7973 *,$lang_alias,*) add_this_lang
=yes ;;
7974 no
,*) add_this_lang
=no
;;
7975 *,all
,*) add_this_lang
=yes ;;
7976 *) add_this_lang
=no
;;
7978 if test x
"${add_this_lang}" = xyes
; then
7980 ${srcdir}/ada
/config-lang.
in)
7981 if test x
$have_gnat = xyes
; then
7982 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7986 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7994 # Make gthr-default.h if we have a thread file.
7996 if test $thread_file != single
; then
7997 rm -f gthr-default.h
7998 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7999 gthread_flags
=-DHAVE_GTHR_DEFAULT
8003 # Find out what GC implementation we want, or may, use.
8004 # Check whether --with-gc or --without-gc was given.
8005 if test "${with_gc+set}" = set; then
8012 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8020 echo "Using $GGC for garbage collection."
8022 # Use the system's zlib library.
8024 zlibinc
="-I\$(srcdir)/../zlib"
8025 # Check whether --with-system-zlib or --without-system-zlib was given.
8026 if test "${with_system_zlib+set}" = set; then
8027 withval
="$with_system_zlib"
8037 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8038 echo "configure:8039: checking whether to enable maintainer-specific portions of Makefiles" >&5
8039 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8040 if test "${enable_maintainer_mode+set}" = set; then
8041 enableval
="$enable_maintainer_mode"
8042 maintainer_mode
=$enableval
8048 echo "$ac_t""$maintainer_mode" 1>&6
8050 if test "$maintainer_mode" = "yes"; then
8056 # With Setjmp/Longjmp based exception handling.
8057 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8058 if test "${enable_sjlj_exceptions+set}" = set; then
8059 enableval
="$enable_sjlj_exceptions"
8060 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8061 cat >> confdefs.h
<<EOF
8062 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8068 # Make empty files to contain the specs and options for each language.
8069 # Then add #include lines to for a compiler that has specs and/or options.
8074 for subdir
in .
$subdirs
8076 if test -f $srcdir/$subdir/lang-specs.h
; then
8077 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8079 if test -f $srcdir/$subdir/lang-options.h
; then
8080 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8082 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8083 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8087 # These (without "all_") are set in each config-lang.in.
8088 # `language' must be a single word so is spelled singularly.
8093 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
8094 # List of language makefile fragments.
8096 # Files for gengtype
8097 all_gtfiles
="$config_gtfiles"
8099 # Add the language fragments.
8100 # Languages are added via two mechanisms. Some information must be
8101 # recorded in makefile variables, these are defined in config-lang.in.
8102 # We accumulate them and plug them into the main Makefile.
8103 # The other mechanism is a set of hooks for each of the main targets
8104 # like `clean', `install', etc.
8106 language_fragments
="Make-lang"
8107 language_hooks
="Make-hooks"
8109 for s
in ..
$subdirs
8119 .
${srcdir}/$s/config-lang.
in
8120 if test "x$language" = x
8122 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8125 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8126 if test -f ${srcdir}/$s/Makefile.
in
8127 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8129 all_languages
="$all_languages $language"
8130 if test "x$boot_language" = xyes
8132 all_boot_languages
="$all_boot_languages $language"
8134 all_compilers
="$all_compilers $compilers"
8135 all_stagestuff
="$all_stagestuff $stagestuff"
8136 all_outputs
="$all_outputs $outputs"
8137 all_gtfiles
="$all_gtfiles $gtfiles"
8142 for language
in ..
$all_languages
8144 if test $language != ".."
8146 check_languages
="$check_languages check-$language"
8150 # Since we can't use `::' targets, we link each language in
8151 # with a set of hooks, reached indirectly via lang.${target}.
8155 target_list
="all.build all.cross start.encap rest.encap \
8156 info dvi generated-manpages \
8157 install-normal install-common install-info install-man \
8159 mostlyclean clean distclean extraclean maintainer-clean \
8160 stage1 stage2 stage3 stage4"
8161 for t
in $target_list
8164 for lang
in ..
$all_languages
8166 if test $lang != ".."; then
8170 echo "lang.$t: $x" >> Make-hooks
8175 echo "dir ." > .gdbinit
8176 echo "dir ${srcdir}" >> .gdbinit
8177 if test x
$gdb_needs_out_file_path = xyes
8179 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8181 if test "x$subdirs" != x
; then
8184 echo "dir ${srcdir}/$s" >> .gdbinit
8187 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8189 # Define variables host_canonical and build_canonical
8190 # because some Cygnus local changes in the Makefile depend on them.
8191 build_canonical
=${build}
8192 host_canonical
=${host}
8194 if test "${host}" != "${target}" ; then
8195 target_subdir
=${target_alias}/
8201 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8202 # absolute path for gcc_tooldir based on inserting the number of up-directory
8203 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8204 # $(libsubdir)/@(unlibsubdir) based path.
8205 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8206 # make and thus we'd get different behavior depending on where we built the
8208 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8209 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8211 # An explanation of the sed strings:
8212 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8213 # -e 's|/$||' match a trailing forward slash and eliminates it
8214 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8215 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8217 # (*) Note this pattern overwrites the first character of the string
8218 # with a forward slash if one is not already present. This is not a
8219 # problem because the exact names of the sub-directories concerned is
8220 # unimportant, just the number of them matters.
8222 # The practical upshot of these patterns is like this:
8224 # prefix exec_prefix result
8225 # ------ ----------- ------
8227 # /foo/ /foo/bar ../
8228 # /foo /foo/bar/ ../
8229 # /foo/ /foo/bar/ ../
8230 # /foo /foo/bar/ugg ../../
8233 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8238 # Find a directory in which to install a shared libgcc.
8240 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8241 if test "${enable_version_specific_runtime_libs+set}" = set; then
8242 enableval
="$enable_version_specific_runtime_libs"
8247 # Check whether --with-slibdir or --without-slibdir was given.
8248 if test "${with_slibdir+set}" = set; then
8249 withval
="$with_slibdir"
8250 slibdir
="$with_slibdir"
8252 if test "${enable_version_specific_runtime_libs+set}" = set; then
8253 slibdir
='$(libsubdir)'
8254 elif test "$host" != "$target"; then
8255 slibdir
='$(build_tooldir)/lib'
8263 # Nothing to do for FLOAT_H, float_format already handled.
8264 objdir
=`${PWDCMD-pwd}`
8267 # Process the language and host/target makefile fragments.
8268 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8270 # Substitute configuration variables
8335 # Echo that links are built
8336 if test x
$host = x
$target
8344 if test x
$host != x
$build
8346 str3
=" on a $build system"
8349 if test "x$str2" != x ||
test "x$str3" != x
8354 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8356 if test "x$str2" != x ||
test "x$str3" != x
8358 echo " ${str2}${str3}." 1>&2
8361 # Truncate the target if necessary
8362 if test x
$host_truncate_target != x
; then
8363 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8366 # Configure the subdirectories
8367 # AC_CONFIG_SUBDIRS($subdirs)
8369 # Create the Makefile
8370 # and configure language subdirectories
8372 cat > confcache
<<\EOF
8373 # This file is a shell script that caches the results of configure
8374 # tests run on this system so they can be shared between configure
8375 # scripts and configure runs. It is not useful on other systems.
8376 # If it contains results you don't want to keep, you may remove or edit it.
8378 # By default, configure uses ./config.cache as the cache file,
8379 # creating it if it does not exist already. You can give configure
8380 # the --cache-file=FILE option to use a different cache file; that is
8381 # what configure does when it calls configure scripts in
8382 # subdirectories, so they share the cache.
8383 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8384 # config.status only pays attention to the cache file if you give it the
8385 # --recheck option to rerun configure.
8388 # The following way of writing the cache mishandles newlines in values,
8389 # but we know of no workaround that is simple, portable, and efficient.
8390 # So, don't put newlines in cache variables' values.
8391 # Ultrix sh set writes to stderr and can't be redirected directly,
8392 # and sets the high bit in the cache file unless we assign to the vars.
8394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8396 # `set' does not quote correctly, so add quotes (double-quote substitution
8397 # turns \\\\ into \\, and sed turns \\ into \).
8399 -e "s/'/'\\\\''/g" \
8400 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8403 # `set' quotes correctly as required by POSIX, so do not add quotes.
8404 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8407 if cmp -s $cache_file confcache
; then
8410 if test -w $cache_file; then
8411 echo "updating cache $cache_file"
8412 cat confcache
> $cache_file
8414 echo "not updating unwritable cache $cache_file"
8419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8421 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8422 # Let make expand exec_prefix.
8423 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8425 # Any assignment to VPATH causes Sun make to only execute
8426 # the first set of double-colon rules, so remove it if not needed.
8427 # If there is a colon in the path, we need to keep it.
8428 if test "x$srcdir" = x.
; then
8429 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8432 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8434 DEFS
=-DHAVE_CONFIG_H
8436 # Without the "./", some shells look in PATH for config.status.
8437 : ${CONFIG_STATUS=./config.status}
8439 echo creating
$CONFIG_STATUS
8440 rm -f $CONFIG_STATUS
8441 cat > $CONFIG_STATUS <<EOF
8443 # Generated automatically by configure.
8444 # Run this file to recreate the current configuration.
8445 # This directory was configured as follows,
8446 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8448 # $0 $ac_configure_args
8450 # Compiler output produced by configure, useful for debugging
8451 # configure, is in ./config.log if it exists.
8453 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8456 case "\$ac_option" in
8457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8458 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8459 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8460 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8461 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8463 -help | --help | --hel | --he | --h)
8464 echo "\$ac_cs_usage"; exit 0 ;;
8465 *) echo "\$ac_cs_usage"; exit 1 ;;
8469 ac_given_srcdir=$srcdir
8471 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8473 cat >> $CONFIG_STATUS <<EOF
8475 # Protect against being on the right side of a sed subst in config.status.
8476 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8477 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8481 s%@CFLAGS@%$CFLAGS%g
8482 s%@CPPFLAGS@%$CPPFLAGS%g
8483 s%@CXXFLAGS@%$CXXFLAGS%g
8484 s%@FFLAGS@%$FFLAGS%g
8486 s%@LDFLAGS@%$LDFLAGS%g
8488 s%@exec_prefix@%$exec_prefix%g
8489 s%@prefix@%$prefix%g
8490 s%@program_transform_name@%$program_transform_name%g
8491 s%@bindir@%$bindir%g
8492 s%@sbindir@%$sbindir%g
8493 s%@libexecdir@%$libexecdir%g
8494 s%@datadir@%$datadir%g
8495 s%@sysconfdir@%$sysconfdir%g
8496 s%@sharedstatedir@%$sharedstatedir%g
8497 s%@localstatedir@%$localstatedir%g
8498 s%@libdir@%$libdir%g
8499 s%@includedir@%$includedir%g
8500 s%@oldincludedir@%$oldincludedir%g
8501 s%@infodir@%$infodir%g
8502 s%@mandir@%$mandir%g
8503 s%@enable_multilib@%$enable_multilib%g
8504 s%@enable_shared@%$enable_shared%g
8506 s%@host_alias@%$host_alias%g
8507 s%@host_cpu@%$host_cpu%g
8508 s%@host_vendor@%$host_vendor%g
8509 s%@host_os@%$host_os%g
8510 s%@target@%$target%g
8511 s%@target_alias@%$target_alias%g
8512 s%@target_cpu@%$target_cpu%g
8513 s%@target_vendor@%$target_vendor%g
8514 s%@target_os@%$target_os%g
8516 s%@build_alias@%$build_alias%g
8517 s%@build_cpu@%$build_cpu%g
8518 s%@build_vendor@%$build_vendor%g
8519 s%@build_os@%$build_os%g
8521 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8522 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8523 s%@GNATBIND@%$GNATBIND%g
8525 s%@strict1_warn@%$strict1_warn%g
8527 s%@warn_cflags@%$warn_cflags%g
8528 s%@stage1_cflags@%$stage1_cflags%g
8529 s%@SET_MAKE@%$SET_MAKE%g
8533 s%@RANLIB@%$RANLIB%g
8534 s%@INSTALL@%$INSTALL%g
8535 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8536 s%@INSTALL_DATA@%$INSTALL_DATA%g
8537 s%@have_mktemp_command@%$have_mktemp_command%g
8538 s%@MAKEINFO@%$MAKEINFO%g
8539 s%@BUILD_INFO@%$BUILD_INFO%g
8540 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8543 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8544 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8545 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8546 s%@LIBICONV@%$LIBICONV%g
8547 s%@manext@%$manext%g
8548 s%@objext@%$objext%g
8549 s%@FORBUILD@%$FORBUILD%g
8550 s%@PACKAGE@%$PACKAGE%g
8551 s%@VERSION@%$VERSION%g
8552 s%@ALLOCA@%$ALLOCA%g
8553 s%@GLIBC21@%$GLIBC21%g
8554 s%@USE_NLS@%$USE_NLS%g
8555 s%@MSGFMT@%$MSGFMT%g
8556 s%@GMSGFMT@%$GMSGFMT%g
8557 s%@XGETTEXT@%$XGETTEXT%g
8558 s%@INTLBISON@%$INTLBISON%g
8559 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8560 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8561 s%@CATALOGS@%$CATALOGS%g
8562 s%@CATOBJEXT@%$CATOBJEXT%g
8563 s%@INTLLIBS@%$INTLLIBS%g
8564 s%@INTLDEPS@%$INTLDEPS%g
8565 s%@INTLOBJS@%$INTLOBJS%g
8567 s%@DATADIRNAME@%$DATADIRNAME%g
8568 s%@INSTOBJEXT@%$INSTOBJEXT%g
8569 s%@GENCAT@%$GENCAT%g
8570 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8571 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8574 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8575 s%@inhibit_libc@%$inhibit_libc%g
8576 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
8577 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
8578 s%@HOST_CC@%$HOST_CC%g
8579 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8580 s%@STMP_FIXINC@%$STMP_FIXINC%g
8581 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8582 s%@libgcc_visibility@%$libgcc_visibility%g
8583 s%@gthread_flags@%$gthread_flags%g
8585 s%@zlibdir@%$zlibdir%g
8586 s%@zlibinc@%$zlibinc%g
8588 s%@build_canonical@%$build_canonical%g
8589 s%@host_canonical@%$host_canonical%g
8590 s%@target_subdir@%$target_subdir%g
8591 s%@gcc_tooldir@%$gcc_tooldir%g
8592 s%@dollar@%$dollar%g
8593 s%@slibdir@%$slibdir%g
8594 s%@objdir@%$objdir%g
8595 s%@subdirs@%$subdirs%g
8596 s%@all_boot_languages@%$all_boot_languages%g
8597 s%@all_compilers@%$all_compilers%g
8598 s%@all_gtfiles@%$all_gtfiles%g
8599 s%@all_lang_makefiles@%$all_lang_makefiles%g
8600 s%@all_languages@%$all_languages%g
8601 s%@all_stagestuff@%$all_stagestuff%g
8602 s%@build_exeext@%$build_exeext%g
8603 s%@build_install_headers_dir@%$build_install_headers_dir%g
8604 s%@build_xm_file_list@%$build_xm_file_list%g
8605 s%@build_xm_file@%$build_xm_file%g
8606 s%@build_xm_defines@%$build_xm_defines%g
8607 s%@check_languages@%$check_languages%g
8608 s%@cc_set_by_configure@%$cc_set_by_configure%g
8609 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8610 s%@cpp_install_dir@%$cpp_install_dir%g
8611 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8612 s%@dep_tmake_file@%$dep_tmake_file%g
8613 s%@extra_headers_list@%$extra_headers_list%g
8614 s%@extra_objs@%$extra_objs%g
8615 s%@extra_parts@%$extra_parts%g
8616 s%@extra_passes@%$extra_passes%g
8617 s%@extra_programs@%$extra_programs%g
8618 s%@float_h_file@%$float_h_file%g
8619 s%@gcc_config_arguments@%$gcc_config_arguments%g
8620 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8621 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8622 s%@gcc_version@%$gcc_version%g
8623 s%@gcc_version_full@%$gcc_version_full%g
8624 s%@gcc_version_trigger@%$gcc_version_trigger%g
8625 s%@host_exeext@%$host_exeext%g
8626 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8627 s%@host_xm_file_list@%$host_xm_file_list%g
8628 s%@host_xm_file@%$host_xm_file%g
8629 s%@host_xm_defines@%$host_xm_defines%g
8630 s%@install@%$install%g
8631 s%@lang_options_files@%$lang_options_files%g
8632 s%@lang_specs_files@%$lang_specs_files%g
8633 s%@lang_tree_files@%$lang_tree_files%g
8634 s%@local_prefix@%$local_prefix%g
8635 s%@md_file@%$md_file%g
8636 s%@objc_boehm_gc@%$objc_boehm_gc%g
8637 s%@out_file@%$out_file%g
8638 s%@out_object_file@%$out_object_file%g
8639 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8640 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8641 s%@symbolic_link@%$symbolic_link%g
8642 s%@thread_file@%$thread_file%g
8643 s%@tm_file_list@%$tm_file_list%g
8644 s%@tm_file@%$tm_file%g
8645 s%@tm_p_file_list@%$tm_p_file_list%g
8646 s%@tm_p_file@%$tm_p_file%g
8647 s%@xm_file@%$xm_file%g
8648 s%@xm_defines@%$xm_defines%g
8649 s%@c_target_objs@%$c_target_objs%g
8650 s%@cxx_target_objs@%$cxx_target_objs%g
8651 s%@target_cpu_default@%$target_cpu_default%g
8652 /@target_overrides@/r $target_overrides
8653 s%@target_overrides@%%g
8654 /@host_overrides@/r $host_overrides
8655 s%@host_overrides@%%g
8656 /@language_fragments@/r $language_fragments
8657 s%@language_fragments@%%g
8658 /@language_hooks@/r $language_hooks
8659 s%@language_hooks@%%g
8664 cat >> $CONFIG_STATUS <<\EOF
8666 # Split the substitutions into bite-sized pieces for seds with
8667 # small command number limits, like on Digital OSF/1 and HP-UX.
8668 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8669 ac_file
=1 # Number of current file.
8670 ac_beg
=1 # First line for current file.
8671 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8674 while $ac_more_lines; do
8675 if test $ac_beg -gt 1; then
8676 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8678 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8680 if test ! -s conftest.s
$ac_file; then
8682 rm -f conftest.s
$ac_file
8684 if test -z "$ac_sed_cmds"; then
8685 ac_sed_cmds
="sed -f conftest.s$ac_file"
8687 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8689 ac_file
=`expr $ac_file + 1`
8691 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8694 if test -z "$ac_sed_cmds"; then
8699 cat >> $CONFIG_STATUS <<EOF
8701 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8703 cat >> $CONFIG_STATUS <<\EOF
8704 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8705 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8707 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8708 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8709 *) ac_file_in
="${ac_file}.in" ;;
8712 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8714 # Remove last slash and all that follows it. Not all systems have dirname.
8715 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8716 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8717 # The file is in a subdirectory.
8718 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8719 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8720 # A "../" for each directory in $ac_dir_suffix.
8721 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8723 ac_dir_suffix
= ac_dots
=
8726 case "$ac_given_srcdir" in
8728 if test -z "$ac_dots"; then top_srcdir
=.
8729 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8730 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8732 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8733 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8737 echo creating
"$ac_file"
8739 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8741 *Makefile
*) ac_comsub
="1i\\
8742 # $configure_input" ;;
8746 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8748 s%@configure_input@%$configure_input%g
8749 s%@srcdir@%$srcdir%g
8750 s%@top_srcdir@%$top_srcdir%g
8751 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8755 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8756 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8758 # ac_d sets the value in "#define NAME VALUE" lines.
8759 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8760 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8763 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8764 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8765 ac_uB
='\([ ]\)%\1#\2define\3'
8768 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8769 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8770 ac_eB
='$%\1#\2define\3'
8774 if test "${CONFIG_HEADERS+set}" != set; then
8776 cat >> $CONFIG_STATUS <<EOF
8777 CONFIG_HEADERS="auto-host.h:config.in"
8779 cat >> $CONFIG_STATUS <<\EOF
8781 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8784 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8785 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8786 *) ac_file_in
="${ac_file}.in" ;;
8789 echo creating
$ac_file
8791 rm -f conftest.frag conftest.
in conftest.out
8792 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8793 cat $ac_file_inputs > conftest.
in
8797 # Transform confdefs.h into a sed script conftest.vals that substitutes
8798 # the proper values into config.h.in to produce config.h. And first:
8799 # Protect against being on the right side of a sed subst in config.status.
8800 # Protect against being in an unquoted here document in config.status.
8802 cat > conftest.hdr
<<\EOF
8805 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8809 sed -n -f conftest.hdr confdefs.h > conftest.vals
8812 # This sed command replaces #undef with comments. This is necessary, for
8813 # example, in the case of _POSIX_SOURCE, which is predefined and required
8814 # on some systems where configure will not decide to define it.
8815 cat >> conftest.vals <<\EOF
8816 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8819 # Break up conftest.vals because some shells have a limit on
8820 # the size of here documents, and old seds have small limits too.
8825 ac_lines=`grep -c . conftest.vals
`
8826 # grep -c gives empty output for an empty file on some AIX systems.
8827 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8828 # Write a limited-size here document to conftest.frag.
8829 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8830 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8832 sed -f conftest.frag conftest.in > conftest.out
8834 mv conftest.out conftest.in
8836 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8838 mv conftest.tail conftest.vals
8842 cat >> $CONFIG_STATUS <<\EOF
8843 rm -f conftest.frag conftest.h
8844 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8845 cat conftest.in >> conftest.h
8847 if cmp -s $ac_file conftest.h 2>/dev/null; then
8848 echo "$ac_file is unchanged"
8851 # Remove last slash and all that follows it. Not all systems have dirname.
8852 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8853 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8854 # The file is in a subdirectory.
8855 test ! -d "$ac_dir" && mkdir "$ac_dir"
8858 mv conftest.h $ac_file
8863 cat >> $CONFIG_STATUS <<EOF
8866 symbolic_link='$symbolic_link'
8869 cat >> $CONFIG_STATUS <<\EOF
8870 for ac_file in $CONFIG_FILES; do
8871 # Support "outfile[:infile[:infile...]]"
8873 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8875 # PO directories have a Makefile.in generated from Makefile.in.in.
8876 case "$ac_file" in */Makefile.in)
8877 # Adjust a relative srcdir.
8878 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8879 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8880 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8881 # In autoconf-2.13 it is called $ac_given_srcdir.
8882 # In autoconf-2.50 it is called $srcdir.
8883 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8884 case "$ac_given_srcdir" in
8885 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8886 /*) top_srcdir="$ac_given_srcdir" ;;
8887 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8889 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8890 rm -f "$ac_dir/POTFILES"
8891 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8892 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8893 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8894 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8900 case x$CONFIG_HEADERS in
8901 xauto-host.h:config.in)
8904 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8905 # bootstrapping and the installation procedure can still use
8906 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8907 # FLAGS_TO_PASS has been modified to solve the problem there.
8908 # This is virtually a duplicate of what happens in configure.lang; we do
8909 # an extra check to make sure this only happens if ln -s can be used.
8910 if test "$symbolic_link" = "ln -s"; then
8911 for d in .. ${subdirs} fixinc ; do
8912 if test $d != ..; then
8913 STARTDIR=`${PWDCMD-pwd}`
8915 for t in stage1 stage2 stage3 stage4 include
8918 $symbolic_link ../$t $t 2>/dev/null
8924 # Avoid having to add intl to our include paths.
8925 if test -f intl/libintl.h; then
8926 echo creating libintl.h
8927 echo '#include "intl/libintl.h"' >libintl.h
8932 chmod +x $CONFIG_STATUS
8933 rm -fr confdefs* $ac_clean_files
8934 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1