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-build-libsubdir=[DIR] Directory where to find libraries for build system"
17 --enable-libada Builds libada directory"
19 --enable-libssp Builds libssp directory"
21 --with-mpfr-dir=PATH Specify source directory for MPFR library"
23 --with-mpfr=PATH Specify directory for installed MPFR library"
25 --with-gmp-dir=PATH Specify source directory for GMP library"
27 --with-gmp=PATH Specify directory for installed GMP library"
29 --enable-objc-gc enable the use of Boehm's garbage collector with
30 the GNU Objective-C runtime."
32 --with-build-sysroot=sysroot
33 use sysroot as the system root during the build"
35 --enable-bootstrap Enable bootstrapping [yes if native build]"
37 --enable-serial-[{host,target,build}-]configure
38 Force sequential configuration of
39 sub-packages for the host, target or build
40 machine, or all sub-packages"
42 --with-build-time-tools=path
43 use given path to find target tools during the build"
45 --enable-maintainer-mode enable make rules and dependencies not useful
46 (and sometimes confusing) to the casual installer"
48 --enable-werror enable -Werror in bootstrap stage2 and later"
50 --with-datarootdir Use datarootdir as the data root directory."
52 --with-docdir Install documentation in this directory."
54 --with-htmldir Install html in this directory."
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file=./config.cache
69 program_transform_name=s,x,x,
77 bindir='${exec_prefix}/bin'
78 sbindir='${exec_prefix}/sbin'
79 libexecdir='${exec_prefix}/libexec'
80 datadir='${prefix}/share'
81 sysconfdir='${prefix}/etc'
82 sharedstatedir='${prefix}/com'
83 localstatedir='${prefix}/var'
84 libdir='${exec_prefix}/lib'
85 includedir='${prefix}/include'
86 oldincludedir='/usr/include'
87 infodir='${prefix}/info'
88 mandir='${prefix}/man'
90 # Initialize some other variables.
93 SHELL=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir | --bindir | --bindi | --bind | --bin | --bi)
119 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120 bindir="$ac_optarg" ;;
122 -build | --build | --buil | --bui | --bu)
124 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125 build="$ac_optarg" ;;
127 -cache-file | --cache-file | --cache-fil | --cache-fi \
128 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
129 ac_prev=cache_file ;;
130 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
131 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
132 cache_file="$ac_optarg" ;;
134 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
136 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
138 datadir="$ac_optarg" ;;
140 -disable-* | --disable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* | --enable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
163 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
164 | --exec | --exe | --ex)
165 ac_prev=exec_prefix ;;
166 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
167 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
168 | --exec=* | --exe=* | --ex=*)
169 exec_prefix="$ac_optarg" ;;
171 -gas | --gas | --ga | --g)
172 # Obsolete; use --with-gas.
175 -help | --help | --hel | --he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host | --host | --hos | --ho)
232 -host=* | --host=* | --hos=* | --ho=*)
235 -includedir | --includedir | --includedi | --included | --include \
236 | --includ | --inclu | --incl | --inc)
237 ac_prev=includedir ;;
238 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
239 | --includ=* | --inclu=* | --incl=* | --inc=*)
240 includedir="$ac_optarg" ;;
242 -infodir | --infodir | --infodi | --infod | --info | --inf)
244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245 infodir="$ac_optarg" ;;
247 -libdir | --libdir | --libdi | --libd)
249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
250 libdir="$ac_optarg" ;;
252 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
253 | --libexe | --libex | --libe)
254 ac_prev=libexecdir ;;
255 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
256 | --libexe=* | --libex=* | --libe=*)
257 libexecdir="$ac_optarg" ;;
259 -localstatedir | --localstatedir | --localstatedi | --localstated \
260 | --localstate | --localstat | --localsta | --localst \
261 | --locals | --local | --loca | --loc | --lo)
262 ac_prev=localstatedir ;;
263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
264 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
265 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
266 localstatedir="$ac_optarg" ;;
268 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
270 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271 mandir="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
285 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
286 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
287 | --oldin | --oldi | --old | --ol | --o)
288 ac_prev=oldincludedir ;;
289 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
290 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
291 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
292 oldincludedir="$ac_optarg" ;;
294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297 prefix="$ac_optarg" ;;
299 -program-prefix | --program-prefix | --program-prefi | --program-pref \
300 | --program-pre | --program-pr | --program-p)
301 ac_prev=program_prefix ;;
302 -program-prefix=* | --program-prefix=* | --program-prefi=* \
303 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
304 program_prefix="$ac_optarg" ;;
306 -program-suffix | --program-suffix | --program-suffi | --program-suff \
307 | --program-suf | --program-su | --program-s)
308 ac_prev=program_suffix ;;
309 -program-suffix=* | --program-suffix=* | --program-suffi=* \
310 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
311 program_suffix="$ac_optarg" ;;
313 -program-transform-name | --program-transform-name \
314 | --program-transform-nam | --program-transform-na \
315 | --program-transform-n | --program-transform- \
316 | --program-transform | --program-transfor \
317 | --program-transfo | --program-transf \
318 | --program-trans | --program-tran \
319 | --progr-tra | --program-tr | --program-t)
320 ac_prev=program_transform_name ;;
321 -program-transform-name=* | --program-transform-name=* \
322 | --program-transform-nam=* | --program-transform-na=* \
323 | --program-transform-n=* | --program-transform-=* \
324 | --program-transform=* | --program-transfor=* \
325 | --program-transfo=* | --program-transf=* \
326 | --program-trans=* | --program-tran=* \
327 | --progr-tra=* | --program-tr=* | --program-t=*)
328 program_transform_name="$ac_optarg" ;;
330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331 | -silent | --silent | --silen | --sile | --sil)
334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
338 sbindir="$ac_optarg" ;;
340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
342 | --sharedst | --shareds | --shared | --share | --shar \
344 ac_prev=sharedstatedir ;;
345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
349 sharedstatedir="$ac_optarg" ;;
351 -site | --site | --sit)
353 -site=* | --site=* | --sit=*)
356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359 srcdir="$ac_optarg" ;;
361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
362 | --syscon | --sysco | --sysc | --sys | --sy)
363 ac_prev=sysconfdir ;;
364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
366 sysconfdir="$ac_optarg" ;;
368 -target | --target | --targe | --targ | --tar | --ta | --t)
370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371 target="$ac_optarg" ;;
373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
376 -version | --version | --versio | --versi | --vers)
377 echo "configure generated by autoconf version 2.13"
381 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* | --without-*)
394 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
407 | --x-incl | --x-inc | --x-in | --x-i)
408 ac_prev=x_includes ;;
409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
411 x_includes="$ac_optarg" ;;
413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
415 ac_prev=x_libraries ;;
416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
418 x_libraries="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
468 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469 | --no-cr | --no-c) ;;
470 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file=move-if-change
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE; then
523 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp='$CPP $CPPFLAGS'
546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='\c' ac_t=
567 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
568 if test -f $ac_dir/install-sh; then
570 ac_install_sh="$ac_aux_dir/install-sh -c"
572 elif test -f $ac_dir/install.sh; then
574 ac_install_sh="$ac_aux_dir/install.sh -c"
578 if test -z "$ac_aux_dir"; then
579 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
581 ac_config_guess=$ac_aux_dir/config.guess
582 ac_config_sub=$ac_aux_dir/config.sub
583 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
586 # Do some error checking and defaulting for the host and target type.
588 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
591 # 1. You are not allowed to specify --host, --target, and nonopt at the
593 # 2. Host defaults to nonopt.
594 # 3. If nonopt is not specified, then host defaults to the current host,
595 # as determined by config.guess.
596 # 4. Target and build default to nonopt.
597 # 5. If nonopt is not specified, then target and build default to host.
599 # The aliases save the names the user supplied, while $host etc.
600 # will get canonicalized.
601 case $host---$target---$nonopt in
602 NONE---*---* | *---NONE---* | *---*---NONE) ;;
603 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
607 # Make sure we can run config.sub.
608 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
609 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
612 echo $ac_n "checking host system type""... $ac_c" 1>&6
613 echo "configure:614: checking host system type" >&5
616 case "$host_alias" in
620 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
621 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
623 *) host_alias=$nonopt ;;
627 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
628 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$host" 1>&6
633 echo $ac_n "checking target system type""... $ac_c" 1>&6
634 echo "configure:635: checking target system type" >&5
637 case "$target_alias" in
640 NONE) target_alias=$host_alias ;;
641 *) target_alias=$nonopt ;;
645 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
646 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$target" 1>&6
651 echo $ac_n "checking build system type""... $ac_c" 1>&6
652 echo "configure:653: checking build system type" >&5
655 case "$build_alias" in
658 NONE) build_alias=$host_alias ;;
659 *) build_alias=$nonopt ;;
663 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
664 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$build" 1>&6
669 test "$host_alias" != "$target_alias" &&
670 test "$program_prefix$program_suffix$program_transform_name" = \
672 program_prefix=${target_alias}-
674 if test "$program_transform_name" = s,x,x,; then
675 program_transform_name=
677 # Double any \ or $. echo might interpret backslashes.
678 cat <<\EOF_SED > conftestsed
679 s,\\,\\\\,g; s,\$,$$,g
681 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
684 test "$program_prefix" != NONE &&
685 program_transform_name="s,^,${program_prefix},; $program_transform_name"
686 # Use a double $ so make ignores it.
687 test "$program_suffix" != NONE &&
688 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
694 # Get 'install' or 'install-sh' and its variants.
695 # Find a good install program. We prefer a C program (faster),
696 # so one script is as good as another. But avoid the broken or
697 # incompatible versions:
698 # SysV /etc/install, /usr/sbin/install
699 # SunOS /usr/etc/install
702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
705 # ./install, which can be erroneously created by make from ./install.sh.
706 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
707 echo "configure:708: checking for a BSD compatible install" >&5
708 if test -z "$INSTALL"; then
709 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
713 for ac_dir in $PATH; do
714 # Account for people who put trailing slashes in PATH elements.
716 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
718 # OSF1 and SCO ODT 3.0 have their own names for install.
719 # Don't use installbsd from OSF since it installs stuff as root
721 for ac_prog in ginstall scoinst install; do
722 if test -f $ac_dir/$ac_prog; then
723 if test $ac_prog = install &&
724 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
725 # AIX install. It has an incompatible calling convention.
728 ac_cv_path_install="$ac_dir/$ac_prog -c"
739 if test "${ac_cv_path_install+set}" = set; then
740 INSTALL="$ac_cv_path_install"
742 # As a last resort, use the slow shell script. We don't cache a
743 # path for INSTALL within a source directory, because that will
744 # break other packages using the cache if that directory is
745 # removed, or if the path is relative.
746 INSTALL="$ac_install_sh"
749 echo "$ac_t""$INSTALL" 1>&6
751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
752 # It thinks the first close brace ends the variable substitution.
753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
759 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
760 echo "configure:761: checking whether ln works" >&5
761 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
766 if ln conftestdata_f conftestdata_t 2>/dev/null
772 rm -f conftestdata_f conftestdata_t
775 if test $acx_cv_prog_LN = no; then
777 echo "$ac_t""no, using $LN" 1>&6
780 echo "$ac_t""yes" 1>&6
783 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
784 echo "configure:785: checking whether ln -s works" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
789 if ln -s X conftestdata 2>/dev/null
792 ac_cv_prog_LN_S="ln -s"
797 LN_S="$ac_cv_prog_LN_S"
798 if test "$ac_cv_prog_LN_S" = "ln -s"; then
799 echo "$ac_t""yes" 1>&6
801 echo "$ac_t""no" 1>&6
805 ### we might need to use some other shell than /bin/sh for running subshells
806 ### If we are on Windows, search for the shell. This will permit people
807 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
808 ### without also having to set CONFIG_SHELL. This code will work when
809 ### using bash, which sets OSTYPE.
812 if test x${CONFIG_SHELL} = x ; then
813 if test ! -f /bin/sh ; then
814 if test x${SHELL} != x && test -f ${SHELL} ; then
815 CONFIG_SHELL=${SHELL}
818 for prog in sh sh.exe bash bash.exe; do
819 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
821 test -z "$dir" && dir=.
822 if test -f $dir/$prog; then
823 CONFIG_SHELL=$dir/$prog
829 test -n "${CONFIG_SHELL}" && break
837 config_shell=${CONFIG_SHELL-/bin/sh}
840 # if PWD already has a value, it is probably wrong.
841 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
843 # Export original configure arguments for use by sub-configures. These
844 # will be expanded by make, so quote '$'.
846 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
849 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
850 rm -f conftestsed.out
853 moveifchange=${srcdir}/move-if-change
855 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
857 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
859 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
860 INSTALL="${srcpwd}/install-sh -c"
863 # Set srcdir to "." if that's what it is.
864 # This is important for multilib support.
866 if test "${pwd}" = "${srcpwd}" ; then
874 ### To add a new directory to the tree, first choose whether it is a target
875 ### or a host dependent tool. Then put it into the appropriate list
876 ### (library or tools, host or target), doing a dependency sort.
878 # Subdirs will be configured in the order listed in build_configdirs,
879 # configdirs, or target_configdirs; see the serialization section below.
881 # Dependency sorting is only needed when *configuration* must be done in
882 # a particular order. In all cases a dependency should be specified in
883 # the Makefile, whether or not it's implicitly specified here.
885 # Double entries in build_configdirs, configdirs, or target_configdirs may
886 # cause circular dependencies and break everything horribly.
888 # these library is used by various programs built for the build
891 build_libs="build-libiberty"
893 # these tools are built for the build environment
894 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
896 # these libraries are used by various programs built for the host environment
898 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
900 # these tools are built for the host environment
901 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
902 # know that we are building the simulator.
903 # binutils, gas and ld appear in that order because it makes sense to run
904 # "make check" in that particular order.
905 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
907 # libgcj represents the runtime libraries only used by gcj.
908 libgcj="target-libffi \
913 # these libraries are built for the target environment, and are built after
914 # the host libraries and the host tools (which may be a cross compiler)
916 target_libraries="target-libiberty \
919 target-libstdc++-v3 \
929 # these tools are built using the target libraries, and are intended to
930 # run only in the target environment
932 # note: any program that *uses* libraries that are in the "target_libraries"
933 # list belongs in this list. those programs are also very likely
934 # candidates for the "native_only" list which follows
936 target_tools="target-examples target-groff target-gperf target-rda"
938 ################################################################################
940 ## All tools belong in one of the four categories, and are assigned above
941 ## We assign ${configdirs} this way to remove all embedded newlines. This
942 ## is important because configure will choke if they ever get through.
943 ## ${configdirs} is directories we build using the host tools.
944 ## ${target_configdirs} is directories we build using the target tools.
945 configdirs=`echo ${host_libs} ${host_tools}`
946 target_configdirs=`echo ${target_libraries} ${target_tools}`
947 build_configdirs=`echo ${build_libs} ${build_tools}`
949 ################################################################################
951 srcname="gnu development package"
953 # This gets set non-empty for some net releases of packages.
956 # Define is_cross_compiler to save on calls to 'test'.
958 if test x"${host}" = x"${target}" ; then
961 is_cross_compiler=yes
964 # Find the build and target subdir names.
965 case ${build_alias} in
966 "") build_noncanonical=${build} ;;
967 *) build_noncanonical=${build_alias} ;;
970 case ${host_alias} in
971 "") host_noncanonical=${build_noncanonical} ;;
972 *) host_noncanonical=${host_alias} ;;
975 case ${target_alias} in
976 "") target_noncanonical=${host_noncanonical} ;;
977 *) target_noncanonical=${target_alias} ;;
981 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
982 # have matching libraries, they should use host libraries: Makefile.tpl
983 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
984 # However, they still use the build modules, because the corresponding
985 # host modules (e.g. bison) are only built for the host when bootstrap
987 # - build_subdir is where we find build modules, and never changes.
988 # - build_libsubdir is where we find build libraries, and can be overridden.
990 # Prefix 'build-' so this never conflicts with target_subdir.
991 build_subdir="build-${build_noncanonical}"
992 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
993 if test "${with_build_libsubdir+set}" = set; then
994 withval="$with_build_libsubdir"
995 build_libsubdir="$withval"
997 build_libsubdir="$build_subdir"
1000 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1001 if ( test $srcdir = . && test -d gcc ) \
1002 || test -d $srcdir/../host-${host_noncanonical}; then
1003 host_subdir="host-${host_noncanonical}"
1008 target_subdir=${target_noncanonical}
1011 # Skipdirs are removed silently.
1013 # Noconfigdirs are removed loudly.
1017 # Make sure we don't let GNU ld be added if we didn't want it.
1018 if test x$with_gnu_ld = xno ; then
1020 noconfigdirs="$noconfigdirs ld"
1024 # Make sure we don't let GNU as be added if we didn't want it.
1025 if test x$with_gnu_as = xno ; then
1027 noconfigdirs="$noconfigdirs gas"
1030 # some tools are so dependent upon X11 that if we're not building with X,
1031 # it's not even worth trying to configure, much less build, that tool.
1034 yes | "") ;; # the default value for this tree is that X11 is available
1036 skipdirs="${skipdirs} tk itcl libgui"
1037 # We won't be able to build gdbtk without X.
1040 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1043 # Some tools are only suitable for building in a "native" situation.
1044 # Remove these if host!=target.
1045 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1047 # Similarly, some are only suitable for cross toolchains.
1048 # Remove these if host=target.
1049 cross_only="target-libgloss target-newlib target-opcodes"
1051 case $is_cross_compiler in
1052 no) skipdirs="${skipdirs} ${cross_only}" ;;
1053 yes) skipdirs="${skipdirs} ${native_only}" ;;
1056 # If both --with-headers and --with-libs are specified, default to
1058 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1059 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1060 if test x"${with_newlib}" = x ; then
1065 # Recognize --with-newlib/--without-newlib.
1066 case ${with_newlib} in
1067 no) skipdirs="${skipdirs} target-newlib" ;;
1068 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1071 # Configure extra directories which are host specific
1075 configdirs="$configdirs libtermcap" ;;
1078 # A target can indicate whether a language isn't supported for some reason.
1079 # Only spaces may be used in this macro; not newlines or tabs.
1080 unsupported_languages=
1082 # Remove more programs from consideration, based on the host or
1083 # target this usually means that a port of the program doesn't
1088 noconfigdirs="$noconfigdirs byacc"
1090 i[3456789]86-*-vsta)
1091 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1093 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1094 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1096 i[3456789]86-*-mingw32*)
1097 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1098 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1100 i[3456789]86-*-beos*)
1101 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1104 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1107 noconfigdirs="$noconfigdirs rcs"
1110 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1113 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1118 # Check whether --enable-libada or --disable-libada was given.
1119 if test "${enable_libada+set}" = set; then
1120 enableval="$enable_libada"
1121 ENABLE_LIBADA=$enableval
1126 if test "${ENABLE_LIBADA}" != "yes" ; then
1127 noconfigdirs="$noconfigdirs gnattools"
1130 # Check whether --enable-libssp or --disable-libssp was given.
1131 if test "${enable_libssp+set}" = set; then
1132 enableval="$enable_libssp"
1133 ENABLE_LIBSSP=$enableval
1139 # Save it here so that, even in case of --enable-libgcj, if the Java
1140 # front-end isn't enabled, we still get libgcj disabled.
1141 libgcj_saved=$libgcj
1142 case $enable_libgcj in
1144 # If we reset it here, it won't get added to noconfigdirs in the
1145 # target-specific build rules, so it will be forcibly enabled
1146 # (unless the Java language itself isn't enabled).
1150 # Make sure we get it printed in the list of not supported target libs.
1151 noconfigdirs="$noconfigdirs ${libgcj}"
1156 # Disable libmudflap on some systems.
1157 if test x$enable_libmudflap = x ; then
1159 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1160 # Enable libmudflap by default in GNU and friends.
1163 # Enable libmudflap by default in FreeBSD.
1166 # Disable it by default everywhere else.
1167 noconfigdirs="$noconfigdirs target-libmudflap"
1172 # Disable libgomp on non POSIX hosted systems.
1173 if test x$enable_libgomp = x ; then
1174 # Enable libgomp by default on hosted POSIX systems.
1176 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1178 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1180 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1182 *-*-darwin* | *-*-aix*)
1185 noconfigdirs="$noconfigdirs target-libgomp"
1193 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1196 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1197 noconfigdirs="$noconfigdirs sim target-rda"
1200 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1201 noconfigdirs="$noconfigdirs sim target-rda"
1202 noconfigdirs="$noconfigdirs ${libgcj}"
1204 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1205 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1208 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1209 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1210 && test -f /usr/local/include/gmp.h; then
1214 # Skip some stuff that's unsupported on some FreeBSD configurations.
1219 noconfigdirs="$noconfigdirs ${libgcj}"
1224 # Remove unsupported stuff on all kaOS configurations.
1225 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1226 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1227 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1228 noconfigdirs="$noconfigdirs target-libgloss"
1231 # Skip some stuff on all NetBSD configurations.
1232 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1234 # Skip some stuff that's unsupported on some NetBSD configurations.
1236 i*86-*-netbsdelf*) ;;
1237 arm*-*-netbsdelf*) ;;
1239 noconfigdirs="$noconfigdirs ${libgcj}"
1244 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1247 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1249 # The tpf target doesn't support gdb yet.
1251 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1254 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1257 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1260 # ld works, but does not support shared libraries.
1261 # newlib is not 64 bit ready. I'm not sure about fileutils.
1262 # gas doesn't generate exception information.
1263 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1266 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1269 # newlib is not 64 bit ready
1270 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1273 # newlib is not 64 bit ready
1274 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1277 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1280 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1282 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1283 noconfigdirs="$noconfigdirs ${libgcj}"
1284 noconfigdirs="$noconfigdirs target-examples"
1285 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1286 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1287 noconfigdirs="$noconfigdirs expect dejagnu"
1288 # the C++ libraries don't build on top of CE's C libraries
1289 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1290 noconfigdirs="$noconfigdirs target-newlib"
1292 *-*-cygwin*) ;; # keep gdb and readline
1293 *) noconfigdirs="$noconfigdirs gdb readline"
1298 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1302 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1303 noconfigdirs="$noconfigdirs ${libgcj}"
1305 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1306 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1308 arm*-*-linux-gnueabi)
1309 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1310 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1313 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1316 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1319 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1322 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1325 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1328 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1331 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1334 noconfigdirs="$noconfigdirs target-libgloss gdb"
1335 if test x${is_cross_compiler} != xno ; then
1336 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1339 c4x-*-* | tic4x-*-*)
1340 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1342 c54x*-*-* | tic54x-*-*)
1343 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1345 cris-*-* | crisv32-*-*)
1346 unsupported_languages="$unsupported_languages java"
1349 unsupported_languages="$unsupported_languages fortran"
1350 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1352 unsupported_languages="$unsupported_languages fortran"
1353 noconfigdirs="$noconfigdirs target-boehm-gc";;
1355 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1357 unsupported_languages="$unsupported_languages fortran"
1358 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1362 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1365 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1368 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1371 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1374 noconfigdirs="$noconfigdirs ${libgcj}"
1377 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1382 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1384 hppa*64*-*-linux* | parisc*64*-*-linux*)
1385 # In this case, it's because the hppa64-linux target is for
1386 # the kernel only at this point and has no libc, and thus no
1387 # headers, crt*.o, etc., all of which are needed by these.
1388 noconfigdirs="$noconfigdirs target-zlib"
1390 parisc*-*-linux* | hppa*-*-linux*)
1394 hppa*-*-openbsd* | \
1396 noconfigdirs="$noconfigdirs ${libgcj}"
1399 noconfigdirs="$noconfigdirs ld shellutils"
1402 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1403 # build on HP-UX 10.20.
1404 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1407 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1410 # No gdb support yet.
1411 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1414 # No gdb or ld support yet.
1415 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1419 i[3456789]86-*-coff | i[3456789]86-*-elf)
1420 noconfigdirs="$noconfigdirs ${libgcj}"
1422 i[3456789]86-*-linux*)
1423 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1424 # not build java stuff by default.
1427 noconfigdirs="$noconfigdirs ${libgcj}";;
1430 # This section makes it possible to build newlib natively on linux.
1431 # If we are using a cross compiler then don't configure newlib.
1432 if test x${is_cross_compiler} != xno ; then
1433 noconfigdirs="$noconfigdirs target-newlib"
1435 noconfigdirs="$noconfigdirs target-libgloss"
1436 # If we are not using a cross compiler, do configure newlib.
1437 # Note however, that newlib will only be configured in this situation
1438 # if the --with-newlib option has been given, because otherwise
1439 # 'target-newlib' will appear in skipdirs.
1441 i[3456789]86-*-mingw32*)
1442 target_configdirs="$target_configdirs target-mingw"
1443 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1446 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1447 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1448 # always build newlib if winsup directory is present.
1449 if test -d "$srcdir/winsup"; then
1450 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1451 elif test -d "$srcdir/newlib"; then
1452 echo "Warning: winsup is missing so newlib can't be built."
1455 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1456 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1459 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1461 i[3456789]86-*-sco3.2v5*)
1462 # The linker does not yet know about weak symbols in COFF,
1463 # and is not configured to handle mixed ELF and COFF.
1464 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1466 i[3456789]86-*-sco*)
1467 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1469 i[3456789]86-*-solaris2*)
1470 noconfigdirs="$noconfigdirs target-libgloss"
1472 i[3456789]86-*-sysv4*)
1473 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1475 i[3456789]86-*-beos*)
1476 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1478 i[3456789]86-*-rdos*)
1479 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1482 noconfigdirs="$noconfigdirs ${libgcj}"
1484 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1485 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1488 noconfigdirs="$noconfigdirs ${libgcj}"
1491 noconfigdirs="$noconfigdirs ${libgcj}"
1494 # The EPOC C++ environment does not support exceptions or rtti,
1495 # and so building libstdc++-v3 tends not to always work.
1496 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1499 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1500 unsupported_languages="$unsupported_languages fortran java"
1503 noconfigdirs="$noconfigdirs ${libgcj}"
1506 noconfigdirs="$noconfigdirs ${libgcj}"
1509 noconfigdirs="$noconfigdirs sim"
1512 # copied from rs6000-*-* entry
1513 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1515 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1516 target_configdirs="$target_configdirs target-winsup"
1517 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1518 # always build newlib.
1519 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1521 # This is temporary until we can link against shared libraries
1522 powerpcle-*-solaris*)
1523 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1526 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1529 noconfigdirs="$noconfigdirs ${libgcj}"
1531 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1534 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1537 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1540 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1543 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1546 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1549 # Linking libjava exceeds command-line length limits on at least
1550 # IRIX 6.2, but not on IRIX 6.5.
1551 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1552 # <oldham@codesourcery.com>
1553 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1556 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1559 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1562 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1565 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1571 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1574 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1578 i[3456789]86-*-vsta) ;; # don't add gprof back in
1579 i[3456789]86-*-go32*) ;; # don't add gprof back in
1580 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1581 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1586 noconfigdirs="$noconfigdirs ${libgcj}"
1589 noconfigdirs="$noconfigdirs ${libgcj}"
1592 noconfigdirs="$noconfigdirs ${libgcj}"
1595 noconfigdirs="$noconfigdirs ${libgcj}"
1596 if test x${is_cross_compiler} != xno ; then
1597 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1602 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1603 noconfigdirs="$noconfigdirs ${libgcj}"
1605 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1608 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1611 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1614 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1617 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1620 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1623 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1626 noconfigdirs="$noconfigdirs ${libgcj}"
1629 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1631 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1635 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1638 noconfigdirs="$noconfigdirs ${libgcj}"
1642 # If we aren't building newlib, then don't build libgloss, since libgloss
1643 # depends upon some newlib header files.
1644 case "${noconfigdirs}" in
1645 *target-libgloss*) ;;
1646 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1649 # Work in distributions that contain no compiler tools, like Autoconf.
1651 host_makefile_frag=/dev/null
1652 if test -d ${srcdir}/config ; then
1655 # Avoid "too much defining" errors from HPUX compiler.
1656 tentative_cc="cc -Wp,-H256000"
1657 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1658 # If it's HP/UX ar, this should be harmless.
1662 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1665 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1666 # chokes on bfd, the compiler won't let you assign integers to enums, and
1667 # other problems. Defining CC to gcc is a questionable way to say "don't use
1668 # the apollo compiler" (the preferred version of GCC could be called cc,
1669 # or whatever), but I'm not sure leaving CC as cc is any better...
1670 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1671 # Used to have BISON=yacc.
1675 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1678 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1679 tentative_cc="cc -Xa"
1680 host_makefile_frag="config/mh-cxux"
1682 m88k-motorola-sysv*)
1685 tentative_cc="cc -Wf,-XNg1000"
1686 host_makefile_frag="config/mh-decstation"
1689 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1690 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1691 host_makefile_frag="config/mh-necv4"
1694 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1695 # environment. Also bump switch table size so that cp-parse will
1696 # compile. Bump string length limit so linker builds.
1697 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1700 host_makefile_frag="config/mh-sysv4"
1703 # This is for a MIPS running RISC/os 4.52C.
1705 # This is needed for GDB, but needs to be in the top-level make because
1706 # if a library is compiled with the bsd headers and gets linked with the
1707 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1708 # a different size).
1709 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1710 # known except to select the sysv environment. Could we use /proc instead?
1711 # These "sysv environments" and "bsd environments" often end up being a pain.
1713 # This is not part of CFLAGS because perhaps not all C compilers have this
1715 tentative_cc="cc -systype sysv"
1720 i[3456789]86-*-sysv5*)
1721 host_makefile_frag="config/mh-sysv5"
1723 i[3456789]86-*-dgux*)
1724 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1725 host_makefile_frag="config/mh-dgux386"
1727 i[3456789]86-ncr-sysv4.3*)
1728 # The MetaWare compiler will generate a copyright message unless you
1729 # turn it off by adding the -Hnocopyr flag.
1730 tentative_cc="cc -Hnocopyr"
1732 i[3456789]86-ncr-sysv4*)
1733 # for an NCR 3000 (i486/SVR4) system.
1734 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1735 # This compiler not only emits obnoxious copyright messages every time
1736 # you run it, but it chokes and dies on a whole bunch of GNU source
1737 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1738 tentative_cc="/usr/ccs/ATT/cc"
1739 host_makefile_frag="config/mh-ncr3000"
1741 i[3456789]86-*-sco3.2v5*)
1743 i[3456789]86-*-sco*)
1744 # The native C compiler botches some simple uses of const. Unfortunately,
1745 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1746 tentative_cc="cc -Dconst="
1747 host_makefile_frag="config/mh-sco"
1749 i[3456789]86-*-udk*)
1750 host_makefile_frag="config/mh-sysv5"
1752 i[3456789]86-*-solaris2*)
1753 host_makefile_frag="config/mh-sysv4"
1755 i[3456789]86-*-msdosdjgpp*)
1756 host_makefile_frag="config/mh-djgpp"
1759 host_makefile_frag="config/mh-cygwin"
1764 host_makefile_frag="config/mh-interix"
1767 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1771 host_makefile_frag="config/mh-solaris"
1774 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1775 # without overflowing the jump tables (-J says to use a 32 bit table)
1776 tentative_cc="cc -J"
1779 tentative_cc="cc -Wp,-H256000"
1782 tentative_cc="cc -Wp,-H256000"
1785 # /bin/cc is less than useful for our purposes. Always use GCC
1786 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1787 host_makefile_frag="config/mh-lynxrs6k"
1790 host_makefile_frag="config/mh-ppc-darwin"
1793 host_makefile_frag="config/mh-ppc-aix"
1796 host_makefile_frag="config/mh-ppc-aix"
1799 # /bin/cc is less than useful for our purposes. Always use GCC
1800 tentative_cc="/bin/gcc"
1803 host_makefile_frag="config/mh-sysv4"
1805 # This is placed last to prevent interfering with the cases above.
1807 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1808 host_makefile_frag="config/mh-x86omitfp"
1813 # If we aren't going to be using gcc, see if we can extract a definition
1814 # of CC from the fragment.
1815 # Actually, use the 'pre-extracted' version above.
1816 if test -z "${CC}" && test "${build}" = "${host}" ; then
1817 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1819 for dir in $PATH; do
1820 test -z "$dir" && dir=.
1821 if test -f $dir/gcc; then
1827 if test -z "${found}" && test -n "${tentative_cc}" ; then
1832 if test "${build}" != "${host}" ; then
1833 # If we are doing a Canadian Cross, in which the host and build systems
1834 # are not the same, we set reasonable default values for the tools.
1836 CC=${CC-${host_alias}-gcc}
1837 CFLAGS=${CFLAGS-"-g -O2"}
1838 CXX=${CXX-${host_alias}-c++}
1839 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1840 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1843 # Set reasonable default values for some tools even if not Canadian.
1844 # Of course, these are different reasonable default values, originally
1845 # specified directly in the Makefile.
1846 # We don't export, so that autoconf can do its job.
1847 # Note that all these settings are above the fragment inclusion point
1848 # in Makefile.in, so can still be overridden by fragments.
1849 # This is all going to change when we autoconfiscate...
1851 CC_FOR_BUILD="\$(CC)"
1852 # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1875 if test -n "$CC"; then
1876 echo "$ac_t""$CC" 1>&6
1878 echo "$ac_t""no" 1>&6
1881 if test -z "$CC"; then
1882 # Extract the first word of "cc", so it can be a program name with args.
1883 set dummy cc; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/$ac_word; then
1898 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1899 ac_prog_rejected=yes
1907 if test $ac_prog_rejected = yes; then
1908 # We found a bogon in the path, so make sure we never use it.
1909 set dummy $ac_cv_prog_CC
1911 if test $# -gt 0; then
1912 # We chose a different compiler from the bogus one.
1913 # However, it has the same basename, so the bogon will be chosen
1914 # first if we set CC to just the basename; use the full file name.
1916 set dummy "$ac_dir/$ac_word" "$@"
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1927 echo "$ac_t""no" 1>&6
1930 if test -z "$CC"; then
1931 case "`uname -s`" in
1933 # Extract the first word of "cl", so it can be a program name with args.
1934 set dummy cl; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1956 if test -n "$CC"; then
1957 echo "$ac_t""$CC" 1>&6
1959 echo "$ac_t""no" 1>&6
1964 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1975 cross_compiling=$ac_cv_prog_cc_cross
1977 cat > conftest.$ac_ext << EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985 ac_cv_prog_cc_works=yes
1986 # If we can't run a trivial program, we are probably using a cross compiler.
1987 if (./conftest; exit) 2>/dev/null; then
1988 ac_cv_prog_cc_cross=no
1990 ac_cv_prog_cc_cross=yes
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 ac_cv_prog_cc_works=no
1999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2003 cross_compiling=$ac_cv_prog_cc_cross
2005 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2006 if test $ac_cv_prog_cc_works = no; then
2007 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2009 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2011 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2012 cross_compiling=$ac_cv_prog_cc_cross
2014 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether we are using GNU C" >&5
2016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 cat > conftest.c <<EOF
2024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2033 if test $ac_cv_prog_gcc = yes; then
2039 ac_test_CFLAGS="${CFLAGS+set}"
2040 ac_save_CFLAGS="$CFLAGS"
2042 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2043 echo "configure:2044: checking whether ${CC-cc} accepts -g" >&5
2044 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 echo 'void f(){}' > conftest.c
2048 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2057 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS="$ac_save_CFLAGS"
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2067 if test "$GCC" = yes; then
2075 # We must set the default linker to the linker used by gcc for the correct
2076 # operation of libtool. If LD is not defined and we are using gcc, try to
2077 # set the LD default to the ld used by gcc.
2078 if test -z "$LD"; then
2079 if test "$GCC" = yes; then
2082 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2084 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2086 case $gcc_prog_ld in
2087 # Accept absolute paths.
2088 [\\/]* | [A-Za-z]:[\\/]*)
2089 LD="$gcc_prog_ld" ;;
2095 CFLAGS=${CFLAGS-"-g"}
2096 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2099 if test $host != $build; then
2100 ac_tool_prefix=${host_alias}-
2107 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2108 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 if test -n "$GNATBIND"; then
2115 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2119 for ac_dir in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2129 GNATBIND="$ac_cv_prog_GNATBIND"
2130 if test -n "$GNATBIND"; then
2131 echo "$ac_t""$GNATBIND" 1>&6
2133 echo "$ac_t""no" 1>&6
2137 if test -z "$ac_cv_prog_GNATBIND"; then
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "gnatbind", so it can be a program name with args.
2140 set dummy gnatbind; ac_word=$2
2141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_word" >&5
2143 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 if test -n "$GNATBIND"; then
2147 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2151 for ac_dir in $ac_dummy; do
2152 test -z "$ac_dir" && ac_dir=.
2153 if test -f $ac_dir/$ac_word; then
2154 ac_cv_prog_GNATBIND="gnatbind"
2159 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2162 GNATBIND="$ac_cv_prog_GNATBIND"
2163 if test -n "$GNATBIND"; then
2164 echo "$ac_t""$GNATBIND" 1>&6
2166 echo "$ac_t""no" 1>&6
2174 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether compiler driver understands Ada" >&5
2176 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat >conftest.adb <<EOF
2180 procedure conftest is begin null; end conftest;
2182 acx_cv_cc_gcc_supports_ada=no
2183 # There is a bug in old released versions of GCC which causes the
2184 # driver to exit successfully when the appropriate language module
2185 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2186 # Therefore we must check for the error message as well as an
2187 # unsuccessful exit.
2188 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2189 # given a .adb file, but produce no object file. So we must check
2190 # if an object file was really produced to guard against this.
2191 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2192 if test x"$errors" = x && test -f conftest.$ac_objext; then
2193 acx_cv_cc_gcc_supports_ada=yes
2198 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2200 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2206 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2207 echo "configure:2208: checking how to compare bootstrapped objects" >&5
2208 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2213 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2214 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2215 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2218 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2221 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2222 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2225 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2232 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2233 do_compare="$gcc_cv_prog_cmp_skip"
2237 # Check for GMP and MPFR
2241 # Specify a location for mpfr
2242 # check for this first so it ends up on the link line before gmp.
2243 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2244 if test "${with_mpfr_dir+set}" = set; then
2245 withval="$with_mpfr_dir"
2250 if test "x$with_mpfr_dir" != x; then
2251 gmpinc="-I$with_mpfr_dir"
2252 gmplibs="$with_mpfr_dir/libmpfr.a"
2257 # Check whether --with-mpfr or --without-mpfr was given.
2258 if test "${with_mpfr+set}" = set; then
2259 withval="$with_mpfr"
2264 if test "x$with_mpfr" != x; then
2265 gmplibs="-L$with_mpfr/lib $gmplibs"
2266 gmpinc="-I$with_mpfr/include"
2269 # Specify a location for gmp
2270 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2271 if test "${with_gmp_dir+set}" = set; then
2272 withval="$with_gmp_dir"
2277 if test "x$with_gmp_dir" != x; then
2278 gmpinc="$gmpinc -I$with_gmp_dir"
2279 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2280 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2281 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2282 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2284 # One of the later tests will catch the error if neither library is present.
2286 gmplibs="$gmplibs -lgmp"
2289 # Check whether --with-gmp or --without-gmp was given.
2290 if test "${with_gmp+set}" = set; then
2296 if test "x$with_gmp" != x; then
2297 gmplibs="-L$with_gmp/lib $gmplibs"
2298 gmpinc="-I$with_gmp/include $gmpinc"
2301 saved_CFLAGS="$CFLAGS"
2302 CFLAGS="$CFLAGS $gmpinc"
2303 # Check GMP actually works
2304 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2305 echo "configure:2306: checking for correct version of gmp.h" >&5
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2312 #if __GNU_MP_VERSION < 3
2318 if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2320 echo "$ac_t""yes" 1>&6
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2325 echo "$ac_t""no" 1>&6; have_gmp=no
2329 if test x"$have_gmp" = xyes; then
2330 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2331 echo "configure:2332: checking for MPFR" >&5
2334 LIBS="$LIBS $gmplibs"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2341 mpfr_t n; mpfr_init(n);
2344 if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2346 echo "$ac_t""yes" 1>&6
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2351 echo "$ac_t""no" 1>&6; have_gmp=no
2356 CFLAGS="$saved_CFLAGS"
2358 # Flags needed for both GMP and/or MPFR
2362 # By default, C is the only stage 1 language.
2366 # Figure out what language subdirectories are present.
2367 # Look if the user specified --enable-languages="..."; if not, use
2368 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2370 # NB: embedded tabs in this IF block -- do not untabify
2371 if test -d ${srcdir}/gcc; then
2372 if test x"${enable_languages+set}" != xset; then
2373 if test x"${LANGUAGES+set}" = xset; then
2374 enable_languages="${LANGUAGES}"
2375 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2377 enable_languages=all
2380 if test x"${enable_languages}" = x ||
2381 test x"${enable_languages}" = xyes;
2383 echo configure.in: --enable-languages needs at least one language argument 1>&2
2387 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2389 # 'f95' is the old name for the 'fortran' language. We issue a warning
2390 # and make the substitution.
2391 case ,${enable_languages}, in
2393 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2394 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2398 # First scan to see if an enabled language requires some other language.
2399 # We assume that a given config-lang.in will list all the language
2400 # front ends it requires, even if some are required indirectly.
2401 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2402 case ${lang_frag} in
2404 # The odd quoting in the next line works around
2405 # an apparent bug in bash 1.12 on linux.
2406 ${srcdir}/gcc/[*]/config-lang.in) ;;
2408 # From the config-lang.in, get $language, $lang_requires
2412 for other in ${lang_requires} ; do
2413 case ,${enable_languages}, in
2417 echo " \`$other' language required by \`$language'; enabling" 1>&2
2418 enable_languages="${enable_languages},${other}"
2426 new_enable_languages=c
2427 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2428 potential_languages=c
2430 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2431 case ${lang_frag} in
2433 # The odd quoting in the next line works around
2434 # an apparent bug in bash 1.12 on linux.
2435 ${srcdir}/gcc/[*]/config-lang.in) ;;
2437 # From the config-lang.in, get $language, $target_libs,
2438 # $lang_dirs, $boot_language, and $build_by_default
2447 potential_languages="${potential_languages},${language}"
2448 # This is quite sensitive to the ordering of the case statement arms.
2449 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2451 echo "${lang_frag} doesn't set \$language." 1>&2
2455 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2458 *,${language},*:*:*:*)
2459 # Language was explicitly selected; include it.
2463 # 'all' was selected, but this is not a default language
2464 # so do not include it.
2468 # 'all' was selected and this is a default language; include it.
2476 # Disable languages that need other directories if these aren't available.
2477 for i in $subdir_requires; do
2478 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2479 case ,${enable_languages}, in
2481 # Specifically requested language; tell them.
2482 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2491 # Disable languages that need GMP if it isn't available.
2492 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2493 *,${language},*:no:yes)
2494 # Specifically requested language; tell them.
2495 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2503 # Disable a language that is unsupported by the target.
2504 case " $unsupported_languages " in
2510 case $add_this_lang in
2512 # Remove language-dependent dirs.
2513 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2516 new_enable_languages="$new_enable_languages,$language"
2517 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2518 case ${boot_language} in
2520 # Add to (comma-separated) list of stage 1 languages.
2521 stage1_languages="${stage1_languages},${language}"
2530 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2531 if test "x$missing_languages" != x; then
2532 { echo "configure: error:
2533 The following requested languages could not be built: ${missing_languages}
2534 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2537 if test "x$new_enable_languages" != "x$enable_languages"; then
2538 echo The following languages will be built: ${new_enable_languages}
2540 enable_languages="$new_enable_languages"
2541 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2544 # Handle --disable-<component> generically.
2545 for dir in $configdirs $build_configdirs $target_configdirs ; do
2546 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2547 if eval test x\${enable_${dirname}} "=" xno ; then
2548 noconfigdirs="$noconfigdirs $dir"
2552 # Check for Boehm's garbage collector
2553 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2554 if test "${enable_objc_gc+set}" = set; then
2555 enableval="$enable_objc_gc"
2556 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2557 *,objc,*:*:yes:*target-boehm-gc*)
2558 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2564 # Make sure we only build Boehm's garbage collector if required.
2565 case ,${enable_languages},:${enable_objc_gc} in
2567 # Keep target-boehm-gc if requested for Objective-C.
2570 # Otherwise remove target-boehm-gc depending on target-libjava.
2571 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2572 noconfigdirs="$noconfigdirs target-boehm-gc"
2577 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2578 # $build_configdirs and $target_configdirs.
2579 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2582 for dir in . $skipdirs $noconfigdirs ; do
2583 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2584 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2585 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2586 if test -r $srcdir/$dirname/configure ; then
2587 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2590 notsupp="$notsupp $dir"
2594 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2595 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2596 if test -r $srcdir/$dirname/configure ; then
2597 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2600 notsupp="$notsupp $dir"
2604 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2605 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2606 if test -r $srcdir/$dirname/configure ; then
2607 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2610 notsupp="$notsupp $dir"
2616 # Sometimes the tools are distributed with libiberty but with no other
2617 # libraries. In that case, we don't want to build target-libiberty.
2618 if test -n "${target_configdirs}" ; then
2620 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2621 if test "$i" != "libiberty" ; then
2622 if test -r $srcdir/$i/configure ; then
2628 if test -z "${others}" ; then
2633 # Quietly strip out all directories which aren't configurable in this tree.
2634 # This relies on all configurable subdirectories being autoconfiscated, which
2636 build_configdirs_all="$build_configdirs"
2638 for i in ${build_configdirs_all} ; do
2639 j=`echo $i | sed -e s/build-//g`
2640 if test -f ${srcdir}/$j/configure ; then
2641 build_configdirs="${build_configdirs} $i"
2645 configdirs_all="$configdirs"
2647 for i in ${configdirs_all} ; do
2648 if test -f ${srcdir}/$i/configure ; then
2649 configdirs="${configdirs} $i"
2653 target_configdirs_all="$target_configdirs"
2655 for i in ${target_configdirs_all} ; do
2656 j=`echo $i | sed -e s/target-//g`
2657 if test -f ${srcdir}/$j/configure ; then
2658 target_configdirs="${target_configdirs} $i"
2662 # Produce a warning message for the subdirs we can't configure.
2663 # This isn't especially interesting in the Cygnus tree, but in the individual
2664 # FSF releases, it's important to let people know when their machine isn't
2665 # supported by the one or two programs in a package.
2667 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2668 # If $appdirs is non-empty, at least one of those directories must still
2669 # be configured, or we error out. (E.g., if the gas release supports a
2670 # specified target in some subdirs but not the gas subdir, we shouldn't
2671 # pretend that all is well.)
2672 if test -n "$appdirs" ; then
2673 for dir in $appdirs ; do
2674 if test -r $dir/Makefile.in ; then
2675 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2679 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2685 if test -n "$appdirs" ; then
2686 echo "*** This configuration is not supported by this package." 1>&2
2690 # Okay, some application will build, or we don't care to check. Still
2691 # notify of subdirs not getting built.
2692 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2693 echo " ${notsupp}" 1>&2
2694 echo " (Any other directories should still work fine.)" 1>&2
2704 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2705 if test "${with_build_sysroot+set}" = set; then
2706 withval="$with_build_sysroot"
2707 if test x"$withval" != x ; then
2708 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2711 SYSROOT_CFLAGS_FOR_TARGET=
2716 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2717 # the named directory are copied to $(tooldir)/sys-include.
2718 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2719 if test x${is_cross_compiler} = xno ; then
2720 echo 1>&2 '***' --with-headers is only supported when cross compiling
2723 if test x"${with_headers}" != xyes ; then
2724 case "${exec_prefixoption}" in
2726 *) x=${exec_prefix} ;;
2728 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2732 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2733 # the name directories are copied to $(tooldir)/lib. Multiple directories
2735 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2736 if test x${is_cross_compiler} = xno ; then
2737 echo 1>&2 '***' --with-libs is only supported when cross compiling
2740 if test x"${with_libs}" != xyes ; then
2741 # Copy the libraries in reverse order, so that files in the first named
2742 # library override files in subsequent libraries.
2743 case "${exec_prefixoption}" in
2745 *) x=${exec_prefix} ;;
2747 for l in ${with_libs}; do
2748 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2753 # Set with_gnu_as and with_gnu_ld as appropriate.
2755 # This is done by determining whether or not the appropriate directory
2756 # is available, and by checking whether or not specific configurations
2757 # have requested that this magic not happen.
2759 # The command line options always override the explicit settings in
2760 # configure.in, and the settings in configure.in override this magic.
2762 # If the default for a toolchain is to use GNU as and ld, and you don't
2763 # want to do that, then you should use the --without-gnu-as and
2764 # --without-gnu-ld options for the configure script.
2766 if test x${use_gnu_as} = x &&
2767 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2769 extra_host_args="$extra_host_args --with-gnu-as"
2772 if test x${use_gnu_ld} = x &&
2773 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2775 extra_host_args="$extra_host_args --with-gnu-ld"
2778 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2779 # can detect this case.
2781 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2783 extra_host_args="$extra_host_args --with-newlib"
2786 # Handle ${copy_dirs}
2787 set fnord ${copy_dirs}
2789 while test $# != 0 ; do
2790 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2793 echo Copying $1 to $2
2795 # Use the install script to create the directory and all required
2796 # parent directories.
2797 if test -d $2 ; then
2801 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2804 # Copy the directory, assuming we have tar.
2805 # FIXME: Should we use B in the second tar? Not all systems support it.
2806 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2808 # It is the responsibility of the user to correctly adjust all
2809 # symlinks. If somebody can figure out how to handle them correctly
2810 # here, feel free to add the code.
2817 # Determine a target-dependent exec_prefix that the installed
2818 # gcc will search in. Keep this list sorted by triplet, with
2819 # the *-*-osname triplets last.
2823 md_exec_prefix=/gnu/lib/gcc-lib
2825 i3456786-pc-msdosdjgpp*)
2826 md_exec_prefix=/dev/env/DJDIR/bin
2828 i3456786-*-sco3.2v5*)
2829 if test $with_gnu_as = yes; then
2830 md_exec_prefix=/usr/gnu/bin
2832 md_exec_prefix=/usr/ccs/bin/elf
2837 powerpc-*-chorusos* | \
2838 powerpc*-*-eabi* | \
2839 powerpc*-*-sysv* | \
2840 powerpc*-*-kaos* | \
2842 md_exec_prefix=/usr/ccs/bin
2847 md_exec_prefix=/usr/ccs/bin
2862 md_exec_prefix=/usr/ccs/bin
2866 extra_arflags_for_target=
2867 extra_nmflags_for_target=
2868 extra_ranlibflags_for_target=
2869 target_makefile_frag=/dev/null
2872 target_makefile_frag="config/mt-netware"
2874 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2875 target_makefile_frag="config/mt-gnu"
2877 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2878 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2879 # commands to handle both 32-bit and 64-bit objects. These flags are
2880 # harmless if we're using GNU nm or ar.
2881 extra_arflags_for_target=" -X32_64"
2882 extra_nmflags_for_target=" -B -X32_64"
2885 # ranlib from Darwin requires the -c flag to look at common symbols.
2886 extra_ranlibflags_for_target=" -c"
2888 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2889 target_makefile_frag="config/mt-wince"
2893 alphaieee_frag=/dev/null
2896 # This just makes sure to use the -mieee option to build target libs.
2897 # This should probably be set individually by each library.
2898 alphaieee_frag="config/mt-alphaieee"
2902 # If --enable-target-optspace always use -Os instead of -O2 to build
2903 # the target libraries, similarly if it is not specified, use -Os
2904 # on selected platforms.
2905 ospace_frag=/dev/null
2906 case "${enable_target_optspace}:${target}" in
2908 ospace_frag="config/mt-ospace"
2911 ospace_frag="config/mt-d30v"
2913 :m32r-* | :d10v-* | :fr30-*)
2914 ospace_frag="config/mt-ospace"
2919 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2923 # Default to using --with-stabs for certain targets.
2924 if test x${with_stabs} = x ; then
2928 mips*-*-* | alpha*-*-osf*)
2930 extra_host_args="${extra_host_args} --with-stabs"
2935 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2936 # them automatically.
2939 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2943 # Some systems (e.g., one of the i386-aix systems the gas testers are
2944 # using) don't handle "\$" correctly, so don't use it here.
2945 tooldir='${exec_prefix}'/${target_alias}
2946 build_tooldir=${tooldir}
2948 # Create a .gdbinit file which runs the one in srcdir
2949 # and tells GDB to look there for source files.
2951 if test -r ${srcdir}/.gdbinit ; then
2954 *) cat > ./.gdbinit <<EOF
2958 source ${srcdir}/.gdbinit
2964 # Make sure that the compiler is able to generate an executable. If it
2965 # can't, we are probably in trouble. We don't care whether we can run the
2966 # executable--we might be using a cross compiler--we only care whether it
2967 # can be created. At this point the main configure script has set CC.
2969 echo "int main () { return 0; }" > conftest.c
2970 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2971 if test $? = 0 ; then
2972 if test -s conftest || test -s conftest.exe ; then
2978 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2979 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2986 # The Solaris /usr/ucb/cc compiler does not appear to work.
2988 sparc-sun-solaris2*)
2989 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2990 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2992 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2993 if test -d /opt/cygnus/bin ; then
2994 if test "$could_use" = "" ; then
2995 could_use="/opt/cygnus/bin"
2997 could_use="$could_use or /opt/cygnus/bin"
3000 if test "$could_use" = "" ; then
3001 echo "Warning: compilation may fail because you're using"
3002 echo "/usr/ucb/cc. You should change your PATH or CC "
3003 echo "variable and rerun configure."
3005 echo "Warning: compilation may fail because you're using"
3006 echo "/usr/ucb/cc, when you should use the C compiler from"
3007 echo "$could_use. You should change your"
3008 echo "PATH or CC variable and rerun configure."
3015 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3016 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3017 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3020 # Record target_configdirs and the configure arguments for target and
3021 # build configuration in Makefile.
3022 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3023 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3025 # Determine whether gdb needs tk/tcl or not.
3026 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3027 # and in that case we want gdb to be built without tk. Ugh!
3028 # In fact I believe gdb is the *only* package directly dependent on tk,
3029 # so we should be able to put the 'maybe's in unconditionally and
3030 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3031 # 100% sure that that's safe though.
3033 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3034 case "$enable_gdbtk" in
3038 GDB_TK="${gdb_tk}" ;;
3040 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3041 # distro. Eventually someone will fix this and move Insight, nee
3042 # gdbtk to a separate directory.
3043 if test -d ${srcdir}/gdb/gdbtk ; then
3050 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3051 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3053 # Strip out unwanted targets.
3055 # While at that, we remove Makefiles if we were started for recursive
3056 # configuration, so that the top-level Makefile reconfigures them,
3057 # like we used to do when configure itself was recursive.
3059 # Loop over modules. $extrasub must be used with care, limiting as
3060 # much as possible the usage of range addresses. That's because autoconf
3061 # splits the sed script to overcome limits in the number of commands,
3062 # and relying on carefully-timed sed passes may turn out to be very hard
3063 # to maintain later. In this particular case, you just have to be careful
3064 # not to nest @if/@endif pairs, because configure will not warn you at all.
3066 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3067 if test "${enable_bootstrap+set}" = set; then
3068 enableval="$enable_bootstrap"
3071 enable_bootstrap=default
3075 # Issue errors and warnings for invalid/strange bootstrap combinations.
3076 case "$configdirs" in
3077 *gcc*) have_compiler=yes ;;
3078 *) have_compiler=no ;;
3081 case "$have_compiler:$host:$target:$enable_bootstrap" in
3084 # Default behavior. Enable bootstrap if we have a compiler
3085 # and we are in a native configuration.
3086 yes:$build:$build:default)
3087 enable_bootstrap=yes ;;
3090 enable_bootstrap=no ;;
3092 # We have a compiler and we are in a native configuration, bootstrap is ok
3093 yes:$build:$build:yes)
3096 # Other configurations, but we have a compiler. Assume the user knows
3099 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3102 # No compiler: if they passed --enable-bootstrap explicitly, fail
3104 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3106 # Fail if wrong command line
3108 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3112 # Adjust the toplevel makefile according to whether bootstrap was selected.
3113 case "$enable_bootstrap" in
3115 bootstrap_suffix=bootstrap ;;
3117 bootstrap_suffix=no-bootstrap ;;
3120 for module in ${build_configdirs} ; do
3121 if test -z "${no_recursion}" \
3122 && test -f ${build_subdir}/${module}/Makefile; then
3123 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3124 rm -f ${build_subdir}/${module}/Makefile
3127 /^@if build-$module\$/d
3128 /^@endif build-$module\$/d
3129 /^@if build-$module-$bootstrap_suffix\$/d
3130 /^@endif build-$module-$bootstrap_suffix\$/d"
3132 for module in ${configdirs} ; do
3133 if test -z "${no_recursion}"; then
3134 for file in stage*-${module}/Makefile ${module}/Makefile; do
3135 if test -f ${file}; then
3136 echo 1>&2 "*** removing ${file} to force reconfigure"
3143 /^@endif $module\$/d
3144 /^@if $module-$bootstrap_suffix\$/d
3145 /^@endif $module-$bootstrap_suffix\$/d"
3147 for module in ${target_configdirs} ; do
3148 if test -z "${no_recursion}" \
3149 && test -f ${target_subdir}/${module}/Makefile; then
3150 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3151 rm -f ${target_subdir}/${module}/Makefile
3154 /^@if target-$module\$/d
3155 /^@endif target-$module\$/d
3156 /^@if target-$module-$bootstrap_suffix\$/d
3157 /^@endif target-$module-$bootstrap_suffix\$/d"
3161 /^@if /,/^@endif /d"
3163 # Create the serialization dependencies. This uses a temporary file.
3165 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3166 if test "${enable_serial_configure+set}" = set; then
3167 enableval="$enable_serial_configure"
3172 case ${enable_serial_configure} in
3174 enable_serial_build_configure=yes
3175 enable_serial_host_configure=yes
3176 enable_serial_target_configure=yes
3180 # These force 'configure's to be done one at a time, to avoid problems
3181 # with contention over a shared config.cache.
3183 echo '# serdep.tmp' > serdep.tmp
3185 test "x${enable_serial_build_configure}" = xyes &&
3186 for item in ${build_configdirs} ; do
3189 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3194 test "x${enable_serial_host_configure}" = xyes &&
3195 for item in ${configdirs} ; do
3198 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3203 test "x${enable_serial_target_configure}" = xyes &&
3204 for item in ${target_configdirs} ; do
3207 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3211 serialization_dependencies=serdep.tmp
3214 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3215 # target and nonopt. These are the ones we might not want to pass
3216 # down to subconfigures. Also strip program-prefix, program-suffix,
3217 # and program-transform-name, so that we can pass down a consistent
3218 # program-transform-name. If autoconf has put single quotes around
3219 # any of these arguments (because they contain shell metacharacters)
3220 # then this will fail; in practice this only happens for
3221 # --program-transform-name, so be sure to override --program-transform-name
3222 # at the end of the argument list.
3223 # These will be expanded by make, so quote '$'.
3224 cat <<\EOF_SED > conftestsed
3226 s/ --c[a-z-]*[= ][^ ]*//g
3227 s/ --sr[a-z-]*[= ][^ ]*//g
3228 s/ --ho[a-z-]*[= ][^ ]*//g
3229 s/ --bu[a-z-]*[= ][^ ]*//g
3230 s/ --t[a-z-]*[= ][^ ]*//g
3231 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3232 s/ -cache-file[= ][^ ]*//g
3233 s/ -srcdir[= ][^ ]*//g
3234 s/ -host[= ][^ ]*//g
3235 s/ -build[= ][^ ]*//g
3236 s/ -target[= ][^ ]*//g
3237 s/ -program-prefix[= ][^ ]*//g
3238 s/ -program-suffix[= ][^ ]*//g
3239 s/ -program-transform-name[= ][^ ]*//g
3244 sed -f conftestsed <<EOF_SED > conftestsed.out
3245 ${ac_configure_args}
3247 baseargs=`cat conftestsed.out`
3248 rm -f conftestsed conftestsed.out
3250 # Add in --program-transform-name, after --program-prefix and
3251 # --program-suffix have been applied to it. Autoconf has already
3252 # doubled dollar signs and backslashes in program_transform_name; we want
3253 # the backslashes un-doubled, and then the entire thing wrapped in single
3254 # quotes, because this will be expanded first by make and then by the shell.
3255 # Also, because we want to override the logic in subdir configure scripts to
3256 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3257 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3258 ${program_transform_name}
3260 gcc_transform_name=`cat conftestsed.out`
3261 rm -f conftestsed.out
3262 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3264 # For the build-side libraries, we just need to pretend we're native,
3265 # and not use the same cache file. Multilibs are neither needed nor
3267 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3269 # For host modules, accept cache file option, or specification as blank.
3270 case "${cache_file}" in
3272 cache_file_option="" ;;
3273 /* | [A-Za-z]:[\\/]* ) # absolute path
3274 cache_file_option="--cache-file=${cache_file}" ;;
3276 cache_file_option="--cache-file=../${cache_file}" ;;
3279 # Host dirs don't like to share a cache file either, horribly enough.
3280 # This seems to be due to autoconf 2.5x stupidity.
3281 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3283 target_configargs=${baseargs}
3285 # Passing a --with-cross-host argument lets the target libraries know
3286 # whether they are being built with a cross-compiler or being built
3287 # native. However, it would be better to use other mechanisms to make the
3288 # sorts of decisions they want to make on this basis. Please consider
3289 # this option to be deprecated. FIXME.
3290 if test x${is_cross_compiler} = xyes ; then
3291 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3294 # Default to --enable-multilib.
3295 if test x${enable_multilib} = x ; then
3296 target_configargs="--enable-multilib ${target_configargs}"
3299 # Pass --with-newlib if appropriate. Note that target_configdirs has
3300 # changed from the earlier setting of with_newlib.
3301 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3302 target_configargs="--with-newlib ${target_configargs}"
3305 # Different target subdirs use different values of certain variables
3306 # (notably CXX). Worse, multilibs use *lots* of different values.
3307 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3308 # it doesn't automatically accept command-line overrides of them.
3309 # This means it's not safe for target subdirs to share a cache file,
3310 # which is disgusting, but there you have it. Hopefully this can be
3311 # fixed in future. It's still worthwhile to use a cache file for each
3312 # directory. I think.
3314 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3315 # We need to pass --target, as newer autoconf's requires consistency
3316 # for target_alias and gcc doesn't manage it consistently.
3317 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3320 case " $target_configdirs " in
3322 case " $target_configargs " in
3323 *" --with-newlib "*)
3326 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
3329 # If we're not building GCC, don't discard standard headers.
3330 if test -d ${srcdir}/gcc; then
3331 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3333 if test "${build}" != "${host}"; then
3334 # On Canadian crosses, CC_FOR_TARGET will have already been set
3335 # by `configure', so we won't have an opportunity to add -Bgcc/
3336 # to it. This is right: we don't want to search that directory
3337 # for binaries, but we want the header files in there, so add
3339 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3341 # Someone might think of using the pre-installed headers on
3342 # Canadian crosses, in case the installed compiler is not fully
3343 # compatible with the compiler being built. In this case, it
3344 # would be better to flag an error than risking having
3345 # incompatible object files being constructed. We can't
3346 # guarantee that an error will be flagged, but let's hope the
3347 # compiler will do it, when presented with incompatible header
3352 case "${target}-${is_cross_compiler}" in
3353 i[3456789]86-*-linux*-no)
3354 # Here host == target, so we don't need to build gcc,
3355 # so we don't want to discard standard headers.
3356 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3359 # If we're building newlib, use its generic headers last, but search
3360 # for any libc-related directories first (so make it the last -B
3362 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3370 # Allow the user to override the flags for
3371 # our build compiler if desired.
3372 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3374 # On Canadian crosses, we'll be searching the right directories for
3375 # the previously-installed cross compiler, so don't bother to add
3376 # flags for directories within the install tree of the compiler
3377 # being built; programs in there won't even run.
3378 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3379 # Search for pre-installed headers if nothing else fits.
3380 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3383 if test "x${use_gnu_ld}" = x &&
3384 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3385 # Arrange for us to find uninstalled linker scripts.
3386 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3389 # Search for other target-specific linker scripts and such.
3392 if test -d ${srcdir}/libgloss/m32c; then
3393 # This is for crt0.o
3394 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3395 # This is for r8c.ld
3396 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3397 # This is for libnosys.a
3398 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3403 # Makefile fragments.
3404 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3406 eval fragval=\$$frag
3407 if test $fragval != /dev/null; then
3408 eval $frag=${srcdir}/$fragval
3416 # Miscellanea: directories, flags, etc.
3424 # Build module lists & subconfigure args.
3428 # Host module lists & subconfigure args.
3432 # Target module lists & subconfigure args.
3440 # Generate default definitions for YACC, M4, LEX and other programs that run
3441 # on the build machine. These are used if the Makefile can't locate these
3442 # programs in objdir.
3443 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3445 for ac_prog in 'bison -y' byacc yacc
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3450 echo "configure:3451: checking for $ac_word" >&5
3451 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 if test -n "$YACC"; then
3455 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3459 for ac_dir in $ac_dummy; do
3460 test -z "$ac_dir" && ac_dir=.
3461 if test -f $ac_dir/$ac_word; then
3462 ac_cv_prog_YACC="$ac_prog"
3469 YACC="$ac_cv_prog_YACC"
3470 if test -n "$YACC"; then
3471 echo "$ac_t""$YACC" 1>&6
3473 echo "$ac_t""no" 1>&6
3476 test -n "$YACC" && break
3478 test -n "$YACC" || YACC="$MISSING bison -y"
3480 case " $build_configdirs " in
3481 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3482 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3485 for ac_prog in bison
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy $ac_prog; ac_word=$2
3489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3490 echo "configure:3491: checking for $ac_word" >&5
3491 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 if test -n "$BISON"; then
3495 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3499 for ac_dir in $ac_dummy; do
3500 test -z "$ac_dir" && ac_dir=.
3501 if test -f $ac_dir/$ac_word; then
3502 ac_cv_prog_BISON="$ac_prog"
3509 BISON="$ac_cv_prog_BISON"
3510 if test -n "$BISON"; then
3511 echo "$ac_t""$BISON" 1>&6
3513 echo "$ac_t""no" 1>&6
3516 test -n "$BISON" && break
3518 test -n "$BISON" || BISON="$MISSING bison"
3520 case " $build_configdirs " in
3521 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3524 for ac_prog in gm4 gnum4 m4
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3529 echo "configure:3530: checking for $ac_word" >&5
3530 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 if test -n "$M4"; then
3534 ac_cv_prog_M4="$M4" # Let the user override the test.
3536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3538 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 if test -f $ac_dir/$ac_word; then
3541 ac_cv_prog_M4="$ac_prog"
3549 if test -n "$M4"; then
3550 echo "$ac_t""$M4" 1>&6
3552 echo "$ac_t""no" 1>&6
3555 test -n "$M4" && break
3557 test -n "$M4" || M4="$MISSING m4"
3559 case " $build_configdirs " in
3560 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3563 for ac_prog in flex lex
3565 # Extract the first word of "$ac_prog", so it can be a program name with args.
3566 set dummy $ac_prog; ac_word=$2
3567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3568 echo "configure:3569: checking for $ac_word" >&5
3569 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 if test -n "$LEX"; then
3573 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3577 for ac_dir in $ac_dummy; do
3578 test -z "$ac_dir" && ac_dir=.
3579 if test -f $ac_dir/$ac_word; then
3580 ac_cv_prog_LEX="$ac_prog"
3587 LEX="$ac_cv_prog_LEX"
3588 if test -n "$LEX"; then
3589 echo "$ac_t""$LEX" 1>&6
3591 echo "$ac_t""no" 1>&6
3594 test -n "$LEX" && break
3596 test -n "$LEX" || LEX="$MISSING flex"
3598 case " $build_configdirs " in
3599 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3600 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3608 echo "configure:3609: checking for $ac_word" >&5
3609 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 if test -n "$FLEX"; then
3613 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3617 for ac_dir in $ac_dummy; do
3618 test -z "$ac_dir" && ac_dir=.
3619 if test -f $ac_dir/$ac_word; then
3620 ac_cv_prog_FLEX="$ac_prog"
3627 FLEX="$ac_cv_prog_FLEX"
3628 if test -n "$FLEX"; then
3629 echo "$ac_t""$FLEX" 1>&6
3631 echo "$ac_t""no" 1>&6
3634 test -n "$FLEX" && break
3636 test -n "$FLEX" || FLEX="$MISSING flex"
3638 case " $build_configdirs " in
3639 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3642 for ac_prog in makeinfo
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3647 echo "configure:3648: checking for $ac_word" >&5
3648 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 if test -n "$MAKEINFO"; then
3652 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3656 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/$ac_word; then
3659 ac_cv_prog_MAKEINFO="$ac_prog"
3666 MAKEINFO="$ac_cv_prog_MAKEINFO"
3667 if test -n "$MAKEINFO"; then
3668 echo "$ac_t""$MAKEINFO" 1>&6
3670 echo "$ac_t""no" 1>&6
3673 test -n "$MAKEINFO" && break
3675 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3677 case " $build_configdirs " in
3678 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3681 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3682 # higher, else we use the "missing" dummy.
3683 if ${MAKEINFO} --version \
3684 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3687 MAKEINFO="$MISSING makeinfo"
3693 # FIXME: expect and dejagnu may become build tools?
3695 for ac_prog in expect
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy $ac_prog; ac_word=$2
3699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3700 echo "configure:3701: checking for $ac_word" >&5
3701 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 if test -n "$EXPECT"; then
3705 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3709 for ac_dir in $ac_dummy; do
3710 test -z "$ac_dir" && ac_dir=.
3711 if test -f $ac_dir/$ac_word; then
3712 ac_cv_prog_EXPECT="$ac_prog"
3719 EXPECT="$ac_cv_prog_EXPECT"
3720 if test -n "$EXPECT"; then
3721 echo "$ac_t""$EXPECT" 1>&6
3723 echo "$ac_t""no" 1>&6
3726 test -n "$EXPECT" && break
3728 test -n "$EXPECT" || EXPECT="expect"
3730 case " $configdirs " in
3732 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3736 for ac_prog in runtest
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy $ac_prog; ac_word=$2
3740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3741 echo "configure:3742: checking for $ac_word" >&5
3742 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 if test -n "$RUNTEST"; then
3746 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3750 for ac_dir in $ac_dummy; do
3751 test -z "$ac_dir" && ac_dir=.
3752 if test -f $ac_dir/$ac_word; then
3753 ac_cv_prog_RUNTEST="$ac_prog"
3760 RUNTEST="$ac_cv_prog_RUNTEST"
3761 if test -n "$RUNTEST"; then
3762 echo "$ac_t""$RUNTEST" 1>&6
3764 echo "$ac_t""no" 1>&6