3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files"
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,gc,gcac; default
40 --disable-cpp don't provide a user-visible C preprocessor"
42 --with-cpp-install-dir=DIR
43 install the user visible C preprocessor in DIR
44 (relative to PREFIX) as well as PREFIX/bin"
46 --enable-c-mbchar enable multibyte characters for C and C++"
48 --enable-threads enable thread usage for target GCC
49 --enable-threads=LIB use LIB thread package for target GCC"
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime"
54 --with-dwarf2 force the default debug format to be DWARF 2"
56 --disable-shared don't provide a shared libgcc"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --enable-nls use Native Language Support (default)"
62 --disable-nls do not use Native Language Support"
64 --with-included-gettext use the GNU gettext library included here"
66 --with-catgets use catgets functions if available"
68 --disable-win32-registry
69 disable lookup of installation paths in the
70 Registry on Windows hosts
71 --enable-win32-registry enable registry lookup (default)
72 --enable-win32-registry=KEY
73 use KEY instead of GCC version as the last portion
76 --with-gc={simple,page} choose the garbage collection mechanism to use
79 --with-system-zlib use installed libz"
81 --enable-maintainer-mode
82 enable make rules and dependencies not useful
83 (and sometimes confusing) to the casual installer"
85 --enable-sjlj-exceptions
86 arrange to use setjmp/longjmp exception handling"
88 --enable-version-specific-runtime-libs
89 specify that runtime libraries should be
90 installed in a compiler-specific directory"
92 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
607 symbolic_link
='ln -s'
610 # Check for bogus environment variables.
611 # Test if LIBRARY_PATH contains the notation for the current directory
612 # since this would lead to problems installing/building glibc.
613 # LIBRARY_PATH contains the current directory if one of the following
615 # - one of the terminals (":" and ";") is the first or last sign
616 # - two terminals occur directly after each other
617 # - the path contains an element with a dot in it
618 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
619 echo "configure:620: checking LIBRARY_PATH variable" >&5
620 case ${LIBRARY_PATH} in
621 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
622 library_path_setting
="contains current directory"
625 library_path_setting
="ok"
628 echo "$ac_t""$library_path_setting" 1>&6
629 if test "$library_path_setting" != "ok"; then
630 { echo "configure: error:
631 *** LIBRARY_PATH shouldn't contain the current directory when
632 *** building gcc. Please change the environment variable
633 *** and run configure again." 1>&2; exit 1; }
636 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
637 # since this would lead to problems installing/building glibc.
638 # GCC_EXEC_PREFIX contains the current directory if one of the following
640 # - one of the terminals (":" and ";") is the first or last sign
641 # - two terminals occur directly after each other
642 # - the path contains an element with a dot in it
643 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
644 echo "configure:645: checking GCC_EXEC_PREFIX variable" >&5
645 case ${GCC_EXEC_PREFIX} in
646 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
647 gcc_exec_prefix_setting
="contains current directory"
650 gcc_exec_prefix_setting
="ok"
653 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
654 if test "$gcc_exec_prefix_setting" != "ok"; then
655 { echo "configure: error:
656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
657 *** building gcc. Please change the environment variable
658 *** and run configure again." 1>&2; exit 1; }
661 # Check for additional parameters
664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
665 if test "${with_gnu_ld+set}" = set; then
666 withval
="$with_gnu_ld"
667 gnu_ld_flag
="$with_gnu_ld"
673 # With pre-defined ld
674 # Check whether --with-ld or --without-ld was given.
675 if test "${with_ld+set}" = set; then
677 DEFAULT_LINKER
="$with_ld"
680 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
681 if test ! -x "$DEFAULT_LINKER"; then
682 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
683 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
686 cat >> confdefs.h
<<EOF
687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
693 # Check whether --with-gnu-as or --without-gnu-as was given.
694 if test "${with_gnu_as+set}" = set; then
695 withval
="$with_gnu_as"
696 gas_flag
="$with_gnu_as"
702 # Check whether --with-as or --without-as was given.
703 if test "${with_as+set}" = set; then
705 DEFAULT_ASSEMBLER
="$with_as"
708 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
709 if test ! -x "$DEFAULT_ASSEMBLER"; then
710 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
711 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
714 cat >> confdefs.h
<<EOF
715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
721 # Check whether --with-stabs or --without-stabs was given.
722 if test "${with_stabs+set}" = set; then
723 withval
="$with_stabs"
731 # Check whether --with-elf or --without-elf was given.
732 if test "${with_elf+set}" = set; then
740 # Specify the local prefix
742 # Check whether --with-local-prefix or --without-local-prefix was given.
743 if test "${with_local_prefix+set}" = set; then
744 withval
="$with_local_prefix"
746 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
748 *) local_prefix
=$with_local_prefix ;;
753 # Default local prefix if it is empty
754 if test x
$local_prefix = x
; then
755 local_prefix
=/usr
/local
758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
759 # passed in by the toplevel make and thus we'd get different behavior
760 # depending on where we built the sources.
762 # Specify the g++ header file directory
763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
764 if test "${with_gxx_include_dir+set}" = set; then
765 withval
="$with_gxx_include_dir"
767 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
769 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
774 if test x
${gcc_gxx_include_dir} = x
; then
775 if test x
${enable_version_specific_runtime_libs} = xyes
; then
776 gcc_gxx_include_dir
='${libsubdir}/include/g++'
778 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
779 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
783 # Determine whether or not multilibs are enabled.
784 # Check whether --enable-multilib or --disable-multilib was given.
785 if test "${enable_multilib+set}" = set; then
786 enableval
="$enable_multilib"
794 # Enable expensive internal checks
795 # Check whether --enable-checking or --disable-checking was given.
796 if test "${enable_checking+set}" = set; then
797 enableval
="$enable_checking"
802 ac_gc_always_collect
=
803 case "${enableval}" in
804 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
806 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
807 set fnord
$enableval; shift
812 misc
) ac_checking
=1 ;;
813 tree
) ac_tree_checking
=1 ;;
814 rtl
) ac_rtl_checking
=1 ;;
815 gc
) ac_gc_checking
=1 ;;
816 gcac
) ac_gc_always_collect
=1 ;;
817 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Enable some checks by default for development versions of GCC
825 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
828 if test x
$ac_checking != x
; then
829 cat >> confdefs.h
<<\EOF
830 #define ENABLE_CHECKING 1
834 if test x
$ac_tree_checking != x
; then
835 cat >> confdefs.h
<<\EOF
836 #define ENABLE_TREE_CHECKING 1
840 if test x
$ac_rtl_checking != x
; then
841 cat >> confdefs.h
<<\EOF
842 #define ENABLE_RTL_CHECKING 1
846 if test x
$ac_gc_checking != x
; then
847 cat >> confdefs.h
<<\EOF
848 #define ENABLE_GC_CHECKING 1
852 if test x
$ac_gc_always_collect != x
; then
853 cat >> confdefs.h
<<\EOF
854 #define ENABLE_GC_ALWAYS_COLLECT 1
860 # Check whether --enable-cpp or --disable-cpp was given.
861 if test "${enable_cpp+set}" = set; then
862 enableval
="$enable_cpp"
869 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
870 if test "${with_cpp_install_dir+set}" = set; then
871 withval
="$with_cpp_install_dir"
872 if test x
$withval = xyes
; then
873 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
874 elif test x
$withval != xno
; then
875 cpp_install_dir
=$withval
880 # Enable Multibyte Characters for C/C++
881 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
882 if test "${enable_c_mbchar+set}" = set; then
883 enableval
="$enable_c_mbchar"
884 if test x
$enable_c_mbchar != xno
; then
885 cat >> confdefs.h
<<\EOF
886 #define MULTIBYTE_CHARS 1
894 # Pass with no value to take the default
895 # Pass with a value to specify a thread package
896 # Check whether --enable-threads or --disable-threads was given.
897 if test "${enable_threads+set}" = set; then
898 enableval
="$enable_threads"
905 enable_threads_flag
=$enable_threads
906 # Check if a valid thread package
907 case x
${enable_threads_flag} in
910 target_thread_file
='single'
914 target_thread_file
=''
916 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
917 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
918 target_thread_file
=$enable_threads_flag
921 echo "$enable_threads is an unknown thread package" 1>&2
926 # Check whether --enable-objc-gc or --disable-objc-gc was given.
927 if test "${enable_objc_gc+set}" = set; then
928 enableval
="$enable_objc_gc"
929 if test x
$enable_objc_gc = xno
; then
939 # Check whether --with-dwarf2 or --without-dwarf2 was given.
940 if test "${with_dwarf2+set}" = set; then
941 withval
="$with_dwarf2"
942 dwarf2
="$with_dwarf2"
948 # Check whether --enable-shared or --disable-shared was given.
949 if test "${enable_shared+set}" = set; then
950 enableval
="$enable_shared"
952 case $enable_shared in
956 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
957 for pkg
in $enableval; do
958 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
972 # Determine the host, build, and target systems
974 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
975 if test -f $ac_dir/install-sh
; then
977 ac_install_sh
="$ac_aux_dir/install-sh -c"
979 elif test -f $ac_dir/install.sh
; then
981 ac_install_sh
="$ac_aux_dir/install.sh -c"
985 if test -z "$ac_aux_dir"; then
986 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988 ac_config_guess
=$ac_aux_dir/config.guess
989 ac_config_sub
=$ac_aux_dir/config.sub
990 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
993 # Do some error checking and defaulting for the host and target type.
995 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 # 2. Host defaults to nonopt.
1001 # 3. If nonopt is not specified, then host defaults to the current host,
1002 # as determined by config.guess.
1003 # 4. Target and build default to nonopt.
1004 # 5. If nonopt is not specified, then target and build default to host.
1006 # The aliases save the names the user supplied, while $host etc.
1007 # will get canonicalized.
1008 case $host---$target---$nonopt in
1009 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1010 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1014 # Make sure we can run config.sub.
1015 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1016 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019 echo $ac_n "checking host system type""... $ac_c" 1>&6
1020 echo "configure:1021: checking host system type" >&5
1023 case "$host_alias" in
1027 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 *) host_alias
=$nonopt ;;
1034 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 echo "$ac_t""$host" 1>&6
1040 echo $ac_n "checking target system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking target system type" >&5
1043 target_alias
=$target
1044 case "$target_alias" in
1047 NONE
) target_alias
=$host_alias ;;
1048 *) target_alias
=$nonopt ;;
1052 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$ac_t""$target" 1>&6
1058 echo $ac_n "checking build system type""... $ac_c" 1>&6
1059 echo "configure:1060: checking build system type" >&5
1062 case "$build_alias" in
1065 NONE
) build_alias
=$host_alias ;;
1066 *) build_alias
=$nonopt ;;
1070 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074 echo "$ac_t""$build" 1>&6
1076 test "$host_alias" != "$target_alias" &&
1077 test "$program_prefix$program_suffix$program_transform_name" = \
1079 program_prefix
=${target_alias}-
1082 # Find the native compiler
1083 # Extract the first word of "gcc", so it can be a program name with args.
1084 set dummy gcc
; ac_word
=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 if test -n "$CC"; then
1091 ac_cv_prog_CC
="$CC" # Let the user override the test.
1093 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1095 for ac_dir
in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir
=.
1097 if test -f $ac_dir/$ac_word; then
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 # Extract the first word of "cc", so it can be a program name with args.
1114 set dummy cc
; ac_word
=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC
="$CC" # Let the user override the test.
1123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1126 for ac_dir
in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir
=.
1128 if test -f $ac_dir/$ac_word; then
1129 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1130 ac_prog_rejected
=yes
1138 if test $ac_prog_rejected = yes; then
1139 # We found a bogon in the path, so make sure we never use it.
1140 set dummy
$ac_cv_prog_CC
1142 if test $# -gt 0; then
1143 # We chose a different compiler from the bogus one.
1144 # However, it has the same basename, so the bogon will be chosen
1145 # first if we set CC to just the basename; use the full file name.
1147 set dummy
"$ac_dir/$ac_word" "$@"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1158 echo "$ac_t""no" 1>&6
1161 if test -z "$CC"; then
1162 case "`uname -s`" in
1164 # Extract the first word of "cl", so it can be a program name with args.
1165 set dummy cl
; ac_word
=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC
="$CC" # Let the user override the test.
1174 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1176 for ac_dir
in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir
=.
1178 if test -f $ac_dir/$ac_word; then
1187 if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1190 echo "$ac_t""no" 1>&6
1195 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp
='$CPP $CPPFLAGS'
1204 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling
=$ac_cv_prog_cc_cross
1208 cat > conftest.
$ac_ext << EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1215 if { (eval echo configure
:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1216 ac_cv_prog_cc_works
=yes
1217 # If we can't run a trivial program, we are probably using a cross compiler.
1218 if (.
/conftest
; exit) 2>/dev
/null
; then
1219 ac_cv_prog_cc_cross
=no
1221 ac_cv_prog_cc_cross
=yes
1224 echo "configure: failed program was:" >&5
1225 cat conftest.
$ac_ext >&5
1226 ac_cv_prog_cc_works
=no
1230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp
='$CPP $CPPFLAGS'
1232 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling
=$ac_cv_prog_cc_cross
1236 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1237 if test $ac_cv_prog_cc_works = no
; then
1238 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1240 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1242 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1243 cross_compiling
=$ac_cv_prog_cc_cross
1245 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether we are using GNU C" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 cat > conftest.c
<<EOF
1255 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1262 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1264 if test $ac_cv_prog_gcc = yes; then
1270 ac_test_CFLAGS
="${CFLAGS+set}"
1271 ac_save_CFLAGS
="$CFLAGS"
1273 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${CC-cc} accepts -g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 echo 'void f(){}' > conftest.c
1279 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1288 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1289 if test "$ac_test_CFLAGS" = set; then
1290 CFLAGS
="$ac_save_CFLAGS"
1291 elif test $ac_cv_prog_cc_g = yes; then
1292 if test "$GCC" = yes; then
1298 if test "$GCC" = yes; then
1305 if test "x$CC" != xcc
; then
1306 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1307 echo "configure:1308: checking whether $CC and cc understand -c and -o together" >&5
1309 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1310 echo "configure:1311: checking whether cc understands -c and -o together" >&5
1312 set dummy
$CC; ac_cc
="`echo $2 |
1313 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1314 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 echo 'foo(){}' > conftest.c
1318 # Make sure it works both with $CC and with simple cc.
1319 # We do the test twice because some compilers refuse to overwrite an
1320 # existing .o file with -o, though they will create one.
1321 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1322 if { (eval echo configure
:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1323 test -f conftest.o
&& { (eval echo configure
:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1325 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1326 if test "x$CC" != xcc
; then
1327 # Test first that cc exists at all.
1328 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1329 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1330 if { (eval echo configure
:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1331 test -f conftest.o
&& { (eval echo configure
:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1336 # cc exists but doesn't like -o.
1337 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1342 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1347 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1348 echo "$ac_t""yes" 1>&6
1350 echo "$ac_t""no" 1>&6
1351 cat >> confdefs.h
<<\EOF
1352 #define NO_MINUS_C_MINUS_O 1
1357 # autoconf is lame and doesn't give us any substitution variable for this.
1358 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1359 NO_MINUS_C_MINUS_O
=yes
1361 OUTPUT_OPTION
='-o $@'
1366 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1367 echo "configure:1368: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 save_CFLAGS
="$CFLAGS"
1372 CFLAGS
="-Wno-long-long"
1373 cat > conftest.
$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1381 if { (eval echo configure
:1382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1383 ac_cv_prog_cc_no_long_long
=yes
1385 echo "configure: failed program was:" >&5
1386 cat conftest.
$ac_ext >&5
1388 ac_cv_prog_cc_no_long_long
=no
1391 CFLAGS
="$save_CFLAGS"
1394 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1396 if test $ac_cv_prog_cc_no_long_long = yes; then
1397 strict1_warn
="-pedantic -Wno-long-long"
1401 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1402 echo "configure:1403: checking how to run the C preprocessor" >&5
1403 # On Suns, sometimes $CPP names a directory.
1404 if test -n "$CPP" && test -d "$CPP"; then
1407 if test -z "$CPP"; then
1408 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 # This must be in double quotes, not single quotes, because CPP may get
1412 # substituted into the Makefile and "${CC-cc}" will confuse make.
1414 # On the NeXT, cc -E runs the code through the compiler's parser,
1415 # not just through cpp.
1416 cat > conftest.
$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1422 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1423 { (eval echo configure
:1424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1424 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1425 if test -z "$ac_err"; then
1429 echo "configure: failed program was:" >&5
1430 cat conftest.
$ac_ext >&5
1432 CPP
="${CC-cc} -E -traditional-cpp"
1433 cat > conftest.
$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1439 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1440 { (eval echo configure
:1441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1441 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1442 if test -z "$ac_err"; then
1446 echo "configure: failed program was:" >&5
1447 cat conftest.
$ac_ext >&5
1449 CPP
="${CC-cc} -nologo -E"
1450 cat > conftest.
$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1456 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1457 { (eval echo configure
:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1458 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1459 if test -z "$ac_err"; then
1463 echo "configure: failed program was:" >&5
1464 cat conftest.
$ac_ext >&5
1473 ac_cv_prog_CPP
="$CPP"
1475 CPP
="$ac_cv_prog_CPP"
1477 ac_cv_prog_CPP
="$CPP"
1479 echo "$ac_t""$CPP" 1>&6
1481 echo $ac_n "checking for inline""... $ac_c" 1>&6
1482 echo "configure:1483: checking for inline" >&5
1483 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1487 for ac_kw
in inline __inline__ __inline
; do
1488 cat > conftest.
$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1496 if { (eval echo configure
:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1498 ac_cv_c_inline
=$ac_kw; break
1500 echo "configure: failed program was:" >&5
1501 cat conftest.
$ac_ext >&5
1508 echo "$ac_t""$ac_cv_c_inline" 1>&6
1509 case "$ac_cv_c_inline" in
1511 no
) cat >> confdefs.h
<<\EOF
1515 *) cat >> confdefs.h
<<EOF
1516 #define inline $ac_cv_c_inline
1521 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1522 echo "configure:1523: checking for volatile" >&5
1523 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 cat > conftest.
$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1534 if { (eval echo configure
:1535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1536 gcc_cv_c_volatile
=yes
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1541 gcc_cv_c_volatile
=no
1546 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1547 if test $gcc_cv_c_volatile = yes ; then
1548 cat >> confdefs.h
<<\EOF
1549 #define HAVE_VOLATILE 1
1555 echo $ac_n "checking for long double""... $ac_c" 1>&6
1556 echo "configure:1557: checking for long double" >&5
1557 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 if test "$GCC" = yes; then
1561 gcc_cv_c_long_double
=yes
1563 cat > conftest.
$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1568 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1569 long double foo = 0.0;
1570 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1571 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1574 if { (eval echo configure
:1575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1576 gcc_cv_c_long_double
=yes
1578 echo "configure: failed program was:" >&5
1579 cat conftest.
$ac_ext >&5
1581 gcc_cv_c_long_double
=no
1587 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1588 if test $gcc_cv_c_long_double = yes; then
1589 cat >> confdefs.h
<<\EOF
1590 #define HAVE_LONG_DOUBLE 1
1595 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1596 echo "configure:1597: checking for long long int" >&5
1597 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 cat > conftest.
$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1608 if { (eval echo configure
:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 ac_cv_c_long_long
=yes
1612 echo "configure: failed program was:" >&5
1613 cat conftest.
$ac_ext >&5
1615 ac_cv_c_long_long
=no
1620 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1621 if test $ac_cv_c_long_long = yes; then
1622 cat >> confdefs.h
<<\EOF
1623 #define HAVE_LONG_LONG 1
1627 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1628 echo "configure:1629: checking for __int64" >&5
1629 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 cat > conftest.
$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1640 if { (eval echo configure
:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1652 echo "$ac_t""$ac_cv_c___int64" 1>&6
1653 if test $ac_cv_c___int64 = yes; then
1654 cat >> confdefs.h
<<\EOF
1655 #define HAVE___INT64 1
1660 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1661 echo "configure:1662: checking for built-in _Bool" >&5
1662 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.
$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1673 if { (eval echo configure
:1674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1677 echo "configure: failed program was:" >&5
1678 cat conftest.
$ac_ext >&5
1686 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1687 if test $gcc_cv_c__bool = yes; then
1688 cat >> confdefs.h
<<\EOF
1689 #define HAVE__BOOL 1
1695 # sizeof(char) is 1 by definition.
1696 echo $ac_n "checking size of short""... $ac_c" 1>&6
1697 echo "configure:1698: checking size of short" >&5
1698 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 #include "confdefs.h"
1706 #include <sys/types.h>
1710 switch (0) case 0: case (sizeof (short) == $ac_size):;
1713 if { (eval echo configure
:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1715 ac_cv_sizeof_short
=$ac_size
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1721 if test x
$ac_cv_sizeof_short != x
; then break; fi
1726 if test x
$ac_cv_sizeof_short = x
; then
1727 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1729 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1730 cat >> confdefs.h
<<EOF
1731 #define SIZEOF_SHORT $ac_cv_sizeof_short
1735 echo $ac_n "checking size of int""... $ac_c" 1>&6
1736 echo "configure:1737: checking size of int" >&5
1737 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1741 cat > conftest.
$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 #include "confdefs.h"
1745 #include <sys/types.h>
1749 switch (0) case 0: case (sizeof (int) == $ac_size):;
1752 if { (eval echo configure
:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1754 ac_cv_sizeof_int
=$ac_size
1756 echo "configure: failed program was:" >&5
1757 cat conftest.
$ac_ext >&5
1760 if test x
$ac_cv_sizeof_int != x
; then break; fi
1765 if test x
$ac_cv_sizeof_int = x
; then
1766 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1768 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1769 cat >> confdefs.h
<<EOF
1770 #define SIZEOF_INT $ac_cv_sizeof_int
1774 echo $ac_n "checking size of long""... $ac_c" 1>&6
1775 echo "configure:1776: checking size of long" >&5
1776 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783 #include "confdefs.h"
1784 #include <sys/types.h>
1788 switch (0) case 0: case (sizeof (long) == $ac_size):;
1791 if { (eval echo configure
:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1793 ac_cv_sizeof_long
=$ac_size
1795 echo "configure: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1799 if test x
$ac_cv_sizeof_long != x
; then break; fi
1804 if test x
$ac_cv_sizeof_long = x
; then
1805 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1807 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1808 cat >> confdefs.h
<<EOF
1809 #define SIZEOF_LONG $ac_cv_sizeof_long
1813 if test $ac_cv_c_long_long = yes; then
1814 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1815 echo "configure:1816: checking size of long long" >&5
1816 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 #include "confdefs.h"
1824 #include <sys/types.h>
1828 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1831 if { (eval echo configure
:1832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833 ac_cv_sizeof_long_long
=$ac_size
1835 echo "configure: failed program was:" >&5
1836 cat conftest.
$ac_ext >&5
1839 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
1844 if test x
$ac_cv_sizeof_long_long = x
; then
1845 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1847 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1848 cat >> confdefs.h
<<EOF
1849 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1854 if test $ac_cv_c___int64 = yes; then
1855 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1856 echo "configure:1857: checking size of __int64" >&5
1857 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1861 cat > conftest.
$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include "confdefs.h"
1865 #include <sys/types.h>
1869 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
1872 if { (eval echo configure
:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1874 ac_cv_sizeof___int64
=$ac_size
1876 echo "configure: failed program was:" >&5
1877 cat conftest.
$ac_ext >&5
1880 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
1885 if test x
$ac_cv_sizeof___int64 = x
; then
1886 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1888 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1889 cat >> confdefs.h
<<EOF
1890 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1896 echo $ac_n "checking execution character set""... $ac_c" 1>&6
1897 echo "configure:1898: checking execution character set" >&5
1898 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 cat > conftest.
$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
1905 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
1909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1910 egrep "ASCII" >/dev
/null
2>&1; then
1912 ac_cv_c_charset
=ASCII
1916 if test x
${ac_cv_c_charset+set} != xset
; then
1917 cat > conftest.
$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
1921 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
1925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1926 egrep "EBCDIC" >/dev
/null
2>&1; then
1928 ac_cv_c_charset
=EBCDIC
1933 if test x
${ac_cv_c_charset+set} != xset
; then
1934 ac_cv_c_charset
=unknown
1938 echo "$ac_t""$ac_cv_c_charset" 1>&6
1939 if test $ac_cv_c_charset = unknown
; then
1940 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
1941 elif test $ac_cv_c_charset = EBCDIC
; then
1942 cat >> confdefs.h
<<\EOF
1943 #define HOST_EBCDIC 1
1948 # If the native compiler is GCC, we can enable warnings even in stage1.
1949 # That's useful for people building cross-compilers, or just running a
1952 if test "x$GCC" = "xyes"; then
1953 warn_cflags
='$(GCC_WARN_CFLAGS)'
1957 # Stage specific cflags for build.
1961 if test x
$GCC = xyes
1963 stage1_cflags
="-Wa,-J"
1971 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether ${MAKE-make} sets \${MAKE}" >&5
1973 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1974 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftestmake
<<\EOF
1979 @
echo 'ac_maketemp="${MAKE}"'
1981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1982 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1983 if test -n "$ac_maketemp"; then
1984 eval ac_cv_prog_make_
${ac_make}_set
=yes
1986 eval ac_cv_prog_make_
${ac_make}_set
=no
1990 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1991 echo "$ac_t""yes" 1>&6
1994 echo "$ac_t""no" 1>&6
1995 SET_MAKE
="MAKE=${MAKE-make}"
1999 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2000 echo "configure:2001: checking whether a default assembler was specified" >&5
2001 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2002 if test x
"$gas_flag" = x
"no"; then
2003 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2005 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2008 echo "$ac_t""no" 1>&6
2011 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether a default linker was specified" >&5
2013 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2014 if test x
"$gnu_ld_flag" = x
"no"; then
2015 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2017 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2020 echo "$ac_t""no" 1>&6
2023 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2024 echo "configure:2025: checking for GNU C library" >&5
2025 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 #include <features.h>
2034 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2035 #error Not a GNU C library system
2039 if { (eval echo configure
:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 echo "configure: failed program was:" >&5
2044 cat conftest.
$ac_ext >&5
2051 echo "$ac_t""$gcc_cv_glibc" 1>&6
2052 if test $gcc_cv_glibc = yes; then
2053 cat >> confdefs.h
<<\EOF
2054 #define _GNU_SOURCE 1
2059 # Find some useful tools
2060 for ac_prog
in gawk mawk nawk
awk
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy
$ac_prog; ac_word
=$2
2064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2065 echo "configure:2066: checking for $ac_word" >&5
2066 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 if test -n "$AWK"; then
2070 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2072 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2074 for ac_dir
in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir
=.
2076 if test -f $ac_dir/$ac_word; then
2077 ac_cv_prog_AWK
="$ac_prog"
2084 AWK
="$ac_cv_prog_AWK"
2085 if test -n "$AWK"; then
2086 echo "$ac_t""$AWK" 1>&6
2088 echo "$ac_t""no" 1>&6
2091 test -n "$AWK" && break
2094 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2095 echo "configure:2096: checking whether ln works" >&5
2096 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 rm -f conftestdata_t
2100 echo >conftestdata_f
2101 if ln conftestdata_f conftestdata_t
2>/dev
/null
2105 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2107 gcc_cv_prog_LN
="ln -s"
2112 rm -f conftestdata_f conftestdata_t
2115 LN
="$gcc_cv_prog_LN"
2116 if test "$gcc_cv_prog_LN" = "ln"; then
2117 echo "$ac_t""yes" 1>&6
2119 if test "$gcc_cv_prog_LN" = "ln -s"; then
2120 echo "$ac_t""no, using ln -s" 1>&6
2122 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2126 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2127 echo "configure:2128: checking whether ln -s works" >&5
2128 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 rm -f conftestdata_t
2132 echo >conftestdata_f
2133 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2135 gcc_cv_prog_LN_S
="ln -s"
2137 if ln conftestdata_f conftestdata_t
2>/dev
/null
2144 rm -f conftestdata_f conftestdata_t
2147 LN_S
="$gcc_cv_prog_LN_S"
2148 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2149 echo "$ac_t""yes" 1>&6
2151 if test "$gcc_cv_prog_LN_S" = "ln"; then
2152 echo "$ac_t""no, using ln" 1>&6
2154 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2158 # Extract the first word of "ranlib", so it can be a program name with args.
2159 set dummy ranlib
; ac_word
=$2
2160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_word" >&5
2162 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 if test -n "$RANLIB"; then
2166 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2168 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2170 for ac_dir
in $ac_dummy; do
2171 test -z "$ac_dir" && ac_dir
=.
2172 if test -f $ac_dir/$ac_word; then
2173 ac_cv_prog_RANLIB
="ranlib"
2178 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2181 RANLIB
="$ac_cv_prog_RANLIB"
2182 if test -n "$RANLIB"; then
2183 echo "$ac_t""$RANLIB" 1>&6
2185 echo "$ac_t""no" 1>&6
2188 # Find a good install program. We prefer a C program (faster),
2189 # so one script is as good as another. But avoid the broken or
2190 # incompatible versions:
2191 # SysV /etc/install, /usr/sbin/install
2192 # SunOS /usr/etc/install
2193 # IRIX /sbin/install
2195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2197 # ./install, which can be erroneously created by make from ./install.sh.
2198 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2199 echo "configure:2200: checking for a BSD compatible install" >&5
2200 if test -z "$INSTALL"; then
2201 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2205 for ac_dir
in $PATH; do
2206 # Account for people who put trailing slashes in PATH elements.
2208 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2210 # OSF1 and SCO ODT 3.0 have their own names for install.
2211 for ac_prog
in ginstall scoinst
install; do
2212 if test -f $ac_dir/$ac_prog; then
2213 if test $ac_prog = install &&
2214 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2215 # AIX install. It has an incompatible calling convention.
2216 # OSF/1 installbsd also uses dspmsg, but is usable.
2219 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2230 if test "${ac_cv_path_install+set}" = set; then
2231 INSTALL
="$ac_cv_path_install"
2233 # As a last resort, use the slow shell script. We don't cache a
2234 # path for INSTALL within a source directory, because that will
2235 # break other packages using the cache if that directory is
2236 # removed, or if the path is relative.
2237 INSTALL
="$ac_install_sh"
2240 echo "$ac_t""$INSTALL" 1>&6
2242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2243 # It thinks the first close brace ends the variable substitution.
2244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2246 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2249 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2250 echo "configure:2251: checking for ANSI C header files" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2262 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2263 { (eval echo configure
:2264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2264 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2265 if test -z "$ac_err"; then
2267 ac_cv_header_stdc
=yes
2270 echo "configure: failed program was:" >&5
2271 cat conftest.
$ac_ext >&5
2273 ac_cv_header_stdc
=no
2277 if test $ac_cv_header_stdc = yes; then
2278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2279 cat > conftest.
$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2285 egrep "memchr" >/dev
/null
2>&1; then
2289 ac_cv_header_stdc
=no
2295 if test $ac_cv_header_stdc = yes; then
2296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2297 cat > conftest.
$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2303 egrep "free" >/dev
/null
2>&1; then
2307 ac_cv_header_stdc
=no
2313 if test $ac_cv_header_stdc = yes; then
2314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2315 if test "$cross_compiling" = yes; then
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2322 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2323 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2325 int main () { int i; for (i = 0; i < 256; i++)
2326 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2330 if { (eval echo configure
:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2334 echo "configure: failed program was:" >&5
2335 cat conftest.
$ac_ext >&5
2337 ac_cv_header_stdc
=no
2345 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2346 if test $ac_cv_header_stdc = yes; then
2347 cat >> confdefs.h
<<\EOF
2348 #define STDC_HEADERS 1
2353 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2354 echo "configure:2355: checking whether time.h and sys/time.h may both be included" >&5
2355 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.
$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2361 #include <sys/types.h>
2362 #include <sys/time.h>
2368 if { (eval echo configure
:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2370 ac_cv_header_time
=yes
2372 echo "configure: failed program was:" >&5
2373 cat conftest.
$ac_ext >&5
2375 ac_cv_header_time
=no
2380 echo "$ac_t""$ac_cv_header_time" 1>&6
2381 if test $ac_cv_header_time = yes; then
2382 cat >> confdefs.h
<<\EOF
2383 #define TIME_WITH_SYS_TIME 1
2388 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2389 echo "configure:2390: checking for working stdbool.h" >&5
2390 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.
$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2396 #include <stdbool.h>
2401 if { (eval echo configure
:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2403 ac_cv_header_stdbool_h
=yes
2405 echo "configure: failed program was:" >&5
2406 cat conftest.
$ac_ext >&5
2408 ac_cv_header_stdbool_h
=no
2413 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2414 if test $ac_cv_header_stdbool_h = yes; then
2415 cat >> confdefs.h
<<\EOF
2416 #define HAVE_STDBOOL_H 1
2421 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2422 echo "configure:2423: checking whether string.h and strings.h may both be included" >&5
2423 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2430 #include <strings.h>
2435 if { (eval echo configure
:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2437 gcc_cv_header_string
=yes
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 gcc_cv_header_string
=no
2447 echo "$ac_t""$gcc_cv_header_string" 1>&6
2448 if test $gcc_cv_header_string = yes; then
2449 cat >> confdefs.h
<<\EOF
2450 #define STRING_WITH_STRINGS 1
2455 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2456 echo "configure:2457: checking for sys/wait.h that is POSIX.1 compatible" >&5
2457 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <sys/types.h>
2464 #include <sys/wait.h>
2466 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2469 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2474 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2477 if { (eval echo configure
:2478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2479 ac_cv_header_sys_wait_h
=yes
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2484 ac_cv_header_sys_wait_h
=no
2489 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2490 if test $ac_cv_header_sys_wait_h = yes; then
2491 cat >> confdefs.h
<<\EOF
2492 #define HAVE_SYS_WAIT_H 1
2497 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2498 fcntl.h unistd.h sys
/file.h sys
/time.h \
2499 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2500 direct.h malloc.h langinfo.h
2502 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure
:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h
<<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2541 # Check for thread headers.
2542 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2544 echo "configure:2545: checking for thread.h" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure
:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2572 echo "$ac_t""no" 1>&6
2576 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2577 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2578 echo "configure:2579: checking for pthread.h" >&5
2579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.
$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 #include <pthread.h>
2587 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2588 { (eval echo configure
:2589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2589 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2590 if test -z "$ac_err"; then
2592 eval "ac_cv_header_$ac_safe=yes"
2595 echo "configure: failed program was:" >&5
2596 cat conftest.
$ac_ext >&5
2598 eval "ac_cv_header_$ac_safe=no"
2602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2603 echo "$ac_t""yes" 1>&6
2606 echo "$ac_t""no" 1>&6
2611 # These tests can't be done till we know if we have limits.h.
2612 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2613 echo "configure:2614: checking for CHAR_BIT" >&5
2614 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 cat > conftest.
$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #ifdef HAVE_LIMITS_H
2627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2628 egrep "found" >/dev
/null
2>&1; then
2630 gcc_cv_decl_char_bit
=yes
2633 gcc_cv_decl_char_bit
=no
2640 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2641 if test $gcc_cv_decl_char_bit = no
; then
2642 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2643 echo "configure:2644: checking number of bits in a byte" >&5
2644 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2649 while test $i -lt 65; do
2650 cat > conftest.
$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2656 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2657 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2661 if { (eval echo configure
:2662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2663 gcc_cv_c_nbby
=$i; break
2665 echo "configure: failed program was:" >&5
2666 cat conftest.
$ac_ext >&5
2671 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2675 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2676 if test $gcc_cv_c_nbby = failed
; then
2677 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2679 cat >> confdefs.h
<<EOF
2680 #define CHAR_BIT $gcc_cv_c_nbby
2685 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2686 echo "configure:2687: checking byte ordering" >&5
2687 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 ac_cv_c_compile_endian
=unknown
2693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2694 ac_cpp
='$CPP $CPPFLAGS'
2695 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2696 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2697 cross_compiling
=$ac_cv_prog_cc_cross
2699 cat > conftest.
$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2703 #ifdef HAVE_LIMITS_H
2704 # include <limits.h>
2706 /* This structure must have no internal padding. */
2708 char prefix[sizeof "\nendian:" - 1];
2713 #if SIZEOF_SHORT == 4
2714 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2716 ('A' << CHAR_BIT) | 'B',
2720 if { (eval echo configure
:2721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2722 sed 's/^[0-7]*[ ]*/ /
2725 s/ [0-9][0-9][0-9]/./g
2731 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2732 ac_cv_c_compile_endian
=big-endian
2733 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2734 ac_cv_c_compile_endian
=little-endian
2739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2740 ac_cpp
='$CPP $CPPFLAGS'
2741 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2742 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2743 cross_compiling
=$ac_cv_prog_cc_cross
2748 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2749 if test $ac_cv_c_compile_endian = unknown
; then
2750 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2751 elif test $ac_cv_c_compile_endian = big-endian
; then
2752 cat >> confdefs.h
<<\EOF
2753 #define HOST_WORDS_BIG_ENDIAN 1
2758 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2759 echo "configure:2760: checking floating point format" >&5
2760 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2766 ac_cpp
='$CPP $CPPFLAGS'
2767 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2768 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2769 cross_compiling
=$ac_cv_prog_cc_cross
2771 cat > conftest.
$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 /* This will not work unless sizeof(double) == 8. */
2775 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2777 /* This structure must have no internal padding. */
2778 struct possibility {
2784 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2785 struct possibility table [] =
2787 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2788 C( 3.53802595280598432000e+18), /* D__float - VAX */
2789 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2790 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2791 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2794 if { (eval echo configure
:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2796 sed 's/^[0-7]*[ ]*/ /
2799 s/ [0-9][0-9][0-9]/./g
2805 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2806 ac_cv_c_float_format
='IEEE (big-endian)'
2807 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2808 ac_cv_c_float_format
='IEEE (big-endian)'
2809 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2810 ac_cv_c_float_format
='IEEE (little-endian)'
2811 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2812 ac_cv_c_float_format
='IEEE (little-endian)'
2813 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2814 ac_cv_c_float_format
='VAX D-float'
2815 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2816 ac_cv_c_float_format
='PDP-10'
2817 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2818 ac_cv_c_float_format
='IBM 370 hex'
2820 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
2823 { echo "configure: error: compile failed" 1>&2; exit 1; }
2827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2828 ac_cpp
='$CPP $CPPFLAGS'
2829 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2830 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2831 cross_compiling
=$ac_cv_prog_cc_cross
2836 echo "$ac_t""$ac_cv_c_float_format" 1>&6
2837 # IEEE is the default format. If the float endianness isn't the same
2838 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
2839 # (which is a tristate: yes, no, default). This is only an issue with
2840 # IEEE; the other formats are only supported by a few machines each,
2841 # all with the same endianness.
2844 case $ac_cv_c_float_format in
2845 'IEEE (big-endian)' )
2846 if test $ac_cv_c_compile_endian = little-endian
; then
2850 'IEEE (little-endian)' )
2851 if test $ac_cv_c_compile_endian = big-endian
; then
2856 format
=VAX_FLOAT_FORMAT
2859 format
=PDP10_FLOAT_FORMAT
2862 format
=IBM_FLOAT_FORMAT
2865 if test -n "$format"; then
2866 cat >> confdefs.h
<<EOF
2867 #define HOST_FLOAT_FORMAT $format
2871 if test -n "$fbigend"; then
2872 cat >> confdefs.h
<<EOF
2873 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
2879 # See if GNAT has been installed
2880 # Extract the first word of "gnatbind", so it can be a program name with args.
2881 set dummy gnatbind
; ac_word
=$2
2882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2883 echo "configure:2884: checking for $ac_word" >&5
2884 if eval "test \"`echo '$''{'ac_cv_prog_have_gnat'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 if test -n "$have_gnat"; then
2888 ac_cv_prog_have_gnat
="$have_gnat" # Let the user override the test.
2890 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2892 for ac_dir
in $ac_dummy; do
2893 test -z "$ac_dir" && ac_dir
=.
2894 if test -f $ac_dir/$ac_word; then
2895 ac_cv_prog_have_gnat
="yes"
2900 test -z "$ac_cv_prog_have_gnat" && ac_cv_prog_have_gnat
="no"
2903 have_gnat
="$ac_cv_prog_have_gnat"
2904 if test -n "$have_gnat"; then
2905 echo "$ac_t""$have_gnat" 1>&6
2907 echo "$ac_t""no" 1>&6
2911 # See if we have the mktemp command.
2912 # Extract the first word of "mktemp", so it can be a program name with args.
2913 set dummy mktemp
; ac_word
=$2
2914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2915 echo "configure:2916: checking for $ac_word" >&5
2916 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 if test -n "$have_mktemp_command"; then
2920 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
2922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2924 for ac_dir
in $ac_dummy; do
2925 test -z "$ac_dir" && ac_dir
=.
2926 if test -f $ac_dir/$ac_word; then
2927 ac_cv_prog_have_mktemp_command
="yes"
2932 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
2935 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
2936 if test -n "$have_mktemp_command"; then
2937 echo "$ac_t""$have_mktemp_command" 1>&6
2939 echo "$ac_t""no" 1>&6
2943 # Do we have a single-tree copy of texinfo?
2944 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2945 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2946 gcc_cv_prog_makeinfo_modern
=yes
2947 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2949 # See if makeinfo has been installed and is modern enough
2950 # that we can use it.
2951 # Extract the first word of "makeinfo", so it can be a program name with args.
2952 set dummy makeinfo
; ac_word
=$2
2953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2954 echo "configure:2955: checking for $ac_word" >&5
2955 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 if test -n "$MAKEINFO"; then
2959 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2961 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2963 for ac_dir
in $ac_dummy; do
2964 test -z "$ac_dir" && ac_dir
=.
2965 if test -f $ac_dir/$ac_word; then
2966 ac_cv_prog_MAKEINFO
="makeinfo"
2973 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2974 if test -n "$MAKEINFO"; then
2975 echo "$ac_t""$MAKEINFO" 1>&6
2977 echo "$ac_t""no" 1>&6
2980 if test -n "$MAKEINFO"; then
2981 # Found it, now check the version.
2982 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2983 echo "configure:2984: checking for modern makeinfo" >&5
2984 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2988 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2989 echo "configure:2990: version of makeinfo is $ac_prog_version" >&5
2990 case $ac_prog_version in
2991 '') gcc_cv_prog_makeinfo_modern
=no
;;
2993 gcc_cv_prog_makeinfo_modern
=yes;;
2994 *) gcc_cv_prog_makeinfo_modern
=no
;;
2999 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3001 gcc_cv_prog_makeinfo_modern
=no
3006 if test $gcc_cv_prog_makeinfo_modern = no
; then
3007 echo "configure: warning:
3008 *** Makeinfo is missing or too old.
3009 *** Info documentation will not be built." 1>&2
3015 # Is pod2man recent enough to regenerate manpages?
3016 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3017 echo "configure:3018: checking for recent Pod::Man" >&5
3018 if perl
-e 'use 1.10 Pod::Man' >/dev
/null
2>&1; then
3019 echo "$ac_t""yes" 1>&6
3020 GENERATED_MANPAGES
=generated-manpages
3022 echo "$ac_t""no" 1>&6
3027 if test -f $srcdir/..
/flex
/skel.c
; then
3028 FLEX
='$(objdir)/../flex/flex'
3030 # Extract the first word of "flex", so it can be a program name with args.
3031 set dummy flex
; ac_word
=$2
3032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3033 echo "configure:3034: checking for $ac_word" >&5
3034 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 if test -n "$FLEX"; then
3038 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3040 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3042 for ac_dir
in $ac_dummy; do
3043 test -z "$ac_dir" && ac_dir
=.
3044 if test -f $ac_dir/$ac_word; then
3045 ac_cv_prog_FLEX
="flex"
3050 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3053 FLEX
="$ac_cv_prog_FLEX"
3054 if test -n "$FLEX"; then
3055 echo "$ac_t""$FLEX" 1>&6
3057 echo "$ac_t""no" 1>&6
3063 # The -L switch is so bison can find its skeleton file.
3064 if test -f $srcdir/..
/bison
/bison.simple
; then
3065 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3067 # Extract the first word of "bison", so it can be a program name with args.
3068 set dummy bison
; ac_word
=$2
3069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3070 echo "configure:3071: checking for $ac_word" >&5
3071 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 if test -n "$BISON"; then
3075 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3077 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3079 for ac_dir
in $ac_dummy; do
3080 test -z "$ac_dir" && ac_dir
=.
3081 if test -f $ac_dir/$ac_word; then
3082 ac_cv_prog_BISON
="bison"
3087 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3090 BISON
="$ac_cv_prog_BISON"
3091 if test -n "$BISON"; then
3092 echo "$ac_t""$BISON" 1>&6
3094 echo "$ac_t""no" 1>&6
3099 # These libraries may be used by collect2.
3100 # We may need a special search path to get them linked.
3101 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3102 echo "configure:3103: checking for collect2 libraries" >&5
3103 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3107 for libs
in '' -lld -lmld \
3108 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3109 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3112 cat > conftest.
$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 /* Override any gcc2 internal prototype to avoid an error. */
3116 /* We use char because int might match the return type of a gcc2
3117 builtin and then its argument prototype would still apply. */
3124 if { (eval echo configure
:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3126 gcc_cv_collect2_libs
="$libs"; break
3128 echo "configure: failed program was:" >&5
3129 cat conftest.
$ac_ext >&5
3134 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3137 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3138 case $gcc_cv_collect2_libs in
3140 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3144 # When building Ada code on Alpha, we need exc_resume which is usually in
3145 # -lexc. So test for it.
3149 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3150 echo "configure:3151: checking for library containing exc_resume" >&5
3151 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 ac_func_search_save_LIBS
="$LIBS"
3155 ac_cv_search_exc_resume
="no"
3156 cat > conftest.
$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 /* Override any gcc2 internal prototype to avoid an error. */
3160 /* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3168 if { (eval echo configure
:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3170 ac_cv_search_exc_resume
="none required"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.
$ac_ext >&5
3176 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3177 LIBS
="-l$i $ac_func_search_save_LIBS"
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 /* Override any gcc2 internal prototype to avoid an error. */
3182 /* We use char because int might match the return type of a gcc2
3183 builtin and then its argument prototype would still apply. */
3190 if { (eval echo configure
:3191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3192 ac_cv_search_exc_resume
="-l$i"
3195 echo "configure: failed program was:" >&5
3196 cat conftest.
$ac_ext >&5
3200 LIBS
="$ac_func_search_save_LIBS"
3203 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3204 if test "$ac_cv_search_exc_resume" != "no"; then
3205 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3214 # See if the stage1 system preprocessor understands the ANSI C
3215 # preprocessor stringification operator. (Used by symcat.h.)
3218 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3219 echo "configure:3220: checking for preprocessor stringizing operator" >&5
3220 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 cat > conftest.
$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3229 char *s = x(teststring);
3232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3233 egrep "#teststring" >/dev
/null
2>&1; then
3235 ac_cv_c_stringize
=no
3238 ac_cv_c_stringize
=yes
3244 if test "${ac_cv_c_stringize}" = yes
3246 cat >> confdefs.h
<<\EOF
3247 #define HAVE_STRINGIZE 1
3251 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3254 # Use <inttypes.h> only if it exists,
3255 # doesn't clash with <sys/types.h>, and declares intmax_t.
3256 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3257 echo "configure:3258: checking for inttypes.h" >&5
3258 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 #include <sys/types.h>
3265 #include <inttypes.h>
3270 if { (eval echo configure
:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272 gcc_cv_header_inttypes_h
=yes
3274 echo "configure: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3277 gcc_cv_header_inttypes_h
=no
3282 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3283 if test $gcc_cv_header_inttypes_h = yes; then
3284 cat >> confdefs.h
<<\EOF
3285 #define HAVE_INTTYPES_H 1
3291 for ac_func
in strtoul bsearch popen
times clock \
3292 strchr strrchr
kill getrlimit setrlimit atoll atoq \
3293 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
3294 fputs_unlocked getrusage nl_langinfo lstat
3296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_func" >&5
3298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 cat > conftest.
$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 /* System header to define __stub macros and hopefully few prototypes,
3305 which can conflict with char $ac_func(); below. */
3307 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3314 /* The GNU C library defines this for functions which it implements
3315 to always fail with ENOSYS. Some functions are actually named
3316 something starting with __ and the normal name is an alias. */
3317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3325 if { (eval echo configure
:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3327 eval "ac_cv_func_$ac_func=yes"
3329 echo "configure: failed program was:" >&5
3330 cat conftest.
$ac_ext >&5
3332 eval "ac_cv_func_$ac_func=no"
3337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3340 cat >> confdefs.h
<<EOF
3341 #define $ac_tr_func 1
3345 echo "$ac_t""no" 1>&6
3350 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3351 echo "configure:3352: checking for ssize_t" >&5
3352 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.
$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <sys/types.h>
3364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3365 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3367 ac_cv_type_ssize_t
=yes
3370 ac_cv_type_ssize_t
=no
3375 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3376 if test $ac_cv_type_ssize_t = no
; then
3377 cat >> confdefs.h
<<\EOF
3384 # Try to determine the array type of the second argument of getgroups
3385 # for the target system (int or gid_t).
3386 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3387 echo "configure:3388: checking for uid_t in sys/types.h" >&5
3388 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.
$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <sys/types.h>
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "uid_t" >/dev
/null
2>&1; then
3399 ac_cv_type_uid_t
=yes
3408 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3409 if test $ac_cv_type_uid_t = no
; then
3410 cat >> confdefs.h
<<\EOF
3414 cat >> confdefs.h
<<\EOF
3420 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3421 echo "configure:3422: checking type of array argument to getgroups" >&5
3422 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 if test "$cross_compiling" = yes; then
3426 ac_cv_type_getgroups
=cross
3428 cat > conftest.
$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3432 /* Thanks to Mike Rendell for this test. */
3433 #include <sys/types.h>
3436 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3441 union { gid_t gval; long lval; } val;
3444 for (i = 0; i < NGID; i++)
3445 gidset[i] = val.gval;
3446 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3448 /* Exit non-zero if getgroups seems to require an array of ints. This
3449 happens when gid_t is short but getgroups modifies an array of ints. */
3450 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3454 if { (eval echo configure
:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3456 ac_cv_type_getgroups
=gid_t
3458 echo "configure: failed program was:" >&5
3459 cat conftest.
$ac_ext >&5
3461 ac_cv_type_getgroups
=int
3466 if test $ac_cv_type_getgroups = cross
; then
3467 cat > conftest.
$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3475 ac_cv_type_getgroups
=gid_t
3478 ac_cv_type_getgroups
=int
3485 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3486 cat >> confdefs.h
<<EOF
3487 #define GETGROUPS_T $ac_cv_type_getgroups
3491 if test "${target}" = "${build}"; then
3492 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3495 # This condition may need some tweaking. It should include all
3496 # targets where the array type of the second argument of getgroups
3497 # is int and the type of gid_t is not equivalent to int.
3498 *-*-sunos* |
*-*-ultrix*)
3499 TARGET_GETGROUPS_T
=int
3502 TARGET_GETGROUPS_T
=gid_t
3508 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3509 echo "configure:3510: checking for vprintf" >&5
3510 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.
$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* System header to define __stub macros and hopefully few prototypes,
3517 which can conflict with char vprintf(); below. */
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 /* We use char because int might match the return type of a gcc2
3521 builtin and then its argument prototype would still apply. */
3526 /* The GNU C library defines this for functions which it implements
3527 to always fail with ENOSYS. Some functions are actually named
3528 something starting with __ and the normal name is an alias. */
3529 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3537 if { (eval echo configure
:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3539 eval "ac_cv_func_vprintf=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.
$ac_ext >&5
3544 eval "ac_cv_func_vprintf=no"
3549 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6
3551 cat >> confdefs.h
<<\EOF
3552 #define HAVE_VPRINTF 1
3556 echo "$ac_t""no" 1>&6
3559 if test "$ac_cv_func_vprintf" != yes; then
3560 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3561 echo "configure:3562: checking for _doprnt" >&5
3562 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* System header to define __stub macros and hopefully few prototypes,
3569 which can conflict with char _doprnt(); below. */
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3578 /* The GNU C library defines this for functions which it implements
3579 to always fail with ENOSYS. Some functions are actually named
3580 something starting with __ and the normal name is an alias. */
3581 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3589 if { (eval echo configure
:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3591 eval "ac_cv_func__doprnt=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.
$ac_ext >&5
3596 eval "ac_cv_func__doprnt=no"
3601 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 cat >> confdefs.h
<<\EOF
3604 #define HAVE_DOPRNT 1
3608 echo "$ac_t""no" 1>&6
3615 if test $ac_cv_func_vprintf != yes ; then
3617 if test $ac_cv_func__doprnt != yes ; then
3624 for ac_func
in strstr
3626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3627 echo "configure:3628: checking for $ac_func" >&5
3628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.
$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* System header to define __stub macros and hopefully few prototypes,
3635 which can conflict with char $ac_func(); below. */
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3644 /* The GNU C library defines this for functions which it implements
3645 to always fail with ENOSYS. Some functions are actually named
3646 something starting with __ and the normal name is an alias. */
3647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3655 if { (eval echo configure
:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3657 eval "ac_cv_func_$ac_func=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3662 eval "ac_cv_func_$ac_func=no"
3667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3668 echo "$ac_t""yes" 1>&6
3669 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3670 cat >> confdefs.h
<<EOF
3671 #define $ac_tr_func 1
3675 echo "$ac_t""no" 1>&6
3681 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3682 echo "configure:3683: checking whether the printf functions support %p" >&5
3683 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 if test "$cross_compiling" = yes; then
3687 gcc_cv_func_printf_ptr
=no
3689 cat > conftest.
$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3697 char *p = buf, *q = NULL;
3698 sprintf(buf, "%p", p);
3699 sscanf(buf, "%p", &q);
3703 if { (eval echo configure
:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3705 gcc_cv_func_printf_ptr
=yes
3707 echo "configure: failed program was:" >&5
3708 cat conftest.
$ac_ext >&5
3710 gcc_cv_func_printf_ptr
=no
3715 rm -f core core.
* *.core
3718 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3719 if test $gcc_cv_func_printf_ptr = yes ; then
3720 cat >> confdefs.h
<<\EOF
3721 #define HAVE_PRINTF_PTR 1
3729 { echo "configure: error:
3730 *** UWIN may not be used as a host platform because
3731 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3734 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3735 echo "configure:3736: checking for pid_t" >&5
3736 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 cat > conftest.
$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <sys/types.h>
3748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3751 ac_cv_type_pid_t
=yes
3759 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3760 if test $ac_cv_type_pid_t = no
; then
3761 cat >> confdefs.h
<<\EOF
3767 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3768 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3769 echo "configure:3770: checking for vfork.h" >&5
3770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 cat > conftest.
$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3778 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3779 { (eval echo configure
:3780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3780 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3781 if test -z "$ac_err"; then
3783 eval "ac_cv_header_$ac_safe=yes"
3786 echo "configure: failed program was:" >&5
3787 cat conftest.
$ac_ext >&5
3789 eval "ac_cv_header_$ac_safe=no"
3793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 cat >> confdefs.h
<<\EOF
3796 #define HAVE_VFORK_H 1
3800 echo "$ac_t""no" 1>&6
3803 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3804 echo "configure:3805: checking for working vfork" >&5
3805 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 if test "$cross_compiling" = yes; then
3809 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3810 echo "configure:3811: checking for vfork" >&5
3811 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.
$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 /* System header to define __stub macros and hopefully few prototypes,
3818 which can conflict with char vfork(); below. */
3820 /* Override any gcc2 internal prototype to avoid an error. */
3821 /* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3827 /* The GNU C library defines this for functions which it implements
3828 to always fail with ENOSYS. Some functions are actually named
3829 something starting with __ and the normal name is an alias. */
3830 #if defined (__stub_vfork) || defined (__stub___vfork)
3838 if { (eval echo configure
:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3840 eval "ac_cv_func_vfork=yes"
3842 echo "configure: failed program was:" >&5
3843 cat conftest.
$ac_ext >&5
3845 eval "ac_cv_func_vfork=no"
3850 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3854 echo "$ac_t""no" 1>&6
3857 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3859 cat > conftest.
$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* Thanks to Paul Eggert for this test. */
3864 #include <sys/types.h>
3865 #include <sys/stat.h>
3866 #ifdef HAVE_UNISTD_H
3872 /* On some sparc systems, changes by the child to local and incoming
3873 argument registers are propagated back to the parent.
3874 The compiler is told about this with #include <vfork.h>,
3875 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3876 Test for this by using a static variable whose address
3877 is put into a register that is clobbered by the vfork. */
3880 sparc_address_test (int arg)
3882 sparc_address_test (arg) int arg;
3900 pid_t parent = getpid ();
3903 sparc_address_test ();
3908 /* Here is another test for sparc vfork register problems.
3909 This test uses lots of local variables, at least
3910 as many local variables as main has allocated so far
3911 including compiler temporaries. 4 locals are enough for
3912 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3913 A buggy compiler should reuse the register of parent
3914 for one of the local variables, since it will think that
3915 parent can't possibly be used any more in this routine.
3916 Assigning to the local variable will thus munge parent
3917 in the parent process. */
3919 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3920 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3921 /* Convince the compiler that p..p7 are live; otherwise, it might
3922 use the same hardware register for all 8 local variables. */
3923 if (p != p1 || p != p2 || p != p3 || p != p4
3924 || p != p5 || p != p6 || p != p7)
3927 /* On some systems (e.g. IRIX 3.3),
3928 vfork doesn't separate parent from child file descriptors.
3929 If the child closes a descriptor before it execs or exits,
3930 this munges the parent's descriptor as well.
3931 Test for this by closing stdout in the child. */
3932 _exit(close(fileno(stdout)) != 0);
3937 while (wait(&status) != child)
3940 /* Was there some problem with vforking? */
3943 /* Did the child fail? (This shouldn't happen.) */
3946 /* Did the vfork/compiler bug occur? */
3947 || parent != getpid()
3949 /* Did the file descriptor bug occur? */
3950 || fstat(fileno(stdout), &st) != 0
3955 if { (eval echo configure
:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3957 ac_cv_func_vfork_works
=yes
3959 echo "configure: failed program was:" >&5
3960 cat conftest.
$ac_ext >&5
3962 ac_cv_func_vfork_works
=no
3969 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3970 if test $ac_cv_func_vfork_works = no
; then
3971 cat >> confdefs.h
<<\EOF
3977 for ac_func
in getpagesize
3979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3980 echo "configure:3981: checking for $ac_func" >&5
3981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 cat > conftest.
$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3987 /* System header to define __stub macros and hopefully few prototypes,
3988 which can conflict with char $ac_func(); below. */
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3997 /* The GNU C library defines this for functions which it implements
3998 to always fail with ENOSYS. Some functions are actually named
3999 something starting with __ and the normal name is an alias. */
4000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4008 if { (eval echo configure
:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4010 eval "ac_cv_func_$ac_func=yes"
4012 echo "configure: failed program was:" >&5
4013 cat conftest.
$ac_ext >&5
4015 eval "ac_cv_func_$ac_func=no"
4020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4022 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4023 cat >> confdefs.h
<<EOF
4024 #define $ac_tr_func 1
4028 echo "$ac_t""no" 1>&6
4032 # The test program for the next two tests is the same except for one
4034 cat >ct-mmap.inc
<<'EOF'
4035 #include <sys/types.h>
4036 #include <sys/mman.h>
4042 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4043 # define MAP_ANONYMOUS MAP_ANON
4046 /* This mess was copied from the GNU getpagesize.h. */
4047 #ifndef HAVE_GETPAGESIZE
4048 # ifdef HAVE_UNISTD_H
4049 # include <unistd.h>
4052 /* Assume that all systems that can run configure have sys/param.h. */
4053 # ifndef HAVE_SYS_PARAM_H
4054 # define HAVE_SYS_PARAM_H 1
4057 # ifdef _SC_PAGESIZE
4058 # define getpagesize() sysconf(_SC_PAGESIZE)
4059 # else /* no _SC_PAGESIZE */
4060 # ifdef HAVE_SYS_PARAM_H
4061 # include <sys/param.h>
4062 # ifdef EXEC_PAGESIZE
4063 # define getpagesize() EXEC_PAGESIZE
4064 # else /* no EXEC_PAGESIZE */
4066 # define getpagesize() NBPG * CLSIZE
4069 # endif /* no CLSIZE */
4070 # else /* no NBPG */
4072 # define getpagesize() NBPC
4073 # else /* no NBPC */
4075 # define getpagesize() PAGESIZE
4076 # endif /* PAGESIZE */
4077 # endif /* no NBPC */
4078 # endif /* no NBPG */
4079 # endif /* no EXEC_PAGESIZE */
4080 # else /* no HAVE_SYS_PARAM_H */
4081 # define getpagesize() 8192 /* punt totally */
4082 # endif /* no HAVE_SYS_PARAM_H */
4083 # endif /* no _SC_PAGESIZE */
4085 #endif /* no HAVE_GETPAGESIZE */
4088 # define MAP_FAILED -1
4092 #define perror_exit(str, val) \
4093 do { perror(str); exit(val); } while (0)
4095 /* Some versions of cygwin mmap require that munmap is called with the
4096 same parameters as mmap. GCC expects that this is not the case.
4097 Test for various forms of this problem. Warning - icky signal games. */
4099 static sigset_t unblock_sigsegv;
4109 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4110 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4112 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4113 MAP_PRIVATE, devzero, 0);
4121 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4125 /* Basic functionality test. */
4129 char *x = anonmap (pg);
4130 if (x == (char *) MAP_FAILED)
4131 perror_exit("test 0 mmap", 2);
4135 if (munmap(x, pg) < 0)
4136 perror_exit("test 0 munmap", 3);
4139 /* 1. If we map a 2-page region and unmap its second page, the first page
4144 char *x = anonmap (pg * 2);
4145 if (x == (char *)MAP_FAILED)
4146 perror_exit ("test 1 mmap", 4);
4148 signal (SIGSEGV, sigsegv);
4150 perror_exit ("test 1 fault", 5);
4155 if (munmap (x + pg, pg) < 0)
4156 perror_exit ("test 1 munmap 1", 6);
4159 if (setjmp (r) == 0)
4162 perror_exit ("test 1 no fault", 7);
4164 if (munmap (x, pg) < 0)
4165 perror_exit ("test 1 munmap 2", 8);
4168 /* 2. If we map a 2-page region and unmap its first page, the second
4169 page must remain. */
4173 char *x = anonmap (pg * 2);
4174 if (x == (char *)MAP_FAILED)
4175 perror_exit ("test 2 mmap", 9);
4177 signal (SIGSEGV, sigsegv);
4179 perror_exit ("test 2 fault", 10);
4184 if (munmap (x, pg) < 0)
4185 perror_exit ("test 2 munmap 1", 11);
4189 if (setjmp (r) == 0)
4192 perror_exit ("test 2 no fault", 12);
4195 if (munmap (x+pg, pg) < 0)
4196 perror_exit ("test 2 munmap 2", 13);
4199 /* 3. If we map two adjacent 1-page regions and unmap them both with
4200 one munmap, both must go away.
4202 Getting two adjacent 1-page regions with two mmap calls is slightly
4203 tricky. All OS's tested skip over already-allocated blocks; therefore
4204 we have been careful to unmap all allocated regions in previous tests.
4205 HP/UX allocates pages backward in memory. No OS has yet been observed
4206 to be so perverse as to leave unmapped space between consecutive calls
4215 if (x == (char *)MAP_FAILED)
4216 perror_exit ("test 3 mmap 1", 14);
4218 if (y == (char *)MAP_FAILED)
4219 perror_exit ("test 3 mmap 2", 15);
4224 z = y, y = x, x = z;
4227 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4228 (unsigned long)x, (unsigned long)y);
4233 signal (SIGSEGV, sigsegv);
4235 perror_exit ("test 3 fault", 17);
4240 if (munmap (x, pg*2) < 0)
4241 perror_exit ("test 3 munmap", 18);
4243 if (setjmp (r) == 0)
4246 perror_exit ("test 3 no fault 1", 19);
4249 signal (SIGSEGV, sigsegv);
4250 if (setjmp (r) == 0)
4253 perror_exit ("test 3 no fault 2", 20);
4260 sigemptyset (&unblock_sigsegv);
4261 sigaddset (&unblock_sigsegv, SIGSEGV);
4262 pg = getpagesize ();
4263 #ifndef USE_MAP_ANON
4264 devzero = open ("/dev/zero", O_RDWR);
4266 perror_exit ("open /dev/zero", 1);
4278 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4279 echo "configure:4280: checking for working mmap from /dev/zero" >&5
4280 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 if test "$cross_compiling" = yes; then
4284 # If this is not cygwin, and /dev/zero is a character device, it's probably
4285 # safe to assume it works.
4287 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4288 * ) if test -c /dev
/zero
4289 then ac_cv_func_mmap_dev_zero
=yes
4290 else ac_cv_func_mmap_dev_zero
=no
4294 cat > conftest.
$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 #include "ct-mmap.inc"
4299 if { (eval echo configure
:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4301 ac_cv_func_mmap_dev_zero
=yes
4303 echo "configure: failed program was:" >&5
4304 cat conftest.
$ac_ext >&5
4307 then ac_cv_func_mmap_dev_zero
=no
4308 else ac_cv_func_mmap_dev_zero
=buggy
4317 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4318 if test $ac_cv_func_mmap_dev_zero = yes; then
4319 cat >> confdefs.h
<<\EOF
4320 #define HAVE_MMAP_DEV_ZERO 1
4325 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4326 echo "configure:4327: checking for working mmap with MAP_ANON(YMOUS)" >&5
4327 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 if test "$cross_compiling" = yes; then
4331 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4332 # just because it's there. Some SCO Un*xen define it but don't implement it.
4333 ac_cv_func_mmap_anon
=no
4335 cat > conftest.
$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4338 #define USE_MAP_ANON
4339 #include "ct-mmap.inc"
4341 if { (eval echo configure
:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4343 ac_cv_func_mmap_anon
=yes
4345 echo "configure: failed program was:" >&5
4346 cat conftest.
$ac_ext >&5
4349 then ac_cv_func_mmap_anon
=no
4350 else ac_cv_func_mmap_anon
=buggy
4359 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4360 if test $ac_cv_func_mmap_anon = yes; then
4361 cat >> confdefs.h
<<\EOF
4362 #define HAVE_MMAP_ANON 1
4368 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4369 echo "configure:4370: checking for working mmap of a file" >&5
4370 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 # Create a file one thousand bytes long.
4374 for i
in 1 2 3 4 5 6 7 8 9 0
4375 do for j
in 1 2 3 4 5 6 7 8 9 0
4378 done > conftestdata$$
4380 if test "$cross_compiling" = yes; then
4381 ac_cv_func_mmap_file
=no
4383 cat > conftest.
$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4387 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4388 Richard Henderson and Alexandre Oliva.
4389 Check whether read-only mmap of a plain file works. */
4390 #include <sys/types.h>
4391 #include <sys/stat.h>
4393 #include <sys/mman.h>
4401 fd = open("conftestdata$$", O_RDONLY);
4405 if (fstat (fd, &st))
4408 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4409 if (x == (char *) -1)
4412 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4415 if (munmap(x, st.st_size) < 0)
4421 if { (eval echo configure
:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4423 ac_cv_func_mmap_file
=yes
4425 echo "configure: failed program was:" >&5
4426 cat conftest.
$ac_ext >&5
4428 ac_cv_func_mmap_file
=no
4435 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4436 if test $ac_cv_func_mmap_file = yes; then
4437 cat >> confdefs.h
<<\EOF
4438 #define HAVE_MMAP_FILE 1
4446 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4447 if test "${with_libiconv_prefix+set}" = set; then
4448 withval
="$with_libiconv_prefix"
4450 for dir
in `echo "$withval" | tr : ' '`; do
4451 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4452 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
4458 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4459 echo "configure:4460: checking for iconv" >&5
4460 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4464 am_cv_func_iconv
="no, consider installing GNU libiconv"
4466 cat > conftest.
$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4472 iconv_t cd = iconv_open("","");
4473 iconv(cd,NULL,NULL,NULL,NULL);
4477 if { (eval echo configure
:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4479 am_cv_func_iconv
=yes
4481 echo "configure: failed program was:" >&5
4482 cat conftest.
$ac_ext >&5
4485 if test "$am_cv_func_iconv" != yes; then
4486 am_save_LIBS
="$LIBS"
4487 LIBS
="$LIBS -liconv"
4488 cat > conftest.
$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4494 iconv_t cd = iconv_open("","");
4495 iconv(cd,NULL,NULL,NULL,NULL);
4499 if { (eval echo configure
:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4502 am_cv_func_iconv
=yes
4504 echo "configure: failed program was:" >&5
4505 cat conftest.
$ac_ext >&5
4508 LIBS
="$am_save_LIBS"
4513 echo "$ac_t""$am_cv_func_iconv" 1>&6
4514 if test "$am_cv_func_iconv" = yes; then
4515 cat >> confdefs.h
<<\EOF
4516 #define HAVE_ICONV 1
4519 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4520 echo "configure:4521: checking for iconv declaration" >&5
4521 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4525 cat > conftest.
$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4535 #if defined(__STDC__) || defined(__cplusplus)
4536 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4545 if { (eval echo configure
:4546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4547 am_cv_proto_iconv_arg1
=""
4549 echo "configure: failed program was:" >&5
4550 cat conftest.
$ac_ext >&5
4552 am_cv_proto_iconv_arg1
="const"
4555 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);"
4558 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4559 echo "$ac_t""${ac_t:-
4560 }$am_cv_proto_iconv" 1>&6
4561 cat >> confdefs.h
<<EOF
4562 #define ICONV_CONST $am_cv_proto_iconv_arg1
4567 if test "$am_cv_lib_iconv" = yes; then
4573 # We will need to find libiberty.h and ansidecl.h
4574 saved_CFLAGS
="$CFLAGS"
4575 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4576 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4577 strsignal putc_unlocked fputs_unlocked strstr environ errno \
4578 malloc realloc calloc free
basename getopt
clock
4580 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4581 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4582 echo "configure:4583: checking whether $ac_func is declared" >&5
4583 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 cat > conftest.
$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4590 #define $ac_tr_decl 1
4592 #include "ansidecl.h"
4597 char *(*pfn) = (char *(*)) $ac_func ;
4601 if { (eval echo configure
:4602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4603 eval "gcc_cv_have_decl_$ac_func=yes"
4605 echo "configure: failed program was:" >&5
4606 cat conftest.
$ac_ext >&5
4608 eval "gcc_cv_have_decl_$ac_func=no"
4613 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4614 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4615 #define $ac_tr_decl 1
4619 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4620 #define $ac_tr_decl 0
4626 if test x
= y
; then
4627 cat >> confdefs.h
<<\EOF
4628 #define HAVE_DECL_GETENV 1
4630 cat >> confdefs.h
<<\EOF
4631 #define HAVE_DECL_ATOL 1
4633 cat >> confdefs.h
<<\EOF
4634 #define HAVE_DECL_SBRK 1
4636 cat >> confdefs.h
<<\EOF
4637 #define HAVE_DECL_ABORT 1
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_DECL_ATOF 1
4642 cat >> confdefs.h
<<\EOF
4643 #define HAVE_DECL_GETCWD 1
4645 cat >> confdefs.h
<<\EOF
4646 #define HAVE_DECL_GETWD 1
4649 cat >> confdefs.h
<<\EOF
4650 #define HAVE_DECL_STRSIGNAL 1
4652 cat >> confdefs.h
<<\EOF
4653 #define HAVE_DECL_PUTC_UNLOCKED 1
4655 cat >> confdefs.h
<<\EOF
4656 #define HAVE_DECL_FPUTS_UNLOCKED 1
4658 cat >> confdefs.h
<<\EOF
4659 #define HAVE_DECL_STRSTR 1
4661 cat >> confdefs.h
<<\EOF
4662 #define HAVE_DECL_ENVIRON 1
4664 cat >> confdefs.h
<<\EOF
4665 #define HAVE_DECL_ERRNO 1
4668 cat >> confdefs.h
<<\EOF
4669 #define HAVE_DECL_MALLOC 1
4671 cat >> confdefs.h
<<\EOF
4672 #define HAVE_DECL_REALLOC 1
4674 cat >> confdefs.h
<<\EOF
4675 #define HAVE_DECL_CALLOC 1
4677 cat >> confdefs.h
<<\EOF
4678 #define HAVE_DECL_FREE 1
4680 cat >> confdefs.h
<<\EOF
4681 #define HAVE_DECL_BASENAME 1
4683 cat >> confdefs.h
<<\EOF
4684 #define HAVE_DECL_GETOPT 1
4686 cat >> confdefs.h
<<\EOF
4687 #define HAVE_DECL_CLOCK 1
4692 for ac_func
in getrlimit setrlimit getrusage
4694 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4695 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4696 echo "configure:4697: checking whether $ac_func is declared" >&5
4697 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.
$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4704 #define $ac_tr_decl 1
4706 #include "ansidecl.h"
4708 #ifdef HAVE_SYS_RESOURCE_H
4709 #include <sys/resource.h>
4715 char *(*pfn) = (char *(*)) $ac_func ;
4719 if { (eval echo configure
:4720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4721 eval "gcc_cv_have_decl_$ac_func=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4726 eval "gcc_cv_have_decl_$ac_func=no"
4731 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4733 #define $ac_tr_decl 1
4737 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4738 #define $ac_tr_decl 0
4744 if test x
= y
; then
4745 cat >> confdefs.h
<<\EOF
4746 #define HAVE_DECL_GETRLIMIT 1
4748 cat >> confdefs.h
<<\EOF
4749 #define HAVE_DECL_SETRLIMIT 1
4751 cat >> confdefs.h
<<\EOF
4752 #define HAVE_DECL_GETRUSAGE 1
4757 for ac_func
in times
4759 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4760 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4761 echo "configure:4762: checking whether $ac_func is declared" >&5
4762 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 cat > conftest.
$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4769 #define $ac_tr_decl 1
4771 #include "ansidecl.h"
4773 #ifdef HAVE_SYS_TIMES_H
4774 #include <sys/times.h>
4780 char *(*pfn) = (char *(*)) $ac_func ;
4784 if { (eval echo configure
:4785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4786 eval "gcc_cv_have_decl_$ac_func=yes"
4788 echo "configure: failed program was:" >&5
4789 cat conftest.
$ac_ext >&5
4791 eval "gcc_cv_have_decl_$ac_func=no"
4796 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4798 #define $ac_tr_decl 1
4802 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4803 #define $ac_tr_decl 0
4809 if test x
= y
; then
4810 cat >> confdefs.h
<<\EOF
4811 #define HAVE_DECL_TIMES 1
4816 # More time-related stuff.
4817 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4818 echo "configure:4819: checking for struct tms" >&5
4819 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.
$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4827 #include "ansidecl.h"
4829 #ifdef HAVE_SYS_TIMES_H
4830 #include <sys/times.h>
4837 if { (eval echo configure
:4838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4839 ac_cv_struct_tms
=yes
4841 echo "configure: failed program was:" >&5
4842 cat conftest.
$ac_ext >&5
4849 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4850 if test $ac_cv_struct_tms = yes; then
4851 cat >> confdefs.h
<<\EOF
4852 #define HAVE_STRUCT_TMS 1
4857 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4858 # revisit after autoconf 2.50.
4859 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4860 echo "configure:4861: checking for clock_t" >&5
4861 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4865 cat > conftest.
$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4869 #include "ansidecl.h"
4876 if { (eval echo configure
:4877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4878 gcc_cv_type_clock_t
=yes
4880 echo "configure: failed program was:" >&5
4881 cat conftest.
$ac_ext >&5
4883 gcc_cv_type_clock_t
=no
4888 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4889 if test $gcc_cv_type_clock_t = yes; then
4890 cat >> confdefs.h
<<\EOF
4891 #define HAVE_CLOCK_T 1
4896 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4897 CFLAGS
="$saved_CFLAGS"
4899 # mkdir takes a single argument on some systems.
4900 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4901 echo "configure:4902: checking if mkdir takes one argument" >&5
4902 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 cat > conftest.
$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4909 #include <sys/types.h>
4910 #ifdef HAVE_SYS_STAT_H
4911 # include <sys/stat.h>
4913 #ifdef HAVE_UNISTD_H
4914 # include <unistd.h>
4916 #ifdef HAVE_DIRECT_H
4917 # include <direct.h>
4923 if { (eval echo configure
:4924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4925 gcc_cv_mkdir_takes_one_arg
=no
4927 echo "configure: failed program was:" >&5
4928 cat conftest.
$ac_ext >&5
4930 gcc_cv_mkdir_takes_one_arg
=yes
4935 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4936 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4937 cat >> confdefs.h
<<\EOF
4938 #define MKDIR_TAKES_ONE_ARG 1
4952 build_install_headers_dir
=install-headers-tar
4957 host_truncate_target
=
4960 # Decode the host machine, then the target machine.
4961 # For the host machine, we save the xm_file variable as host_xm_file;
4962 # then we decode the target machine and forget everything else
4963 # that came from the host machine.
4964 for machine
in $build $host $target; do
4965 .
${srcdir}/config.gcc
4968 extra_objs
="${host_extra_objs} ${extra_objs}"
4970 # Default the target-machine variables that were not explicitly set.
4971 if test x
"$tm_file" = x
4972 then tm_file
=$cpu_type/$cpu_type.h
; fi
4974 if test x
"$extra_headers" = x
4975 then extra_headers
=; fi
4977 if test x
$md_file = x
4978 then md_file
=$cpu_type/$cpu_type.md
; fi
4980 if test x
$out_file = x
4981 then out_file
=$cpu_type/$cpu_type.c
; fi
4983 if test x
"$tmake_file" = x
4984 then tmake_file
=$cpu_type/t-
$cpu_type
4987 if test x
"$dwarf2" = xyes
4988 then tm_file
="$tm_file tm-dwarf2.h"
4991 if test x
$float_format = x
4992 then float_format
=i64
4995 if test $float_format = none
4996 then float_h_file
=Makefile.
in
4997 else float_h_file
=float-
$float_format.h
5000 # Handle cpp installation.
5001 if test x
$enable_cpp != xno
5003 tmake_file
="$tmake_file t-install-cpp"
5006 # Say what files are being used for the output code and MD file.
5007 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
5008 echo "Using \`$srcdir/config/$md_file' as machine description file."
5010 # If any of the xm_file variables contain nonexistent files, warn
5011 # about them and drop them.
5014 for x
in $build_xm_file; do
5015 if test -f $srcdir/config
/$x
5017 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5023 for x
in $host_xm_file; do
5024 if test -f $srcdir/config
/$x
5026 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5032 for x
in $xm_file; do
5033 if test -f $srcdir/config
/$x
5035 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5041 for f
in $tm_file; do
5044 if test $count = ax
; then
5045 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5047 echo "Using the following target machine macro files:"
5048 for f
in $tm_file; do
5049 echo " $srcdir/config/$f"
5054 for f
in $host_xm_file; do
5057 if test $count = a
; then
5059 elif test $count = ax
; then
5060 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5062 echo "Using the following host machine macro files:"
5063 for f
in $host_xm_file; do
5064 echo " $srcdir/config/$f"
5068 if test "$host_xm_file" != "$build_xm_file"; then
5070 for f
in $build_xm_file; do
5073 if test $count = a
; then
5075 elif test $count = ax
; then
5076 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5078 echo "Using the following build machine macro files:"
5079 for f
in $build_xm_file; do
5080 echo " $srcdir/config/$f"
5085 if test x
$thread_file = x
; then
5086 if test x
$target_thread_file != x
; then
5087 thread_file
=$target_thread_file
5089 thread_file
='single'
5093 # auto-host.h is the file containing items generated by autoconf and is
5094 # the first file included by config.h.
5095 # If host=build, it is correct to have hconfig include auto-host.h
5096 # as well. If host!=build, we are in error and need to do more
5097 # work to find out the build config parameters.
5098 if test x
$host = x
$build
5100 build_auto
=auto-host.h
5102 # We create a subdir, then run autoconf in the subdir.
5103 # To prevent recursion we set host and build for the new
5104 # invocation of configure to the build for this invocation
5111 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5112 *) realsrcdir
=..
/${srcdir};;
5114 saved_CFLAGS
="${CFLAGS}"
5115 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5116 ${realsrcdir}/configure \
5117 --target=$target --host=$build --build=$build
5118 CFLAGS
="${saved_CFLAGS}"
5120 # We just finished tests for the build machine, so rename
5121 # the file auto-build.h in the gcc directory.
5122 mv auto-host.h ..
/auto-build.h
5125 build_auto
=auto-build.h
5128 tm_file
="${tm_file} defaults.h"
5129 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5130 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5131 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5133 # Truncate the target if necessary
5134 if test x
$host_truncate_target != x
; then
5135 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5138 # Get the version trigger filename from the toplevel
5139 if test "${with_gcc_version_trigger+set}" = set; then
5140 gcc_version_trigger
=$with_gcc_version_trigger
5142 gcc_version_trigger
=${srcdir}/version.c
5144 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5145 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5147 # Compile in configure arguments.
5148 if test -f configargs.h
; then
5149 # Being re-configured.
5150 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5151 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5153 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5155 cat > configargs.h
<<EOF
5156 /* Generated automatically. */
5157 static const char configuration_arguments[] = "$gcc_config_arguments";
5158 static const char thread_model[] = "$thread_file";
5161 # Internationalization
5163 VERSION
="$gcc_version"
5164 cat >> confdefs.h
<<EOF
5165 #define PACKAGE "$PACKAGE"
5168 cat >> confdefs.h
<<EOF
5169 #define VERSION "$VERSION"
5177 # Enable NLS support by default
5178 # Check whether --enable-nls or --disable-nls was given.
5179 if test "${enable_nls+set}" = set; then
5180 enableval
="$enable_nls"
5187 # if cross compiling, disable NLS support.
5188 # It's not worth the trouble, at least for now.
5190 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5191 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5195 # if NLS is enabled, also enable check in po subdir
5196 if test $enable_nls = yes; then
5205 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
5206 echo "configure:5207: checking for strerror in -lcposix" >&5
5207 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
5208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 ac_save_LIBS
="$LIBS"
5212 LIBS
="-lcposix $LIBS"
5213 cat > conftest.
$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 /* Override any gcc2 internal prototype to avoid an error. */
5217 /* We use char because int might match the return type of a gcc2
5218 builtin and then its argument prototype would still apply. */
5225 if { (eval echo configure
:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5227 eval "ac_cv_lib_$ac_lib_var=yes"
5229 echo "configure: failed program was:" >&5
5230 cat conftest.
$ac_ext >&5
5232 eval "ac_cv_lib_$ac_lib_var=no"
5235 LIBS
="$ac_save_LIBS"
5238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5239 echo "$ac_t""yes" 1>&6
5240 LIBS
="$LIBS -lcposix"
5242 echo "$ac_t""no" 1>&6
5247 echo $ac_n "checking for working const""... $ac_c" 1>&6
5248 echo "configure:5249: checking for working const" >&5
5249 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5252 cat > conftest.
$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5258 /* Ultrix mips cc rejects this. */
5259 typedef int charset[2]; const charset x;
5260 /* SunOS 4.1.1 cc rejects this. */
5261 char const *const *ccp;
5263 /* NEC SVR4.0.2 mips cc rejects this. */
5264 struct point {int x, y;};
5265 static struct point const zero = {0,0};
5266 /* AIX XL C 1.02.0.0 rejects this.
5267 It does not let you subtract one const X* pointer from another in an arm
5268 of an if-expression whose if-part is not a constant expression */
5269 const char *g = "string";
5270 ccp = &g + (g ? g-g : 0);
5271 /* HPUX 7.0 cc rejects these. */
5274 ccp = (char const *const *) p;
5275 { /* SCO 3.2v4 cc rejects this. */
5277 char const *s = 0 ? (char *) 0 : (char const *) 0;
5281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5283 const int *foo = &x[0];
5286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5287 typedef const int *iptr;
5291 { /* AIX XL C 1.02.0.0 rejects this saying
5292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5293 struct s { int j; const int *ap[3]; };
5294 struct s *b; b->j = 5;
5296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5302 if { (eval echo configure
:5303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5306 echo "configure: failed program was:" >&5
5307 cat conftest.
$ac_ext >&5
5314 echo "$ac_t""$ac_cv_c_const" 1>&6
5315 if test $ac_cv_c_const = no
; then
5316 cat >> confdefs.h
<<\EOF
5322 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5323 echo "configure:5324: checking for off_t" >&5
5324 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5327 cat > conftest.
$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5330 #include <sys/types.h>
5336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5339 ac_cv_type_off_t
=yes
5347 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5348 if test $ac_cv_type_off_t = no
; then
5349 cat >> confdefs.h
<<\EOF
5355 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5356 echo "configure:5357: checking for size_t" >&5
5357 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5360 cat > conftest.
$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5363 #include <sys/types.h>
5369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5372 ac_cv_type_size_t
=yes
5375 ac_cv_type_size_t
=no
5380 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5381 if test $ac_cv_type_size_t = no
; then
5382 cat >> confdefs.h
<<\EOF
5383 #define size_t unsigned
5389 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
5390 unistd.h sys
/param.h
5392 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5394 echo "configure:5395: checking for $ac_hdr" >&5
5395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5396 echo $ac_n "(cached) $ac_c" 1>&6
5398 cat > conftest.
$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5403 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5404 { (eval echo configure
:5405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5405 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5406 if test -z "$ac_err"; then
5408 eval "ac_cv_header_$ac_safe=yes"
5411 echo "configure: failed program was:" >&5
5412 cat conftest.
$ac_ext >&5
5414 eval "ac_cv_header_$ac_safe=no"
5418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5419 echo "$ac_t""yes" 1>&6
5420 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5421 cat >> confdefs.h
<<EOF
5422 #define $ac_tr_hdr 1
5426 echo "$ac_t""no" 1>&6
5430 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
5431 strdup __argz_count __argz_stringify __argz_next
5433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_func" >&5
5435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char $ac_func(); below. */
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5462 if { (eval echo configure
:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5464 eval "ac_cv_func_$ac_func=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.
$ac_ext >&5
5469 eval "ac_cv_func_$ac_func=no"
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h
<<EOF
5478 #define $ac_tr_func 1
5482 echo "$ac_t""no" 1>&6
5487 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5488 for ac_func
in stpcpy
5490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5491 echo "configure:5492: checking for $ac_func" >&5
5492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5495 cat > conftest.
$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5498 /* System header to define __stub macros and hopefully few prototypes,
5499 which can conflict with char $ac_func(); below. */
5501 /* Override any gcc2 internal prototype to avoid an error. */
5502 /* We use char because int might match the return type of a gcc2
5503 builtin and then its argument prototype would still apply. */
5508 /* The GNU C library defines this for functions which it implements
5509 to always fail with ENOSYS. Some functions are actually named
5510 something starting with __ and the normal name is an alias. */
5511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5519 if { (eval echo configure
:5520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5521 eval "ac_cv_func_$ac_func=yes"
5523 echo "configure: failed program was:" >&5
5524 cat conftest.
$ac_ext >&5
5526 eval "ac_cv_func_$ac_func=no"
5531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5532 echo "$ac_t""yes" 1>&6
5533 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5534 cat >> confdefs.h
<<EOF
5535 #define $ac_tr_func 1
5539 echo "$ac_t""no" 1>&6
5544 if test "${ac_cv_func_stpcpy}" = "yes"; then
5545 cat >> confdefs.h
<<\EOF
5546 #define HAVE_STPCPY 1
5551 if test $ac_cv_header_locale_h = yes; then
5552 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5553 echo "configure:5554: checking for LC_MESSAGES" >&5
5554 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5565 if { (eval echo configure
:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5567 am_cv_val_LC_MESSAGES
=yes
5569 echo "configure: failed program was:" >&5
5570 cat conftest.
$ac_ext >&5
5572 am_cv_val_LC_MESSAGES
=no
5577 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5578 if test $am_cv_val_LC_MESSAGES = yes; then
5579 cat >> confdefs.h
<<\EOF
5580 #define HAVE_LC_MESSAGES 1
5585 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5586 echo "configure:5587: checking whether NLS is requested" >&5
5587 # Check whether --enable-nls or --disable-nls was given.
5588 if test "${enable_nls+set}" = set; then
5589 enableval
="$enable_nls"
5595 echo "$ac_t""$USE_NLS" 1>&6
5598 USE_INCLUDED_LIBINTL
=no
5600 if test "$USE_NLS" = "yes"; then
5601 cat >> confdefs.h
<<\EOF
5602 #define ENABLE_NLS 1
5605 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5606 echo "configure:5607: checking whether included gettext is requested" >&5
5607 # Check whether --with-included-gettext or --without-included-gettext was given.
5608 if test "${with_included_gettext+set}" = set; then
5609 withval
="$with_included_gettext"
5610 nls_cv_force_use_gnu_gettext
=$withval
5612 nls_cv_force_use_gnu_gettext
=no
5615 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5617 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5618 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5620 nls_cv_header_libgt
=
5623 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5624 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5625 echo "configure:5626: checking for libintl.h" >&5
5626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 cat > conftest.
$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5632 #include <libintl.h>
5634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5635 { (eval echo configure
:5636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5637 if test -z "$ac_err"; then
5639 eval "ac_cv_header_$ac_safe=yes"
5642 echo "configure: failed program was:" >&5
5643 cat conftest.
$ac_ext >&5
5645 eval "ac_cv_header_$ac_safe=no"
5649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5650 echo "$ac_t""yes" 1>&6
5651 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
5652 echo "configure:5653: checking for gettext in libc" >&5
5653 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 cat > conftest.
$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 #include <libintl.h>
5661 return (int) gettext ("")
5664 if { (eval echo configure
:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5666 gt_cv_func_gettext_libc
=yes
5668 echo "configure: failed program was:" >&5
5669 cat conftest.
$ac_ext >&5
5671 gt_cv_func_gettext_libc
=no
5676 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
5678 if test "$gt_cv_func_gettext_libc" != "yes"; then
5679 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
5680 echo "configure:5681: checking for bindtextdomain in -lintl" >&5
5681 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
5682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5685 ac_save_LIBS
="$LIBS"
5687 cat > conftest.
$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5693 char bindtextdomain();
5699 if { (eval echo configure
:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5701 eval "ac_cv_lib_$ac_lib_var=yes"
5703 echo "configure: failed program was:" >&5
5704 cat conftest.
$ac_ext >&5
5706 eval "ac_cv_lib_$ac_lib_var=no"
5709 LIBS
="$ac_save_LIBS"
5712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5713 echo "$ac_t""yes" 1>&6
5714 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
5715 echo "configure:5716: checking for gettext in libintl" >&5
5716 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5719 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
5720 echo "configure:5721: checking for gettext in -lintl" >&5
5721 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
5722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 ac_save_LIBS
="$LIBS"
5727 cat > conftest.
$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5739 if { (eval echo configure
:5740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5741 eval "ac_cv_lib_$ac_lib_var=yes"
5743 echo "configure: failed program was:" >&5
5744 cat conftest.
$ac_ext >&5
5746 eval "ac_cv_lib_$ac_lib_var=no"
5749 LIBS
="$ac_save_LIBS"
5752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5753 echo "$ac_t""yes" 1>&6
5754 gt_cv_func_gettext_libintl
=yes
5756 echo "$ac_t""no" 1>&6
5757 gt_cv_func_gettext_libintl
=no
5762 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
5764 echo "$ac_t""no" 1>&6
5769 if test "$gt_cv_func_gettext_libintl" = "yes"; then
5773 if test "$gt_cv_func_gettext_libc" = "yes" \
5774 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5775 cat >> confdefs.h
<<\EOF
5776 #define HAVE_GETTEXT 1
5779 # Extract the first word of "msgfmt", so it can be a program name with args.
5780 set dummy msgfmt
; ac_word
=$2
5781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5782 echo "configure:5783: checking for $ac_word" >&5
5783 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5788 gcc_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5791 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5792 for ac_dir
in $PATH; do
5793 test -z "$ac_dir" && ac_dir
=.
5794 if test -f $ac_dir/$ac_word; then
5795 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5796 gcc_cv_path_MSGFMT
="$ac_dir/$ac_word"
5802 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT
="no"
5806 MSGFMT
="$gcc_cv_path_MSGFMT"
5807 if test -n "$MSGFMT"; then
5808 echo "$ac_t""$MSGFMT" 1>&6
5810 echo "$ac_t""no" 1>&6
5812 if test "$MSGFMT" != "no"; then
5813 for ac_func
in dcgettext
5815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_func" >&5
5817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5820 cat > conftest.
$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 /* System header to define __stub macros and hopefully few prototypes,
5824 which can conflict with char $ac_func(); below. */
5826 /* Override any gcc2 internal prototype to avoid an error. */
5827 /* We use char because int might match the return type of a gcc2
5828 builtin and then its argument prototype would still apply. */
5833 /* The GNU C library defines this for functions which it implements
5834 to always fail with ENOSYS. Some functions are actually named
5835 something starting with __ and the normal name is an alias. */
5836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5844 if { (eval echo configure
:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5846 eval "ac_cv_func_$ac_func=yes"
5848 echo "configure: failed program was:" >&5
5849 cat conftest.
$ac_ext >&5
5851 eval "ac_cv_func_$ac_func=no"
5856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5857 echo "$ac_t""yes" 1>&6
5858 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5859 cat >> confdefs.h
<<EOF
5860 #define $ac_tr_func 1
5864 echo "$ac_t""no" 1>&6
5868 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5869 set dummy gmsgfmt
; ac_word
=$2
5870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5871 echo "configure:5872: checking for $ac_word" >&5
5872 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5877 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5880 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
5883 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5885 for ac_dir
in $ac_dummy; do
5886 test -z "$ac_dir" && ac_dir
=.
5887 if test -f $ac_dir/$ac_word; then
5888 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
5893 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="$MSGFMT"
5897 GMSGFMT
="$gcc_cv_path_GMSGFMT"
5898 if test -n "$GMSGFMT"; then
5899 echo "$ac_t""$GMSGFMT" 1>&6
5901 echo "$ac_t""no" 1>&6
5904 # Extract the first word of "xgettext", so it can be a program name with args.
5905 set dummy xgettext
; ac_word
=$2
5906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5907 echo "configure:5908: checking for $ac_word" >&5
5908 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5913 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5916 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5917 for ac_dir
in $PATH; do
5918 test -z "$ac_dir" && ac_dir
=.
5919 if test -f $ac_dir/$ac_word; then
5920 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5921 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5927 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
5931 XGETTEXT
="$gcc_cv_path_XGETTEXT"
5932 if test -n "$XGETTEXT"; then
5933 echo "$ac_t""$XGETTEXT" 1>&6
5935 echo "$ac_t""no" 1>&6
5938 cat > conftest.
$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5943 extern int _nl_msg_cat_cntr;
5944 return _nl_msg_cat_cntr
5947 if { (eval echo configure
:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5952 echo "configure: failed program was:" >&5
5953 cat conftest.
$ac_ext >&5
5961 create_catalogs
="no"
5966 echo "$ac_t""no" 1>&6
5970 if test "$CATOBJEXT" = "NONE"; then
5971 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
5972 echo "configure:5973: checking whether catgets can be used" >&5
5973 # Check whether --with-catgets or --without-catgets was given.
5974 if test "${with_catgets+set}" = set; then
5975 withval
="$with_catgets"
5976 nls_cv_use_catgets
=$withval
5978 nls_cv_use_catgets
=no
5981 echo "$ac_t""$nls_cv_use_catgets" 1>&6
5983 if test "$nls_cv_use_catgets" = "yes"; then
5984 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
5985 echo "configure:5986: checking for main in -li" >&5
5986 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
5987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5990 ac_save_LIBS
="$LIBS"
5992 cat > conftest.
$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
6000 if { (eval echo configure
:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6002 eval "ac_cv_lib_$ac_lib_var=yes"
6004 echo "configure: failed program was:" >&5
6005 cat conftest.
$ac_ext >&5
6007 eval "ac_cv_lib_$ac_lib_var=no"
6010 LIBS
="$ac_save_LIBS"
6013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6017 cat >> confdefs.h
<<EOF
6018 #define $ac_tr_lib 1
6024 echo "$ac_t""no" 1>&6
6027 echo $ac_n "checking for catgets""... $ac_c" 1>&6
6028 echo "configure:6029: checking for catgets" >&5
6029 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 cat > conftest.
$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 /* System header to define __stub macros and hopefully few prototypes,
6036 which can conflict with char catgets(); below. */
6038 /* Override any gcc2 internal prototype to avoid an error. */
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6045 /* The GNU C library defines this for functions which it implements
6046 to always fail with ENOSYS. Some functions are actually named
6047 something starting with __ and the normal name is an alias. */
6048 #if defined (__stub_catgets) || defined (__stub___catgets)
6056 if { (eval echo configure
:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6058 eval "ac_cv_func_catgets=yes"
6060 echo "configure: failed program was:" >&5
6061 cat conftest.
$ac_ext >&5
6063 eval "ac_cv_func_catgets=no"
6068 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6070 cat >> confdefs.h
<<\EOF
6071 #define HAVE_CATGETS 1
6074 INTLOBJS
="\$(CATOBJS)"
6075 # Extract the first word of "gencat", so it can be a program name with args.
6076 set dummy gencat
; ac_word
=$2
6077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6078 echo "configure:6079: checking for $ac_word" >&5
6079 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6084 gcc_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
6087 gcc_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
6090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6092 for ac_dir
in $ac_dummy; do
6093 test -z "$ac_dir" && ac_dir
=.
6094 if test -f $ac_dir/$ac_word; then
6095 gcc_cv_path_GENCAT
="$ac_dir/$ac_word"
6100 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT
="no"
6104 GENCAT
="$gcc_cv_path_GENCAT"
6105 if test -n "$GENCAT"; then
6106 echo "$ac_t""$GENCAT" 1>&6
6108 echo "$ac_t""no" 1>&6
6110 if test "$GENCAT" != "no"; then
6111 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6112 set dummy gmsgfmt
; ac_word
=$2
6113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6114 echo "configure:6115: checking for $ac_word" >&5
6115 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6120 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6123 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6126 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6128 for ac_dir
in $ac_dummy; do
6129 test -z "$ac_dir" && ac_dir
=.
6130 if test -f $ac_dir/$ac_word; then
6131 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6136 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="no"
6140 GMSGFMT
="$gcc_cv_path_GMSGFMT"
6141 if test -n "$GMSGFMT"; then
6142 echo "$ac_t""$GMSGFMT" 1>&6
6144 echo "$ac_t""no" 1>&6
6147 if test "$GMSGFMT" = "no"; then
6148 # Extract the first word of "msgfmt", so it can be a program name with args.
6149 set dummy msgfmt
; ac_word
=$2
6150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6151 echo "configure:6152: checking for $ac_word" >&5
6152 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6157 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6161 for ac_dir
in $PATH; do
6162 test -z "$ac_dir" && ac_dir
=.
6163 if test -f $ac_dir/$ac_word; then
6164 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6165 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6171 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="msgfmt"
6175 GMSGFMT
="$gcc_cv_path_GMSGFMT"
6176 if test -n "$GMSGFMT"; then
6177 echo "$ac_t""$GMSGFMT" 1>&6
6179 echo "$ac_t""no" 1>&6
6182 if test "$GMSGFMT" = "msgfmt"; then
6183 create_catalogs
="no"
6186 # Extract the first word of "xgettext", so it can be a program name with args.
6187 set dummy xgettext
; ac_word
=$2
6188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6189 echo "configure:6190: checking for $ac_word" >&5
6190 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6195 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6198 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6199 for ac_dir
in $PATH; do
6200 test -z "$ac_dir" && ac_dir
=.
6201 if test -f $ac_dir/$ac_word; then
6202 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6203 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6209 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
6213 XGETTEXT
="$gcc_cv_path_XGETTEXT"
6214 if test -n "$XGETTEXT"; then
6215 echo "$ac_t""$XGETTEXT" 1>&6
6217 echo "$ac_t""no" 1>&6
6220 USE_INCLUDED_LIBINTL
=yes
6224 INTLDEPS
='$(top_builddir)/intl/libintl.a'
6226 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
6227 nls_cv_header_intl
=intl
/libintl.h
6228 nls_cv_header_libgt
=intl
/libgettext.h
6231 echo "$ac_t""no" 1>&6
6237 if test "$CATOBJEXT" = "NONE"; then
6238 nls_cv_use_gnu_gettext
=yes
6242 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6243 INTLOBJS
="\$(GETTOBJS)"
6244 # Extract the first word of "msgfmt", so it can be a program name with args.
6245 set dummy msgfmt
; ac_word
=$2
6246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6247 echo "configure:6248: checking for $ac_word" >&5
6248 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6253 gcc_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6256 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6257 for ac_dir
in $PATH; do
6258 test -z "$ac_dir" && ac_dir
=.
6259 if test -f $ac_dir/$ac_word; then
6260 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6261 gcc_cv_path_MSGFMT
="$ac_dir/$ac_word"
6267 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT
="msgfmt"
6271 MSGFMT
="$gcc_cv_path_MSGFMT"
6272 if test -n "$MSGFMT"; then
6273 echo "$ac_t""$MSGFMT" 1>&6
6275 echo "$ac_t""no" 1>&6
6278 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6279 set dummy gmsgfmt
; ac_word
=$2
6280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6281 echo "configure:6282: checking for $ac_word" >&5
6282 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6287 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6290 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6295 for ac_dir
in $ac_dummy; do
6296 test -z "$ac_dir" && ac_dir
=.
6297 if test -f $ac_dir/$ac_word; then
6298 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6303 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="$MSGFMT"
6307 GMSGFMT
="$gcc_cv_path_GMSGFMT"
6308 if test -n "$GMSGFMT"; then
6309 echo "$ac_t""$GMSGFMT" 1>&6
6311 echo "$ac_t""no" 1>&6
6314 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
6315 create_catalogs
="no"
6317 # Extract the first word of "xgettext", so it can be a program name with args.
6318 set dummy xgettext
; ac_word
=$2
6319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6320 echo "configure:6321: checking for $ac_word" >&5
6321 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6326 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6329 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6330 for ac_dir
in $PATH; do
6331 test -z "$ac_dir" && ac_dir
=.
6332 if test -f $ac_dir/$ac_word; then
6333 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6334 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6340 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
6344 XGETTEXT
="$gcc_cv_path_XGETTEXT"
6345 if test -n "$XGETTEXT"; then
6346 echo "$ac_t""$XGETTEXT" 1>&6
6348 echo "$ac_t""no" 1>&6
6352 USE_INCLUDED_LIBINTL
=yes
6356 INTLDEPS
='$(top_builddir)/intl/libintl.a'
6358 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
6359 nls_cv_header_intl
=intl
/libintl.h
6360 nls_cv_header_libgt
=intl
/libgettext.h
6363 if test "$XGETTEXT" != ":"; then
6364 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
6367 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6374 # We need to process the po/ directory.
6378 nls_cv_header_intl
=intl
/libintl.h
6379 nls_cv_header_libgt
=intl
/libgettext.h
6385 # If this is used in GNU gettext we have to set USE_NLS to `yes'
6386 # because some of the sources are only built for this goal.
6387 if test "$PACKAGE" = gettext; then
6389 USE_INCLUDED_LIBINTL
=yes
6392 for lang
in $ALL_LINGUAS; do
6393 GMOFILES
="$GMOFILES $lang.gmo"
6394 POFILES
="$POFILES $lang.po"
6410 if test "x$create_catalogs" = "xno"; then
6411 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
6414 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
6415 if test "x$ALL_LINGUAS" = "x"; then
6418 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6419 echo "configure:6420: checking for catalogs to be installed" >&5
6420 if test "x$LINGUAS" = "x"; then
6421 LINGUAS
=$ALL_LINGUAS
6424 for lang
in $ALL_LINGUAS; do
6425 case " $LINGUAS " in
6426 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
6429 LINGUAS
=$NEW_LINGUAS
6431 echo "$ac_t""$LINGUAS" 1>&6
6434 if test -n "$LINGUAS"; then
6435 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
6439 if test $ac_cv_header_locale_h = yes; then
6440 INCLUDE_LOCALE_H
="#include <locale.h>"
6443 /* The system does not provide the header <locale.h>. Take care yourself. */"
6447 test -d intl || mkdir intl
6448 if test "$CATOBJEXT" = ".cat"; then
6449 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
6450 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
6451 echo "configure:6452: checking for linux/version.h" >&5
6452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6455 cat > conftest.
$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 #include <linux/version.h>
6460 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6461 { (eval echo configure
:6462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6462 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6463 if test -z "$ac_err"; then
6465 eval "ac_cv_header_$ac_safe=yes"
6468 echo "configure: failed program was:" >&5
6469 cat conftest.
$ac_ext >&5
6471 eval "ac_cv_header_$ac_safe=no"
6475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6476 echo "$ac_t""yes" 1>&6
6479 echo "$ac_t""no" 1>&6
6484 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
6486 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
6487 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
6489 if test "$PACKAGE" = "gettext"; then
6500 if test -n "$ac_aux_dir"; then
6501 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6503 if test -z "$MKINSTALLDIRS"; then
6504 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6511 test -d po || mkdir po
6512 if test "x$srcdir" != "x."; then
6513 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6514 posrcprefix
="$srcdir/"
6516 posrcprefix
="../$srcdir/"
6522 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6523 < $srcdir/po
/POTFILES.
in > po
/POTFILES
6525 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
6527 # Windows32 Registry support for specifying GCC installation paths.
6528 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6529 if test "${enable_win32_registry+set}" = set; then
6530 enableval
="$enable_win32_registry"
6535 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6536 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6537 echo "configure:6538: checking whether windows registry support is requested" >&5
6538 if test "x$enable_win32_registry" != xno
; then
6539 cat >> confdefs.h
<<\EOF
6540 #define ENABLE_WIN32_REGISTRY 1
6543 echo "$ac_t""yes" 1>&6
6545 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6546 echo "configure:6547: checking for library containing RegOpenKeyExA" >&5
6547 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6548 echo $ac_n "(cached) $ac_c" 1>&6
6550 ac_func_search_save_LIBS
="$LIBS"
6551 ac_cv_search_RegOpenKeyExA
="no"
6552 cat > conftest.
$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6555 /* Override any gcc2 internal prototype to avoid an error. */
6556 /* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6558 char RegOpenKeyExA();
6564 if { (eval echo configure
:6565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6566 ac_cv_search_RegOpenKeyExA
="none required"
6568 echo "configure: failed program was:" >&5
6569 cat conftest.
$ac_ext >&5
6572 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6573 LIBS
="-l$i $ac_func_search_save_LIBS"
6574 cat > conftest.
$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6578 /* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */
6580 char RegOpenKeyExA();
6586 if { (eval echo configure
:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6588 ac_cv_search_RegOpenKeyExA
="-l$i"
6591 echo "configure: failed program was:" >&5
6592 cat conftest.
$ac_ext >&5
6596 LIBS
="$ac_func_search_save_LIBS"
6599 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6600 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6601 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6607 echo "$ac_t""no" 1>&6
6610 # Check if user specified a different registry key.
6611 case "x${enable_win32_registry}" in
6614 gcc_cv_win32_registry_key
="$VERSION"
6617 # no registry lookup.
6618 gcc_cv_win32_registry_key
=''
6621 # user-specified key.
6622 gcc_cv_win32_registry_key
="$enable_win32_registry"
6626 if test "x$enable_win32_registry" != xno
; then
6627 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6628 echo "configure:6629: checking registry key on windows hosts" >&5
6629 cat >> confdefs.h
<<EOF
6630 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6633 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6638 # Get an absolute path to the GCC top-level source directory
6644 # Conditionalize the makefile for this host machine.
6645 # Make-host contains the concatenation of all host makefile fragments
6646 # [there can be more than one]. This file is built by configure.frag.
6647 host_overrides
=Make-host
6648 dep_host_xmake_file
=
6649 for f
in ..
${host_xmake_file}
6651 if test -f ${srcdir}/config
/$f
6653 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6657 # Conditionalize the makefile for this target machine.
6658 # Make-target contains the concatenation of all host makefile fragments
6659 # [there can be more than one]. This file is built by configure.frag.
6660 target_overrides
=Make-target
6662 for f
in ..
${tmake_file}
6664 if test -f ${srcdir}/config
/$f
6666 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6670 # If the host doesn't support symlinks, modify CC in
6671 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6672 # Otherwise, we can use "CC=$(CC)".
6674 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6676 cc_set_by_configure
="\$(CC)"
6677 quoted_cc_set_by_configure
="\$(CC)"
6678 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6681 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6683 symbolic_link
="cp -p"
6687 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6688 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6689 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6693 out_object_file
=`basename $out_file .c`.o
6696 for f
in $tm_file; do
6699 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6701 tm_file_list
="${tm_file_list} $f" ;;
6702 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6707 for f
in $tm_p_file; do
6708 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6712 for f
in $host_xm_file; do
6715 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6716 auto-host.h | defaults.h
)
6717 host_xm_file_list
="${host_xm_file_list} $f" ;;
6718 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6723 for f
in $build_xm_file; do
6726 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6727 auto-build.h | auto-host.h | defaults.h
)
6728 build_xm_file_list
="${build_xm_file_list} $f" ;;
6729 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6733 # Define macro CROSS_COMPILE in compilation
6734 # if this is a cross-compiler.
6735 # Also use all.cross instead of all.internal
6736 # and add cross-make to Makefile.
6737 cross_overrides
="/dev/null"
6738 if test x
$host != x
$target
6740 cross_defines
="CROSS=-DCROSS_COMPILE"
6741 cross_overrides
="${topdir}/cross-make"
6744 # If this is a cross-compiler that does not
6745 # have its own set of headers then define
6748 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6749 # This prevents libgcc2 from containing any code which requires libc
6752 if test x
$host != x
$target && test x
$with_headers = x
; then
6753 inhibit_libc
=-Dinhibit_libc
6755 if test x
$with_newlib = xyes
; then
6756 inhibit_libc
=-Dinhibit_libc
6761 # When building gcc with a cross-compiler, we need to fix a few things.
6762 # This must come after cross-make as we want all.build to override
6764 build_overrides
="/dev/null"
6765 if test x
$build != x
$host
6767 build_overrides
="${topdir}/build-make"
6770 # Expand extra_headers to include complete path.
6771 # This substitutes for lots of t-* files.
6773 if test "x$extra_headers" = x
6776 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
6777 for file in $extra_headers;
6779 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
6783 if test x
$use_collect2 = xno
; then
6787 # Add a definition of USE_COLLECT2 if system wants one.
6788 # Also tell toplev.c what to do.
6789 # This substitutes for lots of t-* files.
6790 if test x
$use_collect2 = x
6795 will_use_collect2
="collect2"
6796 maybe_use_collect2
="-DUSE_COLLECT2"
6799 # If we have gas in the build tree, make a link to it.
6800 if test -f ..
/gas
/Makefile
; then
6801 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6804 # If we have nm in the build tree, make a link to it.
6805 if test -f ..
/binutils
/Makefile
; then
6806 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6809 # If we have ld in the build tree, make a link to it.
6810 if test -f ..
/ld
/Makefile
; then
6811 # if test x$use_collect2 = x; then
6812 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
6814 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6818 # Figure out what assembler we will be using.
6819 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6820 echo "configure:6821: checking what assembler to use" >&5
6822 gcc_cv_gas_major_version
=
6823 gcc_cv_gas_minor_version
=
6824 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6825 if test -x "$DEFAULT_ASSEMBLER"; then
6826 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6827 elif test -x "$AS"; then
6829 elif test -x as
$host_exeext; then
6830 # Build using assembler in the current directory.
6831 gcc_cv_as
=.
/as
$host_exeext
6832 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6833 # Single tree build which includes gas.
6834 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
6836 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6837 if test x
$gcc_cv_gas_version != x
; then
6841 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6842 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6845 if test "x$gcc_cv_as" = x
-a x
$host = x
$target; then
6847 # Search the same directories that the installed compiler will
6848 # search. Else we may find the wrong assembler and lose. If we
6849 # do not find a suitable assembler binary, then try the user's
6852 # Also note we have to check MD_EXEC_PREFIX before checking the
6853 # user's path. Unfortunately, there is no good way to get at the
6854 # value of MD_EXEC_PREFIX here. So we do a brute force search
6855 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6856 # to be fixed as part of the make/configure rewrite too.
6858 if test "x$exec_prefix" = xNONE
; then
6859 if test "x$prefix" = xNONE
; then
6860 test_prefix
=/usr
/local
6865 test_prefix
=$exec_prefix
6868 # If the loop below does not find an assembler, then use whatever
6869 # one we can find in the users's path.
6871 gcc_cv_as
=as
$host_exeext
6873 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6874 $test_prefix/lib/gcc-lib/$target \
6875 /usr/lib/gcc/$target/$gcc_version \
6876 /usr/lib/gcc/$target \
6877 $test_prefix/$target/bin/$target/$gcc_version \
6878 $test_prefix/$target/bin \
6883 /bsd43/usr/lib/cmplrs/cc \
6884 /usr/cross64/usr/bin \
6885 /usr/lib/cmplrs/cc \
6886 /sysv/usr/lib/cmplrs/cc \
6887 /svr4/usr/lib/cmplrs/cc \
6890 for dir
in $test_dirs; do
6891 if test -f $dir/as
$host_exeext; then
6892 gcc_cv_as
=$dir/as
$host_exeext
6897 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6898 echo "$ac_t"""newly built gas
"" 1>&6
6900 echo "$ac_t""$gcc_cv_as" 1>&6
6903 # Figure out what nm we will be using.
6904 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
6905 echo "configure:6906: checking what nm to use" >&5
6906 if test -x nm
$host_exeext; then
6907 gcc_cv_nm
=.
/nm
$host_exeext
6908 elif test x
$host = x
$target; then
6910 gcc_cv_nm
=nm
$host_exeext
6912 echo "$ac_t""$gcc_cv_nm" 1>&6
6914 # Figure out what assembler alignment features are present.
6915 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
6916 echo "configure:6917: checking assembler alignment features" >&5
6917 gcc_cv_as_alignment_features
=none
6918 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6919 # Gas version 2.6 and later support for .balign and .p2align.
6920 # bytes to skip when using .p2align.
6921 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
6922 gcc_cv_as_alignment_features
=".balign and .p2align"
6923 cat >> confdefs.h
<<\EOF
6924 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6928 # Gas version 2.8 and later support specifying the maximum
6929 # bytes to skip when using .p2align.
6930 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
6931 gcc_cv_as_alignment_features
=".p2align including maximum skip"
6932 cat >> confdefs.h
<<\EOF
6933 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6937 elif test x
$gcc_cv_as != x
; then
6938 # Check if we have .balign and .p2align
6939 echo ".balign 4" > conftest.s
6940 echo ".p2align 2" >> conftest.s
6941 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6942 gcc_cv_as_alignment_features
=".balign and .p2align"
6943 cat >> confdefs.h
<<\EOF
6944 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6948 rm -f conftest.s conftest.o
6949 # Check if specifying the maximum bytes to skip when
6950 # using .p2align is supported.
6951 echo ".p2align 4,,7" > conftest.s
6952 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6953 gcc_cv_as_alignment_features
=".p2align including maximum skip"
6954 cat >> confdefs.h
<<\EOF
6955 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6959 rm -f conftest.s conftest.o
6961 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
6963 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
6964 echo "configure:6965: checking assembler subsection support" >&5
6965 gcc_cv_as_subsections
=no
6966 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6967 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
6968 gcc_cv_as_subsections
="working .subsection -1"
6970 elif test x
$gcc_cv_as != x
; then
6971 # Check if we have .subsection
6972 echo ".subsection 1" > conftest.s
6973 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6974 gcc_cv_as_subsections
=".subsection"
6975 if test x
$gcc_cv_nm != x
; then
6976 cat > conftest.s
<<EOF
6977 conftest_label1: .word 0
6979 conftest_label2: .word 0
6982 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6983 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
6984 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
6985 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
6988 gcc_cv_as_subsections
="working .subsection -1"
6993 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6995 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
6996 cat >> confdefs.h
<<\EOF
6997 #define HAVE_GAS_SUBSECTION_ORDERING 1
7001 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7003 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7004 echo "configure:7005: checking assembler weak support" >&5
7006 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7007 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
7008 gcc_cv_as_weak
="yes"
7010 elif test x
$gcc_cv_as != x
; then
7011 # Check if we have .weak
7012 echo " .weak foobar" > conftest.s
7013 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7014 gcc_cv_as_weak
="yes"
7016 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7018 if test x
"$gcc_cv_as_weak" = xyes
; then
7019 cat >> confdefs.h
<<\EOF
7020 #define HAVE_GAS_WEAK 1
7024 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7026 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7027 echo "configure:7028: checking assembler hidden support" >&5
7029 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7030 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7031 gcc_cv_as_hidden
="yes"
7033 elif test x
$gcc_cv_as != x
; then
7034 # Check if we have .hidden
7035 echo " .hidden foobar" > conftest.s
7036 echo "foobar:" >> conftest.s
7037 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7038 gcc_cv_as_hidden
="yes"
7040 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7042 if test x
"$gcc_cv_as_hidden" = xyes
; then
7043 cat >> confdefs.h
<<\EOF
7044 #define HAVE_GAS_HIDDEN 1
7048 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7050 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7051 echo "configure:7052: checking assembler leb128 support" >&5
7053 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7054 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
7055 gcc_cv_as_leb128
="yes"
7057 elif test x
$gcc_cv_as != x
; then
7058 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7059 cat > conftest.s
<<EOF
7067 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7068 gcc_cv_as_leb128
="yes"
7070 # GAS versions before 2.11 do not support uleb128,
7071 # despite appearing to.
7072 # ??? There exists an elf-specific test that will crash
7073 # the assembler. Perhaps it's better to figure out whether
7074 # arbitrary sections are supported and try the test.
7075 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7076 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7077 as_ver
=`echo $as_ver | sed -e 's/.* //'`
7078 as_major
=`echo $as_ver | sed 's/\..*//'`
7079 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7080 if test $as_major -eq 2 -a $as_minor -lt 11; then
7081 gcc_cv_as_leb128
="no"
7085 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7087 if test x
"$gcc_cv_as_leb128" = xyes
; then
7088 cat >> confdefs.h
<<\EOF
7089 #define HAVE_AS_LEB128 1
7093 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7095 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7096 echo "configure:7097: checking assembler eh_frame optimization" >&5
7097 gcc_cv_as_eh_frame
=no
7098 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7099 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
7100 gcc_cv_as_eh_frame
="yes"
7102 elif test x
$gcc_cv_as != x
; then
7103 # Check if this is GAS.
7104 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7105 rm -f a.out
2> /dev
/null
7106 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7107 # Versions up to and including 2.11.0 may mis-optimize
7108 # .eh_frame data. Try something.
7109 cat > conftest.s
<<EOF
7116 .section .eh_frame,"aw",@progbits
7118 .4byte .LECIE1-.LSCIE1
7132 .4byte .LEFDE1-.LASFDE1
7134 .4byte .LASFDE1-__FRAME_BEGIN__
7143 cat > conftest.lit
<<EOF
7144 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7145 0010 01000000 12000000 18000000 00000000 ................
7146 0020 08000000 04080000 0044 .........D
7148 cat > conftest.big
<<EOF
7149 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7150 0010 00000001 00000012 00000018 00000000 ................
7151 0020 00000008 04000000 0844 .........D
7153 # If the assembler didn't choke, and we can objdump,
7154 # and we got the correct data, then succeed.
7155 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7156 && objdump
-s -j .eh_frame conftest.o
2>/dev
/null \
7157 |
tail -3 > conftest.got \
7158 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7159 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7161 gcc_cv_as_eh_frame
="yes"
7163 gcc_cv_as_eh_frame
="bad"
7164 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7165 cat >> confdefs.h
<<\EOF
7166 #define USE_AS_TRADITIONAL_FORMAT 1
7174 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7178 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7179 echo "configure:7180: checking assembler .register pseudo-op support" >&5
7180 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7181 echo $ac_n "(cached) $ac_c" 1>&6
7184 gcc_cv_as_register_pseudo_op
=unknown
7185 if test x
$gcc_cv_as != x
; then
7186 # Check if we have .register
7187 echo ".register %g2, #scratch" > conftest.s
7188 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7189 gcc_cv_as_register_pseudo_op
=yes
7191 gcc_cv_as_register_pseudo_op
=no
7193 rm -f conftest.s conftest.o
7198 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7199 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7200 cat >> confdefs.h
<<\EOF
7201 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7206 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7207 echo "configure:7208: checking assembler supports -relax" >&5
7208 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7209 echo $ac_n "(cached) $ac_c" 1>&6
7212 gcc_cv_as_relax_opt
=unknown
7213 if test x
$gcc_cv_as != x
; then
7214 # Check if gas supports -relax
7215 echo ".text" > conftest.s
7216 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7217 gcc_cv_as_relax_opt
=yes
7219 gcc_cv_as_relax_opt
=no
7221 rm -f conftest.s conftest.o
7226 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7227 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7228 cat >> confdefs.h
<<\EOF
7229 #define HAVE_AS_RELAX_OPTION 1
7236 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
7237 echo "configure:7238: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
7238 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7242 if test -n "$gcc_cv_as"; then
7243 echo ".xword foo" > conftest.s
7244 gcc_cv_as_flags64
=no
7245 for flag
in "-xarch=v9" "-64 -Av9"; do
7246 if $gcc_cv_as $flag -o conftest.o conftest.s \
7247 > /dev
/null
2>&1; then
7248 gcc_cv_as_flags64
=$flag
7252 rm -f conftest.s conftest.o
7254 if test "$gas" = yes; then
7255 gcc_cv_as_flags64
="-64 -Av9"
7257 gcc_cv_as_flags64
="-xarch=v9"
7263 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
7264 if test "x$gcc_cv_as_flags64" = xno
; then
7266 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7267 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7270 cat >> confdefs.h
<<EOF
7271 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
7276 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
7280 if test "x$gcc_cv_as_flags64" != xno
; then
7281 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7282 echo "configure:7283: checking for assembler offsetable %lo() support" >&5
7283 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7287 gcc_cv_as_offsetable_lo10
=unknown
7288 if test "x$gcc_cv_as" != x
; then
7289 # Check if assembler has offsetable %lo()
7290 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7291 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7292 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7294 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7295 > /dev
/null
2>&1; then
7296 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7297 gcc_cv_as_offsetable_lo10
=no
7299 gcc_cv_as_offsetable_lo10
=yes
7302 gcc_cv_as_offsetable_lo10
=no
7304 rm -f conftest.s conftest.o conftest1.s conftest1.o
7309 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7310 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7311 cat >> confdefs.h
<<\EOF
7312 #define HAVE_AS_OFFSETABLE_LO10 1
7321 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7322 echo "configure:7323: checking assembler instructions" >&5
7323 gcc_cv_as_instructions
=
7324 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7325 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
7326 gcc_cv_as_instructions
="filds fists"
7328 elif test x
$gcc_cv_as != x
; then
7329 set "filds fists" "filds mem; fists mem"
7332 echo "$2" > conftest.s
7333 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7334 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7338 rm -f conftest.s conftest.o
7340 if test x
"$gcc_cv_as_instructions" != x
; then
7341 cat >> confdefs.h
<<EOF
7342 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7346 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7350 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7351 echo "configure:7352: checking assembler dwarf2 debug_line support" >&5
7352 gcc_cv_as_dwarf2_debug_line
=no
7353 # ??? Not all targets support dwarf2 debug_line, even within a version
7354 # of gas. Moreover, we need to emit a valid instruction to trigger any
7355 # info to the output file. So, as supported targets are added to gas 2.11,
7356 # add some instruction here to (also) show we expect this might work.
7357 # ??? Once 2.11 is released, probably need to add first known working
7358 # version to the per-target configury.
7360 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-*)
7367 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7369 if test "$gcc_cv_gas_major_version" -eq 2 \
7370 -a "$gcc_cv_gas_minor_version" -ge 11 \
7371 -o "$gcc_cv_gas_major_version" -gt 2 \
7372 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7373 && test x
"$insn" != x
; then
7374 gcc_cv_as_dwarf2_debug_line
="yes"
7376 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7377 echo ' .file 1 "conftest.s"' > conftest.s
7378 echo ' .loc 1 3 0' >> conftest.s
7379 echo " $insn" >> conftest.s
7380 # ??? This fails with non-gnu grep.
7381 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7382 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7383 # The .debug_line file table must be in the exact order that
7384 # we specified the files, since these indicies are also used
7385 # by DW_AT_decl_file. Approximate this test by testing if
7386 # the assembler bitches if the same index is assigned twice.
7387 echo ' .file 1 "foo.s"' > conftest.s
7388 echo ' .file 1 "bar.s"' >> conftest.s
7389 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7391 gcc_cv_as_dwarf2_debug_line
="no"
7393 gcc_cv_as_dwarf2_debug_line
="yes"
7396 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7398 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7399 cat >> confdefs.h
<<\EOF
7400 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7404 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7406 # Figure out what language subdirectories are present.
7407 # Look if the user specified --enable-languages="..."; if not, use
7408 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7410 if test x
"${enable_languages+set}" != xset
; then
7411 if test x
"${LANGUAGES+set}" = xset
; then
7412 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
7414 enable_languages
=all
7417 if test x
"${enable_languages}" = x
; then
7418 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
7422 # First scan to see if an enabled language requires some other language.
7423 # We assume that a given config-lang.in will list all the language
7424 # front ends it requires, even if some are required indirectly.
7425 for lang
in ${srcdir}/*/config-lang.
in ..
7430 # The odd quoting in the next line works around
7431 # an apparent bug in bash 1.12 on linux.
7432 ${srcdir}/[*]/config-lang.
in)
7435 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7436 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7437 for other
in $this_lang_requires
7439 case ,${enable_languages}, in
7445 enable_languages
="$enable_languages,$other"
7454 for lang
in ${srcdir}/*/config-lang.
in ..
7458 # The odd quoting in the next line works around
7459 # an apparent bug in bash 1.12 on linux.
7460 ${srcdir}/[*]/config-lang.
in) ;;
7462 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7463 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7464 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7465 if test "x$lang_alias" = x
7467 echo "$lang doesn't set \$language." 1>&2
7470 case ${build_by_default},${enable_languages}, in
7471 *,$lang_alias,*) add_this_lang
=yes ;;
7472 no
,*) add_this_lang
=no
;;
7473 *,all
,*) add_this_lang
=yes ;;
7474 *) add_this_lang
=no
;;
7476 if test x
"${add_this_lang}" = xyes
; then
7478 ${srcdir}/ada
/config-lang.
in)
7479 if test x
$have_gnat = xyes
; then
7480 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7484 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7492 # Make gthr-default.h if we have a thread file.
7494 if test $thread_file != single
; then
7495 rm -f gthr-default.h
7496 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7497 gthread_flags
=-DHAVE_GTHR_DEFAULT
7501 # Find out what GC implementation we want, or may, use.
7502 # Check whether --with-gc or --without-gc was given.
7503 if test "${with_gc+set}" = set; then
7510 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7518 echo "Using $GGC for garbage collection."
7520 # Use the system's zlib library.
7522 zlibinc
="-I\$(srcdir)/../zlib"
7523 # Check whether --with-system-zlib or --without-system-zlib was given.
7524 if test "${with_system_zlib+set}" = set; then
7525 withval
="$with_system_zlib"
7535 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7536 echo "configure:7537: checking whether to enable maintainer-specific portions of Makefiles" >&5
7537 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7538 if test "${enable_maintainer_mode+set}" = set; then
7539 enableval
="$enable_maintainer_mode"
7540 maintainer_mode
=$enableval
7546 echo "$ac_t""$maintainer_mode" 1>&6
7548 if test "$maintainer_mode" = "yes"; then
7554 # With Setjmp/Longjmp based exception handling.
7555 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7556 if test "${enable_sjlj_exceptions+set}" = set; then
7557 enableval
="$enable_sjlj_exceptions"
7558 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
7559 cat >> confdefs.h
<<EOF
7560 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
7566 # Make empty files to contain the specs and options for each language.
7567 # Then add #include lines to for a compiler that has specs and/or options.
7572 rm -f specs.h options.h gencheck.h
7573 touch specs.h options.h gencheck.h
7574 for subdir
in .
$subdirs
7576 if test -f $srcdir/$subdir/lang-specs.h
; then
7577 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
7578 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7580 if test -f $srcdir/$subdir/lang-options.h
; then
7581 echo "#include \"$subdir/lang-options.h\"" >>options.h
7582 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
7584 if test -f $srcdir/$subdir/$subdir-tree.def
; then
7585 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
7586 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7590 # These (without "all_") are set in each config-lang.in.
7591 # `language' must be a single word so is spelled singularly.
7597 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
7598 # List of language makefile fragments.
7603 # Add the language fragments.
7604 # Languages are added via two mechanisms. Some information must be
7605 # recorded in makefile variables, these are defined in config-lang.in.
7606 # We accumulate them and plug them into the main Makefile.
7607 # The other mechanism is a set of hooks for each of the main targets
7608 # like `clean', `install', etc.
7610 language_fragments
="Make-lang"
7611 language_hooks
="Make-hooks"
7613 for s
in ..
$subdirs
7625 .
${srcdir}/$s/config-lang.
in
7626 if test "x$language" = x
7628 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7631 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
7632 if test -f ${srcdir}/$s/Makefile.
in
7633 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
7635 all_languages
="$all_languages $language"
7636 if test "x$boot_language" = xyes
7638 all_boot_languages
="$all_boot_languages $language"
7640 all_compilers
="$all_compilers $compilers"
7641 all_stagestuff
="$all_stagestuff $stagestuff"
7642 all_diff_excludes
="$all_diff_excludes $diff_excludes"
7643 all_headers
="$all_headers $headers"
7644 all_outputs
="$all_outputs $outputs"
7645 all_lib2funcs
="$all_lib2funcs $lib2funcs"
7650 for language
in ..
$all_languages
7652 if test $language != ".."
7654 check_languages
="$check_languages check-$language"
7658 # Since we can't use `::' targets, we link each language in
7659 # with a set of hooks, reached indirectly via lang.${target}.
7663 target_list
="all.build all.cross start.encap rest.encap \
7665 install-normal install-common install-info install-man \
7667 mostlyclean clean distclean extraclean maintainer-clean \
7668 stage1 stage2 stage3 stage4"
7669 for t
in $target_list
7672 for lang
in ..
$all_languages
7674 if test $lang != ".."; then
7678 echo "lang.$t: $x" >> Make-hooks
7683 echo "dir ." > .gdbinit
7684 echo "dir ${srcdir}" >> .gdbinit
7685 if test x
$gdb_needs_out_file_path = xyes
7687 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7689 if test "x$subdirs" != x
; then
7692 echo "dir ${srcdir}/$s" >> .gdbinit
7695 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
7697 # Define variables host_canonical and build_canonical
7698 # because some Cygnus local changes in the Makefile depend on them.
7699 build_canonical
=${build}
7700 host_canonical
=${host}
7702 if test "${host}" != "${target}" ; then
7703 target_subdir
=${target_alias}/
7709 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
7710 # absolute path for gcc_tooldir based on inserting the number of up-directory
7711 # movements required to get from $(exec_prefix) to $(prefix) into the basic
7712 # $(libsubdir)/@(unlibsubdir) based path.
7713 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
7714 # make and thus we'd get different behavior depending on where we built the
7716 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
7717 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
7719 # An explanation of the sed strings:
7720 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
7721 # -e 's|/$||' match a trailing forward slash and eliminates it
7722 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
7723 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
7725 # (*) Note this pattern overwrites the first character of the string
7726 # with a forward slash if one is not already present. This is not a
7727 # problem because the exact names of the sub-directories concerned is
7728 # unimportant, just the number of them matters.
7730 # The practical upshot of these patterns is like this:
7732 # prefix exec_prefix result
7733 # ------ ----------- ------
7735 # /foo/ /foo/bar ../
7736 # /foo /foo/bar/ ../
7737 # /foo/ /foo/bar/ ../
7738 # /foo /foo/bar/ugg ../../
7741 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
7746 # Find a directory in which to install a shared libgcc.
7748 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
7749 if test "${enable_version_specific_runtime_libs+set}" = set; then
7750 enableval
="$enable_version_specific_runtime_libs"
7755 # Check whether --with-slibdir or --without-slibdir was given.
7756 if test "${with_slibdir+set}" = set; then
7757 withval
="$with_slibdir"
7758 slibdir
="$with_slibdir"
7760 if test "${enable_version_specific_runtime_libs+set}" = set; then
7761 slibdir
='$(libsubdir)'
7762 elif test "$host" != "$target"; then
7763 slibdir
='$(build_tooldir)/lib'
7771 # Nothing to do for FLOAT_H, float_format already handled.
7775 # Process the language and host/target makefile fragments.
7776 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
7778 # Substitute configuration variables
7849 # Echo that links are built
7850 if test x
$host = x
$target
7858 if test x
$host != x
$build
7860 str3
=" on a $build system"
7863 if test "x$str2" != x ||
test "x$str3" != x
7868 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
7870 if test "x$str2" != x ||
test "x$str3" != x
7872 echo " ${str2}${str3}." 1>&2
7875 # Truncate the target if necessary
7876 if test x
$host_truncate_target != x
; then
7877 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7880 # Configure the subdirectories
7881 # AC_CONFIG_SUBDIRS($subdirs)
7883 # Create the Makefile
7884 # and configure language subdirectories
7886 cat > confcache
<<\EOF
7887 # This file is a shell script that caches the results of configure
7888 # tests run on this system so they can be shared between configure
7889 # scripts and configure runs. It is not useful on other systems.
7890 # If it contains results you don't want to keep, you may remove or edit it.
7892 # By default, configure uses ./config.cache as the cache file,
7893 # creating it if it does not exist already. You can give configure
7894 # the --cache-file=FILE option to use a different cache file; that is
7895 # what configure does when it calls configure scripts in
7896 # subdirectories, so they share the cache.
7897 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7898 # config.status only pays attention to the cache file if you give it the
7899 # --recheck option to rerun configure.
7902 # The following way of writing the cache mishandles newlines in values,
7903 # but we know of no workaround that is simple, portable, and efficient.
7904 # So, don't put newlines in cache variables' values.
7905 # Ultrix sh set writes to stderr and can't be redirected directly,
7906 # and sets the high bit in the cache file unless we assign to the vars.
7908 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7910 # `set' does not quote correctly, so add quotes (double-quote substitution
7911 # turns \\\\ into \\, and sed turns \\ into \).
7913 -e "s/'/'\\\\''/g" \
7914 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7917 # `set' quotes correctly as required by POSIX, so do not add quotes.
7918 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7921 if cmp -s $cache_file confcache
; then
7924 if test -w $cache_file; then
7925 echo "updating cache $cache_file"
7926 cat confcache
> $cache_file
7928 echo "not updating unwritable cache $cache_file"
7933 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7935 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7936 # Let make expand exec_prefix.
7937 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7939 # Any assignment to VPATH causes Sun make to only execute
7940 # the first set of double-colon rules, so remove it if not needed.
7941 # If there is a colon in the path, we need to keep it.
7942 if test "x$srcdir" = x.
; then
7943 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7946 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7948 DEFS
=-DHAVE_CONFIG_H
7950 # Without the "./", some shells look in PATH for config.status.
7951 : ${CONFIG_STATUS=./config.status}
7953 echo creating
$CONFIG_STATUS
7954 rm -f $CONFIG_STATUS
7955 cat > $CONFIG_STATUS <<EOF
7957 # Generated automatically by configure.
7958 # Run this file to recreate the current configuration.
7959 # This directory was configured as follows,
7960 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7962 # $0 $ac_configure_args
7964 # Compiler output produced by configure, useful for debugging
7965 # configure, is in ./config.log if it exists.
7967 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7970 case "\$ac_option" in
7971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7972 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7973 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7974 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7975 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7977 -help | --help | --hel | --he | --h)
7978 echo "\$ac_cs_usage"; exit 0 ;;
7979 *) echo "\$ac_cs_usage"; exit 1 ;;
7983 ac_given_srcdir=$srcdir
7985 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7987 cat >> $CONFIG_STATUS <<EOF
7989 # Protect against being on the right side of a sed subst in config.status.
7990 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7991 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7995 s%@CFLAGS@%$CFLAGS%g
7996 s%@CPPFLAGS@%$CPPFLAGS%g
7997 s%@CXXFLAGS@%$CXXFLAGS%g
7998 s%@FFLAGS@%$FFLAGS%g
8000 s%@LDFLAGS@%$LDFLAGS%g
8002 s%@exec_prefix@%$exec_prefix%g
8003 s%@prefix@%$prefix%g
8004 s%@program_transform_name@%$program_transform_name%g
8005 s%@bindir@%$bindir%g
8006 s%@sbindir@%$sbindir%g
8007 s%@libexecdir@%$libexecdir%g
8008 s%@datadir@%$datadir%g
8009 s%@sysconfdir@%$sysconfdir%g
8010 s%@sharedstatedir@%$sharedstatedir%g
8011 s%@localstatedir@%$localstatedir%g
8012 s%@libdir@%$libdir%g
8013 s%@includedir@%$includedir%g
8014 s%@oldincludedir@%$oldincludedir%g
8015 s%@infodir@%$infodir%g
8016 s%@mandir@%$mandir%g
8017 s%@enable_multilib@%$enable_multilib%g
8018 s%@enable_shared@%$enable_shared%g
8020 s%@host_alias@%$host_alias%g
8021 s%@host_cpu@%$host_cpu%g
8022 s%@host_vendor@%$host_vendor%g
8023 s%@host_os@%$host_os%g
8024 s%@target@%$target%g
8025 s%@target_alias@%$target_alias%g
8026 s%@target_cpu@%$target_cpu%g
8027 s%@target_vendor@%$target_vendor%g
8028 s%@target_os@%$target_os%g
8030 s%@build_alias@%$build_alias%g
8031 s%@build_cpu@%$build_cpu%g
8032 s%@build_vendor@%$build_vendor%g
8033 s%@build_os@%$build_os%g
8035 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8036 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8037 s%@strict1_warn@%$strict1_warn%g
8039 s%@warn_cflags@%$warn_cflags%g
8040 s%@stage1_cflags@%$stage1_cflags%g
8041 s%@SET_MAKE@%$SET_MAKE%g
8045 s%@RANLIB@%$RANLIB%g
8046 s%@INSTALL@%$INSTALL%g
8047 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8048 s%@INSTALL_DATA@%$INSTALL_DATA%g
8049 s%@have_gnat@%$have_gnat%g
8050 s%@have_mktemp_command@%$have_mktemp_command%g
8051 s%@MAKEINFO@%$MAKEINFO%g
8052 s%@BUILD_INFO@%$BUILD_INFO%g
8053 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8056 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8057 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8058 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8059 s%@vfprintf@%$vfprintf%g
8060 s%@doprint@%$doprint%g
8061 s%@strstr@%$strstr%g
8062 s%@LIBICONV@%$LIBICONV%g
8063 s%@manext@%$manext%g
8064 s%@objext@%$objext%g
8065 s%@PACKAGE@%$PACKAGE%g
8066 s%@VERSION@%$VERSION%g
8067 s%@CHECK_PO@%$CHECK_PO%g
8068 s%@USE_NLS@%$USE_NLS%g
8069 s%@MSGFMT@%$MSGFMT%g
8070 s%@GMSGFMT@%$GMSGFMT%g
8071 s%@XGETTEXT@%$XGETTEXT%g
8072 s%@GENCAT@%$GENCAT%g
8073 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8074 s%@CATALOGS@%$CATALOGS%g
8075 s%@CATOBJEXT@%$CATOBJEXT%g
8076 s%@DATADIRNAME@%$DATADIRNAME%g
8077 s%@GMOFILES@%$GMOFILES%g
8078 s%@INSTOBJEXT@%$INSTOBJEXT%g
8079 s%@INTLDEPS@%$INTLDEPS%g
8080 s%@INTLLIBS@%$INTLLIBS%g
8081 s%@INTLOBJS@%$INTLOBJS%g
8082 s%@POFILES@%$POFILES%g
8084 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8086 s%@GT_YES@%$GT_YES%g
8087 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8089 s%@inhibit_libc@%$inhibit_libc%g
8090 s%@gthread_flags@%$gthread_flags%g
8092 s%@zlibdir@%$zlibdir%g
8093 s%@zlibinc@%$zlibinc%g
8095 s%@build_canonical@%$build_canonical%g
8096 s%@host_canonical@%$host_canonical%g
8097 s%@target_subdir@%$target_subdir%g
8098 s%@gcc_tooldir@%$gcc_tooldir%g
8099 s%@dollar@%$dollar%g
8100 s%@slibdir@%$slibdir%g
8101 s%@objdir@%$objdir%g
8102 s%@subdirs@%$subdirs%g
8103 s%@all_boot_languages@%$all_boot_languages%g
8104 s%@all_compilers@%$all_compilers%g
8105 s%@all_diff_excludes@%$all_diff_excludes%g
8106 s%@all_headers@%$all_headers%g
8107 s%@all_lang_makefiles@%$all_lang_makefiles%g
8108 s%@all_languages@%$all_languages%g
8109 s%@all_lib2funcs@%$all_lib2funcs%g
8110 s%@all_stagestuff@%$all_stagestuff%g
8111 s%@build_exeext@%$build_exeext%g
8112 s%@build_install_headers_dir@%$build_install_headers_dir%g
8113 s%@build_xm_file_list@%$build_xm_file_list%g
8114 s%@build_xm_file@%$build_xm_file%g
8115 s%@build_xm_defines@%$build_xm_defines%g
8116 s%@check_languages@%$check_languages%g
8117 s%@cc_set_by_configure@%$cc_set_by_configure%g
8118 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8119 s%@cpp_install_dir@%$cpp_install_dir%g
8120 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8121 s%@dep_tmake_file@%$dep_tmake_file%g
8122 s%@extra_c_flags@%$extra_c_flags%g
8123 s%@extra_headers_list@%$extra_headers_list%g
8124 s%@extra_objs@%$extra_objs%g
8125 s%@extra_parts@%$extra_parts%g
8126 s%@extra_passes@%$extra_passes%g
8127 s%@extra_programs@%$extra_programs%g
8128 s%@float_h_file@%$float_h_file%g
8129 s%@gcc_config_arguments@%$gcc_config_arguments%g
8130 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8131 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8132 s%@gcc_version@%$gcc_version%g
8133 s%@gcc_version_full@%$gcc_version_full%g
8134 s%@gcc_version_trigger@%$gcc_version_trigger%g
8135 s%@host_exeext@%$host_exeext%g
8136 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8137 s%@host_xm_file_list@%$host_xm_file_list%g
8138 s%@host_xm_file@%$host_xm_file%g
8139 s%@host_xm_defines@%$host_xm_defines%g
8140 s%@install@%$install%g
8141 s%@lang_options_files@%$lang_options_files%g
8142 s%@lang_specs_files@%$lang_specs_files%g
8143 s%@lang_tree_files@%$lang_tree_files%g
8144 s%@local_prefix@%$local_prefix%g
8145 s%@maybe_use_collect2@%$maybe_use_collect2%g
8146 s%@md_file@%$md_file%g
8147 s%@objc_boehm_gc@%$objc_boehm_gc%g
8148 s%@out_file@%$out_file%g
8149 s%@out_object_file@%$out_object_file%g
8150 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8151 s%@symbolic_link@%$symbolic_link%g
8152 s%@thread_file@%$thread_file%g
8153 s%@tm_file_list@%$tm_file_list%g
8154 s%@tm_file@%$tm_file%g
8155 s%@tm_p_file_list@%$tm_p_file_list%g
8156 s%@tm_p_file@%$tm_p_file%g
8157 s%@xm_file@%$xm_file%g
8158 s%@xm_defines@%$xm_defines%g
8159 s%@will_use_collect2@%$will_use_collect2%g
8160 s%@c_target_objs@%$c_target_objs%g
8161 s%@cxx_target_objs@%$cxx_target_objs%g
8162 s%@target_cpu_default@%$target_cpu_default%g
8163 /@target_overrides@/r $target_overrides
8164 s%@target_overrides@%%g
8165 /@host_overrides@/r $host_overrides
8166 s%@host_overrides@%%g
8167 s%@cross_defines@%$cross_defines%g
8168 /@cross_overrides@/r $cross_overrides
8169 s%@cross_overrides@%%g
8170 /@build_overrides@/r $build_overrides
8171 s%@build_overrides@%%g
8172 /@language_fragments@/r $language_fragments
8173 s%@language_fragments@%%g
8174 /@language_hooks@/r $language_hooks
8175 s%@language_hooks@%%g
8180 cat >> $CONFIG_STATUS <<\EOF
8182 # Split the substitutions into bite-sized pieces for seds with
8183 # small command number limits, like on Digital OSF/1 and HP-UX.
8184 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8185 ac_file
=1 # Number of current file.
8186 ac_beg
=1 # First line for current file.
8187 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8190 while $ac_more_lines; do
8191 if test $ac_beg -gt 1; then
8192 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8194 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8196 if test ! -s conftest.s
$ac_file; then
8198 rm -f conftest.s
$ac_file
8200 if test -z "$ac_sed_cmds"; then
8201 ac_sed_cmds
="sed -f conftest.s$ac_file"
8203 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8205 ac_file
=`expr $ac_file + 1`
8207 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8210 if test -z "$ac_sed_cmds"; then
8215 cat >> $CONFIG_STATUS <<EOF
8217 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8219 cat >> $CONFIG_STATUS <<\EOF
8220 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8221 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8223 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8224 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8225 *) ac_file_in
="${ac_file}.in" ;;
8228 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8230 # Remove last slash and all that follows it. Not all systems have dirname.
8231 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8232 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8233 # The file is in a subdirectory.
8234 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8235 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8236 # A "../" for each directory in $ac_dir_suffix.
8237 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8239 ac_dir_suffix
= ac_dots
=
8242 case "$ac_given_srcdir" in
8244 if test -z "$ac_dots"; then top_srcdir
=.
8245 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8246 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8248 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8249 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8253 echo creating
"$ac_file"
8255 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8257 *Makefile
*) ac_comsub
="1i\\
8258 # $configure_input" ;;
8262 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8264 s%@configure_input@%$configure_input%g
8265 s%@srcdir@%$srcdir%g
8266 s%@top_srcdir@%$top_srcdir%g
8267 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8274 # ac_d sets the value in "#define NAME VALUE" lines.
8275 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8276 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8279 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8280 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8281 ac_uB
='\([ ]\)%\1#\2define\3'
8284 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8285 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8286 ac_eB
='$%\1#\2define\3'
8290 if test "${CONFIG_HEADERS+set}" != set; then
8292 cat >> $CONFIG_STATUS <<EOF
8293 CONFIG_HEADERS="auto-host.h:config.in"
8295 cat >> $CONFIG_STATUS <<\EOF
8297 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8300 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8301 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8302 *) ac_file_in
="${ac_file}.in" ;;
8305 echo creating
$ac_file
8307 rm -f conftest.frag conftest.
in conftest.out
8308 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8309 cat $ac_file_inputs > conftest.
in
8313 # Transform confdefs.h into a sed script conftest.vals that substitutes
8314 # the proper values into config.h.in to produce config.h. And first:
8315 # Protect against being on the right side of a sed subst in config.status.
8316 # Protect against being in an unquoted here document in config.status.
8318 cat > conftest.hdr
<<\EOF
8321 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8325 sed -n -f conftest.hdr confdefs.h > conftest.vals
8328 # This sed command replaces #undef with comments. This is necessary, for
8329 # example, in the case of _POSIX_SOURCE, which is predefined and required
8330 # on some systems where configure will not decide to define it.
8331 cat >> conftest.vals <<\EOF
8332 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8335 # Break up conftest.vals because some shells have a limit on
8336 # the size of here documents, and old seds have small limits too.
8341 ac_lines=`grep -c . conftest.vals
`
8342 # grep -c gives empty output for an empty file on some AIX systems.
8343 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8344 # Write a limited-size here document to conftest.frag.
8345 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8346 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8348 sed -f conftest.frag conftest.in > conftest.out
8350 mv conftest.out conftest.in
8352 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8354 mv conftest.tail conftest.vals
8358 cat >> $CONFIG_STATUS <<\EOF
8359 rm -f conftest.frag conftest.h
8360 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8361 cat conftest.in >> conftest.h
8363 if cmp -s $ac_file conftest.h 2>/dev/null; then
8364 echo "$ac_file is unchanged"
8367 # Remove last slash and all that follows it. Not all systems have dirname.
8368 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8369 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8370 # The file is in a subdirectory.
8371 test ! -d "$ac_dir" && mkdir "$ac_dir"
8374 mv conftest.h $ac_file
8380 cat >> $CONFIG_STATUS <<EOF
8381 ac_sources="$nls_cv_header_libgt"
8382 ac_dests="$nls_cv_header_intl"
8385 cat >> $CONFIG_STATUS <<\EOF
8386 srcdir=$ac_given_srcdir
8387 while test -n "$ac_sources"; do
8388 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8389 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8391 echo "linking $srcdir/$ac_source to $ac_dest"
8393 if test ! -r $srcdir/$ac_source; then
8394 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8398 # Make relative symlinks.
8399 # Remove last slash and all that follows it. Not all systems have dirname.
8400 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
8401 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8402 # The dest file is in a subdirectory.
8403 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8404 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
8405 # A "../" for each directory in $ac_dest_dir_suffix.
8406 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
8408 ac_dest_dir_suffix= ac_dots=
8412 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8413 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8416 # Make a symlink if possible; otherwise try a hard link.
8417 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8418 ln $srcdir/$ac_source $ac_dest; then :
8420 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8424 cat >> $CONFIG_STATUS <<EOF
8430 target_alias='${target_alias}'
8432 subdirs='${subdirs}'
8433 symbolic_link='${symbolic_link}'
8434 program_transform_set='${program_transform_set}'
8435 program_transform_name='${program_transform_name}'
8436 dep_host_xmake_file='${dep_host_xmake_file}'
8437 host_xmake_file='${host_xmake_file}'
8438 dep_tmake_file='${dep_tmake_file}'
8439 tmake_file='${tmake_file}'
8440 thread_file='${thread_file}'
8441 gcc_config_arguments='${gcc_config_arguments}'
8442 gcc_version='${gcc_version}'
8443 gcc_version_full='${gcc_version_full}'
8444 gcc_version_trigger='${gcc_version_trigger}'
8445 local_prefix='${local_prefix}'
8446 build_install_headers_dir='${build_install_headers_dir}'
8447 build_exeext='${build_exeext}'
8448 host_exeext='${host_exeext}'
8449 out_file='${out_file}'
8450 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
8451 SET_MAKE='${SET_MAKE}'
8452 target_list='${target_list}'
8453 target_overrides='${target_overrides}'
8454 host_overrides='${host_overrides}'
8455 cross_defines='${cross_defines}'
8456 cross_overrides='${cross_overrides}'
8457 build_overrides='${build_overrides}'
8458 cpp_install_dir='${cpp_install_dir}'
8461 cat >> $CONFIG_STATUS <<\EOF
8462 case "$CONFIG_FILES" in *po/Makefile.in*)
8463 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8466 case x$CONFIG_HEADERS in
8467 xauto-host.h:config.in)
8470 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8471 # bootstrapping and the installation procedure can still use
8472 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8473 # FLAGS_TO_PASS has been modified to solve the problem there.
8474 # This is virtually a duplicate of what happens in configure.lang; we do
8475 # an extra check to make sure this only happens if ln -s can be used.
8476 if test "$symbolic_link" = "ln -s"; then
8477 for d in .. ${subdirs} ; do
8478 if test $d != ..; then
8481 for t in stage1 stage2 stage3 stage4 include
8484 $symbolic_link ../$t $t 2>/dev/null
8490 # Avoid having to add intl to our include paths.
8491 if test -f intl/libintl.h; then
8492 echo creating libintl.h
8493 echo '#include "intl/libintl.h"' >libintl.h
8498 chmod +x $CONFIG_STATUS
8499 rm -fr confdefs* $ac_clean_files
8500 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1