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."
30 enable libstdc++-v3 for building and installation"
32 --with-gxx-include-dir=DIR
33 specifies directory to put g++ header files."
35 --enable-checking[=LIST]
36 enable expensive run-time checks. With LIST,
37 enable only specific categories of checks.
38 Categories are: misc,tree,rtl,gc,gcac; default
41 --disable-cpp don't provide a user-visible C preprocessor."
43 --with-cpp-install-dir=DIR
44 install the user visible C preprocessor in DIR
45 (relative to PREFIX) as well as PREFIX/bin."
47 --enable-c-cpplib link cpplib directly into C and C++ compilers
48 (HIGHLY EXPERIMENTAL)."
50 --enable-c-mbchar Enable multibyte characters for C and C++."
52 --enable-threads enable thread usage for target GCC.
53 --enable-threads=LIB use LIB thread package for target GCC."
55 --enable-objc-gc enable the use of Boehm's garbage collector with
56 the GNU Objective-C runtime."
58 --with-dwarf2 force the default debug format to be DWARF2."
60 --disable-shared don't provide a shared libgcc."
62 --enable-nls use Native Language Support (default)"
64 --disable-nls do not use Native Language Support"
66 --with-included-gettext use the GNU gettext library included here"
68 --with-catgets use catgets functions if available"
70 --disable-win32-registry
71 Disable lookup of installation paths in the
72 Registry on Windows hosts.
73 --enable-win32-registry Enable registry lookup (default).
74 --enable-win32-registry=KEY
75 Use KEY instead of GCC version as the last portion
78 --with-gc={simple,page} Choose the garbage collection mechanism to use
81 --with-system-zlib use installed libz"
84 select the new abi for g++. You must select an ABI
85 at configuration time, so that the correct runtime
86 support is built. You cannot mix ABIs."
88 --enable-maintainer-mode enable make rules and dependencies not useful
89 (and sometimes confusing) to the casual installer"
91 # Initialize some variables set by options.
92 # The variables have the same names as the options, with
93 # dashes changed to underlines.
95 cache_file
=.
/config.cache
104 program_transform_name
=s
,x
,x
,
112 bindir
='${exec_prefix}/bin'
113 sbindir
='${exec_prefix}/sbin'
114 libexecdir
='${exec_prefix}/libexec'
115 datadir
='${prefix}/share'
116 sysconfdir
='${prefix}/etc'
117 sharedstatedir
='${prefix}/com'
118 localstatedir
='${prefix}/var'
119 libdir
='${exec_prefix}/lib'
120 includedir
='${prefix}/include'
121 oldincludedir
='/usr/include'
122 infodir
='${prefix}/info'
123 mandir
='${prefix}/man'
125 # Initialize some other variables.
128 SHELL
=${CONFIG_SHELL-/bin/sh}
129 # Maximum number of lines to put in a shell here document.
136 # If the previous option needs an argument, assign it.
137 if test -n "$ac_prev"; then
138 eval "$ac_prev=\$ac_option"
144 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
148 # Accept the important Cygnus configure options, so we can diagnose typos.
152 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
154 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
155 bindir
="$ac_optarg" ;;
157 -build |
--build |
--buil |
--bui |
--bu)
159 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
160 build
="$ac_optarg" ;;
162 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
163 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
164 ac_prev
=cache_file
;;
165 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
166 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
167 cache_file
="$ac_optarg" ;;
169 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
171 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
173 datadir
="$ac_optarg" ;;
175 -disable-* |
--disable-*)
176 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}=no" ;;
184 -enable-* |
--enable-*)
185 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
195 eval "enable_${ac_feature}='$ac_optarg'" ;;
197 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
198 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
199 |
--exec |
--exe |
--ex)
200 ac_prev
=exec_prefix
;;
201 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
202 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
203 |
--exec=* |
--exe=* |
--ex=*)
204 exec_prefix
="$ac_optarg" ;;
206 -gas |
--gas |
--ga |
--g)
207 # Obsolete; use --with-gas.
210 -help |
--help |
--hel |
--he)
211 # Omit some internal or obsolete options to make the list less imposing.
212 # This message is too long to be a string in the A/UX 3.1 sh.
214 Usage: configure [options] [host]
215 Options: [defaults in brackets after descriptions]
217 --cache-file=FILE cache test results in FILE
218 --help print this message
219 --no-create do not create output files
220 --quiet, --silent do not print \`checking...' messages
221 --version print the version of autoconf that created configure
222 Directory and file names:
223 --prefix=PREFIX install architecture-independent files in PREFIX
225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 --bindir=DIR user executables in DIR [EPREFIX/bin]
228 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
229 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
230 --datadir=DIR read-only architecture-independent data in DIR
232 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
233 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
236 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
237 --includedir=DIR C header files in DIR [PREFIX/include]
238 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
239 --infodir=DIR info documentation in DIR [PREFIX/info]
240 --mandir=DIR man documentation in DIR [PREFIX/man]
241 --srcdir=DIR find the sources in DIR [configure dir or ..]
242 --program-prefix=PREFIX prepend PREFIX to installed program names
243 --program-suffix=SUFFIX append SUFFIX to installed program names
244 --program-transform-name=PROGRAM
245 run sed PROGRAM on installed program names
249 --build=BUILD configure for building on BUILD [BUILD=HOST]
250 --host=HOST configure for HOST [guessed]
251 --target=TARGET configure for TARGET [TARGET=HOST]
252 Features and packages:
253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
255 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
256 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
257 --x-includes=DIR X include files are in DIR
258 --x-libraries=DIR X library files are in DIR
260 if test -n "$ac_help"; then
261 echo "--enable and --with options recognized:$ac_help"
265 -host |
--host |
--hos |
--ho)
267 -host=* |
--host=* |
--hos=* |
--ho=*)
270 -includedir |
--includedir |
--includedi |
--included |
--include \
271 |
--includ |
--inclu |
--incl |
--inc)
272 ac_prev
=includedir
;;
273 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
274 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
275 includedir
="$ac_optarg" ;;
277 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
279 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
280 infodir
="$ac_optarg" ;;
282 -libdir |
--libdir |
--libdi |
--libd)
284 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
285 libdir
="$ac_optarg" ;;
287 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
288 |
--libexe |
--libex |
--libe)
289 ac_prev
=libexecdir
;;
290 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
291 |
--libexe=* |
--libex=* |
--libe=*)
292 libexecdir
="$ac_optarg" ;;
294 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
295 |
--localstate |
--localstat |
--localsta |
--localst \
296 |
--locals |
--local |
--loca |
--loc |
--lo)
297 ac_prev
=localstatedir
;;
298 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
299 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
300 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
301 localstatedir
="$ac_optarg" ;;
303 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
305 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
306 mandir
="$ac_optarg" ;;
309 # Obsolete; use --without-fp.
312 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
316 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
317 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
320 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
321 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
322 |
--oldin |
--oldi |
--old |
--ol |
--o)
323 ac_prev
=oldincludedir
;;
324 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
325 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
326 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
327 oldincludedir
="$ac_optarg" ;;
329 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
331 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
332 prefix
="$ac_optarg" ;;
334 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
335 |
--program-pre |
--program-pr |
--program-p)
336 ac_prev
=program_prefix
;;
337 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
338 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
339 program_prefix
="$ac_optarg" ;;
341 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
342 |
--program-suf |
--program-su |
--program-s)
343 ac_prev
=program_suffix
;;
344 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
345 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
346 program_suffix
="$ac_optarg" ;;
348 -program-transform-name |
--program-transform-name \
349 |
--program-transform-nam |
--program-transform-na \
350 |
--program-transform-n |
--program-transform- \
351 |
--program-transform |
--program-transfor \
352 |
--program-transfo |
--program-transf \
353 |
--program-trans |
--program-tran \
354 |
--progr-tra |
--program-tr |
--program-t)
355 ac_prev
=program_transform_name
;;
356 -program-transform-name=* |
--program-transform-name=* \
357 |
--program-transform-nam=* |
--program-transform-na=* \
358 |
--program-transform-n=* |
--program-transform-=* \
359 |
--program-transform=* |
--program-transfor=* \
360 |
--program-transfo=* |
--program-transf=* \
361 |
--program-trans=* |
--program-tran=* \
362 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
363 program_transform_name
="$ac_optarg" ;;
365 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
366 |
-silent |
--silent |
--silen |
--sile |
--sil)
369 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
371 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
373 sbindir
="$ac_optarg" ;;
375 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
376 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
377 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
379 ac_prev
=sharedstatedir
;;
380 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
381 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
382 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
384 sharedstatedir
="$ac_optarg" ;;
386 -site |
--site |
--sit)
388 -site=* |
--site=* |
--sit=*)
391 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
393 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
394 srcdir
="$ac_optarg" ;;
396 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
397 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
398 ac_prev
=sysconfdir
;;
399 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
400 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
401 sysconfdir
="$ac_optarg" ;;
403 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
405 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
406 target
="$ac_optarg" ;;
408 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
411 -version |
--version |
--versio |
--versi |
--vers)
412 echo "configure generated by autoconf version 2.13"
416 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package
=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}='$ac_optarg'" ;;
428 -without-* |
--without-*)
429 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package
=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}=no" ;;
438 # Obsolete; use --with-x.
441 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
442 |
--x-incl |
--x-inc |
--x-in |
--x-i)
443 ac_prev
=x_includes
;;
444 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
445 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
446 x_includes
="$ac_optarg" ;;
448 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
449 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
450 ac_prev
=x_libraries
;;
451 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
452 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
453 x_libraries
="$ac_optarg" ;;
455 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
459 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
460 echo "configure: warning: $ac_option: invalid host type" 1>&2
462 if test "x$nonopt" != xNONE
; then
463 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
471 if test -n "$ac_prev"; then
472 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477 # File descriptor usage:
480 # 2 errors and warnings
481 # 3 some systems may open it to /dev/tty
482 # 4 used on the Kubota Titan
483 # 6 checking for... messages and results
484 # 5 compiler messages saved in config.log
485 if test "$silent" = yes; then
493 This file contains any messages produced by compilers while
494 running configure, to aid debugging if configure makes a mistake.
497 # Strip out --no-create and --no-recursion so they do not pile up.
498 # Also quote any args containing shell metacharacters.
503 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
504 |
--no-cr |
--no-c) ;;
505 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
506 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
507 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
508 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
509 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
514 # Only set these to C if already set. These must not be set unconditionally
515 # because not all systems understand e.g. LANG=C (notably SCO).
516 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
517 # Non-C LC_CTYPE values break the ctype check.
518 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
519 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
520 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
521 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
524 rm -rf conftest
* confdefs.h
525 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
528 # A filename unique to this package, relative to the directory that
529 # configure is in, which we can look for to find out if srcdir is correct.
530 ac_unique_file
=tree.c
532 # Find the source files, if location was not specified.
533 if test -z "$srcdir"; then
534 ac_srcdir_defaulted
=yes
535 # Try the directory containing this script, then its parent.
537 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
540 if test ! -r $srcdir/$ac_unique_file; then
544 ac_srcdir_defaulted
=no
546 if test ! -r $srcdir/$ac_unique_file; then
547 if test "$ac_srcdir_defaulted" = yes; then
548 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
553 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555 # Prefer explicitly selected file to automatically selected ones.
556 if test -z "$CONFIG_SITE"; then
557 if test "x$prefix" != xNONE
; then
558 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
560 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
563 for ac_site_file
in $CONFIG_SITE; do
564 if test -r "$ac_site_file"; then
565 echo "loading site script $ac_site_file"
570 if test -r "$cache_file"; then
571 echo "loading cache $cache_file"
574 echo "creating cache $cache_file"
579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
580 ac_cpp
='$CPP $CPPFLAGS'
581 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
582 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
583 cross_compiling
=$ac_cv_prog_cc_cross
587 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
588 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
589 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
596 ac_n
= ac_c
='\c' ac_t
=
604 symbolic_link
='ln -s'
607 # Check for bogus environment variables.
608 # Test if LIBRARY_PATH contains the notation for the current directory
609 # since this would lead to problems installing/building glibc.
610 # LIBRARY_PATH contains the current directory if one of the following
612 # - one of the terminals (":" and ";") is the first or last sign
613 # - two terminals occur directly after each other
614 # - the path contains an element with a dot in it
615 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
616 echo "configure:617: checking LIBRARY_PATH variable" >&5
617 case ${LIBRARY_PATH} in
618 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
619 library_path_setting
="contains current directory"
622 library_path_setting
="ok"
625 echo "$ac_t""$library_path_setting" 1>&6
626 if test "$library_path_setting" != "ok"; then
627 { echo "configure: error:
628 *** LIBRARY_PATH shouldn't contain the current directory when
629 *** building gcc. Please change the environment variable
630 *** and run configure again." 1>&2; exit 1; }
633 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
634 # since this would lead to problems installing/building glibc.
635 # GCC_EXEC_PREFIX contains the current directory if one of the following
637 # - one of the terminals (":" and ";") is the first or last sign
638 # - two terminals occur directly after each other
639 # - the path contains an element with a dot in it
640 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
641 echo "configure:642: checking GCC_EXEC_PREFIX variable" >&5
642 case ${GCC_EXEC_PREFIX} in
643 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
644 gcc_exec_prefix_setting
="contains current directory"
647 gcc_exec_prefix_setting
="ok"
650 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
651 if test "$gcc_exec_prefix_setting" != "ok"; then
652 { echo "configure: error:
653 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
654 *** building gcc. Please change the environment variable
655 *** and run configure again." 1>&2; exit 1; }
658 # Check for additional parameters
661 # Check whether --with-gnu-ld or --without-gnu-ld was given.
662 if test "${with_gnu_ld+set}" = set; then
663 withval
="$with_gnu_ld"
664 gnu_ld_flag
="$with_gnu_ld"
670 # With pre-defined ld
671 # Check whether --with-ld or --without-ld was given.
672 if test "${with_ld+set}" = set; then
674 DEFAULT_LINKER
="$with_ld"
677 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
678 if test ! -x "$DEFAULT_LINKER"; then
679 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
680 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
683 cat >> confdefs.h
<<EOF
684 #define DEFAULT_LINKER "$DEFAULT_LINKER"
690 # Check whether --with-gnu-as or --without-gnu-as was given.
691 if test "${with_gnu_as+set}" = set; then
692 withval
="$with_gnu_as"
693 gas_flag
="$with_gnu_as"
699 # Check whether --with-as or --without-as was given.
700 if test "${with_as+set}" = set; then
702 DEFAULT_ASSEMBLER
="$with_as"
705 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
706 if test ! -x "$DEFAULT_ASSEMBLER"; then
707 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
708 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
711 cat >> confdefs.h
<<EOF
712 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
718 # Check whether --with-stabs or --without-stabs was given.
719 if test "${with_stabs+set}" = set; then
720 withval
="$with_stabs"
728 # Check whether --with-elf or --without-elf was given.
729 if test "${with_elf+set}" = set; then
737 # Specify the local prefix
739 # Check whether --with-local-prefix or --without-local-prefix was given.
740 if test "${with_local_prefix+set}" = set; then
741 withval
="$with_local_prefix"
743 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
745 *) local_prefix
=$with_local_prefix ;;
750 # Default local prefix if it is empty
751 if test x
$local_prefix = x
; then
752 local_prefix
=/usr
/local
755 # Build a new-libstdc++ system (ie libstdc++-v3)
756 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
757 echo "configure:758: checking for libstdc++ to install" >&5
758 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
759 if test "${enable_libstdcxx_v3+set}" = set; then
760 enableval
="$enable_libstdcxx_v3"
761 enable_libstdcxx_v3
="$enableval"
763 enable_libstdcxx_v3
=yes
767 if test x
$enable_libstdcxx_v3 = xyes
; then
768 echo "$ac_t""v3" 1>&6
772 echo "$ac_t""v2" 1>&6
777 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
778 # passed in by the toplevel make and thus we'd get different behavior
779 # depending on where we built the sources.
781 # Specify the g++ header file directory
782 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
783 if test "${with_gxx_include_dir+set}" = set; then
784 withval
="$with_gxx_include_dir"
786 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
788 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
793 if test x
${gcc_gxx_include_dir} = x
; then
794 if test x
${enable_version_specific_runtime_libs} = xyes
; then
795 gcc_gxx_include_dir
='${libsubdir}/include/g++'
797 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
798 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
802 # Enable expensive internal checks
803 # Check whether --enable-checking or --disable-checking was given.
804 if test "${enable_checking+set}" = set; then
805 enableval
="$enable_checking"
810 ac_gc_always_collect
=
811 case "${enableval}" in
812 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
814 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
815 set fnord
$enableval; shift
820 misc
) ac_checking
=1 ;;
821 tree
) ac_tree_checking
=1 ;;
822 rtl
) ac_rtl_checking
=1 ;;
823 gc
) ac_gc_checking
=1 ;;
824 gcac
) ac_gc_always_collect
=1 ;;
825 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
832 # Enable some checks by default for development versions of GCC
833 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
836 if test x
$ac_checking != x
; then
837 cat >> confdefs.h
<<\EOF
838 #define ENABLE_CHECKING 1
842 if test x
$ac_tree_checking != x
; then
843 cat >> confdefs.h
<<\EOF
844 #define ENABLE_TREE_CHECKING 1
848 if test x
$ac_rtl_checking != x
; then
849 cat >> confdefs.h
<<\EOF
850 #define ENABLE_RTL_CHECKING 1
854 if test x
$ac_gc_checking != x
; then
855 cat >> confdefs.h
<<\EOF
856 #define ENABLE_GC_CHECKING 1
860 if test x
$ac_gc_always_collect != x
; then
861 cat >> confdefs.h
<<\EOF
862 #define ENABLE_GC_ALWAYS_COLLECT 1
868 # Check whether --enable-cpp or --disable-cpp was given.
869 if test "${enable_cpp+set}" = set; then
870 enableval
="$enable_cpp"
877 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
878 if test "${with_cpp_install_dir+set}" = set; then
879 withval
="$with_cpp_install_dir"
880 if test x
$withval = xyes
; then
881 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
882 elif test x
$withval != xno
; then
883 cpp_install_dir
=$withval
888 # Link cpplib into the compiler proper, for C/C++/ObjC. Defaults to on.
889 maybe_cpplib
=libcpp.a
890 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
891 if test "${enable_c_cpplib+set}" = set; then
892 enableval
="$enable_c_cpplib"
893 if test x
$enable_c_cpplib != xyes
; then
899 if test x
$maybe_cpplib != x
; then
900 cat >> confdefs.h
<<\EOF
907 # Enable Multibyte Characters for C/C++
908 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
909 if test "${enable_c_mbchar+set}" = set; then
910 enableval
="$enable_c_mbchar"
911 if test x
$enable_c_mbchar != xno
; then
912 cat >> confdefs.h
<<\EOF
913 #define MULTIBYTE_CHARS 1
921 # Pass with no value to take the default
922 # Pass with a value to specify a thread package
923 # Check whether --enable-threads or --disable-threads was given.
924 if test "${enable_threads+set}" = set; then
925 enableval
="$enable_threads"
932 enable_threads_flag
=$enable_threads
933 # Check if a valid thread package
934 case x
${enable_threads_flag} in
937 target_thread_file
='single'
941 target_thread_file
=''
943 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
944 xsolaris | xwin32 | xdce | xvxworks | xaix
)
945 target_thread_file
=$enable_threads_flag
948 echo "$enable_threads is an unknown thread package" 1>&2
953 # Check whether --enable-objc-gc or --disable-objc-gc was given.
954 if test "${enable_objc_gc+set}" = set; then
955 enableval
="$enable_objc_gc"
956 if test x
$enable_objc_gc = xno
; then
966 # Check whether --with-dwarf2 or --without-dwarf2 was given.
967 if test "${with_dwarf2+set}" = set; then
968 withval
="$with_dwarf2"
969 dwarf2
="$with_dwarf2"
975 # Check whether --enable-shared or --disable-shared was given.
976 if test "${enable_shared+set}" = set; then
977 enableval
="$enable_shared"
985 # Determine the host, build, and target systems
987 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
988 if test -f $ac_dir/install-sh
; then
990 ac_install_sh
="$ac_aux_dir/install-sh -c"
992 elif test -f $ac_dir/install.sh
; then
994 ac_install_sh
="$ac_aux_dir/install.sh -c"
998 if test -z "$ac_aux_dir"; then
999 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1001 ac_config_guess
=$ac_aux_dir/config.guess
1002 ac_config_sub
=$ac_aux_dir/config.sub
1003 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1006 # Do some error checking and defaulting for the host and target type.
1008 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1011 # 1. You are not allowed to specify --host, --target, and nonopt at the
1013 # 2. Host defaults to nonopt.
1014 # 3. If nonopt is not specified, then host defaults to the current host,
1015 # as determined by config.guess.
1016 # 4. Target and build default to nonopt.
1017 # 5. If nonopt is not specified, then target and build default to host.
1019 # The aliases save the names the user supplied, while $host etc.
1020 # will get canonicalized.
1021 case $host---$target---$nonopt in
1022 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1023 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1027 # Make sure we can run config.sub.
1028 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1029 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1032 echo $ac_n "checking host system type""... $ac_c" 1>&6
1033 echo "configure:1034: checking host system type" >&5
1036 case "$host_alias" in
1040 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1041 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1043 *) host_alias
=$nonopt ;;
1047 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1048 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$host" 1>&6
1053 echo $ac_n "checking target system type""... $ac_c" 1>&6
1054 echo "configure:1055: checking target system type" >&5
1056 target_alias
=$target
1057 case "$target_alias" in
1060 NONE
) target_alias
=$host_alias ;;
1061 *) target_alias
=$nonopt ;;
1065 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1066 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1067 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1068 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069 echo "$ac_t""$target" 1>&6
1071 echo $ac_n "checking build system type""... $ac_c" 1>&6
1072 echo "configure:1073: checking build system type" >&5
1075 case "$build_alias" in
1078 NONE
) build_alias
=$host_alias ;;
1079 *) build_alias
=$nonopt ;;
1083 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1084 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1085 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1086 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1087 echo "$ac_t""$build" 1>&6
1089 test "$host_alias" != "$target_alias" &&
1090 test "$program_prefix$program_suffix$program_transform_name" = \
1092 program_prefix
=${target_alias}-
1095 # Find the native compiler
1096 # Extract the first word of "gcc", so it can be a program name with args.
1097 set dummy gcc
; ac_word
=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 if test -n "$CC"; then
1104 ac_cv_prog_CC
="$CC" # Let the user override the test.
1106 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1108 for ac_dir
in $ac_dummy; do
1109 test -z "$ac_dir" && ac_dir
=.
1110 if test -f $ac_dir/$ac_word; then
1119 if test -n "$CC"; then
1120 echo "$ac_t""$CC" 1>&6
1122 echo "$ac_t""no" 1>&6
1125 if test -z "$CC"; then
1126 # Extract the first word of "cc", so it can be a program name with args.
1127 set dummy cc
; ac_word
=$2
1128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_word" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 if test -n "$CC"; then
1134 ac_cv_prog_CC
="$CC" # Let the user override the test.
1136 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1139 for ac_dir
in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir
=.
1141 if test -f $ac_dir/$ac_word; then
1142 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1143 ac_prog_rejected
=yes
1151 if test $ac_prog_rejected = yes; then
1152 # We found a bogon in the path, so make sure we never use it.
1153 set dummy
$ac_cv_prog_CC
1155 if test $# -gt 0; then
1156 # We chose a different compiler from the bogus one.
1157 # However, it has the same basename, so the bogon will be chosen
1158 # first if we set CC to just the basename; use the full file name.
1160 set dummy
"$ac_dir/$ac_word" "$@"
1168 if test -n "$CC"; then
1169 echo "$ac_t""$CC" 1>&6
1171 echo "$ac_t""no" 1>&6
1174 if test -z "$CC"; then
1175 case "`uname -s`" in
1177 # Extract the first word of "cl", so it can be a program name with args.
1178 set dummy cl
; ac_word
=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$CC"; then
1185 ac_cv_prog_CC
="$CC" # Let the user override the test.
1187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1189 for ac_dir
in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir
=.
1191 if test -f $ac_dir/$ac_word; then
1200 if test -n "$CC"; then
1201 echo "$ac_t""$CC" 1>&6
1203 echo "$ac_t""no" 1>&6
1208 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1211 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1212 echo "configure:1213: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1216 ac_cpp
='$CPP $CPPFLAGS'
1217 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1218 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1219 cross_compiling
=$ac_cv_prog_cc_cross
1221 cat > conftest.
$ac_ext << EOF
1223 #line 1224 "configure"
1224 #include "confdefs.h"
1228 if { (eval echo configure
:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1229 ac_cv_prog_cc_works
=yes
1230 # If we can't run a trivial program, we are probably using a cross compiler.
1231 if (.
/conftest
; exit) 2>/dev
/null
; then
1232 ac_cv_prog_cc_cross
=no
1234 ac_cv_prog_cc_cross
=yes
1237 echo "configure: failed program was:" >&5
1238 cat conftest.
$ac_ext >&5
1239 ac_cv_prog_cc_works
=no
1243 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1244 ac_cpp
='$CPP $CPPFLAGS'
1245 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1246 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1247 cross_compiling
=$ac_cv_prog_cc_cross
1249 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1250 if test $ac_cv_prog_cc_works = no
; then
1251 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1253 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1254 echo "configure:1255: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1255 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1256 cross_compiling
=$ac_cv_prog_cc_cross
1258 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether we are using GNU C" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 cat > conftest.c
<<EOF
1268 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1275 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1277 if test $ac_cv_prog_gcc = yes; then
1283 ac_test_CFLAGS
="${CFLAGS+set}"
1284 ac_save_CFLAGS
="$CFLAGS"
1286 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1287 echo "configure:1288: checking whether ${CC-cc} accepts -g" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 echo 'void f(){}' > conftest.c
1292 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1301 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1302 if test "$ac_test_CFLAGS" = set; then
1303 CFLAGS
="$ac_save_CFLAGS"
1304 elif test $ac_cv_prog_cc_g = yes; then
1305 if test "$GCC" = yes; then
1311 if test "$GCC" = yes; then
1318 if test "x$CC" != xcc
; then
1319 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether $CC and cc understand -c and -o together" >&5
1322 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1323 echo "configure:1324: checking whether cc understands -c and -o together" >&5
1325 set dummy
$CC; ac_cc
="`echo $2 |
1326 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1327 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 echo 'foo(){}' > conftest.c
1331 # Make sure it works both with $CC and with simple cc.
1332 # We do the test twice because some compilers refuse to overwrite an
1333 # existing .o file with -o, though they will create one.
1334 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1335 if { (eval echo configure
:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1336 test -f conftest.o
&& { (eval echo configure
:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1338 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1339 if test "x$CC" != xcc
; then
1340 # Test first that cc exists at all.
1341 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1342 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1343 if { (eval echo configure
:1344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1344 test -f conftest.o
&& { (eval echo configure
:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1349 # cc exists but doesn't like -o.
1350 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1355 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1360 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1363 echo "$ac_t""no" 1>&6
1364 cat >> confdefs.h
<<\EOF
1365 #define NO_MINUS_C_MINUS_O 1
1370 # autoconf is lame and doesn't give us any substitution variable for this.
1371 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1372 NO_MINUS_C_MINUS_O
=yes
1374 OUTPUT_OPTION
='-o $@'
1379 echo $ac_n "checking for long double""... $ac_c" 1>&6
1380 echo "configure:1381: checking for long double" >&5
1381 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 if test "$GCC" = yes; then
1385 gcc_cv_c_long_double
=yes
1387 cat > conftest.
$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1392 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1393 long double foo = 0.0;
1394 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1395 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1398 if { (eval echo configure
:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 gcc_cv_c_long_double
=yes
1402 echo "configure: failed program was:" >&5
1403 cat conftest.
$ac_ext >&5
1405 gcc_cv_c_long_double
=no
1411 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1412 if test $gcc_cv_c_long_double = yes; then
1413 cat >> confdefs.h
<<\EOF
1414 #define HAVE_LONG_DOUBLE 1
1420 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1422 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 save_CFLAGS
="$CFLAGS"
1426 CFLAGS
="-Wno-long-long"
1427 cat > conftest.
$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1435 if { (eval echo configure
:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1437 ac_cv_prog_cc_no_long_long
=yes
1439 echo "configure: failed program was:" >&5
1440 cat conftest.
$ac_ext >&5
1442 ac_cv_prog_cc_no_long_long
=no
1445 CFLAGS
="$save_CFLAGS"
1448 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1450 if test $ac_cv_prog_cc_no_long_long = yes; then
1451 strict1_warn
="-pedantic -Wno-long-long"
1455 # If the native compiler is GCC, we can enable warnings even in stage1.
1456 # That's useful for people building cross-compilers, or just running a
1459 if test "x$GCC" = "xyes"; then
1460 warn_cflags
='$(GCC_WARN_CFLAGS)'
1464 # Stage specific cflags for build.
1468 if test x
$GCC = xyes
1470 stage1_cflags
="-Wa,-J"
1478 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1479 echo "configure:1480: checking whether ${MAKE-make} sets \${MAKE}" >&5
1480 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1481 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftestmake
<<\EOF
1486 @
echo 'ac_maketemp="${MAKE}"'
1488 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1489 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1490 if test -n "$ac_maketemp"; then
1491 eval ac_cv_prog_make_
${ac_make}_set
=yes
1493 eval ac_cv_prog_make_
${ac_make}_set
=no
1497 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1498 echo "$ac_t""yes" 1>&6
1501 echo "$ac_t""no" 1>&6
1502 SET_MAKE
="MAKE=${MAKE-make}"
1506 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether a default assembler was specified" >&5
1508 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1509 if test x
"$gas_flag" = x
"no"; then
1510 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1512 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1515 echo "$ac_t""no" 1>&6
1518 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1519 echo "configure:1520: checking whether a default linker was specified" >&5
1520 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1521 if test x
"$gnu_ld_flag" = x
"no"; then
1522 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1524 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1527 echo "$ac_t""no" 1>&6
1530 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1531 echo "configure:1532: checking for GNU C library" >&5
1532 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 cat > conftest.
$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 #include <features.h>
1541 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1542 #error Not a GNU C library system
1546 if { (eval echo configure
:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1558 echo "$ac_t""$gcc_cv_glibc" 1>&6
1559 if test $gcc_cv_glibc = yes; then
1560 cat >> confdefs.h
<<\EOF
1561 #define _GNU_SOURCE 1
1566 echo $ac_n "checking for inline""... $ac_c" 1>&6
1567 echo "configure:1568: checking for inline" >&5
1568 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1572 for ac_kw
in inline __inline__ __inline
; do
1573 cat > conftest.
$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1578 } int $ac_kw foo() {
1581 if { (eval echo configure
:1582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1583 ac_cv_c_inline
=$ac_kw; break
1585 echo "configure: failed program was:" >&5
1586 cat conftest.
$ac_ext >&5
1593 echo "$ac_t""$ac_cv_c_inline" 1>&6
1594 case "$ac_cv_c_inline" in
1596 no
) cat >> confdefs.h
<<\EOF
1600 *) cat >> confdefs.h
<<EOF
1601 #define inline $ac_cv_c_inline
1607 # Find some useful tools
1608 for ac_prog
in mawk gawk nawk
awk
1610 # Extract the first word of "$ac_prog", so it can be a program name with args.
1611 set dummy
$ac_prog; ac_word
=$2
1612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1613 echo "configure:1614: checking for $ac_word" >&5
1614 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 if test -n "$AWK"; then
1618 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1620 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1622 for ac_dir
in $ac_dummy; do
1623 test -z "$ac_dir" && ac_dir
=.
1624 if test -f $ac_dir/$ac_word; then
1625 ac_cv_prog_AWK
="$ac_prog"
1632 AWK
="$ac_cv_prog_AWK"
1633 if test -n "$AWK"; then
1634 echo "$ac_t""$AWK" 1>&6
1636 echo "$ac_t""no" 1>&6
1639 test -n "$AWK" && break
1642 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1643 echo "configure:1644: checking whether ln works" >&5
1644 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 rm -f conftestdata_t
1648 echo >conftestdata_f
1649 if ln conftestdata_f conftestdata_t
2>/dev
/null
1653 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1655 gcc_cv_prog_LN
="ln -s"
1660 rm -f conftestdata_f conftestdata_t
1663 LN
="$gcc_cv_prog_LN"
1664 if test "$gcc_cv_prog_LN" = "ln"; then
1665 echo "$ac_t""yes" 1>&6
1667 if test "$gcc_cv_prog_LN" = "ln -s"; then
1668 echo "$ac_t""no, using ln -s" 1>&6
1670 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1674 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether ln -s works" >&5
1676 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 rm -f conftestdata_t
1680 echo >conftestdata_f
1681 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1683 gcc_cv_prog_LN_S
="ln -s"
1685 if ln conftestdata_f conftestdata_t
2>/dev
/null
1692 rm -f conftestdata_f conftestdata_t
1695 LN_S
="$gcc_cv_prog_LN_S"
1696 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1697 echo "$ac_t""yes" 1>&6
1699 if test "$gcc_cv_prog_LN_S" = "ln"; then
1700 echo "$ac_t""no, using ln" 1>&6
1702 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1706 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1707 echo "configure:1708: checking for volatile" >&5
1708 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.
$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1719 if { (eval echo configure
:1720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1721 gcc_cv_c_volatile
=yes
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 gcc_cv_c_volatile
=no
1731 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1732 if test $gcc_cv_c_volatile = yes ; then
1733 cat >> confdefs.h
<<\EOF
1734 #define HAVE_VOLATILE 1
1739 # Extract the first word of "ranlib", so it can be a program name with args.
1740 set dummy ranlib
; ac_word
=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 if test -n "$RANLIB"; then
1747 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1751 for ac_dir
in $ac_dummy; do
1752 test -z "$ac_dir" && ac_dir
=.
1753 if test -f $ac_dir/$ac_word; then
1754 ac_cv_prog_RANLIB
="ranlib"
1759 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1762 RANLIB
="$ac_cv_prog_RANLIB"
1763 if test -n "$RANLIB"; then
1764 echo "$ac_t""$RANLIB" 1>&6
1766 echo "$ac_t""no" 1>&6
1769 # Find a good install program. We prefer a C program (faster),
1770 # so one script is as good as another. But avoid the broken or
1771 # incompatible versions:
1772 # SysV /etc/install, /usr/sbin/install
1773 # SunOS /usr/etc/install
1774 # IRIX /sbin/install
1776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1778 # ./install, which can be erroneously created by make from ./install.sh.
1779 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1780 echo "configure:1781: checking for a BSD compatible install" >&5
1781 if test -z "$INSTALL"; then
1782 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1786 for ac_dir
in $PATH; do
1787 # Account for people who put trailing slashes in PATH elements.
1789 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1791 # OSF1 and SCO ODT 3.0 have their own names for install.
1792 for ac_prog
in ginstall scoinst
install; do
1793 if test -f $ac_dir/$ac_prog; then
1794 if test $ac_prog = install &&
1795 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1796 # AIX install. It has an incompatible calling convention.
1797 # OSF/1 installbsd also uses dspmsg, but is usable.
1800 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1811 if test "${ac_cv_path_install+set}" = set; then
1812 INSTALL
="$ac_cv_path_install"
1814 # As a last resort, use the slow shell script. We don't cache a
1815 # path for INSTALL within a source directory, because that will
1816 # break other packages using the cache if that directory is
1817 # removed, or if the path is relative.
1818 INSTALL
="$ac_install_sh"
1821 echo "$ac_t""$INSTALL" 1>&6
1823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1824 # It thinks the first close brace ends the variable substitution.
1825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1827 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1830 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1831 echo "configure:1832: checking how to run the C preprocessor" >&5
1832 # On Suns, sometimes $CPP names a directory.
1833 if test -n "$CPP" && test -d "$CPP"; then
1836 if test -z "$CPP"; then
1837 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 # This must be in double quotes, not single quotes, because CPP may get
1841 # substituted into the Makefile and "${CC-cc}" will confuse make.
1843 # On the NeXT, cc -E runs the code through the compiler's parser,
1844 # not just through cpp.
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure
:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1861 CPP
="${CC-cc} -E -traditional-cpp"
1862 cat > conftest.
$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure
:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1878 CPP
="${CC-cc} -nologo -E"
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1885 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure
:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1892 echo "configure: failed program was:" >&5
1893 cat conftest.
$ac_ext >&5
1902 ac_cv_prog_CPP
="$CPP"
1904 CPP
="$ac_cv_prog_CPP"
1906 ac_cv_prog_CPP
="$CPP"
1908 echo "$ac_t""$CPP" 1>&6
1910 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1911 echo "configure:1912: checking for ANSI C header files" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 cat > conftest.
$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924 { (eval echo configure
:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1926 if test -z "$ac_err"; then
1928 ac_cv_header_stdc
=yes
1931 echo "configure: failed program was:" >&5
1932 cat conftest.
$ac_ext >&5
1934 ac_cv_header_stdc
=no
1938 if test $ac_cv_header_stdc = yes; then
1939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1940 cat > conftest.
$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1946 egrep "memchr" >/dev
/null
2>&1; then
1950 ac_cv_header_stdc
=no
1956 if test $ac_cv_header_stdc = yes; then
1957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1964 egrep "free" >/dev
/null
2>&1; then
1968 ac_cv_header_stdc
=no
1974 if test $ac_cv_header_stdc = yes; then
1975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1976 if test "$cross_compiling" = yes; then
1979 cat > conftest.
$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1983 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1984 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1986 int main () { int i; for (i = 0; i < 256; i++)
1987 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1991 if { (eval echo configure
:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1995 echo "configure: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1998 ac_cv_header_stdc
=no
2006 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2007 if test $ac_cv_header_stdc = yes; then
2008 cat >> confdefs.h
<<\EOF
2009 #define STDC_HEADERS 1
2014 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether time.h and sys/time.h may both be included" >&5
2016 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 cat > conftest.
$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2022 #include <sys/types.h>
2023 #include <sys/time.h>
2029 if { (eval echo configure
:2030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2031 ac_cv_header_time
=yes
2033 echo "configure: failed program was:" >&5
2034 cat conftest.
$ac_ext >&5
2036 ac_cv_header_time
=no
2041 echo "$ac_t""$ac_cv_header_time" 1>&6
2042 if test $ac_cv_header_time = yes; then
2043 cat >> confdefs.h
<<\EOF
2044 #define TIME_WITH_SYS_TIME 1
2049 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether string.h and strings.h may both be included" >&5
2051 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 cat > conftest.
$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2058 #include <strings.h>
2063 if { (eval echo configure
:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2065 gcc_cv_header_string
=yes
2067 echo "configure: failed program was:" >&5
2068 cat conftest.
$ac_ext >&5
2070 gcc_cv_header_string
=no
2075 echo "$ac_t""$gcc_cv_header_string" 1>&6
2076 if test $gcc_cv_header_string = yes; then
2077 cat >> confdefs.h
<<\EOF
2078 #define STRING_WITH_STRINGS 1
2083 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2084 echo "configure:2085: checking for sys/wait.h that is POSIX.1 compatible" >&5
2085 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 #include <sys/types.h>
2092 #include <sys/wait.h>
2094 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2097 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2102 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2105 if { (eval echo configure
:2106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2107 ac_cv_header_sys_wait_h
=yes
2109 echo "configure: failed program was:" >&5
2110 cat conftest.
$ac_ext >&5
2112 ac_cv_header_sys_wait_h
=no
2117 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2118 if test $ac_cv_header_sys_wait_h = yes; then
2119 cat >> confdefs.h
<<\EOF
2120 #define HAVE_SYS_WAIT_H 1
2125 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2126 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2127 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2128 direct.h malloc.h langinfo.h
iconv.h
2130 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_hdr" >&5
2133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.
$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2141 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2142 { (eval echo configure
:2143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2143 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2144 if test -z "$ac_err"; then
2146 eval "ac_cv_header_$ac_safe=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.
$ac_ext >&5
2152 eval "ac_cv_header_$ac_safe=no"
2156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2158 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2159 cat >> confdefs.h
<<EOF
2160 #define $ac_tr_hdr 1
2164 echo "$ac_t""no" 1>&6
2169 # Check for thread headers.
2170 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2171 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2172 echo "configure:2173: checking for thread.h" >&5
2173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 cat > conftest.
$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2181 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure
:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2184 if test -z "$ac_err"; then
2186 eval "ac_cv_header_$ac_safe=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.
$ac_ext >&5
2192 eval "ac_cv_header_$ac_safe=no"
2196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2200 echo "$ac_t""no" 1>&6
2204 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2205 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2206 echo "configure:2207: checking for pthread.h" >&5
2207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.
$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 #include <pthread.h>
2215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2216 { (eval echo configure
:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2217 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2218 if test -z "$ac_err"; then
2220 eval "ac_cv_header_$ac_safe=yes"
2223 echo "configure: failed program was:" >&5
2224 cat conftest.
$ac_ext >&5
2226 eval "ac_cv_header_$ac_safe=no"
2230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2234 echo "$ac_t""no" 1>&6
2239 # See if GNAT has been installed
2240 # Extract the first word of "gnatbind", so it can be a program name with args.
2241 set dummy gnatbind
; ac_word
=$2
2242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2243 echo "configure:2244: checking for $ac_word" >&5
2244 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 if test -n "$gnat"; then
2248 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2250 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2252 for ac_dir
in $ac_dummy; do
2253 test -z "$ac_dir" && ac_dir
=.
2254 if test -f $ac_dir/$ac_word; then
2255 ac_cv_prog_gnat
="yes"
2260 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2263 gnat
="$ac_cv_prog_gnat"
2264 if test -n "$gnat"; then
2265 echo "$ac_t""$gnat" 1>&6
2267 echo "$ac_t""no" 1>&6
2271 # Do we have a single-tree copy of texinfo?
2272 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2273 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2274 gcc_cv_prog_makeinfo_modern
=yes
2275 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2277 # See if makeinfo has been installed and is modern enough
2278 # that we can use it.
2279 # Extract the first word of "makeinfo", so it can be a program name with args.
2280 set dummy makeinfo
; ac_word
=$2
2281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_word" >&5
2283 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 if test -n "$MAKEINFO"; then
2287 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2289 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2291 for ac_dir
in $ac_dummy; do
2292 test -z "$ac_dir" && ac_dir
=.
2293 if test -f $ac_dir/$ac_word; then
2294 ac_cv_prog_MAKEINFO
="makeinfo"
2301 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2302 if test -n "$MAKEINFO"; then
2303 echo "$ac_t""$MAKEINFO" 1>&6
2305 echo "$ac_t""no" 1>&6
2308 if test -n "$MAKEINFO"; then
2309 # Found it, now check the version.
2310 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2311 echo "configure:2312: checking for modern makeinfo" >&5
2312 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2316 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2317 echo "configure:2318: version of makeinfo is $ac_prog_version" >&5
2318 case $ac_prog_version in
2319 '') gcc_cv_prog_makeinfo_modern
=no
;;
2320 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2321 gcc_cv_prog_makeinfo_modern
=yes;;
2322 *) gcc_cv_prog_makeinfo_modern
=no
;;
2327 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2329 gcc_cv_prog_makeinfo_modern
=no
2334 if test $gcc_cv_prog_makeinfo_modern = no
; then
2335 echo "configure: warning:
2336 *** Makeinfo is missing or too old.
2337 *** Info documentation will not be built or installed." 1>&2
2342 INSTALL_INFO
=install-info
2346 if test -f $srcdir/..
/flex
/skel.c
; then
2347 FLEX
='$(objdir)/../flex/flex'
2349 # Extract the first word of "flex", so it can be a program name with args.
2350 set dummy flex
; ac_word
=$2
2351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_word" >&5
2353 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 if test -n "$FLEX"; then
2357 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
2359 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2361 for ac_dir
in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir
=.
2363 if test -f $ac_dir/$ac_word; then
2364 ac_cv_prog_FLEX
="flex"
2369 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
2372 FLEX
="$ac_cv_prog_FLEX"
2373 if test -n "$FLEX"; then
2374 echo "$ac_t""$FLEX" 1>&6
2376 echo "$ac_t""no" 1>&6
2382 # The -L switch is so bison can find its skeleton file.
2383 if test -f $srcdir/..
/bison
/bison.simple
; then
2384 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2386 # Extract the first word of "bison", so it can be a program name with args.
2387 set dummy bison
; ac_word
=$2
2388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389 echo "configure:2390: checking for $ac_word" >&5
2390 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 if test -n "$BISON"; then
2394 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
2396 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2398 for ac_dir
in $ac_dummy; do
2399 test -z "$ac_dir" && ac_dir
=.
2400 if test -f $ac_dir/$ac_word; then
2401 ac_cv_prog_BISON
="bison"
2406 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
2409 BISON
="$ac_cv_prog_BISON"
2410 if test -n "$BISON"; then
2411 echo "$ac_t""$BISON" 1>&6
2413 echo "$ac_t""no" 1>&6
2418 # See if the stage1 system preprocessor understands the ANSI C
2419 # preprocessor stringification operator.
2422 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2423 echo "configure:2424: checking for preprocessor stringizing operator" >&5
2424 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2433 char *s = x(teststring);
2436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2437 egrep "#teststring" >/dev
/null
2>&1; then
2439 ac_cv_c_stringize
=no
2442 ac_cv_c_stringize
=yes
2448 if test "${ac_cv_c_stringize}" = yes
2450 cat >> confdefs.h
<<\EOF
2451 #define HAVE_STRINGIZE 1
2455 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2458 # Use <inttypes.h> only if it exists,
2459 # doesn't clash with <sys/types.h>, and declares intmax_t.
2460 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2461 echo "configure:2462: checking for inttypes.h" >&5
2462 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <sys/types.h>
2469 #include <inttypes.h>
2474 if { (eval echo configure
:2475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 gcc_cv_header_inttypes_h
=yes
2478 echo "configure: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 gcc_cv_header_inttypes_h
=no
2486 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2487 if test $gcc_cv_header_inttypes_h = yes; then
2488 cat >> confdefs.h
<<\EOF
2489 #define HAVE_INTTYPES_H 1
2495 # Determine if enumerated bitfields are unsigned. ISO C says they can
2496 # be either signed or unsigned.
2498 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2499 echo "configure:2500: checking for unsigned enumerated bitfields" >&5
2500 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 if test "$cross_compiling" = yes; then
2504 gcc_cv_enum_bf_unsigned
=yes
2506 cat > conftest.
$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2510 enum t { BLAH = 128 } ;
2511 struct s_t { enum t member : 8; } s ;
2515 if (s.member < 0) exit(1);
2520 if { (eval echo configure
:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2522 gcc_cv_enum_bf_unsigned
=yes
2524 echo "configure: failed program was:" >&5
2525 cat conftest.
$ac_ext >&5
2527 gcc_cv_enum_bf_unsigned
=no
2534 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2535 if test $gcc_cv_enum_bf_unsigned = yes; then
2536 cat >> confdefs.h
<<\EOF
2537 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2542 for ac_func
in strtoul bsearch putenv popen bcopy \
2543 strchr strrchr
kill getrlimit setrlimit atoll atoq \
2544 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2545 fputs_unlocked getrusage valloc
iconv nl_langinfo
2547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_func" >&5
2549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 /* System header to define __stub macros and hopefully few prototypes,
2556 which can conflict with char $ac_func(); below. */
2558 /* Override any gcc2 internal prototype to avoid an error. */
2559 /* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2565 /* The GNU C library defines this for functions which it implements
2566 to always fail with ENOSYS. Some functions are actually named
2567 something starting with __ and the normal name is an alias. */
2568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2576 if { (eval echo configure
:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2578 eval "ac_cv_func_$ac_func=yes"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.
$ac_ext >&5
2583 eval "ac_cv_func_$ac_func=no"
2588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2589 echo "$ac_t""yes" 1>&6
2590 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2591 cat >> confdefs.h
<<EOF
2592 #define $ac_tr_func 1
2596 echo "$ac_t""no" 1>&6
2601 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2602 echo "configure:2603: checking for ssize_t" >&5
2603 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.
$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <sys/types.h>
2615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2616 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2618 ac_cv_type_ssize_t
=yes
2621 ac_cv_type_ssize_t
=no
2626 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2627 if test $ac_cv_type_ssize_t = no
; then
2628 cat >> confdefs.h
<<\EOF
2635 # Try to determine the array type of the second argument of getgroups
2636 # for the target system (int or gid_t).
2637 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2638 echo "configure:2639: checking for uid_t in sys/types.h" >&5
2639 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 cat > conftest.
$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 #include <sys/types.h>
2647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2648 egrep "uid_t" >/dev
/null
2>&1; then
2650 ac_cv_type_uid_t
=yes
2659 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2660 if test $ac_cv_type_uid_t = no
; then
2661 cat >> confdefs.h
<<\EOF
2665 cat >> confdefs.h
<<\EOF
2671 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2672 echo "configure:2673: checking type of array argument to getgroups" >&5
2673 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 if test "$cross_compiling" = yes; then
2677 ac_cv_type_getgroups
=cross
2679 cat > conftest.
$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2683 /* Thanks to Mike Rendell for this test. */
2684 #include <sys/types.h>
2687 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2692 union { gid_t gval; long lval; } val;
2695 for (i = 0; i < NGID; i++)
2696 gidset[i] = val.gval;
2697 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2699 /* Exit non-zero if getgroups seems to require an array of ints. This
2700 happens when gid_t is short but getgroups modifies an array of ints. */
2701 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2705 if { (eval echo configure
:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2707 ac_cv_type_getgroups
=gid_t
2709 echo "configure: failed program was:" >&5
2710 cat conftest.
$ac_ext >&5
2712 ac_cv_type_getgroups
=int
2717 if test $ac_cv_type_getgroups = cross
; then
2718 cat > conftest.
$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2724 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2726 ac_cv_type_getgroups
=gid_t
2729 ac_cv_type_getgroups
=int
2736 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2737 cat >> confdefs.h
<<EOF
2738 #define GETGROUPS_T $ac_cv_type_getgroups
2742 if test "${target}" = "${build}"; then
2743 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2746 # This condition may need some tweaking. It should include all
2747 # targets where the array type of the second argument of getgroups
2748 # is int and the type of gid_t is not equivalent to int.
2749 *-*-sunos* |
*-*-ultrix*)
2750 TARGET_GETGROUPS_T
=int
2753 TARGET_GETGROUPS_T
=gid_t
2759 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2760 echo "configure:2761: checking for vprintf" >&5
2761 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.
$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2767 /* System header to define __stub macros and hopefully few prototypes,
2768 which can conflict with char vprintf(); below. */
2770 /* Override any gcc2 internal prototype to avoid an error. */
2771 /* We use char because int might match the return type of a gcc2
2772 builtin and then its argument prototype would still apply. */
2777 /* The GNU C library defines this for functions which it implements
2778 to always fail with ENOSYS. Some functions are actually named
2779 something starting with __ and the normal name is an alias. */
2780 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2788 if { (eval echo configure
:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2790 eval "ac_cv_func_vprintf=yes"
2792 echo "configure: failed program was:" >&5
2793 cat conftest.
$ac_ext >&5
2795 eval "ac_cv_func_vprintf=no"
2800 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 cat >> confdefs.h
<<\EOF
2803 #define HAVE_VPRINTF 1
2807 echo "$ac_t""no" 1>&6
2810 if test "$ac_cv_func_vprintf" != yes; then
2811 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2812 echo "configure:2813: checking for _doprnt" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char _doprnt(); below. */
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2840 if { (eval echo configure
:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2842 eval "ac_cv_func__doprnt=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2847 eval "ac_cv_func__doprnt=no"
2852 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 cat >> confdefs.h
<<\EOF
2855 #define HAVE_DOPRNT 1
2859 echo "$ac_t""no" 1>&6
2866 if test $ac_cv_func_vprintf != yes ; then
2868 if test $ac_cv_func__doprnt != yes ; then
2875 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2876 echo "configure:2877: checking whether the printf functions support %p" >&5
2877 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 if test "$cross_compiling" = yes; then
2881 gcc_cv_func_printf_ptr
=no
2883 cat > conftest.
$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2891 char *p = buf, *q = NULL;
2892 sprintf(buf, "%p", p);
2893 sscanf(buf, "%p", &q);
2897 if { (eval echo configure
:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2899 gcc_cv_func_printf_ptr
=yes
2901 echo "configure: failed program was:" >&5
2902 cat conftest.
$ac_ext >&5
2904 gcc_cv_func_printf_ptr
=no
2909 rm -f core core.
* *.core
2912 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2913 if test $gcc_cv_func_printf_ptr = yes ; then
2914 cat >> confdefs.h
<<\EOF
2915 #define HAVE_PRINTF_PTR 1
2923 # Under some versions of uwin, vfork is notoriously buggy and the test
2924 # can hang configure; on other versions, vfork exists just as a stub.
2925 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2926 ac_cv_func_vfork_works
=no
2929 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2930 echo "configure:2931: checking for pid_t" >&5
2931 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 cat > conftest.
$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 #include <sys/types.h>
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2946 ac_cv_type_pid_t
=yes
2954 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2955 if test $ac_cv_type_pid_t = no
; then
2956 cat >> confdefs.h
<<\EOF
2962 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2963 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2964 echo "configure:2965: checking for vfork.h" >&5
2965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 cat > conftest.
$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2973 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2974 { (eval echo configure
:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2975 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2976 if test -z "$ac_err"; then
2978 eval "ac_cv_header_$ac_safe=yes"
2981 echo "configure: failed program was:" >&5
2982 cat conftest.
$ac_ext >&5
2984 eval "ac_cv_header_$ac_safe=no"
2988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 cat >> confdefs.h
<<\EOF
2991 #define HAVE_VFORK_H 1
2995 echo "$ac_t""no" 1>&6
2998 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2999 echo "configure:3000: checking for working vfork" >&5
3000 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 if test "$cross_compiling" = yes; then
3004 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3005 echo "configure:3006: checking for vfork" >&5
3006 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.
$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 /* System header to define __stub macros and hopefully few prototypes,
3013 which can conflict with char vfork(); below. */
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3022 /* The GNU C library defines this for functions which it implements
3023 to always fail with ENOSYS. Some functions are actually named
3024 something starting with __ and the normal name is an alias. */
3025 #if defined (__stub_vfork) || defined (__stub___vfork)
3033 if { (eval echo configure
:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3035 eval "ac_cv_func_vfork=yes"
3037 echo "configure: failed program was:" >&5
3038 cat conftest.
$ac_ext >&5
3040 eval "ac_cv_func_vfork=no"
3045 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3049 echo "$ac_t""no" 1>&6
3052 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3054 cat > conftest.
$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 /* Thanks to Paul Eggert for this test. */
3059 #include <sys/types.h>
3060 #include <sys/stat.h>
3061 #ifdef HAVE_UNISTD_H
3067 /* On some sparc systems, changes by the child to local and incoming
3068 argument registers are propagated back to the parent.
3069 The compiler is told about this with #include <vfork.h>,
3070 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3071 Test for this by using a static variable whose address
3072 is put into a register that is clobbered by the vfork. */
3075 sparc_address_test (int arg)
3077 sparc_address_test (arg) int arg;
3095 pid_t parent = getpid ();
3098 sparc_address_test ();
3103 /* Here is another test for sparc vfork register problems.
3104 This test uses lots of local variables, at least
3105 as many local variables as main has allocated so far
3106 including compiler temporaries. 4 locals are enough for
3107 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3108 A buggy compiler should reuse the register of parent
3109 for one of the local variables, since it will think that
3110 parent can't possibly be used any more in this routine.
3111 Assigning to the local variable will thus munge parent
3112 in the parent process. */
3114 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3115 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3116 /* Convince the compiler that p..p7 are live; otherwise, it might
3117 use the same hardware register for all 8 local variables. */
3118 if (p != p1 || p != p2 || p != p3 || p != p4
3119 || p != p5 || p != p6 || p != p7)
3122 /* On some systems (e.g. IRIX 3.3),
3123 vfork doesn't separate parent from child file descriptors.
3124 If the child closes a descriptor before it execs or exits,
3125 this munges the parent's descriptor as well.
3126 Test for this by closing stdout in the child. */
3127 _exit(close(fileno(stdout)) != 0);
3132 while (wait(&status) != child)
3135 /* Was there some problem with vforking? */
3138 /* Did the child fail? (This shouldn't happen.) */
3141 /* Did the vfork/compiler bug occur? */
3142 || parent != getpid()
3144 /* Did the file descriptor bug occur? */
3145 || fstat(fileno(stdout), &st) != 0
3150 if { (eval echo configure
:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3152 ac_cv_func_vfork_works
=yes
3154 echo "configure: failed program was:" >&5
3155 cat conftest.
$ac_ext >&5
3157 ac_cv_func_vfork_works
=no
3164 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3165 if test $ac_cv_func_vfork_works = no
; then
3166 cat >> confdefs.h
<<\EOF
3172 for ac_hdr
in unistd.h
3174 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3176 echo "configure:3177: checking for $ac_hdr" >&5
3177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3185 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3186 { (eval echo configure
:3187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3187 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3188 if test -z "$ac_err"; then
3190 eval "ac_cv_header_$ac_safe=yes"
3193 echo "configure: failed program was:" >&5
3194 cat conftest.
$ac_ext >&5
3196 eval "ac_cv_header_$ac_safe=no"
3200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3202 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3203 cat >> confdefs.h
<<EOF
3204 #define $ac_tr_hdr 1
3208 echo "$ac_t""no" 1>&6
3212 for ac_func
in getpagesize
3214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_func" >&5
3216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.
$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* System header to define __stub macros and hopefully few prototypes,
3223 which can conflict with char $ac_func(); below. */
3225 /* Override any gcc2 internal prototype to avoid an error. */
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3232 /* The GNU C library defines this for functions which it implements
3233 to always fail with ENOSYS. Some functions are actually named
3234 something starting with __ and the normal name is an alias. */
3235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3243 if { (eval echo configure
:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3245 eval "ac_cv_func_$ac_func=yes"
3247 echo "configure: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3250 eval "ac_cv_func_$ac_func=no"
3255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3256 echo "$ac_t""yes" 1>&6
3257 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3258 cat >> confdefs.h
<<EOF
3259 #define $ac_tr_func 1
3263 echo "$ac_t""no" 1>&6
3267 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3268 echo "configure:3269: checking for working mmap which provides zeroed pages anywhere" >&5
3269 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 if test "$cross_compiling" = yes; then
3273 ac_cv_func_mmap_anywhere
=no
3275 cat > conftest.
$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3279 /* Test by Richard Henderson and Alexandre Oliva.
3280 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3281 #include <sys/types.h>
3283 #include <sys/mman.h>
3285 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3286 # define MAP_ANONYMOUS MAP_ANON
3289 /* This mess was copied from the GNU getpagesize.h. */
3290 #ifndef HAVE_GETPAGESIZE
3291 # ifdef HAVE_UNISTD_H
3292 # include <unistd.h>
3295 /* Assume that all systems that can run configure have sys/param.h. */
3296 # ifndef HAVE_SYS_PARAM_H
3297 # define HAVE_SYS_PARAM_H 1
3300 # ifdef _SC_PAGESIZE
3301 # define getpagesize() sysconf(_SC_PAGESIZE)
3302 # else /* no _SC_PAGESIZE */
3303 # ifdef HAVE_SYS_PARAM_H
3304 # include <sys/param.h>
3305 # ifdef EXEC_PAGESIZE
3306 # define getpagesize() EXEC_PAGESIZE
3307 # else /* no EXEC_PAGESIZE */
3309 # define getpagesize() NBPG * CLSIZE
3312 # endif /* no CLSIZE */
3313 # else /* no NBPG */
3315 # define getpagesize() NBPC
3316 # else /* no NBPC */
3318 # define getpagesize() PAGESIZE
3319 # endif /* PAGESIZE */
3320 # endif /* no NBPC */
3321 # endif /* no NBPG */
3322 # endif /* no EXEC_PAGESIZE */
3323 # else /* no HAVE_SYS_PARAM_H */
3324 # define getpagesize() 8192 /* punt totally */
3325 # endif /* no HAVE_SYS_PARAM_H */
3326 # endif /* no _SC_PAGESIZE */
3328 #endif /* no HAVE_GETPAGESIZE */
3335 #ifndef MAP_ANONYMOUS
3336 fd = open("/dev/zero", O_RDWR);
3342 #ifdef MAP_ANONYMOUS
3343 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3344 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3346 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3348 if (x == (char *) -1)
3353 if (munmap(x, pg) < 0)
3359 if { (eval echo configure
:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3361 ac_cv_func_mmap_anywhere
=yes
3363 echo "configure: failed program was:" >&5
3364 cat conftest.
$ac_ext >&5
3366 ac_cv_func_mmap_anywhere
=no
3373 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3374 if test $ac_cv_func_mmap_anywhere = yes; then
3375 cat >> confdefs.h
<<\EOF
3376 #define HAVE_MMAP_ANYWHERE 1
3381 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3382 echo "configure:3383: checking for working mmap of a file" >&5
3383 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 # Create a file one thousand bytes long.
3387 for i
in 1 2 3 4 5 6 7 8 9 0
3388 do for j
in 1 2 3 4 5 6 7 8 9 0
3391 done > conftestdata$$
3393 if test "$cross_compiling" = yes; then
3394 ac_cv_func_mmap_file
=no
3396 cat > conftest.
$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3400 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3401 Richard Henderson and Alexandre Oliva.
3402 Check whether read-only mmap of a plain file works. */
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3406 #include <sys/mman.h>
3414 fd = open("conftestdata$$", O_RDONLY);
3418 if (fstat (fd, &st))
3421 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3422 if (x == (char *) -1)
3425 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3428 if (munmap(x, st.st_size) < 0)
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3436 ac_cv_func_mmap_file
=yes
3438 echo "configure: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3441 ac_cv_func_mmap_file
=no
3448 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3449 if test $ac_cv_func_mmap_file = yes; then
3450 cat >> confdefs.h
<<\EOF
3451 #define HAVE_MMAP_FILE 1
3457 # We will need to find libiberty.h and ansidecl.h
3458 saved_CFLAGS
="$CFLAGS"
3459 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3460 for ac_func
in bcopy \
3461 getenv atol sbrk abort atof getcwd getwd \
3462 strsignal putc_unlocked fputs_unlocked strstr environ \
3463 malloc realloc calloc free
basename getopt
3465 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3466 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3467 echo "configure:3468: checking whether $ac_func is declared" >&5
3468 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 cat > conftest.
$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include "gansidecl.h"
3479 char *(*pfn) = (char *(*)) $ac_func ;
3483 if { (eval echo configure
:3484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3485 eval "gcc_cv_have_decl_$ac_func=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.
$ac_ext >&5
3490 eval "gcc_cv_have_decl_$ac_func=no"
3495 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3497 #define $ac_tr_decl 1
3501 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3502 #define $ac_tr_decl 0
3508 if test x
= y
; then
3509 cat >> confdefs.h
<<EOF
3510 #define HAVE_DECL_BCOPY 1
3513 cat >> confdefs.h
<<EOF
3514 #define HAVE_DECL_GETENV 1
3516 cat >> confdefs.h
<<EOF
3517 #define HAVE_DECL_ATOL 1
3519 cat >> confdefs.h
<<EOF
3520 #define HAVE_DECL_SBRK 1
3522 cat >> confdefs.h
<<EOF
3523 #define HAVE_DECL_ABORT 1
3525 cat >> confdefs.h
<<EOF
3526 #define HAVE_DECL_ATOF 1
3528 cat >> confdefs.h
<<EOF
3529 #define HAVE_DECL_GETCWD 1
3531 cat >> confdefs.h
<<EOF
3532 #define HAVE_DECL_GETWD 1
3535 cat >> confdefs.h
<<EOF
3536 #define HAVE_DECL_STRSIGNAL 1
3538 cat >> confdefs.h
<<EOF
3539 #define HAVE_DECL_PUTC_UNLOCKED 1
3541 cat >> confdefs.h
<<EOF
3542 #define HAVE_DECL_FPUTS_UNLOCKED 1
3544 cat >> confdefs.h
<<EOF
3545 #define HAVE_DECL_STRSTR 1
3547 cat >> confdefs.h
<<EOF
3548 #define HAVE_DECL_ENVIRON 1
3551 cat >> confdefs.h
<<EOF
3552 #define HAVE_DECL_MALLOC 1
3554 cat >> confdefs.h
<<EOF
3555 #define HAVE_DECL_REALLOC 1
3557 cat >> confdefs.h
<<EOF
3558 #define HAVE_DECL_CALLOC 1
3560 cat >> confdefs.h
<<EOF
3561 #define HAVE_DECL_FREE 1
3563 cat >> confdefs.h
<<EOF
3564 #define HAVE_DECL_BASENAME 1
3566 cat >> confdefs.h
<<EOF
3567 #define HAVE_DECL_GETOPT 1
3572 for ac_func
in getrlimit setrlimit getrusage
3574 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3575 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3576 echo "configure:3577: checking whether $ac_func is declared" >&5
3577 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 cat > conftest.
$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include "gansidecl.h"
3585 #ifdef HAVE_SYS_RESOURCE_H
3586 #include <sys/resource.h>
3592 char *(*pfn) = (char *(*)) $ac_func ;
3596 if { (eval echo configure
:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3598 eval "gcc_cv_have_decl_$ac_func=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3603 eval "gcc_cv_have_decl_$ac_func=no"
3608 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3609 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3610 #define $ac_tr_decl 1
3614 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3615 #define $ac_tr_decl 0
3621 if test x
= y
; then
3622 cat >> confdefs.h
<<EOF
3623 #define HAVE_DECL_GETRLIMIT 1
3625 cat >> confdefs.h
<<EOF
3626 #define HAVE_DECL_SETRLIMIT 1
3628 cat >> confdefs.h
<<EOF
3629 #define HAVE_DECL_GETRUSAGE 1
3634 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3635 CFLAGS
="$saved_CFLAGS"
3637 # mkdir takes a single argument on some systems.
3638 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3639 echo "configure:3640: checking if mkdir takes one argument" >&5
3640 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 cat > conftest.
$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3647 #include <sys/types.h>
3648 #ifdef HAVE_SYS_STAT_H
3649 # include <sys/stat.h>
3651 #ifdef HAVE_UNISTD_H
3652 # include <unistd.h>
3654 #ifdef HAVE_DIRECT_H
3655 # include <direct.h>
3661 if { (eval echo configure
:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 gcc_cv_mkdir_takes_one_arg
=no
3665 echo "configure: failed program was:" >&5
3666 cat conftest.
$ac_ext >&5
3668 gcc_cv_mkdir_takes_one_arg
=yes
3673 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3674 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3675 cat >> confdefs.h
<<\EOF
3676 #define MKDIR_TAKES_ONE_ARG 1
3690 build_install_headers_dir
=install-headers-tar
3695 host_truncate_target
=
3698 # Decode the host machine, then the target machine.
3699 # For the host machine, we save the xm_file variable as host_xm_file;
3700 # then we decode the target machine and forget everything else
3701 # that came from the host machine.
3702 for machine
in $build $host $target; do
3703 .
${srcdir}/config.gcc
3706 extra_objs
="${host_extra_objs} ${extra_objs}"
3708 # Default the target-machine variables that were not explicitly set.
3709 if test x
"$tm_file" = x
3710 then tm_file
=$cpu_type/$cpu_type.h
; fi
3712 if test x
$extra_headers = x
3713 then extra_headers
=; fi
3715 if test x
"$xm_file" = x
3716 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
3718 if test x
$md_file = x
3719 then md_file
=$cpu_type/$cpu_type.md
; fi
3721 if test x
$out_file = x
3722 then out_file
=$cpu_type/$cpu_type.c
; fi
3724 if test x
"$tmake_file" = x
3725 then tmake_file
=$cpu_type/t-
$cpu_type
3728 if test x
"$dwarf2" = xyes
3729 then tm_file
="$tm_file tm-dwarf2.h"
3732 if test x
$float_format = x
3733 then float_format
=i64
3736 if test $float_format = none
3737 then float_h_file
=Makefile.
in
3738 else float_h_file
=float-
$float_format.h
3741 # Handle cpp installation.
3742 if test x
$enable_cpp != xno
3744 tmake_file
="$tmake_file t-install-cpp"
3747 # Say what files are being used for the output code and MD file.
3748 echo "Using \`$srcdir/config/$out_file' to output insns."
3749 echo "Using \`$srcdir/config/$md_file' as machine description file."
3752 for f
in $tm_file; do
3755 if test $count = ax
; then
3756 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3758 echo "Using the following target machine macro files:"
3759 for f
in $tm_file; do
3760 echo " $srcdir/config/$f"
3765 for f
in $host_xm_file; do
3768 if test $count = ax
; then
3769 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3771 echo "Using the following host machine macro files:"
3772 for f
in $host_xm_file; do
3773 echo " $srcdir/config/$f"
3777 if test "$host_xm_file" != "$build_xm_file"; then
3779 for f
in $build_xm_file; do
3782 if test $count = ax
; then
3783 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3785 echo "Using the following build machine macro files:"
3786 for f
in $build_xm_file; do
3787 echo " $srcdir/config/$f"
3792 if test x
$thread_file = x
; then
3793 if test x
$target_thread_file != x
; then
3794 thread_file
=$target_thread_file
3796 thread_file
='single'
3800 # Set up the header files.
3801 # $links is the list of header files to create.
3802 # $vars is the list of shell variables with file names to include.
3803 # auto-host.h is the file containing items generated by autoconf and is
3804 # the first file included by config.h.
3806 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3808 # If host=build, it is correct to have hconfig include auto-host.h
3809 # as well. If host!=build, we are in error and need to do more
3810 # work to find out the build config parameters.
3811 if test x
$host = x
$build
3813 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
3815 # We create a subdir, then run autoconf in the subdir.
3816 # To prevent recursion we set host and build for the new
3817 # invocation of configure to the build for this invocation
3824 /*) realsrcdir
=${srcdir};;
3825 *) realsrcdir
=..
/${srcdir};;
3827 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
3828 --target=$target --host=$build --build=$build
3830 # We just finished tests for the build machine, so rename
3831 # the file auto-build.h in the gcc directory.
3832 mv auto-host.h ..
/auto-build.h
3835 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
3838 xm_file
="gansidecl.h ${xm_file}"
3839 tm_file
="gansidecl.h ${tm_file}"
3841 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
3842 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
3843 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
3846 if test -f config.status
; then mv -f config.status config.bak
; fi
3849 while test -n "$vars"
3851 set $vars; var
=$1; shift; vars
=$
*
3852 set $links; link
=$1; shift; links
=$
*
3853 set $defines; define
=$1; shift; defines
=$
*
3856 # Make sure the file is created, even if it is empty.
3859 # Define TARGET_CPU_DEFAULT if the system wants one.
3860 # This substitutes for lots of *.h files.
3861 if test "$target_cpu_default" != "" -a $link = tm.h
3863 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3866 for file in `eval echo '$'$var`; do
3868 auto-host.h | auto-build.h
)
3871 echo '#ifdef IN_GCC' >>$link
3874 echo "#include \"$file\"" >>$link
3876 auto-host.h | auto-build.h
)
3879 echo '#endif' >>$link
3884 for def
in `eval echo '$'$define`; do
3885 echo "#ifndef $def" >>$link
3886 echo "#define $def" >>$link
3887 echo "#endif" >>$link
3891 # Truncate the target if necessary
3892 if test x
$host_truncate_target != x
; then
3893 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
3896 # Get the version trigger filename from the toplevel
3897 if test "${with_gcc_version_trigger+set}" = set; then
3898 gcc_version_trigger
=$with_gcc_version_trigger
3900 gcc_version_trigger
=${srcdir}/version.c
3902 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3903 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3905 # Compile in configure arguments.
3906 if test -f configargs.h
; then
3907 # Being re-configured.
3908 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3909 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
3911 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
3913 cat > configargs.h
<<EOF
3914 /* Generated automatically. */
3915 static const char configuration_arguments[] = "$gcc_config_arguments";
3918 # Internationalization
3920 VERSION
="$gcc_version"
3921 cat >> confdefs.h
<<EOF
3922 #define PACKAGE "$PACKAGE"
3925 cat >> confdefs.h
<<EOF
3926 #define VERSION "$VERSION"
3934 # Enable NLS support by default
3935 # Check whether --enable-nls or --disable-nls was given.
3936 if test "${enable_nls+set}" = set; then
3937 enableval
="$enable_nls"
3944 # if cross compiling, disable NLS support.
3945 # It's not worth the trouble, at least for now.
3947 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
3948 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
3952 # if NLS is enabled, also enable check in po subdir
3953 if test $enable_nls = yes; then
3962 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
3963 echo "configure:3964: checking for strerror in -lcposix" >&5
3964 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
3965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 ac_save_LIBS
="$LIBS"
3969 LIBS
="-lcposix $LIBS"
3970 cat > conftest.
$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* Override any gcc2 internal prototype to avoid an error. */
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3982 if { (eval echo configure
:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3984 eval "ac_cv_lib_$ac_lib_var=yes"
3986 echo "configure: failed program was:" >&5
3987 cat conftest.
$ac_ext >&5
3989 eval "ac_cv_lib_$ac_lib_var=no"
3992 LIBS
="$ac_save_LIBS"
3995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3996 echo "$ac_t""yes" 1>&6
3997 LIBS
="$LIBS -lcposix"
3999 echo "$ac_t""no" 1>&6
4004 echo $ac_n "checking for working const""... $ac_c" 1>&6
4005 echo "configure:4006: checking for working const" >&5
4006 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 cat > conftest.
$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4015 /* Ultrix mips cc rejects this. */
4016 typedef int charset[2]; const charset x = {0,0};
4017 /* SunOS 4.1.1 cc rejects this. */
4018 char const *const *ccp;
4020 /* NEC SVR4.0.2 mips cc rejects this. */
4021 struct point {int x, y;};
4022 static struct point const zero = {0,0};
4023 /* AIX XL C 1.02.0.0 rejects this.
4024 It does not let you subtract one const X* pointer from another in an arm
4025 of an if-expression whose if-part is not a constant expression */
4026 const char *g = "string";
4027 ccp = &g + (g ? g-g : 0);
4028 /* HPUX 7.0 cc rejects these. */
4031 ccp = (char const *const *) p;
4032 { /* SCO 3.2v4 cc rejects this. */
4034 char const *s = 0 ? (char *) 0 : (char const *) 0;
4038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4040 const int *foo = &x[0];
4043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4044 typedef const int *iptr;
4048 { /* AIX XL C 1.02.0.0 rejects this saying
4049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4050 struct s { int j; const int *ap[3]; };
4051 struct s *b; b->j = 5;
4053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4059 if { (eval echo configure
:4060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 echo "configure: failed program was:" >&5
4064 cat conftest.
$ac_ext >&5
4071 echo "$ac_t""$ac_cv_c_const" 1>&6
4072 if test $ac_cv_c_const = no
; then
4073 cat >> confdefs.h
<<\EOF
4079 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4080 echo "configure:4081: checking for off_t" >&5
4081 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 cat > conftest.
$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 #include <sys/types.h>
4093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4096 ac_cv_type_off_t
=yes
4104 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4105 if test $ac_cv_type_off_t = no
; then
4106 cat >> confdefs.h
<<\EOF
4112 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4113 echo "configure:4114: checking for size_t" >&5
4114 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.
$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 #include <sys/types.h>
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4127 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4129 ac_cv_type_size_t
=yes
4132 ac_cv_type_size_t
=no
4137 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4138 if test $ac_cv_type_size_t = no
; then
4139 cat >> confdefs.h
<<\EOF
4140 #define size_t unsigned
4145 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4146 # for constant arguments. Useless!
4147 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4148 echo "configure:4149: checking for working alloca.h" >&5
4149 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 cat > conftest.
$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4157 void *p = alloca(2 * sizeof(int));
4160 if { (eval echo configure
:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4162 ac_cv_header_alloca_h
=yes
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 ac_cv_header_alloca_h
=no
4172 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4173 if test $ac_cv_header_alloca_h = yes; then
4174 cat >> confdefs.h
<<\EOF
4175 #define HAVE_ALLOCA_H 1
4180 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4181 echo "configure:4182: checking for alloca" >&5
4182 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 cat > conftest.
$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4190 # define alloca __builtin_alloca
4193 # include <malloc.h>
4194 # define alloca _alloca
4197 # include <alloca.h>
4202 # ifndef alloca /* predefined by HP cc +Olibcalls */
4211 char *p = (char *) alloca(1);
4214 if { (eval echo configure
:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4216 ac_cv_func_alloca_works
=yes
4218 echo "configure: failed program was:" >&5
4219 cat conftest.
$ac_ext >&5
4221 ac_cv_func_alloca_works
=no
4226 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4227 if test $ac_cv_func_alloca_works = yes; then
4228 cat >> confdefs.h
<<\EOF
4229 #define HAVE_ALLOCA 1
4234 if test $ac_cv_func_alloca_works = no
; then
4235 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4236 # that cause trouble. Some versions do not even contain alloca or
4237 # contain a buggy version. If you still want to use their alloca,
4238 # use ar to extract alloca.o from them instead of compiling alloca.c.
4239 ALLOCA
=alloca.
${ac_objext}
4240 cat >> confdefs.h
<<\EOF
4245 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4246 echo "configure:4247: checking whether alloca needs Cray hooks" >&5
4247 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4250 cat > conftest.
$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 #if defined(CRAY) && ! defined(CRAY2)
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 egrep "webecray" >/dev
/null
2>&1; then
4272 echo "$ac_t""$ac_cv_os_cray" 1>&6
4273 if test $ac_cv_os_cray = yes; then
4274 for ac_func
in _getb67 GETB67 getb67
; do
4275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_func" >&5
4277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.
$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* System header to define __stub macros and hopefully few prototypes,
4284 which can conflict with char $ac_func(); below. */
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4293 /* The GNU C library defines this for functions which it implements
4294 to always fail with ENOSYS. Some functions are actually named
4295 something starting with __ and the normal name is an alias. */
4296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4304 if { (eval echo configure
:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4306 eval "ac_cv_func_$ac_func=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.
$ac_ext >&5
4311 eval "ac_cv_func_$ac_func=no"
4316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 cat >> confdefs.h
<<EOF
4319 #define CRAY_STACKSEG_END $ac_func
4324 echo "$ac_t""no" 1>&6
4330 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4331 echo "configure:4332: checking stack direction for C alloca" >&5
4332 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 if test "$cross_compiling" = yes; then
4336 ac_cv_c_stack_direction
=0
4338 cat > conftest.
$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 find_stack_direction ()
4343 static char *addr = 0;
4348 return find_stack_direction ();
4351 return (&dummy > addr) ? 1 : -1;
4355 exit (find_stack_direction() < 0);
4358 if { (eval echo configure
:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4360 ac_cv_c_stack_direction
=1
4362 echo "configure: failed program was:" >&5
4363 cat conftest.
$ac_ext >&5
4365 ac_cv_c_stack_direction
=-1
4372 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4373 cat >> confdefs.h
<<EOF
4374 #define STACK_DIRECTION $ac_cv_c_stack_direction
4380 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4381 unistd.h sys
/param.h
4383 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4385 echo "configure:4386: checking for $ac_hdr" >&5
4386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 cat > conftest.
$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4394 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4395 { (eval echo configure
:4396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4396 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4397 if test -z "$ac_err"; then
4399 eval "ac_cv_header_$ac_safe=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.
$ac_ext >&5
4405 eval "ac_cv_header_$ac_safe=no"
4409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4412 cat >> confdefs.h
<<EOF
4413 #define $ac_tr_hdr 1
4417 echo "$ac_t""no" 1>&6
4421 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4422 strdup __argz_count __argz_stringify __argz_next
4424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4425 echo "configure:4426: checking for $ac_func" >&5
4426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4427 echo $ac_n "(cached) $ac_c" 1>&6
4429 cat > conftest.
$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4432 /* System header to define __stub macros and hopefully few prototypes,
4433 which can conflict with char $ac_func(); below. */
4435 /* Override any gcc2 internal prototype to avoid an error. */
4436 /* We use char because int might match the return type of a gcc2
4437 builtin and then its argument prototype would still apply. */
4442 /* The GNU C library defines this for functions which it implements
4443 to always fail with ENOSYS. Some functions are actually named
4444 something starting with __ and the normal name is an alias. */
4445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4453 if { (eval echo configure
:4454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4455 eval "ac_cv_func_$ac_func=yes"
4457 echo "configure: failed program was:" >&5
4458 cat conftest.
$ac_ext >&5
4460 eval "ac_cv_func_$ac_func=no"
4465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4466 echo "$ac_t""yes" 1>&6
4467 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4468 cat >> confdefs.h
<<EOF
4469 #define $ac_tr_func 1
4473 echo "$ac_t""no" 1>&6
4478 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4479 for ac_func
in stpcpy
4481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4482 echo "configure:4483: checking for $ac_func" >&5
4483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 cat > conftest.
$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4489 /* System header to define __stub macros and hopefully few prototypes,
4490 which can conflict with char $ac_func(); below. */
4492 /* Override any gcc2 internal prototype to avoid an error. */
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4499 /* The GNU C library defines this for functions which it implements
4500 to always fail with ENOSYS. Some functions are actually named
4501 something starting with __ and the normal name is an alias. */
4502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4510 if { (eval echo configure
:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4512 eval "ac_cv_func_$ac_func=yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.
$ac_ext >&5
4517 eval "ac_cv_func_$ac_func=no"
4522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4525 cat >> confdefs.h
<<EOF
4526 #define $ac_tr_func 1
4530 echo "$ac_t""no" 1>&6
4535 if test "${ac_cv_func_stpcpy}" = "yes"; then
4536 cat >> confdefs.h
<<\EOF
4537 #define HAVE_STPCPY 1
4542 if test $ac_cv_header_locale_h = yes; then
4543 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4544 echo "configure:4545: checking for LC_MESSAGES" >&5
4545 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4548 cat > conftest.
$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4556 if { (eval echo configure
:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4558 am_cv_val_LC_MESSAGES
=yes
4560 echo "configure: failed program was:" >&5
4561 cat conftest.
$ac_ext >&5
4563 am_cv_val_LC_MESSAGES
=no
4568 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4569 if test $am_cv_val_LC_MESSAGES = yes; then
4570 cat >> confdefs.h
<<\EOF
4571 #define HAVE_LC_MESSAGES 1
4576 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4577 echo "configure:4578: checking whether NLS is requested" >&5
4578 # Check whether --enable-nls or --disable-nls was given.
4579 if test "${enable_nls+set}" = set; then
4580 enableval
="$enable_nls"
4586 echo "$ac_t""$USE_NLS" 1>&6
4589 USE_INCLUDED_LIBINTL
=no
4591 if test "$USE_NLS" = "yes"; then
4592 cat >> confdefs.h
<<\EOF
4593 #define ENABLE_NLS 1
4596 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4597 echo "configure:4598: checking whether included gettext is requested" >&5
4598 # Check whether --with-included-gettext or --without-included-gettext was given.
4599 if test "${with_included_gettext+set}" = set; then
4600 withval
="$with_included_gettext"
4601 nls_cv_force_use_gnu_gettext
=$withval
4603 nls_cv_force_use_gnu_gettext
=no
4606 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4608 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4609 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4611 nls_cv_header_libgt
=
4614 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4616 echo "configure:4617: checking for libintl.h" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 cat > conftest.
$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 #include <libintl.h>
4625 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure
:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4630 eval "ac_cv_header_$ac_safe=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.
$ac_ext >&5
4636 eval "ac_cv_header_$ac_safe=no"
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4643 echo "configure:4644: checking for gettext in libc" >&5
4644 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.
$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4650 #include <libintl.h>
4652 return (int) gettext ("")
4655 if { (eval echo configure
:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4657 gt_cv_func_gettext_libc
=yes
4659 echo "configure: failed program was:" >&5
4660 cat conftest.
$ac_ext >&5
4662 gt_cv_func_gettext_libc
=no
4667 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4669 if test "$gt_cv_func_gettext_libc" != "yes"; then
4670 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4671 echo "configure:4672: checking for bindtextdomain in -lintl" >&5
4672 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 ac_save_LIBS
="$LIBS"
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* Override any gcc2 internal prototype to avoid an error. */
4682 /* We use char because int might match the return type of a gcc2
4683 builtin and then its argument prototype would still apply. */
4684 char bindtextdomain();
4690 if { (eval echo configure
:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4692 eval "ac_cv_lib_$ac_lib_var=yes"
4694 echo "configure: failed program was:" >&5
4695 cat conftest.
$ac_ext >&5
4697 eval "ac_cv_lib_$ac_lib_var=no"
4700 LIBS
="$ac_save_LIBS"
4703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4704 echo "$ac_t""yes" 1>&6
4705 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4706 echo "configure:4707: checking for gettext in libintl" >&5
4707 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4711 echo "configure:4712: checking for gettext in -lintl" >&5
4712 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 ac_save_LIBS
="$LIBS"
4718 cat > conftest.
$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4730 if { (eval echo configure
:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4732 eval "ac_cv_lib_$ac_lib_var=yes"
4734 echo "configure: failed program was:" >&5
4735 cat conftest.
$ac_ext >&5
4737 eval "ac_cv_lib_$ac_lib_var=no"
4740 LIBS
="$ac_save_LIBS"
4743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4744 echo "$ac_t""yes" 1>&6
4745 gt_cv_func_gettext_libintl
=yes
4747 echo "$ac_t""no" 1>&6
4748 gt_cv_func_gettext_libintl
=no
4753 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4755 echo "$ac_t""no" 1>&6
4760 if test "$gt_cv_func_gettext_libc" = "yes" \
4761 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4762 cat >> confdefs.h
<<\EOF
4763 #define HAVE_GETTEXT 1
4766 # Extract the first word of "msgfmt", so it can be a program name with args.
4767 set dummy msgfmt
; ac_word
=$2
4768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_word" >&5
4770 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4775 gcc_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4779 for ac_dir
in $PATH; do
4780 test -z "$ac_dir" && ac_dir
=.
4781 if test -f $ac_dir/$ac_word; then
4782 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4783 gcc_cv_path_MSGFMT
="$ac_dir/$ac_word"
4789 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT
="no"
4793 MSGFMT
="$gcc_cv_path_MSGFMT"
4794 if test -n "$MSGFMT"; then
4795 echo "$ac_t""$MSGFMT" 1>&6
4797 echo "$ac_t""no" 1>&6
4799 if test "$MSGFMT" != "no"; then
4800 for ac_func
in dcgettext
4802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4803 echo "configure:4804: checking for $ac_func" >&5
4804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 cat > conftest.
$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 /* System header to define __stub macros and hopefully few prototypes,
4811 which can conflict with char $ac_func(); below. */
4813 /* Override any gcc2 internal prototype to avoid an error. */
4814 /* We use char because int might match the return type of a gcc2
4815 builtin and then its argument prototype would still apply. */
4820 /* The GNU C library defines this for functions which it implements
4821 to always fail with ENOSYS. Some functions are actually named
4822 something starting with __ and the normal name is an alias. */
4823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4831 if { (eval echo configure
:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4833 eval "ac_cv_func_$ac_func=yes"
4835 echo "configure: failed program was:" >&5
4836 cat conftest.
$ac_ext >&5
4838 eval "ac_cv_func_$ac_func=no"
4843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4846 cat >> confdefs.h
<<EOF
4847 #define $ac_tr_func 1
4851 echo "$ac_t""no" 1>&6
4855 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4856 set dummy gmsgfmt
; ac_word
=$2
4857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4858 echo "configure:4859: checking for $ac_word" >&5
4859 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
4860 echo $ac_n "(cached) $ac_c" 1>&6
4864 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4867 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4870 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4872 for ac_dir
in $ac_dummy; do
4873 test -z "$ac_dir" && ac_dir
=.
4874 if test -f $ac_dir/$ac_word; then
4875 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4880 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="$MSGFMT"
4884 GMSGFMT
="$gcc_cv_path_GMSGFMT"
4885 if test -n "$GMSGFMT"; then
4886 echo "$ac_t""$GMSGFMT" 1>&6
4888 echo "$ac_t""no" 1>&6
4891 # Extract the first word of "xgettext", so it can be a program name with args.
4892 set dummy xgettext
; ac_word
=$2
4893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4894 echo "configure:4895: checking for $ac_word" >&5
4895 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4900 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4903 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4904 for ac_dir
in $PATH; do
4905 test -z "$ac_dir" && ac_dir
=.
4906 if test -f $ac_dir/$ac_word; then
4907 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4908 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4914 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
4918 XGETTEXT
="$gcc_cv_path_XGETTEXT"
4919 if test -n "$XGETTEXT"; then
4920 echo "$ac_t""$XGETTEXT" 1>&6
4922 echo "$ac_t""no" 1>&6
4925 cat > conftest.
$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4930 extern int _nl_msg_cat_cntr;
4931 return _nl_msg_cat_cntr
4934 if { (eval echo configure
:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4939 echo "configure: failed program was:" >&5
4940 cat conftest.
$ac_ext >&5
4948 create_catalogs
="no"
4953 echo "$ac_t""no" 1>&6
4957 if test "$CATOBJEXT" = "NONE"; then
4958 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4959 echo "configure:4960: checking whether catgets can be used" >&5
4960 # Check whether --with-catgets or --without-catgets was given.
4961 if test "${with_catgets+set}" = set; then
4962 withval
="$with_catgets"
4963 nls_cv_use_catgets
=$withval
4965 nls_cv_use_catgets
=no
4968 echo "$ac_t""$nls_cv_use_catgets" 1>&6
4970 if test "$nls_cv_use_catgets" = "yes"; then
4971 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4972 echo "configure:4973: checking for main in -li" >&5
4973 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
4974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4977 ac_save_LIBS
="$LIBS"
4979 cat > conftest.
$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4987 if { (eval echo configure
:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4989 eval "ac_cv_lib_$ac_lib_var=yes"
4991 echo "configure: failed program was:" >&5
4992 cat conftest.
$ac_ext >&5
4994 eval "ac_cv_lib_$ac_lib_var=no"
4997 LIBS
="$ac_save_LIBS"
5000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5001 echo "$ac_t""yes" 1>&6
5002 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5003 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5004 cat >> confdefs.h
<<EOF
5005 #define $ac_tr_lib 1
5011 echo "$ac_t""no" 1>&6
5014 echo $ac_n "checking for catgets""... $ac_c" 1>&6
5015 echo "configure:5016: checking for catgets" >&5
5016 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 cat > conftest.
$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5022 /* System header to define __stub macros and hopefully few prototypes,
5023 which can conflict with char catgets(); below. */
5025 /* Override any gcc2 internal prototype to avoid an error. */
5026 /* We use char because int might match the return type of a gcc2
5027 builtin and then its argument prototype would still apply. */
5032 /* The GNU C library defines this for functions which it implements
5033 to always fail with ENOSYS. Some functions are actually named
5034 something starting with __ and the normal name is an alias. */
5035 #if defined (__stub_catgets) || defined (__stub___catgets)
5043 if { (eval echo configure
:5044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5045 eval "ac_cv_func_catgets=yes"
5047 echo "configure: failed program was:" >&5
5048 cat conftest.
$ac_ext >&5
5050 eval "ac_cv_func_catgets=no"
5055 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5056 echo "$ac_t""yes" 1>&6
5057 cat >> confdefs.h
<<\EOF
5058 #define HAVE_CATGETS 1
5061 INTLOBJS
="\$(CATOBJS)"
5062 # Extract the first word of "gencat", so it can be a program name with args.
5063 set dummy gencat
; ac_word
=$2
5064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5065 echo "configure:5066: checking for $ac_word" >&5
5066 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5071 gcc_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
5074 gcc_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
5077 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5079 for ac_dir
in $ac_dummy; do
5080 test -z "$ac_dir" && ac_dir
=.
5081 if test -f $ac_dir/$ac_word; then
5082 gcc_cv_path_GENCAT
="$ac_dir/$ac_word"
5087 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT
="no"
5091 GENCAT
="$gcc_cv_path_GENCAT"
5092 if test -n "$GENCAT"; then
5093 echo "$ac_t""$GENCAT" 1>&6
5095 echo "$ac_t""no" 1>&6
5097 if test "$GENCAT" != "no"; then
5098 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5099 set dummy gmsgfmt
; ac_word
=$2
5100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5101 echo "configure:5102: checking for $ac_word" >&5
5102 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5107 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5110 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
5113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5115 for ac_dir
in $ac_dummy; do
5116 test -z "$ac_dir" && ac_dir
=.
5117 if test -f $ac_dir/$ac_word; then
5118 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
5123 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="no"
5127 GMSGFMT
="$gcc_cv_path_GMSGFMT"
5128 if test -n "$GMSGFMT"; then
5129 echo "$ac_t""$GMSGFMT" 1>&6
5131 echo "$ac_t""no" 1>&6
5134 if test "$GMSGFMT" = "no"; then
5135 # Extract the first word of "msgfmt", so it can be a program name with args.
5136 set dummy msgfmt
; ac_word
=$2
5137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5138 echo "configure:5139: checking for $ac_word" >&5
5139 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5144 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5147 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5148 for ac_dir
in $PATH; do
5149 test -z "$ac_dir" && ac_dir
=.
5150 if test -f $ac_dir/$ac_word; then
5151 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5152 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
5158 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="msgfmt"
5162 GMSGFMT
="$gcc_cv_path_GMSGFMT"
5163 if test -n "$GMSGFMT"; then
5164 echo "$ac_t""$GMSGFMT" 1>&6
5166 echo "$ac_t""no" 1>&6
5169 if test "$GMSGFMT" = "msgfmt"; then
5170 create_catalogs
="no"
5173 # Extract the first word of "xgettext", so it can be a program name with args.
5174 set dummy xgettext
; ac_word
=$2
5175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5176 echo "configure:5177: checking for $ac_word" >&5
5177 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5182 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5186 for ac_dir
in $PATH; do
5187 test -z "$ac_dir" && ac_dir
=.
5188 if test -f $ac_dir/$ac_word; then
5189 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5190 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5196 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
5200 XGETTEXT
="$gcc_cv_path_XGETTEXT"
5201 if test -n "$XGETTEXT"; then
5202 echo "$ac_t""$XGETTEXT" 1>&6
5204 echo "$ac_t""no" 1>&6
5207 USE_INCLUDED_LIBINTL
=yes
5211 INTLDEPS
='$(top_builddir)/intl/libintl.a'
5213 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5214 nls_cv_header_intl
=intl
/libintl.h
5215 nls_cv_header_libgt
=intl
/libgettext.h
5218 echo "$ac_t""no" 1>&6
5224 if test "$CATOBJEXT" = "NONE"; then
5225 nls_cv_use_gnu_gettext
=yes
5229 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5230 INTLOBJS
="\$(GETTOBJS)"
5231 # Extract the first word of "msgfmt", so it can be a program name with args.
5232 set dummy msgfmt
; ac_word
=$2
5233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5234 echo "configure:5235: checking for $ac_word" >&5
5235 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5240 gcc_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5243 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5244 for ac_dir
in $PATH; do
5245 test -z "$ac_dir" && ac_dir
=.
5246 if test -f $ac_dir/$ac_word; then
5247 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5248 gcc_cv_path_MSGFMT
="$ac_dir/$ac_word"
5254 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT
="msgfmt"
5258 MSGFMT
="$gcc_cv_path_MSGFMT"
5259 if test -n "$MSGFMT"; then
5260 echo "$ac_t""$MSGFMT" 1>&6
5262 echo "$ac_t""no" 1>&6
5265 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5266 set dummy gmsgfmt
; ac_word
=$2
5267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5268 echo "configure:5269: checking for $ac_word" >&5
5269 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5274 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5277 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
5280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5282 for ac_dir
in $ac_dummy; do
5283 test -z "$ac_dir" && ac_dir
=.
5284 if test -f $ac_dir/$ac_word; then
5285 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
5290 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="$MSGFMT"
5294 GMSGFMT
="$gcc_cv_path_GMSGFMT"
5295 if test -n "$GMSGFMT"; then
5296 echo "$ac_t""$GMSGFMT" 1>&6
5298 echo "$ac_t""no" 1>&6
5301 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
5302 create_catalogs
="no"
5304 # Extract the first word of "xgettext", so it can be a program name with args.
5305 set dummy xgettext
; ac_word
=$2
5306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_word" >&5
5308 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5313 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5316 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5317 for ac_dir
in $PATH; do
5318 test -z "$ac_dir" && ac_dir
=.
5319 if test -f $ac_dir/$ac_word; then
5320 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5321 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5327 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
5331 XGETTEXT
="$gcc_cv_path_XGETTEXT"
5332 if test -n "$XGETTEXT"; then
5333 echo "$ac_t""$XGETTEXT" 1>&6
5335 echo "$ac_t""no" 1>&6
5339 USE_INCLUDED_LIBINTL
=yes
5343 INTLDEPS
='$(top_builddir)/intl/libintl.a'
5345 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5346 nls_cv_header_intl
=intl
/libintl.h
5347 nls_cv_header_libgt
=intl
/libgettext.h
5350 if test "$XGETTEXT" != ":"; then
5351 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5354 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5361 # We need to process the po/ directory.
5365 nls_cv_header_intl
=intl
/libintl.h
5366 nls_cv_header_libgt
=intl
/libgettext.h
5372 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5373 # because some of the sources are only built for this goal.
5374 if test "$PACKAGE" = gettext; then
5376 USE_INCLUDED_LIBINTL
=yes
5379 for lang
in $ALL_LINGUAS; do
5380 GMOFILES
="$GMOFILES $lang.gmo"
5381 POFILES
="$POFILES $lang.po"
5397 if test "x$create_catalogs" = "xno"; then
5398 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
5401 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
5402 if test "x$ALL_LINGUAS" = "x"; then
5405 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5406 echo "configure:5407: checking for catalogs to be installed" >&5
5407 if test "x$LINGUAS" = "x"; then
5408 LINGUAS
=$ALL_LINGUAS
5411 for lang
in $ALL_LINGUAS; do
5412 case " $LINGUAS " in
5413 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5416 LINGUAS
=$NEW_LINGUAS
5418 echo "$ac_t""$LINGUAS" 1>&6
5421 if test -n "$LINGUAS"; then
5422 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5426 if test $ac_cv_header_locale_h = yes; then
5427 INCLUDE_LOCALE_H
="#include <locale.h>"
5430 /* The system does not provide the header <locale.h>. Take care yourself. */"
5434 test -d intl || mkdir intl
5435 if test "$CATOBJEXT" = ".cat"; then
5436 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5437 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5438 echo "configure:5439: checking for linux/version.h" >&5
5439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 cat > conftest.
$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5445 #include <linux/version.h>
5447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5448 { (eval echo configure
:5449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5450 if test -z "$ac_err"; then
5452 eval "ac_cv_header_$ac_safe=yes"
5455 echo "configure: failed program was:" >&5
5456 cat conftest.
$ac_ext >&5
5458 eval "ac_cv_header_$ac_safe=no"
5462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5466 echo "$ac_t""no" 1>&6
5471 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
5473 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5474 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
5476 if test "$PACKAGE" = "gettext"; then
5487 if test -n "$ac_aux_dir"; then
5488 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
5490 if test -z "$MKINSTALLDIRS"; then
5491 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
5498 test -d po || mkdir po
5499 if test "x$srcdir" != "x."; then
5500 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5501 posrcprefix
="$srcdir/"
5503 posrcprefix
="../$srcdir/"
5509 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5510 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5512 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
5514 # Windows32 Registry support for specifying GCC installation paths.
5515 # Check whether --enable-win32-registry or --disable-win32-registry was given.
5516 if test "${enable_win32_registry+set}" = set; then
5517 enableval
="$enable_win32_registry"
5522 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
5523 echo "configure:5524: checking whether windows registry support is requested" >&5
5524 if test x
$enable_win32_registry != xno
; then
5525 cat >> confdefs.h
<<\EOF
5526 #define ENABLE_WIN32_REGISTRY 1
5529 echo "$ac_t""yes" 1>&6
5531 echo "$ac_t""no" 1>&6
5534 # Check if user specified a different registry key.
5535 case x
${enable_win32_registry} in
5538 gcc_cv_win32_registry_key
="$VERSION"
5541 # no registry lookup.
5542 gcc_cv_win32_registry_key
=''
5545 # user-specified key.
5546 gcc_cv_win32_registry_key
="$enable_win32_registry"
5550 if test x
$enable_win32_registry != xno
; then
5551 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
5552 echo "configure:5553: checking registry key on windows hosts" >&5
5553 cat >> confdefs.h
<<EOF
5554 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
5557 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
5560 # Get an absolute path to the GCC top-level source directory
5566 # Conditionalize the makefile for this host machine.
5567 # Make-host contains the concatenation of all host makefile fragments
5568 # [there can be more than one]. This file is built by configure.frag.
5569 host_overrides
=Make-host
5570 dep_host_xmake_file
=
5571 for f
in ..
${host_xmake_file}
5573 if test -f ${srcdir}/config
/$f
5575 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
5579 # Conditionalize the makefile for this target machine.
5580 # Make-target contains the concatenation of all host makefile fragments
5581 # [there can be more than one]. This file is built by configure.frag.
5582 target_overrides
=Make-target
5584 for f
in ..
${tmake_file}
5586 if test -f ${srcdir}/config
/$f
5588 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5592 # If the host doesn't support symlinks, modify CC in
5593 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5594 # Otherwise, we can use "CC=$(CC)".
5596 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5598 cc_set_by_configure
="\$(CC)"
5599 quoted_cc_set_by_configure
="\$(CC)"
5600 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5603 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5605 symbolic_link
="cp -p"
5609 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5610 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
5611 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5615 out_object_file
=`basename $out_file .c`.o
5618 for f
in $tm_file; do
5621 tm_file_list
="${tm_file_list} $f" ;;
5622 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
5627 for f
in $host_xm_file; do
5629 auto-host.h | gansidecl.h | hwint.h
)
5630 host_xm_file_list
="${host_xm_file_list} $f" ;;
5631 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
5636 for f
in $build_xm_file; do
5638 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
5639 build_xm_file_list
="${build_xm_file_list} $f" ;;
5640 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
5644 # Define macro CROSS_COMPILE in compilation
5645 # if this is a cross-compiler.
5646 # Also use all.cross instead of all.internal
5647 # and add cross-make to Makefile.
5648 cross_overrides
="/dev/null"
5649 if test x
$host != x
$target
5651 cross_defines
="CROSS=-DCROSS_COMPILE"
5652 cross_overrides
="${topdir}/cross-make"
5655 # If this is a cross-compiler that does not
5656 # have its own set of headers then define
5659 # If this is using newlib, then define inhibit_libc in
5660 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5661 # libgcc.a, but that's OK because newlib should have its own version of
5664 if test x
$host != x
$target && test x
$with_headers = x
; then
5665 inhibit_libc
=-Dinhibit_libc
5667 if test x
$with_newlib = xyes
; then
5668 inhibit_libc
=-Dinhibit_libc
5673 # When building gcc with a cross-compiler, we need to fix a few things.
5674 # This must come after cross-make as we want all.build to override
5676 build_overrides
="/dev/null"
5677 if test x
$build != x
$host
5679 build_overrides
="${topdir}/build-make"
5682 # Expand extra_headers to include complete path.
5683 # This substitutes for lots of t-* files.
5685 if test "x$extra_headers" = x
5688 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5689 for file in $extra_headers;
5691 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5695 if test x
$use_collect2 = xno
; then
5699 # Add a definition of USE_COLLECT2 if system wants one.
5700 # Also tell toplev.c what to do.
5701 # This substitutes for lots of t-* files.
5702 if test x
$use_collect2 = x
5707 will_use_collect2
="collect2"
5708 maybe_use_collect2
="-DUSE_COLLECT2"
5711 # If we have gas in the build tree, make a link to it.
5712 if test -f ..
/gas
/Makefile
; then
5713 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5716 # If we have nm in the build tree, make a link to it.
5717 if test -f ..
/binutils
/Makefile
; then
5718 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
5721 # If we have ld in the build tree, make a link to it.
5722 if test -f ..
/ld
/Makefile
; then
5723 # if test x$use_collect2 = x; then
5724 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5726 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5730 # Figure out what assembler we will be using.
5731 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
5732 echo "configure:5733: checking what assembler to use" >&5
5734 gcc_cv_gas_major_version
=
5735 gcc_cv_gas_minor_version
=
5736 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5737 if test -x "$DEFAULT_ASSEMBLER"; then
5738 gcc_cv_as
="$DEFAULT_ASSEMBLER"
5739 elif test -x "$AS"; then
5741 elif test -x as
$host_exeext; then
5742 # Build using assembler in the current directory.
5743 gcc_cv_as
=.
/as
$host_exeext
5744 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
5745 # Single tree build which includes gas.
5746 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
5748 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5749 if test x
$gcc_cv_gas_version != x
; then
5753 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5754 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5757 if test "x$gcc_cv_as" = x
-a x
$host = x
$target; then
5759 # Search the same directories that the installed compiler will
5760 # search. Else we may find the wrong assembler and lose. If we
5761 # do not find a suitable assembler binary, then try the user's
5764 # Also note we have to check MD_EXEC_PREFIX before checking the
5765 # user's path. Unfortunately, there is no good way to get at the
5766 # value of MD_EXEC_PREFIX here. So we do a brute force search
5767 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5768 # to be fixed as part of the make/configure rewrite too.
5770 if test "x$exec_prefix" = xNONE
; then
5771 if test "x$prefix" = xNONE
; then
5772 test_prefix
=/usr
/local
5777 test_prefix
=$exec_prefix
5780 # If the loop below does not find an assembler, then use whatever
5781 # one we can find in the users's path.
5785 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
5786 $test_prefix/lib/gcc-lib/$target \
5787 /usr/lib/gcc/$target/$gcc_version \
5788 /usr/lib/gcc/$target \
5789 $test_prefix/$target/bin/$target/$gcc_version \
5790 $test_prefix/$target/bin \
5795 /bsd43/usr/lib/cmplrs/cc \
5796 /usr/cross64/usr/bin \
5797 /usr/lib/cmplrs/cc \
5798 /sysv/usr/lib/cmplrs/cc \
5799 /svr4/usr/lib/cmplrs/cc \
5802 for dir
in $test_dirs; do
5803 if test -f $dir/as
$host_exeext; then
5804 gcc_cv_as
=$dir/as
$host_exeext
5809 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
5810 echo "$ac_t"""newly built gas
"" 1>&6
5812 echo "$ac_t""$gcc_cv_as" 1>&6
5815 # Figure out what nm we will be using.
5816 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
5817 echo "configure:5818: checking what nm to use" >&5
5818 if test -x nm
$host_exeext; then
5819 gcc_cv_nm
=.
/nm
$host_exeext
5820 elif test x
$host = x
$target; then
5822 gcc_cv_nm
=nm
$host_exeext
5824 echo "$ac_t""$gcc_cv_nm" 1>&6
5826 # Figure out what assembler alignment features are present.
5827 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5828 echo "configure:5829: checking assembler alignment features" >&5
5829 gcc_cv_as_alignment_features
=none
5830 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
5831 # Gas version 2.6 and later support for .balign and .p2align.
5832 # bytes to skip when using .p2align.
5833 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
5834 gcc_cv_as_alignment_features
=".balign and .p2align"
5835 cat >> confdefs.h
<<\EOF
5836 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5840 # Gas version 2.8 and later support specifying the maximum
5841 # bytes to skip when using .p2align.
5842 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
5843 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5844 cat >> confdefs.h
<<\EOF
5845 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5849 elif test x
$gcc_cv_as != x
; then
5850 # Check if we have .balign and .p2align
5851 echo ".balign 4" > conftest.s
5852 echo ".p2align 2" >> conftest.s
5853 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5854 gcc_cv_as_alignment_features
=".balign and .p2align"
5855 cat >> confdefs.h
<<\EOF
5856 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5860 rm -f conftest.s conftest.o
5861 # Check if specifying the maximum bytes to skip when
5862 # using .p2align is supported.
5863 echo ".p2align 4,,7" > conftest.s
5864 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5865 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5866 cat >> confdefs.h
<<\EOF
5867 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5871 rm -f conftest.s conftest.o
5873 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5875 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5876 echo "configure:5877: checking assembler subsection support" >&5
5877 gcc_cv_as_subsections
=no
5878 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
5879 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
5880 gcc_cv_as_subsections
="working .subsection -1"
5882 elif test x
$gcc_cv_as != x
; then
5883 # Check if we have .subsection
5884 echo ".subsection 1" > conftest.s
5885 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5886 gcc_cv_as_subsections
=".subsection"
5887 if test x
$gcc_cv_nm != x
; then
5888 cat > conftest.s
<<EOF
5889 conftest_label1: .word 0
5891 conftest_label2: .word 0
5894 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5895 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
5896 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
5897 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
5900 gcc_cv_as_subsections
="working .subsection -1"
5905 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5907 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
5908 cat >> confdefs.h
<<\EOF
5909 #define HAVE_GAS_SUBSECTION_ORDERING 1
5913 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
5915 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
5916 echo "configure:5917: checking assembler weak support" >&5
5918 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
5919 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
5920 gcc_cv_as_weak
="yes"
5922 elif test x
$gcc_cv_as != x
; then
5923 # Check if we have .weak
5924 echo " .weak foobar" > conftest.s
5925 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5926 gcc_cv_as_weak
="yes"
5928 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5930 if test x
"$gcc_cv_as_weak" = xyes
; then
5931 cat >> confdefs.h
<<\EOF
5932 #define HAVE_GAS_WEAK 1
5936 echo "$ac_t""$gcc_cv_as_weak" 1>&6
5938 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
5939 echo "configure:5940: checking assembler hidden support" >&5
5941 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
5942 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
5943 gcc_cv_as_hidden
="yes"
5945 elif test x
$gcc_cv_as != x
; then
5946 # Check if we have .hidden
5947 echo " .hidden foobar" > conftest.s
5948 echo "foobar:" >> conftest.s
5949 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5950 gcc_cv_as_hidden
="yes"
5952 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5954 if test x
"$gcc_cv_as_hidden" = xyes
; then
5955 cat >> confdefs.h
<<\EOF
5956 #define HAVE_GAS_HIDDEN 1
5960 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
5964 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
5965 echo "configure:5966: checking assembler .register pseudo-op support" >&5
5966 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5970 gcc_cv_as_register_pseudo_op
=unknown
5971 if test x
$gcc_cv_as != x
; then
5972 # Check if we have .register
5973 echo ".register %g2, #scratch" > conftest.s
5974 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5975 gcc_cv_as_register_pseudo_op
=yes
5977 gcc_cv_as_register_pseudo_op
=no
5979 rm -f conftest.s conftest.o
5984 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
5985 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
5986 cat >> confdefs.h
<<\EOF
5987 #define HAVE_AS_REGISTER_PSEUDO_OP 1
5992 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
5993 echo "configure:5994: checking assembler supports -relax" >&5
5994 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
5995 echo $ac_n "(cached) $ac_c" 1>&6
5998 gcc_cv_as_relax_opt
=unknown
5999 if test x
$gcc_cv_as != x
; then
6000 # Check if gas supports -relax
6001 echo ".text" > conftest.s
6002 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
6003 gcc_cv_as_relax_opt
=yes
6005 gcc_cv_as_relax_opt
=no
6007 rm -f conftest.s conftest.o
6012 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
6013 if test "x$gcc_cv_as_relax_opt" = xyes
; then
6014 cat >> confdefs.h
<<\EOF
6015 #define HAVE_AS_RELAX_OPTION 1
6022 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
6023 echo "configure:6024: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
6024 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6028 if test -n "$gcc_cv_as"; then
6029 echo ".xword foo" > conftest.s
6030 gcc_cv_as_flags64
=no
6031 for flag
in "-xarch=v9" "-64 -Av9"; do
6032 if $gcc_cv_as $flag -o conftest.o conftest.s \
6033 > /dev
/null
2>&1; then
6034 gcc_cv_as_flags64
=$flag
6038 rm -f conftest.s conftest.o
6040 if test "$gas" = yes; then
6041 gcc_cv_as_flags64
="-64 -Av9"
6043 gcc_cv_as_flags64
="-xarch=v9"
6049 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
6050 if test "x$gcc_cv_as_flags64" = xno
; then
6052 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6053 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6056 cat >> confdefs.h
<<EOF
6057 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
6062 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
6066 if test "x$gcc_cv_as_flags64" != xno
; then
6067 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6068 echo "configure:6069: checking for assembler offsetable %lo() support" >&5
6069 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6073 gcc_cv_as_offsetable_lo10
=unknown
6074 if test "x$gcc_cv_as" != x
; then
6075 # Check if assembler has offsetable %lo()
6076 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6077 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6078 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
6080 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
6081 > /dev
/null
2>&1; then
6082 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
6083 gcc_cv_as_offsetable_lo10
=no
6085 gcc_cv_as_offsetable_lo10
=yes
6088 gcc_cv_as_offsetable_lo10
=no
6090 rm -f conftest.s conftest.o conftest1.s conftest1.o
6095 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6096 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
6097 cat >> confdefs.h
<<\EOF
6098 #define HAVE_AS_OFFSETABLE_LO10 1
6106 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6107 echo "configure:6108: checking assembler instructions" >&5
6108 gcc_cv_as_instructions
=
6109 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6110 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
6111 gcc_cv_as_instructions
="filds fists"
6113 elif test x
$gcc_cv_as != x
; then
6114 set "filds fists" "filds mem; fists mem"
6117 echo "$2" > conftest.s
6118 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
6119 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
6123 rm -f conftest.s conftest.o
6125 if test x
"$gcc_cv_as_instructions" != x
; then
6126 cat >> confdefs.h
<<EOF
6127 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6131 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6135 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6136 echo "configure:6137: checking assembler dwarf2 debug_line support" >&5
6137 gcc_cv_as_dwarf2_debug_line
=no
6138 # ??? Not all targets support dwarf2 debug_line, even within a version
6139 # of gas. Moreover, we need to emit a valid instruction to trigger any
6140 # info to the output file. So, as supported targets are added to gas 2.11,
6141 # add some instruction here to (also) show we expect this might work.
6142 # ??? Once 2.11 is released, probably need to add first known working
6143 # version to the per-target configury.
6145 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | sparc
*-*-*)
6152 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
6154 if test "$gcc_cv_gas_major_version" -eq 2 \
6155 -a "$gcc_cv_gas_minor_version" -ge 11 \
6156 -o "$gcc_cv_gas_major_version" -gt 2 \
6157 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
6158 && test x
"$insn" != x
; then
6159 gcc_cv_as_dwarf2_debug_line
="yes"
6161 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
6162 echo ' .file 0 "conftest.s"' > conftest.s
6163 echo ' .loc 0 3 0' >> conftest.s
6164 echo " $insn" >> conftest.s
6165 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
6166 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
6167 gcc_cv_as_dwarf2_debug_line
="yes"
6169 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6171 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
6172 cat >> confdefs.h
<<\EOF
6173 #define HAVE_AS_DWARF2_DEBUG_LINE 1
6177 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
6179 # Figure out what language subdirectories are present.
6180 # Look if the user specified --enable-languages="..."; if not, use
6181 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6183 if test x
"${enable_languages+set}" != xset
; then
6184 if test x
"${LANGUAGES+set}" = xset
; then
6185 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
6187 enable_languages
=all
6190 if test x
"${enable_languages}" = x
; then
6191 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
6195 for lang
in ${srcdir}/*/config-lang.
in ..
6199 # The odd quoting in the next line works around
6200 # an apparent bug in bash 1.12 on linux.
6201 ${srcdir}/[*]/config-lang.
in) ;;
6203 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6204 if test "x$lang_alias" = x
6206 echo "$lang doesn't set \$language." 1>&2
6209 if test x
"${enable_languages}" = xall
&& test x
"${lang_alias}" != xCHILL
; then
6212 case "${enable_languages}" in
6213 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
6221 if test x"${add_this_lang}" = xyes; then
6223 ${srcdir}/ada/config-lang.in)
6224 if test x$gnat = xyes ; then
6225 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6229 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6237 # Make gthr-default.h if we have a thread file.
6239 if test $thread_file != single; then
6240 rm -f gthr-default.h
6241 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
6242 gthread_flags
=-DHAVE_GTHR_DEFAULT
6246 # Find out what GC implementation we want, or may, use.
6247 # Check whether --with-gc or --without-gc was given.
6248 if test "${with_gc+set}" = set; then
6255 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
6259 if test $ac_cv_func_mmap_anywhere = yes \
6260 ||
test $ac_cv_func_valloc = yes; then
6268 echo "Using $GGC for garbage collection."
6270 # Use the system's zlib library.
6272 zlibinc
="-I\$(srcdir)/../zlib"
6273 # Check whether --with-system-zlib or --without-system-zlib was given.
6274 if test "${with_system_zlib+set}" = set; then
6275 withval
="$with_system_zlib"
6284 # Build a new-abi (c++) system
6285 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
6286 if test "${enable_new_gxx_abi+set}" = set; then
6287 enableval
="$enable_new_gxx_abi"
6290 enable_new_gxx_abi
=yes
6294 if test x
$enable_new_gxx_abi = xyes
; then
6295 cat >> confdefs.h
<<\EOF
6296 #define ENABLE_NEW_GXX_ABI 1
6299 GXX_ABI_FLAG
='-fnew-abi'
6305 cat >> confdefs.h
<<EOF
6306 #define ENABLE_STD_NAMESPACE $ac_esn
6312 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6313 echo "configure:6314: checking whether to enable maintainer-specific portions of Makefiles" >&5
6314 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6315 if test "${enable_maintainer_mode+set}" = set; then
6316 enableval
="$enable_maintainer_mode"
6317 maintainer_mode
=$enableval
6323 echo "$ac_t""$maintainer_mode" 1>&6
6325 if test "$maintainer_mode" = "yes"; then
6331 # Make empty files to contain the specs and options for each language.
6332 # Then add #include lines to for a compiler that has specs and/or options.
6337 rm -f specs.h options.h gencheck.h
6338 touch specs.h options.h gencheck.h
6339 for subdir
in .
$subdirs
6341 if test -f $srcdir/$subdir/lang-specs.h
; then
6342 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
6343 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
6345 if test -f $srcdir/$subdir/lang-options.h
; then
6346 echo "#include \"$subdir/lang-options.h\"" >>options.h
6347 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
6349 if test -f $srcdir/$subdir/$subdir-tree.def
; then
6350 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
6351 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
6355 # These (without "all_") are set in each config-lang.in.
6356 # `language' must be a single word so is spelled singularly.
6362 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
6363 # List of language makefile fragments.
6368 # Add the language fragments.
6369 # Languages are added via two mechanisms. Some information must be
6370 # recorded in makefile variables, these are defined in config-lang.in.
6371 # We accumulate them and plug them into the main Makefile.
6372 # The other mechanism is a set of hooks for each of the main targets
6373 # like `clean', `install', etc.
6375 language_fragments
="Make-lang"
6376 language_hooks
="Make-hooks"
6378 for s
in ..
$subdirs
6390 .
${srcdir}/$s/config-lang.
in
6391 if test "x$language" = x
6393 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
6396 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
6397 if test -f ${srcdir}/$s/Makefile.
in
6398 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
6400 all_languages
="$all_languages $language"
6401 if test "x$boot_language" = xyes
6403 all_boot_languages
="$all_boot_languages $language"
6405 all_compilers
="$all_compilers $compilers"
6406 all_stagestuff
="$all_stagestuff $stagestuff"
6407 all_diff_excludes
="$all_diff_excludes $diff_excludes"
6408 all_headers
="$all_headers $headers"
6409 all_outputs
="$all_outputs $outputs"
6410 all_lib2funcs
="$all_lib2funcs $lib2funcs"
6414 # Since we can't use `::' targets, we link each language in
6415 # with a set of hooks, reached indirectly via lang.${target}.
6419 target_list
="all.build all.cross start.encap rest.encap \
6421 install-normal install-common install-info install-man \
6423 mostlyclean clean distclean extraclean maintainer-clean \
6424 stage1 stage2 stage3 stage4"
6425 for t
in $target_list
6428 for lang
in ..
$all_languages
6430 if test $lang != ".."; then
6434 echo "lang.$t: $x" >> Make-hooks
6437 # If we're not building in srcdir, create .gdbinit.
6439 if test ! -f Makefile.
in; then
6440 echo "dir ." > .gdbinit
6441 echo "dir ${srcdir}" >> .gdbinit
6442 if test x
$gdb_needs_out_file_path = xyes
6444 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
6446 if test "x$subdirs" != x
; then
6449 echo "dir ${srcdir}/$s" >> .gdbinit
6452 echo "source ${srcdir}/.gdbinit" >> .gdbinit
6455 # Define variables host_canonical and build_canonical
6456 # because some Cygnus local changes in the Makefile depend on them.
6457 build_canonical
=${build}
6458 host_canonical
=${host}
6460 if test "${host}" != "${target}" ; then
6461 target_subdir
=${target}/
6467 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
6468 # absolute path for gcc_tooldir based on inserting the number of up-directory
6469 # movements required to get from $(exec_prefix) to $(prefix) into the basic
6470 # $(libsubdir)/@(unlibsubdir) based path.
6471 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
6472 # make and thus we'd get different behavior depending on where we built the
6474 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
6475 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
6477 # An explanation of the sed strings:
6478 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
6479 # -e 's|/$||' match a trailing forward slash and eliminates it
6480 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
6481 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
6483 # (*) Note this pattern overwrites the first character of the string
6484 # with a forward slash if one is not already present. This is not a
6485 # problem because the exact names of the sub-directories concerned is
6486 # unimportant, just the number of them matters.
6488 # The practical upshot of these patterns is like this:
6490 # prefix exec_prefix result
6491 # ------ ----------- ------
6493 # /foo/ /foo/bar ../
6494 # /foo /foo/bar/ ../
6495 # /foo/ /foo/bar/ ../
6496 # /foo /foo/bar/ugg ../../
6499 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
6504 # Nothing to do for FLOAT_H, float_format already handled.
6508 # Process the language and host/target makefile fragments.
6509 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
6511 # Substitute configuration variables
6569 # Echo that links are built
6570 if test x
$host = x
$target
6578 if test x
$host != x
$build
6580 str3
=" on a $build system"
6583 if test "x$str2" != x ||
test "x$str3" != x
6588 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
6590 if test "x$str2" != x ||
test "x$str3" != x
6592 echo " ${str2}${str3}." 1>&2
6595 # Truncate the target if necessary
6596 if test x
$host_truncate_target != x
; then
6597 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6600 # Configure the subdirectories
6601 # AC_CONFIG_SUBDIRS($subdirs)
6603 # Create the Makefile
6604 # and configure language subdirectories
6606 cat > confcache
<<\EOF
6607 # This file is a shell script that caches the results of configure
6608 # tests run on this system so they can be shared between configure
6609 # scripts and configure runs. It is not useful on other systems.
6610 # If it contains results you don't want to keep, you may remove or edit it.
6612 # By default, configure uses ./config.cache as the cache file,
6613 # creating it if it does not exist already. You can give configure
6614 # the --cache-file=FILE option to use a different cache file; that is
6615 # what configure does when it calls configure scripts in
6616 # subdirectories, so they share the cache.
6617 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6618 # config.status only pays attention to the cache file if you give it the
6619 # --recheck option to rerun configure.
6622 # The following way of writing the cache mishandles newlines in values,
6623 # but we know of no workaround that is simple, portable, and efficient.
6624 # So, don't put newlines in cache variables' values.
6625 # Ultrix sh set writes to stderr and can't be redirected directly,
6626 # and sets the high bit in the cache file unless we assign to the vars.
6628 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6630 # `set' does not quote correctly, so add quotes (double-quote substitution
6631 # turns \\\\ into \\, and sed turns \\ into \).
6633 -e "s/'/'\\\\''/g" \
6634 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6637 # `set' quotes correctly as required by POSIX, so do not add quotes.
6638 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6641 if cmp -s $cache_file confcache
; then
6644 if test -w $cache_file; then
6645 echo "updating cache $cache_file"
6646 cat confcache
> $cache_file
6648 echo "not updating unwritable cache $cache_file"
6653 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6655 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6656 # Let make expand exec_prefix.
6657 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6659 # Any assignment to VPATH causes Sun make to only execute
6660 # the first set of double-colon rules, so remove it if not needed.
6661 # If there is a colon in the path, we need to keep it.
6662 if test "x$srcdir" = x.
; then
6663 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6666 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6668 DEFS
=-DHAVE_CONFIG_H
6670 # Without the "./", some shells look in PATH for config.status.
6671 : ${CONFIG_STATUS=./config.status}
6673 echo creating
$CONFIG_STATUS
6674 rm -f $CONFIG_STATUS
6675 cat > $CONFIG_STATUS <<EOF
6677 # Generated automatically by configure.
6678 # Run this file to recreate the current configuration.
6679 # This directory was configured as follows,
6680 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6682 # $0 $ac_configure_args
6684 # Compiler output produced by configure, useful for debugging
6685 # configure, is in ./config.log if it exists.
6687 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6690 case "\$ac_option" in
6691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6692 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6693 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6694 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6695 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6697 -help | --help | --hel | --he | --h)
6698 echo "\$ac_cs_usage"; exit 0 ;;
6699 *) echo "\$ac_cs_usage"; exit 1 ;;
6703 ac_given_srcdir=$srcdir
6705 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6707 cat >> $CONFIG_STATUS <<EOF
6709 # Protect against being on the right side of a sed subst in config.status.
6710 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6711 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6715 s%@CFLAGS@%$CFLAGS%g
6716 s%@CPPFLAGS@%$CPPFLAGS%g
6717 s%@CXXFLAGS@%$CXXFLAGS%g
6718 s%@FFLAGS@%$FFLAGS%g
6720 s%@LDFLAGS@%$LDFLAGS%g
6722 s%@exec_prefix@%$exec_prefix%g
6723 s%@prefix@%$prefix%g
6724 s%@program_transform_name@%$program_transform_name%g
6725 s%@bindir@%$bindir%g
6726 s%@sbindir@%$sbindir%g
6727 s%@libexecdir@%$libexecdir%g
6728 s%@datadir@%$datadir%g
6729 s%@sysconfdir@%$sysconfdir%g
6730 s%@sharedstatedir@%$sharedstatedir%g
6731 s%@localstatedir@%$localstatedir%g
6732 s%@libdir@%$libdir%g
6733 s%@includedir@%$includedir%g
6734 s%@oldincludedir@%$oldincludedir%g
6735 s%@infodir@%$infodir%g
6736 s%@mandir@%$mandir%g
6737 s%@maybe_cpplib@%$maybe_cpplib%g
6738 s%@enable_shared@%$enable_shared%g
6740 s%@host_alias@%$host_alias%g
6741 s%@host_cpu@%$host_cpu%g
6742 s%@host_vendor@%$host_vendor%g
6743 s%@host_os@%$host_os%g
6744 s%@target@%$target%g
6745 s%@target_alias@%$target_alias%g
6746 s%@target_cpu@%$target_cpu%g
6747 s%@target_vendor@%$target_vendor%g
6748 s%@target_os@%$target_os%g
6750 s%@build_alias@%$build_alias%g
6751 s%@build_cpu@%$build_cpu%g
6752 s%@build_vendor@%$build_vendor%g
6753 s%@build_os@%$build_os%g
6755 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
6756 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
6757 s%@strict1_warn@%$strict1_warn%g
6758 s%@warn_cflags@%$warn_cflags%g
6759 s%@stage1_cflags@%$stage1_cflags%g
6760 s%@SET_MAKE@%$SET_MAKE%g
6764 s%@RANLIB@%$RANLIB%g
6765 s%@INSTALL@%$INSTALL%g
6766 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6767 s%@INSTALL_DATA@%$INSTALL_DATA%g
6770 s%@MAKEINFO@%$MAKEINFO%g
6771 s%@BUILD_INFO@%$BUILD_INFO%g
6772 s%@INSTALL_INFO@%$INSTALL_INFO%g
6775 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
6776 s%@vfprintf@%$vfprintf%g
6777 s%@doprint@%$doprint%g
6778 s%@manext@%$manext%g
6779 s%@objext@%$objext%g
6780 s%@PACKAGE@%$PACKAGE%g
6781 s%@VERSION@%$VERSION%g
6782 s%@CHECK_PO@%$CHECK_PO%g
6783 s%@ALLOCA@%$ALLOCA%g
6784 s%@USE_NLS@%$USE_NLS%g
6785 s%@MSGFMT@%$MSGFMT%g
6786 s%@GMSGFMT@%$GMSGFMT%g
6787 s%@XGETTEXT@%$XGETTEXT%g
6788 s%@GENCAT@%$GENCAT%g
6789 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6790 s%@CATALOGS@%$CATALOGS%g
6791 s%@CATOBJEXT@%$CATOBJEXT%g
6792 s%@DATADIRNAME@%$DATADIRNAME%g
6793 s%@GMOFILES@%$GMOFILES%g
6794 s%@INSTOBJEXT@%$INSTOBJEXT%g
6795 s%@INTLDEPS@%$INTLDEPS%g
6796 s%@INTLLIBS@%$INTLLIBS%g
6797 s%@INTLOBJS@%$INTLOBJS%g
6798 s%@POFILES@%$POFILES%g
6800 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6802 s%@GT_YES@%$GT_YES%g
6803 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6805 s%@inhibit_libc@%$inhibit_libc%g
6806 s%@gthread_flags@%$gthread_flags%g
6808 s%@zlibdir@%$zlibdir%g
6809 s%@zlibinc@%$zlibinc%g
6810 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
6811 s%@HAVE_LIBSTDCXX_V3@%$HAVE_LIBSTDCXX_V3%g
6813 s%@build_canonical@%$build_canonical%g
6814 s%@host_canonical@%$host_canonical%g
6815 s%@target_subdir@%$target_subdir%g
6816 s%@gcc_tooldir@%$gcc_tooldir%g
6817 s%@dollar@%$dollar%g
6818 s%@objdir@%$objdir%g
6819 s%@subdirs@%$subdirs%g
6820 s%@all_boot_languages@%$all_boot_languages%g
6821 s%@all_compilers@%$all_compilers%g
6822 s%@all_diff_excludes@%$all_diff_excludes%g
6823 s%@all_headers@%$all_headers%g
6824 s%@all_lang_makefiles@%$all_lang_makefiles%g
6825 s%@all_languages@%$all_languages%g
6826 s%@all_lib2funcs@%$all_lib2funcs%g
6827 s%@all_stagestuff@%$all_stagestuff%g
6828 s%@build_exeext@%$build_exeext%g
6829 s%@build_install_headers_dir@%$build_install_headers_dir%g
6830 s%@build_xm_file_list@%$build_xm_file_list%g
6831 s%@cc_set_by_configure@%$cc_set_by_configure%g
6832 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
6833 s%@cpp_install_dir@%$cpp_install_dir%g
6834 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6835 s%@dep_tmake_file@%$dep_tmake_file%g
6836 s%@extra_c_flags@%$extra_c_flags%g
6837 s%@extra_headers_list@%$extra_headers_list%g
6838 s%@extra_objs@%$extra_objs%g
6839 s%@extra_parts@%$extra_parts%g
6840 s%@extra_passes@%$extra_passes%g
6841 s%@extra_programs@%$extra_programs%g
6842 s%@float_h_file@%$float_h_file%g
6843 s%@gcc_config_arguments@%$gcc_config_arguments%g
6844 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
6845 s%@gcc_version@%$gcc_version%g
6846 s%@gcc_version_full@%$gcc_version_full%g
6847 s%@gcc_version_trigger@%$gcc_version_trigger%g
6848 s%@host_exeext@%$host_exeext%g
6849 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6850 s%@host_xm_file_list@%$host_xm_file_list%g
6851 s%@install@%$install%g
6852 s%@lang_options_files@%$lang_options_files%g
6853 s%@lang_specs_files@%$lang_specs_files%g
6854 s%@lang_tree_files@%$lang_tree_files%g
6855 s%@local_prefix@%$local_prefix%g
6856 s%@maybe_use_collect2@%$maybe_use_collect2%g
6857 s%@md_file@%$md_file%g
6858 s%@objc_boehm_gc@%$objc_boehm_gc%g
6859 s%@out_file@%$out_file%g
6860 s%@out_object_file@%$out_object_file%g
6861 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6862 s%@symbolic_link@%$symbolic_link%g
6863 s%@thread_file@%$thread_file%g
6864 s%@tm_file_list@%$tm_file_list%g
6865 s%@will_use_collect2@%$will_use_collect2%g
6866 /@target_overrides@/r $target_overrides
6867 s%@target_overrides@%%g
6868 /@host_overrides@/r $host_overrides
6869 s%@host_overrides@%%g
6870 s%@cross_defines@%$cross_defines%g
6871 /@cross_overrides@/r $cross_overrides
6872 s%@cross_overrides@%%g
6873 /@build_overrides@/r $build_overrides
6874 s%@build_overrides@%%g
6875 /@language_fragments@/r $language_fragments
6876 s%@language_fragments@%%g
6877 /@language_hooks@/r $language_hooks
6878 s%@language_hooks@%%g
6883 cat >> $CONFIG_STATUS <<\EOF
6885 # Split the substitutions into bite-sized pieces for seds with
6886 # small command number limits, like on Digital OSF/1 and HP-UX.
6887 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6888 ac_file
=1 # Number of current file.
6889 ac_beg
=1 # First line for current file.
6890 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6893 while $ac_more_lines; do
6894 if test $ac_beg -gt 1; then
6895 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6897 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6899 if test ! -s conftest.s
$ac_file; then
6901 rm -f conftest.s
$ac_file
6903 if test -z "$ac_sed_cmds"; then
6904 ac_sed_cmds
="sed -f conftest.s$ac_file"
6906 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6908 ac_file
=`expr $ac_file + 1`
6910 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6913 if test -z "$ac_sed_cmds"; then
6918 cat >> $CONFIG_STATUS <<EOF
6920 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
6922 cat >> $CONFIG_STATUS <<\EOF
6923 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6926 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6927 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6928 *) ac_file_in
="${ac_file}.in" ;;
6931 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6933 # Remove last slash and all that follows it. Not all systems have dirname.
6934 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6936 # The file is in a subdirectory.
6937 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6938 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6939 # A "../" for each directory in $ac_dir_suffix.
6940 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6942 ac_dir_suffix
= ac_dots
=
6945 case "$ac_given_srcdir" in
6947 if test -z "$ac_dots"; then top_srcdir
=.
6948 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6949 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6951 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6952 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6956 echo creating
"$ac_file"
6958 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6960 *Makefile
*) ac_comsub
="1i\\
6961 # $configure_input" ;;
6965 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6967 s%@configure_input@%$configure_input%g
6968 s%@srcdir@%$srcdir%g
6969 s%@top_srcdir@%$top_srcdir%g
6970 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6974 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6975 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6977 # ac_d sets the value in "#define NAME VALUE" lines.
6978 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6979 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6982 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6983 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6984 ac_uB
='\([ ]\)%\1#\2define\3'
6987 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6988 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6989 ac_eB
='$%\1#\2define\3'
6993 if test "${CONFIG_HEADERS+set}" != set; then
6995 cat >> $CONFIG_STATUS <<EOF
6996 CONFIG_HEADERS="auto-host.h:config.in"
6998 cat >> $CONFIG_STATUS <<\EOF
7000 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7003 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7004 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7005 *) ac_file_in
="${ac_file}.in" ;;
7008 echo creating
$ac_file
7010 rm -f conftest.frag conftest.
in conftest.out
7011 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7012 cat $ac_file_inputs > conftest.
in
7016 # Transform confdefs.h into a sed script conftest.vals that substitutes
7017 # the proper values into config.h.in to produce config.h. And first:
7018 # Protect against being on the right side of a sed subst in config.status.
7019 # Protect against being in an unquoted here document in config.status.
7021 cat > conftest.hdr
<<\EOF
7024 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7028 sed -n -f conftest.hdr confdefs.h > conftest.vals
7031 # This sed command replaces #undef with comments. This is necessary, for
7032 # example, in the case of _POSIX_SOURCE, which is predefined and required
7033 # on some systems where configure will not decide to define it.
7034 cat >> conftest.vals <<\EOF
7035 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7038 # Break up conftest.vals because some shells have a limit on
7039 # the size of here documents, and old seds have small limits too.
7044 ac_lines=`grep -c . conftest.vals
`
7045 # grep -c gives empty output for an empty file on some AIX systems.
7046 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7047 # Write a limited-size here document to conftest.frag.
7048 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7049 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7051 sed -f conftest.frag conftest.in > conftest.out
7053 mv conftest.out conftest.in
7055 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7057 mv conftest.tail conftest.vals
7061 cat >> $CONFIG_STATUS <<\EOF
7062 rm -f conftest.frag conftest.h
7063 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7064 cat conftest.in >> conftest.h
7066 if cmp -s $ac_file conftest.h 2>/dev/null; then
7067 echo "$ac_file is unchanged"
7070 # Remove last slash and all that follows it. Not all systems have dirname.
7071 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7072 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7073 # The file is in a subdirectory.
7074 test ! -d "$ac_dir" && mkdir "$ac_dir"
7077 mv conftest.h $ac_file
7083 cat >> $CONFIG_STATUS <<EOF
7084 ac_sources="$nls_cv_header_libgt"
7085 ac_dests="$nls_cv_header_intl"
7088 cat >> $CONFIG_STATUS <<\EOF
7089 srcdir=$ac_given_srcdir
7090 while test -n "$ac_sources"; do
7091 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7092 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7094 echo "linking $srcdir/$ac_source to $ac_dest"
7096 if test ! -r $srcdir/$ac_source; then
7097 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7101 # Make relative symlinks.
7102 # Remove last slash and all that follows it. Not all systems have dirname.
7103 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7104 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7105 # The dest file is in a subdirectory.
7106 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7107 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7108 # A "../" for each directory in $ac_dest_dir_suffix.
7109 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7111 ac_dest_dir_suffix= ac_dots=
7115 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7116 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7119 # Make a symlink if possible; otherwise try a hard link.
7120 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7121 ln $srcdir/$ac_source $ac_dest; then :
7123 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7127 cat >> $CONFIG_STATUS <<EOF
7133 target_alias='${target_alias}'
7135 subdirs='${subdirs}'
7136 symbolic_link='${symbolic_link}'
7137 program_transform_set='${program_transform_set}'
7138 program_transform_name='${program_transform_name}'
7139 dep_host_xmake_file='${dep_host_xmake_file}'
7140 host_xmake_file='${host_xmake_file}'
7141 dep_tmake_file='${dep_tmake_file}'
7142 tmake_file='${tmake_file}'
7143 thread_file='${thread_file}'
7144 gcc_config_arguments='${gcc_config_arguments}'
7145 gcc_version='${gcc_version}'
7146 gcc_version_full='${gcc_version_full}'
7147 gcc_version_trigger='${gcc_version_trigger}'
7148 local_prefix='${local_prefix}'
7149 build_install_headers_dir='${build_install_headers_dir}'
7150 build_exeext='${build_exeext}'
7151 host_exeext='${host_exeext}'
7152 out_file='${out_file}'
7153 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7154 SET_MAKE='${SET_MAKE}'
7155 target_list='${target_list}'
7156 target_overrides='${target_overrides}'
7157 host_overrides='${host_overrides}'
7158 cross_defines='${cross_defines}'
7159 cross_overrides='${cross_overrides}'
7160 build_overrides='${build_overrides}'
7161 cpp_install_dir='${cpp_install_dir}'
7164 cat >> $CONFIG_STATUS <<\EOF
7165 case "$CONFIG_FILES" in *po/Makefile.in*)
7166 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7169 case x$CONFIG_HEADERS in
7170 xauto-host.h:config.in)
7173 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
7174 # bootstrapping and the installation procedure can still use
7175 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
7176 # FLAGS_TO_PASS has been modified to solve the problem there.
7177 # This is virtually a duplicate of what happens in configure.lang; we do
7178 # an extra check to make sure this only happens if ln -s can be used.
7179 if test "$symbolic_link" = "ln -s"; then
7180 for d in .. ${subdirs} ; do
7181 if test $d != ..; then
7184 for t in stage1 stage2 stage3 stage4 include
7187 $symbolic_link ../$t $t 2>/dev/null
7193 # Avoid having to add intl to our include paths.
7194 if test -f intl/libintl.h; then
7195 echo creating libintl.h
7196 echo '#include "intl/libintl.h"' >libintl.h
7201 chmod +x $CONFIG_STATUS
7202 rm -fr confdefs* $ac_clean_files
7203 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1