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 --without-libbanshee Don't build with libbanshee"
17 --enable-libada Builds libada directory"
19 --with-gmp-dir=PATH Specify source directory for GMP library"
21 --with-gmp=PATH Specify directory for installed GMP library"
23 --enable-serial-[{host,target,build}-]configure
24 Force sequential configuration of
25 sub-packages for the host, target or build
26 machine, or all sub-packages"
28 --enable-maintainer-mode enable make rules and dependencies not useful
29 (and sometimes confusing) to the casual installer"
31 --enable-werror enable -Werror in bootstrap stage2 and later"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host | --host | --hos | --ho)
209 -host=* | --host=* | --hos=* | --ho=*)
212 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;;
219 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;;
224 -libdir | --libdir | --libdi | --libd)
226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;;
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;;
236 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;;
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;;
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;;
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;;
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;;
290 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \
294 | --program-transfo | --program-transf \
295 | --program-trans | --program-tran \
296 | --progr-tra | --program-tr | --program-t)
297 ac_prev=program_transform_name ;;
298 -program-transform-name=* | --program-transform-name=* \
299 | --program-transform-nam=* | --program-transform-na=* \
300 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;;
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil)
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 sbindir="$ac_optarg" ;;
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \
321 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 sharedstatedir="$ac_optarg" ;;
328 -site | --site | --sit)
330 -site=* | --site=* | --sit=*)
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;;
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;;
345 -target | --target | --targe | --targ | --tar | --ta | --t)
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;;
350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 -version | --version | --versio | --versi | --vers)
354 echo "configure generated by autoconf version 2.13"
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;;
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=move-if-change
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='\c' ac_t=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563 # Do some error checking and defaulting for the host and target type.
565 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
568 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # 2. Host defaults to nonopt.
571 # 3. If nonopt is not specified, then host defaults to the current host,
572 # as determined by config.guess.
573 # 4. Target and build default to nonopt.
574 # 5. If nonopt is not specified, then target and build default to host.
576 # The aliases save the names the user supplied, while $host etc.
577 # will get canonicalized.
578 case $host---$target---$nonopt in
579 NONE---*---* | *---NONE---* | *---*---NONE) ;;
580 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
593 case "$host_alias" in
597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 *) host_alias=$nonopt ;;
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
610 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 echo "configure:612: checking target system type" >&5
614 case "$target_alias" in
617 NONE) target_alias=$host_alias ;;
618 *) target_alias=$nonopt ;;
622 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
629 echo "configure:630: checking build system type" >&5
632 case "$build_alias" in
635 NONE) build_alias=$host_alias ;;
636 *) build_alias=$nonopt ;;
640 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$build" 1>&6
646 test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
649 program_prefix=${target_alias}-
651 if test "$program_transform_name" = s,x,x,; then
652 program_transform_name=
654 # Double any \ or $. echo might interpret backslashes.
655 cat <<\EOF_SED > conftestsed
656 s,\\,\\\\,g; s,\$,$$,g
658 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
661 test "$program_prefix" != NONE &&
662 program_transform_name="s,^,${program_prefix},; $program_transform_name"
663 # Use a double $ so make ignores it.
664 test "$program_suffix" != NONE &&
665 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
667 # sed with no file args requires a program.
668 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
671 # Get 'install' or 'install-sh' and its variants.
672 # Find a good install program. We prefer a C program (faster),
673 # so one script is as good as another. But avoid the broken or
674 # incompatible versions:
675 # SysV /etc/install, /usr/sbin/install
676 # SunOS /usr/etc/install
679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
682 # ./install, which can be erroneously created by make from ./install.sh.
683 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
684 echo "configure:685: checking for a BSD compatible install" >&5
685 if test -z "$INSTALL"; then
686 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
690 for ac_dir in $PATH; do
691 # Account for people who put trailing slashes in PATH elements.
693 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
695 # OSF1 and SCO ODT 3.0 have their own names for install.
696 # Don't use installbsd from OSF since it installs stuff as root
698 for ac_prog in ginstall scoinst install; do
699 if test -f $ac_dir/$ac_prog; then
700 if test $ac_prog = install &&
701 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
702 # AIX install. It has an incompatible calling convention.
705 ac_cv_path_install="$ac_dir/$ac_prog -c"
716 if test "${ac_cv_path_install+set}" = set; then
717 INSTALL="$ac_cv_path_install"
719 # As a last resort, use the slow shell script. We don't cache a
720 # path for INSTALL within a source directory, because that will
721 # break other packages using the cache if that directory is
722 # removed, or if the path is relative.
723 INSTALL="$ac_install_sh"
726 echo "$ac_t""$INSTALL" 1>&6
728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
729 # It thinks the first close brace ends the variable substitution.
730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
737 # Autoconf M4 include file defining utility macros for complex Canadian
746 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
748 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
751 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
752 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
753 # Code is pretty much lifted from autoconf2.53.
758 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
759 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
764 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
765 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
770 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
771 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
772 # For now, using this also overrides header checks to use only the
773 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
774 # bit harder from here).
775 # Eventually autoconf will default to checking headers with the compiler
776 # instead, and we'll have to do this differently.
781 # We require the gnatbind program, and a compiler driver that
782 # understands Ada. We use the user's CC setting, already found.
784 # Sets the shell variable have_gnat to yes or no as appropriate, and
785 # substitutes GNATBIND.
791 ### we might need to use some other shell than /bin/sh for running subshells
792 ### If we are on Windows, search for the shell. This will permit people
793 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
794 ### without also having to set CONFIG_SHELL. This code will work when
795 ### using bash, which sets OSTYPE.
798 if test x${CONFIG_SHELL} = x ; then
799 if test ! -f /bin/sh ; then
800 if test x${SHELL} != x && test -f ${SHELL} ; then
801 CONFIG_SHELL=${SHELL}
804 for prog in sh sh.exe bash bash.exe; do
805 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
807 test -z "$dir" && dir=.
808 if test -f $dir/$prog; then
809 CONFIG_SHELL=$dir/$prog
815 test -n "${CONFIG_SHELL}" && break
823 config_shell=${CONFIG_SHELL-/bin/sh}
826 # if PWD already has a value, it is probably wrong.
827 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
829 # Export original configure arguments for use by sub-configures. These
830 # will be expanded by make, so quote '$'.
832 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
835 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
836 rm -f conftestsed.out
839 moveifchange=${srcdir}/move-if-change
841 # Set srcdir to "." if that's what it is.
842 # This is important for multilib support.
844 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
845 if test "${pwd}" = "${srcpwd}" ; then
852 # Define the trigger file to make sure configure will re-run whenever
853 # the gcc version number changes.
854 if test "${with_gcc_version_trigger+set}" = set ; then
855 gcc_version_trigger="$with_gcc_version_trigger"
856 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
858 # If gcc's sources are available, define the trigger file.
859 if test -f ${topsrcdir}/gcc/version.c ; then
860 gcc_version_trigger=${topsrcdir}/gcc/version.c
861 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
862 case "$ac_configure_args" in
863 *--with-gcc-version-trigger=$gcc_version_trigger* )
866 # Add to all subconfigure arguments: build, host, and target.
867 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
873 ### To add a new directory to the tree, first choose whether it is a target
874 ### or a host dependent tool. Then put it into the appropriate list
875 ### (library or tools, host or target), doing a dependency sort.
877 # Subdirs will be configured in the order listed in build_configdirs,
878 # configdirs, or target_configdirs; see the serialization section below.
880 # Dependency sorting is only needed when *configuration* must be done in
881 # a particular order. In all cases a dependency should be specified in
882 # the Makefile, whether or not it's implicitly specified here.
884 # Double entries in build_configdirs, configdirs, or target_configdirs may
885 # cause circular dependencies and break everything horribly.
887 # these libraries are used by various programs built for the host environment
889 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee"
891 # these tools are built for the host environment
892 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
893 # know that we are building the simulator.
894 # binutils, gas and ld appear in that order because it makes sense to run
895 # "make check" in that particular order.
896 host_tools="texinfo byacc flex bison binutils gas ld 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"
898 # libgcj represents the runtime libraries only used by gcj.
899 libgcj="target-libffi \
905 # these libraries are built for the target environment, and are built after
906 # the host libraries and the host tools (which may be a cross compiler)
908 target_libraries="target-libiberty \
911 target-libstdc++-v3 \
918 # these tools are built using the target libraries, and are intended to
919 # run only in the target environment
921 # note: any program that *uses* libraries that are in the "target_libraries"
922 # list belongs in this list. those programs are also very likely
923 # candidates for the "native_only" list which follows
925 target_tools="target-examples target-groff target-gperf target-rda"
927 ################################################################################
929 ## All tools belong in one of the four categories, and are assigned above
930 ## We assign ${configdirs} this way to remove all embedded newlines. This
931 ## is important because configure will choke if they ever get through.
932 ## ${configdirs} is directories we build using the host tools.
933 ## ${target_configdirs} is directories we build using the target tools.
935 configdirs=`echo ${host_libs} ${host_tools}`
936 target_configdirs=`echo ${target_libraries} ${target_tools}`
938 # Only make build modules if build != host.
939 # This should be done more generally, but at the moment it doesn't matter.
940 if test ${host_alias} != ${build_alias} ; then
941 # This is the only build module.
942 build_modules=libiberty
948 ################################################################################
950 srcname="gnu development package"
952 # This gets set non-empty for some net releases of packages.
955 # Define is_cross_compiler to save on calls to 'test'.
957 if test x"${host}" = x"${target}" ; then
960 is_cross_compiler=yes
963 # Find the build and target subdir names.
964 case ${build_alias} in
965 "") build_noncanonical=${build} ;;
966 *) build_noncanonical=${build_alias} ;;
969 case ${host_alias} in
970 "") host_noncanonical=${build_noncanonical} ;;
971 *) host_noncanonical=${host_alias} ;;
974 case ${target_alias} in
975 "") target_noncanonical=${host_noncanonical} ;;
976 *) target_noncanonical=${target_alias} ;;
979 # Prefix 'build-' so this never conflicts with target_subdir.
980 build_subdir="build-${build_noncanonical}"
981 # Not really a subdirectory, but here for completeness.
984 target_subdir=${target_noncanonical}
987 # Skipdirs are removed silently.
989 # Noconfigdirs are removed loudly.
993 # Make sure we don't let GNU ld be added if we didn't want it.
994 if test x$with_gnu_ld = xno ; then
996 noconfigdirs="$noconfigdirs ld"
1000 # Make sure we don't let GNU as be added if we didn't want it.
1001 if test x$with_gnu_as = xno ; then
1003 noconfigdirs="$noconfigdirs gas"
1006 # some tools are so dependent upon X11 that if we're not building with X,
1007 # it's not even worth trying to configure, much less build, that tool.
1010 yes | "") ;; # the default value for this tree is that X11 is available
1012 skipdirs="${skipdirs} tk tix itcl libgui"
1013 # We won't be able to build gdbtk without X.
1016 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1019 # Some tools are only suitable for building in a "native" situation.
1020 # Remove these if host!=target.
1021 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1023 # Similarly, some are only suitable for cross toolchains.
1024 # Remove these if host=target.
1025 cross_only="target-libgloss target-newlib target-opcodes"
1027 case $is_cross_compiler in
1028 no) skipdirs="${skipdirs} ${cross_only}" ;;
1029 yes) skipdirs="${skipdirs} ${native_only}" ;;
1032 # If both --with-headers and --with-libs are specified, default to
1034 if test x"${with_headers}" != x && test x"${with_headers} != xno \
1035 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
1036 if test x"${with_newlib}" = x ; then
1041 # Recognize --with-newlib/--without-newlib.
1042 case ${with_newlib} in
1043 no) skipdirs="${skipdirs} target-newlib" ;;
1044 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1047 # Configure extra directories which are host specific
1051 configdirs="$configdirs libtermcap" ;;
1054 # Remove more programs from consideration, based on the host or
1055 # target this usually means that a port of the program doesn't
1060 noconfigdirs="$noconfigdirs byacc"
1062 i[3456789]86-*-vsta)
1063 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1065 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1066 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1068 i[3456789]86-*-mingw32*)
1069 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1070 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1072 i[3456789]86-*-beos*)
1073 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1076 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1079 noconfigdirs="$noconfigdirs rcs"
1082 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1085 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1088 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1092 # Check whether --with-libbanshee or --without-libbanshee was given.
1093 if test "${with_libbanshee+set}" = set; then
1094 withval="$with_libbanshee"
1098 case ${with_libbanshee} in
1100 noconfigdirs="$noconfigdirs libbanshee" ;;
1105 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no" (empty defaults to "yes"." 1>&2; exit 1; }
1108 # Check whether --enable-libada or --disable-libada was given.
1109 if test "${enable_libada+set}" = set; then
1110 enableval="$enable_libada"
1111 ENABLE_LIBADA=$enableval
1116 if test "${ENABLE_LIBADA}" != "yes" ; then
1117 noconfigdirs="$noconfigdirs target-libada"
1120 # Save it here so that, even in case of --enable-libgcj, if the Java
1121 # front-end isn't enabled, we still get libgcj disabled.
1122 libgcj_saved=$libgcj
1123 case $enable_libgcj in
1125 # If we reset it here, it won't get added to noconfigdirs in the
1126 # target-specific build rules, so it will be forcibly enabled
1127 # (unless the Java language itself isn't enabled).
1131 # Make sure we get it printed in the list of not supported target libs.
1132 noconfigdirs="$noconfigdirs ${libgcj}"
1137 # Allow --disable-libmudflap to exclude target-libmudflap
1138 case $enable_libmudflap in
1140 # By default it's enabled
1143 noconfigdirs="$noconfigdirs target-libmudflap"
1150 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1153 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1154 noconfigdirs="$noconfigdirs target-libobjc"
1157 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1158 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1160 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1161 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1163 *-*-freebsd* | *-*-kfreebsd*-gnu)
1164 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1165 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1166 && test -f /usr/local/include/gmp.h; then
1170 # Skip some stuff that's unsupported on some FreeBSD configurations.
1175 noconfigdirs="$noconfigdirs ${libgcj}"
1180 # Remove unsupported stuff on all kaOS configurations.
1181 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1182 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1183 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1184 noconfigdirs="$noconfigdirs target-libgloss"
1187 # Skip some stuff on all NetBSD configurations.
1188 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1190 # Skip some stuff that's unsupported on some NetBSD configurations.
1192 i*86-*-netbsdelf*) ;;
1193 arm*-*-netbsdelf*) ;;
1195 noconfigdirs="$noconfigdirs ${libgcj}"
1200 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1203 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1206 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1209 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1212 # ld works, but does not support shared libraries.
1213 # newlib is not 64 bit ready. I'm not sure about fileutils.
1214 # gas doesn't generate exception information.
1215 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1218 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1221 # newlib is not 64 bit ready
1222 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1225 # newlib is not 64 bit ready
1226 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1229 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1232 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1234 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1235 noconfigdirs="$noconfigdirs ${libgcj}"
1236 noconfigdirs="$noconfigdirs target-examples"
1237 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1238 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1239 noconfigdirs="$noconfigdirs expect dejagnu"
1240 # the C++ libraries don't build on top of CE's C libraries
1241 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1242 noconfigdirs="$noconfigdirs target-newlib"
1244 *-*-cygwin*) ;; # keep gdb and readline
1245 *) noconfigdirs="$noconfigdirs gdb readline"
1250 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1252 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1253 noconfigdirs="$noconfigdirs ${libgcj}"
1255 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1256 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1259 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1262 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1265 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1268 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1271 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1277 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1280 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1282 c4x-*-* | tic4x-*-*)
1283 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1285 c54x*-*-* | tic54x-*-*)
1286 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1289 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1292 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1295 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1298 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1301 noconfigdirs="$noconfigdirs ${libgcj}"
1304 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1307 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1309 hppa*64*-*-linux* | parisc*64*-*-linux*)
1310 # In this case, it's because the hppa64-linux target is for
1311 # the kernel only at this point and has no libc, and thus no
1312 # headers, crt*.o, etc., all of which are needed by these.
1313 noconfigdirs="$noconfigdirs target-zlib"
1316 parisc*-*-linux* | hppa*-*-linux* | \
1318 hppa*-*-openbsd* | \
1320 noconfigdirs="$noconfigdirs ${libgcj}"
1321 # Do configure ld/binutils/gas for this case.
1324 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1325 # build on HP-UX 10.20.
1326 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1329 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1332 # No gdb support yet.
1333 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1336 # No gdb or ld support yet.
1337 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1339 i[3456789]86-*-coff | i[3456789]86-*-elf)
1340 noconfigdirs="$noconfigdirs ${libgcj}"
1342 i[3456789]86-*-linux*)
1343 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1344 # not build java stuff by default.
1347 noconfigdirs="$noconfigdirs ${libgcj}";;
1350 # This section makes it possible to build newlib natively on linux.
1351 # If we are using a cross compiler then don't configure newlib.
1352 if test x${is_cross_compiler} != xno ; then
1353 noconfigdirs="$noconfigdirs target-newlib"
1355 noconfigdirs="$noconfigdirs target-libgloss"
1356 # If we are not using a cross compiler, do configure newlib.
1357 # Note however, that newlib will only be configured in this situation
1358 # if the --with-newlib option has been given, because otherwise
1359 # 'target-newlib' will appear in skipdirs.
1361 i[3456789]86-*-mingw32*)
1362 target_configdirs="$target_configdirs target-mingw"
1363 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1365 # Can't build gdb for mingw32 if not native.
1367 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1368 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1373 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1374 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1375 # always build newlib.
1376 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1378 # Can't build gdb for Cygwin if not native.
1380 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1381 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1386 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1388 i[3456789]86-*-sco3.2v5*)
1389 # The linker does not yet know about weak symbols in COFF,
1390 # and is not configured to handle mixed ELF and COFF.
1391 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1393 i[3456789]86-*-sco*)
1394 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1396 i[3456789]86-*-solaris2*)
1397 noconfigdirs="$noconfigdirs target-libgloss"
1399 i[3456789]86-*-sysv4*)
1400 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1402 i[3456789]86-*-beos*)
1403 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1406 noconfigdirs="$noconfigdirs ${libgcj}"
1408 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1409 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1412 noconfigdirs="$noconfigdirs ${libgcj}"
1415 noconfigdirs="$noconfigdirs ${libgcj}"
1418 # The EPOC C++ environment does not support exceptions or rtti,
1419 # and so building libstdc++-v3 tends not to always work.
1420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1423 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1426 noconfigdirs="$noconfigdirs ${libgcj}"
1429 noconfigdirs="$noconfigdirs ${libgcj}"
1432 # copied from rs6000-*-* entry
1433 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1435 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1436 target_configdirs="$target_configdirs target-winsup"
1437 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1438 # always build newlib.
1439 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1441 # This is temporary until we can link against shared libraries
1442 powerpcle-*-solaris*)
1443 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1446 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1449 noconfigdirs="$noconfigdirs ${libgcj}"
1452 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1455 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1458 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1461 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1464 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1467 # Linking libjava exceeds command-line length limits on at least
1468 # IRIX 6.2, but not on IRIX 6.5.
1469 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1470 # <oldham@codesourcery.com>
1471 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1474 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1477 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1480 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1483 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1486 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1489 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1492 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1496 i[3456789]86-*-vsta) ;; # don't add gprof back in
1497 i[3456789]86-*-go32*) ;; # don't add gprof back in
1498 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1499 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1501 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1504 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1507 noconfigdirs="$noconfigdirs ${libgcj}"
1510 noconfigdirs="$noconfigdirs ${libgcj}"
1513 noconfigdirs="$noconfigdirs ${libgcj}"
1516 noconfigdirs="$noconfigdirs ${libgcj}"
1517 if test x${is_cross_compiler} != xno ; then
1518 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1523 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1526 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1529 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1532 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1535 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1538 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1541 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1544 noconfigdirs="$noconfigdirs ${libgcj}"
1547 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1553 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1556 noconfigdirs="$noconfigdirs ${libgcj}"
1560 # If we aren't building newlib, then don't build libgloss, since libgloss
1561 # depends upon some newlib header files.
1562 case "${noconfigdirs}" in
1563 *target-libgloss*) ;;
1564 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1567 # Work in distributions that contain no compiler tools, like Autoconf.
1569 host_makefile_frag=/dev/null
1570 if test -d ${srcdir}/config ; then
1573 # Avoid "too much defining" errors from HPUX compiler.
1574 tentative_cc="cc -Wp,-H256000"
1575 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1576 # If it's HP/UX ar, this should be harmless.
1580 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1583 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1584 # chokes on bfd, the compiler won't let you assign integers to enums, and
1585 # other problems. Defining CC to gcc is a questionable way to say "don't use
1586 # the apollo compiler" (the preferred version of GCC could be called cc,
1587 # or whatever), but I'm not sure leaving CC as cc is any better...
1588 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1589 # Used to have BISON=yacc.
1593 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1596 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1597 tentative_cc="cc -Xa"
1598 host_makefile_frag="config/mh-cxux"
1600 m88k-motorola-sysv*)
1603 tentative_cc="cc -Wf,-XNg1000"
1604 host_makefile_frag="config/mh-decstation"
1607 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1608 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1609 host_makefile_frag="config/mh-necv4"
1612 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1613 # environment. Also bump switch table size so that cp-parse will
1614 # compile. Bump string length limit so linker builds.
1615 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1618 host_makefile_frag="config/mh-sysv4"
1621 # This is for a MIPS running RISC/os 4.52C.
1623 # This is needed for GDB, but needs to be in the top-level make because
1624 # if a library is compiled with the bsd headers and gets linked with the
1625 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1626 # a different size).
1627 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1628 # known except to select the sysv environment. Could we use /proc instead?
1629 # These "sysv environments" and "bsd environments" often end up being a pain.
1631 # This is not part of CFLAGS because perhaps not all C compilers have this
1633 tentative_cc="cc -systype sysv"
1638 i[3456789]86-*-sysv5*)
1639 host_makefile_frag="config/mh-sysv5"
1641 i[3456789]86-*-dgux*)
1642 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1643 host_makefile_frag="config/mh-dgux386"
1645 i[3456789]86-ncr-sysv4.3*)
1646 # The MetaWare compiler will generate a copyright message unless you
1647 # turn it off by adding the -Hnocopyr flag.
1648 tentative_cc="cc -Hnocopyr"
1650 i[3456789]86-ncr-sysv4*)
1651 # for an NCR 3000 (i486/SVR4) system.
1652 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1653 # This compiler not only emits obnoxious copyright messages every time
1654 # you run it, but it chokes and dies on a whole bunch of GNU source
1655 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1656 tentative_cc="/usr/ccs/ATT/cc"
1657 host_makefile_frag="config/mh-ncr3000"
1659 i[3456789]86-*-sco3.2v5*)
1661 i[3456789]86-*-sco*)
1662 # The native C compiler botches some simple uses of const. Unfortunately,
1663 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1664 tentative_cc="cc -Dconst="
1665 host_makefile_frag="config/mh-sco"
1667 i[3456789]86-*-udk*)
1668 host_makefile_frag="config/mh-sysv5"
1670 i[3456789]86-*-solaris2*)
1671 host_makefile_frag="config/mh-sysv4"
1673 i[3456789]86-*-msdosdjgpp*)
1674 host_makefile_frag="config/mh-djgpp"
1677 host_makefile_frag="config/mh-cygwin"
1680 host_makefile_frag="config/mh-mingw32"
1683 host_makefile_frag="config/mh-interix"
1686 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1690 host_makefile_frag="config/mh-solaris"
1693 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1694 # without overflowing the jump tables (-J says to use a 32 bit table)
1695 tentative_cc="cc -J"
1698 tentative_cc="cc -Wp,-H256000"
1701 tentative_cc="cc -Wp,-H256000"
1704 # /bin/cc is less than useful for our purposes. Always use GCC
1705 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1706 host_makefile_frag="config/mh-lynxrs6k"
1709 # /bin/cc is less than useful for our purposes. Always use GCC
1710 tentative_cc="/bin/gcc"
1713 host_makefile_frag="config/mh-sysv4"
1718 # If we aren't going to be using gcc, see if we can extract a definition
1719 # of CC from the fragment.
1720 # Actually, use the 'pre-extracted' version above.
1721 if test -z "${CC}" && test "${build}" = "${host}" ; then
1722 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1724 for dir in $PATH; do
1725 test -z "$dir" && dir=.
1726 if test -f $dir/gcc; then
1732 if test -z "${found}" && test -n "${tentative_cc}" ; then
1737 if test "${build}" != "${host}" ; then
1738 # If we are doing a Canadian Cross, in which the host and build systems
1739 # are not the same, we set reasonable default values for the tools.
1741 BISON=${BISON-bison}
1742 CC=${CC-${host_alias}-gcc}
1743 CFLAGS=${CFLAGS-"-g -O2"}
1744 CXX=${CXX-${host_alias}-c++}
1745 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1746 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1747 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1748 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1749 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1750 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1751 BUILD_PREFIX=${build_alias}-
1752 BUILD_PREFIX_1=${build_alias}-
1753 MAKEINFO=${MAKEINFO-makeinfo}
1755 if test -z "${YACC}" ; then
1756 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1757 for dir in $PATH; do
1758 test -z "$dir" && dir=.
1759 if test -f $dir/bison; then
1763 if test -f $dir/byacc; then
1767 if test -f $dir/yacc; then
1773 if test -z "${YACC}" ; then
1778 if test -z "${LEX}" ; then
1779 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1780 for dir in $PATH; do
1781 test -z "$dir" && dir=.
1782 if test -f $dir/flex; then
1786 if test -f $dir/lex; then
1796 # Set reasonable default values for some tools even if not Canadian.
1797 # Of course, these are different reasonable default values, originally
1798 # specified directly in the Makefile.
1799 # We don't export, so that autoconf can do its job.
1800 # Note that all these settings are above the fragment inclusion point
1801 # in Makefile.in, so can still be overridden by fragments.
1802 # This is all going to change when we autoconfiscate...
1804 BISON="\$(USUAL_BISON)"
1805 CC_FOR_BUILD="\$(CC)"
1806 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
1808 BUILD_PREFIX_1=loser-
1809 MAKEINFO="\$(USUAL_MAKEINFO)"
1811 YACC="\$(USUAL_YACC)"
1813 # If CC is still not set, try to get gcc.
1815 if test -z "${CC}" ; then
1816 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1817 for dir in $PATH; do
1818 test -z "$dir" && dir=.
1819 if test -f $dir/gcc; then
1822 echo 'void f(){}' > conftest.c
1823 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1824 CFLAGS=${CFLAGS-"-g -O2"}
1825 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1827 CFLAGS=${CFLAGS-"-O2"}
1828 CXXFLAGS=${CXXFLAGS-"-O2"}
1837 # Determine if we are using gcc.
1838 cat > conftest.c <<EOF
1843 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
1847 if test -z "${CFLAGS}"; then
1848 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1849 # is set to a version of gcc.
1850 if test "$cc_prog_is_gcc" = yes; then
1851 echo 'void f(){}' > conftest.c
1852 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1853 CFLAGS=${CFLAGS-"-g -O2"}
1854 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1856 CFLAGS=${CFLAGS-"-O2"}
1857 CXXFLAGS=${CXXFLAGS-"-O2"}
1864 # We must set the default linker to the linker used by gcc for the correct
1865 # operation of libtool. If LD is not defined and we are using gcc, try to
1866 # set the LD default to the ld used by gcc.
1867 if test -z "$LD"; then
1868 if test "$cc_prog_is_gcc" = yes; then
1871 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1873 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
1875 case $gcc_prog_ld in
1876 # Accept absolute paths.
1877 [\\/]* | [A-Za-z]:[\\/]*)
1878 LD="$gcc_prog_ld" ;;
1884 CFLAGS=${CFLAGS-"-g"}
1885 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1888 if test $host != $build; then
1889 ac_tool_prefix=${host_alias}-
1894 # Extract the first word of "gcc", so it can be a program name with args.
1895 set dummy gcc; ac_word=$2
1896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1897 echo "configure:1898: checking for $ac_word" >&5
1898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1906 for ac_dir in $ac_dummy; do
1907 test -z "$ac_dir" && ac_dir=.
1908 if test -f $ac_dir/$ac_word; then
1917 if test -n "$CC"; then
1918 echo "$ac_t""$CC" 1>&6
1920 echo "$ac_t""no" 1>&6
1923 if test -z "$CC"; then
1924 # Extract the first word of "cc", so it can be a program name with args.
1925 set dummy cc; ac_word=$2
1926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1927 echo "configure:1928: checking for $ac_word" >&5
1928 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1937 for ac_dir in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir=.
1939 if test -f $ac_dir/$ac_word; then
1940 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1941 ac_prog_rejected=yes
1949 if test $ac_prog_rejected = yes; then
1950 # We found a bogon in the path, so make sure we never use it.
1951 set dummy $ac_cv_prog_CC
1953 if test $# -gt 0; then
1954 # We chose a different compiler from the bogus one.
1955 # However, it has the same basename, so the bogon will be chosen
1956 # first if we set CC to just the basename; use the full file name.
1958 set dummy "$ac_dir/$ac_word" "$@"
1966 if test -n "$CC"; then
1967 echo "$ac_t""$CC" 1>&6
1969 echo "$ac_t""no" 1>&6
1972 if test -z "$CC"; then
1973 case "`uname -s`" in
1975 # Extract the first word of "cl", so it can be a program name with args.
1976 set dummy cl; ac_word=$2
1977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1978 echo "configure:1979: checking for $ac_word" >&5
1979 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1987 for ac_dir in $ac_dummy; do
1988 test -z "$ac_dir" && ac_dir=.
1989 if test -f $ac_dir/$ac_word; then
1998 if test -n "$CC"; then
1999 echo "$ac_t""$CC" 1>&6
2001 echo "$ac_t""no" 1>&6
2006 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2009 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2017 cross_compiling=$ac_cv_prog_cc_cross
2019 cat > conftest.$ac_ext << EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2027 ac_cv_prog_cc_works=yes
2028 # If we can't run a trivial program, we are probably using a cross compiler.
2029 if (./conftest; exit) 2>/dev/null; then
2030 ac_cv_prog_cc_cross=no
2032 ac_cv_prog_cc_cross=yes
2035 echo "configure: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 ac_cv_prog_cc_works=no
2041 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2044 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2045 cross_compiling=$ac_cv_prog_cc_cross
2047 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2048 if test $ac_cv_prog_cc_works = no; then
2049 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2051 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2053 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2054 cross_compiling=$ac_cv_prog_cc_cross
2056 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2057 echo "configure:2058: checking whether we are using GNU C" >&5
2058 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 cat > conftest.c <<EOF
2066 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2073 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2075 if test $ac_cv_prog_gcc = yes; then
2081 ac_test_CFLAGS="${CFLAGS+set}"
2082 ac_save_CFLAGS="$CFLAGS"
2084 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2085 echo "configure:2086: checking whether ${CC-cc} accepts -g" >&5
2086 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 echo 'void f(){}' > conftest.c
2090 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2099 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2100 if test "$ac_test_CFLAGS" = set; then
2101 CFLAGS="$ac_save_CFLAGS"
2102 elif test $ac_cv_prog_cc_g = yes; then
2103 if test "$GCC" = yes; then
2109 if test "$GCC" = yes; then
2118 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2119 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2121 echo "configure:2122: checking for $ac_word" >&5
2122 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 if test -n "$GNATBIND"; then
2126 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2130 for ac_dir in $ac_dummy; do
2131 test -z "$ac_dir" && ac_dir=.
2132 if test -f $ac_dir/$ac_word; then
2133 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2140 GNATBIND="$ac_cv_prog_GNATBIND"
2141 if test -n "$GNATBIND"; then
2142 echo "$ac_t""$GNATBIND" 1>&6
2144 echo "$ac_t""no" 1>&6
2148 if test -z "$ac_cv_prog_GNATBIND"; then
2149 if test -n "$ac_tool_prefix"; then
2150 # Extract the first word of "gnatbind", so it can be a program name with args.
2151 set dummy gnatbind; ac_word=$2
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_word" >&5
2154 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 if test -n "$GNATBIND"; then
2158 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2162 for ac_dir in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir=.
2164 if test -f $ac_dir/$ac_word; then
2165 ac_cv_prog_GNATBIND="gnatbind"
2170 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2173 GNATBIND="$ac_cv_prog_GNATBIND"
2174 if test -n "$GNATBIND"; then
2175 echo "$ac_t""$GNATBIND" 1>&6
2177 echo "$ac_t""no" 1>&6
2185 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2186 echo "configure:2187: checking whether compiler driver understands Ada" >&5
2187 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 cat >conftest.adb <<EOF
2191 procedure conftest is begin null; end conftest;
2193 acx_cv_cc_gcc_supports_ada=no
2194 # There is a bug in old released versions of GCC which causes the
2195 # driver to exit successfully when the appropriate language module
2196 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2197 # Therefore we must check for the error message as well as an
2198 # unsuccessful exit.
2199 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2200 # given a .adb file, but produce no object file. So we must check
2201 # if an object file was really produced to guard against this.
2202 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2203 if test x"$errors" = x && test -f conftest.$ac_objext; then
2204 acx_cv_cc_gcc_supports_ada=yes
2210 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2212 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2218 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2219 echo "configure:2220: checking how to compare bootstrapped objects" >&5
2220 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2225 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2226 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2227 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2230 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2233 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2234 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2237 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2244 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2245 do_compare="$gcc_cv_prog_cmp_skip"
2253 # Specify a location for gmp
2254 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2255 if test "${with_gmp_dir+set}" = set; then
2256 withval="$with_gmp_dir"
2261 if test "x$with_gmp_dir" != x && test -f "$with_gmp_dir/gmp.h"; then
2262 gmpinc="-I$with_gmp_dir"
2263 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2264 gmplibs="$with_gmp_dir/.libs/libgmp.a"
2265 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2266 gmplibs="$with_gmp_dir/_libs/libgmp.a"
2268 # One of the later tests will catch the error if neither library is present.
2271 # Check whether --with-gmp or --without-gmp was given.
2272 if test "${with_gmp+set}" = set; then
2278 if test "x$with_gmp" != x && test -d "$with_gmp"; then
2279 gmplibs="-L$with_gmp/lib -lgmp"
2280 gmpinc="-I$with_gmp/include"
2283 # Use system gmp if nothing else specified
2284 if test "x$gmplibs" = x; then
2288 saved_CFLAGS="$CFLAGS"
2289 CFLAGS="$CFLAGS $gmpinc"
2290 # Check GMP actually works
2291 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2292 echo "configure:2293: checking for correct version of gmp.h" >&5
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2299 #if __GNU_MP_VERSION < 3
2305 if { (eval echo configure:2306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2307 echo "$ac_t""yes" 1>&6
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 echo "$ac_t""no" 1>&6; have_gmp=no
2316 if test x"$have_gmp" = xyes; then
2317 echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6
2318 echo "configure:2319: checking for mpf_init in -lgmp" >&5
2321 LIBS="$LIBS $gmplibs"
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2327 mpf_t n; mpf_init(n);
2330 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2332 echo "$ac_t""yes" 1>&6
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 echo "$ac_t""no" 1>&6; have_gmp=no
2341 CFLAGS="$saved_CFLAGS"
2347 # By default, C is the only stage 1 language.
2351 # Figure out what language subdirectories are present.
2352 # Look if the user specified --enable-languages="..."; if not, use
2353 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2355 # NB: embedded tabs in this IF block -- do not untabify
2356 if test -d ${srcdir}/gcc; then
2357 if test x"${enable_languages+set}" != xset; then
2358 if test x"${LANGUAGES+set}" = xset; then
2359 enable_languages="${LANGUAGES}"
2360 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2362 enable_languages=all
2365 if test x"${enable_languages}" = x ||
2366 test x"${enable_languages}" = xyes;
2368 echo configure.in: --enable-languages needs at least one language argument 1>&2
2372 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2374 # First scan to see if an enabled language requires some other language.
2375 # We assume that a given config-lang.in will list all the language
2376 # front ends it requires, even if some are required indirectly.
2377 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2378 case ${lang_frag} in
2380 # The odd quoting in the next line works around
2381 # an apparent bug in bash 1.12 on linux.
2382 ${srcdir}/gcc/[*]/config-lang.in) ;;
2384 # From the config-lang.in, get $language, $lang_requires
2388 for other in ${lang_requires} ; do
2389 case ,${enable_languages}, in
2393 echo " \`$other' language required by \`$language'; enabling" 1>&2
2394 enable_languages="${enable_languages},${other}"
2402 new_enable_languages=c
2403 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2405 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2406 case ${lang_frag} in
2408 # The odd quoting in the next line works around
2409 # an apparent bug in bash 1.12 on linux.
2410 ${srcdir}/gcc/[*]/config-lang.in) ;;
2412 # From the config-lang.in, get $language, $target_libs,
2413 # $lang_dirs, $boot_language, and $build_by_default
2421 # This is quite sensitive to the ordering of the case statement arms.
2422 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2424 echo "${lang_frag} doesn't set \$language." 1>&2
2428 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2431 *,${language},*:*:*:*)
2432 # Language was explicitly selected; include it.
2436 # 'all' was selected, but this is not a default language
2437 # so do not include it.
2441 # 'all' was selected and this is a default language; include it.
2449 # Disable language that need GMP if it isn't available.
2450 if test x"$need_gmp" = xyes && test x"$have_gmp" = xno; then
2454 case $add_this_lang in
2456 # Remove language-dependent dirs.
2457 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2460 new_enable_languages="$new_enable_languages,$language"
2461 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2462 case ${boot_language} in
2464 # Add to (comma-separated) list of stage 1 languages.
2465 stage1_languages="${stage1_languages},${language}"
2474 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2475 if test "x$missing_languages" != x; then
2476 { echo "configure: error:
2477 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2480 if test "x$new_enable_languages" != "x$enable_languages"; then
2481 echo The following languages will be built: ${new_enable_languages}
2483 enable_languages="$new_enable_languages"
2484 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2487 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2488 # $target_configdirs.
2489 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2492 for dir in . $skipdirs $noconfigdirs ; do
2493 dirname=`echo $dir | sed -e s/target-//g`
2494 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2495 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2496 if test -r $srcdir/$dirname/configure ; then
2497 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2500 notsupp="$notsupp $dir"
2504 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2505 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2506 if test -r $srcdir/$dirname/configure ; then
2507 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2510 notsupp="$notsupp $dir"
2516 # Sometimes the tools are distributed with libiberty but with no other
2517 # libraries. In that case, we don't want to build target-libiberty.
2518 if test -n "${target_configdirs}" ; then
2520 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2521 if test "$i" != "libiberty" ; then
2522 if test -r $srcdir/$i/configure ; then
2528 if test -z "${others}" ; then
2533 # Quietly strip out all directories which aren't configurable in this tree.
2534 # This relies on all configurable subdirectories being autoconfiscated, which
2536 configdirs_all="$configdirs"
2538 for i in ${configdirs_all} ; do
2539 if test -f ${srcdir}/$i/configure ; then
2540 configdirs="${configdirs} $i"
2543 target_configdirs_all="$target_configdirs"
2545 for i in ${target_configdirs_all} ; do
2546 j=`echo $i | sed -e s/target-//g`
2547 if test -f ${srcdir}/$j/configure ; then
2548 target_configdirs="${target_configdirs} $i"
2552 # Produce a warning message for the subdirs we can't configure.
2553 # This isn't especially interesting in the Cygnus tree, but in the individual
2554 # FSF releases, it's important to let people know when their machine isn't
2555 # supported by the one or two programs in a package.
2557 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2558 # If $appdirs is non-empty, at least one of those directories must still
2559 # be configured, or we error out. (E.g., if the gas release supports a
2560 # specified target in some subdirs but not the gas subdir, we shouldn't
2561 # pretend that all is well.)
2562 if test -n "$appdirs" ; then
2563 for dir in $appdirs ; do
2564 if test -r $dir/Makefile.in ; then
2565 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2569 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2575 if test -n "$appdirs" ; then
2576 echo "*** This configuration is not supported by this package." 1>&2
2580 # Okay, some application will build, or we don't care to check. Still
2581 # notify of subdirs not getting built.
2582 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2583 echo " ${notsupp}" 1>&2
2584 echo " (Any other directories should still work fine.)" 1>&2
2594 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2595 # the named directory are copied to $(tooldir)/sys-include.
2596 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2597 if test x${is_cross_compiler} = xno ; then
2598 echo 1>&2 '***' --with-headers is only supported when cross compiling
2601 if test x"${with_headers}" != xyes ; then
2602 case "${exec_prefixoption}" in
2604 *) x=${exec_prefix} ;;
2606 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2610 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2611 # the name directories are copied to $(tooldir)/lib. Multiple directories
2613 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2614 if test x${is_cross_compiler} = xno ; then
2615 echo 1>&2 '***' --with-libs is only supported when cross compiling
2618 if test x"${with_libs}" != xyes ; then
2619 # Copy the libraries in reverse order, so that files in the first named
2620 # library override files in subsequent libraries.
2621 case "${exec_prefixoption}" in
2623 *) x=${exec_prefix} ;;
2625 for l in ${with_libs}; do
2626 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2631 # Handle ${copy_dirs}
2632 set fnord ${copy_dirs}
2634 while test $# != 0 ; do
2635 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2638 echo Copying $1 to $2
2640 # Use the install script to create the directory and all required
2641 # parent directories.
2642 if test -d $2 ; then
2646 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2649 # Copy the directory, assuming we have tar.
2650 # FIXME: Should we use B in the second tar? Not all systems support it.
2651 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2653 # It is the responsibility of the user to correctly adjust all
2654 # symlinks. If somebody can figure out how to handle them correctly
2655 # here, feel free to add the code.
2662 extra_arflags_for_target=
2663 extra_nmflags_for_target=
2664 extra_ranlibflags_for_target=
2665 target_makefile_frag=/dev/null
2667 i[3456789]86-*-netware*)
2668 target_makefile_frag="config/mt-netware"
2671 target_makefile_frag="config/mt-netware"
2674 target_makefile_frag="config/mt-linux"
2676 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2677 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2678 # commands to handle both 32-bit and 64-bit objects. These flags are
2679 # harmless if we're using GNU nm or ar.
2680 extra_arflags_for_target=" -X32_64"
2681 extra_nmflags_for_target=" -B -X32_64"
2684 # ranlib from Darwin requires the -c flag to look at common symbols.
2685 extra_ranlibflags_for_target=" -c"
2687 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2688 target_makefile_frag="config/mt-wince"
2692 alphaieee_frag=/dev/null
2695 # This just makes sure to use the -mieee option to build target libs.
2696 # This should probably be set individually by each library.
2697 alphaieee_frag="config/mt-alphaieee"
2701 # If --enable-target-optspace always use -Os instead of -O2 to build
2702 # the target libraries, similarly if it is not specified, use -Os
2703 # on selected platforms.
2704 ospace_frag=/dev/null
2705 case "${enable_target_optspace}:${target}" in
2707 ospace_frag="config/mt-ospace"
2710 ospace_frag="config/mt-d30v"
2712 :m32r-* | :d10v-* | :fr30-*)
2713 ospace_frag="config/mt-ospace"
2718 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2722 # Set with_gnu_as and with_gnu_ld as appropriate.
2724 # This is done by determining whether or not the appropriate directory
2725 # is available, and by checking whether or not specific configurations
2726 # have requested that this magic not happen.
2728 # The command line options always override the explicit settings in
2729 # configure.in, and the settings in configure.in override this magic.
2731 # If the default for a toolchain is to use GNU as and ld, and you don't
2732 # want to do that, then you should use the --without-gnu-as and
2733 # --without-gnu-ld options for the configure script.
2735 if test x${use_gnu_as} = x &&
2736 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2738 extra_host_args="$extra_host_args --with-gnu-as"
2741 if test x${use_gnu_ld} = x &&
2742 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2744 extra_host_args="$extra_host_args --with-gnu-ld"
2747 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2748 # can detect this case.
2750 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2752 extra_host_args="$extra_host_args --with-newlib"
2755 if test x${with_libbanshee} = xyes && echo " ${configdirs} " | grep " libbanshee " >/dev/null 2>&1; then
2756 extra_host_args="$extra_host_args --with-libbanshee"
2759 # Default to using --with-stabs for certain targets.
2760 if test x${with_stabs} = x ; then
2764 mips*-*-* | alpha*-*-osf*)
2766 extra_host_args="${extra_host_args} --with-stabs"
2771 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2772 # them automatically.
2775 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2779 # Some systems (e.g., one of the i386-aix systems the gas testers are
2780 # using) don't handle "\$" correctly, so don't use it here.
2781 tooldir='${exec_prefix}'/${target_alias}
2782 build_tooldir=${tooldir}
2784 # Generate default definitions for YACC, M4, LEX. These are used if the
2785 # Makefile can't locate these programs in objdir.
2786 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2787 for ac_prog in 'bison -y' byacc yacc
2789 # Extract the first word of "$ac_prog", so it can be a program name with args.
2790 set dummy $ac_prog; ac_word=$2
2791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_word" >&5
2793 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 if test -n "$DEFAULT_YACC"; then
2797 ac_cv_prog_DEFAULT_YACC="$DEFAULT_YACC" # Let the user override the test.
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2801 for ac_dir in $ac_dummy; do
2802 test -z "$ac_dir" && ac_dir=.
2803 if test -f $ac_dir/$ac_word; then
2804 ac_cv_prog_DEFAULT_YACC="$ac_prog"
2811 DEFAULT_YACC="$ac_cv_prog_DEFAULT_YACC"
2812 if test -n "$DEFAULT_YACC"; then
2813 echo "$ac_t""$DEFAULT_YACC" 1>&6
2815 echo "$ac_t""no" 1>&6
2818 test -n "$DEFAULT_YACC" && break
2820 test -n "$DEFAULT_YACC" || DEFAULT_YACC="$MISSING bison"
2822 for ac_prog in gm4 gnum4 m4
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_word" >&5
2828 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 if test -n "$DEFAULT_M4"; then
2832 ac_cv_prog_DEFAULT_M4="$DEFAULT_M4" # Let the user override the test.
2834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2836 for ac_dir in $ac_dummy; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 ac_cv_prog_DEFAULT_M4="$ac_prog"
2846 DEFAULT_M4="$ac_cv_prog_DEFAULT_M4"
2847 if test -n "$DEFAULT_M4"; then
2848 echo "$ac_t""$DEFAULT_M4" 1>&6
2850 echo "$ac_t""no" 1>&6
2853 test -n "$DEFAULT_M4" && break
2855 test -n "$DEFAULT_M4" || DEFAULT_M4="$MISSING m4"
2857 for ac_prog in flex lex
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2862 echo "configure:2863: checking for $ac_word" >&5
2863 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2866 if test -n "$DEFAULT_LEX"; then
2867 ac_cv_prog_DEFAULT_LEX="$DEFAULT_LEX" # Let the user override the test.
2869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2871 for ac_dir in $ac_dummy; do
2872 test -z "$ac_dir" && ac_dir=.
2873 if test -f $ac_dir/$ac_word; then
2874 ac_cv_prog_DEFAULT_LEX="$ac_prog"
2881 DEFAULT_LEX="$ac_cv_prog_DEFAULT_LEX"
2882 if test -n "$DEFAULT_LEX"; then
2883 echo "$ac_t""$DEFAULT_LEX" 1>&6
2885 echo "$ac_t""no" 1>&6
2888 test -n "$DEFAULT_LEX" && break
2890 test -n "$DEFAULT_LEX" || DEFAULT_LEX="$MISSING flex"
2893 # Create a .gdbinit file which runs the one in srcdir
2894 # and tells GDB to look there for source files.
2896 if test -r ${srcdir}/.gdbinit ; then
2899 *) cat > ./.gdbinit <<EOF
2903 source ${srcdir}/.gdbinit
2909 # Make sure that the compiler is able to generate an executable. If it
2910 # can't, we are probably in trouble. We don't care whether we can run the
2911 # executable--we might be using a cross compiler--we only care whether it
2912 # can be created. At this point the main configure script has set CC.
2914 echo "int main () { return 0; }" > conftest.c
2915 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2916 if test $? = 0 ; then
2917 if test -s conftest || test -s conftest.exe ; then
2923 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2924 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2931 # The Solaris /usr/ucb/cc compiler does not appear to work.
2933 sparc-sun-solaris2*)
2934 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2935 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2937 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2938 if test -d /opt/cygnus/bin ; then
2939 if test "$could_use" = "" ; then
2940 could_use="/opt/cygnus/bin"
2942 could_use="$could_use or /opt/cygnus/bin"
2945 if test "$could_use" = "" ; then
2946 echo "Warning: compilation may fail because you're using"
2947 echo "/usr/ucb/cc. You should change your PATH or CC "
2948 echo "variable and rerun configure."
2950 echo "Warning: compilation may fail because you're using"
2951 echo "/usr/ucb/cc, when you should use the C compiler from"
2952 echo "$could_use. You should change your"
2953 echo "PATH or CC variable and rerun configure."
2959 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2960 # binutils tools will find libbfd.so.
2961 case "${enable_shared}" in
2962 no | "") SET_LIB_PATH= ;;
2963 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2967 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2968 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2971 # Record target_configdirs and the configure arguments for target and
2972 # build configuration in Makefile.
2973 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2975 # This is the final value for target_configdirs. configdirs already
2976 # has its final value, as does build_modules. It's time to create some
2977 # lists of valid targets.
2980 configure_build_modules=
2981 for module in ${build_modules} ; do
2982 all_build_modules=all-build-${module}
2983 configure_build_modules=configure-build-${module}
2986 # Determine whether gdb needs tk/tcl or not.
2987 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2988 # and in that case we want gdb to be built without tk. Ugh!
2989 # In fact I believe gdb is the *only* package directly dependent on tk,
2990 # so we should be able to put the 'maybe's in unconditionally and
2991 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2992 # 100% sure that that's safe though.
2994 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2995 case "$enable_gdbtk" in
2999 GDB_TK="${gdb_tk}" ;;
3001 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3002 # distro. Eventually someone will fix this and move Insight, nee
3003 # gdbtk to a separate directory.
3004 if test -d ${srcdir}/gdb/gdbtk ; then
3012 # Strip out unwanted targets.
3014 # While at that, we remove Makefiles if we were started for recursive
3015 # configuration, so that the top-level Makefile reconfigures them,
3016 # like we used to do when configure itself was recursive.
3018 # Loop over modules. $extrasub must be used with care, limiting as
3019 # much as possible the usage of range addresses. That's because autoconf
3020 # splits the sed script to overcome limits in the number of commands,
3021 # and relying on carefully-timed sed passes may turn out to be very hard
3022 # to maintain later. In this particular case, you just have to be careful
3023 # not to nest @if/@endif pairs, because configure will not warn you at all.
3025 for module in ${build_modules} ; do
3026 if test -z "${no_recursion}" \
3027 && test -f ${build_subdir}/${module}/Makefile; then
3028 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3029 rm -f ${build_subdir}/${module}/Makefile
3032 /^@if build-$module\$/d
3033 /^@endif build-$module\$/d"
3035 for module in ${configdirs} ; do
3036 if test -z "${no_recursion}" \
3037 && test -f ${module}/Makefile; then
3038 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3039 rm -f ${module}/Makefile
3043 /^@endif $module\$/d"
3045 for module in ${target_configdirs} ; do
3046 if test -z "${no_recursion}" \
3047 && test -f ${target_subdir}/${module}/Makefile; then
3048 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3049 rm -f ${target_subdir}/${module}/Makefile
3052 /^@if target-$module\$/d
3053 /^@endif target-$module\$/d"
3056 /^@if /,/^@endif /d"
3058 # Create the serialization dependencies. This uses a temporary file.
3060 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3061 if test "${enable_serial_configure+set}" = set; then
3062 enableval="$enable_serial_configure"
3067 case ${enable_serial_configure} in
3069 enable_serial_build_configure=yes
3070 enable_serial_host_configure=yes
3071 enable_serial_target_configure=yes
3075 # These force 'configure's to be done one at a time, to avoid problems
3076 # with contention over a shared config.cache.
3078 echo '# serdep.tmp' > serdep.tmp
3080 test "x${enable_serial_build_configure}" = xyes &&
3081 for item in ${build_configdirs} ; do
3084 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3089 test "x${enable_serial_host_configure}" = xyes &&
3090 for item in ${configdirs} ; do
3093 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3098 test "x${enable_serial_target_configure}" = xyes &&
3099 for item in ${target_configdirs} ; do
3102 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3106 serialization_dependencies=serdep.tmp
3109 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3110 # target and nonopt. These are the ones we might not want to pass
3111 # down to subconfigures. Also strip program-prefix, program-suffix,
3112 # and program-transform-name, so that we can pass down a consistent
3113 # program-transform-name. If autoconf has put single quotes around
3114 # any of these arguments (because they contain shell metacharacters)
3115 # then this will fail; in practice this only happens for
3116 # --program-transform-name, so be sure to override --program-transform-name
3117 # at the end of the argument list.
3118 # These will be expanded by make, so quote '$'.
3119 cat <<\EOF_SED > conftestsed
3121 s/ --c[a-z-]*[= ][^ ]*//g
3122 s/ --sr[a-z-]*[= ][^ ]*//g
3123 s/ --ho[a-z-]*[= ][^ ]*//g
3124 s/ --bu[a-z-]*[= ][^ ]*//g
3125 s/ --t[a-z-]*[= ][^ ]*//g
3126 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3127 s/ -cache-file[= ][^ ]*//g
3128 s/ -srcdir[= ][^ ]*//g
3129 s/ -host[= ][^ ]*//g
3130 s/ -build[= ][^ ]*//g
3131 s/ -target[= ][^ ]*//g
3132 s/ -program-prefix[= ][^ ]*//g
3133 s/ -program-suffix[= ][^ ]*//g
3134 s/ -program-transform-name[= ][^ ]*//g
3139 sed -f conftestsed <<EOF_SED > conftestsed.out
3140 ${ac_configure_args}
3142 baseargs=`cat conftestsed.out`
3143 rm -f conftestsed conftestsed.out
3145 # Add in --program-transform-name, after --program-prefix and
3146 # --program-suffix have been applied to it. Autoconf has already
3147 # doubled dollar signs and backslashes in program_transform_name; we want
3148 # the backslashes un-doubled, and then the entire thing wrapped in single
3149 # quotes, because this will be expanded first by make and then by the shell.
3150 # Also, because we want to override the logic in subdir configure scripts to
3151 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3152 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3153 ${program_transform_name}
3155 gcc_transform_name=`cat conftestsed.out`
3156 rm -f conftestsed.out
3157 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3159 # For the build-side libraries, we just need to pretend we're native,
3160 # and not use the same cache file. Multilibs are neither needed nor
3162 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3164 # For host modules, accept cache file option, or specification as blank.
3165 case "${cache_file}" in
3167 cache_file_option="" ;;
3168 /* | [A-Za-z]:[\\/]* ) # absolute path
3169 cache_file_option="--cache-file=${cache_file}" ;;
3171 cache_file_option="--cache-file=../${cache_file}" ;;
3174 # Host dirs don't like to share a cache file either, horribly enough.
3175 # This seems to be due to autoconf 2.5x stupidity.
3176 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3178 target_configargs=${baseargs}
3180 # Passing a --with-cross-host argument lets the target libraries know
3181 # whether they are being built with a cross-compiler or being built
3182 # native. However, it would be better to use other mechanisms to make the
3183 # sorts of decisions they want to make on this basis. Please consider
3184 # this option to be deprecated. FIXME.
3185 if test x${is_cross_compiler} = xyes ; then
3186 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3189 # Default to --enable-multilib.
3190 if test x${enable_multilib} = x ; then
3191 target_configargs="--enable-multilib ${target_configargs}"
3194 # Pass --with-newlib if appropriate. Note that target_configdirs has
3195 # changed from the earlier setting of with_newlib.
3196 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3197 target_configargs="--with-newlib ${target_configargs}"
3200 # Different target subdirs use different values of certain variables
3201 # (notably CXX). Worse, multilibs use *lots* of different values.
3202 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3203 # it doesn't automatically accept command-line overrides of them.
3204 # This means it's not safe for target subdirs to share a cache file,
3205 # which is disgusting, but there you have it. Hopefully this can be
3206 # fixed in future. It's still worthwhile to use a cache file for each
3207 # directory. I think.
3209 # Pass the appropriate --host, --build, and --cache-file arguments.
3210 target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3212 # provide a proper gxx_include_dir.
3213 # Note, if you change the default, make sure to fix both here and in
3214 # the gcc and libstdc++-v3 subdirectories.
3215 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3216 case "${with_gxx_include_dir}" in
3218 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3221 case "${enable_version_specific_runtime_libs}" in
3222 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3224 . ${srcdir}/config.if
3225 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3227 *) gxx_include_dir=${with_gxx_include_dir} ;;
3231 case " $target_configdirs " in
3233 case " $target_configargs " in
3234 *" --with-newlib "*)
3237 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' ;;
3240 # If we're not building GCC, don't discard standard headers.
3241 if test -d ${srcdir}/gcc; then
3242 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3244 if test "${build}" != "${host}"; then
3245 # On Canadian crosses, CC_FOR_TARGET will have already been set
3246 # by `configure', so we won't have an opportunity to add -Bgcc/
3247 # to it. This is right: we don't want to search that directory
3248 # for binaries, but we want the header files in there, so add
3250 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3252 # Someone might think of using the pre-installed headers on
3253 # Canadian crosses, in case the installed compiler is not fully
3254 # compatible with the compiler being built. In this case, it
3255 # would be better to flag an error than risking having
3256 # incompatible object files being constructed. We can't
3257 # guarantee that an error will be flagged, but let's hope the
3258 # compiler will do it, when presented with incompatible header
3263 case "${target}-${is_cross_compiler}" in
3264 i[3456789]86-*-linux*-no)
3265 # Here host == target, so we don't need to build gcc,
3266 # so we don't want to discard standard headers.
3267 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3270 # If we're building newlib, use its generic headers last, but search
3271 # for any libc-related directories first (so make it the last -B
3273 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3281 # Allow the user to override the flags for
3282 # our build compiler if desired.
3283 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3285 # On Canadian crosses, we'll be searching the right directories for
3286 # the previously-installed cross compiler, so don't bother to add
3287 # flags for directories within the install tree of the compiler
3288 # being built; programs in there won't even run.
3289 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3290 # Search for pre-installed headers if nothing else fits.
3291 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3294 if test "x${use_gnu_ld}" = x &&
3295 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3296 # Arrange for us to find uninstalled linker scripts.
3297 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3300 if test "x${CC_FOR_TARGET+set}" = xset; then
3302 elif test -d ${srcdir}/gcc; then
3303 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3304 elif test "$host" = "$target"; then
3305 CC_FOR_TARGET='$(CC)'
3307 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3309 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3311 if test "x${GCJ_FOR_TARGET+set}" = xset; then
3313 elif test -d ${srcdir}/gcc; then
3314 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3315 elif test "$host" = "$target"; then
3316 GCJ_FOR_TARGET='gcj'
3318 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3320 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3322 if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then
3324 elif test -d ${srcdir}/gcc; then
3325 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3326 elif test "$host" = "$target"; then
3327 GFORTRAN_FOR_TARGET='gfortran'
3329 GFORTRAN_FOR_TARGET=`echo gfortran | sed -e 's/x/x/' ${program_transform_name}`
3331 case $GFORTRAN_FOR_TARGET in
3332 *' $(FLAGS_FOR_TARGET)') ;;
3333 *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3336 # Don't use libstdc++-v3's flags to configure/build itself.
3337 libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3338 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3340 if test "x${CXX_FOR_TARGET+set}" = xset; then
3341 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3342 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3344 elif test -d ${srcdir}/gcc; then
3345 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3346 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3347 # default whereas gcc does not.
3348 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3350 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3351 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3352 elif test "$host" = "$target"; then
3353 CXX_FOR_TARGET='$(CXX)'
3354 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3356 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3357 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3359 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3360 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3362 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3363 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3365 # We want to defer the evaluation of `cmd`s and shell variables in
3366 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3367 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3368 # quotes, but we still have to duplicate `$'s so that shell variables
3369 # can be expanded by the nested make as shell variables, not as make
3371 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3372 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3374 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3375 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3376 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
3377 GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}"
3378 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3379 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3380 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3381 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3383 # Makefile fragments.
3384 host_makefile_frag=${srcdir}/${host_makefile_frag}
3385 target_makefile_frag=${srcdir}/${target_makefile_frag}
3386 alphaieee_frag=${srcdir}/${alphaieee_frag}
3387 ospace_frag=${srcdir}/${ospace_frag}
3393 # Miscellanea: directories, flags, etc.
3406 # Build module lists & subconfigure args.
3411 # Host module lists & subconfigure args.
3415 # Target module lists & subconfigure args.
3429 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3430 ncn_target_tool_prefix=
3431 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3433 if test -n "$ncn_tool_prefix"; then
3434 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3435 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3437 echo "configure:3438: checking for $ac_word" >&5
3438 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 if test -n "$AR"; then
3442 ac_cv_prog_AR="$AR" # Let the user override the test.
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3446 for ac_dir in $ac_dummy; do
3447 test -z "$ac_dir" && ac_dir=.
3448 if test -f $ac_dir/$ac_word; then
3449 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3457 if test -n "$AR"; then
3458 echo "$ac_t""$AR" 1>&6
3460 echo "$ac_t""no" 1>&6
3464 if test -z "$ac_cv_prog_AR" ; then
3465 if test $build = $host ; then
3467 # Extract the first word of "ar", so it can be a program name with args.
3468 set dummy ar; ac_word=$2
3469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3470 echo "configure:3471: checking for $ac_word" >&5
3471 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 if test -n "$ncn_cv_AR"; then
3475 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3479 for ac_dir in $ac_dummy; do
3480 test -z "$ac_dir" && ac_dir=.
3481 if test -f $ac_dir/$ac_word; then
3482 ac_cv_prog_ncn_cv_AR="ar"
3487 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3490 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3491 if test -n "$ncn_cv_AR"; then
3492 echo "$ac_t""$ncn_cv_AR" 1>&6
3494 echo "$ac_t""no" 1>&6
3499 AR="${ncn_tool_prefix}ar"
3505 if test -n "$ncn_tool_prefix"; then
3506 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3507 set dummy ${ncn_tool_prefix}as; ac_word=$2
3508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3509 echo "configure:3510: checking for $ac_word" >&5
3510 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 if test -n "$AS"; then
3514 ac_cv_prog_AS="$AS" # Let the user override the test.
3516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3518 for ac_dir in $ac_dummy; do
3519 test -z "$ac_dir" && ac_dir=.
3520 if test -f $ac_dir/$ac_word; then
3521 ac_cv_prog_AS="${ncn_tool_prefix}as"
3529 if test -n "$AS"; then
3530 echo "$ac_t""$AS" 1>&6
3532 echo "$ac_t""no" 1>&6
3536 if test -z "$ac_cv_prog_AS" ; then
3537 if test $build = $host ; then
3539 # Extract the first word of "as", so it can be a program name with args.
3540 set dummy as; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 if test -n "$ncn_cv_AS"; then
3547 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3551 for ac_dir in $ac_dummy; do
3552 test -z "$ac_dir" && ac_dir=.
3553 if test -f $ac_dir/$ac_word; then
3554 ac_cv_prog_ncn_cv_AS="as"
3559 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3562 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3563 if test -n "$ncn_cv_AS"; then
3564 echo "$ac_t""$ncn_cv_AS" 1>&6
3566 echo "$ac_t""no" 1>&6
3571 AS="${ncn_tool_prefix}as"
3577 if test -n "$ncn_tool_prefix"; then
3578 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3579 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3581 echo "configure:3582: checking for $ac_word" >&5
3582 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 if test -n "$DLLTOOL"; then
3586 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3590 for ac_dir in $ac_dummy; do
3591 test -z "$ac_dir" && ac_dir=.
3592 if test -f $ac_dir/$ac_word; then
3593 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3600 DLLTOOL="$ac_cv_prog_DLLTOOL"
3601 if test -n "$DLLTOOL"; then
3602 echo "$ac_t""$DLLTOOL" 1>&6
3604 echo "$ac_t""no" 1>&6
3608 if test -z "$ac_cv_prog_DLLTOOL" ; then
3609 if test $build = $host ; then
3610 ncn_cv_DLLTOOL=$DLLTOOL
3611 # Extract the first word of "dlltool", so it can be a program name with args.
3612 set dummy dlltool; ac_word=$2
3613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_word" >&5
3615 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 if test -n "$ncn_cv_DLLTOOL"; then
3619 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3623 for ac_dir in $ac_dummy; do
3624 test -z "$ac_dir" && ac_dir=.
3625 if test -f $ac_dir/$ac_word; then
3626 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3631 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3634 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3635 if test -n "$ncn_cv_DLLTOOL"; then
3636 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3638 echo "$ac_t""no" 1>&6
3641 DLLTOOL=$ncn_cv_DLLTOOL
3643 DLLTOOL="${ncn_tool_prefix}dlltool"
3646 DLLTOOL="$ac_cv_prog_DLLTOOL"
3649 if test -n "$ncn_tool_prefix"; then
3650 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3651 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3653 echo "configure:3654: checking for $ac_word" >&5
3654 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 if test -n "$LD"; then
3658 ac_cv_prog_LD="$LD" # Let the user override the test.
3660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3662 for ac_dir in $ac_dummy; do
3663 test -z "$ac_dir" && ac_dir=.
3664 if test -f $ac_dir/$ac_word; then
3665 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3673 if test -n "$LD"; then
3674 echo "$ac_t""$LD" 1>&6
3676 echo "$ac_t""no" 1>&6
3680 if test -z "$ac_cv_prog_LD" ; then
3681 if test $build = $host ; then
3683 # Extract the first word of "ld", so it can be a program name with args.
3684 set dummy ld; ac_word=$2
3685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3686 echo "configure:3687: checking for $ac_word" >&5
3687 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 if test -n "$ncn_cv_LD"; then
3691 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3695 for ac_dir in $ac_dummy; do
3696 test -z "$ac_dir" && ac_dir=.
3697 if test -f $ac_dir/$ac_word; then
3698 ac_cv_prog_ncn_cv_LD="ld"
3703 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3706 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3707 if test -n "$ncn_cv_LD"; then
3708 echo "$ac_t""$ncn_cv_LD" 1>&6
3710 echo "$ac_t""no" 1>&6
3715 LD="${ncn_tool_prefix}ld"
3721 if test -n "$ncn_tool_prefix"; then
3722 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3723 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_word" >&5
3726 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 if test -n "$NM"; then
3730 ac_cv_prog_NM="$NM" # Let the user override the test.
3732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3734 for ac_dir in $ac_dummy; do
3735 test -z "$ac_dir" && ac_dir=.
3736 if test -f $ac_dir/$ac_word; then
3737 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3745 if test -n "$NM"; then
3746 echo "$ac_t""$NM" 1>&6
3748 echo "$ac_t""no" 1>&6
3752 if test -z "$ac_cv_prog_NM" ; then
3753 if test $build = $host ; then
3755 # Extract the first word of "nm", so it can be a program name with args.
3756 set dummy nm; ac_word=$2
3757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3758 echo "configure:3759: checking for $ac_word" >&5
3759 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 if test -n "$ncn_cv_NM"; then
3763 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3767 for ac_dir in $ac_dummy; do
3768 test -z "$ac_dir" && ac_dir=.
3769 if test -f $ac_dir/$ac_word; then
3770 ac_cv_prog_ncn_cv_NM="nm"
3775 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3778 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3779 if test -n "$ncn_cv_NM"; then
3780 echo "$ac_t""$ncn_cv_NM" 1>&6
3782 echo "$ac_t""no" 1>&6
3787 NM="${ncn_tool_prefix}nm"
3793 if test -n "$ncn_tool_prefix"; then
3794 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3795 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_word" >&5
3798 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 if test -n "$RANLIB"; then
3802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3806 for ac_dir in $ac_dummy; do
3807 test -z "$ac_dir" && ac_dir=.
3808 if test -f $ac_dir/$ac_word; then
3809 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3816 RANLIB="$ac_cv_prog_RANLIB"
3817 if test -n "$RANLIB"; then
3818 echo "$ac_t""$RANLIB" 1>&6
3820 echo "$ac_t""no" 1>&6
3824 if test -z "$ac_cv_prog_RANLIB" ; then
3825 if test $build = $host ; then
3826 ncn_cv_RANLIB=$RANLIB
3827 # Extract the first word of "ranlib", so it can be a program name with args.
3828 set dummy ranlib; ac_word=$2
3829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3830 echo "configure:3831: checking for $ac_word" >&5
3831 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 if test -n "$ncn_cv_RANLIB"; then
3835 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3839 for ac_dir in $ac_dummy; do
3840 test -z "$ac_dir" && ac_dir=.
3841 if test -f $ac_dir/$ac_word; then
3842 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3847 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3850 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3851 if test -n "$ncn_cv_RANLIB"; then
3852 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3854 echo "$ac_t""no" 1>&6
3857 RANLIB=$ncn_cv_RANLIB
3862 RANLIB="$ac_cv_prog_RANLIB"
3865 if test -n "$ncn_tool_prefix"; then
3866 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3867 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3869 echo "configure:3870: checking for $ac_word" >&5
3870 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 if test -n "$WINDRES"; then
3874 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3878 for ac_dir in $ac_dummy; do
3879 test -z "$ac_dir" && ac_dir=.
3880 if test -f $ac_dir/$ac_word; then
3881 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3888 WINDRES="$ac_cv_prog_WINDRES"
3889 if test -n "$WINDRES"; then
3890 echo "$ac_t""$WINDRES" 1>&6
3892 echo "$ac_t""no" 1>&6
3896 if test -z "$ac_cv_prog_WINDRES" ; then
3897 if test $build = $host ; then
3898 ncn_cv_WINDRES=$WINDRES
3899 # Extract the first word of "windres", so it can be a program name with args.
3900 set dummy windres; ac_word=$2
3901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3902 echo "configure:3903: checking for $ac_word" >&5
3903 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 if test -n "$ncn_cv_WINDRES"; then
3907 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 for ac_dir in $ac_dummy; do
3912 test -z "$ac_dir" && ac_dir=.
3913 if test -f $ac_dir/$ac_word; then
3914 ac_cv_prog_ncn_cv_WINDRES="windres"
3919 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3922 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3923 if test -n "$ncn_cv_WINDRES"; then
3924 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3926 echo "$ac_t""no" 1>&6
3929 WINDRES=$ncn_cv_WINDRES
3931 WINDRES="${ncn_tool_prefix}windres"
3934 WINDRES="$ac_cv_prog_WINDRES"
3937 if test -n "$ncn_tool_prefix"; then
3938 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3939 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3941 echo "configure:3942: checking for $ac_word" >&5
3942 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3945 if test -n "$OBJCOPY"; then
3946 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3950 for ac_dir in $ac_dummy; do
3951 test -z "$ac_dir" && ac_dir=.
3952 if test -f $ac_dir/$ac_word; then
3953 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3960 OBJCOPY="$ac_cv_prog_OBJCOPY"
3961 if test -n "$OBJCOPY"; then
3962 echo "$ac_t""$OBJCOPY" 1>&6
3964 echo "$ac_t""no" 1>&6
3968 if test -z "$ac_cv_prog_OBJCOPY" ; then
3969 if test $build = $host ; then
3970 ncn_cv_OBJCOPY=$OBJCOPY
3971 # Extract the first word of "objcopy", so it can be a program name with args.
3972 set dummy objcopy; ac_word=$2
3973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3974 echo "configure:3975: checking for $ac_word" >&5
3975 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 if test -n "$ncn_cv_OBJCOPY"; then
3979 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3983 for ac_dir in $ac_dummy; do
3984 test -z "$ac_dir" && ac_dir=.
3985 if test -f $ac_dir/$ac_word; then
3986 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3991 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3994 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3995 if test -n "$ncn_cv_OBJCOPY"; then
3996 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3998 echo "$ac_t""no" 1>&6
4001 OBJCOPY=$ncn_cv_OBJCOPY
4003 OBJCOPY="${ncn_tool_prefix}objcopy"
4006 OBJCOPY="$ac_cv_prog_OBJCOPY"
4009 if test -n "$ncn_tool_prefix"; then
4010 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
4011 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4013 echo "configure:4014: checking for $ac_word" >&5
4014 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4017 if test -n "$OBJDUMP"; then
4018 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4022 for ac_dir in $ac_dummy; do
4023 test -z "$ac_dir" && ac_dir=.
4024 if test -f $ac_dir/$ac_word; then
4025 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
4032 OBJDUMP="$ac_cv_prog_OBJDUMP"
4033 if test -n "$OBJDUMP"; then
4034 echo "$ac_t""$OBJDUMP" 1>&6
4036 echo "$ac_t""no" 1>&6
4040 if test -z "$ac_cv_prog_OBJDUMP" ; then
4041 if test $build = $host ; then
4042 ncn_cv_OBJDUMP=$OBJDUMP
4043 # Extract the first word of "objdump", so it can be a program name with args.
4044 set dummy objdump; ac_word=$2
4045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4046 echo "configure:4047: checking for $ac_word" >&5
4047 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 if test -n "$ncn_cv_OBJDUMP"; then
4051 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4055 for ac_dir in $ac_dummy; do
4056 test -z "$ac_dir" && ac_dir=.
4057 if test -f $ac_dir/$ac_word; then
4058 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4063 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4066 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4067 if test -n "$ncn_cv_OBJDUMP"; then
4068 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4070 echo "$ac_t""no" 1>&6
4073 OBJDUMP=$ncn_cv_OBJDUMP
4075 OBJDUMP="${ncn_tool_prefix}objdump"
4078 OBJDUMP="$ac_cv_prog_OBJDUMP"
4091 if test -n "$ncn_target_tool_prefix"; then
4092 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4093 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4095 echo "configure:4096: checking for $ac_word" >&5
4096 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4100 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4104 for ac_dir in $ac_dummy; do
4105 test -z "$ac_dir" && ac_dir=.
4106 if test -f $ac_dir/$ac_word; then
4107 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4114 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4115 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4116 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
4118 echo "$ac_t""no" 1>&6
4122 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
4123 if test $build = $target ; then
4124 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
4125 # Extract the first word of "ar", so it can be a program name with args.
4126 set dummy ar; ac_word=$2
4127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_word" >&5
4129 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4133 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4137 for ac_dir in $ac_dummy; do
4138 test -z "$ac_dir" && ac_dir=.
4139 if test -f $ac_dir/$ac_word; then
4140 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4145 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4148 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4149 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4150 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
4152 echo "$ac_t""no" 1>&6
4155 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
4157 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4160 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4163 if test -n "$ncn_target_tool_prefix"; then
4164 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
4165 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4167 echo "configure:4168: checking for $ac_word" >&5
4168 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4172 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4176 for ac_dir in $ac_dummy; do
4177 test -z "$ac_dir" && ac_dir=.
4178 if test -f $ac_dir/$ac_word; then
4179 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4186 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4187 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4188 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4190 echo "$ac_t""no" 1>&6
4194 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4195 if test $build = $target ; then
4196 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4197 # Extract the first word of "as", so it can be a program name with args.
4198 set dummy as; ac_word=$2
4199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4200 echo "configure:4201: checking for $ac_word" >&5
4201 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4205 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4209 for ac_dir in $ac_dummy; do
4210 test -z "$ac_dir" && ac_dir=.
4211 if test -f $ac_dir/$ac_word; then
4212 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4217 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4220 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4221 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4222 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4224 echo "$ac_t""no" 1>&6
4227 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4229 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4232 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4235 if test -n "$ncn_target_tool_prefix"; then
4236 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4237 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4239 echo "configure:4240: checking for $ac_word" >&5
4240 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4244 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4248 for ac_dir in $ac_dummy; do
4249 test -z "$ac_dir" && ac_dir=.
4250 if test -f $ac_dir/$ac_word; then
4251 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4258 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4259 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4260 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4262 echo "$ac_t""no" 1>&6
4266 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4267 if test $build = $target ; then
4268 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4269 # Extract the first word of "dlltool", so it can be a program name with args.
4270 set dummy dlltool; ac_word=$2
4271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4272 echo "configure:4273: checking for $ac_word" >&5
4273 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4277 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4281 for ac_dir in $ac_dummy; do
4282 test -z "$ac_dir" && ac_dir=.
4283 if test -f $ac_dir/$ac_word; then
4284 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4289 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4292 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4293 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4294 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4296 echo "$ac_t""no" 1>&6
4299 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4301 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4304 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4307 if test -n "$ncn_target_tool_prefix"; then
4308 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4309 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4311 echo "configure:4312: checking for $ac_word" >&5
4312 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4315 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4316 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4320 for ac_dir in $ac_dummy; do
4321 test -z "$ac_dir" && ac_dir=.
4322 if test -f $ac_dir/$ac_word; then
4323 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4330 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4331 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4332 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4334 echo "$ac_t""no" 1>&6
4338 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4339 if test $build = $target ; then
4340 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4341 # Extract the first word of "ld", so it can be a program name with args.
4342 set dummy ld; ac_word=$2
4343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4344 echo "configure:4345: checking for $ac_word" >&5
4345 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4349 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4353 for ac_dir in $ac_dummy; do
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f $ac_dir/$ac_word; then
4356 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4361 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4364 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4365 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4366 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4368 echo "$ac_t""no" 1>&6
4371 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4373 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4376 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4379 if test -n "$ncn_target_tool_prefix"; then
4380 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4381 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4383 echo "configure:4384: checking for $ac_word" >&5
4384 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4388 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4392 for ac_dir in $ac_dummy; do
4393 test -z "$ac_dir" && ac_dir=.
4394 if test -f $ac_dir/$ac_word; then
4395 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4402 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4403 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4404 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4406 echo "$ac_t""no" 1>&6
4410 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4411 if test $build = $target ; then
4412 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4413 # Extract the first word of "nm", so it can be a program name with args.
4414 set dummy nm; ac_word=$2
4415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4416 echo "configure:4417: checking for $ac_word" >&5
4417 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4421 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4425 for ac_dir in $ac_dummy; do
4426 test -z "$ac_dir" && ac_dir=.
4427 if test -f $ac_dir/$ac_word; then
4428 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4433 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4436 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4437 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4438 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4440 echo "$ac_t""no" 1>&6
4443 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4445 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4448 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4451 if test -n "$ncn_target_tool_prefix"; then
4452 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4453 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_word" >&5
4456 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4460 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4464 for ac_dir in $ac_dummy; do
4465 test -z "$ac_dir" && ac_dir=.
4466 if test -f $ac_dir/$ac_word; then
4467 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
4474 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4475 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4476 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4478 echo "$ac_t""no" 1>&6
4482 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4483 if test $build = $target ; then
4484 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4485 # Extract the first word of "ranlib", so it can be a program name with args.
4486 set dummy ranlib; ac_word=$2
4487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4488 echo "configure:4489: checking for $ac_word" >&5
4489 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4492 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4493 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4497 for ac_dir in $ac_dummy; do
4498 test -z "$ac_dir" && ac_dir=.
4499 if test -f $ac_dir/$ac_word; then
4500 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib"
4505 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4508 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4509 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4510 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4512 echo "$ac_t""no" 1>&6
4515 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4517 CONFIGURED_RANLIB_FOR_TARGET=":"
4520 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4523 if test -n "$ncn_target_tool_prefix"; then
4524 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4525 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4527 echo "configure:4528: checking for $ac_word" >&5
4528 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4532 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4536 for ac_dir in $ac_dummy; do
4537 test -z "$ac_dir" && ac_dir=.
4538 if test -f $ac_dir/$ac_word; then
4539 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4546 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4547 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4548 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4550 echo "$ac_t""no" 1>&6
4554 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4555 if test $build = $target ; then
4556 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4557 # Extract the first word of "windres", so it can be a program name with args.
4558 set dummy windres; ac_word=$2
4559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_word" >&5
4561 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4565 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 for ac_dir in $ac_dummy; do
4570 test -z "$ac_dir" && ac_dir=.
4571 if test -f $ac_dir/$ac_word; then
4572 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4577 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4580 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4581 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4582 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4584 echo "$ac_t""no" 1>&6
4587 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4589 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4592 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4606 # Fix up target tools.
4607 if test "x${build}" = "x${host}" ; then
4608 # In this case, the newly built tools can and should be used,
4609 # so we override the results of the autoconf tests.
4610 # This should really only happen when the tools are actually being built,
4611 # but that's a further refinement. The new build scheme, where
4612 # tools are built into a structure paralleling where they're installed,
4613 # should also eliminate all of this cleanly.
4614 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4615 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4616 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4617 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4618 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4619 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4620 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
4622 # Just use the ones we found.
4623 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
4624 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4625 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4626 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
4627 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
4628 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
4629 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
4639 # Certain tools may need extra flags.
4640 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4641 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4642 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4644 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4645 echo "configure:4646: checking whether to enable maintainer-specific portions of Makefiles" >&5
4646 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4647 if test "${enable_maintainer_mode+set}" = set; then
4648 enableval="$enable_maintainer_mode"
4649 USE_MAINTAINER_MODE=$enableval
4651 USE_MAINTAINER_MODE=no
4654 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4657 if test "$USE_MAINTAINER_MODE" = yes; then
4658 MAINTAINER_MODE_TRUE=
4659 MAINTAINER_MODE_FALSE='#'
4661 MAINTAINER_MODE_TRUE='#'
4662 MAINTAINER_MODE_FALSE=
4664 MAINT=$MAINTAINER_MODE_TRUE
4666 # ---------------------
4667 # GCC bootstrap support
4668 # ---------------------
4670 # Stage specific cflags for build.
4675 yes) stage1_cflags="-g -Wa,-J" ;;
4676 *) stage1_cflags="-g -J" ;;
4679 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4680 # sources; use -no-cpp-precomp to get to GNU cpp.
4681 # Apple's GCC has bugs in designated initializer handling, so disable
4683 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4688 # Enable -Werror in bootstrap stage2 and later.
4689 # Change the default to "no" on release branches.
4690 # Check whether --enable-werror or --disable-werror was given.
4691 if test "${enable_werror+set}" = set; then
4692 enableval="$enable_werror"
4698 case ${enable_werror} in
4699 yes) stage2_werror_flag="--enable-werror-always" ;;
4700 *) stage2_werror_flag="" ;;
4705 cat > confcache <<\EOF
4706 # This file is a shell script that caches the results of configure
4707 # tests run on this system so they can be shared between configure
4708 # scripts and configure runs. It is not useful on other systems.
4709 # If it contains results you don't want to keep, you may remove or edit it.
4711 # By default, configure uses ./config.cache as the cache file,
4712 # creating it if it does not exist already. You can give configure
4713 # the --cache-file=FILE option to use a different cache file; that is
4714 # what configure does when it calls configure scripts in
4715 # subdirectories, so they share the cache.
4716 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4717 # config.status only pays attention to the cache file if you give it the
4718 # --recheck option to rerun configure.
4721 # The following way of writing the cache mishandles newlines in values,
4722 # but we know of no workaround that is simple, portable, and efficient.
4723 # So, don't put newlines in cache variables' values.
4724 # Ultrix sh set writes to stderr and can't be redirected directly,
4725 # and sets the high bit in the cache file unless we assign to the vars.
4727 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4729 # `set' does not quote correctly, so add quotes (double-quote substitution
4730 # turns \\\\ into \\, and sed turns \\ into \).
4732 -e "s/'/'\\\\''/g" \
4733 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4736 # `set' quotes correctly as required by POSIX, so do not add quotes.
4737 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4740 if cmp -s $cache_file confcache; then
4743 if test -w $cache_file; then
4744 echo "updating cache $cache_file"
4745 cat confcache > $cache_file
4747 echo "not updating unwritable cache $cache_file"
4752 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4755 # Let make expand exec_prefix.
4756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4758 # Any assignment to VPATH causes Sun make to only execute
4759 # the first set of double-colon rules, so remove it if not needed.
4760 # If there is a colon in the path, we need to keep it.
4761 if test "x$srcdir" = x.; then
4762 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4765 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4767 # Transform confdefs.h into DEFS.
4768 # Protect against shell expansion while executing Makefile rules.
4769 # Protect against Makefile macro expansion.
4770 cat > conftest.defs <<\EOF
4771 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4772 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4777 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4781 # Without the "./", some shells look in PATH for config.status.
4782 : ${CONFIG_STATUS=./config.status}
4784 echo creating $CONFIG_STATUS
4785 rm -f $CONFIG_STATUS
4786 cat > $CONFIG_STATUS <<EOF
4788 # Generated automatically by configure.
4789 # Run this file to recreate the current configuration.
4790 # This directory was configured as follows,
4791 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4793 # $0 $ac_configure_args
4795 # Compiler output produced by configure, useful for debugging
4796 # configure, is in ./config.log if it exists.
4798 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4801 case "\$ac_option" in
4802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4803 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4804 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4805 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4806 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4808 -help | --help | --hel | --he | --h)
4809 echo "\$ac_cs_usage"; exit 0 ;;
4810 *) echo "\$ac_cs_usage"; exit 1 ;;
4814 ac_given_srcdir=$srcdir
4815 ac_given_INSTALL="$INSTALL"
4817 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4819 cat >> $CONFIG_STATUS <<EOF
4821 # Protect against being on the right side of a sed subst in config.status.
4822 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4823 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4827 s%@CFLAGS@%$CFLAGS%g
4828 s%@CPPFLAGS@%$CPPFLAGS%g
4829 s%@CXXFLAGS@%$CXXFLAGS%g
4830 s%@FFLAGS@%$FFLAGS%g
4832 s%@LDFLAGS@%$LDFLAGS%g
4834 s%@exec_prefix@%$exec_prefix%g
4835 s%@prefix@%$prefix%g
4836 s%@program_transform_name@%$program_transform_name%g
4837 s%@bindir@%$bindir%g
4838 s%@sbindir@%$sbindir%g
4839 s%@libexecdir@%$libexecdir%g
4840 s%@datadir@%$datadir%g
4841 s%@sysconfdir@%$sysconfdir%g
4842 s%@sharedstatedir@%$sharedstatedir%g
4843 s%@localstatedir@%$localstatedir%g
4844 s%@libdir@%$libdir%g
4845 s%@includedir@%$includedir%g
4846 s%@oldincludedir@%$oldincludedir%g
4847 s%@infodir@%$infodir%g
4848 s%@mandir@%$mandir%g
4850 s%@host_alias@%$host_alias%g
4851 s%@host_cpu@%$host_cpu%g
4852 s%@host_vendor@%$host_vendor%g
4853 s%@host_os@%$host_os%g
4854 s%@target@%$target%g
4855 s%@target_alias@%$target_alias%g
4856 s%@target_cpu@%$target_cpu%g
4857 s%@target_vendor@%$target_vendor%g
4858 s%@target_os@%$target_os%g
4860 s%@build_alias@%$build_alias%g
4861 s%@build_cpu@%$build_cpu%g
4862 s%@build_vendor@%$build_vendor%g
4863 s%@build_os@%$build_os%g
4864 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4865 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4866 s%@INSTALL_DATA@%$INSTALL_DATA%g
4867 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4868 s%@build_subdir@%$build_subdir%g
4869 s%@host_subdir@%$host_subdir%g
4870 s%@target_subdir@%$target_subdir%g
4872 s%@GNATBIND@%$GNATBIND%g
4873 s%@do_compare@%$do_compare%g
4874 s%@gmplibs@%$gmplibs%g
4875 s%@gmpinc@%$gmpinc%g
4876 s%@stage1_languages@%$stage1_languages%g
4877 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4878 s%@DEFAULT_M4@%$DEFAULT_M4%g
4879 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4880 /@serialization_dependencies@/r $serialization_dependencies
4881 s%@serialization_dependencies@%%g
4882 /@host_makefile_frag@/r $host_makefile_frag
4883 s%@host_makefile_frag@%%g
4884 /@target_makefile_frag@/r $target_makefile_frag
4885 s%@target_makefile_frag@%%g
4886 /@alphaieee_frag@/r $alphaieee_frag
4887 s%@alphaieee_frag@%%g
4888 /@ospace_frag@/r $ospace_frag
4890 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4891 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4892 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4893 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4894 s%@gcc_version_trigger@%$gcc_version_trigger%g
4895 s%@gcc_version@%$gcc_version%g
4896 s%@tooldir@%$tooldir%g
4897 s%@build_tooldir@%$build_tooldir%g
4898 s%@GDB_TK@%$GDB_TK%g
4899 s%@gxx_include_dir@%$gxx_include_dir%g
4900 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4901 s%@build_configargs@%$build_configargs%g
4902 s%@configure_build_modules@%$configure_build_modules%g
4903 s%@all_build_modules@%$all_build_modules%g
4904 s%@host_configargs@%$host_configargs%g
4905 s%@configdirs@%$configdirs%g
4906 s%@target_configargs@%$target_configargs%g
4907 s%@target_configdirs@%$target_configdirs%g
4909 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4911 s%@MAKEINFO@%$MAKEINFO%g
4913 s%@config_shell@%$config_shell%g
4915 s%@ncn_cv_AR@%$ncn_cv_AR%g
4917 s%@ncn_cv_AS@%$ncn_cv_AS%g
4918 s%@DLLTOOL@%$DLLTOOL%g
4919 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4921 s%@ncn_cv_LD@%$ncn_cv_LD%g
4923 s%@ncn_cv_NM@%$ncn_cv_NM%g
4924 s%@RANLIB@%$RANLIB%g
4925 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4926 s%@WINDRES@%$WINDRES%g
4927 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4928 s%@OBJCOPY@%$OBJCOPY%g
4929 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4930 s%@OBJDUMP@%$OBJDUMP%g
4931 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4933 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4934 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
4935 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
4936 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
4937 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
4938 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
4939 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
4940 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
4941 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
4942 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
4943 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
4944 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
4945 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
4946 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
4947 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
4948 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4949 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4950 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4951 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4952 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
4953 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4954 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4955 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4956 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4957 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4958 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4959 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4960 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4961 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4962 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4963 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4964 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4965 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4967 s%@stage1_cflags@%$stage1_cflags%g
4968 s%@stage2_werror_flag@%$stage2_werror_flag%g
4973 cat >> $CONFIG_STATUS <<\EOF
4975 # Split the substitutions into bite-sized pieces for seds with
4976 # small command number limits, like on Digital OSF/1 and HP-UX.
4977 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4978 ac_file=1 # Number of current file.
4979 ac_beg=1 # First line for current file.
4980 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4983 while $ac_more_lines; do
4984 if test $ac_beg -gt 1; then
4985 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4987 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4989 if test ! -s conftest.s$ac_file; then
4991 rm -f conftest.s$ac_file
4993 if test -z "$ac_sed_cmds"; then
4994 ac_sed_cmds="sed -f conftest.s$ac_file"
4996 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4998 ac_file=`expr $ac_file + 1`
5000 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5003 if test -z "$ac_sed_cmds"; then
5008 cat >> $CONFIG_STATUS <<EOF
5010 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5012 cat >> $CONFIG_STATUS <<\EOF
5013 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5014 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5016 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5017 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5018 *) ac_file_in="${ac_file}.in" ;;
5021 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5023 # Remove last slash and all that follows it. Not all systems have dirname.
5024 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5025 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5026 # The file is in a subdirectory.
5027 test ! -d "$ac_dir" && mkdir "$ac_dir"
5028 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5029 # A "../" for each directory in $ac_dir_suffix.
5030 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5032 ac_dir_suffix= ac_dots=
5035 case "$ac_given_srcdir" in
5037 if test -z "$ac_dots"; then top_srcdir=.
5038 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5039 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5041 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5042 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5045 case "$ac_given_INSTALL" in
5046 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5047 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5050 echo creating "$ac_file"
5052 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5054 *Makefile*) ac_comsub="1i\\
5055 # $configure_input" ;;
5059 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5061 s%@configure_input@%$configure_input%g
5062 s%@srcdir@%$srcdir%g
5063 s%@top_srcdir@%$top_srcdir%g
5064 s%@INSTALL@%$INSTALL%g
5065 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5070 cat >> $CONFIG_STATUS <<EOF
5073 cat >> $CONFIG_STATUS <<\EOF
5077 chmod +x $CONFIG_STATUS
5078 rm -fr confdefs* $ac_clean_files
5079 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1