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;
841 if test x
$ac_checking != x
; then
842 cat >> confdefs.h
<<\EOF
843 #define ENABLE_CHECKING 1
846 nocommon_flag
=-fno-common
849 if test x
$ac_tree_checking != x
; then
850 cat >> confdefs.h
<<\EOF
851 #define ENABLE_TREE_CHECKING 1
855 if test x
$ac_rtl_checking != x
; then
856 cat >> confdefs.h
<<\EOF
857 #define ENABLE_RTL_CHECKING 1
861 if test x
$ac_rtlflag_checking != x
; then
862 cat >> confdefs.h
<<\EOF
863 #define ENABLE_RTL_FLAG_CHECKING 1
867 if test x
$ac_gc_checking != x
; then
868 cat >> confdefs.h
<<\EOF
869 #define ENABLE_GC_CHECKING 1
873 if test x
$ac_gc_always_collect != x
; then
874 cat >> confdefs.h
<<\EOF
875 #define ENABLE_GC_ALWAYS_COLLECT 1
880 # Enable code coverage collection
881 # Check whether --enable-coverage or --disable-coverage was given.
882 if test "${enable_coverage+set}" = set; then
883 enableval
="$enable_coverage"
884 case "${enableval}" in
886 coverage_flags
="-fprofile-arcs -ftest-coverage -O0"
889 coverage_flags
="-fprofile-arcs -ftest-coverage -O2"
892 { echo "configure: error: unknown coverage setting $enableval" 1>&2; exit 1; }
901 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
902 if test "${with_cpp_install_dir+set}" = set; then
903 withval
="$with_cpp_install_dir"
904 if test x
$withval = xyes
; then
905 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
906 elif test x
$withval != xno
; then
907 cpp_install_dir
=$withval
912 # Enable __cxa_atexit for C++.
913 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
914 if test "${enable___cxa_atexit+set}" = set; then
915 enableval
="$enable___cxa_atexit"
919 if test x
$enable___cxa_atexit = xyes
; then
920 cat >> confdefs.h
<<\EOF
921 #define DEFAULT_USE_CXA_ATEXIT 1
926 # Enable Multibyte Characters for C/C++
927 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
928 if test "${enable_c_mbchar+set}" = set; then
929 enableval
="$enable_c_mbchar"
930 if test x
$enable_c_mbchar != xno
; then
931 cat >> confdefs.h
<<\EOF
932 #define MULTIBYTE_CHARS 1
940 # Pass with no value to take the default
941 # Pass with a value to specify a thread package
942 # Check whether --enable-threads or --disable-threads was given.
943 if test "${enable_threads+set}" = set; then
944 enableval
="$enable_threads"
951 enable_threads_flag
=$enable_threads
952 # Check if a valid thread package
953 case x
${enable_threads_flag} in
956 target_thread_file
='single'
960 target_thread_file
=''
962 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
963 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
964 target_thread_file
=$enable_threads_flag
967 echo "$enable_threads is an unknown thread package" 1>&2
972 # Check whether --enable-objc-gc or --disable-objc-gc was given.
973 if test "${enable_objc_gc+set}" = set; then
974 enableval
="$enable_objc_gc"
975 if test x
$enable_objc_gc = xno
; then
985 # Check whether --with-dwarf2 or --without-dwarf2 was given.
986 if test "${with_dwarf2+set}" = set; then
987 withval
="$with_dwarf2"
988 dwarf2
="$with_dwarf2"
994 # Check whether --enable-shared or --disable-shared was given.
995 if test "${enable_shared+set}" = set; then
996 enableval
="$enable_shared"
998 case $enable_shared in
1002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1003 for pkg
in $enableval; do
1004 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
1018 # Determine the host, build, and target systems
1020 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1021 if test -f $ac_dir/install-sh
; then
1023 ac_install_sh
="$ac_aux_dir/install-sh -c"
1025 elif test -f $ac_dir/install.sh
; then
1027 ac_install_sh
="$ac_aux_dir/install.sh -c"
1031 if test -z "$ac_aux_dir"; then
1032 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1034 ac_config_guess
=$ac_aux_dir/config.guess
1035 ac_config_sub
=$ac_aux_dir/config.sub
1036 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1039 # Do some error checking and defaulting for the host and target type.
1041 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1044 # 1. You are not allowed to specify --host, --target, and nonopt at the
1046 # 2. Host defaults to nonopt.
1047 # 3. If nonopt is not specified, then host defaults to the current host,
1048 # as determined by config.guess.
1049 # 4. Target and build default to nonopt.
1050 # 5. If nonopt is not specified, then target and build default to host.
1052 # The aliases save the names the user supplied, while $host etc.
1053 # will get canonicalized.
1054 case $host---$target---$nonopt in
1055 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1056 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1060 # Make sure we can run config.sub.
1061 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1062 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1065 echo $ac_n "checking host system type""... $ac_c" 1>&6
1066 echo "configure:1067: checking host system type" >&5
1069 case "$host_alias" in
1073 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1074 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1076 *) host_alias
=$nonopt ;;
1080 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1081 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1082 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1083 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1084 echo "$ac_t""$host" 1>&6
1086 echo $ac_n "checking target system type""... $ac_c" 1>&6
1087 echo "configure:1088: checking target system type" >&5
1089 target_alias
=$target
1090 case "$target_alias" in
1093 NONE
) target_alias
=$host_alias ;;
1094 *) target_alias
=$nonopt ;;
1098 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1099 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1100 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1101 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1102 echo "$ac_t""$target" 1>&6
1104 echo $ac_n "checking build system type""... $ac_c" 1>&6
1105 echo "configure:1106: checking build system type" >&5
1108 case "$build_alias" in
1111 NONE
) build_alias
=$host_alias ;;
1112 *) build_alias
=$nonopt ;;
1116 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1117 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1118 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1119 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1120 echo "$ac_t""$build" 1>&6
1122 test "$host_alias" != "$target_alias" &&
1123 test "$program_prefix$program_suffix$program_transform_name" = \
1125 program_prefix
=${target_alias}-
1128 # Set program_transform_name
1129 if test "$program_transform_name" = s
,x
,x
,; then
1130 program_transform_name
=
1132 # Double any \ or $. echo might interpret backslashes.
1133 cat <<\EOF_SED
> conftestsed
1134 s
,\\,\\\\,g
; s
,\$
,$$
,g
1136 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1139 test "$program_prefix" != NONE
&&
1140 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1141 # Use a double $ so make ignores it.
1142 test "$program_suffix" != NONE
&&
1143 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1145 # sed with no file args requires a program.
1146 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1149 # Find the native compiler
1150 # Extract the first word of "gcc", so it can be a program name with args.
1151 set dummy gcc
; ac_word
=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$CC"; then
1158 ac_cv_prog_CC
="$CC" # Let the user override the test.
1160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1162 for ac_dir
in $ac_dummy; do
1163 test -z "$ac_dir" && ac_dir
=.
1164 if test -f $ac_dir/$ac_word; then
1173 if test -n "$CC"; then
1174 echo "$ac_t""$CC" 1>&6
1176 echo "$ac_t""no" 1>&6
1179 if test -z "$CC"; then
1180 # Extract the first word of "cc", so it can be a program name with args.
1181 set dummy cc
; ac_word
=$2
1182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1183 echo "configure:1184: checking for $ac_word" >&5
1184 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 if test -n "$CC"; then
1188 ac_cv_prog_CC
="$CC" # Let the user override the test.
1190 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1193 for ac_dir
in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir
=.
1195 if test -f $ac_dir/$ac_word; then
1196 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1197 ac_prog_rejected
=yes
1205 if test $ac_prog_rejected = yes; then
1206 # We found a bogon in the path, so make sure we never use it.
1207 set dummy
$ac_cv_prog_CC
1209 if test $# -gt 0; then
1210 # We chose a different compiler from the bogus one.
1211 # However, it has the same basename, so the bogon will be chosen
1212 # first if we set CC to just the basename; use the full file name.
1214 set dummy
"$ac_dir/$ac_word" "$@"
1222 if test -n "$CC"; then
1223 echo "$ac_t""$CC" 1>&6
1225 echo "$ac_t""no" 1>&6
1228 if test -z "$CC"; then
1229 case "`uname -s`" in
1231 # Extract the first word of "cl", so it can be a program name with args.
1232 set dummy cl
; ac_word
=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 if test -n "$CC"; then
1239 ac_cv_prog_CC
="$CC" # Let the user override the test.
1241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1243 for ac_dir
in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir
=.
1245 if test -f $ac_dir/$ac_word; then
1254 if test -n "$CC"; then
1255 echo "$ac_t""$CC" 1>&6
1257 echo "$ac_t""no" 1>&6
1262 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1265 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1266 echo "configure:1267: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1270 ac_cpp
='$CPP $CPPFLAGS'
1271 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1272 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1273 cross_compiling
=$ac_cv_prog_cc_cross
1275 cat > conftest.
$ac_ext << EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1282 if { (eval echo configure
:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1283 ac_cv_prog_cc_works
=yes
1284 # If we can't run a trivial program, we are probably using a cross compiler.
1285 if (.
/conftest
; exit) 2>/dev
/null
; then
1286 ac_cv_prog_cc_cross
=no
1288 ac_cv_prog_cc_cross
=yes
1291 echo "configure: failed program was:" >&5
1292 cat conftest.
$ac_ext >&5
1293 ac_cv_prog_cc_works
=no
1297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1298 ac_cpp
='$CPP $CPPFLAGS'
1299 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1300 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1301 cross_compiling
=$ac_cv_prog_cc_cross
1303 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1304 if test $ac_cv_prog_cc_works = no
; then
1305 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1307 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1309 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1310 cross_compiling
=$ac_cv_prog_cc_cross
1312 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether we are using GNU C" >&5
1314 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftest.c
<<EOF
1322 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1329 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1331 if test $ac_cv_prog_gcc = yes; then
1337 ac_test_CFLAGS
="${CFLAGS+set}"
1338 ac_save_CFLAGS
="$CFLAGS"
1340 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1341 echo "configure:1342: checking whether ${CC-cc} accepts -g" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 echo 'void f(){}' > conftest.c
1346 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1355 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1356 if test "$ac_test_CFLAGS" = set; then
1357 CFLAGS
="$ac_save_CFLAGS"
1358 elif test $ac_cv_prog_cc_g = yes; then
1359 if test "$GCC" = yes; then
1365 if test "$GCC" = yes; then
1372 if test "x$CC" != xcc
; then
1373 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1374 echo "configure:1375: checking whether $CC and cc understand -c and -o together" >&5
1376 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1377 echo "configure:1378: checking whether cc understands -c and -o together" >&5
1379 set dummy
$CC; ac_cc
="`echo $2 |
1380 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1381 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 echo 'foo(){}' > conftest.c
1385 # Make sure it works both with $CC and with simple cc.
1386 # We do the test twice because some compilers refuse to overwrite an
1387 # existing .o file with -o, though they will create one.
1388 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1389 if { (eval echo configure
:1390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1390 test -f conftest.o
&& { (eval echo configure
:1391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1392 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1393 if test "x$CC" != xcc
; then
1394 # Test first that cc exists at all.
1395 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1396 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1397 if { (eval echo configure
:1398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1398 test -f conftest.o
&& { (eval echo configure
:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1403 # cc exists but doesn't like -o.
1404 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1409 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1414 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1415 echo "$ac_t""yes" 1>&6
1417 echo "$ac_t""no" 1>&6
1418 cat >> confdefs.h
<<\EOF
1419 #define NO_MINUS_C_MINUS_O 1
1424 # autoconf is lame and doesn't give us any substitution variable for this.
1425 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1426 NO_MINUS_C_MINUS_O
=yes
1428 OUTPUT_OPTION
='-o $@'
1433 # See if GNAT has been installed
1434 if test $host != $build; then
1435 ac_tool_prefix
=${host_alias}-
1441 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1442 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1444 echo "configure:1445: checking for $ac_word" >&5
1445 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test -n "$GNATBIND"; then
1449 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1451 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1453 for ac_dir
in $ac_dummy; do
1454 test -z "$ac_dir" && ac_dir
=.
1455 if test -f $ac_dir/$ac_word; then
1456 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1463 GNATBIND
="$ac_cv_prog_GNATBIND"
1464 if test -n "$GNATBIND"; then
1465 echo "$ac_t""$GNATBIND" 1>&6
1467 echo "$ac_t""no" 1>&6
1471 if test -z "$ac_cv_prog_GNATBIND"; then
1472 if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "gnatbind", so it can be a program name with args.
1474 set dummy gnatbind
; ac_word
=$2
1475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_word" >&5
1477 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 if test -n "$GNATBIND"; then
1481 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1483 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1485 for ac_dir
in $ac_dummy; do
1486 test -z "$ac_dir" && ac_dir
=.
1487 if test -f $ac_dir/$ac_word; then
1488 ac_cv_prog_GNATBIND
="gnatbind"
1493 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1496 GNATBIND
="$ac_cv_prog_GNATBIND"
1497 if test -n "$GNATBIND"; then
1498 echo "$ac_t""$GNATBIND" 1>&6
1500 echo "$ac_t""no" 1>&6
1508 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1509 echo "configure:1510: checking for compiler driver that understands Ada" >&5
1510 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 cat >conftest.adb
<<EOF
1514 procedure conftest is begin null; end conftest;
1517 # Have to do ac_tool_prefix and user overrides by hand.
1520 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
1521 ${ac_tool_prefix}$user_cc $user_cc \
1522 ${ac_tool_prefix}gcc gcc \
1523 ${ac_tool_prefix}cc cc \
1524 ${ac_tool_prefix}gnatgcc gnatgcc \
1525 ${ac_tool_prefix}gnatcc gnatcc \
1526 ${ac_tool_prefix}adagcc adagcc \
1527 ${ac_tool_prefix}adacc adacc
; do
1528 # There is a bug in all released versions of GCC which causes the
1529 # driver to exit successfully when the appropriate language module
1530 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1531 # Therefore we must check for the error message as well as an
1532 # unsuccessful exit.
1533 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1534 if test x
"$errors" = x
; then
1535 gcc_cv_prog_adac
=$cand
1542 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1543 ADAC
=$gcc_cv_prog_adac
1546 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1553 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1554 echo "configure:1555: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1555 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 save_CFLAGS
="$CFLAGS"
1559 CFLAGS
="-Wno-long-long"
1560 cat > conftest.
$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1568 if { (eval echo configure
:1569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1570 ac_cv_prog_cc_no_long_long
=yes
1572 echo "configure: failed program was:" >&5
1573 cat conftest.
$ac_ext >&5
1575 ac_cv_prog_cc_no_long_long
=no
1578 CFLAGS
="$save_CFLAGS"
1581 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1583 if test x
$have_gnat != xno
; then
1584 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1585 echo "configure:1586: checking whether ${ADAC} accepts -Wno-long-long" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 cat >conftest.adb
<<EOF
1590 procedure conftest is begin null; end conftest;
1592 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1593 ac_cv_prog_adac_no_long_long
=yes
1595 ac_cv_prog_adac_no_long_long
=no
1600 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1602 ac_cv_prog_adac_no_long_long
=yes
1606 if test $ac_cv_prog_cc_no_long_long = yes && \
1607 test $ac_cv_prog_adac_no_long_long = yes ; then
1608 strict1_warn
="-pedantic -Wno-long-long"
1612 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1613 echo "configure:1614: checking how to run the C preprocessor" >&5
1614 # On Suns, sometimes $CPP names a directory.
1615 if test -n "$CPP" && test -d "$CPP"; then
1618 if test -z "$CPP"; then
1619 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 # This must be in double quotes, not single quotes, because CPP may get
1623 # substituted into the Makefile and "${CC-cc}" will confuse make.
1625 # On the NeXT, cc -E runs the code through the compiler's parser,
1626 # not just through cpp.
1627 cat > conftest.
$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1633 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1634 { (eval echo configure
:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1635 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1636 if test -z "$ac_err"; then
1640 echo "configure: failed program was:" >&5
1641 cat conftest.
$ac_ext >&5
1643 CPP
="${CC-cc} -E -traditional-cpp"
1644 cat > conftest.
$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1650 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1651 { (eval echo configure
:1652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1652 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1653 if test -z "$ac_err"; then
1657 echo "configure: failed program was:" >&5
1658 cat conftest.
$ac_ext >&5
1660 CPP
="${CC-cc} -nologo -E"
1661 cat > conftest.
$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1668 { (eval echo configure
:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1670 if test -z "$ac_err"; then
1674 echo "configure: failed program was:" >&5
1675 cat conftest.
$ac_ext >&5
1684 ac_cv_prog_CPP
="$CPP"
1686 CPP
="$ac_cv_prog_CPP"
1688 ac_cv_prog_CPP
="$CPP"
1690 echo "$ac_t""$CPP" 1>&6
1692 echo $ac_n "checking for inline""... $ac_c" 1>&6
1693 echo "configure:1694: checking for inline" >&5
1694 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1698 for ac_kw
in inline __inline__ __inline
; do
1699 cat > conftest.
$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1707 if { (eval echo configure
:1708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1709 ac_cv_c_inline
=$ac_kw; break
1711 echo "configure: failed program was:" >&5
1712 cat conftest.
$ac_ext >&5
1719 echo "$ac_t""$ac_cv_c_inline" 1>&6
1720 case "$ac_cv_c_inline" in
1722 no
) cat >> confdefs.h
<<\EOF
1726 *) cat >> confdefs.h
<<EOF
1727 #define inline $ac_cv_c_inline
1732 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1733 echo "configure:1734: checking for volatile" >&5
1734 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.
$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1745 if { (eval echo configure
:1746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1747 gcc_cv_c_volatile
=yes
1749 echo "configure: failed program was:" >&5
1750 cat conftest.
$ac_ext >&5
1752 gcc_cv_c_volatile
=no
1757 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1758 if test $gcc_cv_c_volatile = yes ; then
1759 cat >> confdefs.h
<<\EOF
1760 #define HAVE_VOLATILE 1
1766 echo $ac_n "checking for long double""... $ac_c" 1>&6
1767 echo "configure:1768: checking for long double" >&5
1768 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 if test "$GCC" = yes; then
1772 gcc_cv_c_long_double
=yes
1774 cat > conftest.
$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1779 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1780 long double foo = 0.0;
1781 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1782 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1785 if { (eval echo configure
:1786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1787 gcc_cv_c_long_double
=yes
1789 echo "configure: failed program was:" >&5
1790 cat conftest.
$ac_ext >&5
1792 gcc_cv_c_long_double
=no
1798 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1799 if test $gcc_cv_c_long_double = yes; then
1800 cat >> confdefs.h
<<\EOF
1801 #define HAVE_LONG_DOUBLE 1
1806 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1807 echo "configure:1808: checking for long long int" >&5
1808 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1819 if { (eval echo configure
:1820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1821 ac_cv_c_long_long
=yes
1823 echo "configure: failed program was:" >&5
1824 cat conftest.
$ac_ext >&5
1826 ac_cv_c_long_long
=no
1831 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1832 if test $ac_cv_c_long_long = yes; then
1833 cat >> confdefs.h
<<\EOF
1834 #define HAVE_LONG_LONG 1
1838 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1839 echo "configure:1840: checking for __int64" >&5
1840 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 cat > conftest.
$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1851 if { (eval echo configure
:1852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1855 echo "configure: failed program was:" >&5
1856 cat conftest.
$ac_ext >&5
1863 echo "$ac_t""$ac_cv_c___int64" 1>&6
1864 if test $ac_cv_c___int64 = yes; then
1865 cat >> confdefs.h
<<\EOF
1866 #define HAVE___INT64 1
1871 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1872 echo "configure:1873: checking for built-in _Bool" >&5
1873 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 cat > conftest.
$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1884 if { (eval echo configure
:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1888 echo "configure: failed program was:" >&5
1889 cat conftest.
$ac_ext >&5
1897 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1898 if test $gcc_cv_c__bool = yes; then
1899 cat >> confdefs.h
<<\EOF
1900 #define HAVE__BOOL 1
1906 # sizeof(char) is 1 by definition.
1907 echo $ac_n "checking size of short""... $ac_c" 1>&6
1908 echo "configure:1909: checking size of short" >&5
1909 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1921 switch (0) case 0: case (sizeof (short) == $ac_size):;
1924 if { (eval echo configure
:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1926 ac_cv_sizeof_short
=$ac_size
1928 echo "configure: failed program was:" >&5
1929 cat conftest.
$ac_ext >&5
1932 if test x
$ac_cv_sizeof_short != x
; then break; fi
1937 if test x
$ac_cv_sizeof_short = x
; then
1938 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1940 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1941 cat >> confdefs.h
<<EOF
1942 #define SIZEOF_SHORT $ac_cv_sizeof_short
1946 echo $ac_n "checking size of int""... $ac_c" 1>&6
1947 echo "configure:1948: checking size of int" >&5
1948 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1952 cat > conftest.
$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1955 #include "confdefs.h"
1956 #include <sys/types.h>
1960 switch (0) case 0: case (sizeof (int) == $ac_size):;
1963 if { (eval echo configure
:1964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1965 ac_cv_sizeof_int
=$ac_size
1967 echo "configure: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1971 if test x
$ac_cv_sizeof_int != x
; then break; fi
1976 if test x
$ac_cv_sizeof_int = x
; then
1977 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1979 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1980 cat >> confdefs.h
<<EOF
1981 #define SIZEOF_INT $ac_cv_sizeof_int
1985 echo $ac_n "checking size of long""... $ac_c" 1>&6
1986 echo "configure:1987: checking size of long" >&5
1987 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1991 cat > conftest.
$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 #include "confdefs.h"
1995 #include <sys/types.h>
1999 switch (0) case 0: case (sizeof (long) == $ac_size):;
2002 if { (eval echo configure
:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 ac_cv_sizeof_long
=$ac_size
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2010 if test x
$ac_cv_sizeof_long != x
; then break; fi
2015 if test x
$ac_cv_sizeof_long = x
; then
2016 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
2018 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2019 cat >> confdefs.h
<<EOF
2020 #define SIZEOF_LONG $ac_cv_sizeof_long
2024 if test $ac_cv_c_long_long = yes; then
2025 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2026 echo "configure:2027: checking size of long long" >&5
2027 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2031 cat > conftest.
$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2034 #include "confdefs.h"
2035 #include <sys/types.h>
2039 switch (0) case 0: case (sizeof (long long) == $ac_size):;
2042 if { (eval echo configure
:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2044 ac_cv_sizeof_long_long
=$ac_size
2046 echo "configure: failed program was:" >&5
2047 cat conftest.
$ac_ext >&5
2050 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2055 if test x
$ac_cv_sizeof_long_long = x
; then
2056 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2058 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2059 cat >> confdefs.h
<<EOF
2060 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2065 if test $ac_cv_c___int64 = yes; then
2066 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
2067 echo "configure:2068: checking size of __int64" >&5
2068 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2072 cat > conftest.
$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 #include "confdefs.h"
2076 #include <sys/types.h>
2080 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
2083 if { (eval echo configure
:2084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2085 ac_cv_sizeof___int64
=$ac_size
2087 echo "configure: failed program was:" >&5
2088 cat conftest.
$ac_ext >&5
2091 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
2096 if test x
$ac_cv_sizeof___int64 = x
; then
2097 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
2099 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
2100 cat >> confdefs.h
<<EOF
2101 #define SIZEOF___INT64 $ac_cv_sizeof___int64
2107 echo $ac_n "checking execution character set""... $ac_c" 1>&6
2108 echo "configure:2109: checking execution character set" >&5
2109 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.
$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2116 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2121 egrep "ASCII" >/dev
/null
2>&1; then
2123 ac_cv_c_charset
=ASCII
2127 if test x
${ac_cv_c_charset+set} != xset
; then
2128 cat > conftest.
$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2132 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2137 egrep "EBCDIC" >/dev
/null
2>&1; then
2139 ac_cv_c_charset
=EBCDIC
2144 if test x
${ac_cv_c_charset+set} != xset
; then
2145 ac_cv_c_charset
=unknown
2149 echo "$ac_t""$ac_cv_c_charset" 1>&6
2150 if test $ac_cv_c_charset = unknown
; then
2151 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
2152 elif test $ac_cv_c_charset = EBCDIC
; then
2153 cat >> confdefs.h
<<\EOF
2154 #define HOST_EBCDIC 1
2159 # If the native compiler is GCC, we can enable warnings even in stage1.
2160 # That's useful for people building cross-compilers, or just running a
2163 if test "x$GCC" = "xyes"; then
2164 warn_cflags
='$(GCC_WARN_CFLAGS)'
2168 # Stage specific cflags for build.
2172 if test x
$GCC = xyes
2174 stage1_cflags
="-Wa,-J"
2180 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
2181 # sources; use -no-cpp-precomp to get to GNU cpp.
2182 # Apple's GCC has bugs in designated initializer handling, so disable
2184 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
2189 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2190 echo "configure:2191: checking whether ${MAKE-make} sets \${MAKE}" >&5
2191 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2192 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftestmake
<<\EOF
2197 @
echo 'ac_maketemp="${MAKE}"'
2199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2200 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2201 if test -n "$ac_maketemp"; then
2202 eval ac_cv_prog_make_
${ac_make}_set
=yes
2204 eval ac_cv_prog_make_
${ac_make}_set
=no
2208 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2212 echo "$ac_t""no" 1>&6
2213 SET_MAKE
="MAKE=${MAKE-make}"
2217 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2218 echo "configure:2219: checking whether a default assembler was specified" >&5
2219 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2220 if test x
"$gas_flag" = x
"no"; then
2221 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2223 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2226 echo "$ac_t""no" 1>&6
2229 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2230 echo "configure:2231: checking whether a default linker was specified" >&5
2231 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2232 if test x
"$gnu_ld_flag" = x
"no"; then
2233 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2235 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2238 echo "$ac_t""no" 1>&6
2241 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2242 echo "configure:2243: checking for GNU C library" >&5
2243 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2249 #include <features.h>
2252 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2253 #error Not a GNU C library system
2257 if { (eval echo configure
:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2261 echo "configure: failed program was:" >&5
2262 cat conftest.
$ac_ext >&5
2269 echo "$ac_t""$gcc_cv_glibc" 1>&6
2270 if test $gcc_cv_glibc = yes; then
2271 cat >> confdefs.h
<<\EOF
2272 #define _GNU_SOURCE 1
2277 # Find some useful tools
2278 for ac_prog
in gawk mawk nawk
awk
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy
$ac_prog; ac_word
=$2
2282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2283 echo "configure:2284: checking for $ac_word" >&5
2284 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 if test -n "$AWK"; then
2288 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2290 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2292 for ac_dir
in $ac_dummy; do
2293 test -z "$ac_dir" && ac_dir
=.
2294 if test -f $ac_dir/$ac_word; then
2295 ac_cv_prog_AWK
="$ac_prog"
2302 AWK
="$ac_cv_prog_AWK"
2303 if test -n "$AWK"; then
2304 echo "$ac_t""$AWK" 1>&6
2306 echo "$ac_t""no" 1>&6
2309 test -n "$AWK" && break
2312 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2313 echo "configure:2314: checking whether ln works" >&5
2314 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 rm -f conftestdata_t
2318 echo >conftestdata_f
2319 if ln conftestdata_f conftestdata_t
2>/dev
/null
2323 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2325 gcc_cv_prog_LN
="ln -s"
2330 rm -f conftestdata_f conftestdata_t
2333 LN
="$gcc_cv_prog_LN"
2334 if test "$gcc_cv_prog_LN" = "ln"; then
2335 echo "$ac_t""yes" 1>&6
2337 if test "$gcc_cv_prog_LN" = "ln -s"; then
2338 echo "$ac_t""no, using ln -s" 1>&6
2340 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2344 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2345 echo "configure:2346: checking whether ln -s works" >&5
2346 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 rm -f conftestdata_t
2350 echo >conftestdata_f
2351 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2353 gcc_cv_prog_LN_S
="ln -s"
2355 if ln conftestdata_f conftestdata_t
2>/dev
/null
2362 rm -f conftestdata_f conftestdata_t
2365 LN_S
="$gcc_cv_prog_LN_S"
2366 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2367 echo "$ac_t""yes" 1>&6
2369 if test "$gcc_cv_prog_LN_S" = "ln"; then
2370 echo "$ac_t""no, using ln" 1>&6
2372 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2376 # Extract the first word of "ranlib", so it can be a program name with args.
2377 set dummy ranlib
; ac_word
=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 if test -n "$RANLIB"; then
2384 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2386 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2388 for ac_dir
in $ac_dummy; do
2389 test -z "$ac_dir" && ac_dir
=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_prog_RANLIB
="ranlib"
2396 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2399 RANLIB
="$ac_cv_prog_RANLIB"
2400 if test -n "$RANLIB"; then
2401 echo "$ac_t""$RANLIB" 1>&6
2403 echo "$ac_t""no" 1>&6
2406 # Find a good install program. We prefer a C program (faster),
2407 # so one script is as good as another. But avoid the broken or
2408 # incompatible versions:
2409 # SysV /etc/install, /usr/sbin/install
2410 # SunOS /usr/etc/install
2411 # IRIX /sbin/install
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # ./install, which can be erroneously created by make from ./install.sh.
2416 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2417 echo "configure:2418: checking for a BSD compatible install" >&5
2418 if test -z "$INSTALL"; then
2419 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2422 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2423 for ac_dir
in $PATH; do
2424 # Account for people who put trailing slashes in PATH elements.
2426 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2428 # OSF1 and SCO ODT 3.0 have their own names for install.
2429 for ac_prog
in ginstall scoinst
install; do
2430 if test -f $ac_dir/$ac_prog; then
2431 if test $ac_prog = install &&
2432 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2433 # AIX install. It has an incompatible calling convention.
2434 # OSF/1 installbsd also uses dspmsg, but is usable.
2437 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2448 if test "${ac_cv_path_install+set}" = set; then
2449 INSTALL
="$ac_cv_path_install"
2451 # As a last resort, use the slow shell script. We don't cache a
2452 # path for INSTALL within a source directory, because that will
2453 # break other packages using the cache if that directory is
2454 # removed, or if the path is relative.
2455 INSTALL
="$ac_install_sh"
2458 echo "$ac_t""$INSTALL" 1>&6
2460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461 # It thinks the first close brace ends the variable substitution.
2462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2464 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2467 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2468 echo "configure:2469: checking for ANSI C header files" >&5
2469 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.
$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2480 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2481 { (eval echo configure
:2482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2482 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2483 if test -z "$ac_err"; then
2485 ac_cv_header_stdc
=yes
2488 echo "configure: failed program was:" >&5
2489 cat conftest.
$ac_ext >&5
2491 ac_cv_header_stdc
=no
2495 if test $ac_cv_header_stdc = yes; then
2496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2497 cat > conftest.
$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2503 egrep "memchr" >/dev
/null
2>&1; then
2507 ac_cv_header_stdc
=no
2513 if test $ac_cv_header_stdc = yes; then
2514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2515 cat > conftest.
$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2521 egrep "free" >/dev
/null
2>&1; then
2525 ac_cv_header_stdc
=no
2531 if test $ac_cv_header_stdc = yes; then
2532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2533 if test "$cross_compiling" = yes; then
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2540 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2541 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2543 int main () { int i; for (i = 0; i < 256; i++)
2544 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2548 if { (eval echo configure
:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2552 echo "configure: failed program was:" >&5
2553 cat conftest.
$ac_ext >&5
2555 ac_cv_header_stdc
=no
2563 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2564 if test $ac_cv_header_stdc = yes; then
2565 cat >> confdefs.h
<<\EOF
2566 #define STDC_HEADERS 1
2571 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2572 echo "configure:2573: checking whether time.h and sys/time.h may both be included" >&5
2573 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2579 #include <sys/types.h>
2580 #include <sys/time.h>
2586 if { (eval echo configure
:2587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2588 ac_cv_header_time
=yes
2590 echo "configure: failed program was:" >&5
2591 cat conftest.
$ac_ext >&5
2593 ac_cv_header_time
=no
2598 echo "$ac_t""$ac_cv_header_time" 1>&6
2599 if test $ac_cv_header_time = yes; then
2600 cat >> confdefs.h
<<\EOF
2601 #define TIME_WITH_SYS_TIME 1
2606 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2607 echo "configure:2608: checking for working stdbool.h" >&5
2608 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 cat > conftest.
$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 #include <stdbool.h>
2619 if { (eval echo configure
:2620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2621 ac_cv_header_stdbool_h
=yes
2623 echo "configure: failed program was:" >&5
2624 cat conftest.
$ac_ext >&5
2626 ac_cv_header_stdbool_h
=no
2631 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2632 if test $ac_cv_header_stdbool_h = yes; then
2633 cat >> confdefs.h
<<\EOF
2634 #define HAVE_STDBOOL_H 1
2639 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2640 echo "configure:2641: checking whether string.h and strings.h may both be included" >&5
2641 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.
$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2648 #include <strings.h>
2653 if { (eval echo configure
:2654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2655 gcc_cv_header_string
=yes
2657 echo "configure: failed program was:" >&5
2658 cat conftest.
$ac_ext >&5
2660 gcc_cv_header_string
=no
2665 echo "$ac_t""$gcc_cv_header_string" 1>&6
2666 if test $gcc_cv_header_string = yes; then
2667 cat >> confdefs.h
<<\EOF
2668 #define STRING_WITH_STRINGS 1
2673 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2674 echo "configure:2675: checking for sys/wait.h that is POSIX.1 compatible" >&5
2675 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 #include <sys/types.h>
2682 #include <sys/wait.h>
2684 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2687 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2692 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2695 if { (eval echo configure
:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 ac_cv_header_sys_wait_h
=yes
2699 echo "configure: failed program was:" >&5
2700 cat conftest.
$ac_ext >&5
2702 ac_cv_header_sys_wait_h
=no
2707 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2708 if test $ac_cv_header_sys_wait_h = yes; then
2709 cat >> confdefs.h
<<\EOF
2710 #define HAVE_SYS_WAIT_H 1
2715 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2716 fcntl.h unistd.h sys
/file.h sys
/time.h \
2717 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2718 direct.h malloc.h langinfo.h
2720 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2722 echo "configure:2723: checking for $ac_hdr" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure
:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2736 eval "ac_cv_header_$ac_safe=yes"
2739 echo "configure: failed program was:" >&5
2740 cat conftest.
$ac_ext >&5
2742 eval "ac_cv_header_$ac_safe=no"
2746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2747 echo "$ac_t""yes" 1>&6
2748 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2749 cat >> confdefs.h
<<EOF
2750 #define $ac_tr_hdr 1
2754 echo "$ac_t""no" 1>&6
2759 # Check for thread headers.
2760 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2761 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2762 echo "configure:2763: checking for thread.h" >&5
2763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 cat > conftest.
$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2771 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2772 { (eval echo configure
:2773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2773 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2774 if test -z "$ac_err"; then
2776 eval "ac_cv_header_$ac_safe=yes"
2779 echo "configure: failed program was:" >&5
2780 cat conftest.
$ac_ext >&5
2782 eval "ac_cv_header_$ac_safe=no"
2786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2790 echo "$ac_t""no" 1>&6
2794 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2795 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2796 echo "configure:2797: checking for pthread.h" >&5
2797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 cat > conftest.
$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <pthread.h>
2805 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2806 { (eval echo configure
:2807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2807 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2808 if test -z "$ac_err"; then
2810 eval "ac_cv_header_$ac_safe=yes"
2813 echo "configure: failed program was:" >&5
2814 cat conftest.
$ac_ext >&5
2816 eval "ac_cv_header_$ac_safe=no"
2820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2821 echo "$ac_t""yes" 1>&6
2824 echo "$ac_t""no" 1>&6
2829 # These tests can't be done till we know if we have limits.h.
2830 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2831 echo "configure:2832: checking for CHAR_BIT" >&5
2832 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.
$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 #ifdef HAVE_LIMITS_H
2845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2846 egrep "found" >/dev
/null
2>&1; then
2848 gcc_cv_decl_char_bit
=yes
2851 gcc_cv_decl_char_bit
=no
2858 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2859 if test $gcc_cv_decl_char_bit = no
; then
2860 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2861 echo "configure:2862: checking number of bits in a byte" >&5
2862 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2867 while test $i -lt 65; do
2868 cat > conftest.
$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2874 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2875 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2879 if { (eval echo configure
:2880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2881 gcc_cv_c_nbby
=$i; break
2883 echo "configure: failed program was:" >&5
2884 cat conftest.
$ac_ext >&5
2889 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2893 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2894 if test $gcc_cv_c_nbby = failed
; then
2895 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2897 cat >> confdefs.h
<<EOF
2898 #define CHAR_BIT $gcc_cv_c_nbby
2903 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2904 echo "configure:2905: checking byte ordering" >&5
2905 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 ac_cv_c_compile_endian
=unknown
2911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2912 ac_cpp
='$CPP $CPPFLAGS'
2913 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2914 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2915 cross_compiling
=$ac_cv_prog_cc_cross
2917 cat > conftest.
$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2921 #ifdef HAVE_LIMITS_H
2922 # include <limits.h>
2924 /* This structure must have no internal padding. */
2926 char prefix[sizeof "\nendian:" - 1];
2931 #if SIZEOF_SHORT == 4
2932 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2934 ('A' << CHAR_BIT) | 'B',
2938 if { (eval echo configure
:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2940 sed 's/^[0-7]*[ ]*/ /
2943 s/ [0-9][0-9][0-9]/./g
2949 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2950 ac_cv_c_compile_endian
=big-endian
2951 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2952 ac_cv_c_compile_endian
=little-endian
2957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2958 ac_cpp
='$CPP $CPPFLAGS'
2959 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2960 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2961 cross_compiling
=$ac_cv_prog_cc_cross
2966 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2967 if test $ac_cv_c_compile_endian = unknown
; then
2968 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2969 elif test $ac_cv_c_compile_endian = big-endian
; then
2970 cat >> confdefs.h
<<\EOF
2971 #define HOST_WORDS_BIG_ENDIAN 1
2976 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2977 echo "configure:2978: checking floating point format" >&5
2978 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2984 ac_cpp
='$CPP $CPPFLAGS'
2985 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2986 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2987 cross_compiling
=$ac_cv_prog_cc_cross
2989 cat > conftest.
$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 /* This will not work unless sizeof(double) == 8. */
2993 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2995 /* This structure must have no internal padding. */
2996 struct possibility {
3002 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
3003 struct possibility table [] =
3005 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
3006 C( 3.53802595280598432000e+18), /* D__float - VAX */
3007 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
3008 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
3009 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
3012 if { (eval echo configure
:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3014 sed 's/^[0-7]*[ ]*/ /
3017 s/ [0-9][0-9][0-9]/./g
3023 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3024 ac_cv_c_float_format
='IEEE (big-endian)'
3025 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3026 ac_cv_c_float_format
='IEEE (big-endian)'
3027 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3028 ac_cv_c_float_format
='IEEE (little-endian)'
3029 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3030 ac_cv_c_float_format
='IEEE (little-endian)'
3031 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3032 ac_cv_c_float_format
='VAX D-float'
3033 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3034 ac_cv_c_float_format
='PDP-10'
3035 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3036 ac_cv_c_float_format
='IBM 370 hex'
3038 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
3041 { echo "configure: error: compile failed" 1>&2; exit 1; }
3045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3046 ac_cpp
='$CPP $CPPFLAGS'
3047 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3048 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3049 cross_compiling
=$ac_cv_prog_cc_cross
3054 echo "$ac_t""$ac_cv_c_float_format" 1>&6
3055 # IEEE is the default format. If the float endianness isn't the same
3056 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
3057 # (which is a tristate: yes, no, default). This is only an issue with
3058 # IEEE; the other formats are only supported by a few machines each,
3059 # all with the same endianness.
3062 case $ac_cv_c_float_format in
3063 'IEEE (big-endian)' )
3064 if test $ac_cv_c_compile_endian = little-endian
; then
3068 'IEEE (little-endian)' )
3069 if test $ac_cv_c_compile_endian = big-endian
; then
3074 format
=VAX_FLOAT_FORMAT
3077 format
=PDP10_FLOAT_FORMAT
3080 format
=IBM_FLOAT_FORMAT
3083 if test -n "$format"; then
3084 cat >> confdefs.h
<<EOF
3085 #define HOST_FLOAT_FORMAT $format
3089 if test -n "$fbigend"; then
3090 cat >> confdefs.h
<<EOF
3091 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
3097 # See if we have the mktemp command.
3098 # Extract the first word of "mktemp", so it can be a program name with args.
3099 set dummy mktemp
; ac_word
=$2
3100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3101 echo "configure:3102: checking for $ac_word" >&5
3102 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 if test -n "$have_mktemp_command"; then
3106 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3108 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3110 for ac_dir
in $ac_dummy; do
3111 test -z "$ac_dir" && ac_dir
=.
3112 if test -f $ac_dir/$ac_word; then
3113 ac_cv_prog_have_mktemp_command
="yes"
3118 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3121 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3122 if test -n "$have_mktemp_command"; then
3123 echo "$ac_t""$have_mktemp_command" 1>&6
3125 echo "$ac_t""no" 1>&6
3129 # Do we have a single-tree copy of texinfo?
3130 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3131 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3132 gcc_cv_prog_makeinfo_modern
=yes
3133 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3135 # See if makeinfo has been installed and is modern enough
3136 # that we can use it.
3137 # Extract the first word of "makeinfo", so it can be a program name with args.
3138 set dummy makeinfo
; ac_word
=$2
3139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_word" >&5
3141 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 if test -n "$MAKEINFO"; then
3145 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3147 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3149 for ac_dir
in $ac_dummy; do
3150 test -z "$ac_dir" && ac_dir
=.
3151 if test -f $ac_dir/$ac_word; then
3152 ac_cv_prog_MAKEINFO
="makeinfo"
3159 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3160 if test -n "$MAKEINFO"; then
3161 echo "$ac_t""$MAKEINFO" 1>&6
3163 echo "$ac_t""no" 1>&6
3166 if test -n "$MAKEINFO"; then
3167 # Found it, now check the version.
3168 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3169 echo "configure:3170: checking for modern makeinfo" >&5
3170 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3174 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3175 echo "configure:3176: version of makeinfo is $ac_prog_version" >&5
3176 case $ac_prog_version in
3177 '') gcc_cv_prog_makeinfo_modern
=no
;;
3179 gcc_cv_prog_makeinfo_modern
=yes;;
3180 *) gcc_cv_prog_makeinfo_modern
=no
;;
3185 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3187 gcc_cv_prog_makeinfo_modern
=no
3192 if test $gcc_cv_prog_makeinfo_modern = no
; then
3193 echo "configure: warning:
3194 *** Makeinfo is missing or too old.
3195 *** Info documentation will not be built." 1>&2
3201 # Is pod2man recent enough to regenerate manpages?
3202 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3203 echo "configure:3204: checking for recent Pod::Man" >&5
3204 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3205 echo "$ac_t""yes" 1>&6
3206 GENERATED_MANPAGES
=generated-manpages
3208 echo "$ac_t""no" 1>&6
3213 if test -f $srcdir/..
/flex
/skel.c
; then
3214 FLEX
='$(objdir)/../flex/flex'
3216 # Extract the first word of "flex", so it can be a program name with args.
3217 set dummy flex
; ac_word
=$2
3218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3219 echo "configure:3220: checking for $ac_word" >&5
3220 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 if test -n "$FLEX"; then
3224 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3228 for ac_dir
in $ac_dummy; do
3229 test -z "$ac_dir" && ac_dir
=.
3230 if test -f $ac_dir/$ac_word; then
3231 ac_cv_prog_FLEX
="flex"
3236 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3239 FLEX
="$ac_cv_prog_FLEX"
3240 if test -n "$FLEX"; then
3241 echo "$ac_t""$FLEX" 1>&6
3243 echo "$ac_t""no" 1>&6
3249 # The -L switch is so bison can find its skeleton file.
3250 if test -f $srcdir/..
/bison
/bison.simple
; then
3251 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3253 # Extract the first word of "bison", so it can be a program name with args.
3254 set dummy bison
; ac_word
=$2
3255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3256 echo "configure:3257: checking for $ac_word" >&5
3257 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 if test -n "$BISON"; then
3261 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3265 for ac_dir
in $ac_dummy; do
3266 test -z "$ac_dir" && ac_dir
=.
3267 if test -f $ac_dir/$ac_word; then
3268 ac_cv_prog_BISON
="bison"
3273 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3276 BISON
="$ac_cv_prog_BISON"
3277 if test -n "$BISON"; then
3278 echo "$ac_t""$BISON" 1>&6
3280 echo "$ac_t""no" 1>&6
3285 # These libraries may be used by collect2.
3286 # We may need a special search path to get them linked.
3287 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3288 echo "configure:3289: checking for collect2 libraries" >&5
3289 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3293 for libs
in '' -lld -lmld \
3294 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3295 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 /* Override any gcc2 internal prototype to avoid an error. */
3302 /* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
3310 if { (eval echo configure
:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3312 gcc_cv_collect2_libs
="$libs"; break
3314 echo "configure: failed program was:" >&5
3315 cat conftest.
$ac_ext >&5
3320 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3323 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3324 case $gcc_cv_collect2_libs in
3326 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3330 # When building Ada code on Alpha, we need exc_resume which is usually in
3331 # -lexc. So test for it.
3335 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3336 echo "configure:3337: checking for library containing exc_resume" >&5
3337 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3340 ac_func_search_save_LIBS
="$LIBS"
3341 ac_cv_search_exc_resume
="no"
3342 cat > conftest.
$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 /* Override any gcc2 internal prototype to avoid an error. */
3346 /* We use char because int might match the return type of a gcc2
3347 builtin and then its argument prototype would still apply. */
3354 if { (eval echo configure
:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3356 ac_cv_search_exc_resume
="none required"
3358 echo "configure: failed program was:" >&5
3359 cat conftest.
$ac_ext >&5
3362 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3363 LIBS
="-l$i $ac_func_search_save_LIBS"
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* Override any gcc2 internal prototype to avoid an error. */
3368 /* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3376 if { (eval echo configure
:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3378 ac_cv_search_exc_resume
="-l$i"
3381 echo "configure: failed program was:" >&5
3382 cat conftest.
$ac_ext >&5
3386 LIBS
="$ac_func_search_save_LIBS"
3389 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3390 if test "$ac_cv_search_exc_resume" != "no"; then
3391 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3400 # See if the stage1 system preprocessor understands the ANSI C
3401 # preprocessor stringification operator. (Used by symcat.h.)
3404 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3405 echo "configure:3406: checking for preprocessor stringizing operator" >&5
3406 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.
$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3415 char *s = x(teststring);
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 egrep "#teststring" >/dev
/null
2>&1; then
3421 ac_cv_c_stringize
=no
3424 ac_cv_c_stringize
=yes
3430 if test "${ac_cv_c_stringize}" = yes
3432 cat >> confdefs.h
<<\EOF
3433 #define HAVE_STRINGIZE 1
3437 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3440 # Use <inttypes.h> only if it exists,
3441 # doesn't clash with <sys/types.h>, and declares intmax_t.
3442 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3443 echo "configure:3444: checking for inttypes.h" >&5
3444 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 cat > conftest.
$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3450 #include <sys/types.h>
3451 #include <inttypes.h>
3456 if { (eval echo configure
:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3458 gcc_cv_header_inttypes_h
=yes
3460 echo "configure: failed program was:" >&5
3461 cat conftest.
$ac_ext >&5
3463 gcc_cv_header_inttypes_h
=no
3468 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3469 if test $gcc_cv_header_inttypes_h = yes; then
3470 cat >> confdefs.h
<<\EOF
3471 #define HAVE_INTTYPES_H 1
3477 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3478 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3479 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
3482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_func" >&5
3484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.
$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 /* System header to define __stub macros and hopefully few prototypes,
3491 which can conflict with char $ac_func(); below. */
3493 /* Override any gcc2 internal prototype to avoid an error. */
3494 /* We use char because int might match the return type of a gcc2
3495 builtin and then its argument prototype would still apply. */
3500 /* The GNU C library defines this for functions which it implements
3501 to always fail with ENOSYS. Some functions are actually named
3502 something starting with __ and the normal name is an alias. */
3503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3511 if { (eval echo configure
:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3513 eval "ac_cv_func_$ac_func=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.
$ac_ext >&5
3518 eval "ac_cv_func_$ac_func=no"
3523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3526 cat >> confdefs.h
<<EOF
3527 #define $ac_tr_func 1
3531 echo "$ac_t""no" 1>&6
3536 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3537 echo "configure:3538: checking for ssize_t" >&5
3538 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.
$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <sys/types.h>
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3553 ac_cv_type_ssize_t
=yes
3556 ac_cv_type_ssize_t
=no
3561 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3562 if test $ac_cv_type_ssize_t = no
; then
3563 cat >> confdefs.h
<<\EOF
3570 # Try to determine the array type of the second argument of getgroups
3571 # for the target system (int or gid_t).
3572 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3573 echo "configure:3574: checking for uid_t in sys/types.h" >&5
3574 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 cat > conftest.
$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <sys/types.h>
3582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583 egrep "uid_t" >/dev
/null
2>&1; then
3585 ac_cv_type_uid_t
=yes
3594 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3595 if test $ac_cv_type_uid_t = no
; then
3596 cat >> confdefs.h
<<\EOF
3600 cat >> confdefs.h
<<\EOF
3606 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3607 echo "configure:3608: checking type of array argument to getgroups" >&5
3608 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3611 if test "$cross_compiling" = yes; then
3612 ac_cv_type_getgroups
=cross
3614 cat > conftest.
$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3618 /* Thanks to Mike Rendell for this test. */
3619 #include <sys/types.h>
3622 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3627 union { gid_t gval; long lval; } val;
3630 for (i = 0; i < NGID; i++)
3631 gidset[i] = val.gval;
3632 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3634 /* Exit non-zero if getgroups seems to require an array of ints. This
3635 happens when gid_t is short but getgroups modifies an array of ints. */
3636 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3640 if { (eval echo configure
:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3642 ac_cv_type_getgroups
=gid_t
3644 echo "configure: failed program was:" >&5
3645 cat conftest.
$ac_ext >&5
3647 ac_cv_type_getgroups
=int
3652 if test $ac_cv_type_getgroups = cross
; then
3653 cat > conftest.
$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3659 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3661 ac_cv_type_getgroups
=gid_t
3664 ac_cv_type_getgroups
=int
3671 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3672 cat >> confdefs.h
<<EOF
3673 #define GETGROUPS_T $ac_cv_type_getgroups
3677 if test "${target}" = "${build}"; then
3678 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3681 # This condition may need some tweaking. It should include all
3682 # targets where the array type of the second argument of getgroups
3683 # is int and the type of gid_t is not equivalent to int.
3684 *-*-sunos* |
*-*-ultrix*)
3685 TARGET_GETGROUPS_T
=int
3688 TARGET_GETGROUPS_T
=gid_t
3694 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3695 echo "configure:3696: checking whether the printf functions support %p" >&5
3696 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3699 if test "$cross_compiling" = yes; then
3700 gcc_cv_func_printf_ptr
=no
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3710 char *p = buf, *q = NULL;
3711 sprintf(buf, "%p", p);
3712 sscanf(buf, "%p", &q);
3716 if { (eval echo configure
:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3718 gcc_cv_func_printf_ptr
=yes
3720 echo "configure: failed program was:" >&5
3721 cat conftest.
$ac_ext >&5
3723 gcc_cv_func_printf_ptr
=no
3728 rm -f core core.
* *.core
3731 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3732 if test $gcc_cv_func_printf_ptr = yes ; then
3733 cat >> confdefs.h
<<\EOF
3734 #define HAVE_PRINTF_PTR 1
3742 { echo "configure: error:
3743 *** UWIN may not be used as a host platform because
3744 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3747 # Under VMS, vfork works very different than on Unix. The standard test
3748 # won't work, and it isn't easily adaptable. It makes more sense to
3750 ac_cv_func_vfork_works
=yes
3753 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3754 echo "configure:3755: checking for pid_t" >&5
3755 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.
$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 #include <sys/types.h>
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3770 ac_cv_type_pid_t
=yes
3778 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3779 if test $ac_cv_type_pid_t = no
; then
3780 cat >> confdefs.h
<<\EOF
3786 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3787 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3788 echo "configure:3789: checking for vfork.h" >&5
3789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 cat > conftest.
$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3797 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3798 { (eval echo configure
:3799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3799 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3800 if test -z "$ac_err"; then
3802 eval "ac_cv_header_$ac_safe=yes"
3805 echo "configure: failed program was:" >&5
3806 cat conftest.
$ac_ext >&5
3808 eval "ac_cv_header_$ac_safe=no"
3812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3813 echo "$ac_t""yes" 1>&6
3814 cat >> confdefs.h
<<\EOF
3815 #define HAVE_VFORK_H 1
3819 echo "$ac_t""no" 1>&6
3822 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3823 echo "configure:3824: checking for working vfork" >&5
3824 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3827 if test "$cross_compiling" = yes; then
3828 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3829 echo "configure:3830: checking for vfork" >&5
3830 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.
$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char vfork(); below. */
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3846 /* The GNU C library defines this for functions which it implements
3847 to always fail with ENOSYS. Some functions are actually named
3848 something starting with __ and the normal name is an alias. */
3849 #if defined (__stub_vfork) || defined (__stub___vfork)
3857 if { (eval echo configure
:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3859 eval "ac_cv_func_vfork=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.
$ac_ext >&5
3864 eval "ac_cv_func_vfork=no"
3869 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3873 echo "$ac_t""no" 1>&6
3876 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3878 cat > conftest.
$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 /* Thanks to Paul Eggert for this test. */
3883 #include <sys/types.h>
3884 #include <sys/stat.h>
3885 #ifdef HAVE_UNISTD_H
3891 /* On some sparc systems, changes by the child to local and incoming
3892 argument registers are propagated back to the parent.
3893 The compiler is told about this with #include <vfork.h>,
3894 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3895 Test for this by using a static variable whose address
3896 is put into a register that is clobbered by the vfork. */
3899 sparc_address_test (int arg)
3901 sparc_address_test (arg) int arg;
3919 pid_t parent = getpid ();
3922 sparc_address_test ();
3927 /* Here is another test for sparc vfork register problems.
3928 This test uses lots of local variables, at least
3929 as many local variables as main has allocated so far
3930 including compiler temporaries. 4 locals are enough for
3931 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3932 A buggy compiler should reuse the register of parent
3933 for one of the local variables, since it will think that
3934 parent can't possibly be used any more in this routine.
3935 Assigning to the local variable will thus munge parent
3936 in the parent process. */
3938 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3939 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3940 /* Convince the compiler that p..p7 are live; otherwise, it might
3941 use the same hardware register for all 8 local variables. */
3942 if (p != p1 || p != p2 || p != p3 || p != p4
3943 || p != p5 || p != p6 || p != p7)
3946 /* On some systems (e.g. IRIX 3.3),
3947 vfork doesn't separate parent from child file descriptors.
3948 If the child closes a descriptor before it execs or exits,
3949 this munges the parent's descriptor as well.
3950 Test for this by closing stdout in the child. */
3951 _exit(close(fileno(stdout)) != 0);
3956 while (wait(&status) != child)
3959 /* Was there some problem with vforking? */
3962 /* Did the child fail? (This shouldn't happen.) */
3965 /* Did the vfork/compiler bug occur? */
3966 || parent != getpid()
3968 /* Did the file descriptor bug occur? */
3969 || fstat(fileno(stdout), &st) != 0
3974 if { (eval echo configure
:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3976 ac_cv_func_vfork_works
=yes
3978 echo "configure: failed program was:" >&5
3979 cat conftest.
$ac_ext >&5
3981 ac_cv_func_vfork_works
=no
3988 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3989 if test $ac_cv_func_vfork_works = no
; then
3990 cat >> confdefs.h
<<\EOF
3996 for ac_func
in getpagesize
3998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3999 echo "configure:4000: checking for $ac_func" >&5
4000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.
$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 /* System header to define __stub macros and hopefully few prototypes,
4007 which can conflict with char $ac_func(); below. */
4009 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4016 /* The GNU C library defines this for functions which it implements
4017 to always fail with ENOSYS. Some functions are actually named
4018 something starting with __ and the normal name is an alias. */
4019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4027 if { (eval echo configure
:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4029 eval "ac_cv_func_$ac_func=yes"
4031 echo "configure: failed program was:" >&5
4032 cat conftest.
$ac_ext >&5
4034 eval "ac_cv_func_$ac_func=no"
4039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4041 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4042 cat >> confdefs.h
<<EOF
4043 #define $ac_tr_func 1
4047 echo "$ac_t""no" 1>&6
4051 # The test program for the next two tests is the same except for one
4053 cat >ct-mmap.inc
<<'EOF'
4054 #include <sys/types.h>
4055 #include <sys/mman.h>
4061 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4062 # define MAP_ANONYMOUS MAP_ANON
4065 /* This mess was copied from the GNU getpagesize.h. */
4066 #ifndef HAVE_GETPAGESIZE
4067 # ifdef HAVE_UNISTD_H
4068 # include <unistd.h>
4071 /* Assume that all systems that can run configure have sys/param.h. */
4072 # ifndef HAVE_SYS_PARAM_H
4073 # define HAVE_SYS_PARAM_H 1
4076 # ifdef _SC_PAGESIZE
4077 # define getpagesize() sysconf(_SC_PAGESIZE)
4078 # else /* no _SC_PAGESIZE */
4079 # ifdef HAVE_SYS_PARAM_H
4080 # include <sys/param.h>
4081 # ifdef EXEC_PAGESIZE
4082 # define getpagesize() EXEC_PAGESIZE
4083 # else /* no EXEC_PAGESIZE */
4085 # define getpagesize() NBPG * CLSIZE
4088 # endif /* no CLSIZE */
4089 # else /* no NBPG */
4091 # define getpagesize() NBPC
4092 # else /* no NBPC */
4094 # define getpagesize() PAGESIZE
4095 # endif /* PAGESIZE */
4096 # endif /* no NBPC */
4097 # endif /* no NBPG */
4098 # endif /* no EXEC_PAGESIZE */
4099 # else /* no HAVE_SYS_PARAM_H */
4100 # define getpagesize() 8192 /* punt totally */
4101 # endif /* no HAVE_SYS_PARAM_H */
4102 # endif /* no _SC_PAGESIZE */
4104 #endif /* no HAVE_GETPAGESIZE */
4107 # define MAP_FAILED -1
4111 #define perror_exit(str, val) \
4112 do { perror(str); exit(val); } while (0)
4114 /* Some versions of cygwin mmap require that munmap is called with the
4115 same parameters as mmap. GCC expects that this is not the case.
4116 Test for various forms of this problem. Warning - icky signal games. */
4118 static sigset_t unblock_sigsegv;
4128 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4129 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4131 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4132 MAP_PRIVATE, devzero, 0);
4140 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4144 /* Basic functionality test. */
4148 char *x = anonmap (pg);
4149 if (x == (char *) MAP_FAILED)
4150 perror_exit("test 0 mmap", 2);
4154 if (munmap(x, pg) < 0)
4155 perror_exit("test 0 munmap", 3);
4158 /* 1. If we map a 2-page region and unmap its second page, the first page
4163 char *x = anonmap (pg * 2);
4164 if (x == (char *)MAP_FAILED)
4165 perror_exit ("test 1 mmap", 4);
4167 signal (SIGSEGV, sigsegv);
4169 perror_exit ("test 1 fault", 5);
4174 if (munmap (x + pg, pg) < 0)
4175 perror_exit ("test 1 munmap 1", 6);
4178 if (setjmp (r) == 0)
4181 perror_exit ("test 1 no fault", 7);
4183 if (munmap (x, pg) < 0)
4184 perror_exit ("test 1 munmap 2", 8);
4187 /* 2. If we map a 2-page region and unmap its first page, the second
4188 page must remain. */
4192 char *x = anonmap (pg * 2);
4193 if (x == (char *)MAP_FAILED)
4194 perror_exit ("test 2 mmap", 9);
4196 signal (SIGSEGV, sigsegv);
4198 perror_exit ("test 2 fault", 10);
4203 if (munmap (x, pg) < 0)
4204 perror_exit ("test 2 munmap 1", 11);
4208 if (setjmp (r) == 0)
4211 perror_exit ("test 2 no fault", 12);
4214 if (munmap (x+pg, pg) < 0)
4215 perror_exit ("test 2 munmap 2", 13);
4218 /* 3. If we map two adjacent 1-page regions and unmap them both with
4219 one munmap, both must go away.
4221 Getting two adjacent 1-page regions with two mmap calls is slightly
4222 tricky. All OS's tested skip over already-allocated blocks; therefore
4223 we have been careful to unmap all allocated regions in previous tests.
4224 HP/UX allocates pages backward in memory. No OS has yet been observed
4225 to be so perverse as to leave unmapped space between consecutive calls
4234 if (x == (char *)MAP_FAILED)
4235 perror_exit ("test 3 mmap 1", 14);
4237 if (y == (char *)MAP_FAILED)
4238 perror_exit ("test 3 mmap 2", 15);
4243 z = y, y = x, x = z;
4246 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4247 (unsigned long)x, (unsigned long)y);
4252 signal (SIGSEGV, sigsegv);
4254 perror_exit ("test 3 fault", 17);
4259 if (munmap (x, pg*2) < 0)
4260 perror_exit ("test 3 munmap", 18);
4262 if (setjmp (r) == 0)
4265 perror_exit ("test 3 no fault 1", 19);
4268 signal (SIGSEGV, sigsegv);
4269 if (setjmp (r) == 0)
4272 perror_exit ("test 3 no fault 2", 20);
4279 sigemptyset (&unblock_sigsegv);
4280 sigaddset (&unblock_sigsegv, SIGSEGV);
4281 pg = getpagesize ();
4282 #ifndef USE_MAP_ANON
4283 devzero = open ("/dev/zero", O_RDWR);
4285 perror_exit ("open /dev/zero", 1);
4297 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4298 echo "configure:4299: checking for working mmap from /dev/zero" >&5
4299 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 if test "$cross_compiling" = yes; then
4303 # If this is not cygwin, and /dev/zero is a character device, it's probably
4304 # safe to assume it works.
4306 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4307 * ) if test -c /dev
/zero
4308 then ac_cv_func_mmap_dev_zero
=yes
4309 else ac_cv_func_mmap_dev_zero
=no
4313 cat > conftest.
$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include "ct-mmap.inc"
4318 if { (eval echo configure
:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4320 ac_cv_func_mmap_dev_zero
=yes
4322 echo "configure: failed program was:" >&5
4323 cat conftest.
$ac_ext >&5
4326 then ac_cv_func_mmap_dev_zero
=no
4327 else ac_cv_func_mmap_dev_zero
=buggy
4336 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4337 if test $ac_cv_func_mmap_dev_zero = yes; then
4338 cat >> confdefs.h
<<\EOF
4339 #define HAVE_MMAP_DEV_ZERO 1
4344 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4345 echo "configure:4346: checking for working mmap with MAP_ANON(YMOUS)" >&5
4346 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 if test "$cross_compiling" = yes; then
4350 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4351 # just because it's there. Some SCO Un*xen define it but don't implement it.
4352 ac_cv_func_mmap_anon
=no
4354 cat > conftest.
$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 #define USE_MAP_ANON
4358 #include "ct-mmap.inc"
4360 if { (eval echo configure
:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4362 ac_cv_func_mmap_anon
=yes
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4368 then ac_cv_func_mmap_anon
=no
4369 else ac_cv_func_mmap_anon
=buggy
4378 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4379 if test $ac_cv_func_mmap_anon = yes; then
4380 cat >> confdefs.h
<<\EOF
4381 #define HAVE_MMAP_ANON 1
4387 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4388 echo "configure:4389: checking for working mmap of a file" >&5
4389 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 # Create a file one thousand bytes long.
4393 for i
in 1 2 3 4 5 6 7 8 9 0
4394 do for j
in 1 2 3 4 5 6 7 8 9 0
4397 done > conftestdata$$
4399 if test "$cross_compiling" = yes; then
4400 ac_cv_func_mmap_file
=no
4402 cat > conftest.
$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4406 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4407 Richard Henderson and Alexandre Oliva.
4408 Check whether read-only mmap of a plain file works. */
4409 #include <sys/types.h>
4410 #include <sys/stat.h>
4412 #include <sys/mman.h>
4420 fd = open("conftestdata$$", O_RDONLY);
4424 if (fstat (fd, &st))
4427 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4428 if (x == (char *) -1)
4431 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4434 if (munmap(x, st.st_size) < 0)
4440 if { (eval echo configure
:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4442 ac_cv_func_mmap_file
=yes
4444 echo "configure: failed program was:" >&5
4445 cat conftest.
$ac_ext >&5
4447 ac_cv_func_mmap_file
=no
4454 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4455 if test $ac_cv_func_mmap_file = yes; then
4456 cat >> confdefs.h
<<\EOF
4457 #define HAVE_MMAP_FILE 1
4465 am_cv_lib_iconv_ldpath
=
4466 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4467 if test "${with_libiconv_prefix+set}" = set; then
4468 withval
="$with_libiconv_prefix"
4470 for dir
in `echo "$withval" | tr : ' '`; do
4471 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4472 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4478 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4479 echo "configure:4480: checking for iconv" >&5
4480 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4484 am_cv_func_iconv
="no, consider installing GNU libiconv"
4486 cat > conftest.
$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4492 iconv_t cd = iconv_open("","");
4493 iconv(cd,NULL,NULL,NULL,NULL);
4497 if { (eval echo configure
:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4499 am_cv_func_iconv
=yes
4501 echo "configure: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4505 if test "$am_cv_func_iconv" != yes; then
4506 am_save_LIBS
="$LIBS"
4507 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4508 cat > conftest.
$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4514 iconv_t cd = iconv_open("","");
4515 iconv(cd,NULL,NULL,NULL,NULL);
4519 if { (eval echo configure
:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4522 am_cv_func_iconv
=yes
4524 echo "configure: failed program was:" >&5
4525 cat conftest.
$ac_ext >&5
4528 LIBS
="$am_save_LIBS"
4533 echo "$ac_t""$am_cv_func_iconv" 1>&6
4534 if test "$am_cv_func_iconv" = yes; then
4535 cat >> confdefs.h
<<\EOF
4536 #define HAVE_ICONV 1
4539 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4540 echo "configure:4541: checking for iconv declaration" >&5
4541 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4545 cat > conftest.
$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4555 #if defined(__STDC__) || defined(__cplusplus)
4556 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4565 if { (eval echo configure
:4566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4567 am_cv_proto_iconv_arg1
=""
4569 echo "configure: failed program was:" >&5
4570 cat conftest.
$ac_ext >&5
4572 am_cv_proto_iconv_arg1
="const"
4575 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);"
4578 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4579 echo "$ac_t""${ac_t:-
4580 }$am_cv_proto_iconv" 1>&6
4581 cat >> confdefs.h
<<EOF
4582 #define ICONV_CONST $am_cv_proto_iconv_arg1
4587 if test "$am_cv_lib_iconv" = yes; then
4588 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4593 # We will need to find libiberty.h and ansidecl.h
4594 saved_CFLAGS
="$CFLAGS"
4595 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4596 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4597 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4598 fprintf_unlocked strstr errno \
4599 malloc realloc calloc free
basename getopt
clock
4601 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4602 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4603 echo "configure:4604: checking whether $ac_func is declared" >&5
4604 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 cat > conftest.
$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4611 #define $ac_tr_decl 1
4613 #include "ansidecl.h"
4618 char *(*pfn) = (char *(*)) $ac_func ;
4622 if { (eval echo configure
:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 eval "gcc_cv_have_decl_$ac_func=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4629 eval "gcc_cv_have_decl_$ac_func=no"
4634 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4636 #define $ac_tr_decl 1
4640 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4641 #define $ac_tr_decl 0
4647 if test x
= y
; then
4648 cat >> confdefs.h
<<\EOF
4649 #define HAVE_DECL_GETENV 1
4651 cat >> confdefs.h
<<\EOF
4652 #define HAVE_DECL_ATOL 1
4654 cat >> confdefs.h
<<\EOF
4655 #define HAVE_DECL_SBRK 1
4657 cat >> confdefs.h
<<\EOF
4658 #define HAVE_DECL_ABORT 1
4660 cat >> confdefs.h
<<\EOF
4661 #define HAVE_DECL_ATOF 1
4663 cat >> confdefs.h
<<\EOF
4664 #define HAVE_DECL_GETCWD 1
4666 cat >> confdefs.h
<<\EOF
4667 #define HAVE_DECL_GETWD 1
4670 cat >> confdefs.h
<<\EOF
4671 #define HAVE_DECL_STRSIGNAL 1
4673 cat >> confdefs.h
<<\EOF
4674 #define HAVE_DECL_PUTC_UNLOCKED 1
4676 cat >> confdefs.h
<<\EOF
4677 #define HAVE_DECL_FPUTS_UNLOCKED 1
4679 cat >> confdefs.h
<<\EOF
4680 #define HAVE_DECL_FWRITE_UNLOCKED 1
4683 cat >> confdefs.h
<<\EOF
4684 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4686 cat >> confdefs.h
<<\EOF
4687 #define HAVE_DECL_STRSTR 1
4689 cat >> confdefs.h
<<\EOF
4690 #define HAVE_DECL_ERRNO 1
4693 cat >> confdefs.h
<<\EOF
4694 #define HAVE_DECL_MALLOC 1
4696 cat >> confdefs.h
<<\EOF
4697 #define HAVE_DECL_REALLOC 1
4699 cat >> confdefs.h
<<\EOF
4700 #define HAVE_DECL_CALLOC 1
4702 cat >> confdefs.h
<<\EOF
4703 #define HAVE_DECL_FREE 1
4705 cat >> confdefs.h
<<\EOF
4706 #define HAVE_DECL_BASENAME 1
4708 cat >> confdefs.h
<<\EOF
4709 #define HAVE_DECL_GETOPT 1
4711 cat >> confdefs.h
<<\EOF
4712 #define HAVE_DECL_CLOCK 1
4717 for ac_func
in getrlimit setrlimit getrusage
4719 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4720 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4721 echo "configure:4722: checking whether $ac_func is declared" >&5
4722 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4725 cat > conftest.
$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4729 #define $ac_tr_decl 1
4731 #include "ansidecl.h"
4733 #ifdef HAVE_SYS_RESOURCE_H
4734 #include <sys/resource.h>
4740 char *(*pfn) = (char *(*)) $ac_func ;
4744 if { (eval echo configure
:4745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4746 eval "gcc_cv_have_decl_$ac_func=yes"
4748 echo "configure: failed program was:" >&5
4749 cat conftest.
$ac_ext >&5
4751 eval "gcc_cv_have_decl_$ac_func=no"
4756 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4757 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4758 #define $ac_tr_decl 1
4762 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4763 #define $ac_tr_decl 0
4769 if test x
= y
; then
4770 cat >> confdefs.h
<<\EOF
4771 #define HAVE_DECL_GETRLIMIT 1
4773 cat >> confdefs.h
<<\EOF
4774 #define HAVE_DECL_SETRLIMIT 1
4776 cat >> confdefs.h
<<\EOF
4777 #define HAVE_DECL_GETRUSAGE 1
4782 for ac_func
in times
4784 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4785 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4786 echo "configure:4787: checking whether $ac_func is declared" >&5
4787 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.
$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4794 #define $ac_tr_decl 1
4796 #include "ansidecl.h"
4798 #ifdef HAVE_SYS_TIMES_H
4799 #include <sys/times.h>
4805 char *(*pfn) = (char *(*)) $ac_func ;
4809 if { (eval echo configure
:4810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4811 eval "gcc_cv_have_decl_$ac_func=yes"
4813 echo "configure: failed program was:" >&5
4814 cat conftest.
$ac_ext >&5
4816 eval "gcc_cv_have_decl_$ac_func=no"
4821 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4822 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4823 #define $ac_tr_decl 1
4827 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4828 #define $ac_tr_decl 0
4834 if test x
= y
; then
4835 cat >> confdefs.h
<<\EOF
4836 #define HAVE_DECL_TIMES 1
4841 # More time-related stuff.
4842 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4843 echo "configure:4844: checking for struct tms" >&5
4844 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4848 cat > conftest.
$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4852 #include "ansidecl.h"
4854 #ifdef HAVE_SYS_TIMES_H
4855 #include <sys/times.h>
4862 if { (eval echo configure
:4863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4864 ac_cv_struct_tms
=yes
4866 echo "configure: failed program was:" >&5
4867 cat conftest.
$ac_ext >&5
4874 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4875 if test $ac_cv_struct_tms = yes; then
4876 cat >> confdefs.h
<<\EOF
4877 #define HAVE_STRUCT_TMS 1
4882 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4883 # revisit after autoconf 2.50.
4884 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4885 echo "configure:4886: checking for clock_t" >&5
4886 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.
$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4894 #include "ansidecl.h"
4901 if { (eval echo configure
:4902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4903 gcc_cv_type_clock_t
=yes
4905 echo "configure: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4908 gcc_cv_type_clock_t
=no
4913 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4914 if test $gcc_cv_type_clock_t = yes; then
4915 cat >> confdefs.h
<<\EOF
4916 #define HAVE_CLOCK_T 1
4921 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4922 CFLAGS
="$saved_CFLAGS"
4924 # mkdir takes a single argument on some systems.
4925 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4926 echo "configure:4927: checking if mkdir takes one argument" >&5
4927 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 cat > conftest.
$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4934 #include <sys/types.h>
4935 #ifdef HAVE_SYS_STAT_H
4936 # include <sys/stat.h>
4938 #ifdef HAVE_UNISTD_H
4939 # include <unistd.h>
4941 #ifdef HAVE_DIRECT_H
4942 # include <direct.h>
4948 if { (eval echo configure
:4949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4950 gcc_cv_mkdir_takes_one_arg
=no
4952 echo "configure: failed program was:" >&5
4953 cat conftest.
$ac_ext >&5
4955 gcc_cv_mkdir_takes_one_arg
=yes
4960 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4961 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4962 cat >> confdefs.h
<<\EOF
4963 #define MKDIR_TAKES_ONE_ARG 1
4978 build_install_headers_dir
=install-headers-tar
4983 host_truncate_target
=
4986 # Decode the host machine, then the target machine.
4987 # For the host machine, we save the xm_file variable as host_xm_file;
4988 # then we decode the target machine and forget everything else
4989 # that came from the host machine.
4990 for machine
in $build $host $target; do
4991 .
${srcdir}/config.gcc
4994 extra_objs
="${host_extra_objs} ${extra_objs}"
4996 # Default the target-machine variables that were not explicitly set.
4997 if test x
"$tm_file" = x
4998 then tm_file
=$cpu_type/$cpu_type.h
; fi
5000 if test x
"$extra_headers" = x
5001 then extra_headers
=; fi
5003 if test x
$md_file = x
5004 then md_file
=$cpu_type/$cpu_type.md
; fi
5006 if test x
$out_file = x
5007 then out_file
=$cpu_type/$cpu_type.c
; fi
5009 if test x
"$tmake_file" = x
5010 then tmake_file
=$cpu_type/t-
$cpu_type
5013 if test x
"$dwarf2" = xyes
5014 then tm_file
="$tm_file tm-dwarf2.h"
5017 if test x
$float_format = x
5018 then float_format
=i64
5021 if test $float_format = none
5022 then float_h_file
=Makefile.
in
5023 else float_h_file
=float-
$float_format.h
5026 # Say what files are being used for the output code and MD file.
5027 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
5028 echo "Using \`$srcdir/config/$md_file' as machine description file."
5030 # If any of the xm_file variables contain nonexistent files, warn
5031 # about them and drop them.
5034 for x
in $build_xm_file; do
5035 if test -f $srcdir/config
/$x
5037 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5043 for x
in $host_xm_file; do
5044 if test -f $srcdir/config
/$x
5046 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5052 for x
in $xm_file; do
5053 if test -f $srcdir/config
/$x
5055 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5061 for f
in $tm_file; do
5064 if test $count = ax
; then
5065 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5067 echo "Using the following target machine macro files:"
5068 for f
in $tm_file; do
5069 echo " $srcdir/config/$f"
5074 for f
in $host_xm_file; do
5077 if test $count = a
; then
5079 elif test $count = ax
; then
5080 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5082 echo "Using the following host machine macro files:"
5083 for f
in $host_xm_file; do
5084 echo " $srcdir/config/$f"
5088 if test "$host_xm_file" != "$build_xm_file"; then
5090 for f
in $build_xm_file; do
5093 if test $count = a
; then
5095 elif test $count = ax
; then
5096 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5098 echo "Using the following build machine macro files:"
5099 for f
in $build_xm_file; do
5100 echo " $srcdir/config/$f"
5105 if test x
$thread_file = x
; then
5106 if test x
$target_thread_file != x
; then
5107 thread_file
=$target_thread_file
5109 thread_file
='single'
5113 # Look for a file containing extra machine modes.
5114 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
5115 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
5117 cat >> confdefs.h
<<EOF
5118 #define EXTRA_MODES_FILE "$extra_modes"
5121 cat >> confdefs.h
<<\EOF
5122 #define EXTRA_CC_MODES 1
5127 # auto-host.h is the file containing items generated by autoconf and is
5128 # the first file included by config.h.
5129 # If host=build, it is correct to have hconfig include auto-host.h
5130 # as well. If host!=build, we are in error and need to do more
5131 # work to find out the build config parameters.
5132 if test x
$host = x
$build
5134 build_auto
=auto-host.h
5137 # We create a subdir, then run autoconf in the subdir.
5138 # To prevent recursion we set host and build for the new
5139 # invocation of configure to the build for this invocation
5146 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5147 *) realsrcdir
=..
/${srcdir};;
5149 saved_CFLAGS
="${CFLAGS}"
5150 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5151 ${realsrcdir}/configure \
5152 --target=$target_alias --host=$build_alias --build=$build_alias
5153 CFLAGS
="${saved_CFLAGS}"
5155 # We just finished tests for the build machine, so rename
5156 # the file auto-build.h in the gcc directory.
5157 mv auto-host.h ..
/auto-build.h
5160 build_auto
=auto-build.h
5161 FORBUILD
=..
/$build_alias
5165 tm_file
="${tm_file} defaults.h"
5166 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5167 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5168 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5170 # Truncate the target if necessary
5171 if test x
$host_truncate_target != x
; then
5172 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5175 # Get the version trigger filename from the toplevel
5176 if test "${with_gcc_version_trigger+set}" = set; then
5177 gcc_version_trigger
=$with_gcc_version_trigger
5179 gcc_version_trigger
=${srcdir}/version.c
5181 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5182 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5184 # Compile in configure arguments.
5185 if test -f configargs.h
; then
5186 # Being re-configured.
5187 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5188 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5190 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5192 cat > configargs.h
<<EOF
5193 /* Generated automatically. */
5194 static const char configuration_arguments[] = "$gcc_config_arguments";
5195 static const char thread_model[] = "$thread_file";
5198 # Internationalization
5200 VERSION
="$gcc_version"
5204 # Enable NLS support by default
5205 # Check whether --enable-nls or --disable-nls was given.
5206 if test "${enable_nls+set}" = set; then
5207 enableval
="$enable_nls"
5214 # if cross compiling, disable NLS support.
5215 # It's not worth the trouble, at least for now.
5217 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5218 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5224 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5225 echo "configure:5226: checking for library containing strerror" >&5
5226 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 ac_func_search_save_LIBS
="$LIBS"
5230 ac_cv_search_strerror
="no"
5231 cat > conftest.
$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5243 if { (eval echo configure
:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5245 ac_cv_search_strerror
="none required"
5247 echo "configure: failed program was:" >&5
5248 cat conftest.
$ac_ext >&5
5251 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5252 LIBS
="-l$i $ac_func_search_save_LIBS"
5253 cat > conftest.
$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 /* Override any gcc2 internal prototype to avoid an error. */
5257 /* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5265 if { (eval echo configure
:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5267 ac_cv_search_strerror
="-l$i"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.
$ac_ext >&5
5275 LIBS
="$ac_func_search_save_LIBS"
5278 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5279 if test "$ac_cv_search_strerror" != "no"; then
5280 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5287 echo $ac_n "checking for working const""... $ac_c" 1>&6
5288 echo "configure:5289: checking for working const" >&5
5289 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5290 echo $ac_n "(cached) $ac_c" 1>&6
5292 cat > conftest.
$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5298 /* Ultrix mips cc rejects this. */
5299 typedef int charset[2]; const charset x;
5300 /* SunOS 4.1.1 cc rejects this. */
5301 char const *const *ccp;
5303 /* NEC SVR4.0.2 mips cc rejects this. */
5304 struct point {int x, y;};
5305 static struct point const zero = {0,0};
5306 /* AIX XL C 1.02.0.0 rejects this.
5307 It does not let you subtract one const X* pointer from another in an arm
5308 of an if-expression whose if-part is not a constant expression */
5309 const char *g = "string";
5310 ccp = &g + (g ? g-g : 0);
5311 /* HPUX 7.0 cc rejects these. */
5314 ccp = (char const *const *) p;
5315 { /* SCO 3.2v4 cc rejects this. */
5317 char const *s = 0 ? (char *) 0 : (char const *) 0;
5321 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5323 const int *foo = &x[0];
5326 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5327 typedef const int *iptr;
5331 { /* AIX XL C 1.02.0.0 rejects this saying
5332 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5333 struct s { int j; const int *ap[3]; };
5334 struct s *b; b->j = 5;
5336 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5342 if { (eval echo configure
:5343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5346 echo "configure: failed program was:" >&5
5347 cat conftest.
$ac_ext >&5
5354 echo "$ac_t""$ac_cv_c_const" 1>&6
5355 if test $ac_cv_c_const = no
; then
5356 cat >> confdefs.h
<<\EOF
5362 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5363 echo "configure:5364: checking for off_t" >&5
5364 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5367 cat > conftest.
$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5370 #include <sys/types.h>
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5379 ac_cv_type_off_t
=yes
5387 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5388 if test $ac_cv_type_off_t = no
; then
5389 cat >> confdefs.h
<<\EOF
5395 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5396 echo "configure:5397: checking for size_t" >&5
5397 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5400 cat > conftest.
$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 #include <sys/types.h>
5409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5410 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5412 ac_cv_type_size_t
=yes
5415 ac_cv_type_size_t
=no
5420 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5421 if test $ac_cv_type_size_t = no
; then
5422 cat >> confdefs.h
<<\EOF
5423 #define size_t unsigned
5428 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5429 # for constant arguments. Useless!
5430 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5431 echo "configure:5432: checking for working alloca.h" >&5
5432 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 cat > conftest.
$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5440 char *p = alloca(2 * sizeof(int));
5443 if { (eval echo configure
:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5445 ac_cv_header_alloca_h
=yes
5447 echo "configure: failed program was:" >&5
5448 cat conftest.
$ac_ext >&5
5450 ac_cv_header_alloca_h
=no
5455 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5456 if test $ac_cv_header_alloca_h = yes; then
5457 cat >> confdefs.h
<<\EOF
5458 #define HAVE_ALLOCA_H 1
5463 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5464 echo "configure:5465: checking for alloca" >&5
5465 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5468 cat > conftest.
$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5473 # define alloca __builtin_alloca
5476 # include <malloc.h>
5477 # define alloca _alloca
5480 # include <alloca.h>
5485 # ifndef alloca /* predefined by HP cc +Olibcalls */
5494 char *p = (char *) alloca(1);
5497 if { (eval echo configure
:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5499 ac_cv_func_alloca_works
=yes
5501 echo "configure: failed program was:" >&5
5502 cat conftest.
$ac_ext >&5
5504 ac_cv_func_alloca_works
=no
5509 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5510 if test $ac_cv_func_alloca_works = yes; then
5511 cat >> confdefs.h
<<\EOF
5512 #define HAVE_ALLOCA 1
5517 if test $ac_cv_func_alloca_works = no
; then
5518 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5519 # that cause trouble. Some versions do not even contain alloca or
5520 # contain a buggy version. If you still want to use their alloca,
5521 # use ar to extract alloca.o from them instead of compiling alloca.c.
5522 ALLOCA
=alloca.
${ac_objext}
5523 cat >> confdefs.h
<<\EOF
5528 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5529 echo "configure:5530: checking whether alloca needs Cray hooks" >&5
5530 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5531 echo $ac_n "(cached) $ac_c" 1>&6
5533 cat > conftest.
$ac_ext <<EOF
5534 #line 5535 "configure"
5535 #include "confdefs.h"
5536 #if defined(CRAY) && ! defined(CRAY2)
5543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5544 egrep "webecray" >/dev
/null
2>&1; then
5555 echo "$ac_t""$ac_cv_os_cray" 1>&6
5556 if test $ac_cv_os_cray = yes; then
5557 for ac_func
in _getb67 GETB67 getb67
; do
5558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5559 echo "configure:5560: checking for $ac_func" >&5
5560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 cat > conftest.
$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 /* System header to define __stub macros and hopefully few prototypes,
5567 which can conflict with char $ac_func(); below. */
5569 /* Override any gcc2 internal prototype to avoid an error. */
5570 /* We use char because int might match the return type of a gcc2
5571 builtin and then its argument prototype would still apply. */
5576 /* The GNU C library defines this for functions which it implements
5577 to always fail with ENOSYS. Some functions are actually named
5578 something starting with __ and the normal name is an alias. */
5579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5587 if { (eval echo configure
:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5589 eval "ac_cv_func_$ac_func=yes"
5591 echo "configure: failed program was:" >&5
5592 cat conftest.
$ac_ext >&5
5594 eval "ac_cv_func_$ac_func=no"
5599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5600 echo "$ac_t""yes" 1>&6
5601 cat >> confdefs.h
<<EOF
5602 #define CRAY_STACKSEG_END $ac_func
5607 echo "$ac_t""no" 1>&6
5613 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5614 echo "configure:5615: checking stack direction for C alloca" >&5
5615 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 if test "$cross_compiling" = yes; then
5619 ac_cv_c_stack_direction
=0
5621 cat > conftest.
$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 find_stack_direction ()
5626 static char *addr = 0;
5631 return find_stack_direction ();
5634 return (&dummy > addr) ? 1 : -1;
5638 exit (find_stack_direction() < 0);
5641 if { (eval echo configure
:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5643 ac_cv_c_stack_direction
=1
5645 echo "configure: failed program was:" >&5
5646 cat conftest.
$ac_ext >&5
5648 ac_cv_c_stack_direction
=-1
5655 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5656 cat >> confdefs.h
<<EOF
5657 #define STACK_DIRECTION $ac_cv_c_stack_direction
5663 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5664 echo "configure:5665: checking whether we are using the GNU C Library 2.1 or newer" >&5
5665 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5666 echo $ac_n "(cached) $ac_c" 1>&6
5668 cat > conftest.
$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5672 #include <features.h>
5673 #ifdef __GNU_LIBRARY__
5674 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5681 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5683 ac_cv_gnu_library_2_1
=yes
5686 ac_cv_gnu_library_2_1
=no
5694 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5696 GLIBC21
="$ac_cv_gnu_library_2_1"
5700 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5701 stdlib.h string.h unistd.h sys
/param.h
5703 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5705 echo "configure:5706: checking for $ac_hdr" >&5
5706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 cat > conftest.
$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5715 { (eval echo configure
:5716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5717 if test -z "$ac_err"; then
5719 eval "ac_cv_header_$ac_safe=yes"
5722 echo "configure: failed program was:" >&5
5723 cat conftest.
$ac_ext >&5
5725 eval "ac_cv_header_$ac_safe=no"
5729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5730 echo "$ac_t""yes" 1>&6
5731 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5732 cat >> confdefs.h
<<EOF
5733 #define $ac_tr_hdr 1
5737 echo "$ac_t""no" 1>&6
5741 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5742 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5743 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5746 echo "configure:5747: checking for $ac_func" >&5
5747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 cat > conftest.
$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5753 /* System header to define __stub macros and hopefully few prototypes,
5754 which can conflict with char $ac_func(); below. */
5756 /* Override any gcc2 internal prototype to avoid an error. */
5757 /* We use char because int might match the return type of a gcc2
5758 builtin and then its argument prototype would still apply. */
5763 /* The GNU C library defines this for functions which it implements
5764 to always fail with ENOSYS. Some functions are actually named
5765 something starting with __ and the normal name is an alias. */
5766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5774 if { (eval echo configure
:5775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5776 eval "ac_cv_func_$ac_func=yes"
5778 echo "configure: failed program was:" >&5
5779 cat conftest.
$ac_ext >&5
5781 eval "ac_cv_func_$ac_func=no"
5786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5787 echo "$ac_t""yes" 1>&6
5788 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5789 cat >> confdefs.h
<<EOF
5790 #define $ac_tr_func 1
5794 echo "$ac_t""no" 1>&6
5801 am_cv_lib_iconv_ldpath
=
5802 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5803 if test "${with_libiconv_prefix+set}" = set; then
5804 withval
="$with_libiconv_prefix"
5806 for dir
in `echo "$withval" | tr : ' '`; do
5807 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5808 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5814 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5815 echo "configure:5816: checking for iconv" >&5
5816 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5817 echo $ac_n "(cached) $ac_c" 1>&6
5820 am_cv_func_iconv
="no, consider installing GNU libiconv"
5822 cat > conftest.
$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5828 iconv_t cd = iconv_open("","");
5829 iconv(cd,NULL,NULL,NULL,NULL);
5833 if { (eval echo configure
:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5835 am_cv_func_iconv
=yes
5837 echo "configure: failed program was:" >&5
5838 cat conftest.
$ac_ext >&5
5841 if test "$am_cv_func_iconv" != yes; then
5842 am_save_LIBS
="$LIBS"
5843 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5844 cat > conftest.
$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5850 iconv_t cd = iconv_open("","");
5851 iconv(cd,NULL,NULL,NULL,NULL);
5855 if { (eval echo configure
:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5858 am_cv_func_iconv
=yes
5860 echo "configure: failed program was:" >&5
5861 cat conftest.
$ac_ext >&5
5864 LIBS
="$am_save_LIBS"
5869 echo "$ac_t""$am_cv_func_iconv" 1>&6
5870 if test "$am_cv_func_iconv" = yes; then
5871 cat >> confdefs.h
<<\EOF
5872 #define HAVE_ICONV 1
5875 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5876 echo "configure:5877: checking for iconv declaration" >&5
5877 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5881 cat > conftest.
$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5891 #if defined(__STDC__) || defined(__cplusplus)
5892 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5901 if { (eval echo configure
:5902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5903 am_cv_proto_iconv_arg1
=""
5905 echo "configure: failed program was:" >&5
5906 cat conftest.
$ac_ext >&5
5908 am_cv_proto_iconv_arg1
="const"
5911 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);"
5914 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5915 echo "$ac_t""${ac_t:-
5916 }$am_cv_proto_iconv" 1>&6
5917 cat >> confdefs.h
<<EOF
5918 #define ICONV_CONST $am_cv_proto_iconv_arg1
5923 if test "$am_cv_lib_iconv" = yes; then
5924 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5929 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5930 echo "configure:5931: checking for nl_langinfo and CODESET" >&5
5931 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 cat > conftest.
$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 #include <langinfo.h>
5939 char* cs = nl_langinfo(CODESET);
5942 if { (eval echo configure
:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5944 am_cv_langinfo_codeset
=yes
5946 echo "configure: failed program was:" >&5
5947 cat conftest.
$ac_ext >&5
5949 am_cv_langinfo_codeset
=no
5955 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5956 if test $am_cv_langinfo_codeset = yes; then
5957 cat >> confdefs.h
<<\EOF
5958 #define HAVE_LANGINFO_CODESET 1
5963 if test $ac_cv_header_locale_h = yes; then
5964 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5965 echo "configure:5966: checking for LC_MESSAGES" >&5
5966 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5969 cat > conftest.
$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5977 if { (eval echo configure
:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5979 am_cv_val_LC_MESSAGES
=yes
5981 echo "configure: failed program was:" >&5
5982 cat conftest.
$ac_ext >&5
5984 am_cv_val_LC_MESSAGES
=no
5989 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5990 if test $am_cv_val_LC_MESSAGES = yes; then
5991 cat >> confdefs.h
<<\EOF
5992 #define HAVE_LC_MESSAGES 1
5997 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5998 echo "configure:5999: checking whether NLS is requested" >&5
5999 # Check whether --enable-nls or --disable-nls was given.
6000 if test "${enable_nls+set}" = set; then
6001 enableval
="$enable_nls"
6007 echo "$ac_t""$USE_NLS" 1>&6
6010 BUILD_INCLUDED_LIBINTL
=no
6011 USE_INCLUDED_LIBINTL
=no
6015 if test "$USE_NLS" = "yes"; then
6016 cat >> confdefs.h
<<\EOF
6017 #define ENABLE_NLS 1
6020 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
6021 echo "configure:6022: checking whether included gettext is requested" >&5
6022 # Check whether --with-included-gettext or --without-included-gettext was given.
6023 if test "${with_included_gettext+set}" = set; then
6024 withval
="$with_included_gettext"
6025 nls_cv_force_use_gnu_gettext
=$withval
6027 nls_cv_force_use_gnu_gettext
=no
6030 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6032 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6033 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6039 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6040 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6041 echo "configure:6042: checking for libintl.h" >&5
6042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 cat > conftest.
$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 #include <libintl.h>
6050 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6051 { (eval echo configure
:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6052 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6053 if test -z "$ac_err"; then
6055 eval "ac_cv_header_$ac_safe=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.
$ac_ext >&5
6061 eval "ac_cv_header_$ac_safe=no"
6065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6067 cat >> confdefs.h
<<\EOF
6068 #define HAVE_LIBINTL_H 1
6071 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6072 echo "configure:6073: checking for GNU gettext in libc" >&5
6073 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6076 cat > conftest.
$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 #include <libintl.h>
6080 extern int _nl_msg_cat_cntr;
6082 bindtextdomain ("", "");
6083 return (int) gettext ("") + _nl_msg_cat_cntr
6086 if { (eval echo configure
:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6088 gt_cv_func_gnugettext1_libc
=yes
6090 echo "configure: failed program was:" >&5
6091 cat conftest.
$ac_ext >&5
6093 gt_cv_func_gnugettext1_libc
=no
6098 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6100 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6101 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6102 echo "configure:6103: checking for GNU gettext in libintl" >&5
6103 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6106 gt_save_LIBS
="$LIBS"
6107 LIBS
="$LIBS -lintl $LIBICONV"
6108 cat > conftest.
$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <libintl.h>
6112 extern int _nl_msg_cat_cntr;
6114 bindtextdomain ("", "");
6115 return (int) gettext ("") + _nl_msg_cat_cntr
6118 if { (eval echo configure
:6119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6120 gt_cv_func_gnugettext1_libintl
=yes
6122 echo "configure: failed program was:" >&5
6123 cat conftest.
$ac_ext >&5
6125 gt_cv_func_gnugettext1_libintl
=no
6128 LIBS
="$gt_save_LIBS"
6131 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6134 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6135 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6136 && test "$PACKAGE" != gettext; }; then
6137 cat >> confdefs.h
<<\EOF
6138 #define HAVE_GETTEXT 1
6142 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6143 INTLLIBS
="-lintl $LIBICONV"
6146 gt_save_LIBS
="$LIBS"
6147 LIBS
="$LIBS $INTLLIBS"
6148 for ac_func
in dcgettext
6150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6151 echo "configure:6152: checking for $ac_func" >&5
6152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6155 cat > conftest.
$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 /* System header to define __stub macros and hopefully few prototypes,
6159 which can conflict with char $ac_func(); below. */
6161 /* Override any gcc2 internal prototype to avoid an error. */
6162 /* We use char because int might match the return type of a gcc2
6163 builtin and then its argument prototype would still apply. */
6168 /* The GNU C library defines this for functions which it implements
6169 to always fail with ENOSYS. Some functions are actually named
6170 something starting with __ and the normal name is an alias. */
6171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6179 if { (eval echo configure
:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6181 eval "ac_cv_func_$ac_func=yes"
6183 echo "configure: failed program was:" >&5
6184 cat conftest.
$ac_ext >&5
6186 eval "ac_cv_func_$ac_func=no"
6191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6192 echo "$ac_t""yes" 1>&6
6193 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6194 cat >> confdefs.h
<<EOF
6195 #define $ac_tr_func 1
6199 echo "$ac_t""no" 1>&6
6203 LIBS
="$gt_save_LIBS"
6205 # Extract the first word of "msgfmt", so it can be a program name with args.
6206 set dummy msgfmt
; ac_word
=$2
6207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6208 echo "configure:6209: checking for $ac_word" >&5
6209 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6210 echo $ac_n "(cached) $ac_c" 1>&6
6214 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6218 for ac_dir
in $PATH; do
6219 test -z "$ac_dir" && ac_dir
=.
6220 if test -f $ac_dir/$ac_word; then
6221 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6222 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6228 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6232 MSGFMT
="$ac_cv_path_MSGFMT"
6233 if test "$MSGFMT" != ":"; then
6234 echo "$ac_t""$MSGFMT" 1>&6
6236 echo "$ac_t""no" 1>&6
6239 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6240 set dummy gmsgfmt
; ac_word
=$2
6241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6242 echo "configure:6243: checking for $ac_word" >&5
6243 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6244 echo $ac_n "(cached) $ac_c" 1>&6
6248 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6251 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6254 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6256 for ac_dir
in $ac_dummy; do
6257 test -z "$ac_dir" && ac_dir
=.
6258 if test -f $ac_dir/$ac_word; then
6259 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6264 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6268 GMSGFMT
="$ac_cv_path_GMSGFMT"
6269 if test -n "$GMSGFMT"; then
6270 echo "$ac_t""$GMSGFMT" 1>&6
6272 echo "$ac_t""no" 1>&6
6276 # Extract the first word of "xgettext", so it can be a program name with args.
6277 set dummy xgettext
; ac_word
=$2
6278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6279 echo "configure:6280: checking for $ac_word" >&5
6280 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6285 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6288 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6289 for ac_dir
in $PATH; do
6290 test -z "$ac_dir" && ac_dir
=.
6291 if test -f $ac_dir/$ac_word; then
6292 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6293 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6299 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6303 XGETTEXT
="$ac_cv_path_XGETTEXT"
6304 if test "$XGETTEXT" != ":"; then
6305 echo "$ac_t""$XGETTEXT" 1>&6
6307 echo "$ac_t""no" 1>&6
6315 echo "$ac_t""no" 1>&6
6319 if test "$CATOBJEXT" = "NONE"; then
6320 nls_cv_use_gnu_gettext
=yes
6324 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6325 INTLOBJS
="\$(GETTOBJS)"
6326 # Extract the first word of "msgfmt", so it can be a program name with args.
6327 set dummy msgfmt
; ac_word
=$2
6328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_word" >&5
6330 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6335 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6338 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6339 for ac_dir
in $PATH; do
6340 test -z "$ac_dir" && ac_dir
=.
6341 if test -f $ac_dir/$ac_word; then
6342 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6343 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6349 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6353 MSGFMT
="$ac_cv_path_MSGFMT"
6354 if test "$MSGFMT" != ":"; then
6355 echo "$ac_t""$MSGFMT" 1>&6
6357 echo "$ac_t""no" 1>&6
6360 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6361 set dummy gmsgfmt
; ac_word
=$2
6362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6363 echo "configure:6364: checking for $ac_word" >&5
6364 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6365 echo $ac_n "(cached) $ac_c" 1>&6
6369 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6372 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6375 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6377 for ac_dir
in $ac_dummy; do
6378 test -z "$ac_dir" && ac_dir
=.
6379 if test -f $ac_dir/$ac_word; then
6380 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6385 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6389 GMSGFMT
="$ac_cv_path_GMSGFMT"
6390 if test -n "$GMSGFMT"; then
6391 echo "$ac_t""$GMSGFMT" 1>&6
6393 echo "$ac_t""no" 1>&6
6396 # Extract the first word of "xgettext", so it can be a program name with args.
6397 set dummy xgettext
; ac_word
=$2
6398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6399 echo "configure:6400: checking for $ac_word" >&5
6400 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6405 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6408 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6409 for ac_dir
in $PATH; do
6410 test -z "$ac_dir" && ac_dir
=.
6411 if test -f $ac_dir/$ac_word; then
6412 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6413 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6419 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6423 XGETTEXT
="$ac_cv_path_XGETTEXT"
6424 if test "$XGETTEXT" != ":"; then
6425 echo "$ac_t""$XGETTEXT" 1>&6
6427 echo "$ac_t""no" 1>&6
6431 BUILD_INCLUDED_LIBINTL
=yes
6432 USE_INCLUDED_LIBINTL
=yes
6434 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6435 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6436 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6439 if test "$GMSGFMT" != ":"; then
6440 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6443 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6448 if test "$XGETTEXT" != ":"; then
6449 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6452 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6462 if test "$PACKAGE" = gettext; then
6463 BUILD_INCLUDED_LIBINTL
=yes
6466 for ac_prog
in bison
6468 # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy
$ac_prog; ac_word
=$2
6470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6471 echo "configure:6472: checking for $ac_word" >&5
6472 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6475 if test -n "$INTLBISON"; then
6476 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6478 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6480 for ac_dir
in $ac_dummy; do
6481 test -z "$ac_dir" && ac_dir
=.
6482 if test -f $ac_dir/$ac_word; then
6483 ac_cv_prog_INTLBISON
="$ac_prog"
6490 INTLBISON
="$ac_cv_prog_INTLBISON"
6491 if test -n "$INTLBISON"; then
6492 echo "$ac_t""$INTLBISON" 1>&6
6494 echo "$ac_t""no" 1>&6
6497 test -n "$INTLBISON" && break
6500 if test -z "$INTLBISON"; then
6503 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6504 echo "configure:6505: checking version of bison" >&5
6505 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6506 case $ac_prog_version in
6507 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6508 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6509 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6510 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6512 echo "$ac_t""$ac_prog_version" 1>&6
6514 if test $ac_verc_fail = yes; then
6527 if test $USE_INCLUDED_LIBINTL = yes; then
6528 cat >> confdefs.h
<<\EOF
6529 #define USE_INCLUDED_LIBINTL 1
6535 nls_cv_header_libgt
=
6547 if test "x$CATOBJEXT" != x
; then
6548 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6549 echo "configure:6550: checking for catalogs to be installed" >&5
6550 # Look for .po and .gmo files in the source directory.
6553 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6554 # If there aren't any .gmo files the shell will give us the
6555 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6557 case "$cat" in *\
**)
6560 # The quadruple backslash is collapsed to a double backslash
6561 # by the backticks, then collapsed again by the double quotes,
6562 # leaving us with one backslash in the sed expression (right
6563 # before the dot that mustn't act as a wildcard). The dot to
6564 # be escaped in the second expression is hiding inside CATOBJEXT.
6565 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6566 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6567 # The user is allowed to set LINGUAS to a list of languages to
6568 # install catalogs for. If it's empty that means "all of them."
6569 if test "x$LINGUAS" = x
; then
6570 CATALOGS
="$CATALOGS $cat"
6571 XLINGUAS
="$XLINGUAS $lang"
6573 case "$LINGUAS" in *$lang*)
6574 CATALOGS
="$CATALOGS $cat"
6575 XLINGUAS
="$XLINGUAS $lang"
6581 echo "$ac_t""$LINGUAS" 1>&6
6585 if test -n "$ac_aux_dir"; then
6586 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6588 if test -z "$MKINSTALLDIRS"; then
6589 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6593 INTL_LIBTOOL_SUFFIX_PREFIX
=
6597 # Windows32 Registry support for specifying GCC installation paths.
6598 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6599 if test "${enable_win32_registry+set}" = set; then
6600 enableval
="$enable_win32_registry"
6605 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6606 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6607 echo "configure:6608: checking whether windows registry support is requested" >&5
6608 if test "x$enable_win32_registry" != xno
; then
6609 cat >> confdefs.h
<<\EOF
6610 #define ENABLE_WIN32_REGISTRY 1
6613 echo "$ac_t""yes" 1>&6
6615 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6616 echo "configure:6617: checking for library containing RegOpenKeyExA" >&5
6617 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6620 ac_func_search_save_LIBS
="$LIBS"
6621 ac_cv_search_RegOpenKeyExA
="no"
6622 cat > conftest.
$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 /* Override any gcc2 internal prototype to avoid an error. */
6626 /* We use char because int might match the return type of a gcc2
6627 builtin and then its argument prototype would still apply. */
6628 char RegOpenKeyExA();
6634 if { (eval echo configure
:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6636 ac_cv_search_RegOpenKeyExA
="none required"
6638 echo "configure: failed program was:" >&5
6639 cat conftest.
$ac_ext >&5
6642 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6643 LIBS
="-l$i $ac_func_search_save_LIBS"
6644 cat > conftest.
$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650 char RegOpenKeyExA();
6656 if { (eval echo configure
:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6658 ac_cv_search_RegOpenKeyExA
="-l$i"
6661 echo "configure: failed program was:" >&5
6662 cat conftest.
$ac_ext >&5
6666 LIBS
="$ac_func_search_save_LIBS"
6669 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6670 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6671 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6677 echo "$ac_t""no" 1>&6
6680 # Check if user specified a different registry key.
6681 case "x${enable_win32_registry}" in
6684 gcc_cv_win32_registry_key
="$VERSION"
6687 # no registry lookup.
6688 gcc_cv_win32_registry_key
=''
6691 # user-specified key.
6692 gcc_cv_win32_registry_key
="$enable_win32_registry"
6696 if test "x$enable_win32_registry" != xno
; then
6697 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6698 echo "configure:6699: checking registry key on windows hosts" >&5
6699 cat >> confdefs.h
<<EOF
6700 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6703 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6708 # Get an absolute path to the GCC top-level source directory
6709 holddir
=`${PWDCMD-pwd}`
6711 topdir
=`${PWDCMD-pwd}`
6714 # Conditionalize the makefile for this host machine.
6715 # Make-host contains the concatenation of all host makefile fragments
6716 # [there can be more than one]. This file is built by configure.frag.
6717 host_overrides
=Make-host
6718 dep_host_xmake_file
=
6719 for f
in ..
${host_xmake_file}
6721 if test -f ${srcdir}/config
/$f
6723 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6727 # Conditionalize the makefile for this target machine.
6728 # Make-target contains the concatenation of all host makefile fragments
6729 # [there can be more than one]. This file is built by configure.frag.
6730 target_overrides
=Make-target
6732 for f
in ..
${tmake_file}
6734 if test -f ${srcdir}/config
/$f
6736 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6740 # If the host doesn't support symlinks, modify CC in
6741 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6742 # Otherwise, we can use "CC=$(CC)".
6744 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6746 cc_set_by_configure
="\$(CC)"
6747 quoted_cc_set_by_configure
="\$(CC)"
6748 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6749 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6752 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6754 symbolic_link
="cp -p"
6758 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6759 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6760 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6761 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6765 out_object_file
=`basename $out_file .c`.o
6768 for f
in $tm_file; do
6771 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6773 tm_file_list
="${tm_file_list} \$(srcdir)/$f" ;;
6774 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6779 for f
in $tm_p_file; do
6780 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6784 for f
in $host_xm_file; do
6787 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6789 host_xm_file_list
="${host_xm_file_list} $f" ;;
6791 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6792 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6797 for f
in $build_xm_file; do
6800 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6801 auto-build.h | auto-host.h
)
6802 build_xm_file_list
="${build_xm_file_list} $f" ;;
6804 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6805 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6809 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6810 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6813 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6814 if test x
$host != x
$target
6816 CROSS
="-DCROSS_COMPILE"
6818 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6819 case "$host","$target" in
6820 i?
86-*-*,x86_64-
*-* \
6821 | powerpc
*-*-*,powerpc64
*-*-*)
6822 CROSS
="$CROSS -DNATIVE_CROSS" ;;
6826 # If this is a cross-compiler that does not
6827 # have its own set of headers then define
6830 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6831 # This prevents libgcc2 from containing any code which requires libc
6834 if test x
$host != x
$target && test x
$with_headers = x
; then
6835 inhibit_libc
=-Dinhibit_libc
6837 if test x
$with_newlib = xyes
; then
6838 inhibit_libc
=-Dinhibit_libc
6843 # When building gcc with a cross-compiler, we need to adjust things so
6844 # that the generator programs are still built with the native compiler.
6845 # Also, we cannot run fixincludes or fix-header.
6846 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6849 # These are the normal (build=host) settings:
6851 BUILD_PREFIX_1
=ignore-
6853 HOST_CFLAGS
='$(ALL_CFLAGS)'
6855 STMP_FIXINC
=stmp-fixinc
6856 STMP_FIXPROTO
=stmp-fixproto
6858 # And these apply if build != host.
6859 if test x
$build != x
$host
6862 BUILD_PREFIX_1
=build-
6863 HOST_CC
='$(CC_FOR_BUILD)'
6864 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6870 # Expand extra_headers to include complete path.
6871 # This substitutes for lots of t-* files.
6873 if test "x$extra_headers" = x
6876 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6877 for file in $extra_headers;
6879 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6883 if test x
$use_collect2 = xno
; then
6887 # Add a definition of USE_COLLECT2 if system wants one.
6888 if test x
$use_collect2 != x
6890 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6891 xm_defines
="${xm_defines} USE_COLLECT2"
6894 # If we have gas in the build tree, make a link to it.
6895 if test -f ..
/gas
/Makefile
; then
6896 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6899 # If we have nm and objdump in the build tree, make a link to them.
6900 if test -f ..
/binutils
/Makefile
; then
6901 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6902 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6905 # If we have ld in the build tree, make a link to it.
6906 if test -f ..
/ld
/Makefile
; then
6907 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6910 # Figure out what assembler we will be using.
6911 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6912 echo "configure:6913: checking what assembler to use" >&5
6914 gcc_cv_gas_major_version
=
6915 gcc_cv_gas_minor_version
=
6916 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6917 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6918 if test -x "$DEFAULT_ASSEMBLER"; then
6919 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6920 elif test -x "$AS"; then
6922 elif test -x as
$host_exeext; then
6923 # Build using assembler in the current directory.
6924 gcc_cv_as
=.
/as
$host_exeext
6925 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6926 # Single tree build which includes gas.
6927 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
6929 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6930 if test x
$gcc_cv_gas_version != x
; then
6934 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6935 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6936 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
6939 if test "x$gcc_cv_as" = x
; then
6940 # Search the same directories that the installed compiler will
6941 # search. Else we may find the wrong assembler and lose. If we
6942 # do not find a suitable assembler binary, then try the user's
6945 # Also note we have to check MD_EXEC_PREFIX before checking the
6946 # user's path. Unfortunately, there is no good way to get at the
6947 # value of MD_EXEC_PREFIX here. So we do a brute force search
6948 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6949 # to be fixed as part of the make/configure rewrite too.
6951 if test "x$exec_prefix" = xNONE
; then
6952 if test "x$prefix" = xNONE
; then
6953 test_prefix
=/usr
/local
6958 test_prefix
=$exec_prefix
6961 # If the loop below does not find an assembler, then use whatever
6962 # one we can find in the users's path.
6964 if test "x$program_prefix" != xNONE
; then
6965 gcc_cv_as
=${program_prefix}as
$host_exeext
6967 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
6970 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
6971 $test_prefix/lib/gcc-lib/$target_alias \
6972 /usr/lib/gcc/$target_alias/$gcc_version \
6973 /usr/lib/gcc/$target_alias \
6974 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
6975 $test_prefix/$target_alias/bin"
6977 if test x
$host = x
$target; then
6978 test_dirs
="$test_dirs \
6983 /bsd43/usr/lib/cmplrs/cc \
6984 /usr/cross64/usr/bin \
6985 /usr/lib/cmplrs/cc \
6986 /sysv/usr/lib/cmplrs/cc \
6987 /svr4/usr/lib/cmplrs/cc \
6991 for dir
in $test_dirs; do
6992 if test -x $dir/as
$host_exeext; then
6993 gcc_cv_as
=$dir/as
$host_exeext
6998 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6999 echo "$ac_t"""newly built gas
"" 1>&6
7001 echo "$ac_t""$gcc_cv_as" 1>&6
7004 # Figure out what linker we will be using.
7005 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
7006 echo "configure:7007: checking what linker to use" >&5
7008 gcc_cv_gld_major_version
=
7009 gcc_cv_gld_minor_version
=
7010 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
7011 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
7012 if test -x "$DEFAULT_LINKER"; then
7013 gcc_cv_ld
="$DEFAULT_LINKER"
7014 elif test -x "$LD"; then
7016 elif test -x ld
$host_exeext; then
7017 # Build using linker in the current directory.
7018 gcc_cv_ld
=.
/ld
$host_exeext
7019 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
7020 # Single tree build which includes ld.
7021 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
7023 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
7024 if test x
$gcc_cv_gld_version != x
; then
7028 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
7029 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
7032 if test "x$gcc_cv_ld" = x
; then
7033 # Search the same directories that the installed compiler will
7034 # search. Else we may find the wrong linker and lose. If we
7035 # do not find a suitable linker binary, then try the user's
7038 # Also note we have to check MD_EXEC_PREFIX before checking the
7039 # user's path. Unfortunately, there is no good way to get at the
7040 # value of MD_EXEC_PREFIX here. So we do a brute force search
7041 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
7042 # to be fixed as part of the make/configure rewrite too.
7044 if test "x$exec_prefix" = xNONE
; then
7045 if test "x$prefix" = xNONE
; then
7046 test_prefix
=/usr
/local
7051 test_prefix
=$exec_prefix
7054 # If the loop below does not find an linker, then use whatever
7055 # one we can find in the users's path.
7057 if test "x$program_prefix" != xNONE
; then
7058 gcc_cv_ld
=${program_prefix}ld
$host_exeext
7060 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
7063 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7064 $test_prefix/lib/gcc-lib/$target_alias \
7065 /usr/lib/gcc/$target_alias/$gcc_version \
7066 /usr/lib/gcc/$target_alias \
7067 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7068 $test_prefix/$target_alias/bin"
7070 if test x
$host = x
$target; then
7071 test_dirs
="$test_dirs \
7076 /bsd43/usr/lib/cmplrs/cc \
7077 /usr/cross64/usr/bin \
7078 /usr/lib/cmplrs/cc \
7079 /sysv/usr/lib/cmplrs/cc \
7080 /svr4/usr/lib/cmplrs/cc \
7084 for dir
in $test_dirs; do
7085 if test -x $dir/ld
$host_exeext; then
7086 gcc_cv_ld
=$dir/ld
$host_exeext
7091 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7092 echo "$ac_t"""newly built ld
"" 1>&6
7094 echo "$ac_t""$gcc_cv_ld" 1>&6
7097 # Figure out what nm we will be using.
7098 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7099 echo "configure:7100: checking what nm to use" >&5
7100 if test -x nm
$host_exeext; then
7101 gcc_cv_nm
=.
/nm
$host_exeext
7102 elif test "x$program_prefix" != xNONE
; then
7103 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7105 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7107 echo "$ac_t""$gcc_cv_nm" 1>&6
7109 # Figure out what objdump we will be using.
7110 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7111 echo "configure:7112: checking what objdump to use" >&5
7112 if test -x objdump
$host_exeext; then
7113 gcc_cv_objdump
=.
/objdump
$host_exeext
7114 elif test "x$program_prefix" != xNONE
; then
7115 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7117 gcc_cv_objdump
=`echo objdump | sed ${program_transform_name}`$host_exeext
7119 echo "$ac_t""$gcc_cv_objdump" 1>&6
7121 # Figure out what assembler alignment features are present.
7122 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7123 echo "configure:7124: checking assembler alignment features" >&5
7124 gcc_cv_as_alignment_features
=none
7125 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7126 # Gas version 2.6 and later support for .balign and .p2align.
7127 # bytes to skip when using .p2align.
7128 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
7129 gcc_cv_as_alignment_features
=".balign and .p2align"
7130 cat >> confdefs.h
<<\EOF
7131 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7135 # Gas version 2.8 and later support specifying the maximum
7136 # bytes to skip when using .p2align.
7137 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
7138 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7139 cat >> confdefs.h
<<\EOF
7140 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7144 elif test x
$gcc_cv_as != x
; then
7145 # Check if we have .balign and .p2align
7146 echo ".balign 4" > conftest.s
7147 echo ".p2align 2" >> conftest.s
7148 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7149 gcc_cv_as_alignment_features
=".balign and .p2align"
7150 cat >> confdefs.h
<<\EOF
7151 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7155 rm -f conftest.s conftest.o
7156 # Check if specifying the maximum bytes to skip when
7157 # using .p2align is supported.
7158 echo ".p2align 4,,7" > conftest.s
7159 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7160 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7161 cat >> confdefs.h
<<\EOF
7162 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7166 rm -f conftest.s conftest.o
7168 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7170 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7171 echo "configure:7172: checking assembler subsection support" >&5
7172 gcc_cv_as_subsections
=no
7173 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7174 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
7175 gcc_cv_as_subsections
="working .subsection -1"
7177 elif test x
$gcc_cv_as != x
; then
7178 # Check if we have .subsection
7179 echo ".subsection 1" > conftest.s
7180 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7181 gcc_cv_as_subsections
=".subsection"
7182 if test x
$gcc_cv_nm != x
; then
7183 cat > conftest.s
<<EOF
7184 conftest_label1: .word 0
7186 conftest_label2: .word 0
7189 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7190 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7191 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7192 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7195 gcc_cv_as_subsections
="working .subsection -1"
7200 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7202 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7203 cat >> confdefs.h
<<\EOF
7204 #define HAVE_GAS_SUBSECTION_ORDERING 1
7208 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7210 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7211 echo "configure:7212: checking assembler weak support" >&5
7213 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7214 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
7215 gcc_cv_as_weak
="yes"
7217 elif test x
$gcc_cv_as != x
; then
7218 # Check if we have .weak
7219 echo " .weak foobar" > conftest.s
7220 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7221 gcc_cv_as_weak
="yes"
7223 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7225 if test x
"$gcc_cv_as_weak" = xyes
; then
7226 cat >> confdefs.h
<<\EOF
7227 #define HAVE_GAS_WEAK 1
7231 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7233 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7234 echo "configure:7235: checking assembler hidden support" >&5
7236 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7237 if test "$gcc_cv_gas_major_version" -eq 2 \
7238 -a "$gcc_cv_gas_minor_version" -eq 12 \
7239 -a "$gcc_cv_gas_patch_version" -ge 1 \
7240 -o "$gcc_cv_gas_major_version" -eq 2 \
7241 -a "$gcc_cv_gas_minor_version" -gt 12 \
7242 -o "$gcc_cv_gas_major_version" -gt 2 \
7243 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7244 gcc_cv_as_hidden
="yes"
7246 elif test x
$gcc_cv_as != x
; then
7247 # Check if we have .hidden
7248 echo " .hidden foobar" > conftest.s
7249 echo "foobar:" >> conftest.s
7250 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7251 gcc_cv_as_hidden
="yes"
7253 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7255 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7256 # This is irritatingly difficult to feature test for. Look for
7257 # the date string after the version number.
7258 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7259 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7260 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
7261 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'`
7262 if test 0"$ld_date" -lt 20020404; then
7263 if test -n "$ld_date"; then
7264 # If there was date string, but was earlier than 2002-04-04, fail
7265 gcc_cv_as_hidden
="no"
7266 elif test -z "$ld_vers"; then
7267 # If there was no date string nor ld version number, something is wrong
7268 gcc_cv_as_hidden
="no"
7270 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
7271 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
7272 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7273 test -z "$ld_vers_patch" && ld_vers_patch
=0
7274 if test "$ld_vers_major" -lt 2; then
7275 gcc_cv_as_hidden
="no"
7276 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
7277 gcc_cv_as_hidden
="no"
7278 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
7279 -a "$ld_vers_patch" -eq 0; then
7280 gcc_cv_as_hidden
="no"
7286 if test x
"$gcc_cv_as_hidden" = xyes
; then
7287 cat >> confdefs.h
<<\EOF
7288 #define HAVE_GAS_HIDDEN 1
7292 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7293 libgcc_visibility
=$gcc_cv_as_hidden
7296 if test x
"$gnu_ld_flag" = x
"no"; then
7297 # Even if using gas with .hidden support, the resulting object files
7298 # cannot be linked with the IRIX 6 O32 linker.
7299 libgcc_visibility
=no
7305 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7306 echo "configure:7307: checking assembler leb128 support" >&5
7308 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7309 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
7310 gcc_cv_as_leb128
="yes"
7312 elif test x
$gcc_cv_as != x
; then
7313 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7314 cat > conftest.s
<<EOF
7322 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7323 gcc_cv_as_leb128
="yes"
7325 # GAS versions before 2.11 do not support uleb128,
7326 # despite appearing to.
7327 # ??? There exists an elf-specific test that will crash
7328 # the assembler. Perhaps it's better to figure out whether
7329 # arbitrary sections are supported and try the test.
7330 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7331 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7332 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7333 as_major
=`echo $as_ver | sed 's/\..*//'`
7334 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7335 if test $as_major -eq 2 -a $as_minor -lt 11; then
7336 gcc_cv_as_leb128
="no"
7340 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7342 if test x
"$gcc_cv_as_leb128" = xyes
; then
7343 cat >> confdefs.h
<<\EOF
7344 #define HAVE_AS_LEB128 1
7348 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7350 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7351 echo "configure:7352: checking assembler eh_frame optimization" >&5
7352 gcc_cv_as_eh_frame
=no
7353 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7354 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
7355 gcc_cv_as_eh_frame
="yes"
7357 elif test x
$gcc_cv_as != x
; then
7358 # Check if this is GAS.
7359 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7360 rm -f a.out
2> /dev
/null
7361 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7362 # Versions up to and including 2.11.0 may mis-optimize
7363 # .eh_frame data. Try something.
7364 cat > conftest.s
<<EOF
7371 .section .eh_frame,"aw",@progbits
7373 .4byte .LECIE1-.LSCIE1
7387 .4byte .LEFDE1-.LASFDE1
7389 .4byte .LASFDE1-__FRAME_BEGIN__
7398 cat > conftest.lit
<<EOF
7399 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7400 0010 01000000 12000000 18000000 00000000 ................
7401 0020 08000000 04080000 0044 .........D
7403 cat > conftest.big
<<EOF
7404 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7405 0010 00000001 00000012 00000018 00000000 ................
7406 0020 00000008 04000000 0844 .........D
7408 # If the assembler didn't choke, and we can objdump,
7409 # and we got the correct data, then succeed.
7410 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7411 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7412 |
tail -3 > conftest.got \
7413 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7414 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7416 gcc_cv_as_eh_frame
="yes"
7418 gcc_cv_as_eh_frame
="bad"
7419 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7420 cat >> confdefs.h
<<\EOF
7421 #define USE_AS_TRADITIONAL_FORMAT 1
7429 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7431 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7432 echo "configure:7433: checking assembler section merging support" >&5
7433 gcc_cv_as_shf_merge
=no
7434 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7435 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
7436 gcc_cv_as_shf_merge
=yes
7438 elif test x
$gcc_cv_as != x
; then
7439 # Check if we support SHF_MERGE sections
7440 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7441 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7442 gcc_cv_as_shf_merge
=yes
7444 rm -f conftest.s conftest.o
7446 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7447 cat >> confdefs.h
<<\EOF
7448 #define HAVE_GAS_SHF_MERGE 1
7452 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7454 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6
7455 echo "configure:7456: checking assembler thread-local storage support" >&5
7463 .section ".tdata","awT",@progbits
7466 ldq $27,__tls_get_addr($29) !literal!1
7467 lda $16,foo($29) !tlsgd!1
7468 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
7469 ldq $27,__tls_get_addr($29) !literal!2
7470 lda $16,foo($29) !tlsldm!2
7471 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
7472 ldq $1,foo($29) !gotdtprel
7473 ldah $2,foo($29) !dtprelhi
7474 lda $3,foo($2) !dtprello
7475 lda $4,foo($29) !dtprel
7476 ldq $1,foo($29) !gottprel
7477 ldah $2,foo($29) !tprelhi
7478 lda $3,foo($2) !tprello
7479 lda $4,foo($29) !tprel'
7485 .section ".tdata","awT",@progbits
7489 leal foo@TLSGD(,%ebx,1), %eax
7490 leal foo@TLSLDM(%ebx), %eax
7491 leal foo@DTPOFF(%eax), %edx
7492 movl foo@GOTTPOFF(%ebx), %eax
7493 subl foo@GOTTPOFF(%ebx), %eax
7494 movl $foo@TPOFF, %eax
7495 subl $foo@TPOFF, %eax
7496 leal foo@NTPOFF(%ecx), %eax'
7502 .section ".tdata","awT",@progbits
7505 addl r16 = @ltoff(@dtpmod(foo#)), gp
7506 addl r17 = @ltoff(@dtprel(foo#)), gp
7507 addl r18 = @ltoff(@tprel(foo#)), gp
7508 addl r19 = @dtprel(foo#), gp
7509 adds r21 = @dtprel(foo#), r13
7510 movl r23 = @dtprel(foo#)
7511 addl r20 = @tprel(foo#), gp
7512 adds r22 = @tprel(foo#), r13
7513 movl r24 = @tprel(foo#)'
7518 if test -z "$tls_first_major"; then
7520 elif test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7522 if test "$gcc_cv_gas_major_version" -eq "$tls_first_major" \
7523 -a "$gcc_cv_gas_minor_version" -ge "$tls_first_minor" \
7524 -o "$gcc_cv_gas_major_version" -gt "$tls_first_major"; then
7527 elif test x
$gcc_cv_as != x
; then
7528 echo "$conftest_s" > conftest.s
7529 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
7533 rm -f conftest.s conftest.o
7535 if test "$gcc_cv_as_tls" = yes; then
7536 cat >> confdefs.h
<<\EOF
7537 #define HAVE_AS_TLS 1
7541 echo "$ac_t""$gcc_cv_as_tls" 1>&6
7544 # All TARGET_ABI_OSF targets.
7545 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7546 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7547 echo "configure:7548: checking assembler supports explicit relocations" >&5
7548 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7552 gcc_cv_as_explicit_relocs
=unknown
7553 if test x
$gcc_cv_gas_major_version != x \
7554 -a x
$gcc_cv_gas_minor_version != x
7556 if test "$gcc_cv_gas_major_version" -eq 2 \
7557 -a "$gcc_cv_gas_minor_version" -ge 12 \
7558 -o "$gcc_cv_gas_major_version" -gt 2; then
7559 gcc_cv_as_explicit_relocs
=yes
7561 elif test x
$gcc_cv_as != x
; then
7562 cat > conftest.s
<< 'EOF'
7565 extbl
$3, $2, $3 !lituse_bytoff
!1
7566 ldq
$2, a
($29) !literal
!1
7567 ldq
$4, b
($29) !literal
!2
7568 ldq_u
$3, 0($2) !lituse_base
!1
7569 ldq
$27, f
($29) !literal
!5
7570 jsr
$26, ($27), f
!lituse_jsr
!5
7571 ldah
$29, 0($26) !gpdisp
!3
7572 lda
$0, c
($29) !gprel
7573 ldah
$1, d
($29) !gprelhigh
7574 lda
$1, d
($1) !gprellow
7575 lda
$29, 0($29) !gpdisp
!3
7577 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7578 gcc_cv_as_explicit_relocs
=yes
7580 gcc_cv_as_explicit_relocs
=no
7582 rm -f conftest.s conftest.o
7587 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7588 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7589 cat >> confdefs.h
<<\EOF
7590 #define HAVE_AS_EXPLICIT_RELOCS 1
7596 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7597 echo "configure:7598: checking assembler .register pseudo-op support" >&5
7598 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7602 gcc_cv_as_register_pseudo_op
=unknown
7603 if test x
$gcc_cv_as != x
; then
7604 # Check if we have .register
7605 echo ".register %g2, #scratch" > conftest.s
7606 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7607 gcc_cv_as_register_pseudo_op
=yes
7609 gcc_cv_as_register_pseudo_op
=no
7611 rm -f conftest.s conftest.o
7616 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7617 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7618 cat >> confdefs.h
<<\EOF
7619 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7624 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7625 echo "configure:7626: checking assembler supports -relax" >&5
7626 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7630 gcc_cv_as_relax_opt
=unknown
7631 if test x
$gcc_cv_as != x
; then
7632 # Check if gas supports -relax
7633 echo ".text" > conftest.s
7634 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7635 gcc_cv_as_relax_opt
=yes
7637 gcc_cv_as_relax_opt
=no
7639 rm -f conftest.s conftest.o
7644 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7645 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7646 cat >> confdefs.h
<<\EOF
7647 #define HAVE_AS_RELAX_OPTION 1
7652 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7653 echo "configure:7654: checking assembler and linker support unaligned pc related relocs" >&5
7654 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7655 echo $ac_n "(cached) $ac_c" 1>&6
7658 gcc_cv_as_sparc_ua_pcrel
=unknown
7659 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7660 gcc_cv_as_sparc_ua_pcrel
=no
7661 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7662 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7663 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7664 gcc_cv_as_sparc_ua_pcrel
=yes
7666 rm -f conftest.s conftest.o conftest
7671 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7672 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7673 cat >> confdefs.h
<<\EOF
7674 #define HAVE_AS_SPARC_UA_PCREL 1
7679 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
7680 echo "configure:7681: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
7681 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7685 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7686 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
7687 if test x
$gcc_cv_objdump != x
; then
7688 gcc_cv_as_sparc_ua_pcrel_hidden
=no
7689 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
7690 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
7691 echo "foo: .skip 4" >> conftest.s
7692 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7693 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
7694 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
7695 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
7696 if $gcc_cv_objdump -R conftest
2> /dev
/null \
7697 |
grep 'DISP32' > /dev
/null
2>&1; then
7700 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
7704 rm -f conftest.s conftest.o conftest
7706 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
7711 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
7712 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
7713 cat >> confdefs.h
<<\EOF
7714 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
7719 if test "x$gcc_cv_as_flags64" != xno
; then
7720 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7721 echo "configure:7722: checking for assembler offsetable %lo() support" >&5
7722 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7726 gcc_cv_as_offsetable_lo10
=unknown
7727 if test "x$gcc_cv_as" != x
; then
7728 # Check if assembler has offsetable %lo()
7729 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7730 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7731 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7733 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7734 > /dev
/null
2>&1; then
7735 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7736 gcc_cv_as_offsetable_lo10
=no
7738 gcc_cv_as_offsetable_lo10
=yes
7741 gcc_cv_as_offsetable_lo10
=no
7743 rm -f conftest.s conftest.o conftest1.s conftest1.o
7748 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7749 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7750 cat >> confdefs.h
<<\EOF
7751 #define HAVE_AS_OFFSETABLE_LO10 1
7759 i
[34567]86-*-* | x86_64-
*-*)
7760 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7761 echo "configure:7762: checking assembler instructions" >&5
7762 gcc_cv_as_instructions
=
7763 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7764 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
7765 gcc_cv_as_instructions
="filds fists"
7767 elif test x
$gcc_cv_as != x
; then
7768 set "filds fists" "filds mem; fists mem"
7771 echo "$2" > conftest.s
7772 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7773 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7777 rm -f conftest.s conftest.o
7779 if test x
"$gcc_cv_as_instructions" != x
; then
7780 cat >> confdefs.h
<<EOF
7781 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7785 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7787 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7788 echo "configure:7789: checking assembler GOTOFF in data directives" >&5
7789 gcc_cv_as_gotoff_in_data
=no
7790 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7792 if test "$gcc_cv_gas_major_version" -eq 2 \
7793 -a "$gcc_cv_gas_minor_version" -ge 11 \
7794 -o "$gcc_cv_gas_major_version" -gt 2; then
7795 gcc_cv_as_gotoff_in_data
=yes
7797 elif test x
$gcc_cv_as != x
; then
7798 cat > conftest.s
<<EOF
7805 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7806 gcc_cv_as_gotoff_in_data
=yes
7809 cat >> confdefs.h
<<EOF
7810 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7813 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7817 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7818 echo "configure:7819: checking assembler dwarf2 debug_line support" >&5
7819 gcc_cv_as_dwarf2_debug_line
=no
7820 # ??? Not all targets support dwarf2 debug_line, even within a version
7821 # of gas. Moreover, we need to emit a valid instruction to trigger any
7822 # info to the output file. So, as supported targets are added to gas 2.11,
7823 # add some instruction here to (also) show we expect this might work.
7824 # ??? Once 2.11 is released, probably need to add first known working
7825 # version to the per-target configury.
7827 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-* | hppa
*-*-*)
7834 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7836 if test "$gcc_cv_gas_major_version" -eq 2 \
7837 -a "$gcc_cv_gas_minor_version" -ge 11 \
7838 -o "$gcc_cv_gas_major_version" -gt 2 \
7839 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7840 && test x
"$insn" != x
; then
7841 gcc_cv_as_dwarf2_debug_line
="yes"
7843 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7844 echo ' .file 1 "conftest.s"' > conftest.s
7845 echo ' .loc 1 3 0' >> conftest.s
7846 echo " $insn" >> conftest.s
7847 # ??? This fails with non-gnu grep.
7848 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7849 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7850 # The .debug_line file table must be in the exact order that
7851 # we specified the files, since these indices are also used
7852 # by DW_AT_decl_file. Approximate this test by testing if
7853 # the assembler bitches if the same index is assigned twice.
7854 echo ' .file 1 "foo.s"' > conftest.s
7855 echo ' .file 1 "bar.s"' >> conftest.s
7856 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7858 gcc_cv_as_dwarf2_debug_line
="no"
7860 gcc_cv_as_dwarf2_debug_line
="yes"
7863 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7865 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7866 cat >> confdefs.h
<<\EOF
7867 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7871 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7873 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7874 echo "configure:7875: checking assembler --gdwarf2 support" >&5
7875 gcc_cv_as_gdwarf2_flag
=no
7876 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7878 if test "$gcc_cv_gas_major_version" -eq 2 \
7879 -a "$gcc_cv_gas_minor_version" -ge 11 \
7880 -o "$gcc_cv_gas_major_version" -gt 2 \
7881 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7882 && test x
"$insn" != x
; then
7883 gcc_cv_as_gdwarf2_flag
="yes"
7885 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7886 echo '' > conftest.s
7887 # ??? This fails with non-gnu grep.
7888 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7890 gcc_cv_as_gdwarf2_flag
="yes"
7892 rm -f conftest.s conftest.o
7894 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7895 cat >> confdefs.h
<<\EOF
7896 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7900 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7902 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7903 echo "configure:7904: checking assembler --gstabs support" >&5
7904 gcc_cv_as_gstabs_flag
=no
7905 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7907 if test "$gcc_cv_gas_major_version" -eq 2 \
7908 -a "$gcc_cv_gas_minor_version" -ge 11 \
7909 -o "$gcc_cv_gas_major_version" -gt 2 \
7910 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7911 && test x
"$insn" != x
; then
7912 gcc_cv_as_gstabs_flag
="yes"
7914 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7915 echo '' > conftest.s
7916 # ??? This fails with non-gnu grep.
7917 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7918 gcc_cv_as_gstabs_flag
="yes"
7920 rm -f conftest.s conftest.o
7922 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7923 cat >> confdefs.h
<<\EOF
7924 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7928 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7930 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7931 echo "configure:7932: checking linker PT_GNU_EH_FRAME support" >&5
7932 gcc_cv_ld_eh_frame_hdr
=no
7933 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7934 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
7935 gcc_cv_ld_eh_frame_hdr
=yes
7937 elif test x
$gcc_cv_ld != x
; then
7938 # Check if linker supports --eh-frame-hdr option
7939 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7940 gcc_cv_ld_eh_frame_hdr
=yes
7943 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7944 cat >> confdefs.h
<<\EOF
7945 #define HAVE_LD_EH_FRAME_HDR 1
7949 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7951 # Miscellaneous target-specific checks.
7954 echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6
7955 echo "configure:7956: checking whether libgloss uses STARTUP directives consistently" >&5
7956 gcc_cv_mips_libgloss_startup
=no
7957 gcc_cv_libgloss_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
7958 if test "x$exec_prefix" = xNONE
; then
7959 if test "x$prefix" = xNONE
; then
7960 test_prefix
=/usr
/local
7965 test_prefix
=$exec_prefix
7967 for f
in $gcc_cv_libgloss_srcdir/mips
/idt.ld
$test_prefix/$target_alias/lib
/idt.ld
7969 if grep '^STARTUP' $f > /dev
/null
2>&1; then
7970 gcc_cv_mips_libgloss_startup
=yes
7974 if test x
"$gcc_cv_mips_libgloss_startup" = xyes
; then
7975 cat >> confdefs.h
<<\EOF
7976 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
7980 echo "$ac_t""$gcc_cv_mips_libgloss_startup" 1>&6
7984 if test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
7985 cat >> confdefs.h
<<EOF
7986 #define PREFIX_INCLUDE_DIR "$prefix/include"
7991 # Figure out what language subdirectories are present.
7992 # Look if the user specified --enable-languages="..."; if not, use
7993 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7995 # NB: embedded tabs in this IF block -- do not untabify
7996 if test x
"${enable_languages+set}" != xset
; then
7997 if test x
"${LANGUAGES+set}" = xset
; then
7998 enable_languages
="${LANGUAGES}"
7999 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
8002 enable_languages
=all
8005 if test x
"${enable_languages}" = x \
8006 ||
test x
"${enable_languages}" = xyes
;
8008 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
8011 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8013 # First scan to see if an enabled language requires some other language.
8014 # We assume that a given config-lang.in will list all the language
8015 # front ends it requires, even if some are required indirectly.
8016 for lang
in ${srcdir}/*/config-lang.
in ..
8021 # The odd quoting in the next line works around
8022 # an apparent bug in bash 1.12 on linux.
8023 ${srcdir}/[*]/config-lang.
in)
8026 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8027 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
8028 for other
in $this_lang_requires
8030 case ,${enable_languages}, in
8036 enable_languages
="$enable_languages,$other"
8044 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
8047 for lang
in ${srcdir}/*/config-lang.
in ..
8051 # The odd quoting in the next line works around
8052 # an apparent bug in bash 1.12 on linux.
8053 ${srcdir}/[*]/config-lang.
in) ;;
8055 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8056 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
8057 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
8058 if test "x$lang_alias" = x
8060 echo "$lang doesn't set \$language." 1>&2
8063 case ${build_by_default},${enable_languages}, in
8064 *,$lang_alias,*) add_this_lang
=yes ;;
8065 no
,*) add_this_lang
=no
;;
8066 *,all
,*) add_this_lang
=yes ;;
8067 *) add_this_lang
=no
;;
8069 found_languages
="${found_languages} ${lang_alias}"
8070 if test x
"${add_this_lang}" = xyes
; then
8072 ${srcdir}/ada
/config-lang.
in)
8073 if test x
$have_gnat = xyes
; then
8074 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8078 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8087 for expected_language
in ${expected_languages} ..
8089 if test "${expected_language}" != ..
; then
8090 missing_language
="${expected_language}"
8091 if test "${expected_language}" = "c" \
8092 ||
test "${expected_language}" = "all"; then
8095 for found_language
in ${found_languages} ..
8097 if test "${found_language}" != ..
; then
8098 if test "${expected_language}" = "${found_language}"; then
8103 if test "x${missing_language}" != x
; then
8104 missing_languages
="${missing_languages} ${missing_language}"
8109 if test "x$missing_languages" != x
; then
8110 { echo "configure: error:
8111 The following requested languages were not found:${missing_languages}
8112 The following languages were available: c${found_languages}" 1>&2; exit 1; }
8115 # Make gthr-default.h if we have a thread file.
8117 if test $thread_file != single
; then
8118 rm -f gthr-default.h
8119 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8120 gthread_flags
=-DHAVE_GTHR_DEFAULT
8124 # Find out what GC implementation we want, or may, use.
8125 # Check whether --with-gc or --without-gc was given.
8126 if test "${with_gc+set}" = set; then
8133 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8141 echo "Using $GGC for garbage collection."
8143 # Use the system's zlib library.
8145 zlibinc
="-I\$(srcdir)/../zlib"
8146 # Check whether --with-system-zlib or --without-system-zlib was given.
8147 if test "${with_system_zlib+set}" = set; then
8148 withval
="$with_system_zlib"
8158 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8159 echo "configure:8160: checking whether to enable maintainer-specific portions of Makefiles" >&5
8160 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8161 if test "${enable_maintainer_mode+set}" = set; then
8162 enableval
="$enable_maintainer_mode"
8163 maintainer_mode
=$enableval
8169 echo "$ac_t""$maintainer_mode" 1>&6
8171 if test "$maintainer_mode" = "yes"; then
8177 # With Setjmp/Longjmp based exception handling.
8178 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8179 if test "${enable_sjlj_exceptions+set}" = set; then
8180 enableval
="$enable_sjlj_exceptions"
8181 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8182 cat >> confdefs.h
<<EOF
8183 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8189 # Use libunwind based exception handling.
8190 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8191 if test "${enable_libunwind_exceptions+set}" = set; then
8192 enableval
="$enable_libunwind_exceptions"
8193 use_libunwind_exceptions
=$enableval
8195 use_libunwind_exceptions
=no
8198 if test x
"$use_libunwind_exceptions" = xyes
; then
8199 cat >> confdefs.h
<<\EOF
8200 #define USE_LIBUNWIND_EXCEPTIONS 1
8205 # Make empty files to contain the specs and options for each language.
8206 # Then add #include lines to for a compiler that has specs and/or options.
8211 for subdir
in .
$subdirs
8213 if test -f $srcdir/$subdir/lang-specs.h
; then
8214 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8216 if test -f $srcdir/$subdir/lang-options.h
; then
8217 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8219 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8220 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8224 # These (without "all_") are set in each config-lang.in.
8225 # `language' must be a single word so is spelled singularly.
8230 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
8231 # List of language makefile fragments.
8233 # Files for gengtype
8234 all_gtfiles
="$target_gtfiles"
8235 # Files for gengtype with language
8236 all_gtfiles_files_langs
=
8237 all_gtfiles_files_files
=
8239 # Add the language fragments.
8240 # Languages are added via two mechanisms. Some information must be
8241 # recorded in makefile variables, these are defined in config-lang.in.
8242 # We accumulate them and plug them into the main Makefile.
8243 # The other mechanism is a set of hooks for each of the main targets
8244 # like `clean', `install', etc.
8246 language_fragments
="Make-lang"
8247 language_hooks
="Make-hooks"
8249 for s
in ..
$subdirs
8259 .
${srcdir}/$s/config-lang.
in
8260 if test "x$language" = x
8262 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8265 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8266 if test -f ${srcdir}/$s/Makefile.
in
8267 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8269 all_languages
="$all_languages $language"
8270 if test "x$boot_language" = xyes
8272 all_boot_languages
="$all_boot_languages $language"
8274 all_compilers
="$all_compilers $compilers"
8275 all_stagestuff
="$all_stagestuff $stagestuff"
8276 all_outputs
="$all_outputs $outputs"
8277 all_gtfiles
="$all_gtfiles $gtfiles"
8278 for f
in ..
$gtfiles
8282 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
8283 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
8289 # Pick up gtfiles for c
8292 .
${srcdir}/c-config-lang.
in
8293 all_gtfiles
="$all_gtfiles $gtfiles"
8294 for f
in ..
$gtfiles
8298 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
8299 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
8304 for language
in ..
$all_languages
8306 if test $language != ".."
8308 check_languages
="$check_languages check-$language"
8312 # Since we can't use `::' targets, we link each language in
8313 # with a set of hooks, reached indirectly via lang.${target}.
8317 target_list
="all.build all.cross start.encap rest.encap \
8318 info dvi generated-manpages \
8319 install-normal install-common install-info install-man \
8321 mostlyclean clean distclean extraclean maintainer-clean \
8322 stage1 stage2 stage3 stage4"
8323 for t
in $target_list
8326 for lang
in ..
$all_languages
8328 if test $lang != ".."; then
8332 echo "lang.$t: $x" >> Make-hooks
8337 echo "dir ." > .gdbinit
8338 echo "dir ${srcdir}" >> .gdbinit
8339 if test x
$gdb_needs_out_file_path = xyes
8341 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8343 if test "x$subdirs" != x
; then
8346 echo "dir ${srcdir}/$s" >> .gdbinit
8349 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8351 # Define variables host_canonical and build_canonical
8352 # because some Cygnus local changes in the Makefile depend on them.
8353 build_canonical
=${build}
8354 host_canonical
=${host}
8356 if test "${host}" != "${target}" ; then
8357 target_subdir
=${target_alias}/
8363 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8364 # absolute path for gcc_tooldir based on inserting the number of up-directory
8365 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8366 # $(libsubdir)/@(unlibsubdir) based path.
8367 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8368 # make and thus we'd get different behavior depending on where we built the
8370 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8371 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8373 # An explanation of the sed strings:
8374 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8375 # -e 's|/$||' match a trailing forward slash and eliminates it
8376 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8377 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8379 # (*) Note this pattern overwrites the first character of the string
8380 # with a forward slash if one is not already present. This is not a
8381 # problem because the exact names of the sub-directories concerned is
8382 # unimportant, just the number of them matters.
8384 # The practical upshot of these patterns is like this:
8386 # prefix exec_prefix result
8387 # ------ ----------- ------
8389 # /foo/ /foo/bar ../
8390 # /foo /foo/bar/ ../
8391 # /foo/ /foo/bar/ ../
8392 # /foo /foo/bar/ugg ../../
8395 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8400 # Find a directory in which to install a shared libgcc.
8402 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8403 if test "${enable_version_specific_runtime_libs+set}" = set; then
8404 enableval
="$enable_version_specific_runtime_libs"
8409 # Check whether --with-slibdir or --without-slibdir was given.
8410 if test "${with_slibdir+set}" = set; then
8411 withval
="$with_slibdir"
8412 slibdir
="$with_slibdir"
8414 if test "${enable_version_specific_runtime_libs+set}" = set; then
8415 slibdir
='$(libsubdir)'
8416 elif test "$host" != "$target"; then
8417 slibdir
='$(build_tooldir)/lib'
8425 # Nothing to do for FLOAT_H, float_format already handled.
8426 objdir
=`${PWDCMD-pwd}`
8429 # Process the language and host/target makefile fragments.
8430 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8432 # Substitute configuration variables
8501 # Echo that links are built
8502 if test x
$host = x
$target
8510 if test x
$host != x
$build
8512 str3
=" on a $build system"
8515 if test "x$str2" != x ||
test "x$str3" != x
8520 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8522 if test "x$str2" != x ||
test "x$str3" != x
8524 echo " ${str2}${str3}." 1>&2
8527 # Truncate the target if necessary
8528 if test x
$host_truncate_target != x
; then
8529 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8532 # Configure the subdirectories
8533 # AC_CONFIG_SUBDIRS($subdirs)
8535 # Create the Makefile
8536 # and configure language subdirectories
8538 cat > confcache
<<\EOF
8539 # This file is a shell script that caches the results of configure
8540 # tests run on this system so they can be shared between configure
8541 # scripts and configure runs. It is not useful on other systems.
8542 # If it contains results you don't want to keep, you may remove or edit it.
8544 # By default, configure uses ./config.cache as the cache file,
8545 # creating it if it does not exist already. You can give configure
8546 # the --cache-file=FILE option to use a different cache file; that is
8547 # what configure does when it calls configure scripts in
8548 # subdirectories, so they share the cache.
8549 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8550 # config.status only pays attention to the cache file if you give it the
8551 # --recheck option to rerun configure.
8554 # The following way of writing the cache mishandles newlines in values,
8555 # but we know of no workaround that is simple, portable, and efficient.
8556 # So, don't put newlines in cache variables' values.
8557 # Ultrix sh set writes to stderr and can't be redirected directly,
8558 # and sets the high bit in the cache file unless we assign to the vars.
8560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8562 # `set' does not quote correctly, so add quotes (double-quote substitution
8563 # turns \\\\ into \\, and sed turns \\ into \).
8565 -e "s/'/'\\\\''/g" \
8566 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8569 # `set' quotes correctly as required by POSIX, so do not add quotes.
8570 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8573 if cmp -s $cache_file confcache
; then
8576 if test -w $cache_file; then
8577 echo "updating cache $cache_file"
8578 cat confcache
> $cache_file
8580 echo "not updating unwritable cache $cache_file"
8585 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8587 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8588 # Let make expand exec_prefix.
8589 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8591 # Any assignment to VPATH causes Sun make to only execute
8592 # the first set of double-colon rules, so remove it if not needed.
8593 # If there is a colon in the path, we need to keep it.
8594 if test "x$srcdir" = x.
; then
8595 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8598 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8600 DEFS
=-DHAVE_CONFIG_H
8602 # Without the "./", some shells look in PATH for config.status.
8603 : ${CONFIG_STATUS=./config.status}
8605 echo creating
$CONFIG_STATUS
8606 rm -f $CONFIG_STATUS
8607 cat > $CONFIG_STATUS <<EOF
8609 # Generated automatically by configure.
8610 # Run this file to recreate the current configuration.
8611 # This directory was configured as follows,
8612 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8614 # $0 $ac_configure_args
8616 # Compiler output produced by configure, useful for debugging
8617 # configure, is in ./config.log if it exists.
8619 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8622 case "\$ac_option" in
8623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8624 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8625 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8626 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8627 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8629 -help | --help | --hel | --he | --h)
8630 echo "\$ac_cs_usage"; exit 0 ;;
8631 *) echo "\$ac_cs_usage"; exit 1 ;;
8635 ac_given_srcdir=$srcdir
8637 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8639 cat >> $CONFIG_STATUS <<EOF
8641 # Protect against being on the right side of a sed subst in config.status.
8642 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8643 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8647 s%@CFLAGS@%$CFLAGS%g
8648 s%@CPPFLAGS@%$CPPFLAGS%g
8649 s%@CXXFLAGS@%$CXXFLAGS%g
8650 s%@FFLAGS@%$FFLAGS%g
8652 s%@LDFLAGS@%$LDFLAGS%g
8654 s%@exec_prefix@%$exec_prefix%g
8655 s%@prefix@%$prefix%g
8656 s%@program_transform_name@%$program_transform_name%g
8657 s%@bindir@%$bindir%g
8658 s%@sbindir@%$sbindir%g
8659 s%@libexecdir@%$libexecdir%g
8660 s%@datadir@%$datadir%g
8661 s%@sysconfdir@%$sysconfdir%g
8662 s%@sharedstatedir@%$sharedstatedir%g
8663 s%@localstatedir@%$localstatedir%g
8664 s%@libdir@%$libdir%g
8665 s%@includedir@%$includedir%g
8666 s%@oldincludedir@%$oldincludedir%g
8667 s%@infodir@%$infodir%g
8668 s%@mandir@%$mandir%g
8669 s%@enable_multilib@%$enable_multilib%g
8670 s%@nocommon_flag@%$nocommon_flag%g
8671 s%@coverage_flags@%$coverage_flags%g
8672 s%@enable_shared@%$enable_shared%g
8674 s%@host_alias@%$host_alias%g
8675 s%@host_cpu@%$host_cpu%g
8676 s%@host_vendor@%$host_vendor%g
8677 s%@host_os@%$host_os%g
8678 s%@target@%$target%g
8679 s%@target_alias@%$target_alias%g
8680 s%@target_cpu@%$target_cpu%g
8681 s%@target_vendor@%$target_vendor%g
8682 s%@target_os@%$target_os%g
8684 s%@build_alias@%$build_alias%g
8685 s%@build_cpu@%$build_cpu%g
8686 s%@build_vendor@%$build_vendor%g
8687 s%@build_os@%$build_os%g
8689 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8690 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8691 s%@GNATBIND@%$GNATBIND%g
8693 s%@strict1_warn@%$strict1_warn%g
8695 s%@warn_cflags@%$warn_cflags%g
8696 s%@stage1_cflags@%$stage1_cflags%g
8697 s%@SET_MAKE@%$SET_MAKE%g
8701 s%@RANLIB@%$RANLIB%g
8702 s%@INSTALL@%$INSTALL%g
8703 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8704 s%@INSTALL_DATA@%$INSTALL_DATA%g
8705 s%@have_mktemp_command@%$have_mktemp_command%g
8706 s%@MAKEINFO@%$MAKEINFO%g
8707 s%@BUILD_INFO@%$BUILD_INFO%g
8708 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8711 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8712 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8713 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8714 s%@LIBICONV@%$LIBICONV%g
8715 s%@manext@%$manext%g
8716 s%@objext@%$objext%g
8717 s%@extra_modes_file@%$extra_modes_file%g
8718 s%@FORBUILD@%$FORBUILD%g
8719 s%@PACKAGE@%$PACKAGE%g
8720 s%@VERSION@%$VERSION%g
8721 s%@ALLOCA@%$ALLOCA%g
8722 s%@GLIBC21@%$GLIBC21%g
8723 s%@USE_NLS@%$USE_NLS%g
8724 s%@MSGFMT@%$MSGFMT%g
8725 s%@GMSGFMT@%$GMSGFMT%g
8726 s%@XGETTEXT@%$XGETTEXT%g
8727 s%@INTLBISON@%$INTLBISON%g
8728 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8729 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8730 s%@CATALOGS@%$CATALOGS%g
8731 s%@CATOBJEXT@%$CATOBJEXT%g
8732 s%@INTLLIBS@%$INTLLIBS%g
8733 s%@INTLDEPS@%$INTLDEPS%g
8734 s%@INTLOBJS@%$INTLOBJS%g
8736 s%@DATADIRNAME@%$DATADIRNAME%g
8737 s%@INSTOBJEXT@%$INSTOBJEXT%g
8738 s%@GENCAT@%$GENCAT%g
8739 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8740 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8743 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8744 s%@inhibit_libc@%$inhibit_libc%g
8745 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
8746 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
8747 s%@HOST_CC@%$HOST_CC%g
8748 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8749 s%@STMP_FIXINC@%$STMP_FIXINC%g
8750 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8751 s%@libgcc_visibility@%$libgcc_visibility%g
8752 s%@gthread_flags@%$gthread_flags%g
8754 s%@zlibdir@%$zlibdir%g
8755 s%@zlibinc@%$zlibinc%g
8757 s%@build_canonical@%$build_canonical%g
8758 s%@host_canonical@%$host_canonical%g
8759 s%@target_subdir@%$target_subdir%g
8760 s%@gcc_tooldir@%$gcc_tooldir%g
8761 s%@dollar@%$dollar%g
8762 s%@slibdir@%$slibdir%g
8763 s%@objdir@%$objdir%g
8764 s%@subdirs@%$subdirs%g
8765 s%@srcdir@%$srcdir%g
8766 s%@all_boot_languages@%$all_boot_languages%g
8767 s%@all_compilers@%$all_compilers%g
8768 s%@all_gtfiles@%$all_gtfiles%g
8769 s%@all_gtfiles_files_langs@%$all_gtfiles_files_langs%g
8770 s%@all_gtfiles_files_files@%$all_gtfiles_files_files%g
8771 s%@all_lang_makefiles@%$all_lang_makefiles%g
8772 s%@all_languages@%$all_languages%g
8773 s%@all_stagestuff@%$all_stagestuff%g
8774 s%@build_exeext@%$build_exeext%g
8775 s%@build_install_headers_dir@%$build_install_headers_dir%g
8776 s%@build_xm_file_list@%$build_xm_file_list%g
8777 s%@build_xm_file@%$build_xm_file%g
8778 s%@build_xm_defines@%$build_xm_defines%g
8779 s%@check_languages@%$check_languages%g
8780 s%@cc_set_by_configure@%$cc_set_by_configure%g
8781 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8782 s%@cpp_install_dir@%$cpp_install_dir%g
8783 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8784 s%@dep_tmake_file@%$dep_tmake_file%g
8785 s%@extra_headers_list@%$extra_headers_list%g
8786 s%@extra_objs@%$extra_objs%g
8787 s%@extra_parts@%$extra_parts%g
8788 s%@extra_passes@%$extra_passes%g
8789 s%@extra_programs@%$extra_programs%g
8790 s%@float_h_file@%$float_h_file%g
8791 s%@gcc_config_arguments@%$gcc_config_arguments%g
8792 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8793 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8794 s%@gcc_version@%$gcc_version%g
8795 s%@gcc_version_full@%$gcc_version_full%g
8796 s%@gcc_version_trigger@%$gcc_version_trigger%g
8797 s%@host_exeext@%$host_exeext%g
8798 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8799 s%@host_xm_file_list@%$host_xm_file_list%g
8800 s%@host_xm_file@%$host_xm_file%g
8801 s%@host_xm_defines@%$host_xm_defines%g
8802 s%@install@%$install%g
8803 s%@lang_options_files@%$lang_options_files%g
8804 s%@lang_specs_files@%$lang_specs_files%g
8805 s%@lang_tree_files@%$lang_tree_files%g
8806 s%@local_prefix@%$local_prefix%g
8807 s%@md_file@%$md_file%g
8808 s%@objc_boehm_gc@%$objc_boehm_gc%g
8809 s%@out_file@%$out_file%g
8810 s%@out_object_file@%$out_object_file%g
8811 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8812 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8813 s%@symbolic_link@%$symbolic_link%g
8814 s%@thread_file@%$thread_file%g
8815 s%@tm_file_list@%$tm_file_list%g
8816 s%@tm_file@%$tm_file%g
8817 s%@tm_defines@%$tm_defines%g
8818 s%@tm_p_file_list@%$tm_p_file_list%g
8819 s%@tm_p_file@%$tm_p_file%g
8820 s%@xm_file@%$xm_file%g
8821 s%@xm_defines@%$xm_defines%g
8822 s%@c_target_objs@%$c_target_objs%g
8823 s%@cxx_target_objs@%$cxx_target_objs%g
8824 s%@target_cpu_default@%$target_cpu_default%g
8825 /@target_overrides@/r $target_overrides
8826 s%@target_overrides@%%g
8827 /@host_overrides@/r $host_overrides
8828 s%@host_overrides@%%g
8829 /@language_fragments@/r $language_fragments
8830 s%@language_fragments@%%g
8831 /@language_hooks@/r $language_hooks
8832 s%@language_hooks@%%g
8837 cat >> $CONFIG_STATUS <<\EOF
8839 # Split the substitutions into bite-sized pieces for seds with
8840 # small command number limits, like on Digital OSF/1 and HP-UX.
8841 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8842 ac_file
=1 # Number of current file.
8843 ac_beg
=1 # First line for current file.
8844 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8847 while $ac_more_lines; do
8848 if test $ac_beg -gt 1; then
8849 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8851 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8853 if test ! -s conftest.s
$ac_file; then
8855 rm -f conftest.s
$ac_file
8857 if test -z "$ac_sed_cmds"; then
8858 ac_sed_cmds
="sed -f conftest.s$ac_file"
8860 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8862 ac_file
=`expr $ac_file + 1`
8864 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8867 if test -z "$ac_sed_cmds"; then
8872 cat >> $CONFIG_STATUS <<EOF
8874 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8876 cat >> $CONFIG_STATUS <<\EOF
8877 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8878 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8880 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8881 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8882 *) ac_file_in
="${ac_file}.in" ;;
8885 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8887 # Remove last slash and all that follows it. Not all systems have dirname.
8888 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8889 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8890 # The file is in a subdirectory.
8891 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8892 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8893 # A "../" for each directory in $ac_dir_suffix.
8894 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8896 ac_dir_suffix
= ac_dots
=
8899 case "$ac_given_srcdir" in
8901 if test -z "$ac_dots"; then top_srcdir
=.
8902 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8903 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8905 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8906 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8910 echo creating
"$ac_file"
8912 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8914 *Makefile
*) ac_comsub
="1i\\
8915 # $configure_input" ;;
8919 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8921 s%@configure_input@%$configure_input%g
8922 s%@srcdir@%$srcdir%g
8923 s%@top_srcdir@%$top_srcdir%g
8924 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8928 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8929 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8931 # ac_d sets the value in "#define NAME VALUE" lines.
8932 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8933 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8936 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8937 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8938 ac_uB
='\([ ]\)%\1#\2define\3'
8941 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8942 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8943 ac_eB
='$%\1#\2define\3'
8947 if test "${CONFIG_HEADERS+set}" != set; then
8949 cat >> $CONFIG_STATUS <<EOF
8950 CONFIG_HEADERS="auto-host.h:config.in"
8952 cat >> $CONFIG_STATUS <<\EOF
8954 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8957 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8958 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8959 *) ac_file_in
="${ac_file}.in" ;;
8962 echo creating
$ac_file
8964 rm -f conftest.frag conftest.
in conftest.out
8965 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8966 cat $ac_file_inputs > conftest.
in
8970 # Transform confdefs.h into a sed script conftest.vals that substitutes
8971 # the proper values into config.h.in to produce config.h. And first:
8972 # Protect against being on the right side of a sed subst in config.status.
8973 # Protect against being in an unquoted here document in config.status.
8975 cat > conftest.hdr
<<\EOF
8978 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8982 sed -n -f conftest.hdr confdefs.h > conftest.vals
8985 # This sed command replaces #undef with comments. This is necessary, for
8986 # example, in the case of _POSIX_SOURCE, which is predefined and required
8987 # on some systems where configure will not decide to define it.
8988 cat >> conftest.vals <<\EOF
8989 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8992 # Break up conftest.vals because some shells have a limit on
8993 # the size of here documents, and old seds have small limits too.
8998 ac_lines=`grep -c . conftest.vals
`
8999 # grep -c gives empty output for an empty file on some AIX systems.
9000 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9001 # Write a limited-size here document to conftest.frag.
9002 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9003 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9005 sed -f conftest.frag conftest.in > conftest.out
9007 mv conftest.out conftest.in
9009 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9011 mv conftest.tail conftest.vals
9015 cat >> $CONFIG_STATUS <<\EOF
9016 rm -f conftest.frag conftest.h
9017 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9018 cat conftest.in >> conftest.h
9020 if cmp -s $ac_file conftest.h 2>/dev/null; then
9021 echo "$ac_file is unchanged"
9024 # Remove last slash and all that follows it. Not all systems have dirname.
9025 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9026 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9027 # The file is in a subdirectory.
9028 test ! -d "$ac_dir" && mkdir "$ac_dir"
9031 mv conftest.h $ac_file
9036 cat >> $CONFIG_STATUS <<EOF
9039 symbolic_link='$symbolic_link'
9042 cat >> $CONFIG_STATUS <<\EOF
9043 for ac_file in $CONFIG_FILES; do
9044 # Support "outfile[:infile[:infile...]]"
9046 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
9048 # PO directories have a Makefile.in generated from Makefile.in.in.
9049 case "$ac_file" in */Makefile.in)
9050 # Adjust a relative srcdir.
9051 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
9052 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
9053 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
9054 # In autoconf-2.13 it is called $ac_given_srcdir.
9055 # In autoconf-2.50 it is called $srcdir.
9056 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9057 case "$ac_given_srcdir" in
9058 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
9059 /*) top_srcdir="$ac_given_srcdir" ;;
9060 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9062 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9063 rm -f "$ac_dir/POTFILES"
9064 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9065 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9066 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9067 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9073 case x$CONFIG_HEADERS in
9074 xauto-host.h:config.in)
9077 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9078 # bootstrapping and the installation procedure can still use
9079 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9080 # FLAGS_TO_PASS has been modified to solve the problem there.
9081 # This is virtually a duplicate of what happens in configure.lang; we do
9082 # an extra check to make sure this only happens if ln -s can be used.
9083 if test "$symbolic_link" = "ln -s"; then
9084 for d in .. ${subdirs} fixinc ; do
9085 if test $d != ..; then
9086 STARTDIR=`${PWDCMD-pwd}`
9088 for t in stage1 stage2 stage3 stage4 include
9091 $symbolic_link ../$t $t 2>/dev/null
9097 # Avoid having to add intl to our include paths.
9098 if test -f intl/libintl.h; then
9099 echo creating libintl.h
9100 echo '#include "intl/libintl.h"' >libintl.h
9105 chmod +x $CONFIG_STATUS
9106 rm -fr confdefs* $ac_clean_files
9107 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1