3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files"
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,gc,gcac; default
40 --disable-cpp don't provide a user-visible C preprocessor"
42 --with-cpp-install-dir=DIR
43 install the user visible C preprocessor in DIR
44 (relative to PREFIX) as well as PREFIX/bin"
46 --enable-c-mbchar enable multibyte characters for C and C++"
48 --enable-threads enable thread usage for target GCC
49 --enable-threads=LIB use LIB thread package for target GCC"
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime"
54 --with-dwarf2 force the default debug format to be DWARF 2"
56 --disable-shared don't provide a shared libgcc"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --enable-nls use Native Language Support (default)"
62 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 --disable-nls do not use Native Language Support"
66 --with-included-gettext use the GNU gettext library included here"
68 --disable-win32-registry
69 disable lookup of installation paths in the
70 Registry on Windows hosts
71 --enable-win32-registry enable registry lookup (default)
72 --enable-win32-registry=KEY
73 use KEY instead of GCC version as the last portion
76 --with-gc={simple,page} choose the garbage collection mechanism to use
79 --with-system-zlib use installed libz"
81 --enable-maintainer-mode
82 enable make rules and dependencies not useful
83 (and sometimes confusing) to the casual installer"
85 --enable-sjlj-exceptions
86 arrange to use setjmp/longjmp exception handling"
88 --enable-version-specific-runtime-libs
89 specify that runtime libraries should be
90 installed in a compiler-specific directory"
92 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
607 symbolic_link
='ln -s'
610 # Check for bogus environment variables.
611 # Test if LIBRARY_PATH contains the notation for the current directory
612 # since this would lead to problems installing/building glibc.
613 # LIBRARY_PATH contains the current directory if one of the following
615 # - one of the terminals (":" and ";") is the first or last sign
616 # - two terminals occur directly after each other
617 # - the path contains an element with a dot in it
618 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
619 echo "configure:620: checking LIBRARY_PATH variable" >&5
620 case ${LIBRARY_PATH} in
621 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
622 library_path_setting
="contains current directory"
625 library_path_setting
="ok"
628 echo "$ac_t""$library_path_setting" 1>&6
629 if test "$library_path_setting" != "ok"; then
630 { echo "configure: error:
631 *** LIBRARY_PATH shouldn't contain the current directory when
632 *** building gcc. Please change the environment variable
633 *** and run configure again." 1>&2; exit 1; }
636 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
637 # since this would lead to problems installing/building glibc.
638 # GCC_EXEC_PREFIX contains the current directory if one of the following
640 # - one of the terminals (":" and ";") is the first or last sign
641 # - two terminals occur directly after each other
642 # - the path contains an element with a dot in it
643 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
644 echo "configure:645: checking GCC_EXEC_PREFIX variable" >&5
645 case ${GCC_EXEC_PREFIX} in
646 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
647 gcc_exec_prefix_setting
="contains current directory"
650 gcc_exec_prefix_setting
="ok"
653 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
654 if test "$gcc_exec_prefix_setting" != "ok"; then
655 { echo "configure: error:
656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
657 *** building gcc. Please change the environment variable
658 *** and run configure again." 1>&2; exit 1; }
661 # Check for additional parameters
664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
665 if test "${with_gnu_ld+set}" = set; then
666 withval
="$with_gnu_ld"
667 gnu_ld_flag
="$with_gnu_ld"
673 # With pre-defined ld
674 # Check whether --with-ld or --without-ld was given.
675 if test "${with_ld+set}" = set; then
677 DEFAULT_LINKER
="$with_ld"
680 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
681 if test ! -x "$DEFAULT_LINKER"; then
682 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
683 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
686 cat >> confdefs.h
<<EOF
687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
693 # Check whether --with-gnu-as or --without-gnu-as was given.
694 if test "${with_gnu_as+set}" = set; then
695 withval
="$with_gnu_as"
696 gas_flag
="$with_gnu_as"
702 # Check whether --with-as or --without-as was given.
703 if test "${with_as+set}" = set; then
705 DEFAULT_ASSEMBLER
="$with_as"
708 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
709 if test ! -x "$DEFAULT_ASSEMBLER"; then
710 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
711 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
714 cat >> confdefs.h
<<EOF
715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
721 # Check whether --with-stabs or --without-stabs was given.
722 if test "${with_stabs+set}" = set; then
723 withval
="$with_stabs"
731 # Check whether --with-elf or --without-elf was given.
732 if test "${with_elf+set}" = set; then
740 # Specify the local prefix
742 # Check whether --with-local-prefix or --without-local-prefix was given.
743 if test "${with_local_prefix+set}" = set; then
744 withval
="$with_local_prefix"
746 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
748 *) local_prefix
=$with_local_prefix ;;
753 # Default local prefix if it is empty
754 if test x
$local_prefix = x
; then
755 local_prefix
=/usr
/local
758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
759 # passed in by the toplevel make and thus we'd get different behavior
760 # depending on where we built the sources.
762 # Specify the g++ header file directory
763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
764 if test "${with_gxx_include_dir+set}" = set; then
765 withval
="$with_gxx_include_dir"
767 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
769 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
774 if test x
${gcc_gxx_include_dir} = x
; then
775 if test x
${enable_version_specific_runtime_libs} = xyes
; then
776 gcc_gxx_include_dir
='${libsubdir}/include/g++'
778 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
779 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
783 # Determine whether or not multilibs are enabled.
784 # Check whether --enable-multilib or --disable-multilib was given.
785 if test "${enable_multilib+set}" = set; then
786 enableval
="$enable_multilib"
794 # Enable expensive internal checks
795 # Check whether --enable-checking or --disable-checking was given.
796 if test "${enable_checking+set}" = set; then
797 enableval
="$enable_checking"
802 ac_gc_always_collect
=
803 case "${enableval}" in
804 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
806 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
807 set fnord
$enableval; shift
812 misc
) ac_checking
=1 ;;
813 tree
) ac_tree_checking
=1 ;;
814 rtl
) ac_rtl_checking
=1 ;;
815 gc
) ac_gc_checking
=1 ;;
816 gcac
) ac_gc_always_collect
=1 ;;
817 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Enable some checks by default for development versions of GCC
825 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
828 if test x
$ac_checking != x
; then
829 cat >> confdefs.h
<<\EOF
830 #define ENABLE_CHECKING 1
834 if test x
$ac_tree_checking != x
; then
835 cat >> confdefs.h
<<\EOF
836 #define ENABLE_TREE_CHECKING 1
840 if test x
$ac_rtl_checking != x
; then
841 cat >> confdefs.h
<<\EOF
842 #define ENABLE_RTL_CHECKING 1
846 if test x
$ac_gc_checking != x
; then
847 cat >> confdefs.h
<<\EOF
848 #define ENABLE_GC_CHECKING 1
852 if test x
$ac_gc_always_collect != x
; then
853 cat >> confdefs.h
<<\EOF
854 #define ENABLE_GC_ALWAYS_COLLECT 1
860 # Check whether --enable-cpp or --disable-cpp was given.
861 if test "${enable_cpp+set}" = set; then
862 enableval
="$enable_cpp"
869 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
870 if test "${with_cpp_install_dir+set}" = set; then
871 withval
="$with_cpp_install_dir"
872 if test x
$withval = xyes
; then
873 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
874 elif test x
$withval != xno
; then
875 cpp_install_dir
=$withval
880 # Enable Multibyte Characters for C/C++
881 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
882 if test "${enable_c_mbchar+set}" = set; then
883 enableval
="$enable_c_mbchar"
884 if test x
$enable_c_mbchar != xno
; then
885 cat >> confdefs.h
<<\EOF
886 #define MULTIBYTE_CHARS 1
894 # Pass with no value to take the default
895 # Pass with a value to specify a thread package
896 # Check whether --enable-threads or --disable-threads was given.
897 if test "${enable_threads+set}" = set; then
898 enableval
="$enable_threads"
905 enable_threads_flag
=$enable_threads
906 # Check if a valid thread package
907 case x
${enable_threads_flag} in
910 target_thread_file
='single'
914 target_thread_file
=''
916 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
917 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
918 target_thread_file
=$enable_threads_flag
921 echo "$enable_threads is an unknown thread package" 1>&2
926 # Check whether --enable-objc-gc or --disable-objc-gc was given.
927 if test "${enable_objc_gc+set}" = set; then
928 enableval
="$enable_objc_gc"
929 if test x
$enable_objc_gc = xno
; then
939 # Check whether --with-dwarf2 or --without-dwarf2 was given.
940 if test "${with_dwarf2+set}" = set; then
941 withval
="$with_dwarf2"
942 dwarf2
="$with_dwarf2"
948 # Check whether --enable-shared or --disable-shared was given.
949 if test "${enable_shared+set}" = set; then
950 enableval
="$enable_shared"
952 case $enable_shared in
956 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
957 for pkg
in $enableval; do
958 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
972 # Determine the host, build, and target systems
974 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
975 if test -f $ac_dir/install-sh
; then
977 ac_install_sh
="$ac_aux_dir/install-sh -c"
979 elif test -f $ac_dir/install.sh
; then
981 ac_install_sh
="$ac_aux_dir/install.sh -c"
985 if test -z "$ac_aux_dir"; then
986 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988 ac_config_guess
=$ac_aux_dir/config.guess
989 ac_config_sub
=$ac_aux_dir/config.sub
990 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
993 # Do some error checking and defaulting for the host and target type.
995 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 # 2. Host defaults to nonopt.
1001 # 3. If nonopt is not specified, then host defaults to the current host,
1002 # as determined by config.guess.
1003 # 4. Target and build default to nonopt.
1004 # 5. If nonopt is not specified, then target and build default to host.
1006 # The aliases save the names the user supplied, while $host etc.
1007 # will get canonicalized.
1008 case $host---$target---$nonopt in
1009 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1010 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1014 # Make sure we can run config.sub.
1015 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1016 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019 echo $ac_n "checking host system type""... $ac_c" 1>&6
1020 echo "configure:1021: checking host system type" >&5
1023 case "$host_alias" in
1027 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 *) host_alias
=$nonopt ;;
1034 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 echo "$ac_t""$host" 1>&6
1040 echo $ac_n "checking target system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking target system type" >&5
1043 target_alias
=$target
1044 case "$target_alias" in
1047 NONE
) target_alias
=$host_alias ;;
1048 *) target_alias
=$nonopt ;;
1052 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$ac_t""$target" 1>&6
1058 echo $ac_n "checking build system type""... $ac_c" 1>&6
1059 echo "configure:1060: checking build system type" >&5
1062 case "$build_alias" in
1065 NONE
) build_alias
=$host_alias ;;
1066 *) build_alias
=$nonopt ;;
1070 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074 echo "$ac_t""$build" 1>&6
1076 test "$host_alias" != "$target_alias" &&
1077 test "$program_prefix$program_suffix$program_transform_name" = \
1079 program_prefix
=${target_alias}-
1082 # Set program_transform_name
1083 if test "$program_transform_name" = s
,x
,x
,; then
1084 program_transform_name
=
1086 # Double any \ or $. echo might interpret backslashes.
1087 cat <<\EOF_SED
> conftestsed
1088 s
,\\,\\\\,g
; s
,\$
,$$
,g
1090 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1093 test "$program_prefix" != NONE
&&
1094 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1095 # Use a double $ so make ignores it.
1096 test "$program_suffix" != NONE
&&
1097 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1099 # sed with no file args requires a program.
1100 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1103 # Find the native compiler
1104 # Extract the first word of "gcc", so it can be a program name with args.
1105 set dummy gcc
; ac_word
=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$CC"; then
1112 ac_cv_prog_CC
="$CC" # Let the user override the test.
1114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1116 for ac_dir
in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir
=.
1118 if test -f $ac_dir/$ac_word; then
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 if test -z "$CC"; then
1134 # Extract the first word of "cc", so it can be a program name with args.
1135 set dummy cc
; ac_word
=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 if test -n "$CC"; then
1142 ac_cv_prog_CC
="$CC" # Let the user override the test.
1144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1147 for ac_dir
in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir
=.
1149 if test -f $ac_dir/$ac_word; then
1150 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1151 ac_prog_rejected
=yes
1159 if test $ac_prog_rejected = yes; then
1160 # We found a bogon in the path, so make sure we never use it.
1161 set dummy
$ac_cv_prog_CC
1163 if test $# -gt 0; then
1164 # We chose a different compiler from the bogus one.
1165 # However, it has the same basename, so the bogon will be chosen
1166 # first if we set CC to just the basename; use the full file name.
1168 set dummy
"$ac_dir/$ac_word" "$@"
1176 if test -n "$CC"; then
1177 echo "$ac_t""$CC" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 if test -z "$CC"; then
1183 case "`uname -s`" in
1185 # Extract the first word of "cl", so it can be a program name with args.
1186 set dummy cl
; ac_word
=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$CC"; then
1193 ac_cv_prog_CC
="$CC" # Let the user override the test.
1195 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1197 for ac_dir
in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir
=.
1199 if test -f $ac_dir/$ac_word; then
1208 if test -n "$CC"; then
1209 echo "$ac_t""$CC" 1>&6
1211 echo "$ac_t""no" 1>&6
1216 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1219 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1224 ac_cpp
='$CPP $CPPFLAGS'
1225 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1226 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1227 cross_compiling
=$ac_cv_prog_cc_cross
1229 cat > conftest.
$ac_ext << EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1236 if { (eval echo configure
:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1237 ac_cv_prog_cc_works
=yes
1238 # If we can't run a trivial program, we are probably using a cross compiler.
1239 if (.
/conftest
; exit) 2>/dev
/null
; then
1240 ac_cv_prog_cc_cross
=no
1242 ac_cv_prog_cc_cross
=yes
1245 echo "configure: failed program was:" >&5
1246 cat conftest.
$ac_ext >&5
1247 ac_cv_prog_cc_works
=no
1251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1252 ac_cpp
='$CPP $CPPFLAGS'
1253 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1254 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1255 cross_compiling
=$ac_cv_prog_cc_cross
1257 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1258 if test $ac_cv_prog_cc_works = no
; then
1259 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1261 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1263 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1264 cross_compiling
=$ac_cv_prog_cc_cross
1266 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1267 echo "configure:1268: checking whether we are using GNU C" >&5
1268 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 cat > conftest.c
<<EOF
1276 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1283 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1285 if test $ac_cv_prog_gcc = yes; then
1291 ac_test_CFLAGS
="${CFLAGS+set}"
1292 ac_save_CFLAGS
="$CFLAGS"
1294 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1295 echo "configure:1296: checking whether ${CC-cc} accepts -g" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 echo 'void f(){}' > conftest.c
1300 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1309 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1310 if test "$ac_test_CFLAGS" = set; then
1311 CFLAGS
="$ac_save_CFLAGS"
1312 elif test $ac_cv_prog_cc_g = yes; then
1313 if test "$GCC" = yes; then
1319 if test "$GCC" = yes; then
1326 if test "x$CC" != xcc
; then
1327 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether $CC and cc understand -c and -o together" >&5
1330 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1331 echo "configure:1332: checking whether cc understands -c and -o together" >&5
1333 set dummy
$CC; ac_cc
="`echo $2 |
1334 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1335 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 echo 'foo(){}' > conftest.c
1339 # Make sure it works both with $CC and with simple cc.
1340 # We do the test twice because some compilers refuse to overwrite an
1341 # existing .o file with -o, though they will create one.
1342 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1343 if { (eval echo configure
:1344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1344 test -f conftest.o
&& { (eval echo configure
:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1346 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1347 if test "x$CC" != xcc
; then
1348 # Test first that cc exists at all.
1349 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1350 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1351 if { (eval echo configure
:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1352 test -f conftest.o
&& { (eval echo configure
:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1357 # cc exists but doesn't like -o.
1358 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1363 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1368 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1371 echo "$ac_t""no" 1>&6
1372 cat >> confdefs.h
<<\EOF
1373 #define NO_MINUS_C_MINUS_O 1
1378 # autoconf is lame and doesn't give us any substitution variable for this.
1379 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1380 NO_MINUS_C_MINUS_O
=yes
1382 OUTPUT_OPTION
='-o $@'
1387 # See if GNAT has been installed
1388 if test $host != $build; then
1389 ac_tool_prefix
=${host_alias}-
1395 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1396 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1398 echo "configure:1399: checking for $ac_word" >&5
1399 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 if test -n "$GNATBIND"; then
1403 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1405 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1407 for ac_dir
in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir
=.
1409 if test -f $ac_dir/$ac_word; then
1410 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1417 GNATBIND
="$ac_cv_prog_GNATBIND"
1418 if test -n "$GNATBIND"; then
1419 echo "$ac_t""$GNATBIND" 1>&6
1421 echo "$ac_t""no" 1>&6
1425 if test -z "$ac_cv_prog_GNATBIND"; then
1426 if test -n "$ac_tool_prefix"; then
1427 # Extract the first word of "gnatbind", so it can be a program name with args.
1428 set dummy gnatbind
; ac_word
=$2
1429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1430 echo "configure:1431: checking for $ac_word" >&5
1431 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 if test -n "$GNATBIND"; then
1435 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1437 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1439 for ac_dir
in $ac_dummy; do
1440 test -z "$ac_dir" && ac_dir
=.
1441 if test -f $ac_dir/$ac_word; then
1442 ac_cv_prog_GNATBIND
="gnatbind"
1447 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1450 GNATBIND
="$ac_cv_prog_GNATBIND"
1451 if test -n "$GNATBIND"; then
1452 echo "$ac_t""$GNATBIND" 1>&6
1454 echo "$ac_t""no" 1>&6
1462 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1463 echo "configure:1464: checking for compiler driver that understands Ada" >&5
1464 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 cat >conftest.adb
<<EOF
1468 procedure conftest is begin null; end conftest;
1471 # Have to do ac_tool_prefix and user overrides by hand.
1474 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
1475 ${ac_tool_prefix}$user_cc $user_cc \
1476 ${ac_tool_prefix}gcc gcc \
1477 ${ac_tool_prefix}cc cc \
1478 ${ac_tool_prefix}gnatgcc gnatgcc \
1479 ${ac_tool_prefix}gnatcc gnatcc \
1480 ${ac_tool_prefix}adagcc adagcc \
1481 ${ac_tool_prefix}adacc adacc
; do
1482 # There is a bug in all released versions of GCC which causes the
1483 # driver to exit successfully when the appropriate language module
1484 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1485 # Therefore we must check for the error message as well as an
1486 # unsuccessful exit.
1487 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1488 if test x
"$errors" = x
; then
1489 gcc_cv_prog_adac
=$cand
1496 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1497 ADAC
=$gcc_cv_prog_adac
1500 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1507 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 save_CFLAGS
="$CFLAGS"
1513 CFLAGS
="-Wno-long-long"
1514 cat > conftest.
$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1522 if { (eval echo configure
:1523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1524 ac_cv_prog_cc_no_long_long
=yes
1526 echo "configure: failed program was:" >&5
1527 cat conftest.
$ac_ext >&5
1529 ac_cv_prog_cc_no_long_long
=no
1532 CFLAGS
="$save_CFLAGS"
1535 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1537 if test x
$have_gnat != xno
; then
1538 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1539 echo "configure:1540: checking whether ${ADAC} accepts -Wno-long-long" >&5
1540 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 cat >conftest.adb
<<EOF
1544 procedure conftest is begin null; end conftest;
1546 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1547 ac_cv_prog_adac_no_long_long
=yes
1549 ac_cv_prog_adac_no_long_long
=no
1554 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1556 ac_cv_prog_adac_no_long_long
=yes
1560 if test $ac_cv_prog_cc_no_long_long = yes && \
1561 test $ac_cv_prog_adac_no_long_long = yes ; then
1562 strict1_warn
="-pedantic -Wno-long-long"
1566 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1567 echo "configure:1568: checking how to run the C preprocessor" >&5
1568 # On Suns, sometimes $CPP names a directory.
1569 if test -n "$CPP" && test -d "$CPP"; then
1572 if test -z "$CPP"; then
1573 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 # This must be in double quotes, not single quotes, because CPP may get
1577 # substituted into the Makefile and "${CC-cc}" will confuse make.
1579 # On the NeXT, cc -E runs the code through the compiler's parser,
1580 # not just through cpp.
1581 cat > conftest.
$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1587 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588 { (eval echo configure
:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1590 if test -z "$ac_err"; then
1594 echo "configure: failed program was:" >&5
1595 cat conftest.
$ac_ext >&5
1597 CPP
="${CC-cc} -E -traditional-cpp"
1598 cat > conftest.
$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1604 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1605 { (eval echo configure
:1606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1606 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1607 if test -z "$ac_err"; then
1611 echo "configure: failed program was:" >&5
1612 cat conftest.
$ac_ext >&5
1614 CPP
="${CC-cc} -nologo -E"
1615 cat > conftest.
$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1621 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1622 { (eval echo configure
:1623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1623 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1624 if test -z "$ac_err"; then
1628 echo "configure: failed program was:" >&5
1629 cat conftest.
$ac_ext >&5
1638 ac_cv_prog_CPP
="$CPP"
1640 CPP
="$ac_cv_prog_CPP"
1642 ac_cv_prog_CPP
="$CPP"
1644 echo "$ac_t""$CPP" 1>&6
1646 echo $ac_n "checking for inline""... $ac_c" 1>&6
1647 echo "configure:1648: checking for inline" >&5
1648 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1652 for ac_kw
in inline __inline__ __inline
; do
1653 cat > conftest.
$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1661 if { (eval echo configure
:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1663 ac_cv_c_inline
=$ac_kw; break
1665 echo "configure: failed program was:" >&5
1666 cat conftest.
$ac_ext >&5
1673 echo "$ac_t""$ac_cv_c_inline" 1>&6
1674 case "$ac_cv_c_inline" in
1676 no
) cat >> confdefs.h
<<\EOF
1680 *) cat >> confdefs.h
<<EOF
1681 #define inline $ac_cv_c_inline
1686 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1687 echo "configure:1688: checking for volatile" >&5
1688 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.
$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1699 if { (eval echo configure
:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1701 gcc_cv_c_volatile
=yes
1703 echo "configure: failed program was:" >&5
1704 cat conftest.
$ac_ext >&5
1706 gcc_cv_c_volatile
=no
1711 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1712 if test $gcc_cv_c_volatile = yes ; then
1713 cat >> confdefs.h
<<\EOF
1714 #define HAVE_VOLATILE 1
1720 echo $ac_n "checking for long double""... $ac_c" 1>&6
1721 echo "configure:1722: checking for long double" >&5
1722 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 if test "$GCC" = yes; then
1726 gcc_cv_c_long_double
=yes
1728 cat > conftest.
$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1733 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1734 long double foo = 0.0;
1735 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1736 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1739 if { (eval echo configure
:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1741 gcc_cv_c_long_double
=yes
1743 echo "configure: failed program was:" >&5
1744 cat conftest.
$ac_ext >&5
1746 gcc_cv_c_long_double
=no
1752 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1753 if test $gcc_cv_c_long_double = yes; then
1754 cat >> confdefs.h
<<\EOF
1755 #define HAVE_LONG_DOUBLE 1
1760 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1761 echo "configure:1762: checking for long long int" >&5
1762 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 cat > conftest.
$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1773 if { (eval echo configure
:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1775 ac_cv_c_long_long
=yes
1777 echo "configure: failed program was:" >&5
1778 cat conftest.
$ac_ext >&5
1780 ac_cv_c_long_long
=no
1785 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1786 if test $ac_cv_c_long_long = yes; then
1787 cat >> confdefs.h
<<\EOF
1788 #define HAVE_LONG_LONG 1
1792 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1793 echo "configure:1794: checking for __int64" >&5
1794 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 cat > conftest.
$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1805 if { (eval echo configure
:1806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1809 echo "configure: failed program was:" >&5
1810 cat conftest.
$ac_ext >&5
1817 echo "$ac_t""$ac_cv_c___int64" 1>&6
1818 if test $ac_cv_c___int64 = yes; then
1819 cat >> confdefs.h
<<\EOF
1820 #define HAVE___INT64 1
1825 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1826 echo "configure:1827: checking for built-in _Bool" >&5
1827 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 cat > conftest.
$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1838 if { (eval echo configure
:1839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1842 echo "configure: failed program was:" >&5
1843 cat conftest.
$ac_ext >&5
1851 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1852 if test $gcc_cv_c__bool = yes; then
1853 cat >> confdefs.h
<<\EOF
1854 #define HAVE__BOOL 1
1860 # sizeof(char) is 1 by definition.
1861 echo $ac_n "checking size of short""... $ac_c" 1>&6
1862 echo "configure:1863: checking size of short" >&5
1863 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1867 cat > conftest.
$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1870 #include "confdefs.h"
1871 #include <sys/types.h>
1875 switch (0) case 0: case (sizeof (short) == $ac_size):;
1878 if { (eval echo configure
:1879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1880 ac_cv_sizeof_short
=$ac_size
1882 echo "configure: failed program was:" >&5
1883 cat conftest.
$ac_ext >&5
1886 if test x
$ac_cv_sizeof_short != x
; then break; fi
1891 if test x
$ac_cv_sizeof_short = x
; then
1892 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1894 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1895 cat >> confdefs.h
<<EOF
1896 #define SIZEOF_SHORT $ac_cv_sizeof_short
1900 echo $ac_n "checking size of int""... $ac_c" 1>&6
1901 echo "configure:1902: checking size of int" >&5
1902 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1906 cat > conftest.
$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 #include "confdefs.h"
1910 #include <sys/types.h>
1914 switch (0) case 0: case (sizeof (int) == $ac_size):;
1917 if { (eval echo configure
:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1919 ac_cv_sizeof_int
=$ac_size
1921 echo "configure: failed program was:" >&5
1922 cat conftest.
$ac_ext >&5
1925 if test x
$ac_cv_sizeof_int != x
; then break; fi
1930 if test x
$ac_cv_sizeof_int = x
; then
1931 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1933 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1934 cat >> confdefs.h
<<EOF
1935 #define SIZEOF_INT $ac_cv_sizeof_int
1939 echo $ac_n "checking size of long""... $ac_c" 1>&6
1940 echo "configure:1941: checking size of long" >&5
1941 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1945 cat > conftest.
$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1948 #include "confdefs.h"
1949 #include <sys/types.h>
1953 switch (0) case 0: case (sizeof (long) == $ac_size):;
1956 if { (eval echo configure
:1957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1958 ac_cv_sizeof_long
=$ac_size
1960 echo "configure: failed program was:" >&5
1961 cat conftest.
$ac_ext >&5
1964 if test x
$ac_cv_sizeof_long != x
; then break; fi
1969 if test x
$ac_cv_sizeof_long = x
; then
1970 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1972 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1973 cat >> confdefs.h
<<EOF
1974 #define SIZEOF_LONG $ac_cv_sizeof_long
1978 if test $ac_cv_c_long_long = yes; then
1979 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1980 echo "configure:1981: checking size of long long" >&5
1981 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1985 cat > conftest.
$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 #include "confdefs.h"
1989 #include <sys/types.h>
1993 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1996 if { (eval echo configure
:1997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1998 ac_cv_sizeof_long_long
=$ac_size
2000 echo "configure: failed program was:" >&5
2001 cat conftest.
$ac_ext >&5
2004 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2009 if test x
$ac_cv_sizeof_long_long = x
; then
2010 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2012 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2013 cat >> confdefs.h
<<EOF
2014 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2019 if test $ac_cv_c___int64 = yes; then
2020 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
2021 echo "configure:2022: checking size of __int64" >&5
2022 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 #include "confdefs.h"
2030 #include <sys/types.h>
2034 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
2037 if { (eval echo configure
:2038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2039 ac_cv_sizeof___int64
=$ac_size
2041 echo "configure: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2045 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
2050 if test x
$ac_cv_sizeof___int64 = x
; then
2051 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
2053 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
2054 cat >> confdefs.h
<<EOF
2055 #define SIZEOF___INT64 $ac_cv_sizeof___int64
2061 echo $ac_n "checking execution character set""... $ac_c" 1>&6
2062 echo "configure:2063: checking execution character set" >&5
2063 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 cat > conftest.
$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2070 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2075 egrep "ASCII" >/dev
/null
2>&1; then
2077 ac_cv_c_charset
=ASCII
2081 if test x
${ac_cv_c_charset+set} != xset
; then
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2086 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2091 egrep "EBCDIC" >/dev
/null
2>&1; then
2093 ac_cv_c_charset
=EBCDIC
2098 if test x
${ac_cv_c_charset+set} != xset
; then
2099 ac_cv_c_charset
=unknown
2103 echo "$ac_t""$ac_cv_c_charset" 1>&6
2104 if test $ac_cv_c_charset = unknown
; then
2105 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
2106 elif test $ac_cv_c_charset = EBCDIC
; then
2107 cat >> confdefs.h
<<\EOF
2108 #define HOST_EBCDIC 1
2113 # If the native compiler is GCC, we can enable warnings even in stage1.
2114 # That's useful for people building cross-compilers, or just running a
2117 if test "x$GCC" = "xyes"; then
2118 warn_cflags
='$(GCC_WARN_CFLAGS)'
2122 # Stage specific cflags for build.
2126 if test x
$GCC = xyes
2128 stage1_cflags
="-Wa,-J"
2134 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
2135 # sources; use -no-cpp-precomp to get to GNU cpp.
2136 # Apple's GCC has bugs in designated initializer handling, so disable
2138 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
2143 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether ${MAKE-make} sets \${MAKE}" >&5
2145 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2146 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftestmake
<<\EOF
2151 @
echo 'ac_maketemp="${MAKE}"'
2153 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2154 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2155 if test -n "$ac_maketemp"; then
2156 eval ac_cv_prog_make_
${ac_make}_set
=yes
2158 eval ac_cv_prog_make_
${ac_make}_set
=no
2162 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2163 echo "$ac_t""yes" 1>&6
2166 echo "$ac_t""no" 1>&6
2167 SET_MAKE
="MAKE=${MAKE-make}"
2171 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2172 echo "configure:2173: checking whether a default assembler was specified" >&5
2173 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2174 if test x
"$gas_flag" = x
"no"; then
2175 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2177 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2180 echo "$ac_t""no" 1>&6
2183 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2184 echo "configure:2185: checking whether a default linker was specified" >&5
2185 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2186 if test x
"$gnu_ld_flag" = x
"no"; then
2187 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2189 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2192 echo "$ac_t""no" 1>&6
2195 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2196 echo "configure:2197: checking for GNU C library" >&5
2197 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <features.h>
2206 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2207 #error Not a GNU C library system
2211 if { (eval echo configure
:2212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2215 echo "configure: failed program was:" >&5
2216 cat conftest.
$ac_ext >&5
2223 echo "$ac_t""$gcc_cv_glibc" 1>&6
2224 if test $gcc_cv_glibc = yes; then
2225 cat >> confdefs.h
<<\EOF
2226 #define _GNU_SOURCE 1
2231 # Find some useful tools
2232 for ac_prog
in gawk mawk nawk
awk
2234 # Extract the first word of "$ac_prog", so it can be a program name with args.
2235 set dummy
$ac_prog; ac_word
=$2
2236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2237 echo "configure:2238: checking for $ac_word" >&5
2238 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 if test -n "$AWK"; then
2242 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2244 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2246 for ac_dir
in $ac_dummy; do
2247 test -z "$ac_dir" && ac_dir
=.
2248 if test -f $ac_dir/$ac_word; then
2249 ac_cv_prog_AWK
="$ac_prog"
2256 AWK
="$ac_cv_prog_AWK"
2257 if test -n "$AWK"; then
2258 echo "$ac_t""$AWK" 1>&6
2260 echo "$ac_t""no" 1>&6
2263 test -n "$AWK" && break
2266 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2267 echo "configure:2268: checking whether ln works" >&5
2268 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 rm -f conftestdata_t
2272 echo >conftestdata_f
2273 if ln conftestdata_f conftestdata_t
2>/dev
/null
2277 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2279 gcc_cv_prog_LN
="ln -s"
2284 rm -f conftestdata_f conftestdata_t
2287 LN
="$gcc_cv_prog_LN"
2288 if test "$gcc_cv_prog_LN" = "ln"; then
2289 echo "$ac_t""yes" 1>&6
2291 if test "$gcc_cv_prog_LN" = "ln -s"; then
2292 echo "$ac_t""no, using ln -s" 1>&6
2294 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2298 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether ln -s works" >&5
2300 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 rm -f conftestdata_t
2304 echo >conftestdata_f
2305 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2307 gcc_cv_prog_LN_S
="ln -s"
2309 if ln conftestdata_f conftestdata_t
2>/dev
/null
2316 rm -f conftestdata_f conftestdata_t
2319 LN_S
="$gcc_cv_prog_LN_S"
2320 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2321 echo "$ac_t""yes" 1>&6
2323 if test "$gcc_cv_prog_LN_S" = "ln"; then
2324 echo "$ac_t""no, using ln" 1>&6
2326 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2330 # Extract the first word of "ranlib", so it can be a program name with args.
2331 set dummy ranlib
; ac_word
=$2
2332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2333 echo "configure:2334: checking for $ac_word" >&5
2334 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 if test -n "$RANLIB"; then
2338 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2340 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2342 for ac_dir
in $ac_dummy; do
2343 test -z "$ac_dir" && ac_dir
=.
2344 if test -f $ac_dir/$ac_word; then
2345 ac_cv_prog_RANLIB
="ranlib"
2350 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2353 RANLIB
="$ac_cv_prog_RANLIB"
2354 if test -n "$RANLIB"; then
2355 echo "$ac_t""$RANLIB" 1>&6
2357 echo "$ac_t""no" 1>&6
2360 # Find a good install program. We prefer a C program (faster),
2361 # so one script is as good as another. But avoid the broken or
2362 # incompatible versions:
2363 # SysV /etc/install, /usr/sbin/install
2364 # SunOS /usr/etc/install
2365 # IRIX /sbin/install
2367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2369 # ./install, which can be erroneously created by make from ./install.sh.
2370 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2371 echo "configure:2372: checking for a BSD compatible install" >&5
2372 if test -z "$INSTALL"; then
2373 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2377 for ac_dir
in $PATH; do
2378 # Account for people who put trailing slashes in PATH elements.
2380 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2382 # OSF1 and SCO ODT 3.0 have their own names for install.
2383 for ac_prog
in ginstall scoinst
install; do
2384 if test -f $ac_dir/$ac_prog; then
2385 if test $ac_prog = install &&
2386 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2387 # AIX install. It has an incompatible calling convention.
2388 # OSF/1 installbsd also uses dspmsg, but is usable.
2391 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2402 if test "${ac_cv_path_install+set}" = set; then
2403 INSTALL
="$ac_cv_path_install"
2405 # As a last resort, use the slow shell script. We don't cache a
2406 # path for INSTALL within a source directory, because that will
2407 # break other packages using the cache if that directory is
2408 # removed, or if the path is relative.
2409 INSTALL
="$ac_install_sh"
2412 echo "$ac_t""$INSTALL" 1>&6
2414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415 # It thinks the first close brace ends the variable substitution.
2416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2418 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2421 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2422 echo "configure:2423: checking for ANSI C header files" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2434 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2435 { (eval echo configure
:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2436 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2437 if test -z "$ac_err"; then
2439 ac_cv_header_stdc
=yes
2442 echo "configure: failed program was:" >&5
2443 cat conftest.
$ac_ext >&5
2445 ac_cv_header_stdc
=no
2449 if test $ac_cv_header_stdc = yes; then
2450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2451 cat > conftest.
$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2457 egrep "memchr" >/dev
/null
2>&1; then
2461 ac_cv_header_stdc
=no
2467 if test $ac_cv_header_stdc = yes; then
2468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2475 egrep "free" >/dev
/null
2>&1; then
2479 ac_cv_header_stdc
=no
2485 if test $ac_cv_header_stdc = yes; then
2486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2487 if test "$cross_compiling" = yes; then
2490 cat > conftest.
$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2494 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2495 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2496 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2497 int main () { int i; for (i = 0; i < 256; i++)
2498 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2502 if { (eval echo configure
:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2506 echo "configure: failed program was:" >&5
2507 cat conftest.
$ac_ext >&5
2509 ac_cv_header_stdc
=no
2517 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2518 if test $ac_cv_header_stdc = yes; then
2519 cat >> confdefs.h
<<\EOF
2520 #define STDC_HEADERS 1
2525 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2526 echo "configure:2527: checking whether time.h and sys/time.h may both be included" >&5
2527 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 cat > conftest.
$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <sys/types.h>
2534 #include <sys/time.h>
2540 if { (eval echo configure
:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2542 ac_cv_header_time
=yes
2544 echo "configure: failed program was:" >&5
2545 cat conftest.
$ac_ext >&5
2547 ac_cv_header_time
=no
2552 echo "$ac_t""$ac_cv_header_time" 1>&6
2553 if test $ac_cv_header_time = yes; then
2554 cat >> confdefs.h
<<\EOF
2555 #define TIME_WITH_SYS_TIME 1
2560 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2561 echo "configure:2562: checking for working stdbool.h" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <stdbool.h>
2573 if { (eval echo configure
:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2575 ac_cv_header_stdbool_h
=yes
2577 echo "configure: failed program was:" >&5
2578 cat conftest.
$ac_ext >&5
2580 ac_cv_header_stdbool_h
=no
2585 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2586 if test $ac_cv_header_stdbool_h = yes; then
2587 cat >> confdefs.h
<<\EOF
2588 #define HAVE_STDBOOL_H 1
2593 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2594 echo "configure:2595: checking whether string.h and strings.h may both be included" >&5
2595 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.
$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2602 #include <strings.h>
2607 if { (eval echo configure
:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2609 gcc_cv_header_string
=yes
2611 echo "configure: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2614 gcc_cv_header_string
=no
2619 echo "$ac_t""$gcc_cv_header_string" 1>&6
2620 if test $gcc_cv_header_string = yes; then
2621 cat >> confdefs.h
<<\EOF
2622 #define STRING_WITH_STRINGS 1
2627 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2628 echo "configure:2629: checking for sys/wait.h that is POSIX.1 compatible" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.
$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 #include <sys/types.h>
2636 #include <sys/wait.h>
2638 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2641 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2646 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2649 if { (eval echo configure
:2650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2651 ac_cv_header_sys_wait_h
=yes
2653 echo "configure: failed program was:" >&5
2654 cat conftest.
$ac_ext >&5
2656 ac_cv_header_sys_wait_h
=no
2661 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2662 if test $ac_cv_header_sys_wait_h = yes; then
2663 cat >> confdefs.h
<<\EOF
2664 #define HAVE_SYS_WAIT_H 1
2669 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2670 fcntl.h unistd.h sys
/file.h sys
/time.h \
2671 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2672 direct.h malloc.h langinfo.h
2674 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2676 echo "configure:2677: checking for $ac_hdr" >&5
2677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.
$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2685 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686 { (eval echo configure
:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688 if test -z "$ac_err"; then
2690 eval "ac_cv_header_$ac_safe=yes"
2693 echo "configure: failed program was:" >&5
2694 cat conftest.
$ac_ext >&5
2696 eval "ac_cv_header_$ac_safe=no"
2700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2703 cat >> confdefs.h
<<EOF
2704 #define $ac_tr_hdr 1
2708 echo "$ac_t""no" 1>&6
2713 # Check for thread headers.
2714 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2715 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2716 echo "configure:2717: checking for thread.h" >&5
2717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 cat > conftest.
$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2725 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2726 { (eval echo configure
:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2727 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2728 if test -z "$ac_err"; then
2730 eval "ac_cv_header_$ac_safe=yes"
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2736 eval "ac_cv_header_$ac_safe=no"
2740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2744 echo "$ac_t""no" 1>&6
2748 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2750 echo "configure:2751: checking for pthread.h" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.
$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <pthread.h>
2759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure
:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2764 eval "ac_cv_header_$ac_safe=yes"
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2770 eval "ac_cv_header_$ac_safe=no"
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2778 echo "$ac_t""no" 1>&6
2783 # These tests can't be done till we know if we have limits.h.
2784 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2785 echo "configure:2786: checking for CHAR_BIT" >&5
2786 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 cat > conftest.
$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 #ifdef HAVE_LIMITS_H
2799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2800 egrep "found" >/dev
/null
2>&1; then
2802 gcc_cv_decl_char_bit
=yes
2805 gcc_cv_decl_char_bit
=no
2812 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2813 if test $gcc_cv_decl_char_bit = no
; then
2814 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2815 echo "configure:2816: checking number of bits in a byte" >&5
2816 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2821 while test $i -lt 65; do
2822 cat > conftest.
$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2828 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2829 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2833 if { (eval echo configure
:2834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2835 gcc_cv_c_nbby
=$i; break
2837 echo "configure: failed program was:" >&5
2838 cat conftest.
$ac_ext >&5
2843 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2847 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2848 if test $gcc_cv_c_nbby = failed
; then
2849 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2851 cat >> confdefs.h
<<EOF
2852 #define CHAR_BIT $gcc_cv_c_nbby
2857 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2858 echo "configure:2859: checking byte ordering" >&5
2859 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 ac_cv_c_compile_endian
=unknown
2865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2866 ac_cpp
='$CPP $CPPFLAGS'
2867 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2868 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2869 cross_compiling
=$ac_cv_prog_cc_cross
2871 cat > conftest.
$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2875 #ifdef HAVE_LIMITS_H
2876 # include <limits.h>
2878 /* This structure must have no internal padding. */
2880 char prefix[sizeof "\nendian:" - 1];
2885 #if SIZEOF_SHORT == 4
2886 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2888 ('A' << CHAR_BIT) | 'B',
2892 if { (eval echo configure
:2893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2894 sed 's/^[0-7]*[ ]*/ /
2897 s/ [0-9][0-9][0-9]/./g
2903 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2904 ac_cv_c_compile_endian
=big-endian
2905 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2906 ac_cv_c_compile_endian
=little-endian
2911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2912 ac_cpp
='$CPP $CPPFLAGS'
2913 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2914 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2915 cross_compiling
=$ac_cv_prog_cc_cross
2920 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2921 if test $ac_cv_c_compile_endian = unknown
; then
2922 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2923 elif test $ac_cv_c_compile_endian = big-endian
; then
2924 cat >> confdefs.h
<<\EOF
2925 #define HOST_WORDS_BIG_ENDIAN 1
2930 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2931 echo "configure:2932: checking floating point format" >&5
2932 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2938 ac_cpp
='$CPP $CPPFLAGS'
2939 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2940 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2941 cross_compiling
=$ac_cv_prog_cc_cross
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 /* This will not work unless sizeof(double) == 8. */
2947 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2949 /* This structure must have no internal padding. */
2950 struct possibility {
2956 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2957 struct possibility table [] =
2959 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2960 C( 3.53802595280598432000e+18), /* D__float - VAX */
2961 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2962 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2963 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2966 if { (eval echo configure
:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2968 sed 's/^[0-7]*[ ]*/ /
2971 s/ [0-9][0-9][0-9]/./g
2977 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2978 ac_cv_c_float_format
='IEEE (big-endian)'
2979 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2980 ac_cv_c_float_format
='IEEE (big-endian)'
2981 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2982 ac_cv_c_float_format
='IEEE (little-endian)'
2983 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2984 ac_cv_c_float_format
='IEEE (little-endian)'
2985 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2986 ac_cv_c_float_format
='VAX D-float'
2987 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2988 ac_cv_c_float_format
='PDP-10'
2989 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2990 ac_cv_c_float_format
='IBM 370 hex'
2992 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
2995 { echo "configure: error: compile failed" 1>&2; exit 1; }
2999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3000 ac_cpp
='$CPP $CPPFLAGS'
3001 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3002 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3003 cross_compiling
=$ac_cv_prog_cc_cross
3008 echo "$ac_t""$ac_cv_c_float_format" 1>&6
3009 # IEEE is the default format. If the float endianness isn't the same
3010 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
3011 # (which is a tristate: yes, no, default). This is only an issue with
3012 # IEEE; the other formats are only supported by a few machines each,
3013 # all with the same endianness.
3016 case $ac_cv_c_float_format in
3017 'IEEE (big-endian)' )
3018 if test $ac_cv_c_compile_endian = little-endian
; then
3022 'IEEE (little-endian)' )
3023 if test $ac_cv_c_compile_endian = big-endian
; then
3028 format
=VAX_FLOAT_FORMAT
3031 format
=PDP10_FLOAT_FORMAT
3034 format
=IBM_FLOAT_FORMAT
3037 if test -n "$format"; then
3038 cat >> confdefs.h
<<EOF
3039 #define HOST_FLOAT_FORMAT $format
3043 if test -n "$fbigend"; then
3044 cat >> confdefs.h
<<EOF
3045 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
3051 # See if we have the mktemp command.
3052 # Extract the first word of "mktemp", so it can be a program name with args.
3053 set dummy mktemp
; ac_word
=$2
3054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_word" >&5
3056 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 if test -n "$have_mktemp_command"; then
3060 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3064 for ac_dir
in $ac_dummy; do
3065 test -z "$ac_dir" && ac_dir
=.
3066 if test -f $ac_dir/$ac_word; then
3067 ac_cv_prog_have_mktemp_command
="yes"
3072 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3075 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3076 if test -n "$have_mktemp_command"; then
3077 echo "$ac_t""$have_mktemp_command" 1>&6
3079 echo "$ac_t""no" 1>&6
3083 # Do we have a single-tree copy of texinfo?
3084 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3085 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3086 gcc_cv_prog_makeinfo_modern
=yes
3087 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3089 # See if makeinfo has been installed and is modern enough
3090 # that we can use it.
3091 # Extract the first word of "makeinfo", so it can be a program name with args.
3092 set dummy makeinfo
; ac_word
=$2
3093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3094 echo "configure:3095: checking for $ac_word" >&5
3095 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 if test -n "$MAKEINFO"; then
3099 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3101 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3103 for ac_dir
in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir
=.
3105 if test -f $ac_dir/$ac_word; then
3106 ac_cv_prog_MAKEINFO
="makeinfo"
3113 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3114 if test -n "$MAKEINFO"; then
3115 echo "$ac_t""$MAKEINFO" 1>&6
3117 echo "$ac_t""no" 1>&6
3120 if test -n "$MAKEINFO"; then
3121 # Found it, now check the version.
3122 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3123 echo "configure:3124: checking for modern makeinfo" >&5
3124 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3127 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3128 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3129 echo "configure:3130: version of makeinfo is $ac_prog_version" >&5
3130 case $ac_prog_version in
3131 '') gcc_cv_prog_makeinfo_modern
=no
;;
3133 gcc_cv_prog_makeinfo_modern
=yes;;
3134 *) gcc_cv_prog_makeinfo_modern
=no
;;
3139 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3141 gcc_cv_prog_makeinfo_modern
=no
3146 if test $gcc_cv_prog_makeinfo_modern = no
; then
3147 echo "configure: warning:
3148 *** Makeinfo is missing or too old.
3149 *** Info documentation will not be built." 1>&2
3155 # Is pod2man recent enough to regenerate manpages?
3156 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3157 echo "configure:3158: checking for recent Pod::Man" >&5
3158 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3159 echo "$ac_t""yes" 1>&6
3160 GENERATED_MANPAGES
=generated-manpages
3162 echo "$ac_t""no" 1>&6
3167 if test -f $srcdir/..
/flex
/skel.c
; then
3168 FLEX
='$(objdir)/../flex/flex'
3170 # Extract the first word of "flex", so it can be a program name with args.
3171 set dummy flex
; ac_word
=$2
3172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3173 echo "configure:3174: checking for $ac_word" >&5
3174 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 if test -n "$FLEX"; then
3178 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3182 for ac_dir
in $ac_dummy; do
3183 test -z "$ac_dir" && ac_dir
=.
3184 if test -f $ac_dir/$ac_word; then
3185 ac_cv_prog_FLEX
="flex"
3190 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3193 FLEX
="$ac_cv_prog_FLEX"
3194 if test -n "$FLEX"; then
3195 echo "$ac_t""$FLEX" 1>&6
3197 echo "$ac_t""no" 1>&6
3203 # The -L switch is so bison can find its skeleton file.
3204 if test -f $srcdir/..
/bison
/bison.simple
; then
3205 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3207 # Extract the first word of "bison", so it can be a program name with args.
3208 set dummy bison
; ac_word
=$2
3209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3210 echo "configure:3211: checking for $ac_word" >&5
3211 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 if test -n "$BISON"; then
3215 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3219 for ac_dir
in $ac_dummy; do
3220 test -z "$ac_dir" && ac_dir
=.
3221 if test -f $ac_dir/$ac_word; then
3222 ac_cv_prog_BISON
="bison"
3227 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3230 BISON
="$ac_cv_prog_BISON"
3231 if test -n "$BISON"; then
3232 echo "$ac_t""$BISON" 1>&6
3234 echo "$ac_t""no" 1>&6
3239 # These libraries may be used by collect2.
3240 # We may need a special search path to get them linked.
3241 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3242 echo "configure:3243: checking for collect2 libraries" >&5
3243 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3247 for libs
in '' -lld -lmld \
3248 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3249 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3252 cat > conftest.
$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 /* Override any gcc2 internal prototype to avoid an error. */
3256 /* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3264 if { (eval echo configure
:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3266 gcc_cv_collect2_libs
="$libs"; break
3268 echo "configure: failed program was:" >&5
3269 cat conftest.
$ac_ext >&5
3274 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3277 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3278 case $gcc_cv_collect2_libs in
3280 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3284 # When building Ada code on Alpha, we need exc_resume which is usually in
3285 # -lexc. So test for it.
3289 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3290 echo "configure:3291: checking for library containing exc_resume" >&5
3291 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 ac_func_search_save_LIBS
="$LIBS"
3295 ac_cv_search_exc_resume
="no"
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 /* Override any gcc2 internal prototype to avoid an error. */
3300 /* We use char because int might match the return type of a gcc2
3301 builtin and then its argument prototype would still apply. */
3308 if { (eval echo configure
:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3310 ac_cv_search_exc_resume
="none required"
3312 echo "configure: failed program was:" >&5
3313 cat conftest.
$ac_ext >&5
3316 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3317 LIBS
="-l$i $ac_func_search_save_LIBS"
3318 cat > conftest.
$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 /* Override any gcc2 internal prototype to avoid an error. */
3322 /* We use char because int might match the return type of a gcc2
3323 builtin and then its argument prototype would still apply. */
3330 if { (eval echo configure
:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3332 ac_cv_search_exc_resume
="-l$i"
3335 echo "configure: failed program was:" >&5
3336 cat conftest.
$ac_ext >&5
3340 LIBS
="$ac_func_search_save_LIBS"
3343 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3344 if test "$ac_cv_search_exc_resume" != "no"; then
3345 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3354 # See if the stage1 system preprocessor understands the ANSI C
3355 # preprocessor stringification operator. (Used by symcat.h.)
3358 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3359 echo "configure:3360: checking for preprocessor stringizing operator" >&5
3360 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3369 char *s = x(teststring);
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "#teststring" >/dev
/null
2>&1; then
3375 ac_cv_c_stringize
=no
3378 ac_cv_c_stringize
=yes
3384 if test "${ac_cv_c_stringize}" = yes
3386 cat >> confdefs.h
<<\EOF
3387 #define HAVE_STRINGIZE 1
3391 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3394 # Use <inttypes.h> only if it exists,
3395 # doesn't clash with <sys/types.h>, and declares intmax_t.
3396 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3397 echo "configure:3398: checking for inttypes.h" >&5
3398 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 cat > conftest.
$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 #include <sys/types.h>
3405 #include <inttypes.h>
3410 if { (eval echo configure
:3411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3412 gcc_cv_header_inttypes_h
=yes
3414 echo "configure: failed program was:" >&5
3415 cat conftest.
$ac_ext >&5
3417 gcc_cv_header_inttypes_h
=no
3422 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3423 if test $gcc_cv_header_inttypes_h = yes; then
3424 cat >> confdefs.h
<<\EOF
3425 #define HAVE_INTTYPES_H 1
3431 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3432 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3433 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat
3435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3436 echo "configure:3437: checking for $ac_func" >&5
3437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 cat > conftest.
$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 /* System header to define __stub macros and hopefully few prototypes,
3444 which can conflict with char $ac_func(); below. */
3446 /* Override any gcc2 internal prototype to avoid an error. */
3447 /* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
3453 /* The GNU C library defines this for functions which it implements
3454 to always fail with ENOSYS. Some functions are actually named
3455 something starting with __ and the normal name is an alias. */
3456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3464 if { (eval echo configure
:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3466 eval "ac_cv_func_$ac_func=yes"
3468 echo "configure: failed program was:" >&5
3469 cat conftest.
$ac_ext >&5
3471 eval "ac_cv_func_$ac_func=no"
3476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3479 cat >> confdefs.h
<<EOF
3480 #define $ac_tr_func 1
3484 echo "$ac_t""no" 1>&6
3489 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3490 echo "configure:3491: checking for ssize_t" >&5
3491 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.
$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3497 #include <sys/types.h>
3503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3504 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3506 ac_cv_type_ssize_t
=yes
3509 ac_cv_type_ssize_t
=no
3514 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3515 if test $ac_cv_type_ssize_t = no
; then
3516 cat >> confdefs.h
<<\EOF
3523 # Try to determine the array type of the second argument of getgroups
3524 # for the target system (int or gid_t).
3525 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3526 echo "configure:3527: checking for uid_t in sys/types.h" >&5
3527 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.
$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <sys/types.h>
3535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3536 egrep "uid_t" >/dev
/null
2>&1; then
3538 ac_cv_type_uid_t
=yes
3547 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3548 if test $ac_cv_type_uid_t = no
; then
3549 cat >> confdefs.h
<<\EOF
3553 cat >> confdefs.h
<<\EOF
3559 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3560 echo "configure:3561: checking type of array argument to getgroups" >&5
3561 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 if test "$cross_compiling" = yes; then
3565 ac_cv_type_getgroups
=cross
3567 cat > conftest.
$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3571 /* Thanks to Mike Rendell for this test. */
3572 #include <sys/types.h>
3575 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3580 union { gid_t gval; long lval; } val;
3583 for (i = 0; i < NGID; i++)
3584 gidset[i] = val.gval;
3585 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3587 /* Exit non-zero if getgroups seems to require an array of ints. This
3588 happens when gid_t is short but getgroups modifies an array of ints. */
3589 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3593 if { (eval echo configure
:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3595 ac_cv_type_getgroups
=gid_t
3597 echo "configure: failed program was:" >&5
3598 cat conftest.
$ac_ext >&5
3600 ac_cv_type_getgroups
=int
3605 if test $ac_cv_type_getgroups = cross
; then
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3612 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3614 ac_cv_type_getgroups
=gid_t
3617 ac_cv_type_getgroups
=int
3624 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3625 cat >> confdefs.h
<<EOF
3626 #define GETGROUPS_T $ac_cv_type_getgroups
3630 if test "${target}" = "${build}"; then
3631 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3634 # This condition may need some tweaking. It should include all
3635 # targets where the array type of the second argument of getgroups
3636 # is int and the type of gid_t is not equivalent to int.
3637 *-*-sunos* |
*-*-ultrix*)
3638 TARGET_GETGROUPS_T
=int
3641 TARGET_GETGROUPS_T
=gid_t
3647 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3648 echo "configure:3649: checking whether the printf functions support %p" >&5
3649 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 if test "$cross_compiling" = yes; then
3653 gcc_cv_func_printf_ptr
=no
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3663 char *p = buf, *q = NULL;
3664 sprintf(buf, "%p", p);
3665 sscanf(buf, "%p", &q);
3669 if { (eval echo configure
:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3671 gcc_cv_func_printf_ptr
=yes
3673 echo "configure: failed program was:" >&5
3674 cat conftest.
$ac_ext >&5
3676 gcc_cv_func_printf_ptr
=no
3681 rm -f core core.
* *.core
3684 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3685 if test $gcc_cv_func_printf_ptr = yes ; then
3686 cat >> confdefs.h
<<\EOF
3687 #define HAVE_PRINTF_PTR 1
3695 { echo "configure: error:
3696 *** UWIN may not be used as a host platform because
3697 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3700 # Under VMS, vfork works very different than on Unix. The standard test
3701 # won't work, and it isn't easily adaptable. It makes more sense to
3703 ac_cv_func_vfork_works
=yes
3706 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3707 echo "configure:3708: checking for pid_t" >&5
3708 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 cat > conftest.
$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 #include <sys/types.h>
3720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3721 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3723 ac_cv_type_pid_t
=yes
3731 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3732 if test $ac_cv_type_pid_t = no
; then
3733 cat >> confdefs.h
<<\EOF
3739 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3740 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3741 echo "configure:3742: checking for vfork.h" >&5
3742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 cat > conftest.
$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3751 { (eval echo configure
:3752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3753 if test -z "$ac_err"; then
3755 eval "ac_cv_header_$ac_safe=yes"
3758 echo "configure: failed program was:" >&5
3759 cat conftest.
$ac_ext >&5
3761 eval "ac_cv_header_$ac_safe=no"
3765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3766 echo "$ac_t""yes" 1>&6
3767 cat >> confdefs.h
<<\EOF
3768 #define HAVE_VFORK_H 1
3772 echo "$ac_t""no" 1>&6
3775 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3776 echo "configure:3777: checking for working vfork" >&5
3777 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 if test "$cross_compiling" = yes; then
3781 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3782 echo "configure:3783: checking for vfork" >&5
3783 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3786 cat > conftest.
$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3789 /* System header to define __stub macros and hopefully few prototypes,
3790 which can conflict with char vfork(); below. */
3792 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3799 /* The GNU C library defines this for functions which it implements
3800 to always fail with ENOSYS. Some functions are actually named
3801 something starting with __ and the normal name is an alias. */
3802 #if defined (__stub_vfork) || defined (__stub___vfork)
3810 if { (eval echo configure
:3811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3812 eval "ac_cv_func_vfork=yes"
3814 echo "configure: failed program was:" >&5
3815 cat conftest.
$ac_ext >&5
3817 eval "ac_cv_func_vfork=no"
3822 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3826 echo "$ac_t""no" 1>&6
3829 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3831 cat > conftest.
$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 /* Thanks to Paul Eggert for this test. */
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 #ifdef HAVE_UNISTD_H
3844 /* On some sparc systems, changes by the child to local and incoming
3845 argument registers are propagated back to the parent.
3846 The compiler is told about this with #include <vfork.h>,
3847 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3848 Test for this by using a static variable whose address
3849 is put into a register that is clobbered by the vfork. */
3852 sparc_address_test (int arg)
3854 sparc_address_test (arg) int arg;
3872 pid_t parent = getpid ();
3875 sparc_address_test ();
3880 /* Here is another test for sparc vfork register problems.
3881 This test uses lots of local variables, at least
3882 as many local variables as main has allocated so far
3883 including compiler temporaries. 4 locals are enough for
3884 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3885 A buggy compiler should reuse the register of parent
3886 for one of the local variables, since it will think that
3887 parent can't possibly be used any more in this routine.
3888 Assigning to the local variable will thus munge parent
3889 in the parent process. */
3891 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3892 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3893 /* Convince the compiler that p..p7 are live; otherwise, it might
3894 use the same hardware register for all 8 local variables. */
3895 if (p != p1 || p != p2 || p != p3 || p != p4
3896 || p != p5 || p != p6 || p != p7)
3899 /* On some systems (e.g. IRIX 3.3),
3900 vfork doesn't separate parent from child file descriptors.
3901 If the child closes a descriptor before it execs or exits,
3902 this munges the parent's descriptor as well.
3903 Test for this by closing stdout in the child. */
3904 _exit(close(fileno(stdout)) != 0);
3909 while (wait(&status) != child)
3912 /* Was there some problem with vforking? */
3915 /* Did the child fail? (This shouldn't happen.) */
3918 /* Did the vfork/compiler bug occur? */
3919 || parent != getpid()
3921 /* Did the file descriptor bug occur? */
3922 || fstat(fileno(stdout), &st) != 0
3927 if { (eval echo configure
:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3929 ac_cv_func_vfork_works
=yes
3931 echo "configure: failed program was:" >&5
3932 cat conftest.
$ac_ext >&5
3934 ac_cv_func_vfork_works
=no
3941 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3942 if test $ac_cv_func_vfork_works = no
; then
3943 cat >> confdefs.h
<<\EOF
3949 for ac_func
in getpagesize
3951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3952 echo "configure:3953: checking for $ac_func" >&5
3953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 /* System header to define __stub macros and hopefully few prototypes,
3960 which can conflict with char $ac_func(); below. */
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3969 /* The GNU C library defines this for functions which it implements
3970 to always fail with ENOSYS. Some functions are actually named
3971 something starting with __ and the normal name is an alias. */
3972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3980 if { (eval echo configure
:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3982 eval "ac_cv_func_$ac_func=yes"
3984 echo "configure: failed program was:" >&5
3985 cat conftest.
$ac_ext >&5
3987 eval "ac_cv_func_$ac_func=no"
3992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3995 cat >> confdefs.h
<<EOF
3996 #define $ac_tr_func 1
4000 echo "$ac_t""no" 1>&6
4004 # The test program for the next two tests is the same except for one
4006 cat >ct-mmap.inc
<<'EOF'
4007 #include <sys/types.h>
4008 #include <sys/mman.h>
4014 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4015 # define MAP_ANONYMOUS MAP_ANON
4018 /* This mess was copied from the GNU getpagesize.h. */
4019 #ifndef HAVE_GETPAGESIZE
4020 # ifdef HAVE_UNISTD_H
4021 # include <unistd.h>
4024 /* Assume that all systems that can run configure have sys/param.h. */
4025 # ifndef HAVE_SYS_PARAM_H
4026 # define HAVE_SYS_PARAM_H 1
4029 # ifdef _SC_PAGESIZE
4030 # define getpagesize() sysconf(_SC_PAGESIZE)
4031 # else /* no _SC_PAGESIZE */
4032 # ifdef HAVE_SYS_PARAM_H
4033 # include <sys/param.h>
4034 # ifdef EXEC_PAGESIZE
4035 # define getpagesize() EXEC_PAGESIZE
4036 # else /* no EXEC_PAGESIZE */
4038 # define getpagesize() NBPG * CLSIZE
4041 # endif /* no CLSIZE */
4042 # else /* no NBPG */
4044 # define getpagesize() NBPC
4045 # else /* no NBPC */
4047 # define getpagesize() PAGESIZE
4048 # endif /* PAGESIZE */
4049 # endif /* no NBPC */
4050 # endif /* no NBPG */
4051 # endif /* no EXEC_PAGESIZE */
4052 # else /* no HAVE_SYS_PARAM_H */
4053 # define getpagesize() 8192 /* punt totally */
4054 # endif /* no HAVE_SYS_PARAM_H */
4055 # endif /* no _SC_PAGESIZE */
4057 #endif /* no HAVE_GETPAGESIZE */
4060 # define MAP_FAILED -1
4064 #define perror_exit(str, val) \
4065 do { perror(str); exit(val); } while (0)
4067 /* Some versions of cygwin mmap require that munmap is called with the
4068 same parameters as mmap. GCC expects that this is not the case.
4069 Test for various forms of this problem. Warning - icky signal games. */
4071 static sigset_t unblock_sigsegv;
4081 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4082 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4084 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4085 MAP_PRIVATE, devzero, 0);
4093 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4097 /* Basic functionality test. */
4101 char *x = anonmap (pg);
4102 if (x == (char *) MAP_FAILED)
4103 perror_exit("test 0 mmap", 2);
4107 if (munmap(x, pg) < 0)
4108 perror_exit("test 0 munmap", 3);
4111 /* 1. If we map a 2-page region and unmap its second page, the first page
4116 char *x = anonmap (pg * 2);
4117 if (x == (char *)MAP_FAILED)
4118 perror_exit ("test 1 mmap", 4);
4120 signal (SIGSEGV, sigsegv);
4122 perror_exit ("test 1 fault", 5);
4127 if (munmap (x + pg, pg) < 0)
4128 perror_exit ("test 1 munmap 1", 6);
4131 if (setjmp (r) == 0)
4134 perror_exit ("test 1 no fault", 7);
4136 if (munmap (x, pg) < 0)
4137 perror_exit ("test 1 munmap 2", 8);
4140 /* 2. If we map a 2-page region and unmap its first page, the second
4141 page must remain. */
4145 char *x = anonmap (pg * 2);
4146 if (x == (char *)MAP_FAILED)
4147 perror_exit ("test 2 mmap", 9);
4149 signal (SIGSEGV, sigsegv);
4151 perror_exit ("test 2 fault", 10);
4156 if (munmap (x, pg) < 0)
4157 perror_exit ("test 2 munmap 1", 11);
4161 if (setjmp (r) == 0)
4164 perror_exit ("test 2 no fault", 12);
4167 if (munmap (x+pg, pg) < 0)
4168 perror_exit ("test 2 munmap 2", 13);
4171 /* 3. If we map two adjacent 1-page regions and unmap them both with
4172 one munmap, both must go away.
4174 Getting two adjacent 1-page regions with two mmap calls is slightly
4175 tricky. All OS's tested skip over already-allocated blocks; therefore
4176 we have been careful to unmap all allocated regions in previous tests.
4177 HP/UX allocates pages backward in memory. No OS has yet been observed
4178 to be so perverse as to leave unmapped space between consecutive calls
4187 if (x == (char *)MAP_FAILED)
4188 perror_exit ("test 3 mmap 1", 14);
4190 if (y == (char *)MAP_FAILED)
4191 perror_exit ("test 3 mmap 2", 15);
4196 z = y, y = x, x = z;
4199 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4200 (unsigned long)x, (unsigned long)y);
4205 signal (SIGSEGV, sigsegv);
4207 perror_exit ("test 3 fault", 17);
4212 if (munmap (x, pg*2) < 0)
4213 perror_exit ("test 3 munmap", 18);
4215 if (setjmp (r) == 0)
4218 perror_exit ("test 3 no fault 1", 19);
4221 signal (SIGSEGV, sigsegv);
4222 if (setjmp (r) == 0)
4225 perror_exit ("test 3 no fault 2", 20);
4232 sigemptyset (&unblock_sigsegv);
4233 sigaddset (&unblock_sigsegv, SIGSEGV);
4234 pg = getpagesize ();
4235 #ifndef USE_MAP_ANON
4236 devzero = open ("/dev/zero", O_RDWR);
4238 perror_exit ("open /dev/zero", 1);
4250 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4251 echo "configure:4252: checking for working mmap from /dev/zero" >&5
4252 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 if test "$cross_compiling" = yes; then
4256 # If this is not cygwin, and /dev/zero is a character device, it's probably
4257 # safe to assume it works.
4259 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4260 * ) if test -c /dev
/zero
4261 then ac_cv_func_mmap_dev_zero
=yes
4262 else ac_cv_func_mmap_dev_zero
=no
4266 cat > conftest.
$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 #include "ct-mmap.inc"
4271 if { (eval echo configure
:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4273 ac_cv_func_mmap_dev_zero
=yes
4275 echo "configure: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4279 then ac_cv_func_mmap_dev_zero
=no
4280 else ac_cv_func_mmap_dev_zero
=buggy
4289 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4290 if test $ac_cv_func_mmap_dev_zero = yes; then
4291 cat >> confdefs.h
<<\EOF
4292 #define HAVE_MMAP_DEV_ZERO 1
4297 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4298 echo "configure:4299: checking for working mmap with MAP_ANON(YMOUS)" >&5
4299 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 if test "$cross_compiling" = yes; then
4303 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4304 # just because it's there. Some SCO Un*xen define it but don't implement it.
4305 ac_cv_func_mmap_anon
=no
4307 cat > conftest.
$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 #define USE_MAP_ANON
4311 #include "ct-mmap.inc"
4313 if { (eval echo configure
:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4315 ac_cv_func_mmap_anon
=yes
4317 echo "configure: failed program was:" >&5
4318 cat conftest.
$ac_ext >&5
4321 then ac_cv_func_mmap_anon
=no
4322 else ac_cv_func_mmap_anon
=buggy
4331 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4332 if test $ac_cv_func_mmap_anon = yes; then
4333 cat >> confdefs.h
<<\EOF
4334 #define HAVE_MMAP_ANON 1
4340 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4341 echo "configure:4342: checking for working mmap of a file" >&5
4342 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 # Create a file one thousand bytes long.
4346 for i
in 1 2 3 4 5 6 7 8 9 0
4347 do for j
in 1 2 3 4 5 6 7 8 9 0
4350 done > conftestdata$$
4352 if test "$cross_compiling" = yes; then
4353 ac_cv_func_mmap_file
=no
4355 cat > conftest.
$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4359 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4360 Richard Henderson and Alexandre Oliva.
4361 Check whether read-only mmap of a plain file works. */
4362 #include <sys/types.h>
4363 #include <sys/stat.h>
4365 #include <sys/mman.h>
4373 fd = open("conftestdata$$", O_RDONLY);
4377 if (fstat (fd, &st))
4380 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4381 if (x == (char *) -1)
4384 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4387 if (munmap(x, st.st_size) < 0)
4393 if { (eval echo configure
:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4395 ac_cv_func_mmap_file
=yes
4397 echo "configure: failed program was:" >&5
4398 cat conftest.
$ac_ext >&5
4400 ac_cv_func_mmap_file
=no
4407 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4408 if test $ac_cv_func_mmap_file = yes; then
4409 cat >> confdefs.h
<<\EOF
4410 #define HAVE_MMAP_FILE 1
4418 am_cv_lib_iconv_ldpath
=
4419 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4420 if test "${with_libiconv_prefix+set}" = set; then
4421 withval
="$with_libiconv_prefix"
4423 for dir
in `echo "$withval" | tr : ' '`; do
4424 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4425 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4431 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4432 echo "configure:4433: checking for iconv" >&5
4433 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4437 am_cv_func_iconv
="no, consider installing GNU libiconv"
4439 cat > conftest.
$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4445 iconv_t cd = iconv_open("","");
4446 iconv(cd,NULL,NULL,NULL,NULL);
4450 if { (eval echo configure
:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4452 am_cv_func_iconv
=yes
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4458 if test "$am_cv_func_iconv" != yes; then
4459 am_save_LIBS
="$LIBS"
4460 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4461 cat > conftest.
$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4467 iconv_t cd = iconv_open("","");
4468 iconv(cd,NULL,NULL,NULL,NULL);
4472 if { (eval echo configure
:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4475 am_cv_func_iconv
=yes
4477 echo "configure: failed program was:" >&5
4478 cat conftest.
$ac_ext >&5
4481 LIBS
="$am_save_LIBS"
4486 echo "$ac_t""$am_cv_func_iconv" 1>&6
4487 if test "$am_cv_func_iconv" = yes; then
4488 cat >> confdefs.h
<<\EOF
4489 #define HAVE_ICONV 1
4492 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4493 echo "configure:4494: checking for iconv declaration" >&5
4494 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.
$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4508 #if defined(__STDC__) || defined(__cplusplus)
4509 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4518 if { (eval echo configure
:4519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4520 am_cv_proto_iconv_arg1
=""
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 am_cv_proto_iconv_arg1
="const"
4528 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);"
4531 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4532 echo "$ac_t""${ac_t:-
4533 }$am_cv_proto_iconv" 1>&6
4534 cat >> confdefs.h
<<EOF
4535 #define ICONV_CONST $am_cv_proto_iconv_arg1
4540 if test "$am_cv_lib_iconv" = yes; then
4541 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4546 # We will need to find libiberty.h and ansidecl.h
4547 saved_CFLAGS
="$CFLAGS"
4548 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4549 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4550 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4551 fprintf_unlocked strstr errno \
4552 malloc realloc calloc free
basename getopt
clock
4554 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4555 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4556 echo "configure:4557: checking whether $ac_func is declared" >&5
4557 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 cat > conftest.
$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4564 #define $ac_tr_decl 1
4566 #include "ansidecl.h"
4571 char *(*pfn) = (char *(*)) $ac_func ;
4575 if { (eval echo configure
:4576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 eval "gcc_cv_have_decl_$ac_func=yes"
4579 echo "configure: failed program was:" >&5
4580 cat conftest.
$ac_ext >&5
4582 eval "gcc_cv_have_decl_$ac_func=no"
4587 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4589 #define $ac_tr_decl 1
4593 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4594 #define $ac_tr_decl 0
4600 if test x
= y
; then
4601 cat >> confdefs.h
<<\EOF
4602 #define HAVE_DECL_GETENV 1
4604 cat >> confdefs.h
<<\EOF
4605 #define HAVE_DECL_ATOL 1
4607 cat >> confdefs.h
<<\EOF
4608 #define HAVE_DECL_SBRK 1
4610 cat >> confdefs.h
<<\EOF
4611 #define HAVE_DECL_ABORT 1
4613 cat >> confdefs.h
<<\EOF
4614 #define HAVE_DECL_ATOF 1
4616 cat >> confdefs.h
<<\EOF
4617 #define HAVE_DECL_GETCWD 1
4619 cat >> confdefs.h
<<\EOF
4620 #define HAVE_DECL_GETWD 1
4623 cat >> confdefs.h
<<\EOF
4624 #define HAVE_DECL_STRSIGNAL 1
4626 cat >> confdefs.h
<<\EOF
4627 #define HAVE_DECL_PUTC_UNLOCKED 1
4629 cat >> confdefs.h
<<\EOF
4630 #define HAVE_DECL_FPUTS_UNLOCKED 1
4632 cat >> confdefs.h
<<\EOF
4633 #define HAVE_DECL_FWRITE_UNLOCKED 1
4636 cat >> confdefs.h
<<\EOF
4637 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_DECL_STRSTR 1
4642 cat >> confdefs.h
<<\EOF
4643 #define HAVE_DECL_ERRNO 1
4646 cat >> confdefs.h
<<\EOF
4647 #define HAVE_DECL_MALLOC 1
4649 cat >> confdefs.h
<<\EOF
4650 #define HAVE_DECL_REALLOC 1
4652 cat >> confdefs.h
<<\EOF
4653 #define HAVE_DECL_CALLOC 1
4655 cat >> confdefs.h
<<\EOF
4656 #define HAVE_DECL_FREE 1
4658 cat >> confdefs.h
<<\EOF
4659 #define HAVE_DECL_BASENAME 1
4661 cat >> confdefs.h
<<\EOF
4662 #define HAVE_DECL_GETOPT 1
4664 cat >> confdefs.h
<<\EOF
4665 #define HAVE_DECL_CLOCK 1
4670 for ac_func
in getrlimit setrlimit getrusage
4672 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4673 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4674 echo "configure:4675: checking whether $ac_func is declared" >&5
4675 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4682 #define $ac_tr_decl 1
4684 #include "ansidecl.h"
4686 #ifdef HAVE_SYS_RESOURCE_H
4687 #include <sys/resource.h>
4693 char *(*pfn) = (char *(*)) $ac_func ;
4697 if { (eval echo configure
:4698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4699 eval "gcc_cv_have_decl_$ac_func=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4704 eval "gcc_cv_have_decl_$ac_func=no"
4709 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4711 #define $ac_tr_decl 1
4715 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4716 #define $ac_tr_decl 0
4722 if test x
= y
; then
4723 cat >> confdefs.h
<<\EOF
4724 #define HAVE_DECL_GETRLIMIT 1
4726 cat >> confdefs.h
<<\EOF
4727 #define HAVE_DECL_SETRLIMIT 1
4729 cat >> confdefs.h
<<\EOF
4730 #define HAVE_DECL_GETRUSAGE 1
4735 for ac_func
in times
4737 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4738 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4739 echo "configure:4740: checking whether $ac_func is declared" >&5
4740 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.
$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4747 #define $ac_tr_decl 1
4749 #include "ansidecl.h"
4751 #ifdef HAVE_SYS_TIMES_H
4752 #include <sys/times.h>
4758 char *(*pfn) = (char *(*)) $ac_func ;
4762 if { (eval echo configure
:4763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4764 eval "gcc_cv_have_decl_$ac_func=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.
$ac_ext >&5
4769 eval "gcc_cv_have_decl_$ac_func=no"
4774 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4776 #define $ac_tr_decl 1
4780 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4781 #define $ac_tr_decl 0
4787 if test x
= y
; then
4788 cat >> confdefs.h
<<\EOF
4789 #define HAVE_DECL_TIMES 1
4794 # More time-related stuff.
4795 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4796 echo "configure:4797: checking for struct tms" >&5
4797 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4801 cat > conftest.
$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4805 #include "ansidecl.h"
4807 #ifdef HAVE_SYS_TIMES_H
4808 #include <sys/times.h>
4815 if { (eval echo configure
:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4817 ac_cv_struct_tms
=yes
4819 echo "configure: failed program was:" >&5
4820 cat conftest.
$ac_ext >&5
4827 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4828 if test $ac_cv_struct_tms = yes; then
4829 cat >> confdefs.h
<<\EOF
4830 #define HAVE_STRUCT_TMS 1
4835 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4836 # revisit after autoconf 2.50.
4837 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4838 echo "configure:4839: checking for clock_t" >&5
4839 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4843 cat > conftest.
$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4847 #include "ansidecl.h"
4854 if { (eval echo configure
:4855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4856 gcc_cv_type_clock_t
=yes
4858 echo "configure: failed program was:" >&5
4859 cat conftest.
$ac_ext >&5
4861 gcc_cv_type_clock_t
=no
4866 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4867 if test $gcc_cv_type_clock_t = yes; then
4868 cat >> confdefs.h
<<\EOF
4869 #define HAVE_CLOCK_T 1
4874 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4875 CFLAGS
="$saved_CFLAGS"
4877 # mkdir takes a single argument on some systems.
4878 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4879 echo "configure:4880: checking if mkdir takes one argument" >&5
4880 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 cat > conftest.
$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4887 #include <sys/types.h>
4888 #ifdef HAVE_SYS_STAT_H
4889 # include <sys/stat.h>
4891 #ifdef HAVE_UNISTD_H
4892 # include <unistd.h>
4894 #ifdef HAVE_DIRECT_H
4895 # include <direct.h>
4901 if { (eval echo configure
:4902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4903 gcc_cv_mkdir_takes_one_arg
=no
4905 echo "configure: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4908 gcc_cv_mkdir_takes_one_arg
=yes
4913 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4914 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4915 cat >> confdefs.h
<<\EOF
4916 #define MKDIR_TAKES_ONE_ARG 1
4930 build_install_headers_dir
=install-headers-tar
4935 host_truncate_target
=
4938 # Decode the host machine, then the target machine.
4939 # For the host machine, we save the xm_file variable as host_xm_file;
4940 # then we decode the target machine and forget everything else
4941 # that came from the host machine.
4942 for machine
in $build $host $target; do
4943 .
${srcdir}/config.gcc
4946 extra_objs
="${host_extra_objs} ${extra_objs}"
4948 # Default the target-machine variables that were not explicitly set.
4949 if test x
"$tm_file" = x
4950 then tm_file
=$cpu_type/$cpu_type.h
; fi
4952 if test x
"$extra_headers" = x
4953 then extra_headers
=; fi
4955 if test x
$md_file = x
4956 then md_file
=$cpu_type/$cpu_type.md
; fi
4958 if test x
$out_file = x
4959 then out_file
=$cpu_type/$cpu_type.c
; fi
4961 if test x
"$tmake_file" = x
4962 then tmake_file
=$cpu_type/t-
$cpu_type
4965 if test x
"$dwarf2" = xyes
4966 then tm_file
="$tm_file tm-dwarf2.h"
4969 if test x
$float_format = x
4970 then float_format
=i64
4973 if test $float_format = none
4974 then float_h_file
=Makefile.
in
4975 else float_h_file
=float-
$float_format.h
4978 # Handle cpp installation.
4979 if test x
$enable_cpp != xno
4981 tmake_file
="$tmake_file t-install-cpp"
4984 # Say what files are being used for the output code and MD file.
4985 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4986 echo "Using \`$srcdir/config/$md_file' as machine description file."
4988 # If any of the xm_file variables contain nonexistent files, warn
4989 # about them and drop them.
4992 for x
in $build_xm_file; do
4993 if test -f $srcdir/config
/$x
4995 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5001 for x
in $host_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 $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 f
in $tm_file; do
5022 if test $count = ax
; then
5023 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5025 echo "Using the following target machine macro files:"
5026 for f
in $tm_file; do
5027 echo " $srcdir/config/$f"
5032 for f
in $host_xm_file; do
5035 if test $count = a
; then
5037 elif test $count = ax
; then
5038 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5040 echo "Using the following host machine macro files:"
5041 for f
in $host_xm_file; do
5042 echo " $srcdir/config/$f"
5046 if test "$host_xm_file" != "$build_xm_file"; then
5048 for f
in $build_xm_file; do
5051 if test $count = a
; then
5053 elif test $count = ax
; then
5054 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5056 echo "Using the following build machine macro files:"
5057 for f
in $build_xm_file; do
5058 echo " $srcdir/config/$f"
5063 if test x
$thread_file = x
; then
5064 if test x
$target_thread_file != x
; then
5065 thread_file
=$target_thread_file
5067 thread_file
='single'
5071 # auto-host.h is the file containing items generated by autoconf and is
5072 # the first file included by config.h.
5073 # If host=build, it is correct to have hconfig include auto-host.h
5074 # as well. If host!=build, we are in error and need to do more
5075 # work to find out the build config parameters.
5076 if test x
$host = x
$build
5078 build_auto
=auto-host.h
5081 # We create a subdir, then run autoconf in the subdir.
5082 # To prevent recursion we set host and build for the new
5083 # invocation of configure to the build for this invocation
5090 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5091 *) realsrcdir
=..
/${srcdir};;
5093 saved_CFLAGS
="${CFLAGS}"
5094 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5095 ${realsrcdir}/configure \
5096 --target=$target --host=$build --build=$build
5097 CFLAGS
="${saved_CFLAGS}"
5099 # We just finished tests for the build machine, so rename
5100 # the file auto-build.h in the gcc directory.
5101 mv auto-host.h ..
/auto-build.h
5104 build_auto
=auto-build.h
5109 tm_file
="${tm_file} defaults.h"
5110 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5111 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5112 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5114 # Truncate the target if necessary
5115 if test x
$host_truncate_target != x
; then
5116 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5119 # Get the version trigger filename from the toplevel
5120 if test "${with_gcc_version_trigger+set}" = set; then
5121 gcc_version_trigger
=$with_gcc_version_trigger
5123 gcc_version_trigger
=${srcdir}/version.c
5125 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5126 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5128 # Compile in configure arguments.
5129 if test -f configargs.h
; then
5130 # Being re-configured.
5131 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5132 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5134 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5136 cat > configargs.h
<<EOF
5137 /* Generated automatically. */
5138 static const char configuration_arguments[] = "$gcc_config_arguments";
5139 static const char thread_model[] = "$thread_file";
5142 # Internationalization
5144 VERSION
="$gcc_version"
5148 # Enable NLS support by default
5149 # Check whether --enable-nls or --disable-nls was given.
5150 if test "${enable_nls+set}" = set; then
5151 enableval
="$enable_nls"
5158 # if cross compiling, disable NLS support.
5159 # It's not worth the trouble, at least for now.
5161 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5162 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5168 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5169 echo "configure:5170: checking for library containing strerror" >&5
5170 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 ac_func_search_save_LIBS
="$LIBS"
5174 ac_cv_search_strerror
="no"
5175 cat > conftest.
$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5187 if { (eval echo configure
:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5189 ac_cv_search_strerror
="none required"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.
$ac_ext >&5
5195 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5196 LIBS
="-l$i $ac_func_search_save_LIBS"
5197 cat > conftest.
$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5209 if { (eval echo configure
:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5211 ac_cv_search_strerror
="-l$i"
5214 echo "configure: failed program was:" >&5
5215 cat conftest.
$ac_ext >&5
5219 LIBS
="$ac_func_search_save_LIBS"
5222 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5223 if test "$ac_cv_search_strerror" != "no"; then
5224 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5231 echo $ac_n "checking for working const""... $ac_c" 1>&6
5232 echo "configure:5233: checking for working const" >&5
5233 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 cat > conftest.
$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5242 /* Ultrix mips cc rejects this. */
5243 typedef int charset[2]; const charset x;
5244 /* SunOS 4.1.1 cc rejects this. */
5245 char const *const *ccp;
5247 /* NEC SVR4.0.2 mips cc rejects this. */
5248 struct point {int x, y;};
5249 static struct point const zero = {0,0};
5250 /* AIX XL C 1.02.0.0 rejects this.
5251 It does not let you subtract one const X* pointer from another in an arm
5252 of an if-expression whose if-part is not a constant expression */
5253 const char *g = "string";
5254 ccp = &g + (g ? g-g : 0);
5255 /* HPUX 7.0 cc rejects these. */
5258 ccp = (char const *const *) p;
5259 { /* SCO 3.2v4 cc rejects this. */
5261 char const *s = 0 ? (char *) 0 : (char const *) 0;
5265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5267 const int *foo = &x[0];
5270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5271 typedef const int *iptr;
5275 { /* AIX XL C 1.02.0.0 rejects this saying
5276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5277 struct s { int j; const int *ap[3]; };
5278 struct s *b; b->j = 5;
5280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5286 if { (eval echo configure
:5287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5290 echo "configure: failed program was:" >&5
5291 cat conftest.
$ac_ext >&5
5298 echo "$ac_t""$ac_cv_c_const" 1>&6
5299 if test $ac_cv_c_const = no
; then
5300 cat >> confdefs.h
<<\EOF
5306 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5307 echo "configure:5308: checking for off_t" >&5
5308 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 cat > conftest.
$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 #include <sys/types.h>
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5323 ac_cv_type_off_t
=yes
5331 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5332 if test $ac_cv_type_off_t = no
; then
5333 cat >> confdefs.h
<<\EOF
5339 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5340 echo "configure:5341: checking for size_t" >&5
5341 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 cat > conftest.
$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 #include <sys/types.h>
5353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5354 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5356 ac_cv_type_size_t
=yes
5359 ac_cv_type_size_t
=no
5364 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5365 if test $ac_cv_type_size_t = no
; then
5366 cat >> confdefs.h
<<\EOF
5367 #define size_t unsigned
5372 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5373 # for constant arguments. Useless!
5374 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5375 echo "configure:5376: checking for working alloca.h" >&5
5376 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.
$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5384 char *p = alloca(2 * sizeof(int));
5387 if { (eval echo configure
:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5389 ac_cv_header_alloca_h
=yes
5391 echo "configure: failed program was:" >&5
5392 cat conftest.
$ac_ext >&5
5394 ac_cv_header_alloca_h
=no
5399 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5400 if test $ac_cv_header_alloca_h = yes; then
5401 cat >> confdefs.h
<<\EOF
5402 #define HAVE_ALLOCA_H 1
5407 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5408 echo "configure:5409: checking for alloca" >&5
5409 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5412 cat > conftest.
$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5417 # define alloca __builtin_alloca
5420 # include <malloc.h>
5421 # define alloca _alloca
5424 # include <alloca.h>
5429 # ifndef alloca /* predefined by HP cc +Olibcalls */
5438 char *p = (char *) alloca(1);
5441 if { (eval echo configure
:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5443 ac_cv_func_alloca_works
=yes
5445 echo "configure: failed program was:" >&5
5446 cat conftest.
$ac_ext >&5
5448 ac_cv_func_alloca_works
=no
5453 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5454 if test $ac_cv_func_alloca_works = yes; then
5455 cat >> confdefs.h
<<\EOF
5456 #define HAVE_ALLOCA 1
5461 if test $ac_cv_func_alloca_works = no
; then
5462 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5463 # that cause trouble. Some versions do not even contain alloca or
5464 # contain a buggy version. If you still want to use their alloca,
5465 # use ar to extract alloca.o from them instead of compiling alloca.c.
5466 ALLOCA
=alloca.
${ac_objext}
5467 cat >> confdefs.h
<<\EOF
5472 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5473 echo "configure:5474: checking whether alloca needs Cray hooks" >&5
5474 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 cat > conftest.
$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 #if defined(CRAY) && ! defined(CRAY2)
5487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488 egrep "webecray" >/dev
/null
2>&1; then
5499 echo "$ac_t""$ac_cv_os_cray" 1>&6
5500 if test $ac_cv_os_cray = yes; then
5501 for ac_func
in _getb67 GETB67 getb67
; do
5502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5503 echo "configure:5504: checking for $ac_func" >&5
5504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.
$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 /* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func(); below. */
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5520 /* The GNU C library defines this for functions which it implements
5521 to always fail with ENOSYS. Some functions are actually named
5522 something starting with __ and the normal name is an alias. */
5523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5531 if { (eval echo configure
:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5533 eval "ac_cv_func_$ac_func=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 eval "ac_cv_func_$ac_func=no"
5543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5545 cat >> confdefs.h
<<EOF
5546 #define CRAY_STACKSEG_END $ac_func
5551 echo "$ac_t""no" 1>&6
5557 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5558 echo "configure:5559: checking stack direction for C alloca" >&5
5559 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 if test "$cross_compiling" = yes; then
5563 ac_cv_c_stack_direction
=0
5565 cat > conftest.
$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 find_stack_direction ()
5570 static char *addr = 0;
5575 return find_stack_direction ();
5578 return (&dummy > addr) ? 1 : -1;
5582 exit (find_stack_direction() < 0);
5585 if { (eval echo configure
:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5587 ac_cv_c_stack_direction
=1
5589 echo "configure: failed program was:" >&5
5590 cat conftest.
$ac_ext >&5
5592 ac_cv_c_stack_direction
=-1
5599 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5600 cat >> confdefs.h
<<EOF
5601 #define STACK_DIRECTION $ac_cv_c_stack_direction
5607 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5608 echo "configure:5609: checking whether we are using the GNU C Library 2.1 or newer" >&5
5609 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.
$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5616 #include <features.h>
5617 #ifdef __GNU_LIBRARY__
5618 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5625 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5627 ac_cv_gnu_library_2_1
=yes
5630 ac_cv_gnu_library_2_1
=no
5638 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5640 GLIBC21
="$ac_cv_gnu_library_2_1"
5644 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5645 stdlib.h string.h unistd.h sys
/param.h
5647 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5649 echo "configure:5650: checking for $ac_hdr" >&5
5650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.
$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5658 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5659 { (eval echo configure
:5660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5660 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5661 if test -z "$ac_err"; then
5663 eval "ac_cv_header_$ac_safe=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.
$ac_ext >&5
5669 eval "ac_cv_header_$ac_safe=no"
5673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5674 echo "$ac_t""yes" 1>&6
5675 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5676 cat >> confdefs.h
<<EOF
5677 #define $ac_tr_hdr 1
5681 echo "$ac_t""no" 1>&6
5685 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5686 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5687 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5690 echo "configure:5691: checking for $ac_func" >&5
5691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5694 cat > conftest.
$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 /* System header to define __stub macros and hopefully few prototypes,
5698 which can conflict with char $ac_func(); below. */
5700 /* Override any gcc2 internal prototype to avoid an error. */
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5707 /* The GNU C library defines this for functions which it implements
5708 to always fail with ENOSYS. Some functions are actually named
5709 something starting with __ and the normal name is an alias. */
5710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5718 if { (eval echo configure
:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5720 eval "ac_cv_func_$ac_func=yes"
5722 echo "configure: failed program was:" >&5
5723 cat conftest.
$ac_ext >&5
5725 eval "ac_cv_func_$ac_func=no"
5730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5731 echo "$ac_t""yes" 1>&6
5732 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5733 cat >> confdefs.h
<<EOF
5734 #define $ac_tr_func 1
5738 echo "$ac_t""no" 1>&6
5745 am_cv_lib_iconv_ldpath
=
5746 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5747 if test "${with_libiconv_prefix+set}" = set; then
5748 withval
="$with_libiconv_prefix"
5750 for dir
in `echo "$withval" | tr : ' '`; do
5751 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5752 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5758 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5759 echo "configure:5760: checking for iconv" >&5
5760 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6
5764 am_cv_func_iconv
="no, consider installing GNU libiconv"
5766 cat > conftest.
$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5772 iconv_t cd = iconv_open("","");
5773 iconv(cd,NULL,NULL,NULL,NULL);
5777 if { (eval echo configure
:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5779 am_cv_func_iconv
=yes
5781 echo "configure: failed program was:" >&5
5782 cat conftest.
$ac_ext >&5
5785 if test "$am_cv_func_iconv" != yes; then
5786 am_save_LIBS
="$LIBS"
5787 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5788 cat > conftest.
$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5794 iconv_t cd = iconv_open("","");
5795 iconv(cd,NULL,NULL,NULL,NULL);
5799 if { (eval echo configure
:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5802 am_cv_func_iconv
=yes
5804 echo "configure: failed program was:" >&5
5805 cat conftest.
$ac_ext >&5
5808 LIBS
="$am_save_LIBS"
5813 echo "$ac_t""$am_cv_func_iconv" 1>&6
5814 if test "$am_cv_func_iconv" = yes; then
5815 cat >> confdefs.h
<<\EOF
5816 #define HAVE_ICONV 1
5819 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5820 echo "configure:5821: checking for iconv declaration" >&5
5821 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5825 cat > conftest.
$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5835 #if defined(__STDC__) || defined(__cplusplus)
5836 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5845 if { (eval echo configure
:5846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5847 am_cv_proto_iconv_arg1
=""
5849 echo "configure: failed program was:" >&5
5850 cat conftest.
$ac_ext >&5
5852 am_cv_proto_iconv_arg1
="const"
5855 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);"
5858 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5859 echo "$ac_t""${ac_t:-
5860 }$am_cv_proto_iconv" 1>&6
5861 cat >> confdefs.h
<<EOF
5862 #define ICONV_CONST $am_cv_proto_iconv_arg1
5867 if test "$am_cv_lib_iconv" = yes; then
5868 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5873 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5874 echo "configure:5875: checking for nl_langinfo and CODESET" >&5
5875 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.
$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 #include <langinfo.h>
5883 char* cs = nl_langinfo(CODESET);
5886 if { (eval echo configure
:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5888 am_cv_langinfo_codeset
=yes
5890 echo "configure: failed program was:" >&5
5891 cat conftest.
$ac_ext >&5
5893 am_cv_langinfo_codeset
=no
5899 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5900 if test $am_cv_langinfo_codeset = yes; then
5901 cat >> confdefs.h
<<\EOF
5902 #define HAVE_LANGINFO_CODESET 1
5907 if test $ac_cv_header_locale_h = yes; then
5908 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5909 echo "configure:5910: checking for LC_MESSAGES" >&5
5910 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5911 echo $ac_n "(cached) $ac_c" 1>&6
5913 cat > conftest.
$ac_ext <<EOF
5914 #line 5915 "configure"
5915 #include "confdefs.h"
5921 if { (eval echo configure
:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5923 am_cv_val_LC_MESSAGES
=yes
5925 echo "configure: failed program was:" >&5
5926 cat conftest.
$ac_ext >&5
5928 am_cv_val_LC_MESSAGES
=no
5933 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5934 if test $am_cv_val_LC_MESSAGES = yes; then
5935 cat >> confdefs.h
<<\EOF
5936 #define HAVE_LC_MESSAGES 1
5941 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5942 echo "configure:5943: checking whether NLS is requested" >&5
5943 # Check whether --enable-nls or --disable-nls was given.
5944 if test "${enable_nls+set}" = set; then
5945 enableval
="$enable_nls"
5951 echo "$ac_t""$USE_NLS" 1>&6
5954 BUILD_INCLUDED_LIBINTL
=no
5955 USE_INCLUDED_LIBINTL
=no
5959 if test "$USE_NLS" = "yes"; then
5960 cat >> confdefs.h
<<\EOF
5961 #define ENABLE_NLS 1
5964 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5965 echo "configure:5966: checking whether included gettext is requested" >&5
5966 # Check whether --with-included-gettext or --without-included-gettext was given.
5967 if test "${with_included_gettext+set}" = set; then
5968 withval
="$with_included_gettext"
5969 nls_cv_force_use_gnu_gettext
=$withval
5971 nls_cv_force_use_gnu_gettext
=no
5974 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5976 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5977 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5983 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5984 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5985 echo "configure:5986: checking for libintl.h" >&5
5986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5989 cat > conftest.
$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 #include <libintl.h>
5994 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5995 { (eval echo configure
:5996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5996 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5997 if test -z "$ac_err"; then
5999 eval "ac_cv_header_$ac_safe=yes"
6002 echo "configure: failed program was:" >&5
6003 cat conftest.
$ac_ext >&5
6005 eval "ac_cv_header_$ac_safe=no"
6009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6010 echo "$ac_t""yes" 1>&6
6011 cat >> confdefs.h
<<\EOF
6012 #define HAVE_LIBINTL_H 1
6015 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6016 echo "configure:6017: checking for GNU gettext in libc" >&5
6017 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6018 echo $ac_n "(cached) $ac_c" 1>&6
6020 cat > conftest.
$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6023 #include <libintl.h>
6024 extern int _nl_msg_cat_cntr;
6026 bindtextdomain ("", "");
6027 return (int) gettext ("") + _nl_msg_cat_cntr
6030 if { (eval echo configure
:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6032 gt_cv_func_gnugettext1_libc
=yes
6034 echo "configure: failed program was:" >&5
6035 cat conftest.
$ac_ext >&5
6037 gt_cv_func_gnugettext1_libc
=no
6042 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6044 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6045 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6046 echo "configure:6047: checking for GNU gettext in libintl" >&5
6047 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6048 echo $ac_n "(cached) $ac_c" 1>&6
6050 gt_save_LIBS
="$LIBS"
6051 LIBS
="$LIBS -lintl $LIBICONV"
6052 cat > conftest.
$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6055 #include <libintl.h>
6056 extern int _nl_msg_cat_cntr;
6058 bindtextdomain ("", "");
6059 return (int) gettext ("") + _nl_msg_cat_cntr
6062 if { (eval echo configure
:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6064 gt_cv_func_gnugettext1_libintl
=yes
6066 echo "configure: failed program was:" >&5
6067 cat conftest.
$ac_ext >&5
6069 gt_cv_func_gnugettext1_libintl
=no
6072 LIBS
="$gt_save_LIBS"
6075 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6078 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6079 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6080 && test "$PACKAGE" != gettext; }; then
6081 cat >> confdefs.h
<<\EOF
6082 #define HAVE_GETTEXT 1
6086 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6087 INTLLIBS
="-lintl $LIBICONV"
6090 gt_save_LIBS
="$LIBS"
6091 LIBS
="$LIBS $INTLLIBS"
6092 for ac_func
in dcgettext
6094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6095 echo "configure:6096: checking for $ac_func" >&5
6096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6097 echo $ac_n "(cached) $ac_c" 1>&6
6099 cat > conftest.
$ac_ext <<EOF
6100 #line 6101 "configure"
6101 #include "confdefs.h"
6102 /* System header to define __stub macros and hopefully few prototypes,
6103 which can conflict with char $ac_func(); below. */
6105 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6112 /* The GNU C library defines this for functions which it implements
6113 to always fail with ENOSYS. Some functions are actually named
6114 something starting with __ and the normal name is an alias. */
6115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6123 if { (eval echo configure
:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6125 eval "ac_cv_func_$ac_func=yes"
6127 echo "configure: failed program was:" >&5
6128 cat conftest.
$ac_ext >&5
6130 eval "ac_cv_func_$ac_func=no"
6135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6136 echo "$ac_t""yes" 1>&6
6137 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6138 cat >> confdefs.h
<<EOF
6139 #define $ac_tr_func 1
6143 echo "$ac_t""no" 1>&6
6147 LIBS
="$gt_save_LIBS"
6149 # Extract the first word of "msgfmt", so it can be a program name with args.
6150 set dummy msgfmt
; ac_word
=$2
6151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6152 echo "configure:6153: checking for $ac_word" >&5
6153 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6
6158 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6161 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6162 for ac_dir
in $PATH; do
6163 test -z "$ac_dir" && ac_dir
=.
6164 if test -f $ac_dir/$ac_word; then
6165 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6166 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6172 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6176 MSGFMT
="$ac_cv_path_MSGFMT"
6177 if test "$MSGFMT" != ":"; then
6178 echo "$ac_t""$MSGFMT" 1>&6
6180 echo "$ac_t""no" 1>&6
6183 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6184 set dummy gmsgfmt
; ac_word
=$2
6185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6186 echo "configure:6187: checking for $ac_word" >&5
6187 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6188 echo $ac_n "(cached) $ac_c" 1>&6
6192 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6195 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6198 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6200 for ac_dir
in $ac_dummy; do
6201 test -z "$ac_dir" && ac_dir
=.
6202 if test -f $ac_dir/$ac_word; then
6203 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6208 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6212 GMSGFMT
="$ac_cv_path_GMSGFMT"
6213 if test -n "$GMSGFMT"; then
6214 echo "$ac_t""$GMSGFMT" 1>&6
6216 echo "$ac_t""no" 1>&6
6220 # Extract the first word of "xgettext", so it can be a program name with args.
6221 set dummy xgettext
; ac_word
=$2
6222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_word" >&5
6224 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6229 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6233 for ac_dir
in $PATH; do
6234 test -z "$ac_dir" && ac_dir
=.
6235 if test -f $ac_dir/$ac_word; then
6236 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6237 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6243 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6247 XGETTEXT
="$ac_cv_path_XGETTEXT"
6248 if test "$XGETTEXT" != ":"; then
6249 echo "$ac_t""$XGETTEXT" 1>&6
6251 echo "$ac_t""no" 1>&6
6259 echo "$ac_t""no" 1>&6
6263 if test "$CATOBJEXT" = "NONE"; then
6264 nls_cv_use_gnu_gettext
=yes
6268 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6269 INTLOBJS
="\$(GETTOBJS)"
6270 # Extract the first word of "msgfmt", so it can be a program name with args.
6271 set dummy msgfmt
; ac_word
=$2
6272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6273 echo "configure:6274: checking for $ac_word" >&5
6274 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6279 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6282 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6283 for ac_dir
in $PATH; do
6284 test -z "$ac_dir" && ac_dir
=.
6285 if test -f $ac_dir/$ac_word; then
6286 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6287 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6293 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6297 MSGFMT
="$ac_cv_path_MSGFMT"
6298 if test "$MSGFMT" != ":"; then
6299 echo "$ac_t""$MSGFMT" 1>&6
6301 echo "$ac_t""no" 1>&6
6304 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6305 set dummy gmsgfmt
; ac_word
=$2
6306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6307 echo "configure:6308: checking for $ac_word" >&5
6308 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6313 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6316 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6319 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6321 for ac_dir
in $ac_dummy; do
6322 test -z "$ac_dir" && ac_dir
=.
6323 if test -f $ac_dir/$ac_word; then
6324 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6329 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6333 GMSGFMT
="$ac_cv_path_GMSGFMT"
6334 if test -n "$GMSGFMT"; then
6335 echo "$ac_t""$GMSGFMT" 1>&6
6337 echo "$ac_t""no" 1>&6
6340 # Extract the first word of "xgettext", so it can be a program name with args.
6341 set dummy xgettext
; ac_word
=$2
6342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6343 echo "configure:6344: checking for $ac_word" >&5
6344 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6345 echo $ac_n "(cached) $ac_c" 1>&6
6349 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6352 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6353 for ac_dir
in $PATH; do
6354 test -z "$ac_dir" && ac_dir
=.
6355 if test -f $ac_dir/$ac_word; then
6356 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6357 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6363 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6367 XGETTEXT
="$ac_cv_path_XGETTEXT"
6368 if test "$XGETTEXT" != ":"; then
6369 echo "$ac_t""$XGETTEXT" 1>&6
6371 echo "$ac_t""no" 1>&6
6375 BUILD_INCLUDED_LIBINTL
=yes
6376 USE_INCLUDED_LIBINTL
=yes
6378 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6379 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6380 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6383 if test "$GMSGFMT" != ":"; then
6384 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6387 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6392 if test "$XGETTEXT" != ":"; then
6393 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6396 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6406 if test "$PACKAGE" = gettext; then
6407 BUILD_INCLUDED_LIBINTL
=yes
6410 for ac_prog
in bison
6412 # Extract the first word of "$ac_prog", so it can be a program name with args.
6413 set dummy
$ac_prog; ac_word
=$2
6414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_word" >&5
6416 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 if test -n "$INTLBISON"; then
6420 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6422 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6424 for ac_dir
in $ac_dummy; do
6425 test -z "$ac_dir" && ac_dir
=.
6426 if test -f $ac_dir/$ac_word; then
6427 ac_cv_prog_INTLBISON
="$ac_prog"
6434 INTLBISON
="$ac_cv_prog_INTLBISON"
6435 if test -n "$INTLBISON"; then
6436 echo "$ac_t""$INTLBISON" 1>&6
6438 echo "$ac_t""no" 1>&6
6441 test -n "$INTLBISON" && break
6444 if test -z "$INTLBISON"; then
6447 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6448 echo "configure:6449: checking version of bison" >&5
6449 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6450 case $ac_prog_version in
6451 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6452 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6453 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6454 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6456 echo "$ac_t""$ac_prog_version" 1>&6
6458 if test $ac_verc_fail = yes; then
6471 if test $USE_INCLUDED_LIBINTL = yes; then
6472 cat >> confdefs.h
<<\EOF
6473 #define USE_INCLUDED_LIBINTL 1
6479 nls_cv_header_libgt
=
6491 if test "x$CATOBJEXT" != x
; then
6492 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6493 echo "configure:6494: checking for catalogs to be installed" >&5
6494 # Look for .po and .gmo files in the source directory.
6497 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6498 # If there aren't any .gmo files the shell will give us the
6499 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6501 case "$cat" in *\
**)
6504 # The quadruple backslash is collapsed to a double backslash
6505 # by the backticks, then collapsed again by the double quotes,
6506 # leaving us with one backslash in the sed expression (right
6507 # before the dot that mustn't act as a wildcard). The dot to
6508 # be escaped in the second expression is hiding inside CATOBJEXT.
6509 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6510 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6511 # The user is allowed to set LINGUAS to a list of languages to
6512 # install catalogs for. If it's empty that means "all of them."
6513 if test "x$LINGUAS" = x
; then
6514 CATALOGS
="$CATALOGS $cat"
6515 XLINGUAS
="$XLINGUAS $lang"
6517 case "$LINGUAS" in *$lang*)
6518 CATALOGS
="$CATALOGS $cat"
6519 XLINGUAS
="$XLINGUAS $lang"
6525 echo "$ac_t""$LINGUAS" 1>&6
6529 if test -n "$ac_aux_dir"; then
6530 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6532 if test -z "$MKINSTALLDIRS"; then
6533 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6537 INTL_LIBTOOL_SUFFIX_PREFIX
=
6541 # Windows32 Registry support for specifying GCC installation paths.
6542 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6543 if test "${enable_win32_registry+set}" = set; then
6544 enableval
="$enable_win32_registry"
6549 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6550 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6551 echo "configure:6552: checking whether windows registry support is requested" >&5
6552 if test "x$enable_win32_registry" != xno
; then
6553 cat >> confdefs.h
<<\EOF
6554 #define ENABLE_WIN32_REGISTRY 1
6557 echo "$ac_t""yes" 1>&6
6559 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6560 echo "configure:6561: checking for library containing RegOpenKeyExA" >&5
6561 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6564 ac_func_search_save_LIBS
="$LIBS"
6565 ac_cv_search_RegOpenKeyExA
="no"
6566 cat > conftest.
$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* Override any gcc2 internal prototype to avoid an error. */
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6572 char RegOpenKeyExA();
6578 if { (eval echo configure
:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6580 ac_cv_search_RegOpenKeyExA
="none required"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.
$ac_ext >&5
6586 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6587 LIBS
="-l$i $ac_func_search_save_LIBS"
6588 cat > conftest.
$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 /* Override any gcc2 internal prototype to avoid an error. */
6592 /* We use char because int might match the return type of a gcc2
6593 builtin and then its argument prototype would still apply. */
6594 char RegOpenKeyExA();
6600 if { (eval echo configure
:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6602 ac_cv_search_RegOpenKeyExA
="-l$i"
6605 echo "configure: failed program was:" >&5
6606 cat conftest.
$ac_ext >&5
6610 LIBS
="$ac_func_search_save_LIBS"
6613 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6614 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6615 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6621 echo "$ac_t""no" 1>&6
6624 # Check if user specified a different registry key.
6625 case "x${enable_win32_registry}" in
6628 gcc_cv_win32_registry_key
="$VERSION"
6631 # no registry lookup.
6632 gcc_cv_win32_registry_key
=''
6635 # user-specified key.
6636 gcc_cv_win32_registry_key
="$enable_win32_registry"
6640 if test "x$enable_win32_registry" != xno
; then
6641 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6642 echo "configure:6643: checking registry key on windows hosts" >&5
6643 cat >> confdefs.h
<<EOF
6644 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6647 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6652 # Get an absolute path to the GCC top-level source directory
6658 # Conditionalize the makefile for this host machine.
6659 # Make-host contains the concatenation of all host makefile fragments
6660 # [there can be more than one]. This file is built by configure.frag.
6661 host_overrides
=Make-host
6662 dep_host_xmake_file
=
6663 for f
in ..
${host_xmake_file}
6665 if test -f ${srcdir}/config
/$f
6667 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6671 # Conditionalize the makefile for this target machine.
6672 # Make-target contains the concatenation of all host makefile fragments
6673 # [there can be more than one]. This file is built by configure.frag.
6674 target_overrides
=Make-target
6676 for f
in ..
${tmake_file}
6678 if test -f ${srcdir}/config
/$f
6680 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6684 # If the host doesn't support symlinks, modify CC in
6685 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6686 # Otherwise, we can use "CC=$(CC)".
6688 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6690 cc_set_by_configure
="\$(CC)"
6691 quoted_cc_set_by_configure
="\$(CC)"
6692 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6693 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6696 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6698 symbolic_link
="cp -p"
6702 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6703 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6704 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6705 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6709 out_object_file
=`basename $out_file .c`.o
6712 for f
in $tm_file; do
6715 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6717 tm_file_list
="${tm_file_list} $f" ;;
6718 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6723 for f
in $tm_p_file; do
6724 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6728 for f
in $host_xm_file; do
6731 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6732 auto-host.h | defaults.h
)
6733 host_xm_file_list
="${host_xm_file_list} $f" ;;
6734 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6739 for f
in $build_xm_file; do
6742 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6743 auto-build.h | auto-host.h | defaults.h
)
6744 build_xm_file_list
="${build_xm_file_list} $f" ;;
6745 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6749 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6750 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6753 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6754 if test x
$host != x
$target
6756 CROSS
="-DCROSS_COMPILE"
6758 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6761 # If this is a cross-compiler that does not
6762 # have its own set of headers then define
6765 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6766 # This prevents libgcc2 from containing any code which requires libc
6769 if test x
$host != x
$target && test x
$with_headers = x
; then
6770 inhibit_libc
=-Dinhibit_libc
6772 if test x
$with_newlib = xyes
; then
6773 inhibit_libc
=-Dinhibit_libc
6778 # When building gcc with a cross-compiler, we need to adjust things so
6779 # that the generator programs are still built with the native compiler.
6780 # Also, we cannot run fixincludes or fix-header.
6781 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6784 # These are the normal (build=host) settings:
6786 HOST_PREFIX_1
=ignore-
6788 HOST_CFLAGS
='$(ALL_CFLAGS)'
6790 STMP_FIXINC
=stmp-fixinc
6791 STMP_FIXPROTO
=stmp-fixproto
6793 # And these apply if build != host.
6794 if test x
$build != x
$host
6797 HOST_PREFIX_1
=build-
6798 HOST_CC
='$(CC_FOR_BUILD)'
6799 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6805 # Expand extra_headers to include complete path.
6806 # This substitutes for lots of t-* files.
6808 if test "x$extra_headers" = x
6811 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6812 for file in $extra_headers;
6814 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6818 if test x
$use_collect2 = xno
; then
6822 # Add a definition of USE_COLLECT2 if system wants one.
6823 if test x
$use_collect2 != x
6825 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6826 xm_defines
="${xm_defines} USE_COLLECT2"
6829 # If we have gas in the build tree, make a link to it.
6830 if test -f ..
/gas
/Makefile
; then
6831 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6834 # If we have nm and objdump in the build tree, make a link to them.
6835 if test -f ..
/binutils
/Makefile
; then
6836 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6837 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6840 # If we have ld in the build tree, make a link to it.
6841 if test -f ..
/ld
/Makefile
; then
6842 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6845 # Figure out what assembler we will be using.
6846 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6847 echo "configure:6848: checking what assembler to use" >&5
6849 gcc_cv_gas_major_version
=
6850 gcc_cv_gas_minor_version
=
6851 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6852 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6853 if test -x "$DEFAULT_ASSEMBLER"; then
6854 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6855 elif test -x "$AS"; then
6857 elif test -x as
$host_exeext; then
6858 # Build using assembler in the current directory.
6859 gcc_cv_as
=.
/as
$host_exeext
6860 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6861 # Single tree build which includes gas.
6862 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
6864 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6865 if test x
$gcc_cv_gas_version != x
; then
6869 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6870 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6873 if test "x$gcc_cv_as" = x
-a x
$host = x
$target; then
6875 # Search the same directories that the installed compiler will
6876 # search. Else we may find the wrong assembler and lose. If we
6877 # do not find a suitable assembler binary, then try the user's
6880 # Also note we have to check MD_EXEC_PREFIX before checking the
6881 # user's path. Unfortunately, there is no good way to get at the
6882 # value of MD_EXEC_PREFIX here. So we do a brute force search
6883 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6884 # to be fixed as part of the make/configure rewrite too.
6886 if test "x$exec_prefix" = xNONE
; then
6887 if test "x$prefix" = xNONE
; then
6888 test_prefix
=/usr
/local
6893 test_prefix
=$exec_prefix
6896 # If the loop below does not find an assembler, then use whatever
6897 # one we can find in the users's path.
6899 gcc_cv_as
=as
$host_exeext
6901 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6902 $test_prefix/lib/gcc-lib/$target \
6903 /usr/lib/gcc/$target/$gcc_version \
6904 /usr/lib/gcc/$target \
6905 $test_prefix/$target/bin/$target/$gcc_version \
6906 $test_prefix/$target/bin \
6911 /bsd43/usr/lib/cmplrs/cc \
6912 /usr/cross64/usr/bin \
6913 /usr/lib/cmplrs/cc \
6914 /sysv/usr/lib/cmplrs/cc \
6915 /svr4/usr/lib/cmplrs/cc \
6918 for dir
in $test_dirs; do
6919 if test -f $dir/as
$host_exeext; then
6920 gcc_cv_as
=$dir/as
$host_exeext
6925 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6926 echo "$ac_t"""newly built gas
"" 1>&6
6928 echo "$ac_t""$gcc_cv_as" 1>&6
6931 # Figure out what linker we will be using.
6932 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6933 echo "configure:6934: checking what linker to use" >&5
6935 gcc_cv_gld_major_version
=
6936 gcc_cv_gld_minor_version
=
6937 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6938 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6939 if test -x "$DEFAULT_LINKER"; then
6940 gcc_cv_ld
="$DEFAULT_LINKER"
6941 elif test -x "$LD"; then
6943 elif test -x ld
$host_exeext; then
6944 # Build using linker in the current directory.
6945 gcc_cv_ld
=.
/ld
$host_exeext
6946 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
6947 # Single tree build which includes ld.
6948 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
6950 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6951 if test x
$gcc_cv_gld_version != x
; then
6955 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6956 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6959 if test "x$gcc_cv_ld" = x
-a x
$host = x
$target; then
6961 # Search the same directories that the installed compiler will
6962 # search. Else we may find the wrong linker and lose. If we
6963 # do not find a suitable linker binary, then try the user's
6966 # Also note we have to check MD_EXEC_PREFIX before checking the
6967 # user's path. Unfortunately, there is no good way to get at the
6968 # value of MD_EXEC_PREFIX here. So we do a brute force search
6969 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6970 # to be fixed as part of the make/configure rewrite too.
6972 if test "x$exec_prefix" = xNONE
; then
6973 if test "x$prefix" = xNONE
; then
6974 test_prefix
=/usr
/local
6979 test_prefix
=$exec_prefix
6982 # If the loop below does not find an linker, then use whatever
6983 # one we can find in the users's path.
6985 gcc_cv_ld
=ld
$host_exeext
6987 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6988 $test_prefix/lib/gcc-lib/$target \
6989 /usr/lib/gcc/$target/$gcc_version \
6990 /usr/lib/gcc/$target \
6991 $test_prefix/$target/bin/$target/$gcc_version \
6992 $test_prefix/$target/bin \
6997 /bsd43/usr/lib/cmplrs/cc \
6998 /usr/cross64/usr/bin \
6999 /usr/lib/cmplrs/cc \
7000 /sysv/usr/lib/cmplrs/cc \
7001 /svr4/usr/lib/cmplrs/cc \
7004 for dir
in $test_dirs; do
7005 if test -f $dir/ld
$host_exeext; then
7006 gcc_cv_ld
=$dir/ld
$host_exeext
7011 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7012 echo "$ac_t"""newly built ld
"" 1>&6
7014 echo "$ac_t""$gcc_cv_ld" 1>&6
7017 # Figure out what nm we will be using.
7018 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7019 echo "configure:7020: checking what nm to use" >&5
7020 if test -x nm
$host_exeext; then
7021 gcc_cv_nm
=.
/nm
$host_exeext
7022 elif test x
$host = x
$target; then
7024 gcc_cv_nm
=nm
$host_exeext
7026 echo "$ac_t""$gcc_cv_nm" 1>&6
7028 # Figure out what objdump we will be using.
7029 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7030 echo "configure:7031: checking what objdump to use" >&5
7031 if test -x objdump
$host_exeext; then
7032 gcc_cv_objdump
=.
/objdump
$host_exeext
7033 elif test x
$host = x
$target; then
7035 gcc_cv_objdump
=objdump
$host_exeext
7037 echo "$ac_t""$gcc_cv_objdump" 1>&6
7039 # Figure out what assembler alignment features are present.
7040 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7041 echo "configure:7042: checking assembler alignment features" >&5
7042 gcc_cv_as_alignment_features
=none
7043 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7044 # Gas version 2.6 and later support for .balign and .p2align.
7045 # bytes to skip when using .p2align.
7046 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
7047 gcc_cv_as_alignment_features
=".balign and .p2align"
7048 cat >> confdefs.h
<<\EOF
7049 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7053 # Gas version 2.8 and later support specifying the maximum
7054 # bytes to skip when using .p2align.
7055 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
7056 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7057 cat >> confdefs.h
<<\EOF
7058 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7062 elif test x
$gcc_cv_as != x
; then
7063 # Check if we have .balign and .p2align
7064 echo ".balign 4" > conftest.s
7065 echo ".p2align 2" >> conftest.s
7066 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7067 gcc_cv_as_alignment_features
=".balign and .p2align"
7068 cat >> confdefs.h
<<\EOF
7069 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7073 rm -f conftest.s conftest.o
7074 # Check if specifying the maximum bytes to skip when
7075 # using .p2align is supported.
7076 echo ".p2align 4,,7" > conftest.s
7077 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7078 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7079 cat >> confdefs.h
<<\EOF
7080 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7084 rm -f conftest.s conftest.o
7086 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7088 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7089 echo "configure:7090: checking assembler subsection support" >&5
7090 gcc_cv_as_subsections
=no
7091 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7092 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
7093 gcc_cv_as_subsections
="working .subsection -1"
7095 elif test x
$gcc_cv_as != x
; then
7096 # Check if we have .subsection
7097 echo ".subsection 1" > conftest.s
7098 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7099 gcc_cv_as_subsections
=".subsection"
7100 if test x
$gcc_cv_nm != x
; then
7101 cat > conftest.s
<<EOF
7102 conftest_label1: .word 0
7104 conftest_label2: .word 0
7107 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7108 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7109 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7110 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7113 gcc_cv_as_subsections
="working .subsection -1"
7118 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7120 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7121 cat >> confdefs.h
<<\EOF
7122 #define HAVE_GAS_SUBSECTION_ORDERING 1
7126 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7128 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7129 echo "configure:7130: checking assembler weak support" >&5
7131 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7132 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
7133 gcc_cv_as_weak
="yes"
7135 elif test x
$gcc_cv_as != x
; then
7136 # Check if we have .weak
7137 echo " .weak foobar" > conftest.s
7138 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7139 gcc_cv_as_weak
="yes"
7141 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7143 if test x
"$gcc_cv_as_weak" = xyes
; then
7144 cat >> confdefs.h
<<\EOF
7145 #define HAVE_GAS_WEAK 1
7149 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7151 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7152 echo "configure:7153: checking assembler hidden support" >&5
7154 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7155 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7156 gcc_cv_as_hidden
="yes"
7158 elif test x
$gcc_cv_as != x
; then
7159 # Check if we have .hidden
7160 echo " .hidden foobar" > conftest.s
7161 echo "foobar:" >> conftest.s
7162 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7163 gcc_cv_as_hidden
="yes"
7165 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7167 if test x
"$gcc_cv_as_hidden" = xyes
; then
7168 cat >> confdefs.h
<<\EOF
7169 #define HAVE_GAS_HIDDEN 1
7173 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7174 libgcc_visibility
=$gcc_cv_as_hidden
7177 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7178 echo "configure:7179: checking assembler leb128 support" >&5
7180 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7181 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
7182 gcc_cv_as_leb128
="yes"
7184 elif test x
$gcc_cv_as != x
; then
7185 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7186 cat > conftest.s
<<EOF
7194 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7195 gcc_cv_as_leb128
="yes"
7197 # GAS versions before 2.11 do not support uleb128,
7198 # despite appearing to.
7199 # ??? There exists an elf-specific test that will crash
7200 # the assembler. Perhaps it's better to figure out whether
7201 # arbitrary sections are supported and try the test.
7202 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7203 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7204 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7205 as_major
=`echo $as_ver | sed 's/\..*//'`
7206 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7207 if test $as_major -eq 2 -a $as_minor -lt 11; then
7208 gcc_cv_as_leb128
="no"
7212 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7214 if test x
"$gcc_cv_as_leb128" = xyes
; then
7215 cat >> confdefs.h
<<\EOF
7216 #define HAVE_AS_LEB128 1
7220 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7222 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7223 echo "configure:7224: checking assembler eh_frame optimization" >&5
7224 gcc_cv_as_eh_frame
=no
7225 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7226 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
7227 gcc_cv_as_eh_frame
="yes"
7229 elif test x
$gcc_cv_as != x
; then
7230 # Check if this is GAS.
7231 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7232 rm -f a.out
2> /dev
/null
7233 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7234 # Versions up to and including 2.11.0 may mis-optimize
7235 # .eh_frame data. Try something.
7236 cat > conftest.s
<<EOF
7243 .section .eh_frame,"aw",@progbits
7245 .4byte .LECIE1-.LSCIE1
7259 .4byte .LEFDE1-.LASFDE1
7261 .4byte .LASFDE1-__FRAME_BEGIN__
7270 cat > conftest.lit
<<EOF
7271 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7272 0010 01000000 12000000 18000000 00000000 ................
7273 0020 08000000 04080000 0044 .........D
7275 cat > conftest.big
<<EOF
7276 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7277 0010 00000001 00000012 00000018 00000000 ................
7278 0020 00000008 04000000 0844 .........D
7280 # If the assembler didn't choke, and we can objdump,
7281 # and we got the correct data, then succeed.
7282 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7283 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7284 |
tail -3 > conftest.got \
7285 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7286 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7288 gcc_cv_as_eh_frame
="yes"
7290 gcc_cv_as_eh_frame
="bad"
7291 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7292 cat >> confdefs.h
<<\EOF
7293 #define USE_AS_TRADITIONAL_FORMAT 1
7301 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7303 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7304 echo "configure:7305: checking assembler section merging support" >&5
7305 gcc_cv_as_shf_merge
=no
7306 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7307 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
7308 gcc_cv_as_shf_merge
=yes
7310 elif test x
$gcc_cv_as != x
; then
7311 # Check if we support SHF_MERGE sections
7312 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7313 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7314 gcc_cv_as_shf_merge
=yes
7316 rm -f conftest.s conftest.o
7318 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7319 cat >> confdefs.h
<<\EOF
7320 #define HAVE_GAS_SHF_MERGE 1
7324 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7327 # All TARGET_ABI_OSF targets.
7328 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7329 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7330 echo "configure:7331: checking assembler supports explicit relocations" >&5
7331 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7335 gcc_cv_as_explicit_relocs
=unknown
7336 if test x
$gcc_cv_gas_major_version != x \
7337 -a x
$gcc_cv_gas_minor_version != x
7339 if test "$gcc_cv_gas_major_version" -eq 2 \
7340 -a "$gcc_cv_gas_minor_version" -ge 12 \
7341 -o "$gcc_cv_gas_major_version" -gt 2; then
7342 gcc_cv_as_explicit_relocs
=yes
7344 elif test x
$gcc_cv_as != x
; then
7345 cat > conftest.s
<< 'EOF'
7348 extbl
$3, $2, $3 !lituse_bytoff
!1
7349 ldq
$2, a
($29) !literal
!1
7350 ldq
$4, b
($29) !literal
!2
7351 ldq_u
$3, 0($2) !lituse_base
!1
7352 ldq
$27, f
($29) !literal
!5
7353 jsr
$26, ($27), f
!lituse_jsr
!5
7354 ldah
$29, 0($26) !gpdisp
!3
7355 lda
$0, c
($29) !gprel
7356 ldah
$1, d
($29) !gprelhigh
7357 lda
$1, d
($1) !gprellow
7358 lda
$29, 0($29) !gpdisp
!3
7360 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7361 gcc_cv_as_explicit_relocs
=yes
7363 gcc_cv_as_explicit_relocs
=no
7365 rm -f conftest.s conftest.o
7370 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7371 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7372 cat >> confdefs.h
<<\EOF
7373 #define HAVE_AS_EXPLICIT_RELOCS 1
7379 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7380 echo "configure:7381: checking assembler .register pseudo-op support" >&5
7381 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7385 gcc_cv_as_register_pseudo_op
=unknown
7386 if test x
$gcc_cv_as != x
; then
7387 # Check if we have .register
7388 echo ".register %g2, #scratch" > conftest.s
7389 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7390 gcc_cv_as_register_pseudo_op
=yes
7392 gcc_cv_as_register_pseudo_op
=no
7394 rm -f conftest.s conftest.o
7399 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7400 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7401 cat >> confdefs.h
<<\EOF
7402 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7407 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7408 echo "configure:7409: checking assembler supports -relax" >&5
7409 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7413 gcc_cv_as_relax_opt
=unknown
7414 if test x
$gcc_cv_as != x
; then
7415 # Check if gas supports -relax
7416 echo ".text" > conftest.s
7417 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7418 gcc_cv_as_relax_opt
=yes
7420 gcc_cv_as_relax_opt
=no
7422 rm -f conftest.s conftest.o
7427 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7428 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7429 cat >> confdefs.h
<<\EOF
7430 #define HAVE_AS_RELAX_OPTION 1
7435 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7436 echo "configure:7437: checking assembler and linker support unaligned pc related relocs" >&5
7437 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7441 gcc_cv_as_sparc_ua_pcrel
=unknown
7442 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7443 gcc_cv_as_sparc_ua_pcrel
=no
7444 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7445 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1; then
7446 if $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7447 gcc_cv_as_sparc_ua_pcrel
=yes
7450 rm -f conftest.s conftest.o conftest
7455 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7456 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7457 cat >> confdefs.h
<<\EOF
7458 #define HAVE_AS_SPARC_UA_PCREL 1
7465 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
7466 echo "configure:7467: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
7467 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7471 if test -n "$gcc_cv_as"; then
7472 echo ".xword foo" > conftest.s
7473 gcc_cv_as_flags64
=no
7474 for flag
in "-xarch=v9" "-64 -Av9"; do
7475 if $gcc_cv_as $flag -o conftest.o conftest.s \
7476 > /dev
/null
2>&1; then
7477 gcc_cv_as_flags64
=$flag
7481 rm -f conftest.s conftest.o
7483 if test "$gas" = yes; then
7484 gcc_cv_as_flags64
="-64 -Av9"
7486 gcc_cv_as_flags64
="-xarch=v9"
7492 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
7493 if test "x$gcc_cv_as_flags64" = xno
; then
7495 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7496 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7499 cat >> confdefs.h
<<EOF
7500 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
7505 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
7509 if test "x$gcc_cv_as_flags64" != xno
; then
7510 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7511 echo "configure:7512: checking for assembler offsetable %lo() support" >&5
7512 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7516 gcc_cv_as_offsetable_lo10
=unknown
7517 if test "x$gcc_cv_as" != x
; then
7518 # Check if assembler has offsetable %lo()
7519 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7520 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7521 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7523 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7524 > /dev
/null
2>&1; then
7525 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7526 gcc_cv_as_offsetable_lo10
=no
7528 gcc_cv_as_offsetable_lo10
=yes
7531 gcc_cv_as_offsetable_lo10
=no
7533 rm -f conftest.s conftest.o conftest1.s conftest1.o
7538 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7539 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7540 cat >> confdefs.h
<<\EOF
7541 #define HAVE_AS_OFFSETABLE_LO10 1
7549 i
[34567]86-*-* | x86_64-
*-*)
7550 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7551 echo "configure:7552: checking assembler instructions" >&5
7552 gcc_cv_as_instructions
=
7553 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7554 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
7555 gcc_cv_as_instructions
="filds fists"
7557 elif test x
$gcc_cv_as != x
; then
7558 set "filds fists" "filds mem; fists mem"
7561 echo "$2" > conftest.s
7562 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7563 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7567 rm -f conftest.s conftest.o
7569 if test x
"$gcc_cv_as_instructions" != x
; then
7570 cat >> confdefs.h
<<EOF
7571 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7575 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7577 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7578 echo "configure:7579: checking assembler GOTOFF in data directives" >&5
7579 gcc_cv_as_gotoff_in_data
=no
7580 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7582 if test "$gcc_cv_gas_major_version" -eq 2 \
7583 -a "$gcc_cv_gas_minor_version" -ge 11 \
7584 -o "$gcc_cv_gas_major_version" -gt 2; then
7585 gcc_cv_as_gotoff_in_data
=yes
7587 elif test x
$gcc_cv_as != x
; then
7588 cat > conftest.s
<<EOF
7595 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7596 gcc_cv_as_gotoff_in_data
=yes
7599 cat >> confdefs.h
<<EOF
7600 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7603 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7607 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7608 echo "configure:7609: checking assembler dwarf2 debug_line support" >&5
7609 gcc_cv_as_dwarf2_debug_line
=no
7610 # ??? Not all targets support dwarf2 debug_line, even within a version
7611 # of gas. Moreover, we need to emit a valid instruction to trigger any
7612 # info to the output file. So, as supported targets are added to gas 2.11,
7613 # add some instruction here to (also) show we expect this might work.
7614 # ??? Once 2.11 is released, probably need to add first known working
7615 # version to the per-target configury.
7617 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-*)
7624 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7626 if test "$gcc_cv_gas_major_version" -eq 2 \
7627 -a "$gcc_cv_gas_minor_version" -ge 11 \
7628 -o "$gcc_cv_gas_major_version" -gt 2 \
7629 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7630 && test x
"$insn" != x
; then
7631 gcc_cv_as_dwarf2_debug_line
="yes"
7633 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7634 echo ' .file 1 "conftest.s"' > conftest.s
7635 echo ' .loc 1 3 0' >> conftest.s
7636 echo " $insn" >> conftest.s
7637 # ??? This fails with non-gnu grep.
7638 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7639 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7640 # The .debug_line file table must be in the exact order that
7641 # we specified the files, since these indices are also used
7642 # by DW_AT_decl_file. Approximate this test by testing if
7643 # the assembler bitches if the same index is assigned twice.
7644 echo ' .file 1 "foo.s"' > conftest.s
7645 echo ' .file 1 "bar.s"' >> conftest.s
7646 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7648 gcc_cv_as_dwarf2_debug_line
="no"
7650 gcc_cv_as_dwarf2_debug_line
="yes"
7653 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7655 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7656 cat >> confdefs.h
<<\EOF
7657 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7661 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7663 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7664 echo "configure:7665: checking assembler --gdwarf2 support" >&5
7665 gcc_cv_as_gdwarf2_flag
=no
7666 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7668 if test "$gcc_cv_gas_major_version" -eq 2 \
7669 -a "$gcc_cv_gas_minor_version" -ge 11 \
7670 -o "$gcc_cv_gas_major_version" -gt 2 \
7671 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7672 && test x
"$insn" != x
; then
7673 gcc_cv_as_gdwarf2_debug_flag
="yes"
7675 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7676 echo '' > conftest.s
7677 # ??? This fails with non-gnu grep.
7678 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7680 gcc_cv_as_gdwarf2_flag
="yes"
7682 rm -f conftest.s conftest.o
7684 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7685 cat >> confdefs.h
<<\EOF
7686 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7690 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7692 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7693 echo "configure:7694: checking assembler --gstabs support" >&5
7694 gcc_cv_as_gstabs_flag
=no
7695 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7697 if test "$gcc_cv_gas_major_version" -eq 2 \
7698 -a "$gcc_cv_gas_minor_version" -ge 11 \
7699 -o "$gcc_cv_gas_major_version" -gt 2 \
7700 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7701 && test x
"$insn" != x
; then
7702 gcc_cv_as_gstabs_debug_flag
="yes"
7704 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7705 echo '' > conftest.s
7706 # ??? This fails with non-gnu grep.
7707 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7708 gcc_cv_as_gstabs_flag
="yes"
7710 rm -f conftest.s conftest.o
7712 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7713 cat >> confdefs.h
<<\EOF
7714 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7718 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7720 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7721 echo "configure:7722: checking linker PT_GNU_EH_FRAME support" >&5
7722 gcc_cv_ld_eh_frame_hdr
=no
7723 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7724 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
7725 gcc_cv_ld_eh_frame_hdr
=yes
7727 elif test x
$gcc_cv_ld != x
; then
7728 # Check if linker supports --eh-frame-hdr option
7729 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7730 gcc_cv_ld_eh_frame_hdr
=yes
7733 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7734 cat >> confdefs.h
<<\EOF
7735 #define HAVE_LD_EH_FRAME_HDR 1
7739 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7741 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7742 cat >> confdefs.h
<<EOF
7743 #define PREFIX_INCLUDE_DIR "$prefix/include"
7748 # Figure out what language subdirectories are present.
7749 # Look if the user specified --enable-languages="..."; if not, use
7750 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7752 # NB: embedded tabs in this IF block -- do not untabify
7753 if test x
"${enable_languages+set}" != xset
; then
7754 if test x
"${LANGUAGES+set}" = xset
; then
7755 enable_languages
="${LANGUAGES}"
7756 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7759 enable_languages
=all
7762 if test x
"${enable_languages}" = x ||
7763 test x
"${enable_languages}" = xyes
;
7765 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7768 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7770 # First scan to see if an enabled language requires some other language.
7771 # We assume that a given config-lang.in will list all the language
7772 # front ends it requires, even if some are required indirectly.
7773 for lang
in ${srcdir}/*/config-lang.
in ..
7778 # The odd quoting in the next line works around
7779 # an apparent bug in bash 1.12 on linux.
7780 ${srcdir}/[*]/config-lang.
in)
7783 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7784 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7785 for other
in $this_lang_requires
7787 case ,${enable_languages}, in
7793 enable_languages
="$enable_languages,$other"
7802 for lang
in ${srcdir}/*/config-lang.
in ..
7806 # The odd quoting in the next line works around
7807 # an apparent bug in bash 1.12 on linux.
7808 ${srcdir}/[*]/config-lang.
in) ;;
7810 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7811 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7812 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7813 if test "x$lang_alias" = x
7815 echo "$lang doesn't set \$language." 1>&2
7818 case ${build_by_default},${enable_languages}, in
7819 *,$lang_alias,*) add_this_lang
=yes ;;
7820 no
,*) add_this_lang
=no
;;
7821 *,all
,*) add_this_lang
=yes ;;
7822 *) add_this_lang
=no
;;
7824 if test x
"${add_this_lang}" = xyes
; then
7826 ${srcdir}/ada
/config-lang.
in)
7827 if test x
$have_gnat = xyes
; then
7828 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7832 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7840 # Make gthr-default.h if we have a thread file.
7842 if test $thread_file != single
; then
7843 rm -f gthr-default.h
7844 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7845 gthread_flags
=-DHAVE_GTHR_DEFAULT
7849 # Find out what GC implementation we want, or may, use.
7850 # Check whether --with-gc or --without-gc was given.
7851 if test "${with_gc+set}" = set; then
7858 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7866 echo "Using $GGC for garbage collection."
7868 # Use the system's zlib library.
7870 zlibinc
="-I\$(srcdir)/../zlib"
7871 # Check whether --with-system-zlib or --without-system-zlib was given.
7872 if test "${with_system_zlib+set}" = set; then
7873 withval
="$with_system_zlib"
7883 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7884 echo "configure:7885: checking whether to enable maintainer-specific portions of Makefiles" >&5
7885 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7886 if test "${enable_maintainer_mode+set}" = set; then
7887 enableval
="$enable_maintainer_mode"
7888 maintainer_mode
=$enableval
7894 echo "$ac_t""$maintainer_mode" 1>&6
7896 if test "$maintainer_mode" = "yes"; then
7902 # With Setjmp/Longjmp based exception handling.
7903 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7904 if test "${enable_sjlj_exceptions+set}" = set; then
7905 enableval
="$enable_sjlj_exceptions"
7906 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
7907 cat >> confdefs.h
<<EOF
7908 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
7914 # Make empty files to contain the specs and options for each language.
7915 # Then add #include lines to for a compiler that has specs and/or options.
7920 for subdir
in .
$subdirs
7922 if test -f $srcdir/$subdir/lang-specs.h
; then
7923 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7925 if test -f $srcdir/$subdir/lang-options.h
; then
7926 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
7928 if test -f $srcdir/$subdir/$subdir-tree.def
; then
7929 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7933 # These (without "all_") are set in each config-lang.in.
7934 # `language' must be a single word so is spelled singularly.
7939 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc'
7940 # List of language makefile fragments.
7943 # Add the language fragments.
7944 # Languages are added via two mechanisms. Some information must be
7945 # recorded in makefile variables, these are defined in config-lang.in.
7946 # We accumulate them and plug them into the main Makefile.
7947 # The other mechanism is a set of hooks for each of the main targets
7948 # like `clean', `install', etc.
7950 language_fragments
="Make-lang"
7951 language_hooks
="Make-hooks"
7953 for s
in ..
$subdirs
7962 .
${srcdir}/$s/config-lang.
in
7963 if test "x$language" = x
7965 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7968 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
7969 if test -f ${srcdir}/$s/Makefile.
in
7970 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
7972 all_languages
="$all_languages $language"
7973 if test "x$boot_language" = xyes
7975 all_boot_languages
="$all_boot_languages $language"
7977 all_compilers
="$all_compilers $compilers"
7978 all_stagestuff
="$all_stagestuff $stagestuff"
7979 all_outputs
="$all_outputs $outputs"
7984 for language
in ..
$all_languages
7986 if test $language != ".."
7988 check_languages
="$check_languages check-$language"
7992 # Since we can't use `::' targets, we link each language in
7993 # with a set of hooks, reached indirectly via lang.${target}.
7997 target_list
="all.build all.cross start.encap rest.encap \
7998 info dvi generated-manpages \
7999 install-normal install-common install-info install-man \
8001 mostlyclean clean distclean extraclean maintainer-clean \
8002 stage1 stage2 stage3 stage4"
8003 for t
in $target_list
8006 for lang
in ..
$all_languages
8008 if test $lang != ".."; then
8012 echo "lang.$t: $x" >> Make-hooks
8017 echo "dir ." > .gdbinit
8018 echo "dir ${srcdir}" >> .gdbinit
8019 if test x
$gdb_needs_out_file_path = xyes
8021 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8023 if test "x$subdirs" != x
; then
8026 echo "dir ${srcdir}/$s" >> .gdbinit
8029 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8031 # Define variables host_canonical and build_canonical
8032 # because some Cygnus local changes in the Makefile depend on them.
8033 build_canonical
=${build}
8034 host_canonical
=${host}
8036 if test "${host}" != "${target}" ; then
8037 target_subdir
=${target_alias}/
8043 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8044 # absolute path for gcc_tooldir based on inserting the number of up-directory
8045 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8046 # $(libsubdir)/@(unlibsubdir) based path.
8047 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8048 # make and thus we'd get different behavior depending on where we built the
8050 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8051 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8053 # An explanation of the sed strings:
8054 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8055 # -e 's|/$||' match a trailing forward slash and eliminates it
8056 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8057 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8059 # (*) Note this pattern overwrites the first character of the string
8060 # with a forward slash if one is not already present. This is not a
8061 # problem because the exact names of the sub-directories concerned is
8062 # unimportant, just the number of them matters.
8064 # The practical upshot of these patterns is like this:
8066 # prefix exec_prefix result
8067 # ------ ----------- ------
8069 # /foo/ /foo/bar ../
8070 # /foo /foo/bar/ ../
8071 # /foo/ /foo/bar/ ../
8072 # /foo /foo/bar/ugg ../../
8075 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8080 # Find a directory in which to install a shared libgcc.
8082 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8083 if test "${enable_version_specific_runtime_libs+set}" = set; then
8084 enableval
="$enable_version_specific_runtime_libs"
8089 # Check whether --with-slibdir or --without-slibdir was given.
8090 if test "${with_slibdir+set}" = set; then
8091 withval
="$with_slibdir"
8092 slibdir
="$with_slibdir"
8094 if test "${enable_version_specific_runtime_libs+set}" = set; then
8095 slibdir
='$(libsubdir)'
8096 elif test "$host" != "$target"; then
8097 slibdir
='$(build_tooldir)/lib'
8105 # Nothing to do for FLOAT_H, float_format already handled.
8109 # Process the language and host/target makefile fragments.
8110 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8112 # Substitute configuration variables
8176 # Echo that links are built
8177 if test x
$host = x
$target
8185 if test x
$host != x
$build
8187 str3
=" on a $build system"
8190 if test "x$str2" != x ||
test "x$str3" != x
8195 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8197 if test "x$str2" != x ||
test "x$str3" != x
8199 echo " ${str2}${str3}." 1>&2
8202 # Truncate the target if necessary
8203 if test x
$host_truncate_target != x
; then
8204 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8207 # Configure the subdirectories
8208 # AC_CONFIG_SUBDIRS($subdirs)
8210 # Create the Makefile
8211 # and configure language subdirectories
8213 cat > confcache
<<\EOF
8214 # This file is a shell script that caches the results of configure
8215 # tests run on this system so they can be shared between configure
8216 # scripts and configure runs. It is not useful on other systems.
8217 # If it contains results you don't want to keep, you may remove or edit it.
8219 # By default, configure uses ./config.cache as the cache file,
8220 # creating it if it does not exist already. You can give configure
8221 # the --cache-file=FILE option to use a different cache file; that is
8222 # what configure does when it calls configure scripts in
8223 # subdirectories, so they share the cache.
8224 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8225 # config.status only pays attention to the cache file if you give it the
8226 # --recheck option to rerun configure.
8229 # The following way of writing the cache mishandles newlines in values,
8230 # but we know of no workaround that is simple, portable, and efficient.
8231 # So, don't put newlines in cache variables' values.
8232 # Ultrix sh set writes to stderr and can't be redirected directly,
8233 # and sets the high bit in the cache file unless we assign to the vars.
8235 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8237 # `set' does not quote correctly, so add quotes (double-quote substitution
8238 # turns \\\\ into \\, and sed turns \\ into \).
8240 -e "s/'/'\\\\''/g" \
8241 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8244 # `set' quotes correctly as required by POSIX, so do not add quotes.
8245 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8248 if cmp -s $cache_file confcache
; then
8251 if test -w $cache_file; then
8252 echo "updating cache $cache_file"
8253 cat confcache
> $cache_file
8255 echo "not updating unwritable cache $cache_file"
8260 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8262 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8263 # Let make expand exec_prefix.
8264 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8266 # Any assignment to VPATH causes Sun make to only execute
8267 # the first set of double-colon rules, so remove it if not needed.
8268 # If there is a colon in the path, we need to keep it.
8269 if test "x$srcdir" = x.
; then
8270 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8273 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8275 DEFS
=-DHAVE_CONFIG_H
8277 # Without the "./", some shells look in PATH for config.status.
8278 : ${CONFIG_STATUS=./config.status}
8280 echo creating
$CONFIG_STATUS
8281 rm -f $CONFIG_STATUS
8282 cat > $CONFIG_STATUS <<EOF
8284 # Generated automatically by configure.
8285 # Run this file to recreate the current configuration.
8286 # This directory was configured as follows,
8287 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8289 # $0 $ac_configure_args
8291 # Compiler output produced by configure, useful for debugging
8292 # configure, is in ./config.log if it exists.
8294 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8297 case "\$ac_option" in
8298 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8299 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8300 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8301 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8302 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8304 -help | --help | --hel | --he | --h)
8305 echo "\$ac_cs_usage"; exit 0 ;;
8306 *) echo "\$ac_cs_usage"; exit 1 ;;
8310 ac_given_srcdir=$srcdir
8312 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8314 cat >> $CONFIG_STATUS <<EOF
8316 # Protect against being on the right side of a sed subst in config.status.
8317 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8318 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8322 s%@CFLAGS@%$CFLAGS%g
8323 s%@CPPFLAGS@%$CPPFLAGS%g
8324 s%@CXXFLAGS@%$CXXFLAGS%g
8325 s%@FFLAGS@%$FFLAGS%g
8327 s%@LDFLAGS@%$LDFLAGS%g
8329 s%@exec_prefix@%$exec_prefix%g
8330 s%@prefix@%$prefix%g
8331 s%@program_transform_name@%$program_transform_name%g
8332 s%@bindir@%$bindir%g
8333 s%@sbindir@%$sbindir%g
8334 s%@libexecdir@%$libexecdir%g
8335 s%@datadir@%$datadir%g
8336 s%@sysconfdir@%$sysconfdir%g
8337 s%@sharedstatedir@%$sharedstatedir%g
8338 s%@localstatedir@%$localstatedir%g
8339 s%@libdir@%$libdir%g
8340 s%@includedir@%$includedir%g
8341 s%@oldincludedir@%$oldincludedir%g
8342 s%@infodir@%$infodir%g
8343 s%@mandir@%$mandir%g
8344 s%@enable_multilib@%$enable_multilib%g
8345 s%@enable_shared@%$enable_shared%g
8347 s%@host_alias@%$host_alias%g
8348 s%@host_cpu@%$host_cpu%g
8349 s%@host_vendor@%$host_vendor%g
8350 s%@host_os@%$host_os%g
8351 s%@target@%$target%g
8352 s%@target_alias@%$target_alias%g
8353 s%@target_cpu@%$target_cpu%g
8354 s%@target_vendor@%$target_vendor%g
8355 s%@target_os@%$target_os%g
8357 s%@build_alias@%$build_alias%g
8358 s%@build_cpu@%$build_cpu%g
8359 s%@build_vendor@%$build_vendor%g
8360 s%@build_os@%$build_os%g
8362 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8363 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8364 s%@GNATBIND@%$GNATBIND%g
8366 s%@strict1_warn@%$strict1_warn%g
8368 s%@warn_cflags@%$warn_cflags%g
8369 s%@stage1_cflags@%$stage1_cflags%g
8370 s%@SET_MAKE@%$SET_MAKE%g
8374 s%@RANLIB@%$RANLIB%g
8375 s%@INSTALL@%$INSTALL%g
8376 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8377 s%@INSTALL_DATA@%$INSTALL_DATA%g
8378 s%@have_mktemp_command@%$have_mktemp_command%g
8379 s%@MAKEINFO@%$MAKEINFO%g
8380 s%@BUILD_INFO@%$BUILD_INFO%g
8381 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8384 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8385 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8386 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8387 s%@LIBICONV@%$LIBICONV%g
8388 s%@manext@%$manext%g
8389 s%@objext@%$objext%g
8390 s%@FORBUILD@%$FORBUILD%g
8391 s%@PACKAGE@%$PACKAGE%g
8392 s%@VERSION@%$VERSION%g
8393 s%@ALLOCA@%$ALLOCA%g
8394 s%@GLIBC21@%$GLIBC21%g
8395 s%@USE_NLS@%$USE_NLS%g
8396 s%@MSGFMT@%$MSGFMT%g
8397 s%@GMSGFMT@%$GMSGFMT%g
8398 s%@XGETTEXT@%$XGETTEXT%g
8399 s%@INTLBISON@%$INTLBISON%g
8400 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8401 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8402 s%@CATALOGS@%$CATALOGS%g
8403 s%@CATOBJEXT@%$CATOBJEXT%g
8404 s%@INTLLIBS@%$INTLLIBS%g
8405 s%@INTLDEPS@%$INTLDEPS%g
8406 s%@INTLOBJS@%$INTLOBJS%g
8408 s%@DATADIRNAME@%$DATADIRNAME%g
8409 s%@INSTOBJEXT@%$INSTOBJEXT%g
8410 s%@GENCAT@%$GENCAT%g
8411 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8412 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8415 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8416 s%@inhibit_libc@%$inhibit_libc%g
8417 s%@HOST_PREFIX@%$HOST_PREFIX%g
8418 s%@HOST_PREFIX_1@%$HOST_PREFIX_1%g
8419 s%@HOST_CC@%$HOST_CC%g
8420 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8421 s%@STMP_FIXINC@%$STMP_FIXINC%g
8422 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8423 s%@libgcc_visibility@%$libgcc_visibility%g
8424 s%@gthread_flags@%$gthread_flags%g
8426 s%@zlibdir@%$zlibdir%g
8427 s%@zlibinc@%$zlibinc%g
8429 s%@build_canonical@%$build_canonical%g
8430 s%@host_canonical@%$host_canonical%g
8431 s%@target_subdir@%$target_subdir%g
8432 s%@gcc_tooldir@%$gcc_tooldir%g
8433 s%@dollar@%$dollar%g
8434 s%@slibdir@%$slibdir%g
8435 s%@objdir@%$objdir%g
8436 s%@subdirs@%$subdirs%g
8437 s%@all_boot_languages@%$all_boot_languages%g
8438 s%@all_compilers@%$all_compilers%g
8439 s%@all_lang_makefiles@%$all_lang_makefiles%g
8440 s%@all_languages@%$all_languages%g
8441 s%@all_stagestuff@%$all_stagestuff%g
8442 s%@build_exeext@%$build_exeext%g
8443 s%@build_install_headers_dir@%$build_install_headers_dir%g
8444 s%@build_xm_file_list@%$build_xm_file_list%g
8445 s%@build_xm_file@%$build_xm_file%g
8446 s%@build_xm_defines@%$build_xm_defines%g
8447 s%@check_languages@%$check_languages%g
8448 s%@cc_set_by_configure@%$cc_set_by_configure%g
8449 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8450 s%@cpp_install_dir@%$cpp_install_dir%g
8451 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8452 s%@dep_tmake_file@%$dep_tmake_file%g
8453 s%@extra_headers_list@%$extra_headers_list%g
8454 s%@extra_objs@%$extra_objs%g
8455 s%@extra_parts@%$extra_parts%g
8456 s%@extra_passes@%$extra_passes%g
8457 s%@extra_programs@%$extra_programs%g
8458 s%@float_h_file@%$float_h_file%g
8459 s%@gcc_config_arguments@%$gcc_config_arguments%g
8460 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8461 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8462 s%@gcc_version@%$gcc_version%g
8463 s%@gcc_version_full@%$gcc_version_full%g
8464 s%@gcc_version_trigger@%$gcc_version_trigger%g
8465 s%@host_exeext@%$host_exeext%g
8466 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8467 s%@host_xm_file_list@%$host_xm_file_list%g
8468 s%@host_xm_file@%$host_xm_file%g
8469 s%@host_xm_defines@%$host_xm_defines%g
8470 s%@install@%$install%g
8471 s%@lang_options_files@%$lang_options_files%g
8472 s%@lang_specs_files@%$lang_specs_files%g
8473 s%@lang_tree_files@%$lang_tree_files%g
8474 s%@local_prefix@%$local_prefix%g
8475 s%@md_file@%$md_file%g
8476 s%@objc_boehm_gc@%$objc_boehm_gc%g
8477 s%@out_file@%$out_file%g
8478 s%@out_object_file@%$out_object_file%g
8479 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8480 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8481 s%@symbolic_link@%$symbolic_link%g
8482 s%@thread_file@%$thread_file%g
8483 s%@tm_file_list@%$tm_file_list%g
8484 s%@tm_file@%$tm_file%g
8485 s%@tm_p_file_list@%$tm_p_file_list%g
8486 s%@tm_p_file@%$tm_p_file%g
8487 s%@xm_file@%$xm_file%g
8488 s%@xm_defines@%$xm_defines%g
8489 s%@c_target_objs@%$c_target_objs%g
8490 s%@cxx_target_objs@%$cxx_target_objs%g
8491 s%@target_cpu_default@%$target_cpu_default%g
8492 /@target_overrides@/r $target_overrides
8493 s%@target_overrides@%%g
8494 /@host_overrides@/r $host_overrides
8495 s%@host_overrides@%%g
8496 /@language_fragments@/r $language_fragments
8497 s%@language_fragments@%%g
8498 /@language_hooks@/r $language_hooks
8499 s%@language_hooks@%%g
8504 cat >> $CONFIG_STATUS <<\EOF
8506 # Split the substitutions into bite-sized pieces for seds with
8507 # small command number limits, like on Digital OSF/1 and HP-UX.
8508 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8509 ac_file
=1 # Number of current file.
8510 ac_beg
=1 # First line for current file.
8511 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8514 while $ac_more_lines; do
8515 if test $ac_beg -gt 1; then
8516 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8518 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8520 if test ! -s conftest.s
$ac_file; then
8522 rm -f conftest.s
$ac_file
8524 if test -z "$ac_sed_cmds"; then
8525 ac_sed_cmds
="sed -f conftest.s$ac_file"
8527 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8529 ac_file
=`expr $ac_file + 1`
8531 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8534 if test -z "$ac_sed_cmds"; then
8539 cat >> $CONFIG_STATUS <<EOF
8541 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8543 cat >> $CONFIG_STATUS <<\EOF
8544 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8547 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8548 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8549 *) ac_file_in
="${ac_file}.in" ;;
8552 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8554 # Remove last slash and all that follows it. Not all systems have dirname.
8555 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8556 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8557 # The file is in a subdirectory.
8558 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8559 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8560 # A "../" for each directory in $ac_dir_suffix.
8561 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8563 ac_dir_suffix
= ac_dots
=
8566 case "$ac_given_srcdir" in
8568 if test -z "$ac_dots"; then top_srcdir
=.
8569 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8570 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8572 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8573 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8577 echo creating
"$ac_file"
8579 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8581 *Makefile
*) ac_comsub
="1i\\
8582 # $configure_input" ;;
8586 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8588 s%@configure_input@%$configure_input%g
8589 s%@srcdir@%$srcdir%g
8590 s%@top_srcdir@%$top_srcdir%g
8591 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8595 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8596 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8598 # ac_d sets the value in "#define NAME VALUE" lines.
8599 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8600 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8603 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8604 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8605 ac_uB
='\([ ]\)%\1#\2define\3'
8608 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8609 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8610 ac_eB
='$%\1#\2define\3'
8614 if test "${CONFIG_HEADERS+set}" != set; then
8616 cat >> $CONFIG_STATUS <<EOF
8617 CONFIG_HEADERS="auto-host.h:config.in"
8619 cat >> $CONFIG_STATUS <<\EOF
8621 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8622 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8624 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8625 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8626 *) ac_file_in
="${ac_file}.in" ;;
8629 echo creating
$ac_file
8631 rm -f conftest.frag conftest.
in conftest.out
8632 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8633 cat $ac_file_inputs > conftest.
in
8637 # Transform confdefs.h into a sed script conftest.vals that substitutes
8638 # the proper values into config.h.in to produce config.h. And first:
8639 # Protect against being on the right side of a sed subst in config.status.
8640 # Protect against being in an unquoted here document in config.status.
8642 cat > conftest.hdr
<<\EOF
8645 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8649 sed -n -f conftest.hdr confdefs.h > conftest.vals
8652 # This sed command replaces #undef with comments. This is necessary, for
8653 # example, in the case of _POSIX_SOURCE, which is predefined and required
8654 # on some systems where configure will not decide to define it.
8655 cat >> conftest.vals <<\EOF
8656 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8659 # Break up conftest.vals because some shells have a limit on
8660 # the size of here documents, and old seds have small limits too.
8665 ac_lines=`grep -c . conftest.vals
`
8666 # grep -c gives empty output for an empty file on some AIX systems.
8667 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8668 # Write a limited-size here document to conftest.frag.
8669 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8670 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8672 sed -f conftest.frag conftest.in > conftest.out
8674 mv conftest.out conftest.in
8676 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8678 mv conftest.tail conftest.vals
8682 cat >> $CONFIG_STATUS <<\EOF
8683 rm -f conftest.frag conftest.h
8684 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8685 cat conftest.in >> conftest.h
8687 if cmp -s $ac_file conftest.h 2>/dev/null; then
8688 echo "$ac_file is unchanged"
8691 # Remove last slash and all that follows it. Not all systems have dirname.
8692 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8693 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8694 # The file is in a subdirectory.
8695 test ! -d "$ac_dir" && mkdir "$ac_dir"
8698 mv conftest.h $ac_file
8703 cat >> $CONFIG_STATUS <<EOF
8706 symbolic_link='$symbolic_link'
8709 cat >> $CONFIG_STATUS <<\EOF
8710 for ac_file in $CONFIG_FILES; do
8711 # Support "outfile[:infile[:infile...]]"
8713 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8715 # PO directories have a Makefile.in generated from Makefile.in.in.
8716 case "$ac_file" in */Makefile.in)
8717 # Adjust a relative srcdir.
8718 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8719 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8720 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8721 # In autoconf-2.13 it is called $ac_given_srcdir.
8722 # In autoconf-2.50 it is called $srcdir.
8723 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8724 case "$ac_given_srcdir" in
8725 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8726 /*) top_srcdir="$ac_given_srcdir" ;;
8727 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8729 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8730 rm -f "$ac_dir/POTFILES"
8731 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8732 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8733 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8734 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8740 case x$CONFIG_HEADERS in
8741 xauto-host.h:config.in)
8744 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8745 # bootstrapping and the installation procedure can still use
8746 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8747 # FLAGS_TO_PASS has been modified to solve the problem there.
8748 # This is virtually a duplicate of what happens in configure.lang; we do
8749 # an extra check to make sure this only happens if ln -s can be used.
8750 if test "$symbolic_link" = "ln -s"; then
8751 for d in .. ${subdirs} fixinc ; do
8752 if test $d != ..; then
8755 for t in stage1 stage2 stage3 stage4 include
8758 $symbolic_link ../$t $t 2>/dev/null
8764 # Avoid having to add intl to our include paths.
8765 if test -f intl/libintl.h; then
8766 echo creating libintl.h
8767 echo '#include "intl/libintl.h"' >libintl.h
8772 chmod +x $CONFIG_STATUS
8773 rm -fr confdefs* $ac_clean_files
8774 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1