3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files"
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,rtlflag,gc,gcac;
38 default is misc,tree,gc,rtlflag"
40 --enable-coverage[=LEVEL]
41 enable compiler\'s code coverage collection.
42 Use to measure compiler performance and locate
43 unused parts of the compiler. With LEVEL, specificy
44 optimization. Values are opt, noopt,
47 --with-cpp-install-dir=DIR
48 install the user visible C preprocessor in DIR
49 (relative to PREFIX) as well as PREFIX/bin"
51 --enable-__cxa_atexit enable __cxa_atexit for C++"
53 --enable-c-mbchar enable multibyte characters for C and C++"
55 --enable-threads enable thread usage for target GCC
56 --enable-threads=LIB use LIB thread package for target GCC"
58 --enable-objc-gc enable the use of Boehm's garbage collector with
59 the GNU Objective-C runtime"
61 --with-dwarf2 force the default debug format to be DWARF 2"
63 --disable-shared don't provide a shared libgcc"
65 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
67 --enable-nls use Native Language Support (default)"
69 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
71 --disable-nls do not use Native Language Support"
73 --with-included-gettext use the GNU gettext library included here"
75 --disable-win32-registry
76 disable lookup of installation paths in the
77 Registry on Windows hosts
78 --enable-win32-registry enable registry lookup (default)
79 --enable-win32-registry=KEY
80 use KEY instead of GCC version as the last portion
83 --with-gc={simple,page} choose the garbage collection mechanism to use
86 --with-system-zlib use installed libz"
88 --enable-maintainer-mode
89 enable make rules and dependencies not useful
90 (and sometimes confusing) to the casual installer"
92 --enable-sjlj-exceptions
93 arrange to use setjmp/longjmp exception handling"
95 --enable-libunwind-exceptions force use libunwind for exceptions"
97 --enable-version-specific-runtime-libs
98 specify that runtime libraries should be
99 installed in a compiler-specific directory"
101 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
103 # Initialize some variables set by options.
104 # The variables have the same names as the options, with
105 # dashes changed to underlines.
107 cache_file
=.
/config.cache
116 program_transform_name
=s
,x
,x
,
124 bindir
='${exec_prefix}/bin'
125 sbindir
='${exec_prefix}/sbin'
126 libexecdir
='${exec_prefix}/libexec'
127 datadir
='${prefix}/share'
128 sysconfdir
='${prefix}/etc'
129 sharedstatedir
='${prefix}/com'
130 localstatedir
='${prefix}/var'
131 libdir
='${exec_prefix}/lib'
132 includedir
='${prefix}/include'
133 oldincludedir
='/usr/include'
134 infodir
='${prefix}/info'
135 mandir
='${prefix}/man'
137 # Initialize some other variables.
140 SHELL
=${CONFIG_SHELL-/bin/sh}
141 # Maximum number of lines to put in a shell here document.
148 # If the previous option needs an argument, assign it.
149 if test -n "$ac_prev"; then
150 eval "$ac_prev=\$ac_option"
156 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
160 # Accept the important Cygnus configure options, so we can diagnose typos.
164 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
166 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
167 bindir
="$ac_optarg" ;;
169 -build |
--build |
--buil |
--bui |
--bu)
171 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
172 build
="$ac_optarg" ;;
174 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
175 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
176 ac_prev
=cache_file
;;
177 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
178 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
179 cache_file
="$ac_optarg" ;;
181 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
183 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
185 datadir
="$ac_optarg" ;;
187 -disable-* |
--disable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
194 eval "enable_${ac_feature}=no" ;;
196 -enable-* |
--enable-*)
197 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
198 # Reject names that are not valid shell variable names.
199 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
200 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
202 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
207 eval "enable_${ac_feature}='$ac_optarg'" ;;
209 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
210 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
211 |
--exec |
--exe |
--ex)
212 ac_prev
=exec_prefix
;;
213 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
214 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
215 |
--exec=* |
--exe=* |
--ex=*)
216 exec_prefix
="$ac_optarg" ;;
218 -gas |
--gas |
--ga |
--g)
219 # Obsolete; use --with-gas.
222 -help |
--help |
--hel |
--he)
223 # Omit some internal or obsolete options to make the list less imposing.
224 # This message is too long to be a string in the A/UX 3.1 sh.
226 Usage: configure [options] [host]
227 Options: [defaults in brackets after descriptions]
229 --cache-file=FILE cache test results in FILE
230 --help print this message
231 --no-create do not create output files
232 --quiet, --silent do not print \`checking...' messages
233 --version print the version of autoconf that created configure
234 Directory and file names:
235 --prefix=PREFIX install architecture-independent files in PREFIX
237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
239 --bindir=DIR user executables in DIR [EPREFIX/bin]
240 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
241 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
242 --datadir=DIR read-only architecture-independent data in DIR
244 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
245 --sharedstatedir=DIR modifiable architecture-independent data in DIR
247 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
248 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
249 --includedir=DIR C header files in DIR [PREFIX/include]
250 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
251 --infodir=DIR info documentation in DIR [PREFIX/info]
252 --mandir=DIR man documentation in DIR [PREFIX/man]
253 --srcdir=DIR find the sources in DIR [configure dir or ..]
254 --program-prefix=PREFIX prepend PREFIX to installed program names
255 --program-suffix=SUFFIX append SUFFIX to installed program names
256 --program-transform-name=PROGRAM
257 run sed PROGRAM on installed program names
261 --build=BUILD configure for building on BUILD [BUILD=HOST]
262 --host=HOST configure for HOST [guessed]
263 --target=TARGET configure for TARGET [TARGET=HOST]
264 Features and packages:
265 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
266 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
267 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
268 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
269 --x-includes=DIR X include files are in DIR
270 --x-libraries=DIR X library files are in DIR
272 if test -n "$ac_help"; then
273 echo "--enable and --with options recognized:$ac_help"
277 -host |
--host |
--hos |
--ho)
279 -host=* |
--host=* |
--hos=* |
--ho=*)
282 -includedir |
--includedir |
--includedi |
--included |
--include \
283 |
--includ |
--inclu |
--incl |
--inc)
284 ac_prev
=includedir
;;
285 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
286 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
287 includedir
="$ac_optarg" ;;
289 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
291 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
292 infodir
="$ac_optarg" ;;
294 -libdir |
--libdir |
--libdi |
--libd)
296 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
297 libdir
="$ac_optarg" ;;
299 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
300 |
--libexe |
--libex |
--libe)
301 ac_prev
=libexecdir
;;
302 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
303 |
--libexe=* |
--libex=* |
--libe=*)
304 libexecdir
="$ac_optarg" ;;
306 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
307 |
--localstate |
--localstat |
--localsta |
--localst \
308 |
--locals |
--local |
--loca |
--loc |
--lo)
309 ac_prev
=localstatedir
;;
310 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
311 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
312 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
313 localstatedir
="$ac_optarg" ;;
315 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
317 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
318 mandir
="$ac_optarg" ;;
321 # Obsolete; use --without-fp.
324 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
328 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
329 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
332 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
333 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
334 |
--oldin |
--oldi |
--old |
--ol |
--o)
335 ac_prev
=oldincludedir
;;
336 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
337 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
338 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
339 oldincludedir
="$ac_optarg" ;;
341 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
343 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
344 prefix
="$ac_optarg" ;;
346 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
347 |
--program-pre |
--program-pr |
--program-p)
348 ac_prev
=program_prefix
;;
349 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
350 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
351 program_prefix
="$ac_optarg" ;;
353 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
354 |
--program-suf |
--program-su |
--program-s)
355 ac_prev
=program_suffix
;;
356 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
357 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
358 program_suffix
="$ac_optarg" ;;
360 -program-transform-name |
--program-transform-name \
361 |
--program-transform-nam |
--program-transform-na \
362 |
--program-transform-n |
--program-transform- \
363 |
--program-transform |
--program-transfor \
364 |
--program-transfo |
--program-transf \
365 |
--program-trans |
--program-tran \
366 |
--progr-tra |
--program-tr |
--program-t)
367 ac_prev
=program_transform_name
;;
368 -program-transform-name=* |
--program-transform-name=* \
369 |
--program-transform-nam=* |
--program-transform-na=* \
370 |
--program-transform-n=* |
--program-transform-=* \
371 |
--program-transform=* |
--program-transfor=* \
372 |
--program-transfo=* |
--program-transf=* \
373 |
--program-trans=* |
--program-tran=* \
374 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
375 program_transform_name
="$ac_optarg" ;;
377 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
378 |
-silent |
--silent |
--silen |
--sile |
--sil)
381 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
383 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
385 sbindir
="$ac_optarg" ;;
387 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
388 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
389 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
391 ac_prev
=sharedstatedir
;;
392 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
393 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
394 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
396 sharedstatedir
="$ac_optarg" ;;
398 -site |
--site |
--sit)
400 -site=* |
--site=* |
--sit=*)
403 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
405 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
406 srcdir
="$ac_optarg" ;;
408 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
409 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
410 ac_prev
=sysconfdir
;;
411 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
412 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
413 sysconfdir
="$ac_optarg" ;;
415 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
417 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
418 target
="$ac_optarg" ;;
420 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
423 -version |
--version |
--versio |
--versi |
--vers)
424 echo "configure generated by autoconf version 2.13"
428 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}='$ac_optarg'" ;;
440 -without-* |
--without-*)
441 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
446 ac_package
=`echo $ac_package| sed 's/-/_/g'`
447 eval "with_${ac_package}=no" ;;
450 # Obsolete; use --with-x.
453 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
454 |
--x-incl |
--x-inc |
--x-in |
--x-i)
455 ac_prev
=x_includes
;;
456 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
457 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
458 x_includes
="$ac_optarg" ;;
460 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
461 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
462 ac_prev
=x_libraries
;;
463 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
464 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
465 x_libraries
="$ac_optarg" ;;
467 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
471 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
472 echo "configure: warning: $ac_option: invalid host type" 1>&2
474 if test "x$nonopt" != xNONE
; then
475 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
483 if test -n "$ac_prev"; then
484 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
489 # File descriptor usage:
492 # 2 errors and warnings
493 # 3 some systems may open it to /dev/tty
494 # 4 used on the Kubota Titan
495 # 6 checking for... messages and results
496 # 5 compiler messages saved in config.log
497 if test "$silent" = yes; then
505 This file contains any messages produced by compilers while
506 running configure, to aid debugging if configure makes a mistake.
509 # Strip out --no-create and --no-recursion so they do not pile up.
510 # Also quote any args containing shell metacharacters.
515 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
516 |
--no-cr |
--no-c) ;;
517 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
518 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
519 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
520 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
521 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
526 # Only set these to C if already set. These must not be set unconditionally
527 # because not all systems understand e.g. LANG=C (notably SCO).
528 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
529 # Non-C LC_CTYPE values break the ctype check.
530 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
531 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
532 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
533 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
535 # confdefs.h avoids OS command line length limits that DEFS can exceed.
536 rm -rf conftest
* confdefs.h
537 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
540 # A filename unique to this package, relative to the directory that
541 # configure is in, which we can look for to find out if srcdir is correct.
542 ac_unique_file
=tree.c
544 # Find the source files, if location was not specified.
545 if test -z "$srcdir"; then
546 ac_srcdir_defaulted
=yes
547 # Try the directory containing this script, then its parent.
549 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
550 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
552 if test ! -r $srcdir/$ac_unique_file; then
556 ac_srcdir_defaulted
=no
558 if test ! -r $srcdir/$ac_unique_file; then
559 if test "$ac_srcdir_defaulted" = yes; then
560 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
562 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
565 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
567 # Prefer explicitly selected file to automatically selected ones.
568 if test -z "$CONFIG_SITE"; then
569 if test "x$prefix" != xNONE
; then
570 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
572 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
575 for ac_site_file
in $CONFIG_SITE; do
576 if test -r "$ac_site_file"; then
577 echo "loading site script $ac_site_file"
582 if test -r "$cache_file"; then
583 echo "loading cache $cache_file"
586 echo "creating cache $cache_file"
591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
592 ac_cpp
='$CPP $CPPFLAGS'
593 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
594 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
595 cross_compiling
=$ac_cv_prog_cc_cross
599 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
600 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
601 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
608 ac_n
= ac_c
='\c' ac_t
=
616 symbolic_link
='ln -s'
619 # Check for bogus environment variables.
620 # Test if LIBRARY_PATH contains the notation for the current directory
621 # since this would lead to problems installing/building glibc.
622 # LIBRARY_PATH contains the current directory if one of the following
624 # - one of the terminals (":" and ";") is the first or last sign
625 # - two terminals occur directly after each other
626 # - the path contains an element with a dot in it
627 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
628 echo "configure:629: checking LIBRARY_PATH variable" >&5
629 case ${LIBRARY_PATH} in
630 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
631 library_path_setting
="contains current directory"
634 library_path_setting
="ok"
637 echo "$ac_t""$library_path_setting" 1>&6
638 if test "$library_path_setting" != "ok"; then
639 { echo "configure: error:
640 *** LIBRARY_PATH shouldn't contain the current directory when
641 *** building gcc. Please change the environment variable
642 *** and run configure again." 1>&2; exit 1; }
645 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
646 # since this would lead to problems installing/building glibc.
647 # GCC_EXEC_PREFIX contains the current directory if one of the following
649 # - one of the terminals (":" and ";") is the first or last sign
650 # - two terminals occur directly after each other
651 # - the path contains an element with a dot in it
652 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
653 echo "configure:654: checking GCC_EXEC_PREFIX variable" >&5
654 case ${GCC_EXEC_PREFIX} in
655 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
656 gcc_exec_prefix_setting
="contains current directory"
659 gcc_exec_prefix_setting
="ok"
662 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
663 if test "$gcc_exec_prefix_setting" != "ok"; then
664 { echo "configure: error:
665 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
666 *** building gcc. Please change the environment variable
667 *** and run configure again." 1>&2; exit 1; }
670 # Check for additional parameters
673 # Check whether --with-gnu-ld or --without-gnu-ld was given.
674 if test "${with_gnu_ld+set}" = set; then
675 withval
="$with_gnu_ld"
676 gnu_ld_flag
="$with_gnu_ld"
682 # With pre-defined ld
683 # Check whether --with-ld or --without-ld was given.
684 if test "${with_ld+set}" = set; then
686 DEFAULT_LINKER
="$with_ld"
689 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
690 if test ! -x "$DEFAULT_LINKER"; then
691 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
692 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
695 cat >> confdefs.h
<<EOF
696 #define DEFAULT_LINKER "$DEFAULT_LINKER"
702 # Check whether --with-gnu-as or --without-gnu-as was given.
703 if test "${with_gnu_as+set}" = set; then
704 withval
="$with_gnu_as"
705 gas_flag
="$with_gnu_as"
711 # Check whether --with-as or --without-as was given.
712 if test "${with_as+set}" = set; then
714 DEFAULT_ASSEMBLER
="$with_as"
717 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
718 if test ! -x "$DEFAULT_ASSEMBLER"; then
719 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
720 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
723 cat >> confdefs.h
<<EOF
724 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
730 # Check whether --with-stabs or --without-stabs was given.
731 if test "${with_stabs+set}" = set; then
732 withval
="$with_stabs"
740 # Check whether --with-elf or --without-elf was given.
741 if test "${with_elf+set}" = set; then
749 # Specify the local prefix
751 # Check whether --with-local-prefix or --without-local-prefix was given.
752 if test "${with_local_prefix+set}" = set; then
753 withval
="$with_local_prefix"
755 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
757 *) local_prefix
=$with_local_prefix ;;
762 # Default local prefix if it is empty
763 if test x
$local_prefix = x
; then
764 local_prefix
=/usr
/local
767 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
768 # passed in by the toplevel make and thus we'd get different behavior
769 # depending on where we built the sources.
771 # Specify the g++ header file directory
772 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
773 if test "${with_gxx_include_dir+set}" = set; then
774 withval
="$with_gxx_include_dir"
776 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
778 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
783 if test x
${gcc_gxx_include_dir} = x
; then
784 if test x
${enable_version_specific_runtime_libs} = xyes
; then
785 gcc_gxx_include_dir
='${libsubdir}/include/c++'
787 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
788 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
792 # Determine whether or not multilibs are enabled.
793 # Check whether --enable-multilib or --disable-multilib was given.
794 if test "${enable_multilib+set}" = set; then
795 enableval
="$enable_multilib"
803 # Enable expensive internal checks
804 # Check whether --enable-checking or --disable-checking was given.
805 if test "${enable_checking+set}" = set; then
806 enableval
="$enable_checking"
812 ac_gc_always_collect
=
813 case "${enableval}" in
814 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
815 ac_rtlflag_checking
=1 ;;
817 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
818 set fnord
$enableval; shift
823 misc
) ac_checking
=1 ;;
824 tree
) ac_tree_checking
=1 ;;
825 rtlflag
) ac_rtlflag_checking
=1 ;;
826 rtl
) ac_rtl_checking
=1 ;;
827 gc
) ac_gc_checking
=1 ;;
828 gcac
) ac_gc_always_collect
=1 ;;
829 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
836 # Enable some checks by default for development versions of GCC
837 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
840 if test x
$ac_checking != x
; then
841 cat >> confdefs.h
<<\EOF
842 #define ENABLE_CHECKING 1
846 if test x
$ac_tree_checking != x
; then
847 cat >> confdefs.h
<<\EOF
848 #define ENABLE_TREE_CHECKING 1
852 if test x
$ac_rtl_checking != x
; then
853 cat >> confdefs.h
<<\EOF
854 #define ENABLE_RTL_CHECKING 1
858 if test x
$ac_rtlflag_checking != x
; then
859 cat >> confdefs.h
<<\EOF
860 #define ENABLE_RTL_FLAG_CHECKING 1
864 if test x
$ac_gc_checking != x
; then
865 cat >> confdefs.h
<<\EOF
866 #define ENABLE_GC_CHECKING 1
870 if test x
$ac_gc_always_collect != x
; then
871 cat >> confdefs.h
<<\EOF
872 #define ENABLE_GC_ALWAYS_COLLECT 1
877 # Enable code coverage collection
878 # Check whether --enable-coverage or --disable-coverage was given.
879 if test "${enable_coverage+set}" = set; then
880 enableval
="$enable_coverage"
881 case "${enableval}" in
883 coverage_flags
="-fprofile-arcs -ftest-coverage -O0"
886 coverage_flags
="-fprofile-arcs -ftest-coverage -O2"
889 { echo "configure: error: unknown coverage setting $enableval" 1>&2; exit 1; }
898 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
899 if test "${with_cpp_install_dir+set}" = set; then
900 withval
="$with_cpp_install_dir"
901 if test x
$withval = xyes
; then
902 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
903 elif test x
$withval != xno
; then
904 cpp_install_dir
=$withval
909 # Enable __cxa_atexit for C++.
910 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
911 if test "${enable___cxa_atexit+set}" = set; then
912 enableval
="$enable___cxa_atexit"
916 if test x
$enable___cxa_atexit = xyes
; then
917 cat >> confdefs.h
<<\EOF
918 #define DEFAULT_USE_CXA_ATEXIT 1
923 # Enable Multibyte Characters for C/C++
924 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
925 if test "${enable_c_mbchar+set}" = set; then
926 enableval
="$enable_c_mbchar"
927 if test x
$enable_c_mbchar != xno
; then
928 cat >> confdefs.h
<<\EOF
929 #define MULTIBYTE_CHARS 1
937 # Pass with no value to take the default
938 # Pass with a value to specify a thread package
939 # Check whether --enable-threads or --disable-threads was given.
940 if test "${enable_threads+set}" = set; then
941 enableval
="$enable_threads"
948 enable_threads_flag
=$enable_threads
949 # Check if a valid thread package
950 case x
${enable_threads_flag} in
953 target_thread_file
='single'
957 target_thread_file
=''
959 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
960 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
961 target_thread_file
=$enable_threads_flag
964 echo "$enable_threads is an unknown thread package" 1>&2
969 # Check whether --enable-objc-gc or --disable-objc-gc was given.
970 if test "${enable_objc_gc+set}" = set; then
971 enableval
="$enable_objc_gc"
972 if test x
$enable_objc_gc = xno
; then
982 # Check whether --with-dwarf2 or --without-dwarf2 was given.
983 if test "${with_dwarf2+set}" = set; then
984 withval
="$with_dwarf2"
985 dwarf2
="$with_dwarf2"
991 # Check whether --enable-shared or --disable-shared was given.
992 if test "${enable_shared+set}" = set; then
993 enableval
="$enable_shared"
995 case $enable_shared in
999 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1000 for pkg
in $enableval; do
1001 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
1015 # Determine the host, build, and target systems
1017 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1018 if test -f $ac_dir/install-sh
; then
1020 ac_install_sh
="$ac_aux_dir/install-sh -c"
1022 elif test -f $ac_dir/install.sh
; then
1024 ac_install_sh
="$ac_aux_dir/install.sh -c"
1028 if test -z "$ac_aux_dir"; then
1029 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1031 ac_config_guess
=$ac_aux_dir/config.guess
1032 ac_config_sub
=$ac_aux_dir/config.sub
1033 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1036 # Do some error checking and defaulting for the host and target type.
1038 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1041 # 1. You are not allowed to specify --host, --target, and nonopt at the
1043 # 2. Host defaults to nonopt.
1044 # 3. If nonopt is not specified, then host defaults to the current host,
1045 # as determined by config.guess.
1046 # 4. Target and build default to nonopt.
1047 # 5. If nonopt is not specified, then target and build default to host.
1049 # The aliases save the names the user supplied, while $host etc.
1050 # will get canonicalized.
1051 case $host---$target---$nonopt in
1052 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1053 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1057 # Make sure we can run config.sub.
1058 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1059 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1062 echo $ac_n "checking host system type""... $ac_c" 1>&6
1063 echo "configure:1064: checking host system type" >&5
1066 case "$host_alias" in
1070 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1071 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1073 *) host_alias
=$nonopt ;;
1077 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1078 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081 echo "$ac_t""$host" 1>&6
1083 echo $ac_n "checking target system type""... $ac_c" 1>&6
1084 echo "configure:1085: checking target system type" >&5
1086 target_alias
=$target
1087 case "$target_alias" in
1090 NONE
) target_alias
=$host_alias ;;
1091 *) target_alias
=$nonopt ;;
1095 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1096 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1097 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1098 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1099 echo "$ac_t""$target" 1>&6
1101 echo $ac_n "checking build system type""... $ac_c" 1>&6
1102 echo "configure:1103: checking build system type" >&5
1105 case "$build_alias" in
1108 NONE
) build_alias
=$host_alias ;;
1109 *) build_alias
=$nonopt ;;
1113 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1114 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1115 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1116 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1117 echo "$ac_t""$build" 1>&6
1119 test "$host_alias" != "$target_alias" &&
1120 test "$program_prefix$program_suffix$program_transform_name" = \
1122 program_prefix
=${target_alias}-
1125 # Set program_transform_name
1126 if test "$program_transform_name" = s
,x
,x
,; then
1127 program_transform_name
=
1129 # Double any \ or $. echo might interpret backslashes.
1130 cat <<\EOF_SED
> conftestsed
1131 s
,\\,\\\\,g
; s
,\$
,$$
,g
1133 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1136 test "$program_prefix" != NONE
&&
1137 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1138 # Use a double $ so make ignores it.
1139 test "$program_suffix" != NONE
&&
1140 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1142 # sed with no file args requires a program.
1143 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1146 # Find the native compiler
1147 # Extract the first word of "gcc", so it can be a program name with args.
1148 set dummy gcc
; ac_word
=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC
="$CC" # Let the user override the test.
1157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1159 for ac_dir
in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir
=.
1161 if test -f $ac_dir/$ac_word; then
1170 if test -n "$CC"; then
1171 echo "$ac_t""$CC" 1>&6
1173 echo "$ac_t""no" 1>&6
1176 if test -z "$CC"; then
1177 # Extract the first word of "cc", so it can be a program name with args.
1178 set dummy cc
; ac_word
=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$CC"; then
1185 ac_cv_prog_CC
="$CC" # Let the user override the test.
1187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1190 for ac_dir
in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir
=.
1192 if test -f $ac_dir/$ac_word; then
1193 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1194 ac_prog_rejected
=yes
1202 if test $ac_prog_rejected = yes; then
1203 # We found a bogon in the path, so make sure we never use it.
1204 set dummy
$ac_cv_prog_CC
1206 if test $# -gt 0; then
1207 # We chose a different compiler from the bogus one.
1208 # However, it has the same basename, so the bogon will be chosen
1209 # first if we set CC to just the basename; use the full file name.
1211 set dummy
"$ac_dir/$ac_word" "$@"
1219 if test -n "$CC"; then
1220 echo "$ac_t""$CC" 1>&6
1222 echo "$ac_t""no" 1>&6
1225 if test -z "$CC"; then
1226 case "`uname -s`" in
1228 # Extract the first word of "cl", so it can be a program name with args.
1229 set dummy cl
; ac_word
=$2
1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_word" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 if test -n "$CC"; then
1236 ac_cv_prog_CC
="$CC" # Let the user override the test.
1238 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1240 for ac_dir
in $ac_dummy; do
1241 test -z "$ac_dir" && ac_dir
=.
1242 if test -f $ac_dir/$ac_word; then
1251 if test -n "$CC"; then
1252 echo "$ac_t""$CC" 1>&6
1254 echo "$ac_t""no" 1>&6
1259 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1262 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1267 ac_cpp
='$CPP $CPPFLAGS'
1268 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1269 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1270 cross_compiling
=$ac_cv_prog_cc_cross
1272 cat > conftest.
$ac_ext << EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1279 if { (eval echo configure
:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1280 ac_cv_prog_cc_works
=yes
1281 # If we can't run a trivial program, we are probably using a cross compiler.
1282 if (.
/conftest
; exit) 2>/dev
/null
; then
1283 ac_cv_prog_cc_cross
=no
1285 ac_cv_prog_cc_cross
=yes
1288 echo "configure: failed program was:" >&5
1289 cat conftest.
$ac_ext >&5
1290 ac_cv_prog_cc_works
=no
1294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1295 ac_cpp
='$CPP $CPPFLAGS'
1296 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1297 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1298 cross_compiling
=$ac_cv_prog_cc_cross
1300 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1301 if test $ac_cv_prog_cc_works = no
; then
1302 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1304 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1306 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1307 cross_compiling
=$ac_cv_prog_cc_cross
1309 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1310 echo "configure:1311: checking whether we are using GNU C" >&5
1311 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 cat > conftest.c
<<EOF
1319 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1326 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1328 if test $ac_cv_prog_gcc = yes; then
1334 ac_test_CFLAGS
="${CFLAGS+set}"
1335 ac_save_CFLAGS
="$CFLAGS"
1337 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1338 echo "configure:1339: checking whether ${CC-cc} accepts -g" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 echo 'void f(){}' > conftest.c
1343 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1352 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1353 if test "$ac_test_CFLAGS" = set; then
1354 CFLAGS
="$ac_save_CFLAGS"
1355 elif test $ac_cv_prog_cc_g = yes; then
1356 if test "$GCC" = yes; then
1362 if test "$GCC" = yes; then
1369 if test "x$CC" != xcc
; then
1370 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1371 echo "configure:1372: checking whether $CC and cc understand -c and -o together" >&5
1373 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1374 echo "configure:1375: checking whether cc understands -c and -o together" >&5
1376 set dummy
$CC; ac_cc
="`echo $2 |
1377 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1378 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 echo 'foo(){}' > conftest.c
1382 # Make sure it works both with $CC and with simple cc.
1383 # We do the test twice because some compilers refuse to overwrite an
1384 # existing .o file with -o, though they will create one.
1385 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1386 if { (eval echo configure
:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1387 test -f conftest.o
&& { (eval echo configure
:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1389 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1390 if test "x$CC" != xcc
; then
1391 # Test first that cc exists at all.
1392 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1393 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1394 if { (eval echo configure
:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1395 test -f conftest.o
&& { (eval echo configure
:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1400 # cc exists but doesn't like -o.
1401 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1406 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1411 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1414 echo "$ac_t""no" 1>&6
1415 cat >> confdefs.h
<<\EOF
1416 #define NO_MINUS_C_MINUS_O 1
1421 # autoconf is lame and doesn't give us any substitution variable for this.
1422 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1423 NO_MINUS_C_MINUS_O
=yes
1425 OUTPUT_OPTION
='-o $@'
1430 # See if GNAT has been installed
1431 if test $host != $build; then
1432 ac_tool_prefix
=${host_alias}-
1438 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1439 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 if test -n "$GNATBIND"; then
1446 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1450 for ac_dir
in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir
=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1460 GNATBIND
="$ac_cv_prog_GNATBIND"
1461 if test -n "$GNATBIND"; then
1462 echo "$ac_t""$GNATBIND" 1>&6
1464 echo "$ac_t""no" 1>&6
1468 if test -z "$ac_cv_prog_GNATBIND"; then
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "gnatbind", so it can be a program name with args.
1471 set dummy gnatbind
; ac_word
=$2
1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 if test -n "$GNATBIND"; then
1478 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1480 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1482 for ac_dir
in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir
=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_prog_GNATBIND
="gnatbind"
1490 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1493 GNATBIND
="$ac_cv_prog_GNATBIND"
1494 if test -n "$GNATBIND"; then
1495 echo "$ac_t""$GNATBIND" 1>&6
1497 echo "$ac_t""no" 1>&6
1505 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1506 echo "configure:1507: checking for compiler driver that understands Ada" >&5
1507 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 cat >conftest.adb
<<EOF
1511 procedure conftest is begin null; end conftest;
1514 # Have to do ac_tool_prefix and user overrides by hand.
1517 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
1518 ${ac_tool_prefix}$user_cc $user_cc \
1519 ${ac_tool_prefix}gcc gcc \
1520 ${ac_tool_prefix}cc cc \
1521 ${ac_tool_prefix}gnatgcc gnatgcc \
1522 ${ac_tool_prefix}gnatcc gnatcc \
1523 ${ac_tool_prefix}adagcc adagcc \
1524 ${ac_tool_prefix}adacc adacc
; do
1525 # There is a bug in all released versions of GCC which causes the
1526 # driver to exit successfully when the appropriate language module
1527 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1528 # Therefore we must check for the error message as well as an
1529 # unsuccessful exit.
1530 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1531 if test x
"$errors" = x
; then
1532 gcc_cv_prog_adac
=$cand
1539 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1540 ADAC
=$gcc_cv_prog_adac
1543 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1550 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1551 echo "configure:1552: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1552 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 save_CFLAGS
="$CFLAGS"
1556 CFLAGS
="-Wno-long-long"
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1565 if { (eval echo configure
:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1567 ac_cv_prog_cc_no_long_long
=yes
1569 echo "configure: failed program was:" >&5
1570 cat conftest.
$ac_ext >&5
1572 ac_cv_prog_cc_no_long_long
=no
1575 CFLAGS
="$save_CFLAGS"
1578 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1580 if test x
$have_gnat != xno
; then
1581 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1582 echo "configure:1583: checking whether ${ADAC} accepts -Wno-long-long" >&5
1583 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 cat >conftest.adb
<<EOF
1587 procedure conftest is begin null; end conftest;
1589 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1590 ac_cv_prog_adac_no_long_long
=yes
1592 ac_cv_prog_adac_no_long_long
=no
1597 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1599 ac_cv_prog_adac_no_long_long
=yes
1603 if test $ac_cv_prog_cc_no_long_long = yes && \
1604 test $ac_cv_prog_adac_no_long_long = yes ; then
1605 strict1_warn
="-pedantic -Wno-long-long"
1609 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1610 echo "configure:1611: checking how to run the C preprocessor" >&5
1611 # On Suns, sometimes $CPP names a directory.
1612 if test -n "$CPP" && test -d "$CPP"; then
1615 if test -z "$CPP"; then
1616 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 # This must be in double quotes, not single quotes, because CPP may get
1620 # substituted into the Makefile and "${CC-cc}" will confuse make.
1622 # On the NeXT, cc -E runs the code through the compiler's parser,
1623 # not just through cpp.
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1631 { (eval echo configure
:1632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1633 if test -z "$ac_err"; then
1637 echo "configure: failed program was:" >&5
1638 cat conftest.
$ac_ext >&5
1640 CPP
="${CC-cc} -E -traditional-cpp"
1641 cat > conftest.
$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1647 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1648 { (eval echo configure
:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1649 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1650 if test -z "$ac_err"; then
1654 echo "configure: failed program was:" >&5
1655 cat conftest.
$ac_ext >&5
1657 CPP
="${CC-cc} -nologo -E"
1658 cat > conftest.
$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1664 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1665 { (eval echo configure
:1666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1666 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1667 if test -z "$ac_err"; then
1671 echo "configure: failed program was:" >&5
1672 cat conftest.
$ac_ext >&5
1681 ac_cv_prog_CPP
="$CPP"
1683 CPP
="$ac_cv_prog_CPP"
1685 ac_cv_prog_CPP
="$CPP"
1687 echo "$ac_t""$CPP" 1>&6
1689 echo $ac_n "checking for inline""... $ac_c" 1>&6
1690 echo "configure:1691: checking for inline" >&5
1691 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1695 for ac_kw
in inline __inline__ __inline
; do
1696 cat > conftest.
$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1704 if { (eval echo configure
:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1706 ac_cv_c_inline
=$ac_kw; break
1708 echo "configure: failed program was:" >&5
1709 cat conftest.
$ac_ext >&5
1716 echo "$ac_t""$ac_cv_c_inline" 1>&6
1717 case "$ac_cv_c_inline" in
1719 no
) cat >> confdefs.h
<<\EOF
1723 *) cat >> confdefs.h
<<EOF
1724 #define inline $ac_cv_c_inline
1729 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1730 echo "configure:1731: checking for volatile" >&5
1731 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 cat > conftest.
$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1742 if { (eval echo configure
:1743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1744 gcc_cv_c_volatile
=yes
1746 echo "configure: failed program was:" >&5
1747 cat conftest.
$ac_ext >&5
1749 gcc_cv_c_volatile
=no
1754 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1755 if test $gcc_cv_c_volatile = yes ; then
1756 cat >> confdefs.h
<<\EOF
1757 #define HAVE_VOLATILE 1
1763 echo $ac_n "checking for long double""... $ac_c" 1>&6
1764 echo "configure:1765: checking for long double" >&5
1765 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 if test "$GCC" = yes; then
1769 gcc_cv_c_long_double
=yes
1771 cat > conftest.
$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1776 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1777 long double foo = 0.0;
1778 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1779 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1782 if { (eval echo configure
:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1784 gcc_cv_c_long_double
=yes
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1789 gcc_cv_c_long_double
=no
1795 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1796 if test $gcc_cv_c_long_double = yes; then
1797 cat >> confdefs.h
<<\EOF
1798 #define HAVE_LONG_DOUBLE 1
1803 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1804 echo "configure:1805: checking for long long int" >&5
1805 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest.
$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1816 if { (eval echo configure
:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1818 ac_cv_c_long_long
=yes
1820 echo "configure: failed program was:" >&5
1821 cat conftest.
$ac_ext >&5
1823 ac_cv_c_long_long
=no
1828 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1829 if test $ac_cv_c_long_long = yes; then
1830 cat >> confdefs.h
<<\EOF
1831 #define HAVE_LONG_LONG 1
1835 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1836 echo "configure:1837: checking for __int64" >&5
1837 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.
$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1848 if { (eval echo configure
:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1852 echo "configure: failed program was:" >&5
1853 cat conftest.
$ac_ext >&5
1860 echo "$ac_t""$ac_cv_c___int64" 1>&6
1861 if test $ac_cv_c___int64 = yes; then
1862 cat >> confdefs.h
<<\EOF
1863 #define HAVE___INT64 1
1868 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1869 echo "configure:1870: checking for built-in _Bool" >&5
1870 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 cat > conftest.
$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1881 if { (eval echo configure
:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1885 echo "configure: failed program was:" >&5
1886 cat conftest.
$ac_ext >&5
1894 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1895 if test $gcc_cv_c__bool = yes; then
1896 cat >> confdefs.h
<<\EOF
1897 #define HAVE__BOOL 1
1903 # sizeof(char) is 1 by definition.
1904 echo $ac_n "checking size of short""... $ac_c" 1>&6
1905 echo "configure:1906: checking size of short" >&5
1906 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include "confdefs.h"
1914 #include <sys/types.h>
1918 switch (0) case 0: case (sizeof (short) == $ac_size):;
1921 if { (eval echo configure
:1922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1923 ac_cv_sizeof_short
=$ac_size
1925 echo "configure: failed program was:" >&5
1926 cat conftest.
$ac_ext >&5
1929 if test x
$ac_cv_sizeof_short != x
; then break; fi
1934 if test x
$ac_cv_sizeof_short = x
; then
1935 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1937 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1938 cat >> confdefs.h
<<EOF
1939 #define SIZEOF_SHORT $ac_cv_sizeof_short
1943 echo $ac_n "checking size of int""... $ac_c" 1>&6
1944 echo "configure:1945: checking size of int" >&5
1945 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1949 cat > conftest.
$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1952 #include "confdefs.h"
1953 #include <sys/types.h>
1957 switch (0) case 0: case (sizeof (int) == $ac_size):;
1960 if { (eval echo configure
:1961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1962 ac_cv_sizeof_int
=$ac_size
1964 echo "configure: failed program was:" >&5
1965 cat conftest.
$ac_ext >&5
1968 if test x
$ac_cv_sizeof_int != x
; then break; fi
1973 if test x
$ac_cv_sizeof_int = x
; then
1974 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1976 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1977 cat >> confdefs.h
<<EOF
1978 #define SIZEOF_INT $ac_cv_sizeof_int
1982 echo $ac_n "checking size of long""... $ac_c" 1>&6
1983 echo "configure:1984: checking size of long" >&5
1984 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include "confdefs.h"
1992 #include <sys/types.h>
1996 switch (0) case 0: case (sizeof (long) == $ac_size):;
1999 if { (eval echo configure
:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001 ac_cv_sizeof_long
=$ac_size
2003 echo "configure: failed program was:" >&5
2004 cat conftest.
$ac_ext >&5
2007 if test x
$ac_cv_sizeof_long != x
; then break; fi
2012 if test x
$ac_cv_sizeof_long = x
; then
2013 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
2015 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2016 cat >> confdefs.h
<<EOF
2017 #define SIZEOF_LONG $ac_cv_sizeof_long
2021 if test $ac_cv_c_long_long = yes; then
2022 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2023 echo "configure:2024: checking size of long long" >&5
2024 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 #include "confdefs.h"
2032 #include <sys/types.h>
2036 switch (0) case 0: case (sizeof (long long) == $ac_size):;
2039 if { (eval echo configure
:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2041 ac_cv_sizeof_long_long
=$ac_size
2043 echo "configure: failed program was:" >&5
2044 cat conftest.
$ac_ext >&5
2047 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2052 if test x
$ac_cv_sizeof_long_long = x
; then
2053 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2055 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2056 cat >> confdefs.h
<<EOF
2057 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2062 if test $ac_cv_c___int64 = yes; then
2063 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
2064 echo "configure:2065: checking size of __int64" >&5
2065 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2069 cat > conftest.
$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 #include "confdefs.h"
2073 #include <sys/types.h>
2077 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
2080 if { (eval echo configure
:2081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2082 ac_cv_sizeof___int64
=$ac_size
2084 echo "configure: failed program was:" >&5
2085 cat conftest.
$ac_ext >&5
2088 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
2093 if test x
$ac_cv_sizeof___int64 = x
; then
2094 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
2096 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
2097 cat >> confdefs.h
<<EOF
2098 #define SIZEOF___INT64 $ac_cv_sizeof___int64
2104 echo $ac_n "checking execution character set""... $ac_c" 1>&6
2105 echo "configure:2106: checking execution character set" >&5
2106 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.
$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2113 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2118 egrep "ASCII" >/dev
/null
2>&1; then
2120 ac_cv_c_charset
=ASCII
2124 if test x
${ac_cv_c_charset+set} != xset
; then
2125 cat > conftest.
$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2129 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2134 egrep "EBCDIC" >/dev
/null
2>&1; then
2136 ac_cv_c_charset
=EBCDIC
2141 if test x
${ac_cv_c_charset+set} != xset
; then
2142 ac_cv_c_charset
=unknown
2146 echo "$ac_t""$ac_cv_c_charset" 1>&6
2147 if test $ac_cv_c_charset = unknown
; then
2148 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
2149 elif test $ac_cv_c_charset = EBCDIC
; then
2150 cat >> confdefs.h
<<\EOF
2151 #define HOST_EBCDIC 1
2156 # If the native compiler is GCC, we can enable warnings even in stage1.
2157 # That's useful for people building cross-compilers, or just running a
2160 if test "x$GCC" = "xyes"; then
2161 warn_cflags
='$(GCC_WARN_CFLAGS)'
2165 # Stage specific cflags for build.
2169 if test x
$GCC = xyes
2171 stage1_cflags
="-Wa,-J"
2177 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
2178 # sources; use -no-cpp-precomp to get to GNU cpp.
2179 # Apple's GCC has bugs in designated initializer handling, so disable
2181 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
2186 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2187 echo "configure:2188: checking whether ${MAKE-make} sets \${MAKE}" >&5
2188 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2189 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftestmake
<<\EOF
2194 @
echo 'ac_maketemp="${MAKE}"'
2196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2197 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2198 if test -n "$ac_maketemp"; then
2199 eval ac_cv_prog_make_
${ac_make}_set
=yes
2201 eval ac_cv_prog_make_
${ac_make}_set
=no
2205 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2209 echo "$ac_t""no" 1>&6
2210 SET_MAKE
="MAKE=${MAKE-make}"
2214 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2215 echo "configure:2216: checking whether a default assembler was specified" >&5
2216 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2217 if test x
"$gas_flag" = x
"no"; then
2218 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2220 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2223 echo "$ac_t""no" 1>&6
2226 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2227 echo "configure:2228: checking whether a default linker was specified" >&5
2228 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2229 if test x
"$gnu_ld_flag" = x
"no"; then
2230 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2232 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2235 echo "$ac_t""no" 1>&6
2238 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2239 echo "configure:2240: checking for GNU C library" >&5
2240 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <features.h>
2249 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2250 #error Not a GNU C library system
2254 if { (eval echo configure
:2255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2266 echo "$ac_t""$gcc_cv_glibc" 1>&6
2267 if test $gcc_cv_glibc = yes; then
2268 cat >> confdefs.h
<<\EOF
2269 #define _GNU_SOURCE 1
2274 # Find some useful tools
2275 for ac_prog
in gawk mawk nawk
awk
2277 # Extract the first word of "$ac_prog", so it can be a program name with args.
2278 set dummy
$ac_prog; ac_word
=$2
2279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_word" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 if test -n "$AWK"; then
2285 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2287 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2289 for ac_dir
in $ac_dummy; do
2290 test -z "$ac_dir" && ac_dir
=.
2291 if test -f $ac_dir/$ac_word; then
2292 ac_cv_prog_AWK
="$ac_prog"
2299 AWK
="$ac_cv_prog_AWK"
2300 if test -n "$AWK"; then
2301 echo "$ac_t""$AWK" 1>&6
2303 echo "$ac_t""no" 1>&6
2306 test -n "$AWK" && break
2309 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2310 echo "configure:2311: checking whether ln works" >&5
2311 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 rm -f conftestdata_t
2315 echo >conftestdata_f
2316 if ln conftestdata_f conftestdata_t
2>/dev
/null
2320 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2322 gcc_cv_prog_LN
="ln -s"
2327 rm -f conftestdata_f conftestdata_t
2330 LN
="$gcc_cv_prog_LN"
2331 if test "$gcc_cv_prog_LN" = "ln"; then
2332 echo "$ac_t""yes" 1>&6
2334 if test "$gcc_cv_prog_LN" = "ln -s"; then
2335 echo "$ac_t""no, using ln -s" 1>&6
2337 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2341 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2342 echo "configure:2343: checking whether ln -s works" >&5
2343 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 rm -f conftestdata_t
2347 echo >conftestdata_f
2348 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2350 gcc_cv_prog_LN_S
="ln -s"
2352 if ln conftestdata_f conftestdata_t
2>/dev
/null
2359 rm -f conftestdata_f conftestdata_t
2362 LN_S
="$gcc_cv_prog_LN_S"
2363 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2364 echo "$ac_t""yes" 1>&6
2366 if test "$gcc_cv_prog_LN_S" = "ln"; then
2367 echo "$ac_t""no, using ln" 1>&6
2369 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2373 # Extract the first word of "ranlib", so it can be a program name with args.
2374 set dummy ranlib
; ac_word
=$2
2375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2376 echo "configure:2377: checking for $ac_word" >&5
2377 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 if test -n "$RANLIB"; then
2381 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2383 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2385 for ac_dir
in $ac_dummy; do
2386 test -z "$ac_dir" && ac_dir
=.
2387 if test -f $ac_dir/$ac_word; then
2388 ac_cv_prog_RANLIB
="ranlib"
2393 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2396 RANLIB
="$ac_cv_prog_RANLIB"
2397 if test -n "$RANLIB"; then
2398 echo "$ac_t""$RANLIB" 1>&6
2400 echo "$ac_t""no" 1>&6
2403 # Find a good install program. We prefer a C program (faster),
2404 # so one script is as good as another. But avoid the broken or
2405 # incompatible versions:
2406 # SysV /etc/install, /usr/sbin/install
2407 # SunOS /usr/etc/install
2408 # IRIX /sbin/install
2410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2412 # ./install, which can be erroneously created by make from ./install.sh.
2413 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2414 echo "configure:2415: checking for a BSD compatible install" >&5
2415 if test -z "$INSTALL"; then
2416 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2420 for ac_dir
in $PATH; do
2421 # Account for people who put trailing slashes in PATH elements.
2423 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2425 # OSF1 and SCO ODT 3.0 have their own names for install.
2426 for ac_prog
in ginstall scoinst
install; do
2427 if test -f $ac_dir/$ac_prog; then
2428 if test $ac_prog = install &&
2429 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2430 # AIX install. It has an incompatible calling convention.
2431 # OSF/1 installbsd also uses dspmsg, but is usable.
2434 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2445 if test "${ac_cv_path_install+set}" = set; then
2446 INSTALL
="$ac_cv_path_install"
2448 # As a last resort, use the slow shell script. We don't cache a
2449 # path for INSTALL within a source directory, because that will
2450 # break other packages using the cache if that directory is
2451 # removed, or if the path is relative.
2452 INSTALL
="$ac_install_sh"
2455 echo "$ac_t""$INSTALL" 1>&6
2457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2458 # It thinks the first close brace ends the variable substitution.
2459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2461 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2464 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2465 echo "configure:2466: checking for ANSI C header files" >&5
2466 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2477 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure
:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2482 ac_cv_header_stdc
=yes
2485 echo "configure: failed program was:" >&5
2486 cat conftest.
$ac_ext >&5
2488 ac_cv_header_stdc
=no
2492 if test $ac_cv_header_stdc = yes; then
2493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2500 egrep "memchr" >/dev
/null
2>&1; then
2504 ac_cv_header_stdc
=no
2510 if test $ac_cv_header_stdc = yes; then
2511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2512 cat > conftest.
$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2518 egrep "free" >/dev
/null
2>&1; then
2522 ac_cv_header_stdc
=no
2528 if test $ac_cv_header_stdc = yes; then
2529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2530 if test "$cross_compiling" = yes; then
2533 cat > conftest.
$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2537 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2538 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2540 int main () { int i; for (i = 0; i < 256; i++)
2541 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2545 if { (eval echo configure
:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 ac_cv_header_stdc
=no
2560 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2561 if test $ac_cv_header_stdc = yes; then
2562 cat >> confdefs.h
<<\EOF
2563 #define STDC_HEADERS 1
2568 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2569 echo "configure:2570: checking whether time.h and sys/time.h may both be included" >&5
2570 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 cat > conftest.
$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2576 #include <sys/types.h>
2577 #include <sys/time.h>
2583 if { (eval echo configure
:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2585 ac_cv_header_time
=yes
2587 echo "configure: failed program was:" >&5
2588 cat conftest.
$ac_ext >&5
2590 ac_cv_header_time
=no
2595 echo "$ac_t""$ac_cv_header_time" 1>&6
2596 if test $ac_cv_header_time = yes; then
2597 cat >> confdefs.h
<<\EOF
2598 #define TIME_WITH_SYS_TIME 1
2603 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2604 echo "configure:2605: checking for working stdbool.h" >&5
2605 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.
$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2611 #include <stdbool.h>
2616 if { (eval echo configure
:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2618 ac_cv_header_stdbool_h
=yes
2620 echo "configure: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2623 ac_cv_header_stdbool_h
=no
2628 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2629 if test $ac_cv_header_stdbool_h = yes; then
2630 cat >> confdefs.h
<<\EOF
2631 #define HAVE_STDBOOL_H 1
2636 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2637 echo "configure:2638: checking whether string.h and strings.h may both be included" >&5
2638 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2645 #include <strings.h>
2650 if { (eval echo configure
:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2652 gcc_cv_header_string
=yes
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2657 gcc_cv_header_string
=no
2662 echo "$ac_t""$gcc_cv_header_string" 1>&6
2663 if test $gcc_cv_header_string = yes; then
2664 cat >> confdefs.h
<<\EOF
2665 #define STRING_WITH_STRINGS 1
2670 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2671 echo "configure:2672: checking for sys/wait.h that is POSIX.1 compatible" >&5
2672 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 cat > conftest.
$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2678 #include <sys/types.h>
2679 #include <sys/wait.h>
2681 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2684 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2689 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2692 if { (eval echo configure
:2693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2694 ac_cv_header_sys_wait_h
=yes
2696 echo "configure: failed program was:" >&5
2697 cat conftest.
$ac_ext >&5
2699 ac_cv_header_sys_wait_h
=no
2704 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2705 if test $ac_cv_header_sys_wait_h = yes; then
2706 cat >> confdefs.h
<<\EOF
2707 #define HAVE_SYS_WAIT_H 1
2712 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2713 fcntl.h unistd.h sys
/file.h sys
/time.h \
2714 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2715 direct.h malloc.h langinfo.h
2717 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_hdr" >&5
2720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.
$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2729 { (eval echo configure
:2730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2730 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2731 if test -z "$ac_err"; then
2733 eval "ac_cv_header_$ac_safe=yes"
2736 echo "configure: failed program was:" >&5
2737 cat conftest.
$ac_ext >&5
2739 eval "ac_cv_header_$ac_safe=no"
2743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2745 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2746 cat >> confdefs.h
<<EOF
2747 #define $ac_tr_hdr 1
2751 echo "$ac_t""no" 1>&6
2756 # Check for thread headers.
2757 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2758 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2759 echo "configure:2760: checking for thread.h" >&5
2760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 cat > conftest.
$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2768 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2769 { (eval echo configure
:2770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2770 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2771 if test -z "$ac_err"; then
2773 eval "ac_cv_header_$ac_safe=yes"
2776 echo "configure: failed program was:" >&5
2777 cat conftest.
$ac_ext >&5
2779 eval "ac_cv_header_$ac_safe=no"
2783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2784 echo "$ac_t""yes" 1>&6
2787 echo "$ac_t""no" 1>&6
2791 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2793 echo "configure:2794: checking for pthread.h" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 cat > conftest.
$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <pthread.h>
2802 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure
:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2807 eval "ac_cv_header_$ac_safe=yes"
2810 echo "configure: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2813 eval "ac_cv_header_$ac_safe=no"
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818 echo "$ac_t""yes" 1>&6
2821 echo "$ac_t""no" 1>&6
2826 # These tests can't be done till we know if we have limits.h.
2827 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2828 echo "configure:2829: checking for CHAR_BIT" >&5
2829 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 cat > conftest.
$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 #ifdef HAVE_LIMITS_H
2842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2843 egrep "found" >/dev
/null
2>&1; then
2845 gcc_cv_decl_char_bit
=yes
2848 gcc_cv_decl_char_bit
=no
2855 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2856 if test $gcc_cv_decl_char_bit = no
; then
2857 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2858 echo "configure:2859: checking number of bits in a byte" >&5
2859 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2864 while test $i -lt 65; do
2865 cat > conftest.
$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2871 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2872 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2876 if { (eval echo configure
:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2878 gcc_cv_c_nbby
=$i; break
2880 echo "configure: failed program was:" >&5
2881 cat conftest.
$ac_ext >&5
2886 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2890 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2891 if test $gcc_cv_c_nbby = failed
; then
2892 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2894 cat >> confdefs.h
<<EOF
2895 #define CHAR_BIT $gcc_cv_c_nbby
2900 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2901 echo "configure:2902: checking byte ordering" >&5
2902 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 ac_cv_c_compile_endian
=unknown
2908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2909 ac_cpp
='$CPP $CPPFLAGS'
2910 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2911 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2912 cross_compiling
=$ac_cv_prog_cc_cross
2914 cat > conftest.
$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2918 #ifdef HAVE_LIMITS_H
2919 # include <limits.h>
2921 /* This structure must have no internal padding. */
2923 char prefix[sizeof "\nendian:" - 1];
2928 #if SIZEOF_SHORT == 4
2929 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2931 ('A' << CHAR_BIT) | 'B',
2935 if { (eval echo configure
:2936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2937 sed 's/^[0-7]*[ ]*/ /
2940 s/ [0-9][0-9][0-9]/./g
2946 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2947 ac_cv_c_compile_endian
=big-endian
2948 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2949 ac_cv_c_compile_endian
=little-endian
2954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2955 ac_cpp
='$CPP $CPPFLAGS'
2956 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2957 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2958 cross_compiling
=$ac_cv_prog_cc_cross
2963 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2964 if test $ac_cv_c_compile_endian = unknown
; then
2965 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2966 elif test $ac_cv_c_compile_endian = big-endian
; then
2967 cat >> confdefs.h
<<\EOF
2968 #define HOST_WORDS_BIG_ENDIAN 1
2973 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2974 echo "configure:2975: checking floating point format" >&5
2975 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2981 ac_cpp
='$CPP $CPPFLAGS'
2982 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2983 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2984 cross_compiling
=$ac_cv_prog_cc_cross
2986 cat > conftest.
$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 /* This will not work unless sizeof(double) == 8. */
2990 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2992 /* This structure must have no internal padding. */
2993 struct possibility {
2999 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
3000 struct possibility table [] =
3002 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
3003 C( 3.53802595280598432000e+18), /* D__float - VAX */
3004 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
3005 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
3006 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
3009 if { (eval echo configure
:3010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3011 sed 's/^[0-7]*[ ]*/ /
3014 s/ [0-9][0-9][0-9]/./g
3020 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3021 ac_cv_c_float_format
='IEEE (big-endian)'
3022 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3023 ac_cv_c_float_format
='IEEE (big-endian)'
3024 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3025 ac_cv_c_float_format
='IEEE (little-endian)'
3026 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3027 ac_cv_c_float_format
='IEEE (little-endian)'
3028 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3029 ac_cv_c_float_format
='VAX D-float'
3030 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3031 ac_cv_c_float_format
='PDP-10'
3032 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3033 ac_cv_c_float_format
='IBM 370 hex'
3035 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
3038 { echo "configure: error: compile failed" 1>&2; exit 1; }
3042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3043 ac_cpp
='$CPP $CPPFLAGS'
3044 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3045 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3046 cross_compiling
=$ac_cv_prog_cc_cross
3051 echo "$ac_t""$ac_cv_c_float_format" 1>&6
3052 # IEEE is the default format. If the float endianness isn't the same
3053 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
3054 # (which is a tristate: yes, no, default). This is only an issue with
3055 # IEEE; the other formats are only supported by a few machines each,
3056 # all with the same endianness.
3059 case $ac_cv_c_float_format in
3060 'IEEE (big-endian)' )
3061 if test $ac_cv_c_compile_endian = little-endian
; then
3065 'IEEE (little-endian)' )
3066 if test $ac_cv_c_compile_endian = big-endian
; then
3071 format
=VAX_FLOAT_FORMAT
3074 format
=PDP10_FLOAT_FORMAT
3077 format
=IBM_FLOAT_FORMAT
3080 if test -n "$format"; then
3081 cat >> confdefs.h
<<EOF
3082 #define HOST_FLOAT_FORMAT $format
3086 if test -n "$fbigend"; then
3087 cat >> confdefs.h
<<EOF
3088 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
3094 # See if we have the mktemp command.
3095 # Extract the first word of "mktemp", so it can be a program name with args.
3096 set dummy mktemp
; ac_word
=$2
3097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3098 echo "configure:3099: checking for $ac_word" >&5
3099 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 if test -n "$have_mktemp_command"; then
3103 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3105 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3107 for ac_dir
in $ac_dummy; do
3108 test -z "$ac_dir" && ac_dir
=.
3109 if test -f $ac_dir/$ac_word; then
3110 ac_cv_prog_have_mktemp_command
="yes"
3115 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3118 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3119 if test -n "$have_mktemp_command"; then
3120 echo "$ac_t""$have_mktemp_command" 1>&6
3122 echo "$ac_t""no" 1>&6
3126 # Do we have a single-tree copy of texinfo?
3127 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3128 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3129 gcc_cv_prog_makeinfo_modern
=yes
3130 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3132 # See if makeinfo has been installed and is modern enough
3133 # that we can use it.
3134 # Extract the first word of "makeinfo", so it can be a program name with args.
3135 set dummy makeinfo
; ac_word
=$2
3136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_word" >&5
3138 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 if test -n "$MAKEINFO"; then
3142 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3146 for ac_dir
in $ac_dummy; do
3147 test -z "$ac_dir" && ac_dir
=.
3148 if test -f $ac_dir/$ac_word; then
3149 ac_cv_prog_MAKEINFO
="makeinfo"
3156 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3157 if test -n "$MAKEINFO"; then
3158 echo "$ac_t""$MAKEINFO" 1>&6
3160 echo "$ac_t""no" 1>&6
3163 if test -n "$MAKEINFO"; then
3164 # Found it, now check the version.
3165 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3166 echo "configure:3167: checking for modern makeinfo" >&5
3167 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3171 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3172 echo "configure:3173: version of makeinfo is $ac_prog_version" >&5
3173 case $ac_prog_version in
3174 '') gcc_cv_prog_makeinfo_modern
=no
;;
3176 gcc_cv_prog_makeinfo_modern
=yes;;
3177 *) gcc_cv_prog_makeinfo_modern
=no
;;
3182 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3184 gcc_cv_prog_makeinfo_modern
=no
3189 if test $gcc_cv_prog_makeinfo_modern = no
; then
3190 echo "configure: warning:
3191 *** Makeinfo is missing or too old.
3192 *** Info documentation will not be built." 1>&2
3198 # Is pod2man recent enough to regenerate manpages?
3199 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3200 echo "configure:3201: checking for recent Pod::Man" >&5
3201 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3202 echo "$ac_t""yes" 1>&6
3203 GENERATED_MANPAGES
=generated-manpages
3205 echo "$ac_t""no" 1>&6
3210 if test -f $srcdir/..
/flex
/skel.c
; then
3211 FLEX
='$(objdir)/../flex/flex'
3213 # Extract the first word of "flex", so it can be a program name with args.
3214 set dummy flex
; ac_word
=$2
3215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3216 echo "configure:3217: checking for $ac_word" >&5
3217 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 if test -n "$FLEX"; then
3221 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3223 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3225 for ac_dir
in $ac_dummy; do
3226 test -z "$ac_dir" && ac_dir
=.
3227 if test -f $ac_dir/$ac_word; then
3228 ac_cv_prog_FLEX
="flex"
3233 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3236 FLEX
="$ac_cv_prog_FLEX"
3237 if test -n "$FLEX"; then
3238 echo "$ac_t""$FLEX" 1>&6
3240 echo "$ac_t""no" 1>&6
3246 # The -L switch is so bison can find its skeleton file.
3247 if test -f $srcdir/..
/bison
/bison.simple
; then
3248 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3250 # Extract the first word of "bison", so it can be a program name with args.
3251 set dummy bison
; ac_word
=$2
3252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3253 echo "configure:3254: checking for $ac_word" >&5
3254 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 if test -n "$BISON"; then
3258 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3260 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3262 for ac_dir
in $ac_dummy; do
3263 test -z "$ac_dir" && ac_dir
=.
3264 if test -f $ac_dir/$ac_word; then
3265 ac_cv_prog_BISON
="bison"
3270 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3273 BISON
="$ac_cv_prog_BISON"
3274 if test -n "$BISON"; then
3275 echo "$ac_t""$BISON" 1>&6
3277 echo "$ac_t""no" 1>&6
3282 # These libraries may be used by collect2.
3283 # We may need a special search path to get them linked.
3284 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3285 echo "configure:3286: checking for collect2 libraries" >&5
3286 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3290 for libs
in '' -lld -lmld \
3291 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3292 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3307 if { (eval echo configure
:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3309 gcc_cv_collect2_libs
="$libs"; break
3311 echo "configure: failed program was:" >&5
3312 cat conftest.
$ac_ext >&5
3317 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3320 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3321 case $gcc_cv_collect2_libs in
3323 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3327 # When building Ada code on Alpha, we need exc_resume which is usually in
3328 # -lexc. So test for it.
3332 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3333 echo "configure:3334: checking for library containing exc_resume" >&5
3334 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 ac_func_search_save_LIBS
="$LIBS"
3338 ac_cv_search_exc_resume
="no"
3339 cat > conftest.
$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* Override any gcc2 internal prototype to avoid an error. */
3343 /* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3351 if { (eval echo configure
:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3353 ac_cv_search_exc_resume
="none required"
3355 echo "configure: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3359 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3360 LIBS
="-l$i $ac_func_search_save_LIBS"
3361 cat > conftest.
$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 /* We use char because int might match the return type of a gcc2
3366 builtin and then its argument prototype would still apply. */
3373 if { (eval echo configure
:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3375 ac_cv_search_exc_resume
="-l$i"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.
$ac_ext >&5
3383 LIBS
="$ac_func_search_save_LIBS"
3386 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3387 if test "$ac_cv_search_exc_resume" != "no"; then
3388 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3397 # See if the stage1 system preprocessor understands the ANSI C
3398 # preprocessor stringification operator. (Used by symcat.h.)
3401 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3402 echo "configure:3403: checking for preprocessor stringizing operator" >&5
3403 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 cat > conftest.
$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3412 char *s = x(teststring);
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "#teststring" >/dev
/null
2>&1; then
3418 ac_cv_c_stringize
=no
3421 ac_cv_c_stringize
=yes
3427 if test "${ac_cv_c_stringize}" = yes
3429 cat >> confdefs.h
<<\EOF
3430 #define HAVE_STRINGIZE 1
3434 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3437 # Use <inttypes.h> only if it exists,
3438 # doesn't clash with <sys/types.h>, and declares intmax_t.
3439 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3440 echo "configure:3441: checking for inttypes.h" >&5
3441 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 cat > conftest.
$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <sys/types.h>
3448 #include <inttypes.h>
3453 if { (eval echo configure
:3454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455 gcc_cv_header_inttypes_h
=yes
3457 echo "configure: failed program was:" >&5
3458 cat conftest.
$ac_ext >&5
3460 gcc_cv_header_inttypes_h
=no
3465 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3466 if test $gcc_cv_header_inttypes_h = yes; then
3467 cat >> confdefs.h
<<\EOF
3468 #define HAVE_INTTYPES_H 1
3474 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3475 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3476 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
3479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3480 echo "configure:3481: checking for $ac_func" >&5
3481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3484 cat > conftest.
$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 /* System header to define __stub macros and hopefully few prototypes,
3488 which can conflict with char $ac_func(); below. */
3490 /* Override any gcc2 internal prototype to avoid an error. */
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3497 /* The GNU C library defines this for functions which it implements
3498 to always fail with ENOSYS. Some functions are actually named
3499 something starting with __ and the normal name is an alias. */
3500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3508 if { (eval echo configure
:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3510 eval "ac_cv_func_$ac_func=yes"
3512 echo "configure: failed program was:" >&5
3513 cat conftest.
$ac_ext >&5
3515 eval "ac_cv_func_$ac_func=no"
3520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3523 cat >> confdefs.h
<<EOF
3524 #define $ac_tr_func 1
3528 echo "$ac_t""no" 1>&6
3533 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3534 echo "configure:3535: checking for ssize_t" >&5
3535 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 cat > conftest.
$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3541 #include <sys/types.h>
3547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3548 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3550 ac_cv_type_ssize_t
=yes
3553 ac_cv_type_ssize_t
=no
3558 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3559 if test $ac_cv_type_ssize_t = no
; then
3560 cat >> confdefs.h
<<\EOF
3567 # Try to determine the array type of the second argument of getgroups
3568 # for the target system (int or gid_t).
3569 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3570 echo "configure:3571: checking for uid_t in sys/types.h" >&5
3571 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 cat > conftest.
$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 #include <sys/types.h>
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 egrep "uid_t" >/dev
/null
2>&1; then
3582 ac_cv_type_uid_t
=yes
3591 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3592 if test $ac_cv_type_uid_t = no
; then
3593 cat >> confdefs.h
<<\EOF
3597 cat >> confdefs.h
<<\EOF
3603 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3604 echo "configure:3605: checking type of array argument to getgroups" >&5
3605 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 if test "$cross_compiling" = yes; then
3609 ac_cv_type_getgroups
=cross
3611 cat > conftest.
$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3615 /* Thanks to Mike Rendell for this test. */
3616 #include <sys/types.h>
3619 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3624 union { gid_t gval; long lval; } val;
3627 for (i = 0; i < NGID; i++)
3628 gidset[i] = val.gval;
3629 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3631 /* Exit non-zero if getgroups seems to require an array of ints. This
3632 happens when gid_t is short but getgroups modifies an array of ints. */
3633 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3637 if { (eval echo configure
:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3639 ac_cv_type_getgroups
=gid_t
3641 echo "configure: failed program was:" >&5
3642 cat conftest.
$ac_ext >&5
3644 ac_cv_type_getgroups
=int
3649 if test $ac_cv_type_getgroups = cross
; then
3650 cat > conftest.
$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3658 ac_cv_type_getgroups
=gid_t
3661 ac_cv_type_getgroups
=int
3668 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3669 cat >> confdefs.h
<<EOF
3670 #define GETGROUPS_T $ac_cv_type_getgroups
3674 if test "${target}" = "${build}"; then
3675 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3678 # This condition may need some tweaking. It should include all
3679 # targets where the array type of the second argument of getgroups
3680 # is int and the type of gid_t is not equivalent to int.
3681 *-*-sunos* |
*-*-ultrix*)
3682 TARGET_GETGROUPS_T
=int
3685 TARGET_GETGROUPS_T
=gid_t
3691 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3692 echo "configure:3693: checking whether the printf functions support %p" >&5
3693 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 if test "$cross_compiling" = yes; then
3697 gcc_cv_func_printf_ptr
=no
3699 cat > conftest.
$ac_ext <<EOF
3700 #line 3701 "configure"
3701 #include "confdefs.h"
3707 char *p = buf, *q = NULL;
3708 sprintf(buf, "%p", p);
3709 sscanf(buf, "%p", &q);
3713 if { (eval echo configure
:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3715 gcc_cv_func_printf_ptr
=yes
3717 echo "configure: failed program was:" >&5
3718 cat conftest.
$ac_ext >&5
3720 gcc_cv_func_printf_ptr
=no
3725 rm -f core core.
* *.core
3728 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3729 if test $gcc_cv_func_printf_ptr = yes ; then
3730 cat >> confdefs.h
<<\EOF
3731 #define HAVE_PRINTF_PTR 1
3739 { echo "configure: error:
3740 *** UWIN may not be used as a host platform because
3741 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3744 # Under VMS, vfork works very different than on Unix. The standard test
3745 # won't work, and it isn't easily adaptable. It makes more sense to
3747 ac_cv_func_vfork_works
=yes
3750 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3751 echo "configure:3752: checking for pid_t" >&5
3752 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.
$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 #include <sys/types.h>
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3767 ac_cv_type_pid_t
=yes
3775 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3776 if test $ac_cv_type_pid_t = no
; then
3777 cat >> confdefs.h
<<\EOF
3783 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3784 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3785 echo "configure:3786: checking for vfork.h" >&5
3786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 cat > conftest.
$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3794 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3795 { (eval echo configure
:3796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3796 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3797 if test -z "$ac_err"; then
3799 eval "ac_cv_header_$ac_safe=yes"
3802 echo "configure: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3805 eval "ac_cv_header_$ac_safe=no"
3809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3811 cat >> confdefs.h
<<\EOF
3812 #define HAVE_VFORK_H 1
3816 echo "$ac_t""no" 1>&6
3819 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3820 echo "configure:3821: checking for working vfork" >&5
3821 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 if test "$cross_compiling" = yes; then
3825 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3826 echo "configure:3827: checking for vfork" >&5
3827 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.
$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* System header to define __stub macros and hopefully few prototypes,
3834 which can conflict with char vfork(); below. */
3836 /* Override any gcc2 internal prototype to avoid an error. */
3837 /* We use char because int might match the return type of a gcc2
3838 builtin and then its argument prototype would still apply. */
3843 /* The GNU C library defines this for functions which it implements
3844 to always fail with ENOSYS. Some functions are actually named
3845 something starting with __ and the normal name is an alias. */
3846 #if defined (__stub_vfork) || defined (__stub___vfork)
3854 if { (eval echo configure
:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3856 eval "ac_cv_func_vfork=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.
$ac_ext >&5
3861 eval "ac_cv_func_vfork=no"
3866 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3867 echo "$ac_t""yes" 1>&6
3870 echo "$ac_t""no" 1>&6
3873 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3875 cat > conftest.
$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 /* Thanks to Paul Eggert for this test. */
3880 #include <sys/types.h>
3881 #include <sys/stat.h>
3882 #ifdef HAVE_UNISTD_H
3888 /* On some sparc systems, changes by the child to local and incoming
3889 argument registers are propagated back to the parent.
3890 The compiler is told about this with #include <vfork.h>,
3891 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3892 Test for this by using a static variable whose address
3893 is put into a register that is clobbered by the vfork. */
3896 sparc_address_test (int arg)
3898 sparc_address_test (arg) int arg;
3916 pid_t parent = getpid ();
3919 sparc_address_test ();
3924 /* Here is another test for sparc vfork register problems.
3925 This test uses lots of local variables, at least
3926 as many local variables as main has allocated so far
3927 including compiler temporaries. 4 locals are enough for
3928 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3929 A buggy compiler should reuse the register of parent
3930 for one of the local variables, since it will think that
3931 parent can't possibly be used any more in this routine.
3932 Assigning to the local variable will thus munge parent
3933 in the parent process. */
3935 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3936 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3937 /* Convince the compiler that p..p7 are live; otherwise, it might
3938 use the same hardware register for all 8 local variables. */
3939 if (p != p1 || p != p2 || p != p3 || p != p4
3940 || p != p5 || p != p6 || p != p7)
3943 /* On some systems (e.g. IRIX 3.3),
3944 vfork doesn't separate parent from child file descriptors.
3945 If the child closes a descriptor before it execs or exits,
3946 this munges the parent's descriptor as well.
3947 Test for this by closing stdout in the child. */
3948 _exit(close(fileno(stdout)) != 0);
3953 while (wait(&status) != child)
3956 /* Was there some problem with vforking? */
3959 /* Did the child fail? (This shouldn't happen.) */
3962 /* Did the vfork/compiler bug occur? */
3963 || parent != getpid()
3965 /* Did the file descriptor bug occur? */
3966 || fstat(fileno(stdout), &st) != 0
3971 if { (eval echo configure
:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3973 ac_cv_func_vfork_works
=yes
3975 echo "configure: failed program was:" >&5
3976 cat conftest.
$ac_ext >&5
3978 ac_cv_func_vfork_works
=no
3985 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3986 if test $ac_cv_func_vfork_works = no
; then
3987 cat >> confdefs.h
<<\EOF
3993 for ac_func
in getpagesize
3995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3996 echo "configure:3997: checking for $ac_func" >&5
3997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
4000 cat > conftest.
$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 /* System header to define __stub macros and hopefully few prototypes,
4004 which can conflict with char $ac_func(); below. */
4006 /* Override any gcc2 internal prototype to avoid an error. */
4007 /* We use char because int might match the return type of a gcc2
4008 builtin and then its argument prototype would still apply. */
4013 /* The GNU C library defines this for functions which it implements
4014 to always fail with ENOSYS. Some functions are actually named
4015 something starting with __ and the normal name is an alias. */
4016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4024 if { (eval echo configure
:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4026 eval "ac_cv_func_$ac_func=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.
$ac_ext >&5
4031 eval "ac_cv_func_$ac_func=no"
4036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4037 echo "$ac_t""yes" 1>&6
4038 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4039 cat >> confdefs.h
<<EOF
4040 #define $ac_tr_func 1
4044 echo "$ac_t""no" 1>&6
4048 # The test program for the next two tests is the same except for one
4050 cat >ct-mmap.inc
<<'EOF'
4051 #include <sys/types.h>
4052 #include <sys/mman.h>
4058 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4059 # define MAP_ANONYMOUS MAP_ANON
4062 /* This mess was copied from the GNU getpagesize.h. */
4063 #ifndef HAVE_GETPAGESIZE
4064 # ifdef HAVE_UNISTD_H
4065 # include <unistd.h>
4068 /* Assume that all systems that can run configure have sys/param.h. */
4069 # ifndef HAVE_SYS_PARAM_H
4070 # define HAVE_SYS_PARAM_H 1
4073 # ifdef _SC_PAGESIZE
4074 # define getpagesize() sysconf(_SC_PAGESIZE)
4075 # else /* no _SC_PAGESIZE */
4076 # ifdef HAVE_SYS_PARAM_H
4077 # include <sys/param.h>
4078 # ifdef EXEC_PAGESIZE
4079 # define getpagesize() EXEC_PAGESIZE
4080 # else /* no EXEC_PAGESIZE */
4082 # define getpagesize() NBPG * CLSIZE
4085 # endif /* no CLSIZE */
4086 # else /* no NBPG */
4088 # define getpagesize() NBPC
4089 # else /* no NBPC */
4091 # define getpagesize() PAGESIZE
4092 # endif /* PAGESIZE */
4093 # endif /* no NBPC */
4094 # endif /* no NBPG */
4095 # endif /* no EXEC_PAGESIZE */
4096 # else /* no HAVE_SYS_PARAM_H */
4097 # define getpagesize() 8192 /* punt totally */
4098 # endif /* no HAVE_SYS_PARAM_H */
4099 # endif /* no _SC_PAGESIZE */
4101 #endif /* no HAVE_GETPAGESIZE */
4104 # define MAP_FAILED -1
4108 #define perror_exit(str, val) \
4109 do { perror(str); exit(val); } while (0)
4111 /* Some versions of cygwin mmap require that munmap is called with the
4112 same parameters as mmap. GCC expects that this is not the case.
4113 Test for various forms of this problem. Warning - icky signal games. */
4115 static sigset_t unblock_sigsegv;
4125 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4126 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4128 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4129 MAP_PRIVATE, devzero, 0);
4137 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4141 /* Basic functionality test. */
4145 char *x = anonmap (pg);
4146 if (x == (char *) MAP_FAILED)
4147 perror_exit("test 0 mmap", 2);
4151 if (munmap(x, pg) < 0)
4152 perror_exit("test 0 munmap", 3);
4155 /* 1. If we map a 2-page region and unmap its second page, the first page
4160 char *x = anonmap (pg * 2);
4161 if (x == (char *)MAP_FAILED)
4162 perror_exit ("test 1 mmap", 4);
4164 signal (SIGSEGV, sigsegv);
4166 perror_exit ("test 1 fault", 5);
4171 if (munmap (x + pg, pg) < 0)
4172 perror_exit ("test 1 munmap 1", 6);
4175 if (setjmp (r) == 0)
4178 perror_exit ("test 1 no fault", 7);
4180 if (munmap (x, pg) < 0)
4181 perror_exit ("test 1 munmap 2", 8);
4184 /* 2. If we map a 2-page region and unmap its first page, the second
4185 page must remain. */
4189 char *x = anonmap (pg * 2);
4190 if (x == (char *)MAP_FAILED)
4191 perror_exit ("test 2 mmap", 9);
4193 signal (SIGSEGV, sigsegv);
4195 perror_exit ("test 2 fault", 10);
4200 if (munmap (x, pg) < 0)
4201 perror_exit ("test 2 munmap 1", 11);
4205 if (setjmp (r) == 0)
4208 perror_exit ("test 2 no fault", 12);
4211 if (munmap (x+pg, pg) < 0)
4212 perror_exit ("test 2 munmap 2", 13);
4215 /* 3. If we map two adjacent 1-page regions and unmap them both with
4216 one munmap, both must go away.
4218 Getting two adjacent 1-page regions with two mmap calls is slightly
4219 tricky. All OS's tested skip over already-allocated blocks; therefore
4220 we have been careful to unmap all allocated regions in previous tests.
4221 HP/UX allocates pages backward in memory. No OS has yet been observed
4222 to be so perverse as to leave unmapped space between consecutive calls
4231 if (x == (char *)MAP_FAILED)
4232 perror_exit ("test 3 mmap 1", 14);
4234 if (y == (char *)MAP_FAILED)
4235 perror_exit ("test 3 mmap 2", 15);
4240 z = y, y = x, x = z;
4243 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4244 (unsigned long)x, (unsigned long)y);
4249 signal (SIGSEGV, sigsegv);
4251 perror_exit ("test 3 fault", 17);
4256 if (munmap (x, pg*2) < 0)
4257 perror_exit ("test 3 munmap", 18);
4259 if (setjmp (r) == 0)
4262 perror_exit ("test 3 no fault 1", 19);
4265 signal (SIGSEGV, sigsegv);
4266 if (setjmp (r) == 0)
4269 perror_exit ("test 3 no fault 2", 20);
4276 sigemptyset (&unblock_sigsegv);
4277 sigaddset (&unblock_sigsegv, SIGSEGV);
4278 pg = getpagesize ();
4279 #ifndef USE_MAP_ANON
4280 devzero = open ("/dev/zero", O_RDWR);
4282 perror_exit ("open /dev/zero", 1);
4294 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4295 echo "configure:4296: checking for working mmap from /dev/zero" >&5
4296 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 if test "$cross_compiling" = yes; then
4300 # If this is not cygwin, and /dev/zero is a character device, it's probably
4301 # safe to assume it works.
4303 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4304 * ) if test -c /dev
/zero
4305 then ac_cv_func_mmap_dev_zero
=yes
4306 else ac_cv_func_mmap_dev_zero
=no
4310 cat > conftest.
$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 #include "ct-mmap.inc"
4315 if { (eval echo configure
:4316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4317 ac_cv_func_mmap_dev_zero
=yes
4319 echo "configure: failed program was:" >&5
4320 cat conftest.
$ac_ext >&5
4323 then ac_cv_func_mmap_dev_zero
=no
4324 else ac_cv_func_mmap_dev_zero
=buggy
4333 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4334 if test $ac_cv_func_mmap_dev_zero = yes; then
4335 cat >> confdefs.h
<<\EOF
4336 #define HAVE_MMAP_DEV_ZERO 1
4341 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4342 echo "configure:4343: checking for working mmap with MAP_ANON(YMOUS)" >&5
4343 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 if test "$cross_compiling" = yes; then
4347 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4348 # just because it's there. Some SCO Un*xen define it but don't implement it.
4349 ac_cv_func_mmap_anon
=no
4351 cat > conftest.
$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 #define USE_MAP_ANON
4355 #include "ct-mmap.inc"
4357 if { (eval echo configure
:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4359 ac_cv_func_mmap_anon
=yes
4361 echo "configure: failed program was:" >&5
4362 cat conftest.
$ac_ext >&5
4365 then ac_cv_func_mmap_anon
=no
4366 else ac_cv_func_mmap_anon
=buggy
4375 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4376 if test $ac_cv_func_mmap_anon = yes; then
4377 cat >> confdefs.h
<<\EOF
4378 #define HAVE_MMAP_ANON 1
4384 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4385 echo "configure:4386: checking for working mmap of a file" >&5
4386 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 # Create a file one thousand bytes long.
4390 for i
in 1 2 3 4 5 6 7 8 9 0
4391 do for j
in 1 2 3 4 5 6 7 8 9 0
4394 done > conftestdata$$
4396 if test "$cross_compiling" = yes; then
4397 ac_cv_func_mmap_file
=no
4399 cat > conftest.
$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4403 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4404 Richard Henderson and Alexandre Oliva.
4405 Check whether read-only mmap of a plain file works. */
4406 #include <sys/types.h>
4407 #include <sys/stat.h>
4409 #include <sys/mman.h>
4417 fd = open("conftestdata$$", O_RDONLY);
4421 if (fstat (fd, &st))
4424 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4425 if (x == (char *) -1)
4428 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4431 if (munmap(x, st.st_size) < 0)
4437 if { (eval echo configure
:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4439 ac_cv_func_mmap_file
=yes
4441 echo "configure: failed program was:" >&5
4442 cat conftest.
$ac_ext >&5
4444 ac_cv_func_mmap_file
=no
4451 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4452 if test $ac_cv_func_mmap_file = yes; then
4453 cat >> confdefs.h
<<\EOF
4454 #define HAVE_MMAP_FILE 1
4462 am_cv_lib_iconv_ldpath
=
4463 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4464 if test "${with_libiconv_prefix+set}" = set; then
4465 withval
="$with_libiconv_prefix"
4467 for dir
in `echo "$withval" | tr : ' '`; do
4468 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4469 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4475 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4476 echo "configure:4477: checking for iconv" >&5
4477 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4481 am_cv_func_iconv
="no, consider installing GNU libiconv"
4483 cat > conftest.
$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4489 iconv_t cd = iconv_open("","");
4490 iconv(cd,NULL,NULL,NULL,NULL);
4494 if { (eval echo configure
:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4496 am_cv_func_iconv
=yes
4498 echo "configure: failed program was:" >&5
4499 cat conftest.
$ac_ext >&5
4502 if test "$am_cv_func_iconv" != yes; then
4503 am_save_LIBS
="$LIBS"
4504 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4505 cat > conftest.
$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4511 iconv_t cd = iconv_open("","");
4512 iconv(cd,NULL,NULL,NULL,NULL);
4516 if { (eval echo configure
:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4519 am_cv_func_iconv
=yes
4521 echo "configure: failed program was:" >&5
4522 cat conftest.
$ac_ext >&5
4525 LIBS
="$am_save_LIBS"
4530 echo "$ac_t""$am_cv_func_iconv" 1>&6
4531 if test "$am_cv_func_iconv" = yes; then
4532 cat >> confdefs.h
<<\EOF
4533 #define HAVE_ICONV 1
4536 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4537 echo "configure:4538: checking for iconv declaration" >&5
4538 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4542 cat > conftest.
$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4552 #if defined(__STDC__) || defined(__cplusplus)
4553 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4562 if { (eval echo configure
:4563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4564 am_cv_proto_iconv_arg1
=""
4566 echo "configure: failed program was:" >&5
4567 cat conftest.
$ac_ext >&5
4569 am_cv_proto_iconv_arg1
="const"
4572 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);"
4575 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4576 echo "$ac_t""${ac_t:-
4577 }$am_cv_proto_iconv" 1>&6
4578 cat >> confdefs.h
<<EOF
4579 #define ICONV_CONST $am_cv_proto_iconv_arg1
4584 if test "$am_cv_lib_iconv" = yes; then
4585 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4590 # We will need to find libiberty.h and ansidecl.h
4591 saved_CFLAGS
="$CFLAGS"
4592 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4593 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4594 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4595 fprintf_unlocked strstr errno \
4596 malloc realloc calloc free
basename getopt
clock
4598 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4599 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4600 echo "configure:4601: checking whether $ac_func is declared" >&5
4601 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 cat > conftest.
$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4608 #define $ac_tr_decl 1
4610 #include "ansidecl.h"
4615 char *(*pfn) = (char *(*)) $ac_func ;
4619 if { (eval echo configure
:4620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4621 eval "gcc_cv_have_decl_$ac_func=yes"
4623 echo "configure: failed program was:" >&5
4624 cat conftest.
$ac_ext >&5
4626 eval "gcc_cv_have_decl_$ac_func=no"
4631 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4633 #define $ac_tr_decl 1
4637 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4638 #define $ac_tr_decl 0
4644 if test x
= y
; then
4645 cat >> confdefs.h
<<\EOF
4646 #define HAVE_DECL_GETENV 1
4648 cat >> confdefs.h
<<\EOF
4649 #define HAVE_DECL_ATOL 1
4651 cat >> confdefs.h
<<\EOF
4652 #define HAVE_DECL_SBRK 1
4654 cat >> confdefs.h
<<\EOF
4655 #define HAVE_DECL_ABORT 1
4657 cat >> confdefs.h
<<\EOF
4658 #define HAVE_DECL_ATOF 1
4660 cat >> confdefs.h
<<\EOF
4661 #define HAVE_DECL_GETCWD 1
4663 cat >> confdefs.h
<<\EOF
4664 #define HAVE_DECL_GETWD 1
4667 cat >> confdefs.h
<<\EOF
4668 #define HAVE_DECL_STRSIGNAL 1
4670 cat >> confdefs.h
<<\EOF
4671 #define HAVE_DECL_PUTC_UNLOCKED 1
4673 cat >> confdefs.h
<<\EOF
4674 #define HAVE_DECL_FPUTS_UNLOCKED 1
4676 cat >> confdefs.h
<<\EOF
4677 #define HAVE_DECL_FWRITE_UNLOCKED 1
4680 cat >> confdefs.h
<<\EOF
4681 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4683 cat >> confdefs.h
<<\EOF
4684 #define HAVE_DECL_STRSTR 1
4686 cat >> confdefs.h
<<\EOF
4687 #define HAVE_DECL_ERRNO 1
4690 cat >> confdefs.h
<<\EOF
4691 #define HAVE_DECL_MALLOC 1
4693 cat >> confdefs.h
<<\EOF
4694 #define HAVE_DECL_REALLOC 1
4696 cat >> confdefs.h
<<\EOF
4697 #define HAVE_DECL_CALLOC 1
4699 cat >> confdefs.h
<<\EOF
4700 #define HAVE_DECL_FREE 1
4702 cat >> confdefs.h
<<\EOF
4703 #define HAVE_DECL_BASENAME 1
4705 cat >> confdefs.h
<<\EOF
4706 #define HAVE_DECL_GETOPT 1
4708 cat >> confdefs.h
<<\EOF
4709 #define HAVE_DECL_CLOCK 1
4714 for ac_func
in getrlimit setrlimit getrusage
4716 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4717 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4718 echo "configure:4719: checking whether $ac_func is declared" >&5
4719 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 cat > conftest.
$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4726 #define $ac_tr_decl 1
4728 #include "ansidecl.h"
4730 #ifdef HAVE_SYS_RESOURCE_H
4731 #include <sys/resource.h>
4737 char *(*pfn) = (char *(*)) $ac_func ;
4741 if { (eval echo configure
:4742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4743 eval "gcc_cv_have_decl_$ac_func=yes"
4745 echo "configure: failed program was:" >&5
4746 cat conftest.
$ac_ext >&5
4748 eval "gcc_cv_have_decl_$ac_func=no"
4753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4755 #define $ac_tr_decl 1
4759 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4760 #define $ac_tr_decl 0
4766 if test x
= y
; then
4767 cat >> confdefs.h
<<\EOF
4768 #define HAVE_DECL_GETRLIMIT 1
4770 cat >> confdefs.h
<<\EOF
4771 #define HAVE_DECL_SETRLIMIT 1
4773 cat >> confdefs.h
<<\EOF
4774 #define HAVE_DECL_GETRUSAGE 1
4779 for ac_func
in times
4781 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4782 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4783 echo "configure:4784: checking whether $ac_func is declared" >&5
4784 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 cat > conftest.
$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4791 #define $ac_tr_decl 1
4793 #include "ansidecl.h"
4795 #ifdef HAVE_SYS_TIMES_H
4796 #include <sys/times.h>
4802 char *(*pfn) = (char *(*)) $ac_func ;
4806 if { (eval echo configure
:4807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4808 eval "gcc_cv_have_decl_$ac_func=yes"
4810 echo "configure: failed program was:" >&5
4811 cat conftest.
$ac_ext >&5
4813 eval "gcc_cv_have_decl_$ac_func=no"
4818 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4820 #define $ac_tr_decl 1
4824 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4825 #define $ac_tr_decl 0
4831 if test x
= y
; then
4832 cat >> confdefs.h
<<\EOF
4833 #define HAVE_DECL_TIMES 1
4838 # More time-related stuff.
4839 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4840 echo "configure:4841: checking for struct tms" >&5
4841 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4845 cat > conftest.
$ac_ext <<EOF
4846 #line 4847 "configure"
4847 #include "confdefs.h"
4849 #include "ansidecl.h"
4851 #ifdef HAVE_SYS_TIMES_H
4852 #include <sys/times.h>
4859 if { (eval echo configure
:4860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4861 ac_cv_struct_tms
=yes
4863 echo "configure: failed program was:" >&5
4864 cat conftest.
$ac_ext >&5
4871 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4872 if test $ac_cv_struct_tms = yes; then
4873 cat >> confdefs.h
<<\EOF
4874 #define HAVE_STRUCT_TMS 1
4879 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4880 # revisit after autoconf 2.50.
4881 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4882 echo "configure:4883: checking for clock_t" >&5
4883 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4887 cat > conftest.
$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4891 #include "ansidecl.h"
4898 if { (eval echo configure
:4899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4900 gcc_cv_type_clock_t
=yes
4902 echo "configure: failed program was:" >&5
4903 cat conftest.
$ac_ext >&5
4905 gcc_cv_type_clock_t
=no
4910 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4911 if test $gcc_cv_type_clock_t = yes; then
4912 cat >> confdefs.h
<<\EOF
4913 #define HAVE_CLOCK_T 1
4918 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4919 CFLAGS
="$saved_CFLAGS"
4921 # mkdir takes a single argument on some systems.
4922 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4923 echo "configure:4924: checking if mkdir takes one argument" >&5
4924 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 cat > conftest.
$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4931 #include <sys/types.h>
4932 #ifdef HAVE_SYS_STAT_H
4933 # include <sys/stat.h>
4935 #ifdef HAVE_UNISTD_H
4936 # include <unistd.h>
4938 #ifdef HAVE_DIRECT_H
4939 # include <direct.h>
4945 if { (eval echo configure
:4946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4947 gcc_cv_mkdir_takes_one_arg
=no
4949 echo "configure: failed program was:" >&5
4950 cat conftest.
$ac_ext >&5
4952 gcc_cv_mkdir_takes_one_arg
=yes
4957 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4958 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4959 cat >> confdefs.h
<<\EOF
4960 #define MKDIR_TAKES_ONE_ARG 1
4975 build_install_headers_dir
=install-headers-tar
4980 host_truncate_target
=
4983 # Decode the host machine, then the target machine.
4984 # For the host machine, we save the xm_file variable as host_xm_file;
4985 # then we decode the target machine and forget everything else
4986 # that came from the host machine.
4987 for machine
in $build $host $target; do
4988 .
${srcdir}/config.gcc
4991 extra_objs
="${host_extra_objs} ${extra_objs}"
4993 # Default the target-machine variables that were not explicitly set.
4994 if test x
"$tm_file" = x
4995 then tm_file
=$cpu_type/$cpu_type.h
; fi
4997 if test x
"$extra_headers" = x
4998 then extra_headers
=; fi
5000 if test x
$md_file = x
5001 then md_file
=$cpu_type/$cpu_type.md
; fi
5003 if test x
$out_file = x
5004 then out_file
=$cpu_type/$cpu_type.c
; fi
5006 if test x
"$tmake_file" = x
5007 then tmake_file
=$cpu_type/t-
$cpu_type
5010 if test x
"$dwarf2" = xyes
5011 then tm_file
="$tm_file tm-dwarf2.h"
5014 if test x
$float_format = x
5015 then float_format
=i64
5018 if test $float_format = none
5019 then float_h_file
=Makefile.
in
5020 else float_h_file
=float-
$float_format.h
5023 # Say what files are being used for the output code and MD file.
5024 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
5025 echo "Using \`$srcdir/config/$md_file' as machine description file."
5027 # If any of the xm_file variables contain nonexistent files, warn
5028 # about them and drop them.
5031 for x
in $build_xm_file; do
5032 if test -f $srcdir/config
/$x
5034 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5040 for x
in $host_xm_file; do
5041 if test -f $srcdir/config
/$x
5043 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5049 for x
in $xm_file; do
5050 if test -f $srcdir/config
/$x
5052 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5058 for f
in $tm_file; do
5061 if test $count = ax
; then
5062 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5064 echo "Using the following target machine macro files:"
5065 for f
in $tm_file; do
5066 echo " $srcdir/config/$f"
5071 for f
in $host_xm_file; do
5074 if test $count = a
; then
5076 elif test $count = ax
; then
5077 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5079 echo "Using the following host machine macro files:"
5080 for f
in $host_xm_file; do
5081 echo " $srcdir/config/$f"
5085 if test "$host_xm_file" != "$build_xm_file"; then
5087 for f
in $build_xm_file; do
5090 if test $count = a
; then
5092 elif test $count = ax
; then
5093 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5095 echo "Using the following build machine macro files:"
5096 for f
in $build_xm_file; do
5097 echo " $srcdir/config/$f"
5102 if test x
$thread_file = x
; then
5103 if test x
$target_thread_file != x
; then
5104 thread_file
=$target_thread_file
5106 thread_file
='single'
5110 # Look for a file containing extra machine modes.
5111 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
5112 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
5114 cat >> confdefs.h
<<EOF
5115 #define EXTRA_MODES_FILE "$extra_modes"
5118 cat >> confdefs.h
<<\EOF
5119 #define EXTRA_CC_MODES 1
5124 # auto-host.h is the file containing items generated by autoconf and is
5125 # the first file included by config.h.
5126 # If host=build, it is correct to have hconfig include auto-host.h
5127 # as well. If host!=build, we are in error and need to do more
5128 # work to find out the build config parameters.
5129 if test x
$host = x
$build
5131 build_auto
=auto-host.h
5134 # We create a subdir, then run autoconf in the subdir.
5135 # To prevent recursion we set host and build for the new
5136 # invocation of configure to the build for this invocation
5143 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5144 *) realsrcdir
=..
/${srcdir};;
5146 saved_CFLAGS
="${CFLAGS}"
5147 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5148 ${realsrcdir}/configure \
5149 --target=$target_alias --host=$build_alias --build=$build_alias
5150 CFLAGS
="${saved_CFLAGS}"
5152 # We just finished tests for the build machine, so rename
5153 # the file auto-build.h in the gcc directory.
5154 mv auto-host.h ..
/auto-build.h
5157 build_auto
=auto-build.h
5158 FORBUILD
=..
/$build_alias
5162 tm_file
="${tm_file} defaults.h"
5163 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5164 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5165 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5167 # Truncate the target if necessary
5168 if test x
$host_truncate_target != x
; then
5169 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5172 # Get the version trigger filename from the toplevel
5173 if test "${with_gcc_version_trigger+set}" = set; then
5174 gcc_version_trigger
=$with_gcc_version_trigger
5176 gcc_version_trigger
=${srcdir}/version.c
5178 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5179 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5181 # Compile in configure arguments.
5182 if test -f configargs.h
; then
5183 # Being re-configured.
5184 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5185 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5187 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5189 cat > configargs.h
<<EOF
5190 /* Generated automatically. */
5191 static const char configuration_arguments[] = "$gcc_config_arguments";
5192 static const char thread_model[] = "$thread_file";
5195 # Internationalization
5197 VERSION
="$gcc_version"
5201 # Enable NLS support by default
5202 # Check whether --enable-nls or --disable-nls was given.
5203 if test "${enable_nls+set}" = set; then
5204 enableval
="$enable_nls"
5211 # if cross compiling, disable NLS support.
5212 # It's not worth the trouble, at least for now.
5214 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5215 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5221 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5222 echo "configure:5223: checking for library containing strerror" >&5
5223 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5226 ac_func_search_save_LIBS
="$LIBS"
5227 ac_cv_search_strerror
="no"
5228 cat > conftest.
$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */
5240 if { (eval echo configure
:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5242 ac_cv_search_strerror
="none required"
5244 echo "configure: failed program was:" >&5
5245 cat conftest.
$ac_ext >&5
5248 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5249 LIBS
="-l$i $ac_func_search_save_LIBS"
5250 cat > conftest.
$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5253 /* Override any gcc2 internal prototype to avoid an error. */
5254 /* We use char because int might match the return type of a gcc2
5255 builtin and then its argument prototype would still apply. */
5262 if { (eval echo configure
:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5264 ac_cv_search_strerror
="-l$i"
5267 echo "configure: failed program was:" >&5
5268 cat conftest.
$ac_ext >&5
5272 LIBS
="$ac_func_search_save_LIBS"
5275 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5276 if test "$ac_cv_search_strerror" != "no"; then
5277 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5284 echo $ac_n "checking for working const""... $ac_c" 1>&6
5285 echo "configure:5286: checking for working const" >&5
5286 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 cat > conftest.
$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5295 /* Ultrix mips cc rejects this. */
5296 typedef int charset[2]; const charset x;
5297 /* SunOS 4.1.1 cc rejects this. */
5298 char const *const *ccp;
5300 /* NEC SVR4.0.2 mips cc rejects this. */
5301 struct point {int x, y;};
5302 static struct point const zero = {0,0};
5303 /* AIX XL C 1.02.0.0 rejects this.
5304 It does not let you subtract one const X* pointer from another in an arm
5305 of an if-expression whose if-part is not a constant expression */
5306 const char *g = "string";
5307 ccp = &g + (g ? g-g : 0);
5308 /* HPUX 7.0 cc rejects these. */
5311 ccp = (char const *const *) p;
5312 { /* SCO 3.2v4 cc rejects this. */
5314 char const *s = 0 ? (char *) 0 : (char const *) 0;
5318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5320 const int *foo = &x[0];
5323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5324 typedef const int *iptr;
5328 { /* AIX XL C 1.02.0.0 rejects this saying
5329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5330 struct s { int j; const int *ap[3]; };
5331 struct s *b; b->j = 5;
5333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5339 if { (eval echo configure
:5340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5343 echo "configure: failed program was:" >&5
5344 cat conftest.
$ac_ext >&5
5351 echo "$ac_t""$ac_cv_c_const" 1>&6
5352 if test $ac_cv_c_const = no
; then
5353 cat >> confdefs.h
<<\EOF
5359 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5360 echo "configure:5361: checking for off_t" >&5
5361 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 cat > conftest.
$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5367 #include <sys/types.h>
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5376 ac_cv_type_off_t
=yes
5384 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5385 if test $ac_cv_type_off_t = no
; then
5386 cat >> confdefs.h
<<\EOF
5392 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5393 echo "configure:5394: checking for size_t" >&5
5394 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.
$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 #include <sys/types.h>
5406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5407 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5409 ac_cv_type_size_t
=yes
5412 ac_cv_type_size_t
=no
5417 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5418 if test $ac_cv_type_size_t = no
; then
5419 cat >> confdefs.h
<<\EOF
5420 #define size_t unsigned
5425 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5426 # for constant arguments. Useless!
5427 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5428 echo "configure:5429: checking for working alloca.h" >&5
5429 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 cat > conftest.
$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5437 char *p = alloca(2 * sizeof(int));
5440 if { (eval echo configure
:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5442 ac_cv_header_alloca_h
=yes
5444 echo "configure: failed program was:" >&5
5445 cat conftest.
$ac_ext >&5
5447 ac_cv_header_alloca_h
=no
5452 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5453 if test $ac_cv_header_alloca_h = yes; then
5454 cat >> confdefs.h
<<\EOF
5455 #define HAVE_ALLOCA_H 1
5460 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5461 echo "configure:5462: checking for alloca" >&5
5462 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.
$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5470 # define alloca __builtin_alloca
5473 # include <malloc.h>
5474 # define alloca _alloca
5477 # include <alloca.h>
5482 # ifndef alloca /* predefined by HP cc +Olibcalls */
5491 char *p = (char *) alloca(1);
5494 if { (eval echo configure
:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5496 ac_cv_func_alloca_works
=yes
5498 echo "configure: failed program was:" >&5
5499 cat conftest.
$ac_ext >&5
5501 ac_cv_func_alloca_works
=no
5506 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5507 if test $ac_cv_func_alloca_works = yes; then
5508 cat >> confdefs.h
<<\EOF
5509 #define HAVE_ALLOCA 1
5514 if test $ac_cv_func_alloca_works = no
; then
5515 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5516 # that cause trouble. Some versions do not even contain alloca or
5517 # contain a buggy version. If you still want to use their alloca,
5518 # use ar to extract alloca.o from them instead of compiling alloca.c.
5519 ALLOCA
=alloca.
${ac_objext}
5520 cat >> confdefs.h
<<\EOF
5525 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5526 echo "configure:5527: checking whether alloca needs Cray hooks" >&5
5527 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 cat > conftest.
$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 #if defined(CRAY) && ! defined(CRAY2)
5540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 egrep "webecray" >/dev
/null
2>&1; then
5552 echo "$ac_t""$ac_cv_os_cray" 1>&6
5553 if test $ac_cv_os_cray = yes; then
5554 for ac_func
in _getb67 GETB67 getb67
; do
5555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.
$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char $ac_func(); below. */
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5584 if { (eval echo configure
:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5586 eval "ac_cv_func_$ac_func=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.
$ac_ext >&5
5591 eval "ac_cv_func_$ac_func=no"
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5598 cat >> confdefs.h
<<EOF
5599 #define CRAY_STACKSEG_END $ac_func
5604 echo "$ac_t""no" 1>&6
5610 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5611 echo "configure:5612: checking stack direction for C alloca" >&5
5612 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 if test "$cross_compiling" = yes; then
5616 ac_cv_c_stack_direction
=0
5618 cat > conftest.
$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 find_stack_direction ()
5623 static char *addr = 0;
5628 return find_stack_direction ();
5631 return (&dummy > addr) ? 1 : -1;
5635 exit (find_stack_direction() < 0);
5638 if { (eval echo configure
:5639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5640 ac_cv_c_stack_direction
=1
5642 echo "configure: failed program was:" >&5
5643 cat conftest.
$ac_ext >&5
5645 ac_cv_c_stack_direction
=-1
5652 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5653 cat >> confdefs.h
<<EOF
5654 #define STACK_DIRECTION $ac_cv_c_stack_direction
5660 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5661 echo "configure:5662: checking whether we are using the GNU C Library 2.1 or newer" >&5
5662 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.
$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5669 #include <features.h>
5670 #ifdef __GNU_LIBRARY__
5671 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5680 ac_cv_gnu_library_2_1
=yes
5683 ac_cv_gnu_library_2_1
=no
5691 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5693 GLIBC21
="$ac_cv_gnu_library_2_1"
5697 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5698 stdlib.h string.h unistd.h sys
/param.h
5700 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5702 echo "configure:5703: checking for $ac_hdr" >&5
5703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5706 cat > conftest.
$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5711 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5712 { (eval echo configure
:5713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5713 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5714 if test -z "$ac_err"; then
5716 eval "ac_cv_header_$ac_safe=yes"
5719 echo "configure: failed program was:" >&5
5720 cat conftest.
$ac_ext >&5
5722 eval "ac_cv_header_$ac_safe=no"
5726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5727 echo "$ac_t""yes" 1>&6
5728 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5729 cat >> confdefs.h
<<EOF
5730 #define $ac_tr_hdr 1
5734 echo "$ac_t""no" 1>&6
5738 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5739 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5740 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5743 echo "configure:5744: checking for $ac_func" >&5
5744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5745 echo $ac_n "(cached) $ac_c" 1>&6
5747 cat > conftest.
$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 /* System header to define __stub macros and hopefully few prototypes,
5751 which can conflict with char $ac_func(); below. */
5753 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */
5760 /* The GNU C library defines this for functions which it implements
5761 to always fail with ENOSYS. Some functions are actually named
5762 something starting with __ and the normal name is an alias. */
5763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5771 if { (eval echo configure
:5772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5773 eval "ac_cv_func_$ac_func=yes"
5775 echo "configure: failed program was:" >&5
5776 cat conftest.
$ac_ext >&5
5778 eval "ac_cv_func_$ac_func=no"
5783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5784 echo "$ac_t""yes" 1>&6
5785 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5786 cat >> confdefs.h
<<EOF
5787 #define $ac_tr_func 1
5791 echo "$ac_t""no" 1>&6
5798 am_cv_lib_iconv_ldpath
=
5799 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5800 if test "${with_libiconv_prefix+set}" = set; then
5801 withval
="$with_libiconv_prefix"
5803 for dir
in `echo "$withval" | tr : ' '`; do
5804 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5805 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5811 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5812 echo "configure:5813: checking for iconv" >&5
5813 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5817 am_cv_func_iconv
="no, consider installing GNU libiconv"
5819 cat > conftest.
$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5825 iconv_t cd = iconv_open("","");
5826 iconv(cd,NULL,NULL,NULL,NULL);
5830 if { (eval echo configure
:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5832 am_cv_func_iconv
=yes
5834 echo "configure: failed program was:" >&5
5835 cat conftest.
$ac_ext >&5
5838 if test "$am_cv_func_iconv" != yes; then
5839 am_save_LIBS
="$LIBS"
5840 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5841 cat > conftest.
$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5847 iconv_t cd = iconv_open("","");
5848 iconv(cd,NULL,NULL,NULL,NULL);
5852 if { (eval echo configure
:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5855 am_cv_func_iconv
=yes
5857 echo "configure: failed program was:" >&5
5858 cat conftest.
$ac_ext >&5
5861 LIBS
="$am_save_LIBS"
5866 echo "$ac_t""$am_cv_func_iconv" 1>&6
5867 if test "$am_cv_func_iconv" = yes; then
5868 cat >> confdefs.h
<<\EOF
5869 #define HAVE_ICONV 1
5872 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5873 echo "configure:5874: checking for iconv declaration" >&5
5874 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.
$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5888 #if defined(__STDC__) || defined(__cplusplus)
5889 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5898 if { (eval echo configure
:5899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5900 am_cv_proto_iconv_arg1
=""
5902 echo "configure: failed program was:" >&5
5903 cat conftest.
$ac_ext >&5
5905 am_cv_proto_iconv_arg1
="const"
5908 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);"
5911 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5912 echo "$ac_t""${ac_t:-
5913 }$am_cv_proto_iconv" 1>&6
5914 cat >> confdefs.h
<<EOF
5915 #define ICONV_CONST $am_cv_proto_iconv_arg1
5920 if test "$am_cv_lib_iconv" = yes; then
5921 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5926 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5927 echo "configure:5928: checking for nl_langinfo and CODESET" >&5
5928 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5929 echo $ac_n "(cached) $ac_c" 1>&6
5931 cat > conftest.
$ac_ext <<EOF
5932 #line 5933 "configure"
5933 #include "confdefs.h"
5934 #include <langinfo.h>
5936 char* cs = nl_langinfo(CODESET);
5939 if { (eval echo configure
:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5941 am_cv_langinfo_codeset
=yes
5943 echo "configure: failed program was:" >&5
5944 cat conftest.
$ac_ext >&5
5946 am_cv_langinfo_codeset
=no
5952 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5953 if test $am_cv_langinfo_codeset = yes; then
5954 cat >> confdefs.h
<<\EOF
5955 #define HAVE_LANGINFO_CODESET 1
5960 if test $ac_cv_header_locale_h = yes; then
5961 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5962 echo "configure:5963: checking for LC_MESSAGES" >&5
5963 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5966 cat > conftest.
$ac_ext <<EOF
5967 #line 5968 "configure"
5968 #include "confdefs.h"
5974 if { (eval echo configure
:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5976 am_cv_val_LC_MESSAGES
=yes
5978 echo "configure: failed program was:" >&5
5979 cat conftest.
$ac_ext >&5
5981 am_cv_val_LC_MESSAGES
=no
5986 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5987 if test $am_cv_val_LC_MESSAGES = yes; then
5988 cat >> confdefs.h
<<\EOF
5989 #define HAVE_LC_MESSAGES 1
5994 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5995 echo "configure:5996: checking whether NLS is requested" >&5
5996 # Check whether --enable-nls or --disable-nls was given.
5997 if test "${enable_nls+set}" = set; then
5998 enableval
="$enable_nls"
6004 echo "$ac_t""$USE_NLS" 1>&6
6007 BUILD_INCLUDED_LIBINTL
=no
6008 USE_INCLUDED_LIBINTL
=no
6012 if test "$USE_NLS" = "yes"; then
6013 cat >> confdefs.h
<<\EOF
6014 #define ENABLE_NLS 1
6017 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
6018 echo "configure:6019: checking whether included gettext is requested" >&5
6019 # Check whether --with-included-gettext or --without-included-gettext was given.
6020 if test "${with_included_gettext+set}" = set; then
6021 withval
="$with_included_gettext"
6022 nls_cv_force_use_gnu_gettext
=$withval
6024 nls_cv_force_use_gnu_gettext
=no
6027 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6029 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6030 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6036 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6037 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6038 echo "configure:6039: checking for libintl.h" >&5
6039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 cat > conftest.
$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 #include <libintl.h>
6047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6048 { (eval echo configure
:6049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6050 if test -z "$ac_err"; then
6052 eval "ac_cv_header_$ac_safe=yes"
6055 echo "configure: failed program was:" >&5
6056 cat conftest.
$ac_ext >&5
6058 eval "ac_cv_header_$ac_safe=no"
6062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6064 cat >> confdefs.h
<<\EOF
6065 #define HAVE_LIBINTL_H 1
6068 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6069 echo "configure:6070: checking for GNU gettext in libc" >&5
6070 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6073 cat > conftest.
$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <libintl.h>
6077 extern int _nl_msg_cat_cntr;
6079 bindtextdomain ("", "");
6080 return (int) gettext ("") + _nl_msg_cat_cntr
6083 if { (eval echo configure
:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6085 gt_cv_func_gnugettext1_libc
=yes
6087 echo "configure: failed program was:" >&5
6088 cat conftest.
$ac_ext >&5
6090 gt_cv_func_gnugettext1_libc
=no
6095 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6097 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6098 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6099 echo "configure:6100: checking for GNU gettext in libintl" >&5
6100 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 gt_save_LIBS
="$LIBS"
6104 LIBS
="$LIBS -lintl $LIBICONV"
6105 cat > conftest.
$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6108 #include <libintl.h>
6109 extern int _nl_msg_cat_cntr;
6111 bindtextdomain ("", "");
6112 return (int) gettext ("") + _nl_msg_cat_cntr
6115 if { (eval echo configure
:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6117 gt_cv_func_gnugettext1_libintl
=yes
6119 echo "configure: failed program was:" >&5
6120 cat conftest.
$ac_ext >&5
6122 gt_cv_func_gnugettext1_libintl
=no
6125 LIBS
="$gt_save_LIBS"
6128 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6131 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6132 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6133 && test "$PACKAGE" != gettext; }; then
6134 cat >> confdefs.h
<<\EOF
6135 #define HAVE_GETTEXT 1
6139 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6140 INTLLIBS
="-lintl $LIBICONV"
6143 gt_save_LIBS
="$LIBS"
6144 LIBS
="$LIBS $INTLLIBS"
6145 for ac_func
in dcgettext
6147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6148 echo "configure:6149: checking for $ac_func" >&5
6149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6152 cat > conftest.
$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 /* System header to define __stub macros and hopefully few prototypes,
6156 which can conflict with char $ac_func(); below. */
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6165 /* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
6168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6176 if { (eval echo configure
:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6178 eval "ac_cv_func_$ac_func=yes"
6180 echo "configure: failed program was:" >&5
6181 cat conftest.
$ac_ext >&5
6183 eval "ac_cv_func_$ac_func=no"
6188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6191 cat >> confdefs.h
<<EOF
6192 #define $ac_tr_func 1
6196 echo "$ac_t""no" 1>&6
6200 LIBS
="$gt_save_LIBS"
6202 # Extract the first word of "msgfmt", so it can be a program name with args.
6203 set dummy msgfmt
; ac_word
=$2
6204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6205 echo "configure:6206: checking for $ac_word" >&5
6206 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6211 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6215 for ac_dir
in $PATH; do
6216 test -z "$ac_dir" && ac_dir
=.
6217 if test -f $ac_dir/$ac_word; then
6218 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6219 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6225 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6229 MSGFMT
="$ac_cv_path_MSGFMT"
6230 if test "$MSGFMT" != ":"; then
6231 echo "$ac_t""$MSGFMT" 1>&6
6233 echo "$ac_t""no" 1>&6
6236 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6237 set dummy gmsgfmt
; ac_word
=$2
6238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6239 echo "configure:6240: checking for $ac_word" >&5
6240 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6241 echo $ac_n "(cached) $ac_c" 1>&6
6245 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6248 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6251 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6253 for ac_dir
in $ac_dummy; do
6254 test -z "$ac_dir" && ac_dir
=.
6255 if test -f $ac_dir/$ac_word; then
6256 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6261 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6265 GMSGFMT
="$ac_cv_path_GMSGFMT"
6266 if test -n "$GMSGFMT"; then
6267 echo "$ac_t""$GMSGFMT" 1>&6
6269 echo "$ac_t""no" 1>&6
6273 # Extract the first word of "xgettext", so it can be a program name with args.
6274 set dummy xgettext
; ac_word
=$2
6275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6276 echo "configure:6277: checking for $ac_word" >&5
6277 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6282 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6285 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6286 for ac_dir
in $PATH; do
6287 test -z "$ac_dir" && ac_dir
=.
6288 if test -f $ac_dir/$ac_word; then
6289 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6290 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6296 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6300 XGETTEXT
="$ac_cv_path_XGETTEXT"
6301 if test "$XGETTEXT" != ":"; then
6302 echo "$ac_t""$XGETTEXT" 1>&6
6304 echo "$ac_t""no" 1>&6
6312 echo "$ac_t""no" 1>&6
6316 if test "$CATOBJEXT" = "NONE"; then
6317 nls_cv_use_gnu_gettext
=yes
6321 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6322 INTLOBJS
="\$(GETTOBJS)"
6323 # Extract the first word of "msgfmt", so it can be a program name with args.
6324 set dummy msgfmt
; ac_word
=$2
6325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_word" >&5
6327 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6332 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6335 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6336 for ac_dir
in $PATH; do
6337 test -z "$ac_dir" && ac_dir
=.
6338 if test -f $ac_dir/$ac_word; then
6339 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6340 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6346 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6350 MSGFMT
="$ac_cv_path_MSGFMT"
6351 if test "$MSGFMT" != ":"; then
6352 echo "$ac_t""$MSGFMT" 1>&6
6354 echo "$ac_t""no" 1>&6
6357 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6358 set dummy gmsgfmt
; ac_word
=$2
6359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6360 echo "configure:6361: checking for $ac_word" >&5
6361 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6362 echo $ac_n "(cached) $ac_c" 1>&6
6366 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6369 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6374 for ac_dir
in $ac_dummy; do
6375 test -z "$ac_dir" && ac_dir
=.
6376 if test -f $ac_dir/$ac_word; then
6377 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6382 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6386 GMSGFMT
="$ac_cv_path_GMSGFMT"
6387 if test -n "$GMSGFMT"; then
6388 echo "$ac_t""$GMSGFMT" 1>&6
6390 echo "$ac_t""no" 1>&6
6393 # Extract the first word of "xgettext", so it can be a program name with args.
6394 set dummy xgettext
; ac_word
=$2
6395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6396 echo "configure:6397: checking for $ac_word" >&5
6397 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6398 echo $ac_n "(cached) $ac_c" 1>&6
6402 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6405 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6406 for ac_dir
in $PATH; do
6407 test -z "$ac_dir" && ac_dir
=.
6408 if test -f $ac_dir/$ac_word; then
6409 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6410 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6416 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6420 XGETTEXT
="$ac_cv_path_XGETTEXT"
6421 if test "$XGETTEXT" != ":"; then
6422 echo "$ac_t""$XGETTEXT" 1>&6
6424 echo "$ac_t""no" 1>&6
6428 BUILD_INCLUDED_LIBINTL
=yes
6429 USE_INCLUDED_LIBINTL
=yes
6431 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6432 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6433 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6436 if test "$GMSGFMT" != ":"; then
6437 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6440 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6445 if test "$XGETTEXT" != ":"; then
6446 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6449 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6459 if test "$PACKAGE" = gettext; then
6460 BUILD_INCLUDED_LIBINTL
=yes
6463 for ac_prog
in bison
6465 # Extract the first word of "$ac_prog", so it can be a program name with args.
6466 set dummy
$ac_prog; ac_word
=$2
6467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6468 echo "configure:6469: checking for $ac_word" >&5
6469 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6472 if test -n "$INTLBISON"; then
6473 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6475 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6477 for ac_dir
in $ac_dummy; do
6478 test -z "$ac_dir" && ac_dir
=.
6479 if test -f $ac_dir/$ac_word; then
6480 ac_cv_prog_INTLBISON
="$ac_prog"
6487 INTLBISON
="$ac_cv_prog_INTLBISON"
6488 if test -n "$INTLBISON"; then
6489 echo "$ac_t""$INTLBISON" 1>&6
6491 echo "$ac_t""no" 1>&6
6494 test -n "$INTLBISON" && break
6497 if test -z "$INTLBISON"; then
6500 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6501 echo "configure:6502: checking version of bison" >&5
6502 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6503 case $ac_prog_version in
6504 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6505 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6506 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6507 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6509 echo "$ac_t""$ac_prog_version" 1>&6
6511 if test $ac_verc_fail = yes; then
6524 if test $USE_INCLUDED_LIBINTL = yes; then
6525 cat >> confdefs.h
<<\EOF
6526 #define USE_INCLUDED_LIBINTL 1
6532 nls_cv_header_libgt
=
6544 if test "x$CATOBJEXT" != x
; then
6545 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6546 echo "configure:6547: checking for catalogs to be installed" >&5
6547 # Look for .po and .gmo files in the source directory.
6550 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6551 # If there aren't any .gmo files the shell will give us the
6552 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6554 case "$cat" in *\
**)
6557 # The quadruple backslash is collapsed to a double backslash
6558 # by the backticks, then collapsed again by the double quotes,
6559 # leaving us with one backslash in the sed expression (right
6560 # before the dot that mustn't act as a wildcard). The dot to
6561 # be escaped in the second expression is hiding inside CATOBJEXT.
6562 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6563 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6564 # The user is allowed to set LINGUAS to a list of languages to
6565 # install catalogs for. If it's empty that means "all of them."
6566 if test "x$LINGUAS" = x
; then
6567 CATALOGS
="$CATALOGS $cat"
6568 XLINGUAS
="$XLINGUAS $lang"
6570 case "$LINGUAS" in *$lang*)
6571 CATALOGS
="$CATALOGS $cat"
6572 XLINGUAS
="$XLINGUAS $lang"
6578 echo "$ac_t""$LINGUAS" 1>&6
6582 if test -n "$ac_aux_dir"; then
6583 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6585 if test -z "$MKINSTALLDIRS"; then
6586 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6590 INTL_LIBTOOL_SUFFIX_PREFIX
=
6594 # Windows32 Registry support for specifying GCC installation paths.
6595 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6596 if test "${enable_win32_registry+set}" = set; then
6597 enableval
="$enable_win32_registry"
6602 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6603 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6604 echo "configure:6605: checking whether windows registry support is requested" >&5
6605 if test "x$enable_win32_registry" != xno
; then
6606 cat >> confdefs.h
<<\EOF
6607 #define ENABLE_WIN32_REGISTRY 1
6610 echo "$ac_t""yes" 1>&6
6612 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6613 echo "configure:6614: checking for library containing RegOpenKeyExA" >&5
6614 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 ac_func_search_save_LIBS
="$LIBS"
6618 ac_cv_search_RegOpenKeyExA
="no"
6619 cat > conftest.
$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char RegOpenKeyExA();
6631 if { (eval echo configure
:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6633 ac_cv_search_RegOpenKeyExA
="none required"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.
$ac_ext >&5
6639 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6640 LIBS
="-l$i $ac_func_search_save_LIBS"
6641 cat > conftest.
$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* Override any gcc2 internal prototype to avoid an error. */
6645 /* We use char because int might match the return type of a gcc2
6646 builtin and then its argument prototype would still apply. */
6647 char RegOpenKeyExA();
6653 if { (eval echo configure
:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6655 ac_cv_search_RegOpenKeyExA
="-l$i"
6658 echo "configure: failed program was:" >&5
6659 cat conftest.
$ac_ext >&5
6663 LIBS
="$ac_func_search_save_LIBS"
6666 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6667 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6668 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6674 echo "$ac_t""no" 1>&6
6677 # Check if user specified a different registry key.
6678 case "x${enable_win32_registry}" in
6681 gcc_cv_win32_registry_key
="$VERSION"
6684 # no registry lookup.
6685 gcc_cv_win32_registry_key
=''
6688 # user-specified key.
6689 gcc_cv_win32_registry_key
="$enable_win32_registry"
6693 if test "x$enable_win32_registry" != xno
; then
6694 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6695 echo "configure:6696: checking registry key on windows hosts" >&5
6696 cat >> confdefs.h
<<EOF
6697 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6700 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6705 # Get an absolute path to the GCC top-level source directory
6706 holddir
=`${PWDCMD-pwd}`
6708 topdir
=`${PWDCMD-pwd}`
6711 # Conditionalize the makefile for this host machine.
6712 # Make-host contains the concatenation of all host makefile fragments
6713 # [there can be more than one]. This file is built by configure.frag.
6714 host_overrides
=Make-host
6715 dep_host_xmake_file
=
6716 for f
in ..
${host_xmake_file}
6718 if test -f ${srcdir}/config
/$f
6720 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6724 # Conditionalize the makefile for this target machine.
6725 # Make-target contains the concatenation of all host makefile fragments
6726 # [there can be more than one]. This file is built by configure.frag.
6727 target_overrides
=Make-target
6729 for f
in ..
${tmake_file}
6731 if test -f ${srcdir}/config
/$f
6733 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6737 # If the host doesn't support symlinks, modify CC in
6738 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6739 # Otherwise, we can use "CC=$(CC)".
6741 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6743 cc_set_by_configure
="\$(CC)"
6744 quoted_cc_set_by_configure
="\$(CC)"
6745 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6746 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6749 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6751 symbolic_link
="cp -p"
6755 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6756 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6757 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6758 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6762 out_object_file
=`basename $out_file .c`.o
6765 for f
in $tm_file; do
6768 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6770 tm_file_list
="${tm_file_list} \$(srcdir)/$f" ;;
6771 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6776 for f
in $tm_p_file; do
6777 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6781 for f
in $host_xm_file; do
6784 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6786 host_xm_file_list
="${host_xm_file_list} $f" ;;
6788 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6789 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6794 for f
in $build_xm_file; do
6797 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6798 auto-build.h | auto-host.h
)
6799 build_xm_file_list
="${build_xm_file_list} $f" ;;
6801 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6802 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6806 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6807 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6810 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6811 if test x
$host != x
$target
6813 CROSS
="-DCROSS_COMPILE"
6815 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6816 case "$host","$target" in
6817 i?
86-*-*,x86_64-
*-* \
6818 | powerpc
*-*-*,powerpc64
*-*-*)
6819 CROSS
="$CROSS -DNATIVE_CROSS" ;;
6823 # If this is a cross-compiler that does not
6824 # have its own set of headers then define
6827 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6828 # This prevents libgcc2 from containing any code which requires libc
6831 if test x
$host != x
$target && test x
$with_headers = x
; then
6832 inhibit_libc
=-Dinhibit_libc
6834 if test x
$with_newlib = xyes
; then
6835 inhibit_libc
=-Dinhibit_libc
6840 # When building gcc with a cross-compiler, we need to adjust things so
6841 # that the generator programs are still built with the native compiler.
6842 # Also, we cannot run fixincludes or fix-header.
6843 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6846 # These are the normal (build=host) settings:
6848 BUILD_PREFIX_1
=ignore-
6850 HOST_CFLAGS
='$(ALL_CFLAGS)'
6852 STMP_FIXINC
=stmp-fixinc
6853 STMP_FIXPROTO
=stmp-fixproto
6855 # And these apply if build != host.
6856 if test x
$build != x
$host
6859 BUILD_PREFIX_1
=build-
6860 HOST_CC
='$(CC_FOR_BUILD)'
6861 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6867 # Expand extra_headers to include complete path.
6868 # This substitutes for lots of t-* files.
6870 if test "x$extra_headers" = x
6873 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6874 for file in $extra_headers;
6876 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6880 if test x
$use_collect2 = xno
; then
6884 # Add a definition of USE_COLLECT2 if system wants one.
6885 if test x
$use_collect2 != x
6887 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6888 xm_defines
="${xm_defines} USE_COLLECT2"
6891 # If we have gas in the build tree, make a link to it.
6892 if test -f ..
/gas
/Makefile
; then
6893 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6896 # If we have nm and objdump in the build tree, make a link to them.
6897 if test -f ..
/binutils
/Makefile
; then
6898 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6899 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6902 # If we have ld in the build tree, make a link to it.
6903 if test -f ..
/ld
/Makefile
; then
6904 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6907 # Figure out what assembler we will be using.
6908 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6909 echo "configure:6910: checking what assembler to use" >&5
6911 gcc_cv_gas_major_version
=
6912 gcc_cv_gas_minor_version
=
6913 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6914 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6915 if test -x "$DEFAULT_ASSEMBLER"; then
6916 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6917 elif test -x "$AS"; then
6919 elif test -x as
$host_exeext; then
6920 # Build using assembler in the current directory.
6921 gcc_cv_as
=.
/as
$host_exeext
6922 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6923 # Single tree build which includes gas.
6924 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
6926 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6927 if test x
$gcc_cv_gas_version != x
; then
6931 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6932 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6933 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
6936 if test "x$gcc_cv_as" = x
; then
6937 # Search the same directories that the installed compiler will
6938 # search. Else we may find the wrong assembler and lose. If we
6939 # do not find a suitable assembler binary, then try the user's
6942 # Also note we have to check MD_EXEC_PREFIX before checking the
6943 # user's path. Unfortunately, there is no good way to get at the
6944 # value of MD_EXEC_PREFIX here. So we do a brute force search
6945 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6946 # to be fixed as part of the make/configure rewrite too.
6948 if test "x$exec_prefix" = xNONE
; then
6949 if test "x$prefix" = xNONE
; then
6950 test_prefix
=/usr
/local
6955 test_prefix
=$exec_prefix
6958 # If the loop below does not find an assembler, then use whatever
6959 # one we can find in the users's path.
6961 if test "x$program_prefix" != xNONE
; then
6962 gcc_cv_as
=${program_prefix}as
$host_exeext
6964 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
6967 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
6968 $test_prefix/lib/gcc-lib/$target_alias \
6969 /usr/lib/gcc/$target_alias/$gcc_version \
6970 /usr/lib/gcc/$target_alias \
6971 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
6972 $test_prefix/$target_alias/bin"
6974 if test x
$host = x
$target; then
6975 test_dirs
="$test_dirs \
6980 /bsd43/usr/lib/cmplrs/cc \
6981 /usr/cross64/usr/bin \
6982 /usr/lib/cmplrs/cc \
6983 /sysv/usr/lib/cmplrs/cc \
6984 /svr4/usr/lib/cmplrs/cc \
6988 for dir
in $test_dirs; do
6989 if test -x $dir/as
$host_exeext; then
6990 gcc_cv_as
=$dir/as
$host_exeext
6995 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6996 echo "$ac_t"""newly built gas
"" 1>&6
6998 echo "$ac_t""$gcc_cv_as" 1>&6
7001 # Figure out what linker we will be using.
7002 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
7003 echo "configure:7004: checking what linker to use" >&5
7005 gcc_cv_gld_major_version
=
7006 gcc_cv_gld_minor_version
=
7007 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
7008 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
7009 if test -x "$DEFAULT_LINKER"; then
7010 gcc_cv_ld
="$DEFAULT_LINKER"
7011 elif test -x "$LD"; then
7013 elif test -x ld
$host_exeext; then
7014 # Build using linker in the current directory.
7015 gcc_cv_ld
=.
/ld
$host_exeext
7016 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
7017 # Single tree build which includes ld.
7018 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
7020 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
7021 if test x
$gcc_cv_gld_version != x
; then
7025 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
7026 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
7029 if test "x$gcc_cv_ld" = x
; then
7030 # Search the same directories that the installed compiler will
7031 # search. Else we may find the wrong linker and lose. If we
7032 # do not find a suitable linker binary, then try the user's
7035 # Also note we have to check MD_EXEC_PREFIX before checking the
7036 # user's path. Unfortunately, there is no good way to get at the
7037 # value of MD_EXEC_PREFIX here. So we do a brute force search
7038 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
7039 # to be fixed as part of the make/configure rewrite too.
7041 if test "x$exec_prefix" = xNONE
; then
7042 if test "x$prefix" = xNONE
; then
7043 test_prefix
=/usr
/local
7048 test_prefix
=$exec_prefix
7051 # If the loop below does not find an linker, then use whatever
7052 # one we can find in the users's path.
7054 if test "x$program_prefix" != xNONE
; then
7055 gcc_cv_ld
=${program_prefix}ld
$host_exeext
7057 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
7060 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7061 $test_prefix/lib/gcc-lib/$target_alias \
7062 /usr/lib/gcc/$target_alias/$gcc_version \
7063 /usr/lib/gcc/$target_alias \
7064 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7065 $test_prefix/$target_alias/bin"
7067 if test x
$host = x
$target; then
7068 test_dirs
="$test_dirs \
7073 /bsd43/usr/lib/cmplrs/cc \
7074 /usr/cross64/usr/bin \
7075 /usr/lib/cmplrs/cc \
7076 /sysv/usr/lib/cmplrs/cc \
7077 /svr4/usr/lib/cmplrs/cc \
7081 for dir
in $test_dirs; do
7082 if test -x $dir/ld
$host_exeext; then
7083 gcc_cv_ld
=$dir/ld
$host_exeext
7088 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7089 echo "$ac_t"""newly built ld
"" 1>&6
7091 echo "$ac_t""$gcc_cv_ld" 1>&6
7094 # Figure out what nm we will be using.
7095 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7096 echo "configure:7097: checking what nm to use" >&5
7097 if test -x nm
$host_exeext; then
7098 gcc_cv_nm
=.
/nm
$host_exeext
7099 elif test "x$program_prefix" != xNONE
; then
7100 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7102 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7104 echo "$ac_t""$gcc_cv_nm" 1>&6
7106 # Figure out what objdump we will be using.
7107 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7108 echo "configure:7109: checking what objdump to use" >&5
7109 if test -x objdump
$host_exeext; then
7110 gcc_cv_objdump
=.
/objdump
$host_exeext
7111 elif test "x$program_prefix" != xNONE
; then
7112 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7114 gcc_cv_objdump
=`echo objdump | sed ${program_transform_name}`$host_exeext
7116 echo "$ac_t""$gcc_cv_objdump" 1>&6
7118 # Figure out what assembler alignment features are present.
7119 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7120 echo "configure:7121: checking assembler alignment features" >&5
7121 gcc_cv_as_alignment_features
=none
7122 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7123 # Gas version 2.6 and later support for .balign and .p2align.
7124 # bytes to skip when using .p2align.
7125 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
7126 gcc_cv_as_alignment_features
=".balign and .p2align"
7127 cat >> confdefs.h
<<\EOF
7128 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7132 # Gas version 2.8 and later support specifying the maximum
7133 # bytes to skip when using .p2align.
7134 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
7135 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7136 cat >> confdefs.h
<<\EOF
7137 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7141 elif test x
$gcc_cv_as != x
; then
7142 # Check if we have .balign and .p2align
7143 echo ".balign 4" > conftest.s
7144 echo ".p2align 2" >> conftest.s
7145 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7146 gcc_cv_as_alignment_features
=".balign and .p2align"
7147 cat >> confdefs.h
<<\EOF
7148 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7152 rm -f conftest.s conftest.o
7153 # Check if specifying the maximum bytes to skip when
7154 # using .p2align is supported.
7155 echo ".p2align 4,,7" > conftest.s
7156 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7157 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7158 cat >> confdefs.h
<<\EOF
7159 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7163 rm -f conftest.s conftest.o
7165 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7167 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7168 echo "configure:7169: checking assembler subsection support" >&5
7169 gcc_cv_as_subsections
=no
7170 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7171 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
7172 gcc_cv_as_subsections
="working .subsection -1"
7174 elif test x
$gcc_cv_as != x
; then
7175 # Check if we have .subsection
7176 echo ".subsection 1" > conftest.s
7177 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7178 gcc_cv_as_subsections
=".subsection"
7179 if test x
$gcc_cv_nm != x
; then
7180 cat > conftest.s
<<EOF
7181 conftest_label1: .word 0
7183 conftest_label2: .word 0
7186 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7187 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7188 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7189 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7192 gcc_cv_as_subsections
="working .subsection -1"
7197 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7199 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7200 cat >> confdefs.h
<<\EOF
7201 #define HAVE_GAS_SUBSECTION_ORDERING 1
7205 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7207 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7208 echo "configure:7209: checking assembler weak support" >&5
7210 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7211 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
7212 gcc_cv_as_weak
="yes"
7214 elif test x
$gcc_cv_as != x
; then
7215 # Check if we have .weak
7216 echo " .weak foobar" > conftest.s
7217 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7218 gcc_cv_as_weak
="yes"
7220 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7222 if test x
"$gcc_cv_as_weak" = xyes
; then
7223 cat >> confdefs.h
<<\EOF
7224 #define HAVE_GAS_WEAK 1
7228 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7230 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7231 echo "configure:7232: checking assembler hidden support" >&5
7233 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7234 if test "$gcc_cv_gas_major_version" -eq 2 \
7235 -a "$gcc_cv_gas_minor_version" -eq 12 \
7236 -a "$gcc_cv_gas_patch_version" -ge 1 \
7237 -o "$gcc_cv_gas_major_version" -eq 2 \
7238 -a "$gcc_cv_gas_minor_version" -gt 12 \
7239 -o "$gcc_cv_gas_major_version" -gt 2 \
7240 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7241 gcc_cv_as_hidden
="yes"
7243 elif test x
$gcc_cv_as != x
; then
7244 # Check if we have .hidden
7245 echo " .hidden foobar" > conftest.s
7246 echo "foobar:" >> conftest.s
7247 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7248 gcc_cv_as_hidden
="yes"
7250 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7252 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7253 # This is irritatingly difficult to feature test for. Look for
7254 # the date string after the version number.
7255 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7256 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7257 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
7258 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
7259 if test 0"$ld_date" -lt 20020404; then
7260 if test -n "$ld_date"; then
7261 # If there was date string, but was earlier than 2002-04-04, fail
7262 gcc_cv_as_hidden
="no"
7263 elif test -z "$ld_vers"; then
7264 # If there was no date string nor ld version number, something is wrong
7265 gcc_cv_as_hidden
="no"
7267 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
7268 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
7269 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7270 test -z "$ld_vers_patch" && ld_vers_patch
=0
7271 if test "$ld_vers_major" -lt 2; then
7272 gcc_cv_as_hidden
="no"
7273 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
7274 gcc_cv_as_hidden
="no"
7275 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
7276 -a "$ld_vers_patch" -eq 0; then
7277 gcc_cv_as_hidden
="no"
7283 if test x
"$gcc_cv_as_hidden" = xyes
; then
7284 cat >> confdefs.h
<<\EOF
7285 #define HAVE_GAS_HIDDEN 1
7289 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7290 libgcc_visibility
=$gcc_cv_as_hidden
7293 if test x
"$gnu_ld_flag" = x
"no"; then
7294 # Even if using gas with .hidden support, the resulting object files
7295 # cannot be linked with the IRIX 6 O32 linker.
7296 libgcc_visibility
=no
7302 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7303 echo "configure:7304: checking assembler leb128 support" >&5
7305 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7306 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
7307 gcc_cv_as_leb128
="yes"
7309 elif test x
$gcc_cv_as != x
; then
7310 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7311 cat > conftest.s
<<EOF
7319 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7320 gcc_cv_as_leb128
="yes"
7322 # GAS versions before 2.11 do not support uleb128,
7323 # despite appearing to.
7324 # ??? There exists an elf-specific test that will crash
7325 # the assembler. Perhaps it's better to figure out whether
7326 # arbitrary sections are supported and try the test.
7327 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7328 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7329 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7330 as_major
=`echo $as_ver | sed 's/\..*//'`
7331 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7332 if test $as_major -eq 2 -a $as_minor -lt 11; then
7333 gcc_cv_as_leb128
="no"
7337 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7339 if test x
"$gcc_cv_as_leb128" = xyes
; then
7340 cat >> confdefs.h
<<\EOF
7341 #define HAVE_AS_LEB128 1
7345 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7347 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7348 echo "configure:7349: checking assembler eh_frame optimization" >&5
7349 gcc_cv_as_eh_frame
=no
7350 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7351 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
7352 gcc_cv_as_eh_frame
="yes"
7354 elif test x
$gcc_cv_as != x
; then
7355 # Check if this is GAS.
7356 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7357 rm -f a.out
2> /dev
/null
7358 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7359 # Versions up to and including 2.11.0 may mis-optimize
7360 # .eh_frame data. Try something.
7361 cat > conftest.s
<<EOF
7368 .section .eh_frame,"aw",@progbits
7370 .4byte .LECIE1-.LSCIE1
7384 .4byte .LEFDE1-.LASFDE1
7386 .4byte .LASFDE1-__FRAME_BEGIN__
7395 cat > conftest.lit
<<EOF
7396 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7397 0010 01000000 12000000 18000000 00000000 ................
7398 0020 08000000 04080000 0044 .........D
7400 cat > conftest.big
<<EOF
7401 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7402 0010 00000001 00000012 00000018 00000000 ................
7403 0020 00000008 04000000 0844 .........D
7405 # If the assembler didn't choke, and we can objdump,
7406 # and we got the correct data, then succeed.
7407 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7408 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7409 |
tail -3 > conftest.got \
7410 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7411 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7413 gcc_cv_as_eh_frame
="yes"
7415 gcc_cv_as_eh_frame
="bad"
7416 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7417 cat >> confdefs.h
<<\EOF
7418 #define USE_AS_TRADITIONAL_FORMAT 1
7426 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7428 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7429 echo "configure:7430: checking assembler section merging support" >&5
7430 gcc_cv_as_shf_merge
=no
7431 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7432 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
7433 gcc_cv_as_shf_merge
=yes
7435 elif test x
$gcc_cv_as != x
; then
7436 # Check if we support SHF_MERGE sections
7437 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7438 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7439 gcc_cv_as_shf_merge
=yes
7441 rm -f conftest.s conftest.o
7443 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7444 cat >> confdefs.h
<<\EOF
7445 #define HAVE_GAS_SHF_MERGE 1
7449 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7451 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6
7452 echo "configure:7453: checking assembler thread-local storage support" >&5
7460 .section ".tdata","awT",@progbits
7463 ldq $27,__tls_get_addr($29) !literal!1
7464 lda $16,foo($29) !tlsgd!1
7465 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
7466 ldq $27,__tls_get_addr($29) !literal!2
7467 lda $16,foo($29) !tlsldm!2
7468 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
7469 ldq $1,foo($29) !gotdtprel
7470 ldah $2,foo($29) !dtprelhi
7471 lda $3,foo($2) !dtprello
7472 lda $4,foo($29) !dtprel
7473 ldq $1,foo($29) !gottprel
7474 ldah $2,foo($29) !tprelhi
7475 lda $3,foo($2) !tprello
7476 lda $4,foo($29) !tprel'
7482 .section ".tdata","awT",@progbits
7486 leal foo@TLSGD(,%ebx,1), %eax
7487 leal foo@TLSLDM(%ebx), %eax
7488 leal foo@DTPOFF(%eax), %edx
7489 movl foo@GOTTPOFF(%ebx), %eax
7490 subl foo@GOTTPOFF(%ebx), %eax
7491 movl $foo@TPOFF, %eax
7492 subl $foo@TPOFF, %eax
7493 leal foo@NTPOFF(%ecx), %eax'
7499 .section ".tdata","awT",@progbits
7502 addl r16 = @ltoff(@dtpmod(foo#)), gp
7503 addl r17 = @ltoff(@dtprel(foo#)), gp
7504 addl r18 = @ltoff(@tprel(foo#)), gp
7505 addl r19 = @dtprel(foo#), gp
7506 adds r21 = @dtprel(foo#), r13
7507 movl r23 = @dtprel(foo#)
7508 addl r20 = @tprel(foo#), gp
7509 adds r22 = @tprel(foo#), r13
7510 movl r24 = @tprel(foo#)'
7515 if test -z "$tls_first_major"; then
7517 elif test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7519 if test "$gcc_cv_gas_major_version" -eq "$tls_first_major" \
7520 -a "$gcc_cv_gas_minor_version" -ge "$tls_first_minor" \
7521 -o "$gcc_cv_gas_major_version" -gt "$tls_first_major"; then
7524 elif test x
$gcc_cv_as != x
; then
7525 echo "$conftest_s" > conftest.s
7526 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
7530 rm -f conftest.s conftest.o
7532 if test "$gcc_cv_as_tls" = yes; then
7533 cat >> confdefs.h
<<\EOF
7534 #define HAVE_AS_TLS 1
7538 echo "$ac_t""$gcc_cv_as_tls" 1>&6
7541 # All TARGET_ABI_OSF targets.
7542 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7543 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7544 echo "configure:7545: checking assembler supports explicit relocations" >&5
7545 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7549 gcc_cv_as_explicit_relocs
=unknown
7550 if test x
$gcc_cv_gas_major_version != x \
7551 -a x
$gcc_cv_gas_minor_version != x
7553 if test "$gcc_cv_gas_major_version" -eq 2 \
7554 -a "$gcc_cv_gas_minor_version" -ge 12 \
7555 -o "$gcc_cv_gas_major_version" -gt 2; then
7556 gcc_cv_as_explicit_relocs
=yes
7558 elif test x
$gcc_cv_as != x
; then
7559 cat > conftest.s
<< 'EOF'
7562 extbl
$3, $2, $3 !lituse_bytoff
!1
7563 ldq
$2, a
($29) !literal
!1
7564 ldq
$4, b
($29) !literal
!2
7565 ldq_u
$3, 0($2) !lituse_base
!1
7566 ldq
$27, f
($29) !literal
!5
7567 jsr
$26, ($27), f
!lituse_jsr
!5
7568 ldah
$29, 0($26) !gpdisp
!3
7569 lda
$0, c
($29) !gprel
7570 ldah
$1, d
($29) !gprelhigh
7571 lda
$1, d
($1) !gprellow
7572 lda
$29, 0($29) !gpdisp
!3
7574 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7575 gcc_cv_as_explicit_relocs
=yes
7577 gcc_cv_as_explicit_relocs
=no
7579 rm -f conftest.s conftest.o
7584 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7585 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7586 cat >> confdefs.h
<<\EOF
7587 #define HAVE_AS_EXPLICIT_RELOCS 1
7593 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7594 echo "configure:7595: checking assembler .register pseudo-op support" >&5
7595 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7599 gcc_cv_as_register_pseudo_op
=unknown
7600 if test x
$gcc_cv_as != x
; then
7601 # Check if we have .register
7602 echo ".register %g2, #scratch" > conftest.s
7603 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7604 gcc_cv_as_register_pseudo_op
=yes
7606 gcc_cv_as_register_pseudo_op
=no
7608 rm -f conftest.s conftest.o
7613 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7614 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7615 cat >> confdefs.h
<<\EOF
7616 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7621 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7622 echo "configure:7623: checking assembler supports -relax" >&5
7623 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7627 gcc_cv_as_relax_opt
=unknown
7628 if test x
$gcc_cv_as != x
; then
7629 # Check if gas supports -relax
7630 echo ".text" > conftest.s
7631 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7632 gcc_cv_as_relax_opt
=yes
7634 gcc_cv_as_relax_opt
=no
7636 rm -f conftest.s conftest.o
7641 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7642 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7643 cat >> confdefs.h
<<\EOF
7644 #define HAVE_AS_RELAX_OPTION 1
7649 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7650 echo "configure:7651: checking assembler and linker support unaligned pc related relocs" >&5
7651 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7655 gcc_cv_as_sparc_ua_pcrel
=unknown
7656 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7657 gcc_cv_as_sparc_ua_pcrel
=no
7658 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7659 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7660 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7661 gcc_cv_as_sparc_ua_pcrel
=yes
7663 rm -f conftest.s conftest.o conftest
7668 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7669 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7670 cat >> confdefs.h
<<\EOF
7671 #define HAVE_AS_SPARC_UA_PCREL 1
7676 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
7677 echo "configure:7678: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
7678 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7682 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7683 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
7684 if test x
$gcc_cv_objdump != x
; then
7685 gcc_cv_as_sparc_ua_pcrel_hidden
=no
7686 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
7687 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
7688 echo "foo: .skip 4" >> conftest.s
7689 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7690 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
7691 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
7692 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
7693 if $gcc_cv_objdump -R conftest
2> /dev
/null \
7694 |
grep 'DISP32' > /dev
/null
2>&1; then
7697 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
7701 rm -f conftest.s conftest.o conftest
7703 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
7708 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
7709 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
7710 cat >> confdefs.h
<<\EOF
7711 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
7716 if test "x$gcc_cv_as_flags64" != xno
; then
7717 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7718 echo "configure:7719: checking for assembler offsetable %lo() support" >&5
7719 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7720 echo $ac_n "(cached) $ac_c" 1>&6
7723 gcc_cv_as_offsetable_lo10
=unknown
7724 if test "x$gcc_cv_as" != x
; then
7725 # Check if assembler has offsetable %lo()
7726 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7727 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7728 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7730 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7731 > /dev
/null
2>&1; then
7732 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7733 gcc_cv_as_offsetable_lo10
=no
7735 gcc_cv_as_offsetable_lo10
=yes
7738 gcc_cv_as_offsetable_lo10
=no
7740 rm -f conftest.s conftest.o conftest1.s conftest1.o
7745 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7746 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7747 cat >> confdefs.h
<<\EOF
7748 #define HAVE_AS_OFFSETABLE_LO10 1
7756 i
[34567]86-*-* | x86_64-
*-*)
7757 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7758 echo "configure:7759: checking assembler instructions" >&5
7759 gcc_cv_as_instructions
=
7760 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7761 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
7762 gcc_cv_as_instructions
="filds fists"
7764 elif test x
$gcc_cv_as != x
; then
7765 set "filds fists" "filds mem; fists mem"
7768 echo "$2" > conftest.s
7769 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7770 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7774 rm -f conftest.s conftest.o
7776 if test x
"$gcc_cv_as_instructions" != x
; then
7777 cat >> confdefs.h
<<EOF
7778 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7782 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7784 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7785 echo "configure:7786: checking assembler GOTOFF in data directives" >&5
7786 gcc_cv_as_gotoff_in_data
=no
7787 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7789 if test "$gcc_cv_gas_major_version" -eq 2 \
7790 -a "$gcc_cv_gas_minor_version" -ge 11 \
7791 -o "$gcc_cv_gas_major_version" -gt 2; then
7792 gcc_cv_as_gotoff_in_data
=yes
7794 elif test x
$gcc_cv_as != x
; then
7795 cat > conftest.s
<<EOF
7802 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7803 gcc_cv_as_gotoff_in_data
=yes
7806 cat >> confdefs.h
<<EOF
7807 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7810 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7814 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7815 echo "configure:7816: checking assembler dwarf2 debug_line support" >&5
7816 gcc_cv_as_dwarf2_debug_line
=no
7817 # ??? Not all targets support dwarf2 debug_line, even within a version
7818 # of gas. Moreover, we need to emit a valid instruction to trigger any
7819 # info to the output file. So, as supported targets are added to gas 2.11,
7820 # add some instruction here to (also) show we expect this might work.
7821 # ??? Once 2.11 is released, probably need to add first known working
7822 # version to the per-target configury.
7824 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-* | hppa
*-*-*)
7831 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7833 if test "$gcc_cv_gas_major_version" -eq 2 \
7834 -a "$gcc_cv_gas_minor_version" -ge 11 \
7835 -o "$gcc_cv_gas_major_version" -gt 2 \
7836 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7837 && test x
"$insn" != x
; then
7838 gcc_cv_as_dwarf2_debug_line
="yes"
7840 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7841 echo ' .file 1 "conftest.s"' > conftest.s
7842 echo ' .loc 1 3 0' >> conftest.s
7843 echo " $insn" >> conftest.s
7844 # ??? This fails with non-gnu grep.
7845 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7846 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7847 # The .debug_line file table must be in the exact order that
7848 # we specified the files, since these indices are also used
7849 # by DW_AT_decl_file. Approximate this test by testing if
7850 # the assembler bitches if the same index is assigned twice.
7851 echo ' .file 1 "foo.s"' > conftest.s
7852 echo ' .file 1 "bar.s"' >> conftest.s
7853 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7855 gcc_cv_as_dwarf2_debug_line
="no"
7857 gcc_cv_as_dwarf2_debug_line
="yes"
7860 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7862 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7863 cat >> confdefs.h
<<\EOF
7864 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7868 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7870 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7871 echo "configure:7872: checking assembler --gdwarf2 support" >&5
7872 gcc_cv_as_gdwarf2_flag
=no
7873 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7875 if test "$gcc_cv_gas_major_version" -eq 2 \
7876 -a "$gcc_cv_gas_minor_version" -ge 11 \
7877 -o "$gcc_cv_gas_major_version" -gt 2 \
7878 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7879 && test x
"$insn" != x
; then
7880 gcc_cv_as_gdwarf2_flag
="yes"
7882 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7883 echo '' > conftest.s
7884 # ??? This fails with non-gnu grep.
7885 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7887 gcc_cv_as_gdwarf2_flag
="yes"
7889 rm -f conftest.s conftest.o
7891 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7892 cat >> confdefs.h
<<\EOF
7893 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7897 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7899 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7900 echo "configure:7901: checking assembler --gstabs support" >&5
7901 gcc_cv_as_gstabs_flag
=no
7902 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7904 if test "$gcc_cv_gas_major_version" -eq 2 \
7905 -a "$gcc_cv_gas_minor_version" -ge 11 \
7906 -o "$gcc_cv_gas_major_version" -gt 2 \
7907 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7908 && test x
"$insn" != x
; then
7909 gcc_cv_as_gstabs_flag
="yes"
7911 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7912 echo '' > conftest.s
7913 # ??? This fails with non-gnu grep.
7914 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7915 gcc_cv_as_gstabs_flag
="yes"
7917 rm -f conftest.s conftest.o
7919 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7920 cat >> confdefs.h
<<\EOF
7921 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7925 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7927 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7928 echo "configure:7929: checking linker PT_GNU_EH_FRAME support" >&5
7929 gcc_cv_ld_eh_frame_hdr
=no
7930 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7931 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
7932 gcc_cv_ld_eh_frame_hdr
=yes
7934 elif test x
$gcc_cv_ld != x
; then
7935 # Check if linker supports --eh-frame-hdr option
7936 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7937 gcc_cv_ld_eh_frame_hdr
=yes
7940 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7941 cat >> confdefs.h
<<\EOF
7942 #define HAVE_LD_EH_FRAME_HDR 1
7946 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7948 # Miscellaneous target-specific checks.
7951 echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6
7952 echo "configure:7953: checking whether libgloss uses STARTUP directives consistently" >&5
7953 gcc_cv_mips_libgloss_startup
=no
7954 gcc_cv_libgloss_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
7955 if test "x$exec_prefix" = xNONE
; then
7956 if test "x$prefix" = xNONE
; then
7957 test_prefix
=/usr
/local
7962 test_prefix
=$exec_prefix
7964 for f
in $gcc_cv_libgloss_srcdir/mips
/idt.ld
$test_prefix/$target_alias/lib
/idt.ld
7966 if grep '^STARTUP' $f > /dev
/null
2>&1; then
7967 gcc_cv_mips_libgloss_startup
=yes
7971 if test x
"$gcc_cv_mips_libgloss_startup" = xyes
; then
7972 cat >> confdefs.h
<<\EOF
7973 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
7977 echo "$ac_t""$gcc_cv_mips_libgloss_startup" 1>&6
7981 if test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
7982 cat >> confdefs.h
<<EOF
7983 #define PREFIX_INCLUDE_DIR "$prefix/include"
7988 # Figure out what language subdirectories are present.
7989 # Look if the user specified --enable-languages="..."; if not, use
7990 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7992 # NB: embedded tabs in this IF block -- do not untabify
7993 if test x
"${enable_languages+set}" != xset
; then
7994 if test x
"${LANGUAGES+set}" = xset
; then
7995 enable_languages
="${LANGUAGES}"
7996 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7999 enable_languages
=all
8002 if test x
"${enable_languages}" = x \
8003 ||
test x
"${enable_languages}" = xyes
;
8005 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
8008 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8010 # First scan to see if an enabled language requires some other language.
8011 # We assume that a given config-lang.in will list all the language
8012 # front ends it requires, even if some are required indirectly.
8013 for lang
in ${srcdir}/*/config-lang.
in ..
8018 # The odd quoting in the next line works around
8019 # an apparent bug in bash 1.12 on linux.
8020 ${srcdir}/[*]/config-lang.
in)
8023 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8024 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
8025 for other
in $this_lang_requires
8027 case ,${enable_languages}, in
8033 enable_languages
="$enable_languages,$other"
8041 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
8044 for lang
in ${srcdir}/*/config-lang.
in ..
8048 # The odd quoting in the next line works around
8049 # an apparent bug in bash 1.12 on linux.
8050 ${srcdir}/[*]/config-lang.
in) ;;
8052 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8053 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
8054 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
8055 if test "x$lang_alias" = x
8057 echo "$lang doesn't set \$language." 1>&2
8060 case ${build_by_default},${enable_languages}, in
8061 *,$lang_alias,*) add_this_lang
=yes ;;
8062 no
,*) add_this_lang
=no
;;
8063 *,all
,*) add_this_lang
=yes ;;
8064 *) add_this_lang
=no
;;
8066 found_languages
="${found_languages} ${lang_alias}"
8067 if test x
"${add_this_lang}" = xyes
; then
8069 ${srcdir}/ada
/config-lang.
in)
8070 if test x
$have_gnat = xyes
; then
8071 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8075 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8084 for expected_language
in ${expected_languages} ..
8086 if test "${expected_language}" != ..
; then
8087 missing_language
="${expected_language}"
8088 if test "${expected_language}" = "c" \
8089 ||
test "${expected_language}" = "all"; then
8092 for found_language
in ${found_languages} ..
8094 if test "${found_language}" != ..
; then
8095 if test "${expected_language}" = "${found_language}"; then
8100 if test "x${missing_language}" != x
; then
8101 missing_languages
="${missing_languages} ${missing_language}"
8106 if test "x$missing_languages" != x
; then
8107 { echo "configure: error:
8108 The following requested languages were not found:${missing_languages}
8109 The following languages were available: c${found_languages}" 1>&2; exit 1; }
8112 # Make gthr-default.h if we have a thread file.
8114 if test $thread_file != single
; then
8115 rm -f gthr-default.h
8116 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8117 gthread_flags
=-DHAVE_GTHR_DEFAULT
8121 # Find out what GC implementation we want, or may, use.
8122 # Check whether --with-gc or --without-gc was given.
8123 if test "${with_gc+set}" = set; then
8130 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8138 echo "Using $GGC for garbage collection."
8140 # Use the system's zlib library.
8142 zlibinc
="-I\$(srcdir)/../zlib"
8143 # Check whether --with-system-zlib or --without-system-zlib was given.
8144 if test "${with_system_zlib+set}" = set; then
8145 withval
="$with_system_zlib"
8155 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8156 echo "configure:8157: checking whether to enable maintainer-specific portions of Makefiles" >&5
8157 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8158 if test "${enable_maintainer_mode+set}" = set; then
8159 enableval
="$enable_maintainer_mode"
8160 maintainer_mode
=$enableval
8166 echo "$ac_t""$maintainer_mode" 1>&6
8168 if test "$maintainer_mode" = "yes"; then
8174 # With Setjmp/Longjmp based exception handling.
8175 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8176 if test "${enable_sjlj_exceptions+set}" = set; then
8177 enableval
="$enable_sjlj_exceptions"
8178 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8179 cat >> confdefs.h
<<EOF
8180 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8186 # Use libunwind based exception handling.
8187 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8188 if test "${enable_libunwind_exceptions+set}" = set; then
8189 enableval
="$enable_libunwind_exceptions"
8190 use_libunwind_exceptions
=$enableval
8192 use_libunwind_exceptions
=no
8195 if test x
"$use_libunwind_exceptions" = xyes
; then
8196 cat >> confdefs.h
<<\EOF
8197 #define USE_LIBUNWIND_EXCEPTIONS 1
8202 # Make empty files to contain the specs and options for each language.
8203 # Then add #include lines to for a compiler that has specs and/or options.
8208 for subdir
in .
$subdirs
8210 if test -f $srcdir/$subdir/lang-specs.h
; then
8211 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8213 if test -f $srcdir/$subdir/lang-options.h
; then
8214 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8216 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8217 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8221 # These (without "all_") are set in each config-lang.in.
8222 # `language' must be a single word so is spelled singularly.
8227 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
8228 # List of language makefile fragments.
8230 # Files for gengtype
8231 all_gtfiles
="$target_gtfiles"
8232 # Files for gengtype with language
8233 all_gtfiles_files_langs
=
8234 all_gtfiles_files_files
=
8236 # Add the language fragments.
8237 # Languages are added via two mechanisms. Some information must be
8238 # recorded in makefile variables, these are defined in config-lang.in.
8239 # We accumulate them and plug them into the main Makefile.
8240 # The other mechanism is a set of hooks for each of the main targets
8241 # like `clean', `install', etc.
8243 language_fragments
="Make-lang"
8244 language_hooks
="Make-hooks"
8246 for s
in ..
$subdirs
8256 .
${srcdir}/$s/config-lang.
in
8257 if test "x$language" = x
8259 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8262 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8263 if test -f ${srcdir}/$s/Makefile.
in
8264 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8266 all_languages
="$all_languages $language"
8267 if test "x$boot_language" = xyes
8269 all_boot_languages
="$all_boot_languages $language"
8271 all_compilers
="$all_compilers $compilers"
8272 all_stagestuff
="$all_stagestuff $stagestuff"
8273 all_outputs
="$all_outputs $outputs"
8274 all_gtfiles
="$all_gtfiles $gtfiles"
8275 for f
in ..
$gtfiles
8279 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
8280 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
8286 # Pick up gtfiles for c
8289 .
${srcdir}/c-config-lang.
in
8290 all_gtfiles
="$all_gtfiles $gtfiles"
8291 for f
in ..
$gtfiles
8295 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
8296 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
8301 for language
in ..
$all_languages
8303 if test $language != ".."
8305 check_languages
="$check_languages check-$language"
8309 # Since we can't use `::' targets, we link each language in
8310 # with a set of hooks, reached indirectly via lang.${target}.
8314 target_list
="all.build all.cross start.encap rest.encap \
8315 info dvi generated-manpages \
8316 install-normal install-common install-info install-man \
8318 mostlyclean clean distclean extraclean maintainer-clean \
8319 stage1 stage2 stage3 stage4"
8320 for t
in $target_list
8323 for lang
in ..
$all_languages
8325 if test $lang != ".."; then
8329 echo "lang.$t: $x" >> Make-hooks
8334 echo "dir ." > .gdbinit
8335 echo "dir ${srcdir}" >> .gdbinit
8336 if test x
$gdb_needs_out_file_path = xyes
8338 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8340 if test "x$subdirs" != x
; then
8343 echo "dir ${srcdir}/$s" >> .gdbinit
8346 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8348 # Define variables host_canonical and build_canonical
8349 # because some Cygnus local changes in the Makefile depend on them.
8350 build_canonical
=${build}
8351 host_canonical
=${host}
8353 if test "${host}" != "${target}" ; then
8354 target_subdir
=${target_alias}/
8360 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8361 # absolute path for gcc_tooldir based on inserting the number of up-directory
8362 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8363 # $(libsubdir)/@(unlibsubdir) based path.
8364 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8365 # make and thus we'd get different behavior depending on where we built the
8367 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8368 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8370 # An explanation of the sed strings:
8371 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8372 # -e 's|/$||' match a trailing forward slash and eliminates it
8373 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8374 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8376 # (*) Note this pattern overwrites the first character of the string
8377 # with a forward slash if one is not already present. This is not a
8378 # problem because the exact names of the sub-directories concerned is
8379 # unimportant, just the number of them matters.
8381 # The practical upshot of these patterns is like this:
8383 # prefix exec_prefix result
8384 # ------ ----------- ------
8386 # /foo/ /foo/bar ../
8387 # /foo /foo/bar/ ../
8388 # /foo/ /foo/bar/ ../
8389 # /foo /foo/bar/ugg ../../
8392 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8397 # Find a directory in which to install a shared libgcc.
8399 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8400 if test "${enable_version_specific_runtime_libs+set}" = set; then
8401 enableval
="$enable_version_specific_runtime_libs"
8406 # Check whether --with-slibdir or --without-slibdir was given.
8407 if test "${with_slibdir+set}" = set; then
8408 withval
="$with_slibdir"
8409 slibdir
="$with_slibdir"
8411 if test "${enable_version_specific_runtime_libs+set}" = set; then
8412 slibdir
='$(libsubdir)'
8413 elif test "$host" != "$target"; then
8414 slibdir
='$(build_tooldir)/lib'
8422 # Nothing to do for FLOAT_H, float_format already handled.
8423 objdir
=`${PWDCMD-pwd}`
8426 # Process the language and host/target makefile fragments.
8427 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8429 # Substitute configuration variables
8498 # Echo that links are built
8499 if test x
$host = x
$target
8507 if test x
$host != x
$build
8509 str3
=" on a $build system"
8512 if test "x$str2" != x ||
test "x$str3" != x
8517 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8519 if test "x$str2" != x ||
test "x$str3" != x
8521 echo " ${str2}${str3}." 1>&2
8524 # Truncate the target if necessary
8525 if test x
$host_truncate_target != x
; then
8526 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8529 # Configure the subdirectories
8530 # AC_CONFIG_SUBDIRS($subdirs)
8532 # Create the Makefile
8533 # and configure language subdirectories
8535 cat > confcache
<<\EOF
8536 # This file is a shell script that caches the results of configure
8537 # tests run on this system so they can be shared between configure
8538 # scripts and configure runs. It is not useful on other systems.
8539 # If it contains results you don't want to keep, you may remove or edit it.
8541 # By default, configure uses ./config.cache as the cache file,
8542 # creating it if it does not exist already. You can give configure
8543 # the --cache-file=FILE option to use a different cache file; that is
8544 # what configure does when it calls configure scripts in
8545 # subdirectories, so they share the cache.
8546 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8547 # config.status only pays attention to the cache file if you give it the
8548 # --recheck option to rerun configure.
8551 # The following way of writing the cache mishandles newlines in values,
8552 # but we know of no workaround that is simple, portable, and efficient.
8553 # So, don't put newlines in cache variables' values.
8554 # Ultrix sh set writes to stderr and can't be redirected directly,
8555 # and sets the high bit in the cache file unless we assign to the vars.
8557 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8559 # `set' does not quote correctly, so add quotes (double-quote substitution
8560 # turns \\\\ into \\, and sed turns \\ into \).
8562 -e "s/'/'\\\\''/g" \
8563 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8566 # `set' quotes correctly as required by POSIX, so do not add quotes.
8567 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8570 if cmp -s $cache_file confcache
; then
8573 if test -w $cache_file; then
8574 echo "updating cache $cache_file"
8575 cat confcache
> $cache_file
8577 echo "not updating unwritable cache $cache_file"
8582 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8584 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8585 # Let make expand exec_prefix.
8586 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8588 # Any assignment to VPATH causes Sun make to only execute
8589 # the first set of double-colon rules, so remove it if not needed.
8590 # If there is a colon in the path, we need to keep it.
8591 if test "x$srcdir" = x.
; then
8592 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8595 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8597 DEFS
=-DHAVE_CONFIG_H
8599 # Without the "./", some shells look in PATH for config.status.
8600 : ${CONFIG_STATUS=./config.status}
8602 echo creating
$CONFIG_STATUS
8603 rm -f $CONFIG_STATUS
8604 cat > $CONFIG_STATUS <<EOF
8606 # Generated automatically by configure.
8607 # Run this file to recreate the current configuration.
8608 # This directory was configured as follows,
8609 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8611 # $0 $ac_configure_args
8613 # Compiler output produced by configure, useful for debugging
8614 # configure, is in ./config.log if it exists.
8616 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8619 case "\$ac_option" in
8620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8621 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8622 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8623 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8624 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8626 -help | --help | --hel | --he | --h)
8627 echo "\$ac_cs_usage"; exit 0 ;;
8628 *) echo "\$ac_cs_usage"; exit 1 ;;
8632 ac_given_srcdir=$srcdir
8634 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8636 cat >> $CONFIG_STATUS <<EOF
8638 # Protect against being on the right side of a sed subst in config.status.
8639 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8640 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8644 s%@CFLAGS@%$CFLAGS%g
8645 s%@CPPFLAGS@%$CPPFLAGS%g
8646 s%@CXXFLAGS@%$CXXFLAGS%g
8647 s%@FFLAGS@%$FFLAGS%g
8649 s%@LDFLAGS@%$LDFLAGS%g
8651 s%@exec_prefix@%$exec_prefix%g
8652 s%@prefix@%$prefix%g
8653 s%@program_transform_name@%$program_transform_name%g
8654 s%@bindir@%$bindir%g
8655 s%@sbindir@%$sbindir%g
8656 s%@libexecdir@%$libexecdir%g
8657 s%@datadir@%$datadir%g
8658 s%@sysconfdir@%$sysconfdir%g
8659 s%@sharedstatedir@%$sharedstatedir%g
8660 s%@localstatedir@%$localstatedir%g
8661 s%@libdir@%$libdir%g
8662 s%@includedir@%$includedir%g
8663 s%@oldincludedir@%$oldincludedir%g
8664 s%@infodir@%$infodir%g
8665 s%@mandir@%$mandir%g
8666 s%@enable_multilib@%$enable_multilib%g
8667 s%@coverage_flags@%$coverage_flags%g
8668 s%@enable_shared@%$enable_shared%g
8670 s%@host_alias@%$host_alias%g
8671 s%@host_cpu@%$host_cpu%g
8672 s%@host_vendor@%$host_vendor%g
8673 s%@host_os@%$host_os%g
8674 s%@target@%$target%g
8675 s%@target_alias@%$target_alias%g
8676 s%@target_cpu@%$target_cpu%g
8677 s%@target_vendor@%$target_vendor%g
8678 s%@target_os@%$target_os%g
8680 s%@build_alias@%$build_alias%g
8681 s%@build_cpu@%$build_cpu%g
8682 s%@build_vendor@%$build_vendor%g
8683 s%@build_os@%$build_os%g
8685 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8686 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8687 s%@GNATBIND@%$GNATBIND%g
8689 s%@strict1_warn@%$strict1_warn%g
8691 s%@warn_cflags@%$warn_cflags%g
8692 s%@stage1_cflags@%$stage1_cflags%g
8693 s%@SET_MAKE@%$SET_MAKE%g
8697 s%@RANLIB@%$RANLIB%g
8698 s%@INSTALL@%$INSTALL%g
8699 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8700 s%@INSTALL_DATA@%$INSTALL_DATA%g
8701 s%@have_mktemp_command@%$have_mktemp_command%g
8702 s%@MAKEINFO@%$MAKEINFO%g
8703 s%@BUILD_INFO@%$BUILD_INFO%g
8704 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8707 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8708 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8709 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8710 s%@LIBICONV@%$LIBICONV%g
8711 s%@manext@%$manext%g
8712 s%@objext@%$objext%g
8713 s%@extra_modes_file@%$extra_modes_file%g
8714 s%@FORBUILD@%$FORBUILD%g
8715 s%@PACKAGE@%$PACKAGE%g
8716 s%@VERSION@%$VERSION%g
8717 s%@ALLOCA@%$ALLOCA%g
8718 s%@GLIBC21@%$GLIBC21%g
8719 s%@USE_NLS@%$USE_NLS%g
8720 s%@MSGFMT@%$MSGFMT%g
8721 s%@GMSGFMT@%$GMSGFMT%g
8722 s%@XGETTEXT@%$XGETTEXT%g
8723 s%@INTLBISON@%$INTLBISON%g
8724 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8725 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8726 s%@CATALOGS@%$CATALOGS%g
8727 s%@CATOBJEXT@%$CATOBJEXT%g
8728 s%@INTLLIBS@%$INTLLIBS%g
8729 s%@INTLDEPS@%$INTLDEPS%g
8730 s%@INTLOBJS@%$INTLOBJS%g
8732 s%@DATADIRNAME@%$DATADIRNAME%g
8733 s%@INSTOBJEXT@%$INSTOBJEXT%g
8734 s%@GENCAT@%$GENCAT%g
8735 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8736 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8739 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8740 s%@inhibit_libc@%$inhibit_libc%g
8741 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
8742 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
8743 s%@HOST_CC@%$HOST_CC%g
8744 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8745 s%@STMP_FIXINC@%$STMP_FIXINC%g
8746 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8747 s%@libgcc_visibility@%$libgcc_visibility%g
8748 s%@gthread_flags@%$gthread_flags%g
8750 s%@zlibdir@%$zlibdir%g
8751 s%@zlibinc@%$zlibinc%g
8753 s%@build_canonical@%$build_canonical%g
8754 s%@host_canonical@%$host_canonical%g
8755 s%@target_subdir@%$target_subdir%g
8756 s%@gcc_tooldir@%$gcc_tooldir%g
8757 s%@dollar@%$dollar%g
8758 s%@slibdir@%$slibdir%g
8759 s%@objdir@%$objdir%g
8760 s%@subdirs@%$subdirs%g
8761 s%@srcdir@%$srcdir%g
8762 s%@all_boot_languages@%$all_boot_languages%g
8763 s%@all_compilers@%$all_compilers%g
8764 s%@all_gtfiles@%$all_gtfiles%g
8765 s%@all_gtfiles_files_langs@%$all_gtfiles_files_langs%g
8766 s%@all_gtfiles_files_files@%$all_gtfiles_files_files%g
8767 s%@all_lang_makefiles@%$all_lang_makefiles%g
8768 s%@all_languages@%$all_languages%g
8769 s%@all_stagestuff@%$all_stagestuff%g
8770 s%@build_exeext@%$build_exeext%g
8771 s%@build_install_headers_dir@%$build_install_headers_dir%g
8772 s%@build_xm_file_list@%$build_xm_file_list%g
8773 s%@build_xm_file@%$build_xm_file%g
8774 s%@build_xm_defines@%$build_xm_defines%g
8775 s%@check_languages@%$check_languages%g
8776 s%@cc_set_by_configure@%$cc_set_by_configure%g
8777 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8778 s%@cpp_install_dir@%$cpp_install_dir%g
8779 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8780 s%@dep_tmake_file@%$dep_tmake_file%g
8781 s%@extra_headers_list@%$extra_headers_list%g
8782 s%@extra_objs@%$extra_objs%g
8783 s%@extra_parts@%$extra_parts%g
8784 s%@extra_passes@%$extra_passes%g
8785 s%@extra_programs@%$extra_programs%g
8786 s%@float_h_file@%$float_h_file%g
8787 s%@gcc_config_arguments@%$gcc_config_arguments%g
8788 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8789 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8790 s%@gcc_version@%$gcc_version%g
8791 s%@gcc_version_full@%$gcc_version_full%g
8792 s%@gcc_version_trigger@%$gcc_version_trigger%g
8793 s%@host_exeext@%$host_exeext%g
8794 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8795 s%@host_xm_file_list@%$host_xm_file_list%g
8796 s%@host_xm_file@%$host_xm_file%g
8797 s%@host_xm_defines@%$host_xm_defines%g
8798 s%@install@%$install%g
8799 s%@lang_options_files@%$lang_options_files%g
8800 s%@lang_specs_files@%$lang_specs_files%g
8801 s%@lang_tree_files@%$lang_tree_files%g
8802 s%@local_prefix@%$local_prefix%g
8803 s%@md_file@%$md_file%g
8804 s%@objc_boehm_gc@%$objc_boehm_gc%g
8805 s%@out_file@%$out_file%g
8806 s%@out_object_file@%$out_object_file%g
8807 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8808 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8809 s%@symbolic_link@%$symbolic_link%g
8810 s%@thread_file@%$thread_file%g
8811 s%@tm_file_list@%$tm_file_list%g
8812 s%@tm_file@%$tm_file%g
8813 s%@tm_defines@%$tm_defines%g
8814 s%@tm_p_file_list@%$tm_p_file_list%g
8815 s%@tm_p_file@%$tm_p_file%g
8816 s%@xm_file@%$xm_file%g
8817 s%@xm_defines@%$xm_defines%g
8818 s%@c_target_objs@%$c_target_objs%g
8819 s%@cxx_target_objs@%$cxx_target_objs%g
8820 s%@target_cpu_default@%$target_cpu_default%g
8821 /@target_overrides@/r $target_overrides
8822 s%@target_overrides@%%g
8823 /@host_overrides@/r $host_overrides
8824 s%@host_overrides@%%g
8825 /@language_fragments@/r $language_fragments
8826 s%@language_fragments@%%g
8827 /@language_hooks@/r $language_hooks
8828 s%@language_hooks@%%g
8833 cat >> $CONFIG_STATUS <<\EOF
8835 # Split the substitutions into bite-sized pieces for seds with
8836 # small command number limits, like on Digital OSF/1 and HP-UX.
8837 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8838 ac_file
=1 # Number of current file.
8839 ac_beg
=1 # First line for current file.
8840 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8843 while $ac_more_lines; do
8844 if test $ac_beg -gt 1; then
8845 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8847 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8849 if test ! -s conftest.s
$ac_file; then
8851 rm -f conftest.s
$ac_file
8853 if test -z "$ac_sed_cmds"; then
8854 ac_sed_cmds
="sed -f conftest.s$ac_file"
8856 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8858 ac_file
=`expr $ac_file + 1`
8860 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8863 if test -z "$ac_sed_cmds"; then
8868 cat >> $CONFIG_STATUS <<EOF
8870 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8872 cat >> $CONFIG_STATUS <<\EOF
8873 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8876 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8877 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8878 *) ac_file_in
="${ac_file}.in" ;;
8881 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8883 # Remove last slash and all that follows it. Not all systems have dirname.
8884 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8885 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8886 # The file is in a subdirectory.
8887 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8888 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8889 # A "../" for each directory in $ac_dir_suffix.
8890 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8892 ac_dir_suffix
= ac_dots
=
8895 case "$ac_given_srcdir" in
8897 if test -z "$ac_dots"; then top_srcdir
=.
8898 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8899 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8901 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8902 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8906 echo creating
"$ac_file"
8908 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8910 *Makefile
*) ac_comsub
="1i\\
8911 # $configure_input" ;;
8915 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8917 s%@configure_input@%$configure_input%g
8918 s%@srcdir@%$srcdir%g
8919 s%@top_srcdir@%$top_srcdir%g
8920 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8924 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8925 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8927 # ac_d sets the value in "#define NAME VALUE" lines.
8928 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8929 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8932 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8933 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8934 ac_uB
='\([ ]\)%\1#\2define\3'
8937 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8938 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8939 ac_eB
='$%\1#\2define\3'
8943 if test "${CONFIG_HEADERS+set}" != set; then
8945 cat >> $CONFIG_STATUS <<EOF
8946 CONFIG_HEADERS="auto-host.h:config.in"
8948 cat >> $CONFIG_STATUS <<\EOF
8950 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8953 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8954 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8955 *) ac_file_in
="${ac_file}.in" ;;
8958 echo creating
$ac_file
8960 rm -f conftest.frag conftest.
in conftest.out
8961 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8962 cat $ac_file_inputs > conftest.
in
8966 # Transform confdefs.h into a sed script conftest.vals that substitutes
8967 # the proper values into config.h.in to produce config.h. And first:
8968 # Protect against being on the right side of a sed subst in config.status.
8969 # Protect against being in an unquoted here document in config.status.
8971 cat > conftest.hdr
<<\EOF
8974 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8978 sed -n -f conftest.hdr confdefs.h > conftest.vals
8981 # This sed command replaces #undef with comments. This is necessary, for
8982 # example, in the case of _POSIX_SOURCE, which is predefined and required
8983 # on some systems where configure will not decide to define it.
8984 cat >> conftest.vals <<\EOF
8985 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8988 # Break up conftest.vals because some shells have a limit on
8989 # the size of here documents, and old seds have small limits too.
8994 ac_lines=`grep -c . conftest.vals
`
8995 # grep -c gives empty output for an empty file on some AIX systems.
8996 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8997 # Write a limited-size here document to conftest.frag.
8998 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8999 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9001 sed -f conftest.frag conftest.in > conftest.out
9003 mv conftest.out conftest.in
9005 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9007 mv conftest.tail conftest.vals
9011 cat >> $CONFIG_STATUS <<\EOF
9012 rm -f conftest.frag conftest.h
9013 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9014 cat conftest.in >> conftest.h
9016 if cmp -s $ac_file conftest.h 2>/dev/null; then
9017 echo "$ac_file is unchanged"
9020 # Remove last slash and all that follows it. Not all systems have dirname.
9021 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9022 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9023 # The file is in a subdirectory.
9024 test ! -d "$ac_dir" && mkdir "$ac_dir"
9027 mv conftest.h $ac_file
9032 cat >> $CONFIG_STATUS <<EOF
9035 symbolic_link='$symbolic_link'
9038 cat >> $CONFIG_STATUS <<\EOF
9039 for ac_file in $CONFIG_FILES; do
9040 # Support "outfile[:infile[:infile...]]"
9042 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
9044 # PO directories have a Makefile.in generated from Makefile.in.in.
9045 case "$ac_file" in */Makefile.in)
9046 # Adjust a relative srcdir.
9047 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
9048 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
9049 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
9050 # In autoconf-2.13 it is called $ac_given_srcdir.
9051 # In autoconf-2.50 it is called $srcdir.
9052 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9053 case "$ac_given_srcdir" in
9054 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
9055 /*) top_srcdir="$ac_given_srcdir" ;;
9056 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9058 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9059 rm -f "$ac_dir/POTFILES"
9060 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9061 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9062 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9063 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9069 case x$CONFIG_HEADERS in
9070 xauto-host.h:config.in)
9073 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9074 # bootstrapping and the installation procedure can still use
9075 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9076 # FLAGS_TO_PASS has been modified to solve the problem there.
9077 # This is virtually a duplicate of what happens in configure.lang; we do
9078 # an extra check to make sure this only happens if ln -s can be used.
9079 if test "$symbolic_link" = "ln -s"; then
9080 for d in .. ${subdirs} fixinc ; do
9081 if test $d != ..; then
9082 STARTDIR=`${PWDCMD-pwd}`
9084 for t in stage1 stage2 stage3 stage4 include
9087 $symbolic_link ../$t $t 2>/dev/null
9093 # Avoid having to add intl to our include paths.
9094 if test -f intl/libintl.h; then
9095 echo creating libintl.h
9096 echo '#include "intl/libintl.h"' >libintl.h
9101 chmod +x $CONFIG_STATUS
9102 rm -fr confdefs* $ac_clean_files
9103 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1