3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files"
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,rtlflag,gc,gcac;
38 default is misc,tree,gc,rtlflag"
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin"
44 --enable-c-mbchar enable multibyte characters for C and C++"
46 --enable-threads enable thread usage for target GCC
47 --enable-threads=LIB use LIB thread package for target GCC"
49 --enable-objc-gc enable the use of Boehm's garbage collector with
50 the GNU Objective-C runtime"
52 --with-dwarf2 force the default debug format to be DWARF 2"
54 --disable-shared don't provide a shared libgcc"
56 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
58 --enable-nls use Native Language Support (default)"
60 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
62 --disable-nls do not use Native Language Support"
64 --with-included-gettext use the GNU gettext library included here"
66 --disable-win32-registry
67 disable lookup of installation paths in the
68 Registry on Windows hosts
69 --enable-win32-registry enable registry lookup (default)
70 --enable-win32-registry=KEY
71 use KEY instead of GCC version as the last portion
74 --with-gc={simple,page} choose the garbage collection mechanism to use
77 --with-system-zlib use installed libz"
79 --enable-maintainer-mode
80 enable make rules and dependencies not useful
81 (and sometimes confusing) to the casual installer"
83 --enable-sjlj-exceptions
84 arrange to use setjmp/longjmp exception handling"
86 --enable-version-specific-runtime-libs
87 specify that runtime libraries should be
88 installed in a compiler-specific directory"
90 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
96 cache_file
=.
/config.cache
105 program_transform_name
=s
,x
,x
,
113 bindir
='${exec_prefix}/bin'
114 sbindir
='${exec_prefix}/sbin'
115 libexecdir
='${exec_prefix}/libexec'
116 datadir
='${prefix}/share'
117 sysconfdir
='${prefix}/etc'
118 sharedstatedir
='${prefix}/com'
119 localstatedir
='${prefix}/var'
120 libdir
='${exec_prefix}/lib'
121 includedir
='${prefix}/include'
122 oldincludedir
='/usr/include'
123 infodir
='${prefix}/info'
124 mandir
='${prefix}/man'
126 # Initialize some other variables.
129 SHELL
=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
145 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
149 # Accept the important Cygnus configure options, so we can diagnose typos.
153 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
155 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
156 bindir
="$ac_optarg" ;;
158 -build |
--build |
--buil |
--bui |
--bu)
160 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
161 build
="$ac_optarg" ;;
163 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
164 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
165 ac_prev
=cache_file
;;
166 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
167 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
168 cache_file
="$ac_optarg" ;;
170 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
172 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
174 datadir
="$ac_optarg" ;;
176 -disable-* |
--disable-*)
177 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* |
--enable-*)
186 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
199 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
200 |
--exec |
--exe |
--ex)
201 ac_prev
=exec_prefix
;;
202 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
203 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
204 |
--exec=* |
--exe=* |
--ex=*)
205 exec_prefix
="$ac_optarg" ;;
207 -gas |
--gas |
--ga |
--g)
208 # Obsolete; use --with-gas.
211 -help |
--help |
--hel |
--he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
266 -host |
--host |
--hos |
--ho)
268 -host=* |
--host=* |
--hos=* |
--ho=*)
271 -includedir |
--includedir |
--includedi |
--included |
--include \
272 |
--includ |
--inclu |
--incl |
--inc)
273 ac_prev
=includedir
;;
274 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
275 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
276 includedir
="$ac_optarg" ;;
278 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
280 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
281 infodir
="$ac_optarg" ;;
283 -libdir |
--libdir |
--libdi |
--libd)
285 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
286 libdir
="$ac_optarg" ;;
288 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
289 |
--libexe |
--libex |
--libe)
290 ac_prev
=libexecdir
;;
291 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
292 |
--libexe=* |
--libex=* |
--libe=*)
293 libexecdir
="$ac_optarg" ;;
295 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
296 |
--localstate |
--localstat |
--localsta |
--localst \
297 |
--locals |
--local |
--loca |
--loc |
--lo)
298 ac_prev
=localstatedir
;;
299 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
300 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
301 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
302 localstatedir
="$ac_optarg" ;;
304 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
306 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
307 mandir
="$ac_optarg" ;;
310 # Obsolete; use --without-fp.
313 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
317 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
318 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
321 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
322 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
323 |
--oldin |
--oldi |
--old |
--ol |
--o)
324 ac_prev
=oldincludedir
;;
325 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
326 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
327 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
328 oldincludedir
="$ac_optarg" ;;
330 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
332 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
333 prefix
="$ac_optarg" ;;
335 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
336 |
--program-pre |
--program-pr |
--program-p)
337 ac_prev
=program_prefix
;;
338 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
339 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
340 program_prefix
="$ac_optarg" ;;
342 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
343 |
--program-suf |
--program-su |
--program-s)
344 ac_prev
=program_suffix
;;
345 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
346 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
347 program_suffix
="$ac_optarg" ;;
349 -program-transform-name |
--program-transform-name \
350 |
--program-transform-nam |
--program-transform-na \
351 |
--program-transform-n |
--program-transform- \
352 |
--program-transform |
--program-transfor \
353 |
--program-transfo |
--program-transf \
354 |
--program-trans |
--program-tran \
355 |
--progr-tra |
--program-tr |
--program-t)
356 ac_prev
=program_transform_name
;;
357 -program-transform-name=* |
--program-transform-name=* \
358 |
--program-transform-nam=* |
--program-transform-na=* \
359 |
--program-transform-n=* |
--program-transform-=* \
360 |
--program-transform=* |
--program-transfor=* \
361 |
--program-transfo=* |
--program-transf=* \
362 |
--program-trans=* |
--program-tran=* \
363 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
364 program_transform_name
="$ac_optarg" ;;
366 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
367 |
-silent |
--silent |
--silen |
--sile |
--sil)
370 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
372 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
374 sbindir
="$ac_optarg" ;;
376 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
377 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
378 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
380 ac_prev
=sharedstatedir
;;
381 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
382 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
383 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
385 sharedstatedir
="$ac_optarg" ;;
387 -site |
--site |
--sit)
389 -site=* |
--site=* |
--sit=*)
392 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
394 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
395 srcdir
="$ac_optarg" ;;
397 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
398 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
399 ac_prev
=sysconfdir
;;
400 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
401 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
402 sysconfdir
="$ac_optarg" ;;
404 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
406 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
407 target
="$ac_optarg" ;;
409 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
412 -version |
--version |
--versio |
--versi |
--vers)
413 echo "configure generated by autoconf version 2.13"
417 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package
=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* |
--without-*)
430 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package
=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
439 # Obsolete; use --with-x.
442 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
443 |
--x-incl |
--x-inc |
--x-in |
--x-i)
444 ac_prev
=x_includes
;;
445 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
446 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
447 x_includes
="$ac_optarg" ;;
449 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
450 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
451 ac_prev
=x_libraries
;;
452 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
453 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
454 x_libraries
="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE
; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
504 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
505 |
--no-cr |
--no-c) ;;
506 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
507 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
508 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest
* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file
=tree.c
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted
=yes
536 # Try the directory containing this script, then its parent.
538 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
541 if test ! -r $srcdir/$ac_unique_file; then
545 ac_srcdir_defaulted
=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE
; then
559 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
561 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file
in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
575 echo "creating cache $cache_file"
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp
='$CPP $CPPFLAGS'
582 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling
=$ac_cv_prog_cc_cross
588 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
597 ac_n
= ac_c
='\c' ac_t
=
605 symbolic_link
='ln -s'
608 # Check for bogus environment variables.
609 # Test if LIBRARY_PATH contains the notation for the current directory
610 # since this would lead to problems installing/building glibc.
611 # LIBRARY_PATH contains the current directory if one of the following
613 # - one of the terminals (":" and ";") is the first or last sign
614 # - two terminals occur directly after each other
615 # - the path contains an element with a dot in it
616 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
617 echo "configure:618: checking LIBRARY_PATH variable" >&5
618 case ${LIBRARY_PATH} in
619 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
620 library_path_setting
="contains current directory"
623 library_path_setting
="ok"
626 echo "$ac_t""$library_path_setting" 1>&6
627 if test "$library_path_setting" != "ok"; then
628 { echo "configure: error:
629 *** LIBRARY_PATH shouldn't contain the current directory when
630 *** building gcc. Please change the environment variable
631 *** and run configure again." 1>&2; exit 1; }
634 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
635 # since this would lead to problems installing/building glibc.
636 # GCC_EXEC_PREFIX contains the current directory if one of the following
638 # - one of the terminals (":" and ";") is the first or last sign
639 # - two terminals occur directly after each other
640 # - the path contains an element with a dot in it
641 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
642 echo "configure:643: checking GCC_EXEC_PREFIX variable" >&5
643 case ${GCC_EXEC_PREFIX} in
644 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
645 gcc_exec_prefix_setting
="contains current directory"
648 gcc_exec_prefix_setting
="ok"
651 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
652 if test "$gcc_exec_prefix_setting" != "ok"; then
653 { echo "configure: error:
654 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
655 *** building gcc. Please change the environment variable
656 *** and run configure again." 1>&2; exit 1; }
659 # Check for additional parameters
662 # Check whether --with-gnu-ld or --without-gnu-ld was given.
663 if test "${with_gnu_ld+set}" = set; then
664 withval
="$with_gnu_ld"
665 gnu_ld_flag
="$with_gnu_ld"
671 # With pre-defined ld
672 # Check whether --with-ld or --without-ld was given.
673 if test "${with_ld+set}" = set; then
675 DEFAULT_LINKER
="$with_ld"
678 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
679 if test ! -x "$DEFAULT_LINKER"; then
680 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
681 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
684 cat >> confdefs.h
<<EOF
685 #define DEFAULT_LINKER "$DEFAULT_LINKER"
691 # Check whether --with-gnu-as or --without-gnu-as was given.
692 if test "${with_gnu_as+set}" = set; then
693 withval
="$with_gnu_as"
694 gas_flag
="$with_gnu_as"
700 # Check whether --with-as or --without-as was given.
701 if test "${with_as+set}" = set; then
703 DEFAULT_ASSEMBLER
="$with_as"
706 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
707 if test ! -x "$DEFAULT_ASSEMBLER"; then
708 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
709 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
712 cat >> confdefs.h
<<EOF
713 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
719 # Check whether --with-stabs or --without-stabs was given.
720 if test "${with_stabs+set}" = set; then
721 withval
="$with_stabs"
729 # Check whether --with-elf or --without-elf was given.
730 if test "${with_elf+set}" = set; then
738 # Specify the local prefix
740 # Check whether --with-local-prefix or --without-local-prefix was given.
741 if test "${with_local_prefix+set}" = set; then
742 withval
="$with_local_prefix"
744 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
746 *) local_prefix
=$with_local_prefix ;;
751 # Default local prefix if it is empty
752 if test x
$local_prefix = x
; then
753 local_prefix
=/usr
/local
756 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
757 # passed in by the toplevel make and thus we'd get different behavior
758 # depending on where we built the sources.
760 # Specify the g++ header file directory
761 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
762 if test "${with_gxx_include_dir+set}" = set; then
763 withval
="$with_gxx_include_dir"
765 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
767 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
772 if test x
${gcc_gxx_include_dir} = x
; then
773 if test x
${enable_version_specific_runtime_libs} = xyes
; then
774 gcc_gxx_include_dir
='${libsubdir}/include/g++'
776 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
777 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
781 # Determine whether or not multilibs are enabled.
782 # Check whether --enable-multilib or --disable-multilib was given.
783 if test "${enable_multilib+set}" = set; then
784 enableval
="$enable_multilib"
792 # Enable expensive internal checks
793 # Check whether --enable-checking or --disable-checking was given.
794 if test "${enable_checking+set}" = set; then
795 enableval
="$enable_checking"
801 ac_gc_always_collect
=
802 case "${enableval}" in
803 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
804 ac_rtlflag_checking
=1 ;;
806 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
807 set fnord
$enableval; shift
812 misc
) ac_checking
=1 ;;
813 tree
) ac_tree_checking
=1 ;;
814 rtlflag
) ac_rtlflag_checking
=1 ;;
815 rtl
) ac_rtl_checking
=1 ;;
816 gc
) ac_gc_checking
=1 ;;
817 gcac
) ac_gc_always_collect
=1 ;;
818 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
825 # Enable some checks by default for development versions of GCC
826 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
829 if test x
$ac_checking != x
; then
830 cat >> confdefs.h
<<\EOF
831 #define ENABLE_CHECKING 1
835 if test x
$ac_tree_checking != x
; then
836 cat >> confdefs.h
<<\EOF
837 #define ENABLE_TREE_CHECKING 1
841 if test x
$ac_rtl_checking != x
; then
842 cat >> confdefs.h
<<\EOF
843 #define ENABLE_RTL_CHECKING 1
847 if test x
$ac_rtlflag_checking != x
; then
848 cat >> confdefs.h
<<\EOF
849 #define ENABLE_RTL_FLAG_CHECKING 1
853 if test x
$ac_gc_checking != x
; then
854 cat >> confdefs.h
<<\EOF
855 #define ENABLE_GC_CHECKING 1
859 if test x
$ac_gc_always_collect != x
; then
860 cat >> confdefs.h
<<\EOF
861 #define ENABLE_GC_ALWAYS_COLLECT 1
866 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
867 if test "${with_cpp_install_dir+set}" = set; then
868 withval
="$with_cpp_install_dir"
869 if test x
$withval = xyes
; then
870 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
871 elif test x
$withval != xno
; then
872 cpp_install_dir
=$withval
877 # Enable Multibyte Characters for C/C++
878 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
879 if test "${enable_c_mbchar+set}" = set; then
880 enableval
="$enable_c_mbchar"
881 if test x
$enable_c_mbchar != xno
; then
882 cat >> confdefs.h
<<\EOF
883 #define MULTIBYTE_CHARS 1
891 # Pass with no value to take the default
892 # Pass with a value to specify a thread package
893 # Check whether --enable-threads or --disable-threads was given.
894 if test "${enable_threads+set}" = set; then
895 enableval
="$enable_threads"
902 enable_threads_flag
=$enable_threads
903 # Check if a valid thread package
904 case x
${enable_threads_flag} in
907 target_thread_file
='single'
911 target_thread_file
=''
913 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
914 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
915 target_thread_file
=$enable_threads_flag
918 echo "$enable_threads is an unknown thread package" 1>&2
923 # Check whether --enable-objc-gc or --disable-objc-gc was given.
924 if test "${enable_objc_gc+set}" = set; then
925 enableval
="$enable_objc_gc"
926 if test x
$enable_objc_gc = xno
; then
936 # Check whether --with-dwarf2 or --without-dwarf2 was given.
937 if test "${with_dwarf2+set}" = set; then
938 withval
="$with_dwarf2"
939 dwarf2
="$with_dwarf2"
945 # Check whether --enable-shared or --disable-shared was given.
946 if test "${enable_shared+set}" = set; then
947 enableval
="$enable_shared"
949 case $enable_shared in
953 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
954 for pkg
in $enableval; do
955 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
969 # Determine the host, build, and target systems
971 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
972 if test -f $ac_dir/install-sh
; then
974 ac_install_sh
="$ac_aux_dir/install-sh -c"
976 elif test -f $ac_dir/install.sh
; then
978 ac_install_sh
="$ac_aux_dir/install.sh -c"
982 if test -z "$ac_aux_dir"; then
983 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
985 ac_config_guess
=$ac_aux_dir/config.guess
986 ac_config_sub
=$ac_aux_dir/config.sub
987 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
990 # Do some error checking and defaulting for the host and target type.
992 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
995 # 1. You are not allowed to specify --host, --target, and nonopt at the
997 # 2. Host defaults to nonopt.
998 # 3. If nonopt is not specified, then host defaults to the current host,
999 # as determined by config.guess.
1000 # 4. Target and build default to nonopt.
1001 # 5. If nonopt is not specified, then target and build default to host.
1003 # The aliases save the names the user supplied, while $host etc.
1004 # will get canonicalized.
1005 case $host---$target---$nonopt in
1006 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1007 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1011 # Make sure we can run config.sub.
1012 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1013 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1016 echo $ac_n "checking host system type""... $ac_c" 1>&6
1017 echo "configure:1018: checking host system type" >&5
1020 case "$host_alias" in
1024 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1025 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1027 *) host_alias
=$nonopt ;;
1031 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1032 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1033 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1034 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1035 echo "$ac_t""$host" 1>&6
1037 echo $ac_n "checking target system type""... $ac_c" 1>&6
1038 echo "configure:1039: checking target system type" >&5
1040 target_alias
=$target
1041 case "$target_alias" in
1044 NONE
) target_alias
=$host_alias ;;
1045 *) target_alias
=$nonopt ;;
1049 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1050 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1053 echo "$ac_t""$target" 1>&6
1055 echo $ac_n "checking build system type""... $ac_c" 1>&6
1056 echo "configure:1057: checking build system type" >&5
1059 case "$build_alias" in
1062 NONE
) build_alias
=$host_alias ;;
1063 *) build_alias
=$nonopt ;;
1067 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1068 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071 echo "$ac_t""$build" 1>&6
1073 test "$host_alias" != "$target_alias" &&
1074 test "$program_prefix$program_suffix$program_transform_name" = \
1076 program_prefix
=${target_alias}-
1079 # Set program_transform_name
1080 if test "$program_transform_name" = s
,x
,x
,; then
1081 program_transform_name
=
1083 # Double any \ or $. echo might interpret backslashes.
1084 cat <<\EOF_SED
> conftestsed
1085 s
,\\,\\\\,g
; s
,\$
,$$
,g
1087 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1090 test "$program_prefix" != NONE
&&
1091 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1092 # Use a double $ so make ignores it.
1093 test "$program_suffix" != NONE
&&
1094 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1096 # sed with no file args requires a program.
1097 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1100 # Find the native compiler
1101 # Extract the first word of "gcc", so it can be a program name with args.
1102 set dummy gcc
; ac_word
=$2
1103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1104 echo "configure:1105: checking for $ac_word" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 if test -n "$CC"; then
1109 ac_cv_prog_CC
="$CC" # Let the user override the test.
1111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1113 for ac_dir
in $ac_dummy; do
1114 test -z "$ac_dir" && ac_dir
=.
1115 if test -f $ac_dir/$ac_word; then
1124 if test -n "$CC"; then
1125 echo "$ac_t""$CC" 1>&6
1127 echo "$ac_t""no" 1>&6
1130 if test -z "$CC"; then
1131 # Extract the first word of "cc", so it can be a program name with args.
1132 set dummy cc
; ac_word
=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 if test -n "$CC"; then
1139 ac_cv_prog_CC
="$CC" # Let the user override the test.
1141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1144 for ac_dir
in $ac_dummy; do
1145 test -z "$ac_dir" && ac_dir
=.
1146 if test -f $ac_dir/$ac_word; then
1147 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1148 ac_prog_rejected
=yes
1156 if test $ac_prog_rejected = yes; then
1157 # We found a bogon in the path, so make sure we never use it.
1158 set dummy
$ac_cv_prog_CC
1160 if test $# -gt 0; then
1161 # We chose a different compiler from the bogus one.
1162 # However, it has the same basename, so the bogon will be chosen
1163 # first if we set CC to just the basename; use the full file name.
1165 set dummy
"$ac_dir/$ac_word" "$@"
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 case "`uname -s`" in
1182 # Extract the first word of "cl", so it can be a program name with args.
1183 set dummy cl
; ac_word
=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 if test -n "$CC"; then
1190 ac_cv_prog_CC
="$CC" # Let the user override the test.
1192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1194 for ac_dir
in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir
=.
1196 if test -f $ac_dir/$ac_word; then
1205 if test -n "$CC"; then
1206 echo "$ac_t""$CC" 1>&6
1208 echo "$ac_t""no" 1>&6
1213 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1216 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1221 ac_cpp
='$CPP $CPPFLAGS'
1222 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1223 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1224 cross_compiling
=$ac_cv_prog_cc_cross
1226 cat > conftest.
$ac_ext << EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1233 if { (eval echo configure
:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1234 ac_cv_prog_cc_works
=yes
1235 # If we can't run a trivial program, we are probably using a cross compiler.
1236 if (.
/conftest
; exit) 2>/dev
/null
; then
1237 ac_cv_prog_cc_cross
=no
1239 ac_cv_prog_cc_cross
=yes
1242 echo "configure: failed program was:" >&5
1243 cat conftest.
$ac_ext >&5
1244 ac_cv_prog_cc_works
=no
1248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1249 ac_cpp
='$CPP $CPPFLAGS'
1250 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1251 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1252 cross_compiling
=$ac_cv_prog_cc_cross
1254 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1255 if test $ac_cv_prog_cc_works = no
; then
1256 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1258 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1260 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1261 cross_compiling
=$ac_cv_prog_cc_cross
1263 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1264 echo "configure:1265: checking whether we are using GNU C" >&5
1265 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 cat > conftest.c
<<EOF
1273 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1280 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1282 if test $ac_cv_prog_gcc = yes; then
1288 ac_test_CFLAGS
="${CFLAGS+set}"
1289 ac_save_CFLAGS
="$CFLAGS"
1291 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1292 echo "configure:1293: checking whether ${CC-cc} accepts -g" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 echo 'void f(){}' > conftest.c
1297 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1306 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1307 if test "$ac_test_CFLAGS" = set; then
1308 CFLAGS
="$ac_save_CFLAGS"
1309 elif test $ac_cv_prog_cc_g = yes; then
1310 if test "$GCC" = yes; then
1316 if test "$GCC" = yes; then
1323 if test "x$CC" != xcc
; then
1324 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether $CC and cc understand -c and -o together" >&5
1327 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether cc understands -c and -o together" >&5
1330 set dummy
$CC; ac_cc
="`echo $2 |
1331 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1332 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 echo 'foo(){}' > conftest.c
1336 # Make sure it works both with $CC and with simple cc.
1337 # We do the test twice because some compilers refuse to overwrite an
1338 # existing .o file with -o, though they will create one.
1339 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1340 if { (eval echo configure
:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1341 test -f conftest.o
&& { (eval echo configure
:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1343 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1344 if test "x$CC" != xcc
; then
1345 # Test first that cc exists at all.
1346 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1347 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1348 if { (eval echo configure
:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1349 test -f conftest.o
&& { (eval echo configure
:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1354 # cc exists but doesn't like -o.
1355 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1360 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1365 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1366 echo "$ac_t""yes" 1>&6
1368 echo "$ac_t""no" 1>&6
1369 cat >> confdefs.h
<<\EOF
1370 #define NO_MINUS_C_MINUS_O 1
1375 # autoconf is lame and doesn't give us any substitution variable for this.
1376 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1377 NO_MINUS_C_MINUS_O
=yes
1379 OUTPUT_OPTION
='-o $@'
1384 # See if GNAT has been installed
1385 if test $host != $build; then
1386 ac_tool_prefix
=${host_alias}-
1392 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1393 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1395 echo "configure:1396: checking for $ac_word" >&5
1396 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -n "$GNATBIND"; then
1400 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1402 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1404 for ac_dir
in $ac_dummy; do
1405 test -z "$ac_dir" && ac_dir
=.
1406 if test -f $ac_dir/$ac_word; then
1407 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1414 GNATBIND
="$ac_cv_prog_GNATBIND"
1415 if test -n "$GNATBIND"; then
1416 echo "$ac_t""$GNATBIND" 1>&6
1418 echo "$ac_t""no" 1>&6
1422 if test -z "$ac_cv_prog_GNATBIND"; then
1423 if test -n "$ac_tool_prefix"; then
1424 # Extract the first word of "gnatbind", so it can be a program name with args.
1425 set dummy gnatbind
; ac_word
=$2
1426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1427 echo "configure:1428: checking for $ac_word" >&5
1428 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 if test -n "$GNATBIND"; then
1432 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1434 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1436 for ac_dir
in $ac_dummy; do
1437 test -z "$ac_dir" && ac_dir
=.
1438 if test -f $ac_dir/$ac_word; then
1439 ac_cv_prog_GNATBIND
="gnatbind"
1444 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1447 GNATBIND
="$ac_cv_prog_GNATBIND"
1448 if test -n "$GNATBIND"; then
1449 echo "$ac_t""$GNATBIND" 1>&6
1451 echo "$ac_t""no" 1>&6
1459 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1460 echo "configure:1461: checking for compiler driver that understands Ada" >&5
1461 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat >conftest.adb
<<EOF
1465 procedure conftest is begin null; end conftest;
1468 # Have to do ac_tool_prefix and user overrides by hand.
1471 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
1472 ${ac_tool_prefix}$user_cc $user_cc \
1473 ${ac_tool_prefix}gcc gcc \
1474 ${ac_tool_prefix}cc cc \
1475 ${ac_tool_prefix}gnatgcc gnatgcc \
1476 ${ac_tool_prefix}gnatcc gnatcc \
1477 ${ac_tool_prefix}adagcc adagcc \
1478 ${ac_tool_prefix}adacc adacc
; do
1479 # There is a bug in all released versions of GCC which causes the
1480 # driver to exit successfully when the appropriate language module
1481 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1482 # Therefore we must check for the error message as well as an
1483 # unsuccessful exit.
1484 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1485 if test x
"$errors" = x
; then
1486 gcc_cv_prog_adac
=$cand
1493 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1494 ADAC
=$gcc_cv_prog_adac
1497 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1504 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 save_CFLAGS
="$CFLAGS"
1510 CFLAGS
="-Wno-long-long"
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1519 if { (eval echo configure
:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1521 ac_cv_prog_cc_no_long_long
=yes
1523 echo "configure: failed program was:" >&5
1524 cat conftest.
$ac_ext >&5
1526 ac_cv_prog_cc_no_long_long
=no
1529 CFLAGS
="$save_CFLAGS"
1532 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1534 if test x
$have_gnat != xno
; then
1535 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1536 echo "configure:1537: checking whether ${ADAC} accepts -Wno-long-long" >&5
1537 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 cat >conftest.adb
<<EOF
1541 procedure conftest is begin null; end conftest;
1543 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1544 ac_cv_prog_adac_no_long_long
=yes
1546 ac_cv_prog_adac_no_long_long
=no
1551 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1553 ac_cv_prog_adac_no_long_long
=yes
1557 if test $ac_cv_prog_cc_no_long_long = yes && \
1558 test $ac_cv_prog_adac_no_long_long = yes ; then
1559 strict1_warn
="-pedantic -Wno-long-long"
1563 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1564 echo "configure:1565: checking how to run the C preprocessor" >&5
1565 # On Suns, sometimes $CPP names a directory.
1566 if test -n "$CPP" && test -d "$CPP"; then
1569 if test -z "$CPP"; then
1570 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 # This must be in double quotes, not single quotes, because CPP may get
1574 # substituted into the Makefile and "${CC-cc}" will confuse make.
1576 # On the NeXT, cc -E runs the code through the compiler's parser,
1577 # not just through cpp.
1578 cat > conftest.
$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1584 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure
:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 CPP
="${CC-cc} -E -traditional-cpp"
1595 cat > conftest.
$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1601 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1602 { (eval echo configure
:1603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1603 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1604 if test -z "$ac_err"; then
1608 echo "configure: failed program was:" >&5
1609 cat conftest.
$ac_ext >&5
1611 CPP
="${CC-cc} -nologo -E"
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1618 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1619 { (eval echo configure
:1620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1620 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1621 if test -z "$ac_err"; then
1625 echo "configure: failed program was:" >&5
1626 cat conftest.
$ac_ext >&5
1635 ac_cv_prog_CPP
="$CPP"
1637 CPP
="$ac_cv_prog_CPP"
1639 ac_cv_prog_CPP
="$CPP"
1641 echo "$ac_t""$CPP" 1>&6
1643 echo $ac_n "checking for inline""... $ac_c" 1>&6
1644 echo "configure:1645: checking for inline" >&5
1645 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1649 for ac_kw
in inline __inline__ __inline
; do
1650 cat > conftest.
$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1658 if { (eval echo configure
:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1660 ac_cv_c_inline
=$ac_kw; break
1662 echo "configure: failed program was:" >&5
1663 cat conftest.
$ac_ext >&5
1670 echo "$ac_t""$ac_cv_c_inline" 1>&6
1671 case "$ac_cv_c_inline" in
1673 no
) cat >> confdefs.h
<<\EOF
1677 *) cat >> confdefs.h
<<EOF
1678 #define inline $ac_cv_c_inline
1683 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1684 echo "configure:1685: checking for volatile" >&5
1685 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.
$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1696 if { (eval echo configure
:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1698 gcc_cv_c_volatile
=yes
1700 echo "configure: failed program was:" >&5
1701 cat conftest.
$ac_ext >&5
1703 gcc_cv_c_volatile
=no
1708 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1709 if test $gcc_cv_c_volatile = yes ; then
1710 cat >> confdefs.h
<<\EOF
1711 #define HAVE_VOLATILE 1
1717 echo $ac_n "checking for long double""... $ac_c" 1>&6
1718 echo "configure:1719: checking for long double" >&5
1719 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 if test "$GCC" = yes; then
1723 gcc_cv_c_long_double
=yes
1725 cat > conftest.
$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1730 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1731 long double foo = 0.0;
1732 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1733 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1736 if { (eval echo configure
:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1738 gcc_cv_c_long_double
=yes
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 gcc_cv_c_long_double
=no
1749 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1750 if test $gcc_cv_c_long_double = yes; then
1751 cat >> confdefs.h
<<\EOF
1752 #define HAVE_LONG_DOUBLE 1
1757 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1758 echo "configure:1759: checking for long long int" >&5
1759 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1770 if { (eval echo configure
:1771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1772 ac_cv_c_long_long
=yes
1774 echo "configure: failed program was:" >&5
1775 cat conftest.
$ac_ext >&5
1777 ac_cv_c_long_long
=no
1782 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1783 if test $ac_cv_c_long_long = yes; then
1784 cat >> confdefs.h
<<\EOF
1785 #define HAVE_LONG_LONG 1
1789 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1790 echo "configure:1791: checking for __int64" >&5
1791 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 cat > conftest.
$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1802 if { (eval echo configure
:1803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1806 echo "configure: failed program was:" >&5
1807 cat conftest.
$ac_ext >&5
1814 echo "$ac_t""$ac_cv_c___int64" 1>&6
1815 if test $ac_cv_c___int64 = yes; then
1816 cat >> confdefs.h
<<\EOF
1817 #define HAVE___INT64 1
1822 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1823 echo "configure:1824: checking for built-in _Bool" >&5
1824 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 cat > conftest.
$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1835 if { (eval echo configure
:1836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1839 echo "configure: failed program was:" >&5
1840 cat conftest.
$ac_ext >&5
1848 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1849 if test $gcc_cv_c__bool = yes; then
1850 cat >> confdefs.h
<<\EOF
1851 #define HAVE__BOOL 1
1857 # sizeof(char) is 1 by definition.
1858 echo $ac_n "checking size of short""... $ac_c" 1>&6
1859 echo "configure:1860: checking size of short" >&5
1860 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1864 cat > conftest.
$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 #include "confdefs.h"
1868 #include <sys/types.h>
1872 switch (0) case 0: case (sizeof (short) == $ac_size):;
1875 if { (eval echo configure
:1876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1877 ac_cv_sizeof_short
=$ac_size
1879 echo "configure: failed program was:" >&5
1880 cat conftest.
$ac_ext >&5
1883 if test x
$ac_cv_sizeof_short != x
; then break; fi
1888 if test x
$ac_cv_sizeof_short = x
; then
1889 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1891 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1892 cat >> confdefs.h
<<EOF
1893 #define SIZEOF_SHORT $ac_cv_sizeof_short
1897 echo $ac_n "checking size of int""... $ac_c" 1>&6
1898 echo "configure:1899: checking size of int" >&5
1899 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1903 cat > conftest.
$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1906 #include "confdefs.h"
1907 #include <sys/types.h>
1911 switch (0) case 0: case (sizeof (int) == $ac_size):;
1914 if { (eval echo configure
:1915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1916 ac_cv_sizeof_int
=$ac_size
1918 echo "configure: failed program was:" >&5
1919 cat conftest.
$ac_ext >&5
1922 if test x
$ac_cv_sizeof_int != x
; then break; fi
1927 if test x
$ac_cv_sizeof_int = x
; then
1928 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1930 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1931 cat >> confdefs.h
<<EOF
1932 #define SIZEOF_INT $ac_cv_sizeof_int
1936 echo $ac_n "checking size of long""... $ac_c" 1>&6
1937 echo "configure:1938: checking size of long" >&5
1938 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1942 cat > conftest.
$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 #include "confdefs.h"
1946 #include <sys/types.h>
1950 switch (0) case 0: case (sizeof (long) == $ac_size):;
1953 if { (eval echo configure
:1954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1955 ac_cv_sizeof_long
=$ac_size
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1961 if test x
$ac_cv_sizeof_long != x
; then break; fi
1966 if test x
$ac_cv_sizeof_long = x
; then
1967 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1969 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1970 cat >> confdefs.h
<<EOF
1971 #define SIZEOF_LONG $ac_cv_sizeof_long
1975 if test $ac_cv_c_long_long = yes; then
1976 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1977 echo "configure:1978: checking size of long long" >&5
1978 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1982 cat > conftest.
$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985 #include "confdefs.h"
1986 #include <sys/types.h>
1990 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1993 if { (eval echo configure
:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1995 ac_cv_sizeof_long_long
=$ac_size
1997 echo "configure: failed program was:" >&5
1998 cat conftest.
$ac_ext >&5
2001 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2006 if test x
$ac_cv_sizeof_long_long = x
; then
2007 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2009 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2010 cat >> confdefs.h
<<EOF
2011 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2016 if test $ac_cv_c___int64 = yes; then
2017 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
2018 echo "configure:2019: checking size of __int64" >&5
2019 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 #include "confdefs.h"
2027 #include <sys/types.h>
2031 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
2034 if { (eval echo configure
:2035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2036 ac_cv_sizeof___int64
=$ac_size
2038 echo "configure: failed program was:" >&5
2039 cat conftest.
$ac_ext >&5
2042 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
2047 if test x
$ac_cv_sizeof___int64 = x
; then
2048 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
2050 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
2051 cat >> confdefs.h
<<EOF
2052 #define SIZEOF___INT64 $ac_cv_sizeof___int64
2058 echo $ac_n "checking execution character set""... $ac_c" 1>&6
2059 echo "configure:2060: checking execution character set" >&5
2060 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2067 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2072 egrep "ASCII" >/dev
/null
2>&1; then
2074 ac_cv_c_charset
=ASCII
2078 if test x
${ac_cv_c_charset+set} != xset
; then
2079 cat > conftest.
$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2083 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2088 egrep "EBCDIC" >/dev
/null
2>&1; then
2090 ac_cv_c_charset
=EBCDIC
2095 if test x
${ac_cv_c_charset+set} != xset
; then
2096 ac_cv_c_charset
=unknown
2100 echo "$ac_t""$ac_cv_c_charset" 1>&6
2101 if test $ac_cv_c_charset = unknown
; then
2102 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
2103 elif test $ac_cv_c_charset = EBCDIC
; then
2104 cat >> confdefs.h
<<\EOF
2105 #define HOST_EBCDIC 1
2110 # If the native compiler is GCC, we can enable warnings even in stage1.
2111 # That's useful for people building cross-compilers, or just running a
2114 if test "x$GCC" = "xyes"; then
2115 warn_cflags
='$(GCC_WARN_CFLAGS)'
2119 # Stage specific cflags for build.
2123 if test x
$GCC = xyes
2125 stage1_cflags
="-Wa,-J"
2131 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
2132 # sources; use -no-cpp-precomp to get to GNU cpp.
2133 # Apple's GCC has bugs in designated initializer handling, so disable
2135 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
2140 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2141 echo "configure:2142: checking whether ${MAKE-make} sets \${MAKE}" >&5
2142 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2143 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftestmake
<<\EOF
2148 @
echo 'ac_maketemp="${MAKE}"'
2150 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2151 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2152 if test -n "$ac_maketemp"; then
2153 eval ac_cv_prog_make_
${ac_make}_set
=yes
2155 eval ac_cv_prog_make_
${ac_make}_set
=no
2159 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2163 echo "$ac_t""no" 1>&6
2164 SET_MAKE
="MAKE=${MAKE-make}"
2168 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether a default assembler was specified" >&5
2170 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2171 if test x
"$gas_flag" = x
"no"; then
2172 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2174 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2177 echo "$ac_t""no" 1>&6
2180 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether a default linker was specified" >&5
2182 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2183 if test x
"$gnu_ld_flag" = x
"no"; then
2184 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2186 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2189 echo "$ac_t""no" 1>&6
2192 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2193 echo "configure:2194: checking for GNU C library" >&5
2194 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.
$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 #include <features.h>
2203 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2204 #error Not a GNU C library system
2208 if { (eval echo configure
:2209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2220 echo "$ac_t""$gcc_cv_glibc" 1>&6
2221 if test $gcc_cv_glibc = yes; then
2222 cat >> confdefs.h
<<\EOF
2223 #define _GNU_SOURCE 1
2228 # Find some useful tools
2229 for ac_prog
in gawk mawk nawk
awk
2231 # Extract the first word of "$ac_prog", so it can be a program name with args.
2232 set dummy
$ac_prog; ac_word
=$2
2233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_word" >&5
2235 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 if test -n "$AWK"; then
2239 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2243 for ac_dir
in $ac_dummy; do
2244 test -z "$ac_dir" && ac_dir
=.
2245 if test -f $ac_dir/$ac_word; then
2246 ac_cv_prog_AWK
="$ac_prog"
2253 AWK
="$ac_cv_prog_AWK"
2254 if test -n "$AWK"; then
2255 echo "$ac_t""$AWK" 1>&6
2257 echo "$ac_t""no" 1>&6
2260 test -n "$AWK" && break
2263 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2264 echo "configure:2265: checking whether ln works" >&5
2265 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 rm -f conftestdata_t
2269 echo >conftestdata_f
2270 if ln conftestdata_f conftestdata_t
2>/dev
/null
2274 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2276 gcc_cv_prog_LN
="ln -s"
2281 rm -f conftestdata_f conftestdata_t
2284 LN
="$gcc_cv_prog_LN"
2285 if test "$gcc_cv_prog_LN" = "ln"; then
2286 echo "$ac_t""yes" 1>&6
2288 if test "$gcc_cv_prog_LN" = "ln -s"; then
2289 echo "$ac_t""no, using ln -s" 1>&6
2291 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2295 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2296 echo "configure:2297: checking whether ln -s works" >&5
2297 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 rm -f conftestdata_t
2301 echo >conftestdata_f
2302 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2304 gcc_cv_prog_LN_S
="ln -s"
2306 if ln conftestdata_f conftestdata_t
2>/dev
/null
2313 rm -f conftestdata_f conftestdata_t
2316 LN_S
="$gcc_cv_prog_LN_S"
2317 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2318 echo "$ac_t""yes" 1>&6
2320 if test "$gcc_cv_prog_LN_S" = "ln"; then
2321 echo "$ac_t""no, using ln" 1>&6
2323 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2327 # Extract the first word of "ranlib", so it can be a program name with args.
2328 set dummy ranlib
; ac_word
=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 if test -n "$RANLIB"; then
2335 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2337 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2339 for ac_dir
in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir
=.
2341 if test -f $ac_dir/$ac_word; then
2342 ac_cv_prog_RANLIB
="ranlib"
2347 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2350 RANLIB
="$ac_cv_prog_RANLIB"
2351 if test -n "$RANLIB"; then
2352 echo "$ac_t""$RANLIB" 1>&6
2354 echo "$ac_t""no" 1>&6
2357 # Find a good install program. We prefer a C program (faster),
2358 # so one script is as good as another. But avoid the broken or
2359 # incompatible versions:
2360 # SysV /etc/install, /usr/sbin/install
2361 # SunOS /usr/etc/install
2362 # IRIX /sbin/install
2364 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2365 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2366 # ./install, which can be erroneously created by make from ./install.sh.
2367 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2368 echo "configure:2369: checking for a BSD compatible install" >&5
2369 if test -z "$INSTALL"; then
2370 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2374 for ac_dir
in $PATH; do
2375 # Account for people who put trailing slashes in PATH elements.
2377 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2379 # OSF1 and SCO ODT 3.0 have their own names for install.
2380 for ac_prog
in ginstall scoinst
install; do
2381 if test -f $ac_dir/$ac_prog; then
2382 if test $ac_prog = install &&
2383 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2384 # AIX install. It has an incompatible calling convention.
2385 # OSF/1 installbsd also uses dspmsg, but is usable.
2388 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2399 if test "${ac_cv_path_install+set}" = set; then
2400 INSTALL
="$ac_cv_path_install"
2402 # As a last resort, use the slow shell script. We don't cache a
2403 # path for INSTALL within a source directory, because that will
2404 # break other packages using the cache if that directory is
2405 # removed, or if the path is relative.
2406 INSTALL
="$ac_install_sh"
2409 echo "$ac_t""$INSTALL" 1>&6
2411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412 # It thinks the first close brace ends the variable substitution.
2413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2415 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2418 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2419 echo "configure:2420: checking for ANSI C header files" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.
$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2431 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure
:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 ac_cv_header_stdc
=yes
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 ac_cv_header_stdc
=no
2446 if test $ac_cv_header_stdc = yes; then
2447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2448 cat > conftest.
$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2454 egrep "memchr" >/dev
/null
2>&1; then
2458 ac_cv_header_stdc
=no
2464 if test $ac_cv_header_stdc = yes; then
2465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2472 egrep "free" >/dev
/null
2>&1; then
2476 ac_cv_header_stdc
=no
2482 if test $ac_cv_header_stdc = yes; then
2483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2484 if test "$cross_compiling" = yes; then
2487 cat > conftest.
$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2491 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2492 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2494 int main () { int i; for (i = 0; i < 256; i++)
2495 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2499 if { (eval echo configure
:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2503 echo "configure: failed program was:" >&5
2504 cat conftest.
$ac_ext >&5
2506 ac_cv_header_stdc
=no
2514 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2515 if test $ac_cv_header_stdc = yes; then
2516 cat >> confdefs.h
<<\EOF
2517 #define STDC_HEADERS 1
2522 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2523 echo "configure:2524: checking whether time.h and sys/time.h may both be included" >&5
2524 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 cat > conftest.
$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 #include <sys/types.h>
2531 #include <sys/time.h>
2537 if { (eval echo configure
:2538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2539 ac_cv_header_time
=yes
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2544 ac_cv_header_time
=no
2549 echo "$ac_t""$ac_cv_header_time" 1>&6
2550 if test $ac_cv_header_time = yes; then
2551 cat >> confdefs.h
<<\EOF
2552 #define TIME_WITH_SYS_TIME 1
2557 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2558 echo "configure:2559: checking for working stdbool.h" >&5
2559 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 cat > conftest.
$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2565 #include <stdbool.h>
2570 if { (eval echo configure
:2571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2572 ac_cv_header_stdbool_h
=yes
2574 echo "configure: failed program was:" >&5
2575 cat conftest.
$ac_ext >&5
2577 ac_cv_header_stdbool_h
=no
2582 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2583 if test $ac_cv_header_stdbool_h = yes; then
2584 cat >> confdefs.h
<<\EOF
2585 #define HAVE_STDBOOL_H 1
2590 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2591 echo "configure:2592: checking whether string.h and strings.h may both be included" >&5
2592 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.
$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2599 #include <strings.h>
2604 if { (eval echo configure
:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2606 gcc_cv_header_string
=yes
2608 echo "configure: failed program was:" >&5
2609 cat conftest.
$ac_ext >&5
2611 gcc_cv_header_string
=no
2616 echo "$ac_t""$gcc_cv_header_string" 1>&6
2617 if test $gcc_cv_header_string = yes; then
2618 cat >> confdefs.h
<<\EOF
2619 #define STRING_WITH_STRINGS 1
2624 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2625 echo "configure:2626: checking for sys/wait.h that is POSIX.1 compatible" >&5
2626 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.
$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <sys/types.h>
2633 #include <sys/wait.h>
2635 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2638 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2643 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2646 if { (eval echo configure
:2647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2648 ac_cv_header_sys_wait_h
=yes
2650 echo "configure: failed program was:" >&5
2651 cat conftest.
$ac_ext >&5
2653 ac_cv_header_sys_wait_h
=no
2658 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2659 if test $ac_cv_header_sys_wait_h = yes; then
2660 cat >> confdefs.h
<<\EOF
2661 #define HAVE_SYS_WAIT_H 1
2666 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2667 fcntl.h unistd.h sys
/file.h sys
/time.h \
2668 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2669 direct.h malloc.h langinfo.h
2671 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_hdr" >&5
2674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2682 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure
:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2687 eval "ac_cv_header_$ac_safe=yes"
2690 echo "configure: failed program was:" >&5
2691 cat conftest.
$ac_ext >&5
2693 eval "ac_cv_header_$ac_safe=no"
2697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2698 echo "$ac_t""yes" 1>&6
2699 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2700 cat >> confdefs.h
<<EOF
2701 #define $ac_tr_hdr 1
2705 echo "$ac_t""no" 1>&6
2710 # Check for thread headers.
2711 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2712 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2713 echo "configure:2714: checking for thread.h" >&5
2714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 cat > conftest.
$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2722 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure
:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2727 eval "ac_cv_header_$ac_safe=yes"
2730 echo "configure: failed program was:" >&5
2731 cat conftest.
$ac_ext >&5
2733 eval "ac_cv_header_$ac_safe=no"
2737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2738 echo "$ac_t""yes" 1>&6
2741 echo "$ac_t""no" 1>&6
2745 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2747 echo "configure:2748: checking for pthread.h" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 cat > conftest.
$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <pthread.h>
2756 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure
:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2761 eval "ac_cv_header_$ac_safe=yes"
2764 echo "configure: failed program was:" >&5
2765 cat conftest.
$ac_ext >&5
2767 eval "ac_cv_header_$ac_safe=no"
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2775 echo "$ac_t""no" 1>&6
2780 # These tests can't be done till we know if we have limits.h.
2781 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2782 echo "configure:2783: checking for CHAR_BIT" >&5
2783 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 cat > conftest.
$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2789 #ifdef HAVE_LIMITS_H
2796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2797 egrep "found" >/dev
/null
2>&1; then
2799 gcc_cv_decl_char_bit
=yes
2802 gcc_cv_decl_char_bit
=no
2809 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2810 if test $gcc_cv_decl_char_bit = no
; then
2811 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2812 echo "configure:2813: checking number of bits in a byte" >&5
2813 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2818 while test $i -lt 65; do
2819 cat > conftest.
$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2825 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2826 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2830 if { (eval echo configure
:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 gcc_cv_c_nbby
=$i; break
2834 echo "configure: failed program was:" >&5
2835 cat conftest.
$ac_ext >&5
2840 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2844 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2845 if test $gcc_cv_c_nbby = failed
; then
2846 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2848 cat >> confdefs.h
<<EOF
2849 #define CHAR_BIT $gcc_cv_c_nbby
2854 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2855 echo "configure:2856: checking byte ordering" >&5
2856 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 ac_cv_c_compile_endian
=unknown
2862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2863 ac_cpp
='$CPP $CPPFLAGS'
2864 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2865 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2866 cross_compiling
=$ac_cv_prog_cc_cross
2868 cat > conftest.
$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2872 #ifdef HAVE_LIMITS_H
2873 # include <limits.h>
2875 /* This structure must have no internal padding. */
2877 char prefix[sizeof "\nendian:" - 1];
2882 #if SIZEOF_SHORT == 4
2883 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2885 ('A' << CHAR_BIT) | 'B',
2889 if { (eval echo configure
:2890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2891 sed 's/^[0-7]*[ ]*/ /
2894 s/ [0-9][0-9][0-9]/./g
2900 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2901 ac_cv_c_compile_endian
=big-endian
2902 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2903 ac_cv_c_compile_endian
=little-endian
2908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2909 ac_cpp
='$CPP $CPPFLAGS'
2910 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2911 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2912 cross_compiling
=$ac_cv_prog_cc_cross
2917 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2918 if test $ac_cv_c_compile_endian = unknown
; then
2919 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2920 elif test $ac_cv_c_compile_endian = big-endian
; then
2921 cat >> confdefs.h
<<\EOF
2922 #define HOST_WORDS_BIG_ENDIAN 1
2927 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2928 echo "configure:2929: checking floating point format" >&5
2929 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2935 ac_cpp
='$CPP $CPPFLAGS'
2936 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2937 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2938 cross_compiling
=$ac_cv_prog_cc_cross
2940 cat > conftest.
$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 /* This will not work unless sizeof(double) == 8. */
2944 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2946 /* This structure must have no internal padding. */
2947 struct possibility {
2953 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2954 struct possibility table [] =
2956 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2957 C( 3.53802595280598432000e+18), /* D__float - VAX */
2958 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2959 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2960 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2963 if { (eval echo configure
:2964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2965 sed 's/^[0-7]*[ ]*/ /
2968 s/ [0-9][0-9][0-9]/./g
2974 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2975 ac_cv_c_float_format
='IEEE (big-endian)'
2976 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2977 ac_cv_c_float_format
='IEEE (big-endian)'
2978 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2979 ac_cv_c_float_format
='IEEE (little-endian)'
2980 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2981 ac_cv_c_float_format
='IEEE (little-endian)'
2982 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2983 ac_cv_c_float_format
='VAX D-float'
2984 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2985 ac_cv_c_float_format
='PDP-10'
2986 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2987 ac_cv_c_float_format
='IBM 370 hex'
2989 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
2992 { echo "configure: error: compile failed" 1>&2; exit 1; }
2996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2997 ac_cpp
='$CPP $CPPFLAGS'
2998 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2999 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3000 cross_compiling
=$ac_cv_prog_cc_cross
3005 echo "$ac_t""$ac_cv_c_float_format" 1>&6
3006 # IEEE is the default format. If the float endianness isn't the same
3007 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
3008 # (which is a tristate: yes, no, default). This is only an issue with
3009 # IEEE; the other formats are only supported by a few machines each,
3010 # all with the same endianness.
3013 case $ac_cv_c_float_format in
3014 'IEEE (big-endian)' )
3015 if test $ac_cv_c_compile_endian = little-endian
; then
3019 'IEEE (little-endian)' )
3020 if test $ac_cv_c_compile_endian = big-endian
; then
3025 format
=VAX_FLOAT_FORMAT
3028 format
=PDP10_FLOAT_FORMAT
3031 format
=IBM_FLOAT_FORMAT
3034 if test -n "$format"; then
3035 cat >> confdefs.h
<<EOF
3036 #define HOST_FLOAT_FORMAT $format
3040 if test -n "$fbigend"; then
3041 cat >> confdefs.h
<<EOF
3042 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
3048 # See if we have the mktemp command.
3049 # Extract the first word of "mktemp", so it can be a program name with args.
3050 set dummy mktemp
; ac_word
=$2
3051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3052 echo "configure:3053: checking for $ac_word" >&5
3053 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 if test -n "$have_mktemp_command"; then
3057 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3061 for ac_dir
in $ac_dummy; do
3062 test -z "$ac_dir" && ac_dir
=.
3063 if test -f $ac_dir/$ac_word; then
3064 ac_cv_prog_have_mktemp_command
="yes"
3069 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3072 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3073 if test -n "$have_mktemp_command"; then
3074 echo "$ac_t""$have_mktemp_command" 1>&6
3076 echo "$ac_t""no" 1>&6
3080 # Do we have a single-tree copy of texinfo?
3081 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3082 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3083 gcc_cv_prog_makeinfo_modern
=yes
3084 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3086 # See if makeinfo has been installed and is modern enough
3087 # that we can use it.
3088 # Extract the first word of "makeinfo", so it can be a program name with args.
3089 set dummy makeinfo
; ac_word
=$2
3090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3091 echo "configure:3092: checking for $ac_word" >&5
3092 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 if test -n "$MAKEINFO"; then
3096 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3100 for ac_dir
in $ac_dummy; do
3101 test -z "$ac_dir" && ac_dir
=.
3102 if test -f $ac_dir/$ac_word; then
3103 ac_cv_prog_MAKEINFO
="makeinfo"
3110 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3111 if test -n "$MAKEINFO"; then
3112 echo "$ac_t""$MAKEINFO" 1>&6
3114 echo "$ac_t""no" 1>&6
3117 if test -n "$MAKEINFO"; then
3118 # Found it, now check the version.
3119 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3120 echo "configure:3121: checking for modern makeinfo" >&5
3121 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3125 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3126 echo "configure:3127: version of makeinfo is $ac_prog_version" >&5
3127 case $ac_prog_version in
3128 '') gcc_cv_prog_makeinfo_modern
=no
;;
3130 gcc_cv_prog_makeinfo_modern
=yes;;
3131 *) gcc_cv_prog_makeinfo_modern
=no
;;
3136 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3138 gcc_cv_prog_makeinfo_modern
=no
3143 if test $gcc_cv_prog_makeinfo_modern = no
; then
3144 echo "configure: warning:
3145 *** Makeinfo is missing or too old.
3146 *** Info documentation will not be built." 1>&2
3152 # Is pod2man recent enough to regenerate manpages?
3153 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3154 echo "configure:3155: checking for recent Pod::Man" >&5
3155 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3156 echo "$ac_t""yes" 1>&6
3157 GENERATED_MANPAGES
=generated-manpages
3159 echo "$ac_t""no" 1>&6
3164 if test -f $srcdir/..
/flex
/skel.c
; then
3165 FLEX
='$(objdir)/../flex/flex'
3167 # Extract the first word of "flex", so it can be a program name with args.
3168 set dummy flex
; ac_word
=$2
3169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3170 echo "configure:3171: checking for $ac_word" >&5
3171 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 if test -n "$FLEX"; then
3175 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3177 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3179 for ac_dir
in $ac_dummy; do
3180 test -z "$ac_dir" && ac_dir
=.
3181 if test -f $ac_dir/$ac_word; then
3182 ac_cv_prog_FLEX
="flex"
3187 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3190 FLEX
="$ac_cv_prog_FLEX"
3191 if test -n "$FLEX"; then
3192 echo "$ac_t""$FLEX" 1>&6
3194 echo "$ac_t""no" 1>&6
3200 # The -L switch is so bison can find its skeleton file.
3201 if test -f $srcdir/..
/bison
/bison.simple
; then
3202 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3204 # Extract the first word of "bison", so it can be a program name with args.
3205 set dummy bison
; ac_word
=$2
3206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3207 echo "configure:3208: checking for $ac_word" >&5
3208 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 if test -n "$BISON"; then
3212 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3216 for ac_dir
in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir
=.
3218 if test -f $ac_dir/$ac_word; then
3219 ac_cv_prog_BISON
="bison"
3224 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3227 BISON
="$ac_cv_prog_BISON"
3228 if test -n "$BISON"; then
3229 echo "$ac_t""$BISON" 1>&6
3231 echo "$ac_t""no" 1>&6
3236 # These libraries may be used by collect2.
3237 # We may need a special search path to get them linked.
3238 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3239 echo "configure:3240: checking for collect2 libraries" >&5
3240 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3244 for libs
in '' -lld -lmld \
3245 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3246 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3249 cat > conftest.
$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 /* Override any gcc2 internal prototype to avoid an error. */
3253 /* We use char because int might match the return type of a gcc2
3254 builtin and then its argument prototype would still apply. */
3261 if { (eval echo configure
:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3263 gcc_cv_collect2_libs
="$libs"; break
3265 echo "configure: failed program was:" >&5
3266 cat conftest.
$ac_ext >&5
3271 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3274 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3275 case $gcc_cv_collect2_libs in
3277 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3281 # When building Ada code on Alpha, we need exc_resume which is usually in
3282 # -lexc. So test for it.
3286 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3287 echo "configure:3288: checking for library containing exc_resume" >&5
3288 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 ac_func_search_save_LIBS
="$LIBS"
3292 ac_cv_search_exc_resume
="no"
3293 cat > conftest.
$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 /* Override any gcc2 internal prototype to avoid an error. */
3297 /* We use char because int might match the return type of a gcc2
3298 builtin and then its argument prototype would still apply. */
3305 if { (eval echo configure
:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3307 ac_cv_search_exc_resume
="none required"
3309 echo "configure: failed program was:" >&5
3310 cat conftest.
$ac_ext >&5
3313 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3314 LIBS
="-l$i $ac_func_search_save_LIBS"
3315 cat > conftest.
$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 /* Override any gcc2 internal prototype to avoid an error. */
3319 /* We use char because int might match the return type of a gcc2
3320 builtin and then its argument prototype would still apply. */
3327 if { (eval echo configure
:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3329 ac_cv_search_exc_resume
="-l$i"
3332 echo "configure: failed program was:" >&5
3333 cat conftest.
$ac_ext >&5
3337 LIBS
="$ac_func_search_save_LIBS"
3340 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3341 if test "$ac_cv_search_exc_resume" != "no"; then
3342 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3351 # See if the stage1 system preprocessor understands the ANSI C
3352 # preprocessor stringification operator. (Used by symcat.h.)
3355 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3356 echo "configure:3357: checking for preprocessor stringizing operator" >&5
3357 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.
$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3366 char *s = x(teststring);
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370 egrep "#teststring" >/dev
/null
2>&1; then
3372 ac_cv_c_stringize
=no
3375 ac_cv_c_stringize
=yes
3381 if test "${ac_cv_c_stringize}" = yes
3383 cat >> confdefs.h
<<\EOF
3384 #define HAVE_STRINGIZE 1
3388 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3391 # Use <inttypes.h> only if it exists,
3392 # doesn't clash with <sys/types.h>, and declares intmax_t.
3393 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3394 echo "configure:3395: checking for inttypes.h" >&5
3395 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 cat > conftest.
$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 #include <sys/types.h>
3402 #include <inttypes.h>
3407 if { (eval echo configure
:3408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3409 gcc_cv_header_inttypes_h
=yes
3411 echo "configure: failed program was:" >&5
3412 cat conftest.
$ac_ext >&5
3414 gcc_cv_header_inttypes_h
=no
3419 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3420 if test $gcc_cv_header_inttypes_h = yes; then
3421 cat >> confdefs.h
<<\EOF
3422 #define HAVE_INTTYPES_H 1
3428 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3429 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3430 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
3433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3434 echo "configure:3435: checking for $ac_func" >&5
3435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3438 cat > conftest.
$ac_ext <<EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3441 /* System header to define __stub macros and hopefully few prototypes,
3442 which can conflict with char $ac_func(); below. */
3444 /* Override any gcc2 internal prototype to avoid an error. */
3445 /* We use char because int might match the return type of a gcc2
3446 builtin and then its argument prototype would still apply. */
3451 /* The GNU C library defines this for functions which it implements
3452 to always fail with ENOSYS. Some functions are actually named
3453 something starting with __ and the normal name is an alias. */
3454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3462 if { (eval echo configure
:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3464 eval "ac_cv_func_$ac_func=yes"
3466 echo "configure: failed program was:" >&5
3467 cat conftest.
$ac_ext >&5
3469 eval "ac_cv_func_$ac_func=no"
3474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3475 echo "$ac_t""yes" 1>&6
3476 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3477 cat >> confdefs.h
<<EOF
3478 #define $ac_tr_func 1
3482 echo "$ac_t""no" 1>&6
3487 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3488 echo "configure:3489: checking for ssize_t" >&5
3489 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 cat > conftest.
$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 #include <sys/types.h>
3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3502 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3504 ac_cv_type_ssize_t
=yes
3507 ac_cv_type_ssize_t
=no
3512 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3513 if test $ac_cv_type_ssize_t = no
; then
3514 cat >> confdefs.h
<<\EOF
3521 # Try to determine the array type of the second argument of getgroups
3522 # for the target system (int or gid_t).
3523 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3524 echo "configure:3525: checking for uid_t in sys/types.h" >&5
3525 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 cat > conftest.
$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3531 #include <sys/types.h>
3533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3534 egrep "uid_t" >/dev
/null
2>&1; then
3536 ac_cv_type_uid_t
=yes
3545 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3546 if test $ac_cv_type_uid_t = no
; then
3547 cat >> confdefs.h
<<\EOF
3551 cat >> confdefs.h
<<\EOF
3557 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3558 echo "configure:3559: checking type of array argument to getgroups" >&5
3559 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 if test "$cross_compiling" = yes; then
3563 ac_cv_type_getgroups
=cross
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3569 /* Thanks to Mike Rendell for this test. */
3570 #include <sys/types.h>
3573 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3578 union { gid_t gval; long lval; } val;
3581 for (i = 0; i < NGID; i++)
3582 gidset[i] = val.gval;
3583 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3585 /* Exit non-zero if getgroups seems to require an array of ints. This
3586 happens when gid_t is short but getgroups modifies an array of ints. */
3587 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3591 if { (eval echo configure
:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3593 ac_cv_type_getgroups
=gid_t
3595 echo "configure: failed program was:" >&5
3596 cat conftest.
$ac_ext >&5
3598 ac_cv_type_getgroups
=int
3603 if test $ac_cv_type_getgroups = cross
; then
3604 cat > conftest.
$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3612 ac_cv_type_getgroups
=gid_t
3615 ac_cv_type_getgroups
=int
3622 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3623 cat >> confdefs.h
<<EOF
3624 #define GETGROUPS_T $ac_cv_type_getgroups
3628 if test "${target}" = "${build}"; then
3629 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3632 # This condition may need some tweaking. It should include all
3633 # targets where the array type of the second argument of getgroups
3634 # is int and the type of gid_t is not equivalent to int.
3635 *-*-sunos* |
*-*-ultrix*)
3636 TARGET_GETGROUPS_T
=int
3639 TARGET_GETGROUPS_T
=gid_t
3645 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3646 echo "configure:3647: checking whether the printf functions support %p" >&5
3647 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 if test "$cross_compiling" = yes; then
3651 gcc_cv_func_printf_ptr
=no
3653 cat > conftest.
$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3661 char *p = buf, *q = NULL;
3662 sprintf(buf, "%p", p);
3663 sscanf(buf, "%p", &q);
3667 if { (eval echo configure
:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3669 gcc_cv_func_printf_ptr
=yes
3671 echo "configure: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3674 gcc_cv_func_printf_ptr
=no
3679 rm -f core core.
* *.core
3682 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3683 if test $gcc_cv_func_printf_ptr = yes ; then
3684 cat >> confdefs.h
<<\EOF
3685 #define HAVE_PRINTF_PTR 1
3693 { echo "configure: error:
3694 *** UWIN may not be used as a host platform because
3695 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3698 # Under VMS, vfork works very different than on Unix. The standard test
3699 # won't work, and it isn't easily adaptable. It makes more sense to
3701 ac_cv_func_vfork_works
=yes
3704 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3705 echo "configure:3706: checking for pid_t" >&5
3706 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.
$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <sys/types.h>
3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3721 ac_cv_type_pid_t
=yes
3729 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3730 if test $ac_cv_type_pid_t = no
; then
3731 cat >> confdefs.h
<<\EOF
3737 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3738 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3739 echo "configure:3740: checking for vfork.h" >&5
3740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.
$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3749 { (eval echo configure
:3750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3750 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3751 if test -z "$ac_err"; then
3753 eval "ac_cv_header_$ac_safe=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.
$ac_ext >&5
3759 eval "ac_cv_header_$ac_safe=no"
3763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3764 echo "$ac_t""yes" 1>&6
3765 cat >> confdefs.h
<<\EOF
3766 #define HAVE_VFORK_H 1
3770 echo "$ac_t""no" 1>&6
3773 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3774 echo "configure:3775: checking for working vfork" >&5
3775 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 if test "$cross_compiling" = yes; then
3779 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3780 echo "configure:3781: checking for vfork" >&5
3781 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 cat > conftest.
$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* System header to define __stub macros and hopefully few prototypes,
3788 which can conflict with char vfork(); below. */
3790 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3797 /* The GNU C library defines this for functions which it implements
3798 to always fail with ENOSYS. Some functions are actually named
3799 something starting with __ and the normal name is an alias. */
3800 #if defined (__stub_vfork) || defined (__stub___vfork)
3808 if { (eval echo configure
:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3810 eval "ac_cv_func_vfork=yes"
3812 echo "configure: failed program was:" >&5
3813 cat conftest.
$ac_ext >&5
3815 eval "ac_cv_func_vfork=no"
3820 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3824 echo "$ac_t""no" 1>&6
3827 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3829 cat > conftest.
$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 /* Thanks to Paul Eggert for this test. */
3834 #include <sys/types.h>
3835 #include <sys/stat.h>
3836 #ifdef HAVE_UNISTD_H
3842 /* On some sparc systems, changes by the child to local and incoming
3843 argument registers are propagated back to the parent.
3844 The compiler is told about this with #include <vfork.h>,
3845 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3846 Test for this by using a static variable whose address
3847 is put into a register that is clobbered by the vfork. */
3850 sparc_address_test (int arg)
3852 sparc_address_test (arg) int arg;
3870 pid_t parent = getpid ();
3873 sparc_address_test ();
3878 /* Here is another test for sparc vfork register problems.
3879 This test uses lots of local variables, at least
3880 as many local variables as main has allocated so far
3881 including compiler temporaries. 4 locals are enough for
3882 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3883 A buggy compiler should reuse the register of parent
3884 for one of the local variables, since it will think that
3885 parent can't possibly be used any more in this routine.
3886 Assigning to the local variable will thus munge parent
3887 in the parent process. */
3889 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3890 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3891 /* Convince the compiler that p..p7 are live; otherwise, it might
3892 use the same hardware register for all 8 local variables. */
3893 if (p != p1 || p != p2 || p != p3 || p != p4
3894 || p != p5 || p != p6 || p != p7)
3897 /* On some systems (e.g. IRIX 3.3),
3898 vfork doesn't separate parent from child file descriptors.
3899 If the child closes a descriptor before it execs or exits,
3900 this munges the parent's descriptor as well.
3901 Test for this by closing stdout in the child. */
3902 _exit(close(fileno(stdout)) != 0);
3907 while (wait(&status) != child)
3910 /* Was there some problem with vforking? */
3913 /* Did the child fail? (This shouldn't happen.) */
3916 /* Did the vfork/compiler bug occur? */
3917 || parent != getpid()
3919 /* Did the file descriptor bug occur? */
3920 || fstat(fileno(stdout), &st) != 0
3925 if { (eval echo configure
:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3927 ac_cv_func_vfork_works
=yes
3929 echo "configure: failed program was:" >&5
3930 cat conftest.
$ac_ext >&5
3932 ac_cv_func_vfork_works
=no
3939 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3940 if test $ac_cv_func_vfork_works = no
; then
3941 cat >> confdefs.h
<<\EOF
3947 for ac_func
in getpagesize
3949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3950 echo "configure:3951: checking for $ac_func" >&5
3951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 /* System header to define __stub macros and hopefully few prototypes,
3958 which can conflict with char $ac_func(); below. */
3960 /* Override any gcc2 internal prototype to avoid an error. */
3961 /* We use char because int might match the return type of a gcc2
3962 builtin and then its argument prototype would still apply. */
3967 /* The GNU C library defines this for functions which it implements
3968 to always fail with ENOSYS. Some functions are actually named
3969 something starting with __ and the normal name is an alias. */
3970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3978 if { (eval echo configure
:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3980 eval "ac_cv_func_$ac_func=yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.
$ac_ext >&5
3985 eval "ac_cv_func_$ac_func=no"
3990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3991 echo "$ac_t""yes" 1>&6
3992 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3993 cat >> confdefs.h
<<EOF
3994 #define $ac_tr_func 1
3998 echo "$ac_t""no" 1>&6
4002 # The test program for the next two tests is the same except for one
4004 cat >ct-mmap.inc
<<'EOF'
4005 #include <sys/types.h>
4006 #include <sys/mman.h>
4012 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4013 # define MAP_ANONYMOUS MAP_ANON
4016 /* This mess was copied from the GNU getpagesize.h. */
4017 #ifndef HAVE_GETPAGESIZE
4018 # ifdef HAVE_UNISTD_H
4019 # include <unistd.h>
4022 /* Assume that all systems that can run configure have sys/param.h. */
4023 # ifndef HAVE_SYS_PARAM_H
4024 # define HAVE_SYS_PARAM_H 1
4027 # ifdef _SC_PAGESIZE
4028 # define getpagesize() sysconf(_SC_PAGESIZE)
4029 # else /* no _SC_PAGESIZE */
4030 # ifdef HAVE_SYS_PARAM_H
4031 # include <sys/param.h>
4032 # ifdef EXEC_PAGESIZE
4033 # define getpagesize() EXEC_PAGESIZE
4034 # else /* no EXEC_PAGESIZE */
4036 # define getpagesize() NBPG * CLSIZE
4039 # endif /* no CLSIZE */
4040 # else /* no NBPG */
4042 # define getpagesize() NBPC
4043 # else /* no NBPC */
4045 # define getpagesize() PAGESIZE
4046 # endif /* PAGESIZE */
4047 # endif /* no NBPC */
4048 # endif /* no NBPG */
4049 # endif /* no EXEC_PAGESIZE */
4050 # else /* no HAVE_SYS_PARAM_H */
4051 # define getpagesize() 8192 /* punt totally */
4052 # endif /* no HAVE_SYS_PARAM_H */
4053 # endif /* no _SC_PAGESIZE */
4055 #endif /* no HAVE_GETPAGESIZE */
4058 # define MAP_FAILED -1
4062 #define perror_exit(str, val) \
4063 do { perror(str); exit(val); } while (0)
4065 /* Some versions of cygwin mmap require that munmap is called with the
4066 same parameters as mmap. GCC expects that this is not the case.
4067 Test for various forms of this problem. Warning - icky signal games. */
4069 static sigset_t unblock_sigsegv;
4079 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4080 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4082 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4083 MAP_PRIVATE, devzero, 0);
4091 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4095 /* Basic functionality test. */
4099 char *x = anonmap (pg);
4100 if (x == (char *) MAP_FAILED)
4101 perror_exit("test 0 mmap", 2);
4105 if (munmap(x, pg) < 0)
4106 perror_exit("test 0 munmap", 3);
4109 /* 1. If we map a 2-page region and unmap its second page, the first page
4114 char *x = anonmap (pg * 2);
4115 if (x == (char *)MAP_FAILED)
4116 perror_exit ("test 1 mmap", 4);
4118 signal (SIGSEGV, sigsegv);
4120 perror_exit ("test 1 fault", 5);
4125 if (munmap (x + pg, pg) < 0)
4126 perror_exit ("test 1 munmap 1", 6);
4129 if (setjmp (r) == 0)
4132 perror_exit ("test 1 no fault", 7);
4134 if (munmap (x, pg) < 0)
4135 perror_exit ("test 1 munmap 2", 8);
4138 /* 2. If we map a 2-page region and unmap its first page, the second
4139 page must remain. */
4143 char *x = anonmap (pg * 2);
4144 if (x == (char *)MAP_FAILED)
4145 perror_exit ("test 2 mmap", 9);
4147 signal (SIGSEGV, sigsegv);
4149 perror_exit ("test 2 fault", 10);
4154 if (munmap (x, pg) < 0)
4155 perror_exit ("test 2 munmap 1", 11);
4159 if (setjmp (r) == 0)
4162 perror_exit ("test 2 no fault", 12);
4165 if (munmap (x+pg, pg) < 0)
4166 perror_exit ("test 2 munmap 2", 13);
4169 /* 3. If we map two adjacent 1-page regions and unmap them both with
4170 one munmap, both must go away.
4172 Getting two adjacent 1-page regions with two mmap calls is slightly
4173 tricky. All OS's tested skip over already-allocated blocks; therefore
4174 we have been careful to unmap all allocated regions in previous tests.
4175 HP/UX allocates pages backward in memory. No OS has yet been observed
4176 to be so perverse as to leave unmapped space between consecutive calls
4185 if (x == (char *)MAP_FAILED)
4186 perror_exit ("test 3 mmap 1", 14);
4188 if (y == (char *)MAP_FAILED)
4189 perror_exit ("test 3 mmap 2", 15);
4194 z = y, y = x, x = z;
4197 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4198 (unsigned long)x, (unsigned long)y);
4203 signal (SIGSEGV, sigsegv);
4205 perror_exit ("test 3 fault", 17);
4210 if (munmap (x, pg*2) < 0)
4211 perror_exit ("test 3 munmap", 18);
4213 if (setjmp (r) == 0)
4216 perror_exit ("test 3 no fault 1", 19);
4219 signal (SIGSEGV, sigsegv);
4220 if (setjmp (r) == 0)
4223 perror_exit ("test 3 no fault 2", 20);
4230 sigemptyset (&unblock_sigsegv);
4231 sigaddset (&unblock_sigsegv, SIGSEGV);
4232 pg = getpagesize ();
4233 #ifndef USE_MAP_ANON
4234 devzero = open ("/dev/zero", O_RDWR);
4236 perror_exit ("open /dev/zero", 1);
4248 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4249 echo "configure:4250: checking for working mmap from /dev/zero" >&5
4250 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 if test "$cross_compiling" = yes; then
4254 # If this is not cygwin, and /dev/zero is a character device, it's probably
4255 # safe to assume it works.
4257 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4258 * ) if test -c /dev
/zero
4259 then ac_cv_func_mmap_dev_zero
=yes
4260 else ac_cv_func_mmap_dev_zero
=no
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 #include "ct-mmap.inc"
4269 if { (eval echo configure
:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4271 ac_cv_func_mmap_dev_zero
=yes
4273 echo "configure: failed program was:" >&5
4274 cat conftest.
$ac_ext >&5
4277 then ac_cv_func_mmap_dev_zero
=no
4278 else ac_cv_func_mmap_dev_zero
=buggy
4287 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4288 if test $ac_cv_func_mmap_dev_zero = yes; then
4289 cat >> confdefs.h
<<\EOF
4290 #define HAVE_MMAP_DEV_ZERO 1
4295 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4296 echo "configure:4297: checking for working mmap with MAP_ANON(YMOUS)" >&5
4297 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4300 if test "$cross_compiling" = yes; then
4301 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4302 # just because it's there. Some SCO Un*xen define it but don't implement it.
4303 ac_cv_func_mmap_anon
=no
4305 cat > conftest.
$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4308 #define USE_MAP_ANON
4309 #include "ct-mmap.inc"
4311 if { (eval echo configure
:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4313 ac_cv_func_mmap_anon
=yes
4315 echo "configure: failed program was:" >&5
4316 cat conftest.
$ac_ext >&5
4319 then ac_cv_func_mmap_anon
=no
4320 else ac_cv_func_mmap_anon
=buggy
4329 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4330 if test $ac_cv_func_mmap_anon = yes; then
4331 cat >> confdefs.h
<<\EOF
4332 #define HAVE_MMAP_ANON 1
4338 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4339 echo "configure:4340: checking for working mmap of a file" >&5
4340 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4343 # Create a file one thousand bytes long.
4344 for i
in 1 2 3 4 5 6 7 8 9 0
4345 do for j
in 1 2 3 4 5 6 7 8 9 0
4348 done > conftestdata$$
4350 if test "$cross_compiling" = yes; then
4351 ac_cv_func_mmap_file
=no
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4357 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4358 Richard Henderson and Alexandre Oliva.
4359 Check whether read-only mmap of a plain file works. */
4360 #include <sys/types.h>
4361 #include <sys/stat.h>
4363 #include <sys/mman.h>
4371 fd = open("conftestdata$$", O_RDONLY);
4375 if (fstat (fd, &st))
4378 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4379 if (x == (char *) -1)
4382 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4385 if (munmap(x, st.st_size) < 0)
4391 if { (eval echo configure
:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4393 ac_cv_func_mmap_file
=yes
4395 echo "configure: failed program was:" >&5
4396 cat conftest.
$ac_ext >&5
4398 ac_cv_func_mmap_file
=no
4405 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4406 if test $ac_cv_func_mmap_file = yes; then
4407 cat >> confdefs.h
<<\EOF
4408 #define HAVE_MMAP_FILE 1
4416 am_cv_lib_iconv_ldpath
=
4417 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4418 if test "${with_libiconv_prefix+set}" = set; then
4419 withval
="$with_libiconv_prefix"
4421 for dir
in `echo "$withval" | tr : ' '`; do
4422 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4423 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4429 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4430 echo "configure:4431: checking for iconv" >&5
4431 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4435 am_cv_func_iconv
="no, consider installing GNU libiconv"
4437 cat > conftest.
$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4443 iconv_t cd = iconv_open("","");
4444 iconv(cd,NULL,NULL,NULL,NULL);
4448 if { (eval echo configure
:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4450 am_cv_func_iconv
=yes
4452 echo "configure: failed program was:" >&5
4453 cat conftest.
$ac_ext >&5
4456 if test "$am_cv_func_iconv" != yes; then
4457 am_save_LIBS
="$LIBS"
4458 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4459 cat > conftest.
$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4465 iconv_t cd = iconv_open("","");
4466 iconv(cd,NULL,NULL,NULL,NULL);
4470 if { (eval echo configure
:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4473 am_cv_func_iconv
=yes
4475 echo "configure: failed program was:" >&5
4476 cat conftest.
$ac_ext >&5
4479 LIBS
="$am_save_LIBS"
4484 echo "$ac_t""$am_cv_func_iconv" 1>&6
4485 if test "$am_cv_func_iconv" = yes; then
4486 cat >> confdefs.h
<<\EOF
4487 #define HAVE_ICONV 1
4490 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4491 echo "configure:4492: checking for iconv declaration" >&5
4492 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4496 cat > conftest.
$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4506 #if defined(__STDC__) || defined(__cplusplus)
4507 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4516 if { (eval echo configure
:4517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4518 am_cv_proto_iconv_arg1
=""
4520 echo "configure: failed program was:" >&5
4521 cat conftest.
$ac_ext >&5
4523 am_cv_proto_iconv_arg1
="const"
4526 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);"
4529 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4530 echo "$ac_t""${ac_t:-
4531 }$am_cv_proto_iconv" 1>&6
4532 cat >> confdefs.h
<<EOF
4533 #define ICONV_CONST $am_cv_proto_iconv_arg1
4538 if test "$am_cv_lib_iconv" = yes; then
4539 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4544 # We will need to find libiberty.h and ansidecl.h
4545 saved_CFLAGS
="$CFLAGS"
4546 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4547 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4548 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4549 fprintf_unlocked strstr errno \
4550 malloc realloc calloc free
basename getopt
clock
4552 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4553 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4554 echo "configure:4555: checking whether $ac_func is declared" >&5
4555 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.
$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4562 #define $ac_tr_decl 1
4564 #include "ansidecl.h"
4569 char *(*pfn) = (char *(*)) $ac_func ;
4573 if { (eval echo configure
:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4575 eval "gcc_cv_have_decl_$ac_func=yes"
4577 echo "configure: failed program was:" >&5
4578 cat conftest.
$ac_ext >&5
4580 eval "gcc_cv_have_decl_$ac_func=no"
4585 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4587 #define $ac_tr_decl 1
4591 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4592 #define $ac_tr_decl 0
4598 if test x
= y
; then
4599 cat >> confdefs.h
<<\EOF
4600 #define HAVE_DECL_GETENV 1
4602 cat >> confdefs.h
<<\EOF
4603 #define HAVE_DECL_ATOL 1
4605 cat >> confdefs.h
<<\EOF
4606 #define HAVE_DECL_SBRK 1
4608 cat >> confdefs.h
<<\EOF
4609 #define HAVE_DECL_ABORT 1
4611 cat >> confdefs.h
<<\EOF
4612 #define HAVE_DECL_ATOF 1
4614 cat >> confdefs.h
<<\EOF
4615 #define HAVE_DECL_GETCWD 1
4617 cat >> confdefs.h
<<\EOF
4618 #define HAVE_DECL_GETWD 1
4621 cat >> confdefs.h
<<\EOF
4622 #define HAVE_DECL_STRSIGNAL 1
4624 cat >> confdefs.h
<<\EOF
4625 #define HAVE_DECL_PUTC_UNLOCKED 1
4627 cat >> confdefs.h
<<\EOF
4628 #define HAVE_DECL_FPUTS_UNLOCKED 1
4630 cat >> confdefs.h
<<\EOF
4631 #define HAVE_DECL_FWRITE_UNLOCKED 1
4634 cat >> confdefs.h
<<\EOF
4635 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4637 cat >> confdefs.h
<<\EOF
4638 #define HAVE_DECL_STRSTR 1
4640 cat >> confdefs.h
<<\EOF
4641 #define HAVE_DECL_ERRNO 1
4644 cat >> confdefs.h
<<\EOF
4645 #define HAVE_DECL_MALLOC 1
4647 cat >> confdefs.h
<<\EOF
4648 #define HAVE_DECL_REALLOC 1
4650 cat >> confdefs.h
<<\EOF
4651 #define HAVE_DECL_CALLOC 1
4653 cat >> confdefs.h
<<\EOF
4654 #define HAVE_DECL_FREE 1
4656 cat >> confdefs.h
<<\EOF
4657 #define HAVE_DECL_BASENAME 1
4659 cat >> confdefs.h
<<\EOF
4660 #define HAVE_DECL_GETOPT 1
4662 cat >> confdefs.h
<<\EOF
4663 #define HAVE_DECL_CLOCK 1
4668 for ac_func
in getrlimit setrlimit getrusage
4670 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4671 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4672 echo "configure:4673: checking whether $ac_func is declared" >&5
4673 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.
$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4680 #define $ac_tr_decl 1
4682 #include "ansidecl.h"
4684 #ifdef HAVE_SYS_RESOURCE_H
4685 #include <sys/resource.h>
4691 char *(*pfn) = (char *(*)) $ac_func ;
4695 if { (eval echo configure
:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4697 eval "gcc_cv_have_decl_$ac_func=yes"
4699 echo "configure: failed program was:" >&5
4700 cat conftest.
$ac_ext >&5
4702 eval "gcc_cv_have_decl_$ac_func=no"
4707 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4709 #define $ac_tr_decl 1
4713 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4714 #define $ac_tr_decl 0
4720 if test x
= y
; then
4721 cat >> confdefs.h
<<\EOF
4722 #define HAVE_DECL_GETRLIMIT 1
4724 cat >> confdefs.h
<<\EOF
4725 #define HAVE_DECL_SETRLIMIT 1
4727 cat >> confdefs.h
<<\EOF
4728 #define HAVE_DECL_GETRUSAGE 1
4733 for ac_func
in times
4735 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4736 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4737 echo "configure:4738: checking whether $ac_func is declared" >&5
4738 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.
$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4745 #define $ac_tr_decl 1
4747 #include "ansidecl.h"
4749 #ifdef HAVE_SYS_TIMES_H
4750 #include <sys/times.h>
4756 char *(*pfn) = (char *(*)) $ac_func ;
4760 if { (eval echo configure
:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4762 eval "gcc_cv_have_decl_$ac_func=yes"
4764 echo "configure: failed program was:" >&5
4765 cat conftest.
$ac_ext >&5
4767 eval "gcc_cv_have_decl_$ac_func=no"
4772 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4774 #define $ac_tr_decl 1
4778 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4779 #define $ac_tr_decl 0
4785 if test x
= y
; then
4786 cat >> confdefs.h
<<\EOF
4787 #define HAVE_DECL_TIMES 1
4792 # More time-related stuff.
4793 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4794 echo "configure:4795: checking for struct tms" >&5
4795 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4799 cat > conftest.
$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4803 #include "ansidecl.h"
4805 #ifdef HAVE_SYS_TIMES_H
4806 #include <sys/times.h>
4813 if { (eval echo configure
:4814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4815 ac_cv_struct_tms
=yes
4817 echo "configure: failed program was:" >&5
4818 cat conftest.
$ac_ext >&5
4825 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4826 if test $ac_cv_struct_tms = yes; then
4827 cat >> confdefs.h
<<\EOF
4828 #define HAVE_STRUCT_TMS 1
4833 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4834 # revisit after autoconf 2.50.
4835 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4836 echo "configure:4837: checking for clock_t" >&5
4837 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.
$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4845 #include "ansidecl.h"
4852 if { (eval echo configure
:4853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4854 gcc_cv_type_clock_t
=yes
4856 echo "configure: failed program was:" >&5
4857 cat conftest.
$ac_ext >&5
4859 gcc_cv_type_clock_t
=no
4864 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4865 if test $gcc_cv_type_clock_t = yes; then
4866 cat >> confdefs.h
<<\EOF
4867 #define HAVE_CLOCK_T 1
4872 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4873 CFLAGS
="$saved_CFLAGS"
4875 # mkdir takes a single argument on some systems.
4876 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4877 echo "configure:4878: checking if mkdir takes one argument" >&5
4878 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 cat > conftest.
$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4885 #include <sys/types.h>
4886 #ifdef HAVE_SYS_STAT_H
4887 # include <sys/stat.h>
4889 #ifdef HAVE_UNISTD_H
4890 # include <unistd.h>
4892 #ifdef HAVE_DIRECT_H
4893 # include <direct.h>
4899 if { (eval echo configure
:4900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4901 gcc_cv_mkdir_takes_one_arg
=no
4903 echo "configure: failed program was:" >&5
4904 cat conftest.
$ac_ext >&5
4906 gcc_cv_mkdir_takes_one_arg
=yes
4911 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4912 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4913 cat >> confdefs.h
<<\EOF
4914 #define MKDIR_TAKES_ONE_ARG 1
4928 build_install_headers_dir
=install-headers-tar
4933 host_truncate_target
=
4936 # Decode the host machine, then the target machine.
4937 # For the host machine, we save the xm_file variable as host_xm_file;
4938 # then we decode the target machine and forget everything else
4939 # that came from the host machine.
4940 for machine
in $build $host $target; do
4941 .
${srcdir}/config.gcc
4944 extra_objs
="${host_extra_objs} ${extra_objs}"
4946 # Default the target-machine variables that were not explicitly set.
4947 if test x
"$tm_file" = x
4948 then tm_file
=$cpu_type/$cpu_type.h
; fi
4950 if test x
"$extra_headers" = x
4951 then extra_headers
=; fi
4953 if test x
$md_file = x
4954 then md_file
=$cpu_type/$cpu_type.md
; fi
4956 if test x
$out_file = x
4957 then out_file
=$cpu_type/$cpu_type.c
; fi
4959 if test x
"$tmake_file" = x
4960 then tmake_file
=$cpu_type/t-
$cpu_type
4963 if test x
"$dwarf2" = xyes
4964 then tm_file
="$tm_file tm-dwarf2.h"
4967 if test x
$float_format = x
4968 then float_format
=i64
4971 if test $float_format = none
4972 then float_h_file
=Makefile.
in
4973 else float_h_file
=float-
$float_format.h
4976 # Say what files are being used for the output code and MD file.
4977 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4978 echo "Using \`$srcdir/config/$md_file' as machine description file."
4980 # If any of the xm_file variables contain nonexistent files, warn
4981 # about them and drop them.
4984 for x
in $build_xm_file; do
4985 if test -f $srcdir/config
/$x
4987 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4993 for x
in $host_xm_file; do
4994 if test -f $srcdir/config
/$x
4996 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5002 for x
in $xm_file; do
5003 if test -f $srcdir/config
/$x
5005 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5011 for f
in $tm_file; do
5014 if test $count = ax
; then
5015 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5017 echo "Using the following target machine macro files:"
5018 for f
in $tm_file; do
5019 echo " $srcdir/config/$f"
5024 for f
in $host_xm_file; do
5027 if test $count = a
; then
5029 elif test $count = ax
; then
5030 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5032 echo "Using the following host machine macro files:"
5033 for f
in $host_xm_file; do
5034 echo " $srcdir/config/$f"
5038 if test "$host_xm_file" != "$build_xm_file"; then
5040 for f
in $build_xm_file; do
5043 if test $count = a
; then
5045 elif test $count = ax
; then
5046 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5048 echo "Using the following build machine macro files:"
5049 for f
in $build_xm_file; do
5050 echo " $srcdir/config/$f"
5055 if test x
$thread_file = x
; then
5056 if test x
$target_thread_file != x
; then
5057 thread_file
=$target_thread_file
5059 thread_file
='single'
5063 # auto-host.h is the file containing items generated by autoconf and is
5064 # the first file included by config.h.
5065 # If host=build, it is correct to have hconfig include auto-host.h
5066 # as well. If host!=build, we are in error and need to do more
5067 # work to find out the build config parameters.
5068 if test x
$host = x
$build
5070 build_auto
=auto-host.h
5073 # We create a subdir, then run autoconf in the subdir.
5074 # To prevent recursion we set host and build for the new
5075 # invocation of configure to the build for this invocation
5082 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5083 *) realsrcdir
=..
/${srcdir};;
5085 saved_CFLAGS
="${CFLAGS}"
5086 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5087 ${realsrcdir}/configure \
5088 --target=$target_alias --host=$build_alias --build=$build_alias
5089 CFLAGS
="${saved_CFLAGS}"
5091 # We just finished tests for the build machine, so rename
5092 # the file auto-build.h in the gcc directory.
5093 mv auto-host.h ..
/auto-build.h
5096 build_auto
=auto-build.h
5101 tm_file
="${tm_file} defaults.h"
5102 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5103 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5104 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5106 # Truncate the target if necessary
5107 if test x
$host_truncate_target != x
; then
5108 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5111 # Get the version trigger filename from the toplevel
5112 if test "${with_gcc_version_trigger+set}" = set; then
5113 gcc_version_trigger
=$with_gcc_version_trigger
5115 gcc_version_trigger
=${srcdir}/version.c
5117 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5118 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5120 # Compile in configure arguments.
5121 if test -f configargs.h
; then
5122 # Being re-configured.
5123 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5124 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5126 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5128 cat > configargs.h
<<EOF
5129 /* Generated automatically. */
5130 static const char configuration_arguments[] = "$gcc_config_arguments";
5131 static const char thread_model[] = "$thread_file";
5134 # Internationalization
5136 VERSION
="$gcc_version"
5140 # Enable NLS support by default
5141 # Check whether --enable-nls or --disable-nls was given.
5142 if test "${enable_nls+set}" = set; then
5143 enableval
="$enable_nls"
5150 # if cross compiling, disable NLS support.
5151 # It's not worth the trouble, at least for now.
5153 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5154 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5160 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5161 echo "configure:5162: checking for library containing strerror" >&5
5162 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 ac_func_search_save_LIBS
="$LIBS"
5166 ac_cv_search_strerror
="no"
5167 cat > conftest.
$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 /* Override any gcc2 internal prototype to avoid an error. */
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5179 if { (eval echo configure
:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5181 ac_cv_search_strerror
="none required"
5183 echo "configure: failed program was:" >&5
5184 cat conftest.
$ac_ext >&5
5187 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5188 LIBS
="-l$i $ac_func_search_save_LIBS"
5189 cat > conftest.
$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5201 if { (eval echo configure
:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5203 ac_cv_search_strerror
="-l$i"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5211 LIBS
="$ac_func_search_save_LIBS"
5214 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5215 if test "$ac_cv_search_strerror" != "no"; then
5216 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5223 echo $ac_n "checking for working const""... $ac_c" 1>&6
5224 echo "configure:5225: checking for working const" >&5
5225 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5228 cat > conftest.
$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5234 /* Ultrix mips cc rejects this. */
5235 typedef int charset[2]; const charset x;
5236 /* SunOS 4.1.1 cc rejects this. */
5237 char const *const *ccp;
5239 /* NEC SVR4.0.2 mips cc rejects this. */
5240 struct point {int x, y;};
5241 static struct point const zero = {0,0};
5242 /* AIX XL C 1.02.0.0 rejects this.
5243 It does not let you subtract one const X* pointer from another in an arm
5244 of an if-expression whose if-part is not a constant expression */
5245 const char *g = "string";
5246 ccp = &g + (g ? g-g : 0);
5247 /* HPUX 7.0 cc rejects these. */
5250 ccp = (char const *const *) p;
5251 { /* SCO 3.2v4 cc rejects this. */
5253 char const *s = 0 ? (char *) 0 : (char const *) 0;
5257 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5259 const int *foo = &x[0];
5262 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5263 typedef const int *iptr;
5267 { /* AIX XL C 1.02.0.0 rejects this saying
5268 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5269 struct s { int j; const int *ap[3]; };
5270 struct s *b; b->j = 5;
5272 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5278 if { (eval echo configure
:5279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5282 echo "configure: failed program was:" >&5
5283 cat conftest.
$ac_ext >&5
5290 echo "$ac_t""$ac_cv_c_const" 1>&6
5291 if test $ac_cv_c_const = no
; then
5292 cat >> confdefs.h
<<\EOF
5298 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5299 echo "configure:5300: checking for off_t" >&5
5300 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5303 cat > conftest.
$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5306 #include <sys/types.h>
5312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5313 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5315 ac_cv_type_off_t
=yes
5323 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5324 if test $ac_cv_type_off_t = no
; then
5325 cat >> confdefs.h
<<\EOF
5331 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5332 echo "configure:5333: checking for size_t" >&5
5333 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.
$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <sys/types.h>
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5348 ac_cv_type_size_t
=yes
5351 ac_cv_type_size_t
=no
5356 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5357 if test $ac_cv_type_size_t = no
; then
5358 cat >> confdefs.h
<<\EOF
5359 #define size_t unsigned
5364 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5365 # for constant arguments. Useless!
5366 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5367 echo "configure:5368: checking for working alloca.h" >&5
5368 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 cat > conftest.
$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5376 char *p = alloca(2 * sizeof(int));
5379 if { (eval echo configure
:5380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5381 ac_cv_header_alloca_h
=yes
5383 echo "configure: failed program was:" >&5
5384 cat conftest.
$ac_ext >&5
5386 ac_cv_header_alloca_h
=no
5391 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5392 if test $ac_cv_header_alloca_h = yes; then
5393 cat >> confdefs.h
<<\EOF
5394 #define HAVE_ALLOCA_H 1
5399 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5400 echo "configure:5401: checking for alloca" >&5
5401 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 cat > conftest.
$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5409 # define alloca __builtin_alloca
5412 # include <malloc.h>
5413 # define alloca _alloca
5416 # include <alloca.h>
5421 # ifndef alloca /* predefined by HP cc +Olibcalls */
5430 char *p = (char *) alloca(1);
5433 if { (eval echo configure
:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5435 ac_cv_func_alloca_works
=yes
5437 echo "configure: failed program was:" >&5
5438 cat conftest.
$ac_ext >&5
5440 ac_cv_func_alloca_works
=no
5445 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5446 if test $ac_cv_func_alloca_works = yes; then
5447 cat >> confdefs.h
<<\EOF
5448 #define HAVE_ALLOCA 1
5453 if test $ac_cv_func_alloca_works = no
; then
5454 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5455 # that cause trouble. Some versions do not even contain alloca or
5456 # contain a buggy version. If you still want to use their alloca,
5457 # use ar to extract alloca.o from them instead of compiling alloca.c.
5458 ALLOCA
=alloca.
${ac_objext}
5459 cat >> confdefs.h
<<\EOF
5464 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5465 echo "configure:5466: checking whether alloca needs Cray hooks" >&5
5466 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5469 cat > conftest.
$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 #if defined(CRAY) && ! defined(CRAY2)
5479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480 egrep "webecray" >/dev
/null
2>&1; then
5491 echo "$ac_t""$ac_cv_os_cray" 1>&6
5492 if test $ac_cv_os_cray = yes; then
5493 for ac_func
in _getb67 GETB67 getb67
; do
5494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5495 echo "configure:5496: checking for $ac_func" >&5
5496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5499 cat > conftest.
$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 /* System header to define __stub macros and hopefully few prototypes,
5503 which can conflict with char $ac_func(); below. */
5505 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5512 /* The GNU C library defines this for functions which it implements
5513 to always fail with ENOSYS. Some functions are actually named
5514 something starting with __ and the normal name is an alias. */
5515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5523 if { (eval echo configure
:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5525 eval "ac_cv_func_$ac_func=yes"
5527 echo "configure: failed program was:" >&5
5528 cat conftest.
$ac_ext >&5
5530 eval "ac_cv_func_$ac_func=no"
5535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5537 cat >> confdefs.h
<<EOF
5538 #define CRAY_STACKSEG_END $ac_func
5543 echo "$ac_t""no" 1>&6
5549 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5550 echo "configure:5551: checking stack direction for C alloca" >&5
5551 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 if test "$cross_compiling" = yes; then
5555 ac_cv_c_stack_direction
=0
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 find_stack_direction ()
5562 static char *addr = 0;
5567 return find_stack_direction ();
5570 return (&dummy > addr) ? 1 : -1;
5574 exit (find_stack_direction() < 0);
5577 if { (eval echo configure
:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5579 ac_cv_c_stack_direction
=1
5581 echo "configure: failed program was:" >&5
5582 cat conftest.
$ac_ext >&5
5584 ac_cv_c_stack_direction
=-1
5591 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5592 cat >> confdefs.h
<<EOF
5593 #define STACK_DIRECTION $ac_cv_c_stack_direction
5599 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5600 echo "configure:5601: checking whether we are using the GNU C Library 2.1 or newer" >&5
5601 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 cat > conftest.
$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5608 #include <features.h>
5609 #ifdef __GNU_LIBRARY__
5610 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5617 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5619 ac_cv_gnu_library_2_1
=yes
5622 ac_cv_gnu_library_2_1
=no
5630 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5632 GLIBC21
="$ac_cv_gnu_library_2_1"
5636 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5637 stdlib.h string.h unistd.h sys
/param.h
5639 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5641 echo "configure:5642: checking for $ac_hdr" >&5
5642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 cat > conftest.
$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5650 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5651 { (eval echo configure
:5652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5652 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5653 if test -z "$ac_err"; then
5655 eval "ac_cv_header_$ac_safe=yes"
5658 echo "configure: failed program was:" >&5
5659 cat conftest.
$ac_ext >&5
5661 eval "ac_cv_header_$ac_safe=no"
5665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5666 echo "$ac_t""yes" 1>&6
5667 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5668 cat >> confdefs.h
<<EOF
5669 #define $ac_tr_hdr 1
5673 echo "$ac_t""no" 1>&6
5677 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5678 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5679 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5682 echo "configure:5683: checking for $ac_func" >&5
5683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5684 echo $ac_n "(cached) $ac_c" 1>&6
5686 cat > conftest.
$ac_ext <<EOF
5687 #line 5688 "configure"
5688 #include "confdefs.h"
5689 /* System header to define __stub macros and hopefully few prototypes,
5690 which can conflict with char $ac_func(); below. */
5692 /* Override any gcc2 internal prototype to avoid an error. */
5693 /* We use char because int might match the return type of a gcc2
5694 builtin and then its argument prototype would still apply. */
5699 /* The GNU C library defines this for functions which it implements
5700 to always fail with ENOSYS. Some functions are actually named
5701 something starting with __ and the normal name is an alias. */
5702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5710 if { (eval echo configure
:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5712 eval "ac_cv_func_$ac_func=yes"
5714 echo "configure: failed program was:" >&5
5715 cat conftest.
$ac_ext >&5
5717 eval "ac_cv_func_$ac_func=no"
5722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5723 echo "$ac_t""yes" 1>&6
5724 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5725 cat >> confdefs.h
<<EOF
5726 #define $ac_tr_func 1
5730 echo "$ac_t""no" 1>&6
5737 am_cv_lib_iconv_ldpath
=
5738 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5739 if test "${with_libiconv_prefix+set}" = set; then
5740 withval
="$with_libiconv_prefix"
5742 for dir
in `echo "$withval" | tr : ' '`; do
5743 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5744 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5750 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5751 echo "configure:5752: checking for iconv" >&5
5752 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5756 am_cv_func_iconv
="no, consider installing GNU libiconv"
5758 cat > conftest.
$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5764 iconv_t cd = iconv_open("","");
5765 iconv(cd,NULL,NULL,NULL,NULL);
5769 if { (eval echo configure
:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5771 am_cv_func_iconv
=yes
5773 echo "configure: failed program was:" >&5
5774 cat conftest.
$ac_ext >&5
5777 if test "$am_cv_func_iconv" != yes; then
5778 am_save_LIBS
="$LIBS"
5779 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5780 cat > conftest.
$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5786 iconv_t cd = iconv_open("","");
5787 iconv(cd,NULL,NULL,NULL,NULL);
5791 if { (eval echo configure
:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5794 am_cv_func_iconv
=yes
5796 echo "configure: failed program was:" >&5
5797 cat conftest.
$ac_ext >&5
5800 LIBS
="$am_save_LIBS"
5805 echo "$ac_t""$am_cv_func_iconv" 1>&6
5806 if test "$am_cv_func_iconv" = yes; then
5807 cat >> confdefs.h
<<\EOF
5808 #define HAVE_ICONV 1
5811 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5812 echo "configure:5813: checking for iconv declaration" >&5
5813 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5817 cat > conftest.
$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5827 #if defined(__STDC__) || defined(__cplusplus)
5828 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5837 if { (eval echo configure
:5838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5839 am_cv_proto_iconv_arg1
=""
5841 echo "configure: failed program was:" >&5
5842 cat conftest.
$ac_ext >&5
5844 am_cv_proto_iconv_arg1
="const"
5847 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);"
5850 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5851 echo "$ac_t""${ac_t:-
5852 }$am_cv_proto_iconv" 1>&6
5853 cat >> confdefs.h
<<EOF
5854 #define ICONV_CONST $am_cv_proto_iconv_arg1
5859 if test "$am_cv_lib_iconv" = yes; then
5860 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5865 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5866 echo "configure:5867: checking for nl_langinfo and CODESET" >&5
5867 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5870 cat > conftest.
$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 #include <langinfo.h>
5875 char* cs = nl_langinfo(CODESET);
5878 if { (eval echo configure
:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5880 am_cv_langinfo_codeset
=yes
5882 echo "configure: failed program was:" >&5
5883 cat conftest.
$ac_ext >&5
5885 am_cv_langinfo_codeset
=no
5891 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5892 if test $am_cv_langinfo_codeset = yes; then
5893 cat >> confdefs.h
<<\EOF
5894 #define HAVE_LANGINFO_CODESET 1
5899 if test $ac_cv_header_locale_h = yes; then
5900 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5901 echo "configure:5902: checking for LC_MESSAGES" >&5
5902 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5903 echo $ac_n "(cached) $ac_c" 1>&6
5905 cat > conftest.
$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5913 if { (eval echo configure
:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5915 am_cv_val_LC_MESSAGES
=yes
5917 echo "configure: failed program was:" >&5
5918 cat conftest.
$ac_ext >&5
5920 am_cv_val_LC_MESSAGES
=no
5925 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5926 if test $am_cv_val_LC_MESSAGES = yes; then
5927 cat >> confdefs.h
<<\EOF
5928 #define HAVE_LC_MESSAGES 1
5933 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5934 echo "configure:5935: checking whether NLS is requested" >&5
5935 # Check whether --enable-nls or --disable-nls was given.
5936 if test "${enable_nls+set}" = set; then
5937 enableval
="$enable_nls"
5943 echo "$ac_t""$USE_NLS" 1>&6
5946 BUILD_INCLUDED_LIBINTL
=no
5947 USE_INCLUDED_LIBINTL
=no
5951 if test "$USE_NLS" = "yes"; then
5952 cat >> confdefs.h
<<\EOF
5953 #define ENABLE_NLS 1
5956 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5957 echo "configure:5958: checking whether included gettext is requested" >&5
5958 # Check whether --with-included-gettext or --without-included-gettext was given.
5959 if test "${with_included_gettext+set}" = set; then
5960 withval
="$with_included_gettext"
5961 nls_cv_force_use_gnu_gettext
=$withval
5963 nls_cv_force_use_gnu_gettext
=no
5966 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5968 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5969 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5975 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5976 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5977 echo "configure:5978: checking for libintl.h" >&5
5978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5979 echo $ac_n "(cached) $ac_c" 1>&6
5981 cat > conftest.
$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 #include <libintl.h>
5986 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5987 { (eval echo configure
:5988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5988 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5989 if test -z "$ac_err"; then
5991 eval "ac_cv_header_$ac_safe=yes"
5994 echo "configure: failed program was:" >&5
5995 cat conftest.
$ac_ext >&5
5997 eval "ac_cv_header_$ac_safe=no"
6001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6002 echo "$ac_t""yes" 1>&6
6003 cat >> confdefs.h
<<\EOF
6004 #define HAVE_LIBINTL_H 1
6007 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6008 echo "configure:6009: checking for GNU gettext in libc" >&5
6009 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6012 cat > conftest.
$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 #include <libintl.h>
6016 extern int _nl_msg_cat_cntr;
6018 bindtextdomain ("", "");
6019 return (int) gettext ("") + _nl_msg_cat_cntr
6022 if { (eval echo configure
:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6024 gt_cv_func_gnugettext1_libc
=yes
6026 echo "configure: failed program was:" >&5
6027 cat conftest.
$ac_ext >&5
6029 gt_cv_func_gnugettext1_libc
=no
6034 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6036 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6037 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6038 echo "configure:6039: checking for GNU gettext in libintl" >&5
6039 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 gt_save_LIBS
="$LIBS"
6043 LIBS
="$LIBS -lintl $LIBICONV"
6044 cat > conftest.
$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <libintl.h>
6048 extern int _nl_msg_cat_cntr;
6050 bindtextdomain ("", "");
6051 return (int) gettext ("") + _nl_msg_cat_cntr
6054 if { (eval echo configure
:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6056 gt_cv_func_gnugettext1_libintl
=yes
6058 echo "configure: failed program was:" >&5
6059 cat conftest.
$ac_ext >&5
6061 gt_cv_func_gnugettext1_libintl
=no
6064 LIBS
="$gt_save_LIBS"
6067 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6070 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6071 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6072 && test "$PACKAGE" != gettext; }; then
6073 cat >> confdefs.h
<<\EOF
6074 #define HAVE_GETTEXT 1
6078 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6079 INTLLIBS
="-lintl $LIBICONV"
6082 gt_save_LIBS
="$LIBS"
6083 LIBS
="$LIBS $INTLLIBS"
6084 for ac_func
in dcgettext
6086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_func" >&5
6088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.
$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 /* System header to define __stub macros and hopefully few prototypes,
6095 which can conflict with char $ac_func(); below. */
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6115 if { (eval echo configure
:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6117 eval "ac_cv_func_$ac_func=yes"
6119 echo "configure: failed program was:" >&5
6120 cat conftest.
$ac_ext >&5
6122 eval "ac_cv_func_$ac_func=no"
6127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6130 cat >> confdefs.h
<<EOF
6131 #define $ac_tr_func 1
6135 echo "$ac_t""no" 1>&6
6139 LIBS
="$gt_save_LIBS"
6141 # Extract the first word of "msgfmt", so it can be a program name with args.
6142 set dummy msgfmt
; ac_word
=$2
6143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6144 echo "configure:6145: checking for $ac_word" >&5
6145 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6146 echo $ac_n "(cached) $ac_c" 1>&6
6150 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6154 for ac_dir
in $PATH; do
6155 test -z "$ac_dir" && ac_dir
=.
6156 if test -f $ac_dir/$ac_word; then
6157 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6158 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6164 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6168 MSGFMT
="$ac_cv_path_MSGFMT"
6169 if test "$MSGFMT" != ":"; then
6170 echo "$ac_t""$MSGFMT" 1>&6
6172 echo "$ac_t""no" 1>&6
6175 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6176 set dummy gmsgfmt
; ac_word
=$2
6177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6178 echo "configure:6179: checking for $ac_word" >&5
6179 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6184 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6187 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6190 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6192 for ac_dir
in $ac_dummy; do
6193 test -z "$ac_dir" && ac_dir
=.
6194 if test -f $ac_dir/$ac_word; then
6195 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6200 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6204 GMSGFMT
="$ac_cv_path_GMSGFMT"
6205 if test -n "$GMSGFMT"; then
6206 echo "$ac_t""$GMSGFMT" 1>&6
6208 echo "$ac_t""no" 1>&6
6212 # Extract the first word of "xgettext", so it can be a program name with args.
6213 set dummy xgettext
; ac_word
=$2
6214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6215 echo "configure:6216: checking for $ac_word" >&5
6216 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6221 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6224 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6225 for ac_dir
in $PATH; do
6226 test -z "$ac_dir" && ac_dir
=.
6227 if test -f $ac_dir/$ac_word; then
6228 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6229 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6235 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6239 XGETTEXT
="$ac_cv_path_XGETTEXT"
6240 if test "$XGETTEXT" != ":"; then
6241 echo "$ac_t""$XGETTEXT" 1>&6
6243 echo "$ac_t""no" 1>&6
6251 echo "$ac_t""no" 1>&6
6255 if test "$CATOBJEXT" = "NONE"; then
6256 nls_cv_use_gnu_gettext
=yes
6260 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6261 INTLOBJS
="\$(GETTOBJS)"
6262 # Extract the first word of "msgfmt", so it can be a program name with args.
6263 set dummy msgfmt
; ac_word
=$2
6264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6265 echo "configure:6266: checking for $ac_word" >&5
6266 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6271 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6274 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6275 for ac_dir
in $PATH; do
6276 test -z "$ac_dir" && ac_dir
=.
6277 if test -f $ac_dir/$ac_word; then
6278 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6279 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6285 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6289 MSGFMT
="$ac_cv_path_MSGFMT"
6290 if test "$MSGFMT" != ":"; then
6291 echo "$ac_t""$MSGFMT" 1>&6
6293 echo "$ac_t""no" 1>&6
6296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6297 set dummy gmsgfmt
; ac_word
=$2
6298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_word" >&5
6300 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6305 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6308 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6311 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6313 for ac_dir
in $ac_dummy; do
6314 test -z "$ac_dir" && ac_dir
=.
6315 if test -f $ac_dir/$ac_word; then
6316 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6321 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6325 GMSGFMT
="$ac_cv_path_GMSGFMT"
6326 if test -n "$GMSGFMT"; then
6327 echo "$ac_t""$GMSGFMT" 1>&6
6329 echo "$ac_t""no" 1>&6
6332 # Extract the first word of "xgettext", so it can be a program name with args.
6333 set dummy xgettext
; ac_word
=$2
6334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6335 echo "configure:6336: checking for $ac_word" >&5
6336 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6337 echo $ac_n "(cached) $ac_c" 1>&6
6341 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6344 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6345 for ac_dir
in $PATH; do
6346 test -z "$ac_dir" && ac_dir
=.
6347 if test -f $ac_dir/$ac_word; then
6348 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6349 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6355 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6359 XGETTEXT
="$ac_cv_path_XGETTEXT"
6360 if test "$XGETTEXT" != ":"; then
6361 echo "$ac_t""$XGETTEXT" 1>&6
6363 echo "$ac_t""no" 1>&6
6367 BUILD_INCLUDED_LIBINTL
=yes
6368 USE_INCLUDED_LIBINTL
=yes
6370 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6371 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6372 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6375 if test "$GMSGFMT" != ":"; then
6376 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6379 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6384 if test "$XGETTEXT" != ":"; then
6385 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6388 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6398 if test "$PACKAGE" = gettext; then
6399 BUILD_INCLUDED_LIBINTL
=yes
6402 for ac_prog
in bison
6404 # Extract the first word of "$ac_prog", so it can be a program name with args.
6405 set dummy
$ac_prog; ac_word
=$2
6406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6407 echo "configure:6408: checking for $ac_word" >&5
6408 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6409 echo $ac_n "(cached) $ac_c" 1>&6
6411 if test -n "$INTLBISON"; then
6412 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6414 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6416 for ac_dir
in $ac_dummy; do
6417 test -z "$ac_dir" && ac_dir
=.
6418 if test -f $ac_dir/$ac_word; then
6419 ac_cv_prog_INTLBISON
="$ac_prog"
6426 INTLBISON
="$ac_cv_prog_INTLBISON"
6427 if test -n "$INTLBISON"; then
6428 echo "$ac_t""$INTLBISON" 1>&6
6430 echo "$ac_t""no" 1>&6
6433 test -n "$INTLBISON" && break
6436 if test -z "$INTLBISON"; then
6439 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6440 echo "configure:6441: checking version of bison" >&5
6441 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6442 case $ac_prog_version in
6443 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6444 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6445 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6446 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6448 echo "$ac_t""$ac_prog_version" 1>&6
6450 if test $ac_verc_fail = yes; then
6463 if test $USE_INCLUDED_LIBINTL = yes; then
6464 cat >> confdefs.h
<<\EOF
6465 #define USE_INCLUDED_LIBINTL 1
6471 nls_cv_header_libgt
=
6483 if test "x$CATOBJEXT" != x
; then
6484 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6485 echo "configure:6486: checking for catalogs to be installed" >&5
6486 # Look for .po and .gmo files in the source directory.
6489 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6490 # If there aren't any .gmo files the shell will give us the
6491 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6493 case "$cat" in *\
**)
6496 # The quadruple backslash is collapsed to a double backslash
6497 # by the backticks, then collapsed again by the double quotes,
6498 # leaving us with one backslash in the sed expression (right
6499 # before the dot that mustn't act as a wildcard). The dot to
6500 # be escaped in the second expression is hiding inside CATOBJEXT.
6501 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6502 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6503 # The user is allowed to set LINGUAS to a list of languages to
6504 # install catalogs for. If it's empty that means "all of them."
6505 if test "x$LINGUAS" = x
; then
6506 CATALOGS
="$CATALOGS $cat"
6507 XLINGUAS
="$XLINGUAS $lang"
6509 case "$LINGUAS" in *$lang*)
6510 CATALOGS
="$CATALOGS $cat"
6511 XLINGUAS
="$XLINGUAS $lang"
6517 echo "$ac_t""$LINGUAS" 1>&6
6521 if test -n "$ac_aux_dir"; then
6522 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6524 if test -z "$MKINSTALLDIRS"; then
6525 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6529 INTL_LIBTOOL_SUFFIX_PREFIX
=
6533 # Windows32 Registry support for specifying GCC installation paths.
6534 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6535 if test "${enable_win32_registry+set}" = set; then
6536 enableval
="$enable_win32_registry"
6541 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6542 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6543 echo "configure:6544: checking whether windows registry support is requested" >&5
6544 if test "x$enable_win32_registry" != xno
; then
6545 cat >> confdefs.h
<<\EOF
6546 #define ENABLE_WIN32_REGISTRY 1
6549 echo "$ac_t""yes" 1>&6
6551 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6552 echo "configure:6553: checking for library containing RegOpenKeyExA" >&5
6553 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6556 ac_func_search_save_LIBS
="$LIBS"
6557 ac_cv_search_RegOpenKeyExA
="no"
6558 cat > conftest.
$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6561 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6564 char RegOpenKeyExA();
6570 if { (eval echo configure
:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6572 ac_cv_search_RegOpenKeyExA
="none required"
6574 echo "configure: failed program was:" >&5
6575 cat conftest.
$ac_ext >&5
6578 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6579 LIBS
="-l$i $ac_func_search_save_LIBS"
6580 cat > conftest.
$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char RegOpenKeyExA();
6592 if { (eval echo configure
:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6594 ac_cv_search_RegOpenKeyExA
="-l$i"
6597 echo "configure: failed program was:" >&5
6598 cat conftest.
$ac_ext >&5
6602 LIBS
="$ac_func_search_save_LIBS"
6605 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6606 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6607 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6613 echo "$ac_t""no" 1>&6
6616 # Check if user specified a different registry key.
6617 case "x${enable_win32_registry}" in
6620 gcc_cv_win32_registry_key
="$VERSION"
6623 # no registry lookup.
6624 gcc_cv_win32_registry_key
=''
6627 # user-specified key.
6628 gcc_cv_win32_registry_key
="$enable_win32_registry"
6632 if test "x$enable_win32_registry" != xno
; then
6633 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6634 echo "configure:6635: checking registry key on windows hosts" >&5
6635 cat >> confdefs.h
<<EOF
6636 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6639 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6644 # Get an absolute path to the GCC top-level source directory
6645 holddir
=`${PWDCMD-pwd}`
6647 topdir
=`${PWDCMD-pwd}`
6650 # Conditionalize the makefile for this host machine.
6651 # Make-host contains the concatenation of all host makefile fragments
6652 # [there can be more than one]. This file is built by configure.frag.
6653 host_overrides
=Make-host
6654 dep_host_xmake_file
=
6655 for f
in ..
${host_xmake_file}
6657 if test -f ${srcdir}/config
/$f
6659 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6663 # Conditionalize the makefile for this target machine.
6664 # Make-target contains the concatenation of all host makefile fragments
6665 # [there can be more than one]. This file is built by configure.frag.
6666 target_overrides
=Make-target
6668 for f
in ..
${tmake_file}
6670 if test -f ${srcdir}/config
/$f
6672 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6676 # If the host doesn't support symlinks, modify CC in
6677 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6678 # Otherwise, we can use "CC=$(CC)".
6680 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6682 cc_set_by_configure
="\$(CC)"
6683 quoted_cc_set_by_configure
="\$(CC)"
6684 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6685 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6688 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6690 symbolic_link
="cp -p"
6694 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6695 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6696 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6697 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6701 out_object_file
=`basename $out_file .c`.o
6704 for f
in $tm_file; do
6707 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6709 tm_file_list
="${tm_file_list} \$(srcdir)/$f" ;;
6710 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6715 for f
in $tm_p_file; do
6716 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6720 for f
in $host_xm_file; do
6723 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6725 host_xm_file_list
="${host_xm_file_list} $f" ;;
6727 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6728 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6733 for f
in $build_xm_file; do
6736 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6737 auto-build.h | auto-host.h
)
6738 build_xm_file_list
="${build_xm_file_list} $f" ;;
6740 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6741 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6745 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6746 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6749 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6750 if test x
$host != x
$target
6752 CROSS
="-DCROSS_COMPILE"
6754 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6755 case "$host","$target" in
6756 i?
86-*-*,x86_64-
*-* \
6757 | powerpc
*-*-*,powerpc64
*-*-*)
6758 CROSS
="$CROSS -DNATIVE_CROSS" ;;
6762 # If this is a cross-compiler that does not
6763 # have its own set of headers then define
6766 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6767 # This prevents libgcc2 from containing any code which requires libc
6770 if test x
$host != x
$target && test x
$with_headers = x
; then
6771 inhibit_libc
=-Dinhibit_libc
6773 if test x
$with_newlib = xyes
; then
6774 inhibit_libc
=-Dinhibit_libc
6779 # When building gcc with a cross-compiler, we need to adjust things so
6780 # that the generator programs are still built with the native compiler.
6781 # Also, we cannot run fixincludes or fix-header.
6782 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6785 # These are the normal (build=host) settings:
6787 BUILD_PREFIX_1
=ignore-
6789 HOST_CFLAGS
='$(ALL_CFLAGS)'
6791 STMP_FIXINC
=stmp-fixinc
6792 STMP_FIXPROTO
=stmp-fixproto
6794 # And these apply if build != host.
6795 if test x
$build != x
$host
6798 BUILD_PREFIX_1
=build-
6799 HOST_CC
='$(CC_FOR_BUILD)'
6800 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6806 # Expand extra_headers to include complete path.
6807 # This substitutes for lots of t-* files.
6809 if test "x$extra_headers" = x
6812 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6813 for file in $extra_headers;
6815 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6819 if test x
$use_collect2 = xno
; then
6823 # Add a definition of USE_COLLECT2 if system wants one.
6824 if test x
$use_collect2 != x
6826 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6827 xm_defines
="${xm_defines} USE_COLLECT2"
6830 # If we have gas in the build tree, make a link to it.
6831 if test -f ..
/gas
/Makefile
; then
6832 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6835 # If we have nm and objdump in the build tree, make a link to them.
6836 if test -f ..
/binutils
/Makefile
; then
6837 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6838 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6841 # If we have ld in the build tree, make a link to it.
6842 if test -f ..
/ld
/Makefile
; then
6843 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6846 # Figure out what assembler we will be using.
6847 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6848 echo "configure:6849: checking what assembler to use" >&5
6850 gcc_cv_gas_major_version
=
6851 gcc_cv_gas_minor_version
=
6852 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6853 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6854 if test -x "$DEFAULT_ASSEMBLER"; then
6855 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6856 elif test -x "$AS"; then
6858 elif test -x as
$host_exeext; then
6859 # Build using assembler in the current directory.
6860 gcc_cv_as
=.
/as
$host_exeext
6861 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6862 # Single tree build which includes gas.
6863 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
6865 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6866 if test x
$gcc_cv_gas_version != x
; then
6870 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6871 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6872 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
6875 if test "x$gcc_cv_as" = x
; then
6876 # Search the same directories that the installed compiler will
6877 # search. Else we may find the wrong assembler and lose. If we
6878 # do not find a suitable assembler binary, then try the user's
6881 # Also note we have to check MD_EXEC_PREFIX before checking the
6882 # user's path. Unfortunately, there is no good way to get at the
6883 # value of MD_EXEC_PREFIX here. So we do a brute force search
6884 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6885 # to be fixed as part of the make/configure rewrite too.
6887 if test "x$exec_prefix" = xNONE
; then
6888 if test "x$prefix" = xNONE
; then
6889 test_prefix
=/usr
/local
6894 test_prefix
=$exec_prefix
6897 # If the loop below does not find an assembler, then use whatever
6898 # one we can find in the users's path.
6900 if test "x$program_prefix" != xNONE
; then
6901 gcc_cv_as
=${program_prefix}as
$host_exeext
6903 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
6906 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
6907 $test_prefix/lib/gcc-lib/$target_alias \
6908 /usr/lib/gcc/$target_alias/$gcc_version \
6909 /usr/lib/gcc/$target_alias \
6910 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
6911 $test_prefix/$target_alias/bin"
6913 if test x
$host = x
$target; then
6914 test_dirs
="$test_dirs \
6919 /bsd43/usr/lib/cmplrs/cc \
6920 /usr/cross64/usr/bin \
6921 /usr/lib/cmplrs/cc \
6922 /sysv/usr/lib/cmplrs/cc \
6923 /svr4/usr/lib/cmplrs/cc \
6927 for dir
in $test_dirs; do
6928 if test -x $dir/as
$host_exeext; then
6929 gcc_cv_as
=$dir/as
$host_exeext
6934 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6935 echo "$ac_t"""newly built gas
"" 1>&6
6937 echo "$ac_t""$gcc_cv_as" 1>&6
6940 # Figure out what linker we will be using.
6941 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6942 echo "configure:6943: checking what linker to use" >&5
6944 gcc_cv_gld_major_version
=
6945 gcc_cv_gld_minor_version
=
6946 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6947 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6948 if test -x "$DEFAULT_LINKER"; then
6949 gcc_cv_ld
="$DEFAULT_LINKER"
6950 elif test -x "$LD"; then
6952 elif test -x ld
$host_exeext; then
6953 # Build using linker in the current directory.
6954 gcc_cv_ld
=.
/ld
$host_exeext
6955 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
6956 # Single tree build which includes ld.
6957 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
6959 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6960 if test x
$gcc_cv_gld_version != x
; then
6964 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6965 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6968 if test "x$gcc_cv_ld" = x
; then
6969 # Search the same directories that the installed compiler will
6970 # search. Else we may find the wrong linker and lose. If we
6971 # do not find a suitable linker binary, then try the user's
6974 # Also note we have to check MD_EXEC_PREFIX before checking the
6975 # user's path. Unfortunately, there is no good way to get at the
6976 # value of MD_EXEC_PREFIX here. So we do a brute force search
6977 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6978 # to be fixed as part of the make/configure rewrite too.
6980 if test "x$exec_prefix" = xNONE
; then
6981 if test "x$prefix" = xNONE
; then
6982 test_prefix
=/usr
/local
6987 test_prefix
=$exec_prefix
6990 # If the loop below does not find an linker, then use whatever
6991 # one we can find in the users's path.
6993 if test "x$program_prefix" != xNONE
; then
6994 gcc_cv_ld
=${program_prefix}ld
$host_exeext
6996 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
6999 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7000 $test_prefix/lib/gcc-lib/$target_alias \
7001 /usr/lib/gcc/$target_alias/$gcc_version \
7002 /usr/lib/gcc/$target_alias \
7003 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7004 $test_prefix/$target_alias/bin"
7006 if test x
$host = x
$target; then
7007 test_dirs
="$test_dirs \
7012 /bsd43/usr/lib/cmplrs/cc \
7013 /usr/cross64/usr/bin \
7014 /usr/lib/cmplrs/cc \
7015 /sysv/usr/lib/cmplrs/cc \
7016 /svr4/usr/lib/cmplrs/cc \
7020 for dir
in $test_dirs; do
7021 if test -x $dir/ld
$host_exeext; then
7022 gcc_cv_ld
=$dir/ld
$host_exeext
7027 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7028 echo "$ac_t"""newly built ld
"" 1>&6
7030 echo "$ac_t""$gcc_cv_ld" 1>&6
7033 # Figure out what nm we will be using.
7034 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7035 echo "configure:7036: checking what nm to use" >&5
7036 if test -x nm
$host_exeext; then
7037 gcc_cv_nm
=.
/nm
$host_exeext
7038 elif test "x$program_prefix" != xNONE
; then
7039 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7041 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7043 echo "$ac_t""$gcc_cv_nm" 1>&6
7045 # Figure out what objdump we will be using.
7046 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7047 echo "configure:7048: checking what objdump to use" >&5
7048 if test -x objdump
$host_exeext; then
7049 gcc_cv_objdump
=.
/objdump
$host_exeext
7050 elif test "x$program_prefix" != xNONE
; then
7051 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7053 gcc_cv_objdump
=`echo objdump | sed ${program_transform_name}`$host_exeext
7055 echo "$ac_t""$gcc_cv_objdump" 1>&6
7057 # Figure out what assembler alignment features are present.
7058 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7059 echo "configure:7060: checking assembler alignment features" >&5
7060 gcc_cv_as_alignment_features
=none
7061 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7062 # Gas version 2.6 and later support for .balign and .p2align.
7063 # bytes to skip when using .p2align.
7064 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
7065 gcc_cv_as_alignment_features
=".balign and .p2align"
7066 cat >> confdefs.h
<<\EOF
7067 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7071 # Gas version 2.8 and later support specifying the maximum
7072 # bytes to skip when using .p2align.
7073 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
7074 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7075 cat >> confdefs.h
<<\EOF
7076 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7080 elif test x
$gcc_cv_as != x
; then
7081 # Check if we have .balign and .p2align
7082 echo ".balign 4" > conftest.s
7083 echo ".p2align 2" >> conftest.s
7084 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7085 gcc_cv_as_alignment_features
=".balign and .p2align"
7086 cat >> confdefs.h
<<\EOF
7087 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7091 rm -f conftest.s conftest.o
7092 # Check if specifying the maximum bytes to skip when
7093 # using .p2align is supported.
7094 echo ".p2align 4,,7" > conftest.s
7095 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7096 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7097 cat >> confdefs.h
<<\EOF
7098 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7102 rm -f conftest.s conftest.o
7104 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7106 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7107 echo "configure:7108: checking assembler subsection support" >&5
7108 gcc_cv_as_subsections
=no
7109 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7110 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
7111 gcc_cv_as_subsections
="working .subsection -1"
7113 elif test x
$gcc_cv_as != x
; then
7114 # Check if we have .subsection
7115 echo ".subsection 1" > conftest.s
7116 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7117 gcc_cv_as_subsections
=".subsection"
7118 if test x
$gcc_cv_nm != x
; then
7119 cat > conftest.s
<<EOF
7120 conftest_label1: .word 0
7122 conftest_label2: .word 0
7125 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7126 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7127 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7128 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7131 gcc_cv_as_subsections
="working .subsection -1"
7136 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7138 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7139 cat >> confdefs.h
<<\EOF
7140 #define HAVE_GAS_SUBSECTION_ORDERING 1
7144 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7146 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7147 echo "configure:7148: checking assembler weak support" >&5
7149 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7150 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
7151 gcc_cv_as_weak
="yes"
7153 elif test x
$gcc_cv_as != x
; then
7154 # Check if we have .weak
7155 echo " .weak foobar" > conftest.s
7156 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7157 gcc_cv_as_weak
="yes"
7159 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7161 if test x
"$gcc_cv_as_weak" = xyes
; then
7162 cat >> confdefs.h
<<\EOF
7163 #define HAVE_GAS_WEAK 1
7167 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7169 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7170 echo "configure:7171: checking assembler hidden support" >&5
7172 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7173 if test "$gcc_cv_gas_major_version" -eq 2 \
7174 -a "$gcc_cv_gas_minor_version" -eq 12 \
7175 -a "$gcc_cv_gas_patch_version" -ge 1 \
7176 -o "$gcc_cv_gas_major_version" -eq 2 \
7177 -a "$gcc_cv_gas_minor_version" -gt 12 \
7178 -o "$gcc_cv_gas_major_version" -gt 2 \
7179 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7180 gcc_cv_as_hidden
="yes"
7182 elif test x
$gcc_cv_as != x
; then
7183 # Check if we have .hidden
7184 echo " .hidden foobar" > conftest.s
7185 echo "foobar:" >> conftest.s
7186 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7187 gcc_cv_as_hidden
="yes"
7189 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7191 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7192 # This is irritatingly difficult to feature test for. Look for
7193 # the date string after the version number.
7194 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7195 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7196 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
7197 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'`
7198 if test 0"$ld_date" -lt 20020404; then
7199 if test -n "$ld_date"; then
7200 # If there was date string, but was earlier than 2002-04-04, fail
7201 gcc_cv_as_hidden
="no"
7202 elif test -z "$ld_vers"; then
7203 # If there was no date string nor ld version number, something is wrong
7204 gcc_cv_as_hidden
="no"
7206 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
7207 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
7208 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7209 test -z "$ld_vers_patch" && ld_vers_patch
=0
7210 if test "$ld_vers_major" -lt 2; then
7211 gcc_cv_as_hidden
="no"
7212 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
7213 gcc_cv_as_hidden
="no"
7214 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
7215 -a "$ld_vers_patch" -eq 0; then
7216 gcc_cv_as_hidden
="no"
7222 if test x
"$gcc_cv_as_hidden" = xyes
; then
7223 cat >> confdefs.h
<<\EOF
7224 #define HAVE_GAS_HIDDEN 1
7228 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7229 libgcc_visibility
=$gcc_cv_as_hidden
7232 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7233 echo "configure:7234: checking assembler leb128 support" >&5
7235 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7236 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
7237 gcc_cv_as_leb128
="yes"
7239 elif test x
$gcc_cv_as != x
; then
7240 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7241 cat > conftest.s
<<EOF
7249 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7250 gcc_cv_as_leb128
="yes"
7252 # GAS versions before 2.11 do not support uleb128,
7253 # despite appearing to.
7254 # ??? There exists an elf-specific test that will crash
7255 # the assembler. Perhaps it's better to figure out whether
7256 # arbitrary sections are supported and try the test.
7257 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7258 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7259 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7260 as_major
=`echo $as_ver | sed 's/\..*//'`
7261 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7262 if test $as_major -eq 2 -a $as_minor -lt 11; then
7263 gcc_cv_as_leb128
="no"
7267 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7269 if test x
"$gcc_cv_as_leb128" = xyes
; then
7270 cat >> confdefs.h
<<\EOF
7271 #define HAVE_AS_LEB128 1
7275 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7277 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7278 echo "configure:7279: checking assembler eh_frame optimization" >&5
7279 gcc_cv_as_eh_frame
=no
7280 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7281 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
7282 gcc_cv_as_eh_frame
="yes"
7284 elif test x
$gcc_cv_as != x
; then
7285 # Check if this is GAS.
7286 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7287 rm -f a.out
2> /dev
/null
7288 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7289 # Versions up to and including 2.11.0 may mis-optimize
7290 # .eh_frame data. Try something.
7291 cat > conftest.s
<<EOF
7298 .section .eh_frame,"aw",@progbits
7300 .4byte .LECIE1-.LSCIE1
7314 .4byte .LEFDE1-.LASFDE1
7316 .4byte .LASFDE1-__FRAME_BEGIN__
7325 cat > conftest.lit
<<EOF
7326 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7327 0010 01000000 12000000 18000000 00000000 ................
7328 0020 08000000 04080000 0044 .........D
7330 cat > conftest.big
<<EOF
7331 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7332 0010 00000001 00000012 00000018 00000000 ................
7333 0020 00000008 04000000 0844 .........D
7335 # If the assembler didn't choke, and we can objdump,
7336 # and we got the correct data, then succeed.
7337 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7338 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7339 |
tail -3 > conftest.got \
7340 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7341 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7343 gcc_cv_as_eh_frame
="yes"
7345 gcc_cv_as_eh_frame
="bad"
7346 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7347 cat >> confdefs.h
<<\EOF
7348 #define USE_AS_TRADITIONAL_FORMAT 1
7356 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7358 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7359 echo "configure:7360: checking assembler section merging support" >&5
7360 gcc_cv_as_shf_merge
=no
7361 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7362 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
7363 gcc_cv_as_shf_merge
=yes
7365 elif test x
$gcc_cv_as != x
; then
7366 # Check if we support SHF_MERGE sections
7367 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7368 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7369 gcc_cv_as_shf_merge
=yes
7371 rm -f conftest.s conftest.o
7373 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7374 cat >> confdefs.h
<<\EOF
7375 #define HAVE_GAS_SHF_MERGE 1
7379 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7381 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6
7382 echo "configure:7383: checking assembler thread-local storage support" >&5
7390 .section ".tdata","awT",@progbits
7393 ldq $27,__tls_get_addr($29) !literal!1
7394 lda $16,foo($29) !tlsgd!1
7395 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
7396 ldq $27,__tls_get_addr($29) !literal!2
7397 lda $16,foo($29) !tlsldm!2
7398 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
7399 ldq $1,foo($29) !gotdtprel
7400 ldah $2,foo($29) !dtprelhi
7401 lda $3,foo($2) !dtprello
7402 lda $4,foo($29) !dtprel
7403 ldq $1,foo($29) !gottprel
7404 ldah $2,foo($29) !tprelhi
7405 lda $3,foo($2) !tprello
7406 lda $4,foo($29) !tprel'
7412 .section ".tdata","awT",@progbits
7416 leal foo@TLSGD(,%ebx,1), %eax
7417 leal foo@TLSLDM(%ebx), %eax
7418 leal foo@DTPOFF(%eax), %edx
7419 movl foo@GOTTPOFF(%ebx), %eax
7420 subl foo@GOTTPOFF(%ebx), %eax
7421 movl $foo@TPOFF, %eax
7422 subl $foo@TPOFF, %eax
7423 leal foo@NTPOFF(%ecx), %eax'
7429 .section ".tdata","awT",@progbits
7432 addl r16 = @ltoff(@dtpmod(foo#)), gp
7433 addl r17 = @ltoff(@dtprel(foo#)), gp
7434 addl r18 = @ltoff(@tprel(foo#)), gp
7435 addl r19 = @dtprel(foo#), gp
7436 adds r21 = @dtprel(foo#), r13
7437 movl r23 = @dtprel(foo#)
7438 addl r20 = @tprel(foo#), gp
7439 adds r22 = @tprel(foo#), r13
7440 movl r24 = @tprel(foo#)'
7445 if test -z "$tls_first_major"; then
7447 elif test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7449 if test "$gcc_cv_gas_major_version" -eq "$tls_first_major" \
7450 -a "$gcc_cv_gas_minor_version" -ge "$tls_first_minor" \
7451 -o "$gcc_cv_gas_major_version" -gt "$tls_first_major"; then
7454 elif test x
$gcc_cv_as != x
; then
7455 echo "$conftest_s" > conftest.s
7456 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
7460 rm -f conftest.s conftest.o
7462 if test "$gcc_cv_as_tls" = yes; then
7463 cat >> confdefs.h
<<\EOF
7464 #define HAVE_AS_TLS 1
7468 echo "$ac_t""$gcc_cv_as_tls" 1>&6
7471 # All TARGET_ABI_OSF targets.
7472 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7473 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7474 echo "configure:7475: checking assembler supports explicit relocations" >&5
7475 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7479 gcc_cv_as_explicit_relocs
=unknown
7480 if test x
$gcc_cv_gas_major_version != x \
7481 -a x
$gcc_cv_gas_minor_version != x
7483 if test "$gcc_cv_gas_major_version" -eq 2 \
7484 -a "$gcc_cv_gas_minor_version" -ge 12 \
7485 -o "$gcc_cv_gas_major_version" -gt 2; then
7486 gcc_cv_as_explicit_relocs
=yes
7488 elif test x
$gcc_cv_as != x
; then
7489 cat > conftest.s
<< 'EOF'
7492 extbl
$3, $2, $3 !lituse_bytoff
!1
7493 ldq
$2, a
($29) !literal
!1
7494 ldq
$4, b
($29) !literal
!2
7495 ldq_u
$3, 0($2) !lituse_base
!1
7496 ldq
$27, f
($29) !literal
!5
7497 jsr
$26, ($27), f
!lituse_jsr
!5
7498 ldah
$29, 0($26) !gpdisp
!3
7499 lda
$0, c
($29) !gprel
7500 ldah
$1, d
($29) !gprelhigh
7501 lda
$1, d
($1) !gprellow
7502 lda
$29, 0($29) !gpdisp
!3
7504 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7505 gcc_cv_as_explicit_relocs
=yes
7507 gcc_cv_as_explicit_relocs
=no
7509 rm -f conftest.s conftest.o
7514 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7515 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7516 cat >> confdefs.h
<<\EOF
7517 #define HAVE_AS_EXPLICIT_RELOCS 1
7523 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7524 echo "configure:7525: checking assembler .register pseudo-op support" >&5
7525 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7526 echo $ac_n "(cached) $ac_c" 1>&6
7529 gcc_cv_as_register_pseudo_op
=unknown
7530 if test x
$gcc_cv_as != x
; then
7531 # Check if we have .register
7532 echo ".register %g2, #scratch" > conftest.s
7533 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7534 gcc_cv_as_register_pseudo_op
=yes
7536 gcc_cv_as_register_pseudo_op
=no
7538 rm -f conftest.s conftest.o
7543 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7544 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7545 cat >> confdefs.h
<<\EOF
7546 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7551 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7552 echo "configure:7553: checking assembler supports -relax" >&5
7553 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7554 echo $ac_n "(cached) $ac_c" 1>&6
7557 gcc_cv_as_relax_opt
=unknown
7558 if test x
$gcc_cv_as != x
; then
7559 # Check if gas supports -relax
7560 echo ".text" > conftest.s
7561 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7562 gcc_cv_as_relax_opt
=yes
7564 gcc_cv_as_relax_opt
=no
7566 rm -f conftest.s conftest.o
7571 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7572 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7573 cat >> confdefs.h
<<\EOF
7574 #define HAVE_AS_RELAX_OPTION 1
7579 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7580 echo "configure:7581: checking assembler and linker support unaligned pc related relocs" >&5
7581 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7585 gcc_cv_as_sparc_ua_pcrel
=unknown
7586 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7587 gcc_cv_as_sparc_ua_pcrel
=no
7588 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7589 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7590 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7591 gcc_cv_as_sparc_ua_pcrel
=yes
7593 rm -f conftest.s conftest.o conftest
7598 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7599 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7600 cat >> confdefs.h
<<\EOF
7601 #define HAVE_AS_SPARC_UA_PCREL 1
7606 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
7607 echo "configure:7608: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
7608 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7612 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7613 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
7614 if test x
$gcc_cv_objdump != x
; then
7615 gcc_cv_as_sparc_ua_pcrel_hidden
=no
7616 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
7617 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
7618 echo "foo: .skip 4" >> conftest.s
7619 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7620 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
7621 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
7622 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
7623 if $gcc_cv_objdump -R conftest
2> /dev
/null \
7624 |
grep 'DISP32' > /dev
/null
2>&1; then
7627 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
7631 rm -f conftest.s conftest.o conftest
7633 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
7638 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
7639 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
7640 cat >> confdefs.h
<<\EOF
7641 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
7646 if test "x$gcc_cv_as_flags64" != xno
; then
7647 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7648 echo "configure:7649: checking for assembler offsetable %lo() support" >&5
7649 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7653 gcc_cv_as_offsetable_lo10
=unknown
7654 if test "x$gcc_cv_as" != x
; then
7655 # Check if assembler has offsetable %lo()
7656 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7657 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7658 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7660 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7661 > /dev
/null
2>&1; then
7662 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7663 gcc_cv_as_offsetable_lo10
=no
7665 gcc_cv_as_offsetable_lo10
=yes
7668 gcc_cv_as_offsetable_lo10
=no
7670 rm -f conftest.s conftest.o conftest1.s conftest1.o
7675 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7676 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7677 cat >> confdefs.h
<<\EOF
7678 #define HAVE_AS_OFFSETABLE_LO10 1
7686 i
[34567]86-*-* | x86_64-
*-*)
7687 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7688 echo "configure:7689: checking assembler instructions" >&5
7689 gcc_cv_as_instructions
=
7690 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7691 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
7692 gcc_cv_as_instructions
="filds fists"
7694 elif test x
$gcc_cv_as != x
; then
7695 set "filds fists" "filds mem; fists mem"
7698 echo "$2" > conftest.s
7699 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7700 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7704 rm -f conftest.s conftest.o
7706 if test x
"$gcc_cv_as_instructions" != x
; then
7707 cat >> confdefs.h
<<EOF
7708 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7712 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7714 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7715 echo "configure:7716: checking assembler GOTOFF in data directives" >&5
7716 gcc_cv_as_gotoff_in_data
=no
7717 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7719 if test "$gcc_cv_gas_major_version" -eq 2 \
7720 -a "$gcc_cv_gas_minor_version" -ge 11 \
7721 -o "$gcc_cv_gas_major_version" -gt 2; then
7722 gcc_cv_as_gotoff_in_data
=yes
7724 elif test x
$gcc_cv_as != x
; then
7725 cat > conftest.s
<<EOF
7732 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7733 gcc_cv_as_gotoff_in_data
=yes
7736 cat >> confdefs.h
<<EOF
7737 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7740 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7744 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7745 echo "configure:7746: checking assembler dwarf2 debug_line support" >&5
7746 gcc_cv_as_dwarf2_debug_line
=no
7747 # ??? Not all targets support dwarf2 debug_line, even within a version
7748 # of gas. Moreover, we need to emit a valid instruction to trigger any
7749 # info to the output file. So, as supported targets are added to gas 2.11,
7750 # add some instruction here to (also) show we expect this might work.
7751 # ??? Once 2.11 is released, probably need to add first known working
7752 # version to the per-target configury.
7754 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-* | hppa
*-*-*)
7761 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7763 if test "$gcc_cv_gas_major_version" -eq 2 \
7764 -a "$gcc_cv_gas_minor_version" -ge 11 \
7765 -o "$gcc_cv_gas_major_version" -gt 2 \
7766 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7767 && test x
"$insn" != x
; then
7768 gcc_cv_as_dwarf2_debug_line
="yes"
7770 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7771 echo ' .file 1 "conftest.s"' > conftest.s
7772 echo ' .loc 1 3 0' >> conftest.s
7773 echo " $insn" >> conftest.s
7774 # ??? This fails with non-gnu grep.
7775 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7776 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7777 # The .debug_line file table must be in the exact order that
7778 # we specified the files, since these indices are also used
7779 # by DW_AT_decl_file. Approximate this test by testing if
7780 # the assembler bitches if the same index is assigned twice.
7781 echo ' .file 1 "foo.s"' > conftest.s
7782 echo ' .file 1 "bar.s"' >> conftest.s
7783 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7785 gcc_cv_as_dwarf2_debug_line
="no"
7787 gcc_cv_as_dwarf2_debug_line
="yes"
7790 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7792 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7793 cat >> confdefs.h
<<\EOF
7794 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7798 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7800 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7801 echo "configure:7802: checking assembler --gdwarf2 support" >&5
7802 gcc_cv_as_gdwarf2_flag
=no
7803 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7805 if test "$gcc_cv_gas_major_version" -eq 2 \
7806 -a "$gcc_cv_gas_minor_version" -ge 11 \
7807 -o "$gcc_cv_gas_major_version" -gt 2 \
7808 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7809 && test x
"$insn" != x
; then
7810 gcc_cv_as_gdwarf2_debug_flag
="yes"
7812 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7813 echo '' > conftest.s
7814 # ??? This fails with non-gnu grep.
7815 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7817 gcc_cv_as_gdwarf2_flag
="yes"
7819 rm -f conftest.s conftest.o
7821 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7822 cat >> confdefs.h
<<\EOF
7823 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7827 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7829 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7830 echo "configure:7831: checking assembler --gstabs support" >&5
7831 gcc_cv_as_gstabs_flag
=no
7832 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7834 if test "$gcc_cv_gas_major_version" -eq 2 \
7835 -a "$gcc_cv_gas_minor_version" -ge 11 \
7836 -o "$gcc_cv_gas_major_version" -gt 2 \
7837 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7838 && test x
"$insn" != x
; then
7839 gcc_cv_as_gstabs_debug_flag
="yes"
7841 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7842 echo '' > conftest.s
7843 # ??? This fails with non-gnu grep.
7844 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7845 gcc_cv_as_gstabs_flag
="yes"
7847 rm -f conftest.s conftest.o
7849 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7850 cat >> confdefs.h
<<\EOF
7851 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7855 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7857 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7858 echo "configure:7859: checking linker PT_GNU_EH_FRAME support" >&5
7859 gcc_cv_ld_eh_frame_hdr
=no
7860 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7861 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
7862 gcc_cv_ld_eh_frame_hdr
=yes
7864 elif test x
$gcc_cv_ld != x
; then
7865 # Check if linker supports --eh-frame-hdr option
7866 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7867 gcc_cv_ld_eh_frame_hdr
=yes
7870 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7871 cat >> confdefs.h
<<\EOF
7872 #define HAVE_LD_EH_FRAME_HDR 1
7876 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7878 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7879 cat >> confdefs.h
<<EOF
7880 #define PREFIX_INCLUDE_DIR "$prefix/include"
7885 # Figure out what language subdirectories are present.
7886 # Look if the user specified --enable-languages="..."; if not, use
7887 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7889 # NB: embedded tabs in this IF block -- do not untabify
7890 if test x
"${enable_languages+set}" != xset
; then
7891 if test x
"${LANGUAGES+set}" = xset
; then
7892 enable_languages
="${LANGUAGES}"
7893 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7896 enable_languages
=all
7899 if test x
"${enable_languages}" = x ||
7900 test x
"${enable_languages}" = xyes
;
7902 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7905 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7907 # First scan to see if an enabled language requires some other language.
7908 # We assume that a given config-lang.in will list all the language
7909 # front ends it requires, even if some are required indirectly.
7910 for lang
in ${srcdir}/*/config-lang.
in ..
7915 # The odd quoting in the next line works around
7916 # an apparent bug in bash 1.12 on linux.
7917 ${srcdir}/[*]/config-lang.
in)
7920 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7921 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7922 for other
in $this_lang_requires
7924 case ,${enable_languages}, in
7930 enable_languages
="$enable_languages,$other"
7939 for lang
in ${srcdir}/*/config-lang.
in ..
7943 # The odd quoting in the next line works around
7944 # an apparent bug in bash 1.12 on linux.
7945 ${srcdir}/[*]/config-lang.
in) ;;
7947 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7948 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7949 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7950 if test "x$lang_alias" = x
7952 echo "$lang doesn't set \$language." 1>&2
7955 case ${build_by_default},${enable_languages}, in
7956 *,$lang_alias,*) add_this_lang
=yes ;;
7957 no
,*) add_this_lang
=no
;;
7958 *,all
,*) add_this_lang
=yes ;;
7959 *) add_this_lang
=no
;;
7961 if test x
"${add_this_lang}" = xyes
; then
7963 ${srcdir}/ada
/config-lang.
in)
7964 if test x
$have_gnat = xyes
; then
7965 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7969 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7977 # Make gthr-default.h if we have a thread file.
7979 if test $thread_file != single
; then
7980 rm -f gthr-default.h
7981 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7982 gthread_flags
=-DHAVE_GTHR_DEFAULT
7986 # Find out what GC implementation we want, or may, use.
7987 # Check whether --with-gc or --without-gc was given.
7988 if test "${with_gc+set}" = set; then
7995 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8003 echo "Using $GGC for garbage collection."
8005 # Use the system's zlib library.
8007 zlibinc
="-I\$(srcdir)/../zlib"
8008 # Check whether --with-system-zlib or --without-system-zlib was given.
8009 if test "${with_system_zlib+set}" = set; then
8010 withval
="$with_system_zlib"
8020 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8021 echo "configure:8022: checking whether to enable maintainer-specific portions of Makefiles" >&5
8022 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8023 if test "${enable_maintainer_mode+set}" = set; then
8024 enableval
="$enable_maintainer_mode"
8025 maintainer_mode
=$enableval
8031 echo "$ac_t""$maintainer_mode" 1>&6
8033 if test "$maintainer_mode" = "yes"; then
8039 # With Setjmp/Longjmp based exception handling.
8040 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8041 if test "${enable_sjlj_exceptions+set}" = set; then
8042 enableval
="$enable_sjlj_exceptions"
8043 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8044 cat >> confdefs.h
<<EOF
8045 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8051 # Make empty files to contain the specs and options for each language.
8052 # Then add #include lines to for a compiler that has specs and/or options.
8057 for subdir
in .
$subdirs
8059 if test -f $srcdir/$subdir/lang-specs.h
; then
8060 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8062 if test -f $srcdir/$subdir/lang-options.h
; then
8063 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8065 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8066 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8070 # These (without "all_") are set in each config-lang.in.
8071 # `language' must be a single word so is spelled singularly.
8076 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
8077 # List of language makefile fragments.
8079 # Files for gengtype
8082 # Add the language fragments.
8083 # Languages are added via two mechanisms. Some information must be
8084 # recorded in makefile variables, these are defined in config-lang.in.
8085 # We accumulate them and plug them into the main Makefile.
8086 # The other mechanism is a set of hooks for each of the main targets
8087 # like `clean', `install', etc.
8089 language_fragments
="Make-lang"
8090 language_hooks
="Make-hooks"
8092 for s
in ..
$subdirs
8102 .
${srcdir}/$s/config-lang.
in
8103 if test "x$language" = x
8105 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8108 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8109 if test -f ${srcdir}/$s/Makefile.
in
8110 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8112 all_languages
="$all_languages $language"
8113 if test "x$boot_language" = xyes
8115 all_boot_languages
="$all_boot_languages $language"
8117 all_compilers
="$all_compilers $compilers"
8118 all_stagestuff
="$all_stagestuff $stagestuff"
8119 all_outputs
="$all_outputs $outputs"
8120 all_gtfiles
="$all_gtfiles $gtfiles"
8125 for language
in ..
$all_languages
8127 if test $language != ".."
8129 check_languages
="$check_languages check-$language"
8133 # Since we can't use `::' targets, we link each language in
8134 # with a set of hooks, reached indirectly via lang.${target}.
8138 target_list
="all.build all.cross start.encap rest.encap \
8139 info dvi generated-manpages \
8140 install-normal install-common install-info install-man \
8142 mostlyclean clean distclean extraclean maintainer-clean \
8143 stage1 stage2 stage3 stage4"
8144 for t
in $target_list
8147 for lang
in ..
$all_languages
8149 if test $lang != ".."; then
8153 echo "lang.$t: $x" >> Make-hooks
8158 echo "dir ." > .gdbinit
8159 echo "dir ${srcdir}" >> .gdbinit
8160 if test x
$gdb_needs_out_file_path = xyes
8162 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8164 if test "x$subdirs" != x
; then
8167 echo "dir ${srcdir}/$s" >> .gdbinit
8170 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8172 # Define variables host_canonical and build_canonical
8173 # because some Cygnus local changes in the Makefile depend on them.
8174 build_canonical
=${build}
8175 host_canonical
=${host}
8177 if test "${host}" != "${target}" ; then
8178 target_subdir
=${target_alias}/
8184 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8185 # absolute path for gcc_tooldir based on inserting the number of up-directory
8186 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8187 # $(libsubdir)/@(unlibsubdir) based path.
8188 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8189 # make and thus we'd get different behavior depending on where we built the
8191 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8192 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8194 # An explanation of the sed strings:
8195 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8196 # -e 's|/$||' match a trailing forward slash and eliminates it
8197 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8198 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8200 # (*) Note this pattern overwrites the first character of the string
8201 # with a forward slash if one is not already present. This is not a
8202 # problem because the exact names of the sub-directories concerned is
8203 # unimportant, just the number of them matters.
8205 # The practical upshot of these patterns is like this:
8207 # prefix exec_prefix result
8208 # ------ ----------- ------
8210 # /foo/ /foo/bar ../
8211 # /foo /foo/bar/ ../
8212 # /foo/ /foo/bar/ ../
8213 # /foo /foo/bar/ugg ../../
8216 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8221 # Find a directory in which to install a shared libgcc.
8223 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8224 if test "${enable_version_specific_runtime_libs+set}" = set; then
8225 enableval
="$enable_version_specific_runtime_libs"
8230 # Check whether --with-slibdir or --without-slibdir was given.
8231 if test "${with_slibdir+set}" = set; then
8232 withval
="$with_slibdir"
8233 slibdir
="$with_slibdir"
8235 if test "${enable_version_specific_runtime_libs+set}" = set; then
8236 slibdir
='$(libsubdir)'
8237 elif test "$host" != "$target"; then
8238 slibdir
='$(build_tooldir)/lib'
8246 # Nothing to do for FLOAT_H, float_format already handled.
8247 objdir
=`${PWDCMD-pwd}`
8250 # Process the language and host/target makefile fragments.
8251 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8253 # Substitute configuration variables
8318 # Echo that links are built
8319 if test x
$host = x
$target
8327 if test x
$host != x
$build
8329 str3
=" on a $build system"
8332 if test "x$str2" != x ||
test "x$str3" != x
8337 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8339 if test "x$str2" != x ||
test "x$str3" != x
8341 echo " ${str2}${str3}." 1>&2
8344 # Truncate the target if necessary
8345 if test x
$host_truncate_target != x
; then
8346 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8349 # Configure the subdirectories
8350 # AC_CONFIG_SUBDIRS($subdirs)
8352 # Create the Makefile
8353 # and configure language subdirectories
8355 cat > confcache
<<\EOF
8356 # This file is a shell script that caches the results of configure
8357 # tests run on this system so they can be shared between configure
8358 # scripts and configure runs. It is not useful on other systems.
8359 # If it contains results you don't want to keep, you may remove or edit it.
8361 # By default, configure uses ./config.cache as the cache file,
8362 # creating it if it does not exist already. You can give configure
8363 # the --cache-file=FILE option to use a different cache file; that is
8364 # what configure does when it calls configure scripts in
8365 # subdirectories, so they share the cache.
8366 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8367 # config.status only pays attention to the cache file if you give it the
8368 # --recheck option to rerun configure.
8371 # The following way of writing the cache mishandles newlines in values,
8372 # but we know of no workaround that is simple, portable, and efficient.
8373 # So, don't put newlines in cache variables' values.
8374 # Ultrix sh set writes to stderr and can't be redirected directly,
8375 # and sets the high bit in the cache file unless we assign to the vars.
8377 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8379 # `set' does not quote correctly, so add quotes (double-quote substitution
8380 # turns \\\\ into \\, and sed turns \\ into \).
8382 -e "s/'/'\\\\''/g" \
8383 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8386 # `set' quotes correctly as required by POSIX, so do not add quotes.
8387 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8390 if cmp -s $cache_file confcache
; then
8393 if test -w $cache_file; then
8394 echo "updating cache $cache_file"
8395 cat confcache
> $cache_file
8397 echo "not updating unwritable cache $cache_file"
8402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8404 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8405 # Let make expand exec_prefix.
8406 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8408 # Any assignment to VPATH causes Sun make to only execute
8409 # the first set of double-colon rules, so remove it if not needed.
8410 # If there is a colon in the path, we need to keep it.
8411 if test "x$srcdir" = x.
; then
8412 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8415 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8417 DEFS
=-DHAVE_CONFIG_H
8419 # Without the "./", some shells look in PATH for config.status.
8420 : ${CONFIG_STATUS=./config.status}
8422 echo creating
$CONFIG_STATUS
8423 rm -f $CONFIG_STATUS
8424 cat > $CONFIG_STATUS <<EOF
8426 # Generated automatically by configure.
8427 # Run this file to recreate the current configuration.
8428 # This directory was configured as follows,
8429 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8431 # $0 $ac_configure_args
8433 # Compiler output produced by configure, useful for debugging
8434 # configure, is in ./config.log if it exists.
8436 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8439 case "\$ac_option" in
8440 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8441 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8442 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8443 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8444 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8446 -help | --help | --hel | --he | --h)
8447 echo "\$ac_cs_usage"; exit 0 ;;
8448 *) echo "\$ac_cs_usage"; exit 1 ;;
8452 ac_given_srcdir=$srcdir
8454 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8456 cat >> $CONFIG_STATUS <<EOF
8458 # Protect against being on the right side of a sed subst in config.status.
8459 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8460 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8464 s%@CFLAGS@%$CFLAGS%g
8465 s%@CPPFLAGS@%$CPPFLAGS%g
8466 s%@CXXFLAGS@%$CXXFLAGS%g
8467 s%@FFLAGS@%$FFLAGS%g
8469 s%@LDFLAGS@%$LDFLAGS%g
8471 s%@exec_prefix@%$exec_prefix%g
8472 s%@prefix@%$prefix%g
8473 s%@program_transform_name@%$program_transform_name%g
8474 s%@bindir@%$bindir%g
8475 s%@sbindir@%$sbindir%g
8476 s%@libexecdir@%$libexecdir%g
8477 s%@datadir@%$datadir%g
8478 s%@sysconfdir@%$sysconfdir%g
8479 s%@sharedstatedir@%$sharedstatedir%g
8480 s%@localstatedir@%$localstatedir%g
8481 s%@libdir@%$libdir%g
8482 s%@includedir@%$includedir%g
8483 s%@oldincludedir@%$oldincludedir%g
8484 s%@infodir@%$infodir%g
8485 s%@mandir@%$mandir%g
8486 s%@enable_multilib@%$enable_multilib%g
8487 s%@enable_shared@%$enable_shared%g
8489 s%@host_alias@%$host_alias%g
8490 s%@host_cpu@%$host_cpu%g
8491 s%@host_vendor@%$host_vendor%g
8492 s%@host_os@%$host_os%g
8493 s%@target@%$target%g
8494 s%@target_alias@%$target_alias%g
8495 s%@target_cpu@%$target_cpu%g
8496 s%@target_vendor@%$target_vendor%g
8497 s%@target_os@%$target_os%g
8499 s%@build_alias@%$build_alias%g
8500 s%@build_cpu@%$build_cpu%g
8501 s%@build_vendor@%$build_vendor%g
8502 s%@build_os@%$build_os%g
8504 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8505 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8506 s%@GNATBIND@%$GNATBIND%g
8508 s%@strict1_warn@%$strict1_warn%g
8510 s%@warn_cflags@%$warn_cflags%g
8511 s%@stage1_cflags@%$stage1_cflags%g
8512 s%@SET_MAKE@%$SET_MAKE%g
8516 s%@RANLIB@%$RANLIB%g
8517 s%@INSTALL@%$INSTALL%g
8518 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8519 s%@INSTALL_DATA@%$INSTALL_DATA%g
8520 s%@have_mktemp_command@%$have_mktemp_command%g
8521 s%@MAKEINFO@%$MAKEINFO%g
8522 s%@BUILD_INFO@%$BUILD_INFO%g
8523 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8526 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8527 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8528 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8529 s%@LIBICONV@%$LIBICONV%g
8530 s%@manext@%$manext%g
8531 s%@objext@%$objext%g
8532 s%@FORBUILD@%$FORBUILD%g
8533 s%@PACKAGE@%$PACKAGE%g
8534 s%@VERSION@%$VERSION%g
8535 s%@ALLOCA@%$ALLOCA%g
8536 s%@GLIBC21@%$GLIBC21%g
8537 s%@USE_NLS@%$USE_NLS%g
8538 s%@MSGFMT@%$MSGFMT%g
8539 s%@GMSGFMT@%$GMSGFMT%g
8540 s%@XGETTEXT@%$XGETTEXT%g
8541 s%@INTLBISON@%$INTLBISON%g
8542 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8543 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8544 s%@CATALOGS@%$CATALOGS%g
8545 s%@CATOBJEXT@%$CATOBJEXT%g
8546 s%@INTLLIBS@%$INTLLIBS%g
8547 s%@INTLDEPS@%$INTLDEPS%g
8548 s%@INTLOBJS@%$INTLOBJS%g
8550 s%@DATADIRNAME@%$DATADIRNAME%g
8551 s%@INSTOBJEXT@%$INSTOBJEXT%g
8552 s%@GENCAT@%$GENCAT%g
8553 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8554 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8557 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8558 s%@inhibit_libc@%$inhibit_libc%g
8559 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
8560 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
8561 s%@HOST_CC@%$HOST_CC%g
8562 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8563 s%@STMP_FIXINC@%$STMP_FIXINC%g
8564 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8565 s%@libgcc_visibility@%$libgcc_visibility%g
8566 s%@gthread_flags@%$gthread_flags%g
8568 s%@zlibdir@%$zlibdir%g
8569 s%@zlibinc@%$zlibinc%g
8571 s%@build_canonical@%$build_canonical%g
8572 s%@host_canonical@%$host_canonical%g
8573 s%@target_subdir@%$target_subdir%g
8574 s%@gcc_tooldir@%$gcc_tooldir%g
8575 s%@dollar@%$dollar%g
8576 s%@slibdir@%$slibdir%g
8577 s%@objdir@%$objdir%g
8578 s%@subdirs@%$subdirs%g
8579 s%@all_boot_languages@%$all_boot_languages%g
8580 s%@all_compilers@%$all_compilers%g
8581 s%@all_gtfiles@%$all_gtfiles%g
8582 s%@all_lang_makefiles@%$all_lang_makefiles%g
8583 s%@all_languages@%$all_languages%g
8584 s%@all_stagestuff@%$all_stagestuff%g
8585 s%@build_exeext@%$build_exeext%g
8586 s%@build_install_headers_dir@%$build_install_headers_dir%g
8587 s%@build_xm_file_list@%$build_xm_file_list%g
8588 s%@build_xm_file@%$build_xm_file%g
8589 s%@build_xm_defines@%$build_xm_defines%g
8590 s%@check_languages@%$check_languages%g
8591 s%@cc_set_by_configure@%$cc_set_by_configure%g
8592 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8593 s%@cpp_install_dir@%$cpp_install_dir%g
8594 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8595 s%@dep_tmake_file@%$dep_tmake_file%g
8596 s%@extra_headers_list@%$extra_headers_list%g
8597 s%@extra_objs@%$extra_objs%g
8598 s%@extra_parts@%$extra_parts%g
8599 s%@extra_passes@%$extra_passes%g
8600 s%@extra_programs@%$extra_programs%g
8601 s%@float_h_file@%$float_h_file%g
8602 s%@gcc_config_arguments@%$gcc_config_arguments%g
8603 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8604 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8605 s%@gcc_version@%$gcc_version%g
8606 s%@gcc_version_full@%$gcc_version_full%g
8607 s%@gcc_version_trigger@%$gcc_version_trigger%g
8608 s%@host_exeext@%$host_exeext%g
8609 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8610 s%@host_xm_file_list@%$host_xm_file_list%g
8611 s%@host_xm_file@%$host_xm_file%g
8612 s%@host_xm_defines@%$host_xm_defines%g
8613 s%@install@%$install%g
8614 s%@lang_options_files@%$lang_options_files%g
8615 s%@lang_specs_files@%$lang_specs_files%g
8616 s%@lang_tree_files@%$lang_tree_files%g
8617 s%@local_prefix@%$local_prefix%g
8618 s%@md_file@%$md_file%g
8619 s%@objc_boehm_gc@%$objc_boehm_gc%g
8620 s%@out_file@%$out_file%g
8621 s%@out_object_file@%$out_object_file%g
8622 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8623 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8624 s%@symbolic_link@%$symbolic_link%g
8625 s%@thread_file@%$thread_file%g
8626 s%@tm_file_list@%$tm_file_list%g
8627 s%@tm_file@%$tm_file%g
8628 s%@tm_p_file_list@%$tm_p_file_list%g
8629 s%@tm_p_file@%$tm_p_file%g
8630 s%@xm_file@%$xm_file%g
8631 s%@xm_defines@%$xm_defines%g
8632 s%@c_target_objs@%$c_target_objs%g
8633 s%@cxx_target_objs@%$cxx_target_objs%g
8634 s%@target_cpu_default@%$target_cpu_default%g
8635 /@target_overrides@/r $target_overrides
8636 s%@target_overrides@%%g
8637 /@host_overrides@/r $host_overrides
8638 s%@host_overrides@%%g
8639 /@language_fragments@/r $language_fragments
8640 s%@language_fragments@%%g
8641 /@language_hooks@/r $language_hooks
8642 s%@language_hooks@%%g
8647 cat >> $CONFIG_STATUS <<\EOF
8649 # Split the substitutions into bite-sized pieces for seds with
8650 # small command number limits, like on Digital OSF/1 and HP-UX.
8651 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8652 ac_file
=1 # Number of current file.
8653 ac_beg
=1 # First line for current file.
8654 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8657 while $ac_more_lines; do
8658 if test $ac_beg -gt 1; then
8659 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8661 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8663 if test ! -s conftest.s
$ac_file; then
8665 rm -f conftest.s
$ac_file
8667 if test -z "$ac_sed_cmds"; then
8668 ac_sed_cmds
="sed -f conftest.s$ac_file"
8670 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8672 ac_file
=`expr $ac_file + 1`
8674 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8677 if test -z "$ac_sed_cmds"; then
8682 cat >> $CONFIG_STATUS <<EOF
8684 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8686 cat >> $CONFIG_STATUS <<\EOF
8687 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8690 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8691 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8692 *) ac_file_in
="${ac_file}.in" ;;
8695 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8697 # Remove last slash and all that follows it. Not all systems have dirname.
8698 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8699 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8700 # The file is in a subdirectory.
8701 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8702 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8703 # A "../" for each directory in $ac_dir_suffix.
8704 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8706 ac_dir_suffix
= ac_dots
=
8709 case "$ac_given_srcdir" in
8711 if test -z "$ac_dots"; then top_srcdir
=.
8712 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8713 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8715 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8716 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8720 echo creating
"$ac_file"
8722 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8724 *Makefile
*) ac_comsub
="1i\\
8725 # $configure_input" ;;
8729 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8731 s%@configure_input@%$configure_input%g
8732 s%@srcdir@%$srcdir%g
8733 s%@top_srcdir@%$top_srcdir%g
8734 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8738 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8739 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8741 # ac_d sets the value in "#define NAME VALUE" lines.
8742 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8743 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8746 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8747 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8748 ac_uB
='\([ ]\)%\1#\2define\3'
8751 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8752 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8753 ac_eB
='$%\1#\2define\3'
8757 if test "${CONFIG_HEADERS+set}" != set; then
8759 cat >> $CONFIG_STATUS <<EOF
8760 CONFIG_HEADERS="auto-host.h:config.in"
8762 cat >> $CONFIG_STATUS <<\EOF
8764 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8767 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8768 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8769 *) ac_file_in
="${ac_file}.in" ;;
8772 echo creating
$ac_file
8774 rm -f conftest.frag conftest.
in conftest.out
8775 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8776 cat $ac_file_inputs > conftest.
in
8780 # Transform confdefs.h into a sed script conftest.vals that substitutes
8781 # the proper values into config.h.in to produce config.h. And first:
8782 # Protect against being on the right side of a sed subst in config.status.
8783 # Protect against being in an unquoted here document in config.status.
8785 cat > conftest.hdr
<<\EOF
8788 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8792 sed -n -f conftest.hdr confdefs.h > conftest.vals
8795 # This sed command replaces #undef with comments. This is necessary, for
8796 # example, in the case of _POSIX_SOURCE, which is predefined and required
8797 # on some systems where configure will not decide to define it.
8798 cat >> conftest.vals <<\EOF
8799 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8802 # Break up conftest.vals because some shells have a limit on
8803 # the size of here documents, and old seds have small limits too.
8808 ac_lines=`grep -c . conftest.vals
`
8809 # grep -c gives empty output for an empty file on some AIX systems.
8810 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8811 # Write a limited-size here document to conftest.frag.
8812 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8813 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8815 sed -f conftest.frag conftest.in > conftest.out
8817 mv conftest.out conftest.in
8819 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8821 mv conftest.tail conftest.vals
8825 cat >> $CONFIG_STATUS <<\EOF
8826 rm -f conftest.frag conftest.h
8827 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8828 cat conftest.in >> conftest.h
8830 if cmp -s $ac_file conftest.h 2>/dev/null; then
8831 echo "$ac_file is unchanged"
8834 # Remove last slash and all that follows it. Not all systems have dirname.
8835 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8836 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8837 # The file is in a subdirectory.
8838 test ! -d "$ac_dir" && mkdir "$ac_dir"
8841 mv conftest.h $ac_file
8846 cat >> $CONFIG_STATUS <<EOF
8849 symbolic_link='$symbolic_link'
8852 cat >> $CONFIG_STATUS <<\EOF
8853 for ac_file in $CONFIG_FILES; do
8854 # Support "outfile[:infile[:infile...]]"
8856 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8858 # PO directories have a Makefile.in generated from Makefile.in.in.
8859 case "$ac_file" in */Makefile.in)
8860 # Adjust a relative srcdir.
8861 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8862 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8863 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8864 # In autoconf-2.13 it is called $ac_given_srcdir.
8865 # In autoconf-2.50 it is called $srcdir.
8866 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8867 case "$ac_given_srcdir" in
8868 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8869 /*) top_srcdir="$ac_given_srcdir" ;;
8870 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8872 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8873 rm -f "$ac_dir/POTFILES"
8874 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8875 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8876 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8877 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8883 case x$CONFIG_HEADERS in
8884 xauto-host.h:config.in)
8887 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8888 # bootstrapping and the installation procedure can still use
8889 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8890 # FLAGS_TO_PASS has been modified to solve the problem there.
8891 # This is virtually a duplicate of what happens in configure.lang; we do
8892 # an extra check to make sure this only happens if ln -s can be used.
8893 if test "$symbolic_link" = "ln -s"; then
8894 for d in .. ${subdirs} fixinc ; do
8895 if test $d != ..; then
8896 STARTDIR=`${PWDCMD-pwd}`
8898 for t in stage1 stage2 stage3 stage4 include
8901 $symbolic_link ../$t $t 2>/dev/null
8907 # Avoid having to add intl to our include paths.
8908 if test -f intl/libintl.h; then
8909 echo creating libintl.h
8910 echo '#include "intl/libintl.h"' >libintl.h
8915 chmod +x $CONFIG_STATUS
8916 rm -fr confdefs* $ac_clean_files
8917 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1