]> sourceware.org Git - newlib-cygwin.git/blame - configure
include/
[newlib-cygwin.git] / configure
CommitLineData
bafecfd6 1#! /bin/sh
bafecfd6 2# Guess values for system-dependent variables and create Makefiles.
b58b6ee1 3# Generated by GNU Autoconf 2.59.
bafecfd6 4#
b58b6ee1 5# Copyright (C) 2003 Free Software Foundation, Inc.
bafecfd6
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
b58b6ee1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
bafecfd6 243
b58b6ee1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
bafecfd6 254ac_default_prefix=/usr/local
b58b6ee1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
d19b11bb 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOPLEVEL_CONFIGURE_ARGUMENTS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
b58b6ee1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
7fb8d612 277ac_pwd=`pwd`
bafecfd6
NN
278
279# Initialize some variables set by options.
b58b6ee1
DJ
280ac_init_help=
281ac_init_version=false
bafecfd6
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
b58b6ee1 284cache_file=/dev/null
bafecfd6 285exec_prefix=NONE
bafecfd6 286no_create=
bafecfd6
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
bafecfd6
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
b58b6ee1
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
bafecfd6
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
a3acbf46 316
bafecfd6
NN
317ac_prev=
318for ac_option
319do
bafecfd6
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
a3acbf46 326
b58b6ee1 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
bafecfd6
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
b58b6ee1 331 case $ac_option in
bafecfd6
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b58b6ee1 336 bindir=$ac_optarg ;;
bafecfd6
NN
337
338 -build | --build | --buil | --bui | --bu)
b58b6ee1 339 ac_prev=build_alias ;;
bafecfd6 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b58b6ee1 341 build_alias=$ac_optarg ;;
bafecfd6
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b58b6ee1
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
bafecfd6
NN
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
b58b6ee1 357 datadir=$ac_optarg ;;
bafecfd6
NN
358
359 -disable-* | --disable-*)
b58b6ee1 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bafecfd6 361 # Reject names that are not valid shell variable names.
b58b6ee1
DJ
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
bafecfd6
NN
367
368 -enable-* | --enable-*)
b58b6ee1 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bafecfd6 370 # Reject names that are not valid shell variable names.
b58b6ee1
DJ
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
bafecfd6
NN
377 *) ac_optarg=yes ;;
378 esac
b58b6ee1 379 eval "enable_$ac_feature='$ac_optarg'" ;;
bafecfd6
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
b58b6ee1 388 exec_prefix=$ac_optarg ;;
bafecfd6
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
b58b6ee1
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
bafecfd6
NN
400
401 -host | --host | --hos | --ho)
b58b6ee1 402 ac_prev=host_alias ;;
bafecfd6 403 -host=* | --host=* | --hos=* | --ho=*)
b58b6ee1 404 host_alias=$ac_optarg ;;
bafecfd6
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
b58b6ee1 411 includedir=$ac_optarg ;;
bafecfd6
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b58b6ee1 416 infodir=$ac_optarg ;;
bafecfd6
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b58b6ee1 421 libdir=$ac_optarg ;;
bafecfd6
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
b58b6ee1 428 libexecdir=$ac_optarg ;;
bafecfd6
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b58b6ee1 437 localstatedir=$ac_optarg ;;
bafecfd6
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b58b6ee1 442 mandir=$ac_optarg ;;
bafecfd6
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b58b6ee1 449 | --no-cr | --no-c | -n)
bafecfd6
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b58b6ee1 463 oldincludedir=$ac_optarg ;;
bafecfd6
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b58b6ee1 468 prefix=$ac_optarg ;;
bafecfd6
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b58b6ee1 475 program_prefix=$ac_optarg ;;
bafecfd6
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b58b6ee1 482 program_suffix=$ac_optarg ;;
bafecfd6
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
b58b6ee1 499 program_transform_name=$ac_optarg ;;
bafecfd6
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
b58b6ee1 509 sbindir=$ac_optarg ;;
bafecfd6
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
b58b6ee1 520 sharedstatedir=$ac_optarg ;;
bafecfd6
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
b58b6ee1 525 site=$ac_optarg ;;
bafecfd6
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b58b6ee1 530 srcdir=$ac_optarg ;;
bafecfd6
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b58b6ee1 537 sysconfdir=$ac_optarg ;;
bafecfd6
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
b58b6ee1 540 ac_prev=target_alias ;;
bafecfd6 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b58b6ee1 542 target_alias=$ac_optarg ;;
bafecfd6
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
b58b6ee1
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
bafecfd6
NN
549
550 -with-* | --with-*)
b58b6ee1 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bafecfd6 552 # Reject names that are not valid shell variable names.
b58b6ee1
DJ
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
bafecfd6 556 ac_package=`echo $ac_package| sed 's/-/_/g'`
b58b6ee1
DJ
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
bafecfd6
NN
559 *) ac_optarg=yes ;;
560 esac
b58b6ee1 561 eval "with_$ac_package='$ac_optarg'" ;;
bafecfd6
NN
562
563 -without-* | --without-*)
b58b6ee1 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bafecfd6 565 # Reject names that are not valid shell variable names.
b58b6ee1
DJ
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
bafecfd6
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b58b6ee1 581 x_includes=$ac_optarg ;;
bafecfd6
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b58b6ee1 588 x_libraries=$ac_optarg ;;
bafecfd6 589
b58b6ee1
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
bafecfd6
NN
593 ;;
594
b58b6ee1
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
bafecfd6 605 *)
b58b6ee1
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
bafecfd6
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
b58b6ee1
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
bafecfd6 620fi
bafecfd6 621
b58b6ee1
DJ
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
bafecfd6 632
b58b6ee1
DJ
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
bafecfd6 636do
b58b6ee1
DJ
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
bafecfd6
NN
642 esac
643done
644
b58b6ee1
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
76402c80 651
b58b6ee1
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
bafecfd6 667
bafecfd6
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
b58b6ee1
DJ
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
bafecfd6
NN
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
b58b6ee1
DJ
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
bafecfd6 696 else
b58b6ee1
DJ
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
3fbb5e3d
PB
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
b58b6ee1
DJ
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
b8c26111
PB
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
82026593
AO
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
bffcbe34
NC
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
82026593
AO
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
bffcbe34
NC
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
b58b6ee1
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
883_ACEOF
884
885 cat <<_ACEOF
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
bafecfd6 926fi
bafecfd6 927
b58b6ee1
DJ
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b916272a 935 --enable-gold use gold instead of ld
b301596e
DD
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-stage1-languages[=all] choose additional languages to build during
b58b6ee1 939 stage1. Mostly useful for compiler development.
b301596e
DD
940 --enable-objc-gc enable use of Boehm's garbage collector with the
941 GNU Objective-C runtime
942 --enable-bootstrap enable bootstrapping [yes if native build]
943 --enable-serial-[{host,target,build}-]configure
944 force sequential configuration of
b58b6ee1 945 sub-packages for the host, target or build
b301596e 946 machine, or all sub-packages
b58b6ee1
DJ
947 --enable-maintainer-mode enable make rules and dependencies not useful
948 (and sometimes confusing) to the casual installer
b301596e
DD
949 --enable-stage1-checking[=all] choose additional checking for stage1
950 of the compiler
b58b6ee1
DJ
951 --enable-werror enable -Werror in bootstrap stage2 and later
952
953Optional Packages:
954 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
955 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
956 --with-build-libsubdir=DIR Directory where to find libraries for build system
b301596e
DD
957 --with-mpfr-dir=PATH this option has been REMOVED
958 --with-mpfr=PATH specify prefix directory for installed MPFR package.
b58b6ee1
DJ
959 Equivalent to --with-mpfr-include=PATH/include
960 plus --with-mpfr-lib=PATH/lib
961 --with-mpfr-include=PATH
b301596e
DD
962 specify directory for installed MPFR include files
963 --with-mpfr-lib=PATH specify directory for the installed MPFR library
964 --with-gmp-dir=PATH this option has been REMOVED
965 --with-gmp=PATH specify prefix directory for the installed GMP package.
b58b6ee1
DJ
966 Equivalent to --with-gmp-include=PATH/include
967 plus --with-gmp-lib=PATH/lib
b301596e
DD
968 --with-gmp-include=PATH specify directory for installed GMP include files
969 --with-gmp-lib=PATH specify directory for the installed GMP library
970 --with-build-sysroot=SYSROOT
b58b6ee1 971 use sysroot as the system root during the build
fcc5fef0
JM
972 --with-debug-prefix-map='A=B C=D ...'
973 map A to B, C to D ... in debug information
b301596e 974 --with-build-time-tools=PATH
b58b6ee1 975 use given path to find target tools during the build
b301596e
DD
976 --with-datarootdir use datarootdir as the data root directory.
977 --with-docdir install documentation in this directory.
978 --with-pdfdir install pdf in this directory.
979 --with-htmldir install html in this directory.
b58b6ee1
DJ
980
981Some influential environment variables:
982 CC C compiler command
983 CFLAGS C compiler flags
984 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
985 nonstandard directory <lib dir>
986 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
987 headers in a nonstandard directory <include dir>
b8c26111
PB
988 CXX C++ compiler command
989 CXXFLAGS C++ compiler flags
82026593
AO
990 AR AR for the host
991 AS AS for the host
992 DLLTOOL DLLTOOL for the host
993 LD LD for the host
994 LIPO LIPO for the host
995 NM NM for the host
996 RANLIB RANLIB for the host
997 STRIP STRIP for the host
998 WINDRES WINDRES for the host
bffcbe34 999 WINDMC WINDMC for the host
82026593
AO
1000 OBJCOPY OBJCOPY for the host
1001 OBJDUMP OBJDUMP for the host
1002 CC_FOR_TARGET
1003 CC for the target
1004 CXX_FOR_TARGET
1005 CXX for the target
1006 GCC_FOR_TARGET
1007 GCC for the target
1008 GCJ_FOR_TARGET
1009 GCJ for the target
1010 GFORTRAN_FOR_TARGET
1011 GFORTRAN for the target
1012 AR_FOR_TARGET
1013 AR for the target
1014 AS_FOR_TARGET
1015 AS for the target
1016 DLLTOOL_FOR_TARGET
1017 DLLTOOL for the target
1018 LD_FOR_TARGET
1019 LD for the target
1020 LIPO_FOR_TARGET
1021 LIPO for the target
1022 NM_FOR_TARGET
1023 NM for the target
1024 OBJDUMP_FOR_TARGET
1025 OBJDUMP for the target
1026 RANLIB_FOR_TARGET
1027 RANLIB for the target
1028 STRIP_FOR_TARGET
1029 STRIP for the target
1030 WINDRES_FOR_TARGET
1031 WINDRES for the target
bffcbe34
NC
1032 WINDMC_FOR_TARGET
1033 WINDMC for the target
b58b6ee1
DJ
1034
1035Use these variables to override the choices made by `configure' or to help
1036it to find libraries and programs with nonstandard names/locations.
1037
1038_ACEOF
1039fi
1040
1041if test "$ac_init_help" = "recursive"; then
1042 # If there are subdirs, report their specific --help.
1043 ac_popdir=`pwd`
1044 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1045 test -d $ac_dir || continue
1046 ac_builddir=.
1047
1048if test "$ac_dir" != .; then
1049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1050 # A "../" for each directory in $ac_dir_suffix.
1051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1052else
1053 ac_dir_suffix= ac_top_builddir=
1054fi
1055
1056case $srcdir in
1057 .) # No --srcdir option. We are building in place.
1058 ac_srcdir=.
1059 if test -z "$ac_top_builddir"; then
1060 ac_top_srcdir=.
1061 else
1062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1063 fi ;;
1064 [\\/]* | ?:[\\/]* ) # Absolute path.
1065 ac_srcdir=$srcdir$ac_dir_suffix;
1066 ac_top_srcdir=$srcdir ;;
1067 *) # Relative path.
1068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1070esac
1071
1072# Do not use `cd foo && pwd` to compute absolute paths, because
1073# the directories may not exist.
1074case `pwd` in
1075.) ac_abs_builddir="$ac_dir";;
1076*)
1077 case "$ac_dir" in
1078 .) ac_abs_builddir=`pwd`;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1081 esac;;
1082esac
1083case $ac_abs_builddir in
1084.) ac_abs_top_builddir=${ac_top_builddir}.;;
1085*)
1086 case ${ac_top_builddir}. in
1087 .) ac_abs_top_builddir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1090 esac;;
1091esac
1092case $ac_abs_builddir in
1093.) ac_abs_srcdir=$ac_srcdir;;
1094*)
1095 case $ac_srcdir in
1096 .) ac_abs_srcdir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1099 esac;;
1100esac
1101case $ac_abs_builddir in
1102.) ac_abs_top_srcdir=$ac_top_srcdir;;
1103*)
1104 case $ac_top_srcdir in
1105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1108 esac;;
1109esac
1110
1111 cd $ac_dir
1112 # Check for guested configure; otherwise get Cygnus style configure.
1113 if test -f $ac_srcdir/configure.gnu; then
1114 echo
1115 $SHELL $ac_srcdir/configure.gnu --help=recursive
1116 elif test -f $ac_srcdir/configure; then
1117 echo
1118 $SHELL $ac_srcdir/configure --help=recursive
1119 elif test -f $ac_srcdir/configure.ac ||
1120 test -f $ac_srcdir/configure.in; then
1121 echo
1122 $ac_configure --help
1123 else
1124 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 fi
1126 cd $ac_popdir
1127 done
1128fi
1129
1130test -n "$ac_init_help" && exit 0
1131if $ac_init_version; then
1132 cat <<\_ACEOF
1133
1134Copyright (C) 2003 Free Software Foundation, Inc.
1135This configure script is free software; the Free Software Foundation
1136gives unlimited permission to copy, distribute and modify it.
1137_ACEOF
1138 exit 0
1139fi
1140exec 5>config.log
1141cat >&5 <<_ACEOF
1142This file contains any messages produced by compilers while
1143running configure, to aid debugging if configure makes a mistake.
1144
1145It was created by $as_me, which was
1146generated by GNU Autoconf 2.59. Invocation command line was
1147
1148 $ $0 $@
1149
1150_ACEOF
1151{
1152cat <<_ASUNAME
1153## --------- ##
1154## Platform. ##
1155## --------- ##
1156
1157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165
1166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173
1174_ASUNAME
1175
1176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177for as_dir in $PATH
1178do
1179 IFS=$as_save_IFS
1180 test -z "$as_dir" && as_dir=.
1181 echo "PATH: $as_dir"
1182done
1183
1184} >&5
1185
1186cat >&5 <<_ACEOF
1187
1188
1189## ----------- ##
1190## Core tests. ##
1191## ----------- ##
1192
1193_ACEOF
1194
1195
1196# Keep a trace of the command line.
1197# Strip out --no-create and --no-recursion so they do not pile up.
1198# Strip out --silent because we don't want to record it for future runs.
1199# Also quote any args containing shell meta-characters.
1200# Make two passes to allow for proper duplicate-argument suppression.
1201ac_configure_args=
1202ac_configure_args0=
1203ac_configure_args1=
1204ac_sep=
1205ac_must_keep_next=false
1206for ac_pass in 1 2
1207do
1208 for ac_arg
1209 do
1210 case $ac_arg in
1211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 continue ;;
1215 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1216 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1217 esac
1218 case $ac_pass in
1219 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 2)
1221 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1222 if test $ac_must_keep_next = true; then
1223 ac_must_keep_next=false # Got value, back to normal.
1224 else
1225 case $ac_arg in
1226 *=* | --config-cache | -C | -disable-* | --disable-* \
1227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1229 | -with-* | --with-* | -without-* | --without-* | --x)
1230 case "$ac_configure_args0 " in
1231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1232 esac
1233 ;;
1234 -* ) ac_must_keep_next=true ;;
1235 esac
1236 fi
1237 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1238 # Get rid of the leading space.
1239 ac_sep=" "
1240 ;;
1241 esac
1242 done
1243done
1244$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1245$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246
1247# When interrupted or exit'd, cleanup temporary files, and complete
1248# config.log. We remove comments because anyway the quotes in there
1249# would cause problems or look ugly.
1250# WARNING: Be sure not to use single quotes in there, as some shells,
1251# such as our DU 5.0 friend, will then `close' the trap.
1252trap 'exit_status=$?
1253 # Save into config.log some information that might help in debugging.
1254 {
1255 echo
1256
1257 cat <<\_ASBOX
1258## ---------------- ##
1259## Cache variables. ##
1260## ---------------- ##
1261_ASBOX
1262 echo
1263 # The following way of writing the cache mishandles newlines in values,
1264{
1265 (set) 2>&1 |
1266 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1267 *ac_space=\ *)
1268 sed -n \
1269 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1271 ;;
1272 *)
1273 sed -n \
1274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 ;;
1276 esac;
1277}
1278 echo
1279
1280 cat <<\_ASBOX
1281## ----------------- ##
1282## Output variables. ##
1283## ----------------- ##
1284_ASBOX
1285 echo
1286 for ac_var in $ac_subst_vars
1287 do
1288 eval ac_val=$`echo $ac_var`
1289 echo "$ac_var='"'"'$ac_val'"'"'"
1290 done | sort
1291 echo
1292
1293 if test -n "$ac_subst_files"; then
1294 cat <<\_ASBOX
1295## ------------- ##
1296## Output files. ##
1297## ------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_files
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306 fi
1307
1308 if test -s confdefs.h; then
1309 cat <<\_ASBOX
1310## ----------- ##
1311## confdefs.h. ##
1312## ----------- ##
1313_ASBOX
1314 echo
1315 sed "/^$/d" confdefs.h | sort
1316 echo
1317 fi
1318 test "$ac_signal" != 0 &&
1319 echo "$as_me: caught signal $ac_signal"
1320 echo "$as_me: exit $exit_status"
1321 } >&5
1322 rm -f core *.core &&
1323 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1324 exit $exit_status
1325 ' 0
1326for ac_signal in 1 2 13 15; do
1327 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1328done
1329ac_signal=0
1330
1331# confdefs.h avoids OS command line length limits that DEFS can exceed.
1332rm -rf conftest* confdefs.h
1333# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1334echo >confdefs.h
1335
1336# Predefined preprocessor variables.
1337
1338cat >>confdefs.h <<_ACEOF
1339#define PACKAGE_NAME "$PACKAGE_NAME"
1340_ACEOF
1341
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_VERSION "$PACKAGE_VERSION"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_STRING "$PACKAGE_STRING"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1360_ACEOF
1361
1362
1363# Let the site file select an alternate cache file if it wants to.
bafecfd6 1364# Prefer explicitly selected file to automatically selected ones.
2caa45c4
EB
1365if test -z "$CONFIG_SITE"; then
1366 if test "x$prefix" != xNONE; then
1367 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1368 else
1369 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
bafecfd6
NN
1370 fi
1371fi
1372for ac_site_file in $CONFIG_SITE; do
1373 if test -r "$ac_site_file"; then
b58b6ee1
DJ
1374 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1375echo "$as_me: loading site script $ac_site_file" >&6;}
1376 sed 's/^/| /' "$ac_site_file" >&5
bafecfd6
NN
1377 . "$ac_site_file"
1378 fi
1379done
1380
1381if test -r "$cache_file"; then
b58b6ee1
DJ
1382 # Some versions of bash will fail to source /dev/null (special
1383 # files actually), so we avoid doing that.
1384 if test -f "$cache_file"; then
1385 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1386echo "$as_me: loading cache $cache_file" >&6;}
1387 case $cache_file in
1388 [\\/]* | ?:[\\/]* ) . $cache_file;;
1389 *) . ./$cache_file;;
1390 esac
1391 fi
bafecfd6 1392else
b58b6ee1
DJ
1393 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1394echo "$as_me: creating cache $cache_file" >&6;}
1395 >$cache_file
1396fi
1397
1398# Check that the precious variables saved in the cache have kept the same
1399# value.
1400ac_cache_corrupted=false
1401for ac_var in `(set) 2>&1 |
1402 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1404 eval ac_new_set=\$ac_env_${ac_var}_set
1405 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1406 eval ac_new_val="\$ac_env_${ac_var}_value"
1407 case $ac_old_set,$ac_new_set in
1408 set,)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,set)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,);;
1417 *)
1418 if test "x$ac_old_val" != "x$ac_new_val"; then
edd8c172
PB
1419 # differences in whitespace do not lead to failure.
1420 ac_old_val_w=`echo x $ac_old_val`
1421 ac_new_val_w=`echo x $ac_new_val`
1422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
b58b6ee1 1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
edd8c172
PB
1425 ac_cache_corrupted=:
1426 else
1427 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1428echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1429 eval $ac_var=\$ac_old_val
1430 fi
1431 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1432echo "$as_me: former value: \`$ac_old_val'" >&2;}
1433 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1434echo "$as_me: current value: \`$ac_new_val'" >&2;}
b58b6ee1
DJ
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
7fb8d612
RW
1451 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1452echo "$as_me: error: in \`$ac_pwd':" >&2;}
b58b6ee1
DJ
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
bafecfd6
NN
1458fi
1459
1460ac_ext=c
bafecfd6 1461ac_cpp='$CPP $CPPFLAGS'
b58b6ee1
DJ
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
bafecfd6
NN
1478
1479
ea20b7eb 1480
b58b6ee1 1481
7fb8d612
RW
1482
1483
1484
b58b6ee1
DJ
1485
1486
1487
00f8aa9c
RW
1488
1489progname=$0
1490# if PWD already has a value, it is probably wrong.
1491if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1492
1493# Export original configure arguments for use by sub-configures.
1494# Quote arguments with shell meta charatcers.
1495TOPLEVEL_CONFIGURE_ARGUMENTS=
1496set -- "$progname" "$@"
1497for ac_arg
1498do
1499 case "$ac_arg" in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1502 # if the argument is of the form -foo=baz, quote the baz part only
1503 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1504 *) ;;
1505 esac
1506 # Add the quoted argument to the list.
1507 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1508done
1509if test "$silent" = yes; then
1510 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1511fi
1512# Remove the initial space we just introduced and, as these will be
1513# expanded by make, quote '$'.
1514TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1515
b58b6ee1
DJ
1516
1517# Find the build, host, and target systems.
bafecfd6 1518ac_aux_dir=
9ab64c4a 1519for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
bafecfd6
NN
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
b58b6ee1
DJ
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
bafecfd6
NN
1532 fi
1533done
1534if test -z "$ac_aux_dir"; then
b58b6ee1
DJ
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
bafecfd6 1538fi
b58b6ee1
DJ
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
bafecfd6 1542
b58b6ee1
DJ
1543# Make sure we can run config.sub.
1544$ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549echo "$as_me:$LINENO: checking build system type" >&5
1550echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_build_alias=$build_alias
1555test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566fi
1567echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568echo "${ECHO_T}$ac_cv_build" >&6
1569build=$ac_cv_build
1570build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bafecfd6 1573
bafecfd6 1574
b58b6ee1
DJ
1575 case ${build_alias} in
1576 "") build_noncanonical=${build} ;;
1577 *) build_noncanonical=${build_alias} ;;
f69e2532
CM
1578esac
1579
1580
f69e2532 1581
b58b6ee1
DJ
1582 case ${host_alias} in
1583 "") host_noncanonical=${build_noncanonical} ;;
1584 *) host_noncanonical=${host_alias} ;;
f69e2532
CM
1585esac
1586
f69e2532 1587
b58b6ee1
DJ
1588
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
f69e2532
CM
1592esac
1593
f69e2532 1594
b58b6ee1
DJ
1595
1596
1597test "$host_noncanonical" = "$target_noncanonical" &&
bafecfd6
NN
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
b58b6ee1 1600 program_transform_name=s,y,y,
f69e2532 1601
b58b6ee1
DJ
1602echo "$as_me:$LINENO: checking host system type" >&5
1603echo $ECHO_N "checking host system type... $ECHO_C" >&6
1604if test "${ac_cv_host+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
f69e2532 1606else
b58b6ee1
DJ
1607 ac_cv_host_alias=$host_alias
1608test -z "$ac_cv_host_alias" &&
1609 ac_cv_host_alias=$ac_cv_build_alias
1610ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1611 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1612echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1613 { (exit 1); exit 1; }; }
1614
1615fi
1616echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1617echo "${ECHO_T}$ac_cv_host" >&6
1618host=$ac_cv_host
1619host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622
1623
1624echo "$as_me:$LINENO: checking target system type" >&5
1625echo $ECHO_N "checking target system type... $ECHO_C" >&6
1626if test "${ac_cv_target+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_target_alias=$target_alias
1630test "x$ac_cv_target_alias" = "x" &&
1631 ac_cv_target_alias=$ac_cv_host_alias
1632ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1633 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1634echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1635 { (exit 1); exit 1; }; }
1636
f69e2532 1637fi
b58b6ee1
DJ
1638echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1639echo "${ECHO_T}$ac_cv_target" >&6
1640target=$ac_cv_target
1641target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1642target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1643target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644
1645
1646# The aliases save the names the user supplied, while $host etc.
1647# will get canonicalized.
1648test -n "$target_alias" &&
1649 test "$program_prefix$program_suffix$program_transform_name" = \
1650 NONENONEs,x,x, &&
1651 program_prefix=${target_alias}-
bafecfd6 1652test "$program_prefix" != NONE &&
b58b6ee1 1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bafecfd6
NN
1654# Use a double $ so make ignores it.
1655test "$program_suffix" != NONE &&
b58b6ee1
DJ
1656 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657# Double any \ or $. echo might interpret backslashes.
1658# By default was `s,x,x', remove it if useless.
1659cat <<\_ACEOF >conftest.sed
1660s/[\\$]/&&/g;s/;s,x,x,$//
1661_ACEOF
1662program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663rm conftest.sed
f69e2532 1664
bafecfd6
NN
1665
1666
282c0e47
NN
1667# Get 'install' or 'install-sh' and its variants.
1668# Find a good install program. We prefer a C program (faster),
1669# so one script is as good as another. But avoid the broken or
1670# incompatible versions:
1671# SysV /etc/install, /usr/sbin/install
1672# SunOS /usr/etc/install
1673# IRIX /sbin/install
1674# AIX /bin/install
b58b6ee1 1675# AmigaOS /C/install, which installs bootblocks on floppy discs
282c0e47
NN
1676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b58b6ee1 1679# OS/2's system install, which has a completely different semantic
282c0e47 1680# ./install, which can be erroneously created by make from ./install.sh.
e30fd60f 1681# Reject install programs that cannot install multiple files.
b58b6ee1
DJ
1682echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1683echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
282c0e47 1684if test -z "$INSTALL"; then
b58b6ee1
DJ
1685if test "${ac_cv_path_install+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 # Account for people who put trailing slashes in PATH elements.
1694case $as_dir/ in
1695 ./ | .// | /cC/* | \
1696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1698 /usr/ucb/* ) ;;
1699 *)
1700 # OSF1 and SCO ODT 3.0 have their own names for install.
1701 # Don't use installbsd from OSF since it installs stuff as root
1702 # by default.
1703 for ac_prog in ginstall scoinst install; do
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
282c0e47 1706 if test $ac_prog = install &&
b58b6ee1 1707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
282c0e47
NN
1708 # AIX install. It has an incompatible calling convention.
1709 :
b58b6ee1
DJ
1710 elif test $ac_prog = install &&
1711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1712 # program-specific install script used by HP pwplus--don't use.
1713 :
282c0e47 1714 else
e30fd60f
RW
1715 rm -rf conftest.one conftest.two conftest.dir
1716 echo one > conftest.one
1717 echo two > conftest.two
1718 mkdir conftest.dir
1719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1720 test -s conftest.one && test -s conftest.two &&
1721 test -s conftest.dir/conftest.one &&
1722 test -s conftest.dir/conftest.two
1723 then
1724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1725 break 3
1726 fi
282c0e47
NN
1727 fi
1728 fi
1729 done
b58b6ee1
DJ
1730 done
1731 ;;
1732esac
1733done
1734
e30fd60f 1735rm -rf conftest.one conftest.two conftest.dir
282c0e47
NN
1736
1737fi
1738 if test "${ac_cv_path_install+set}" = set; then
b58b6ee1 1739 INSTALL=$ac_cv_path_install
282c0e47 1740 else
e30fd60f
RW
1741 # As a last resort, use the slow shell script. Don't cache a
1742 # value for INSTALL within a source directory, because that will
282c0e47 1743 # break other packages using the cache if that directory is
e30fd60f 1744 # removed, or if the value is a relative name.
b58b6ee1 1745 INSTALL=$ac_install_sh
282c0e47
NN
1746 fi
1747fi
b58b6ee1
DJ
1748echo "$as_me:$LINENO: result: $INSTALL" >&5
1749echo "${ECHO_T}$INSTALL" >&6
282c0e47
NN
1750
1751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1752# It thinks the first close brace ends the variable substitution.
1753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754
b58b6ee1 1755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
282c0e47
NN
1756
1757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1758
b58b6ee1
DJ
1759echo "$as_me:$LINENO: checking whether ln works" >&5
1760echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1761if test "${acx_cv_prog_LN+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
21ff191e
PB
1763else
1764 rm -f conftestdata_t
1765echo >conftestdata_f
1766if ln conftestdata_f conftestdata_t 2>/dev/null
1767then
1768 acx_cv_prog_LN=ln
1769else
1770 acx_cv_prog_LN=no
1771fi
1772rm -f conftestdata_f conftestdata_t
1773
1774fi
1775if test $acx_cv_prog_LN = no; then
1776 LN="cp"
b58b6ee1
DJ
1777 echo "$as_me:$LINENO: result: no, using $LN" >&5
1778echo "${ECHO_T}no, using $LN" >&6
21ff191e
PB
1779else
1780 LN="$acx_cv_prog_LN"
b58b6ee1
DJ
1781 echo "$as_me:$LINENO: result: yes" >&5
1782echo "${ECHO_T}yes" >&6
21ff191e
PB
1783fi
1784
b58b6ee1
DJ
1785echo "$as_me:$LINENO: checking whether ln -s works" >&5
1786echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1787LN_S=$as_ln_s
1788if test "$LN_S" = "ln -s"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
f69e2532 1791else
b58b6ee1
DJ
1792 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1793echo "${ECHO_T}no, using $LN_S" >&6
35269421
PB
1794fi
1795
282c0e47 1796
a3acbf46 1797### we might need to use some other shell than /bin/sh for running subshells
a3acbf46
RH
1798### If we are on Windows, search for the shell. This will permit people
1799### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1800### without also having to set CONFIG_SHELL. This code will work when
1801### using bash, which sets OSTYPE.
1802case "${OSTYPE}" in
1803*win32*)
bafecfd6
NN
1804 if test x${CONFIG_SHELL} = x ; then
1805 if test ! -f /bin/sh ; then
1806 if test x${SHELL} != x && test -f ${SHELL} ; then
a3acbf46
RH
1807 CONFIG_SHELL=${SHELL}
1808 export CONFIG_SHELL
1809 else
1810 for prog in sh sh.exe bash bash.exe; do
1811 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1812 for dir in $PATH; do
1813 test -z "$dir" && dir=.
1814 if test -f $dir/$prog; then
1815 CONFIG_SHELL=$dir/$prog
1816 export CONFIG_SHELL
1817 break
1818 fi
1819 done
1820 IFS="$save_ifs"
1821 test -n "${CONFIG_SHELL}" && break
1822 done
1823 fi
1824 fi
1825 fi
1826 ;;
1827esac
1828
1829config_shell=${CONFIG_SHELL-/bin/sh}
1830
bafecfd6 1831moveifchange=${srcdir}/move-if-change
a3acbf46 1832
714fa3b8
DJ
1833srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1834
1835# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1836# a relative path.
1837if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1838 INSTALL="${srcpwd}/install-sh -c"
1839fi
1840
bafecfd6
NN
1841# Set srcdir to "." if that's what it is.
1842# This is important for multilib support.
1843pwd=`${PWDCMD-pwd}`
bafecfd6
NN
1844if test "${pwd}" = "${srcpwd}" ; then
1845 srcdir=.
a3acbf46
RH
1846fi
1847
bafecfd6 1848topsrcdir=$srcpwd
a3acbf46 1849
bafecfd6 1850extra_host_args=
afdaeaab 1851
bafecfd6
NN
1852### To add a new directory to the tree, first choose whether it is a target
1853### or a host dependent tool. Then put it into the appropriate list
1854### (library or tools, host or target), doing a dependency sort.
a3acbf46 1855
b58b6ee1 1856# Subdirs will be configured in the order listed in build_configdirs,
bafecfd6 1857# configdirs, or target_configdirs; see the serialization section below.
a3acbf46 1858
b58b6ee1
DJ
1859# Dependency sorting is only needed when *configuration* must be done in
1860# a particular order. In all cases a dependency should be specified in
bafecfd6 1861# the Makefile, whether or not it's implicitly specified here.
a3acbf46 1862
bafecfd6
NN
1863# Double entries in build_configdirs, configdirs, or target_configdirs may
1864# cause circular dependencies and break everything horribly.
a3acbf46 1865
2cb47d68
PB
1866# these library is used by various programs built for the build
1867# environment
1868#
1869build_libs="build-libiberty"
1870
1871# these tools are built for the build environment
607d4caf 1872build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2cb47d68 1873
bafecfd6
NN
1874# these libraries are used by various programs built for the host environment
1875#
42f55f77 1876host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
bafecfd6 1877
bafecfd6
NN
1878# these tools are built for the host environment
1879# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1880# know that we are building the simulator.
1881# binutils, gas and ld appear in that order because it makes sense to run
1882# "make check" in that particular order.
b916272a 1883# If --enable-gold is used, "gold" will replace "ld".
7fc2ca22 1884host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
bafecfd6
NN
1885
1886# libgcj represents the runtime libraries only used by gcj.
1887libgcj="target-libffi \
bafecfd6
NN
1888 target-zlib \
1889 target-qthreads \
1890 target-libjava"
1891
1892# these libraries are built for the target environment, and are built after
1893# the host libraries and the host tools (which may be a cross compiler)
1894#
1277a9a0
DJ
1895target_libraries="target-libgcc \
1896 target-libiberty \
bafecfd6
NN
1897 target-libgloss \
1898 target-newlib \
a8c17d42 1899 target-libgomp \
76ab491a 1900 target-libstdc++-v3 \
cb2333e8 1901 target-libmudflap \
2c193664 1902 target-libssp \
cb2333e8 1903 target-libgfortran \
e1e5148c 1904 target-boehm-gc \
6f2480fb 1905 ${libgcj} \
d832a288 1906 target-libobjc \
a8c17d42 1907 target-libada"
bafecfd6 1908
5283b643
NN
1909# these tools are built using the target libraries, and are intended to
1910# run only in the target environment
bafecfd6 1911#
5283b643 1912# note: any program that *uses* libraries that are in the "target_libraries"
bafecfd6
NN
1913# list belongs in this list. those programs are also very likely
1914# candidates for the "native_only" list which follows
1915#
1905b739 1916target_tools="target-examples target-groff target-gperf target-rda"
a3acbf46 1917
bafecfd6 1918################################################################################
a3acbf46 1919
bafecfd6
NN
1920## All tools belong in one of the four categories, and are assigned above
1921## We assign ${configdirs} this way to remove all embedded newlines. This
1922## is important because configure will choke if they ever get through.
1923## ${configdirs} is directories we build using the host tools.
1924## ${target_configdirs} is directories we build using the target tools.
bafecfd6 1925configdirs=`echo ${host_libs} ${host_tools}`
5283b643 1926target_configdirs=`echo ${target_libraries} ${target_tools}`
607d4caf 1927build_configdirs=`echo ${build_libs} ${build_tools}`
9b520963 1928
3fbb5e3d
PB
1929
1930
bafecfd6 1931################################################################################
a3acbf46 1932
bafecfd6 1933srcname="gnu development package"
a3acbf46 1934
bafecfd6
NN
1935# This gets set non-empty for some net releases of packages.
1936appdirs=""
a3acbf46 1937
bafecfd6
NN
1938# Define is_cross_compiler to save on calls to 'test'.
1939is_cross_compiler=
1940if test x"${host}" = x"${target}" ; then
1941 is_cross_compiler=no
a3acbf46 1942else
bafecfd6 1943 is_cross_compiler=yes
b58b6ee1 1944fi
a3acbf46 1945
df4b5a9c 1946# Find the build and target subdir names.
9b520963 1947
3160f998
DJ
1948# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1949# have matching libraries, they should use host libraries: Makefile.tpl
1950# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1951# However, they still use the build modules, because the corresponding
1952# host modules (e.g. bison) are only built for the host when bootstrap
1953# finishes. So:
1954# - build_subdir is where we find build modules, and never changes.
1955# - build_libsubdir is where we find build libraries, and can be overridden.
1956
1957# Prefix 'build-' so this never conflicts with target_subdir.
9b520963 1958build_subdir="build-${build_noncanonical}"
b58b6ee1 1959
3160f998
DJ
1960# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1961if test "${with_build_libsubdir+set}" = set; then
1962 withval="$with_build_libsubdir"
1963 build_libsubdir="$withval"
1964else
1965 build_libsubdir="$build_subdir"
b58b6ee1 1966fi;
7fc2ca22
PB
1967# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1968if ( test $srcdir = . && test -d gcc ) \
1969 || test -d $srcdir/../host-${host_noncanonical}; then
1970 host_subdir="host-${host_noncanonical}"
1971else
1972 host_subdir=.
1973fi
9b520963
NN
1974# No prefix.
1975target_subdir=${target_noncanonical}
b58b6ee1 1976
a3acbf46 1977
bafecfd6
NN
1978# Skipdirs are removed silently.
1979skipdirs=
1980# Noconfigdirs are removed loudly.
1981noconfigdirs=""
a3acbf46 1982
bafecfd6
NN
1983use_gnu_ld=
1984# Make sure we don't let GNU ld be added if we didn't want it.
1985if test x$with_gnu_ld = xno ; then
1986 use_gnu_ld=no
b916272a 1987 noconfigdirs="$noconfigdirs ld gold"
a3acbf46
RH
1988fi
1989
bafecfd6
NN
1990use_gnu_as=
1991# Make sure we don't let GNU as be added if we didn't want it.
1992if test x$with_gnu_as = xno ; then
1993 use_gnu_as=no
1994 noconfigdirs="$noconfigdirs gas"
a3acbf46
RH
1995fi
1996
b58b6ee1 1997# some tools are so dependent upon X11 that if we're not building with X,
bafecfd6 1998# it's not even worth trying to configure, much less build, that tool.
a3acbf46 1999
bafecfd6
NN
2000case ${with_x} in
2001 yes | "") ;; # the default value for this tree is that X11 is available
2002 no)
44397772 2003 skipdirs="${skipdirs} tk itcl libgui"
bafecfd6 2004 # We won't be able to build gdbtk without X.
b58b6ee1 2005 enable_gdbtk=no
bafecfd6
NN
2006 ;;
2007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2008esac
a3acbf46 2009
bafecfd6 2010# Some tools are only suitable for building in a "native" situation.
b58b6ee1 2011# Remove these if host!=target.
89af1688 2012native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
a3acbf46 2013
bafecfd6
NN
2014# Similarly, some are only suitable for cross toolchains.
2015# Remove these if host=target.
2016cross_only="target-libgloss target-newlib target-opcodes"
2017
2018case $is_cross_compiler in
2019 no) skipdirs="${skipdirs} ${cross_only}" ;;
2020 yes) skipdirs="${skipdirs} ${native_only}" ;;
2021esac
a3acbf46 2022
bafecfd6
NN
2023# If both --with-headers and --with-libs are specified, default to
2024# --without-newlib.
09ebdaf7
RS
2025if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
bafecfd6
NN
2027 if test x"${with_newlib}" = x ; then
2028 with_newlib=no
2029 fi
a3acbf46
RH
2030fi
2031
bafecfd6
NN
2032# Recognize --with-newlib/--without-newlib.
2033case ${with_newlib} in
2034 no) skipdirs="${skipdirs} target-newlib" ;;
2035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2036esac
a3acbf46 2037
b916272a
ILT
2038# Handle --enable-gold.
2039
2040# Check whether --enable-gold or --disable-gold was given.
2041if test "${enable_gold+set}" = set; then
2042 enableval="$enable_gold"
2043 ENABLE_GOLD=$enableval
2044else
2045 ENABLE_GOLD=no
2046fi;
2047if test "${ENABLE_GOLD}" = "yes"; then
2048 # Check for ELF target.
2049 is_elf=no
2050 case "${target}" in
2051 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2052 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2053 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2054 case "${target}" in
2055 *-*-linux*aout* | *-*-linux*oldld*)
2056 ;;
2057 *)
2058 is_elf=yes
2059 ;;
2060 esac
2061 esac
2062
2063 if test "$is_elf" = "yes"; then
2064 # Check for target supported by gold.
2065 case "${target}" in
4a386f08 2066 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
b916272a
ILT
2067 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2068 ;;
2069 esac
2070 fi
2071fi
2072
bafecfd6 2073# Configure extra directories which are host specific
a3acbf46 2074
bafecfd6
NN
2075case "${host}" in
2076 *-cygwin*)
2077 configdirs="$configdirs libtermcap" ;;
2078esac
a3acbf46 2079
aac893c5
HPN
2080# A target can indicate whether a language isn't supported for some reason.
2081# Only spaces may be used in this macro; not newlines or tabs.
2082unsupported_languages=
2083
b58b6ee1 2084# Remove more programs from consideration, based on the host or
bafecfd6
NN
2085# target this usually means that a port of the program doesn't
2086# exist yet.
a3acbf46 2087
bafecfd6
NN
2088case "${host}" in
2089 hppa*64*-*-*)
2090 noconfigdirs="$noconfigdirs byacc"
2091 ;;
08049c01 2092 i[3456789]86-*-vsta)
44397772 2093 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
bafecfd6 2094 ;;
08049c01 2095 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
44397772 2096 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2245eb63 2097 ;;
6a24f03b
NC
2098 x86_64-*-mingw*)
2099 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2100 ;;
08049c01 2101 i[3456789]86-*-mingw32*)
44397772 2102 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
bc668665 2103 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2245eb63 2104 ;;
08049c01 2105 i[3456789]86-*-beos*)
44397772 2106 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2245eb63 2107 ;;
bafecfd6 2108 *-*-cygwin*)
b18ee8a2 2109 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
bafecfd6
NN
2110 ;;
2111 *-*-netbsd*)
b18ee8a2 2112 noconfigdirs="$noconfigdirs rcs"
bafecfd6
NN
2113 ;;
2114 ppc*-*-pe)
44397772 2115 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
bafecfd6
NN
2116 ;;
2117 powerpc-*-beos*)
44397772 2118 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
bafecfd6 2119 ;;
bafecfd6 2120esac
a3acbf46 2121
cb2333e8 2122
d832a288
DD
2123# Check whether --enable-libada or --disable-libada was given.
2124if test "${enable_libada+set}" = set; then
2125 enableval="$enable_libada"
2126 ENABLE_LIBADA=$enableval
2127else
2128 ENABLE_LIBADA=yes
b58b6ee1 2129fi;
d832a288 2130if test "${ENABLE_LIBADA}" != "yes" ; then
7fc2ca22 2131 noconfigdirs="$noconfigdirs gnattools"
d832a288
DD
2132fi
2133
fa19ba07
KH
2134# Check whether --enable-libssp or --disable-libssp was given.
2135if test "${enable_libssp+set}" = set; then
2136 enableval="$enable_libssp"
2137 ENABLE_LIBSSP=$enableval
2138else
2139 ENABLE_LIBSSP=yes
b58b6ee1 2140fi;
fa19ba07 2141
bafecfd6
NN
2142# Save it here so that, even in case of --enable-libgcj, if the Java
2143# front-end isn't enabled, we still get libgcj disabled.
2144libgcj_saved=$libgcj
2145case $enable_libgcj in
2146yes)
2147 # If we reset it here, it won't get added to noconfigdirs in the
2148 # target-specific build rules, so it will be forcibly enabled
2149 # (unless the Java language itself isn't enabled).
2150 libgcj=
2151 ;;
2152no)
2153 # Make sure we get it printed in the list of not supported target libs.
2154 noconfigdirs="$noconfigdirs ${libgcj}"
2155 ;;
2156esac
a3acbf46 2157
cb2333e8 2158
f621a0dc
PB
2159# Disable libmudflap on some systems.
2160if test x$enable_libmudflap = x ; then
96979a18 2161 case "${target}" in
6e3117d5 2162 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
824cf273 2163 # Enable libmudflap by default in GNU and friends.
96979a18
PB
2164 ;;
2165 *-*-freebsd*)
2166 # Enable libmudflap by default in FreeBSD.
2167 ;;
2168 *)
2169 # Disable it by default everywhere else.
2170 noconfigdirs="$noconfigdirs target-libmudflap"
2171 ;;
2172 esac
f621a0dc 2173fi
cb2333e8 2174
f621a0dc
PB
2175# Disable libgomp on non POSIX hosted systems.
2176if test x$enable_libgomp = x ; then
00bc9d7f
PB
2177 # Enable libgomp by default on hosted POSIX systems.
2178 case "${target}" in
2179 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2180 ;;
2181 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2182 ;;
f90716dd 2183 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
00bc9d7f
PB
2184 ;;
2185 *-*-darwin* | *-*-aix*)
2186 ;;
2187 *)
2188 noconfigdirs="$noconfigdirs target-libgomp"
2189 ;;
2190 esac
f621a0dc 2191fi
00bc9d7f 2192
46093329
DD
2193# Default libgloss CPU subdirectory.
2194libgloss_dir="$target_cpu"
cb2333e8 2195
bafecfd6
NN
2196case "${target}" in
2197 *-*-chorusos)
f9a26685 2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
bafecfd6 2199 ;;
3d711a27 2200 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
173af0fb 2201 noconfigdirs="$noconfigdirs ld gas gdb gprof"
bbaae19b 2202 noconfigdirs="$noconfigdirs sim target-rda"
44dc96d1 2203 ;;
4b649dd9 2204 *-*-darwin*)
56fa0798 2205 noconfigdirs="$noconfigdirs ld gas gdb gprof"
bbaae19b 2206 noconfigdirs="$noconfigdirs sim target-rda"
f9a26685 2207 noconfigdirs="$noconfigdirs ${libgcj}"
4b649dd9 2208 ;;
bafecfd6 2209 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
f9a26685 2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
bafecfd6 2211 ;;
eb2d1dee 2212 *-*-freebsd*)
cb2333e8
DD
2213 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2214 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2215 && test -f /usr/local/include/gmp.h; then
2216 with_gmp=/usr/local
2217 fi
2218
2219 # Skip some stuff that's unsupported on some FreeBSD configurations.
2220 case "${target}" in
2221 i*86-*-*) ;;
2222 alpha*-*-*) ;;
2223 *)
f9a26685 2224 noconfigdirs="$noconfigdirs ${libgcj}"
cb2333e8
DD
2225 ;;
2226 esac
2227 ;;
5cd57f01
NC
2228 *-*-kaos*)
2229 # Remove unsupported stuff on all kaOS configurations.
f9a26685 2230 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
5cd57f01
NC
2231 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2232 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2233 noconfigdirs="$noconfigdirs target-libgloss"
2234 ;;
bafecfd6
NN
2235 *-*-netbsd*)
2236 # Skip some stuff on all NetBSD configurations.
2237 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2238
2239 # Skip some stuff that's unsupported on some NetBSD configurations.
2240 case "${target}" in
2241 i*86-*-netbsdelf*) ;;
09f7abda 2242 arm*-*-netbsdelf*) ;;
bafecfd6 2243 *)
f9a26685 2244 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
2245 ;;
2246 esac
2247 ;;
b330724f 2248 *-*-netware*)
f9a26685 2249 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
bafecfd6
NN
2250 ;;
2251 *-*-rtems*)
f9a26685 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 2253 ;;
3d93afbc
EC
2254 # The tpf target doesn't support gdb yet.
2255 *-*-tpf*)
f9a26685 2256 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3d93afbc 2257 ;;
1fb9256d 2258 *-*-uclinux*)
f9a26685 2259 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1fb9256d 2260 ;;
bafecfd6 2261 *-*-vxworks*)
f9a26685 2262 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
bafecfd6
NN
2263 ;;
2264 alpha*-dec-osf*)
2265 # ld works, but does not support shared libraries.
2266 # newlib is not 64 bit ready. I'm not sure about fileutils.
2267 # gas doesn't generate exception information.
2268 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2269 ;;
2270 alpha*-*-*vms*)
f9a26685 2271 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
bafecfd6
NN
2272 ;;
2273 alpha*-*-linux*)
2274 # newlib is not 64 bit ready
2275 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2276 ;;
bafecfd6
NN
2277 alpha*-*-*)
2278 # newlib is not 64 bit ready
f9a26685 2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
bafecfd6 2280 ;;
24431cf0 2281 am33_2.0-*-linux*)
f9a26685 2282 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
24431cf0 2283 ;;
bafecfd6 2284 sh-*-linux*)
f9a26685 2285 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
b58b6ee1 2286 ;;
bafecfd6 2287 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f9a26685 2288 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
2289 noconfigdirs="$noconfigdirs target-examples"
2290 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
44397772 2291 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
bafecfd6
NN
2292 noconfigdirs="$noconfigdirs expect dejagnu"
2293 # the C++ libraries don't build on top of CE's C libraries
76ab491a 2294 noconfigdirs="$noconfigdirs target-libstdc++-v3"
bafecfd6
NN
2295 noconfigdirs="$noconfigdirs target-newlib"
2296 case "${host}" in
2297 *-*-cygwin*) ;; # keep gdb and readline
76ab491a 2298 *) noconfigdirs="$noconfigdirs gdb readline"
bafecfd6
NN
2299 ;;
2300 esac
46093329 2301 libgloss_dir=wince
bafecfd6
NN
2302 ;;
2303 arc-*-*)
f9a26685 2304 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 2305 ;;
3d439922 2306 arm-semi-aof )
3d439922 2307 ;;
bafecfd6 2308 arm-*-coff | strongarm-*-coff | xscale-*-coff)
f9a26685 2309 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 2310 libgloss_dir=arm
bafecfd6 2311 ;;
cbd6bc14 2312 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
bafecfd6 2313 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
46093329 2314 libgloss_dir=arm
bafecfd6 2315 ;;
458e6564 2316 arm*-*-linux-gnueabi)
602c33ba 2317 noconfigdirs="$noconfigdirs target-qthreads"
2ece9217
DD
2318 case ${with_newlib} in
2319 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2320 esac
46093329 2321 libgloss_dir=arm
458e6564 2322 ;;
07768fdb 2323 arm*-*-symbianelf*)
f9a26685 2324 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
46093329 2325 libgloss_dir=arm
07768fdb 2326 ;;
bafecfd6 2327 arm-*-pe*)
f9a26685 2328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 2329 ;;
bafecfd6 2330 thumb-*-coff)
f9a26685 2331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
2332 ;;
2333 thumb-*-elf)
f9a26685 2334 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 2335 ;;
bafecfd6 2336 thumb-*-pe)
f9a26685 2337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
2338 ;;
2339 arm-*-riscix*)
f9a26685 2340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
bafecfd6
NN
2341 ;;
2342 avr-*-*)
edd8c172 2343 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
bafecfd6 2344 ;;
76402c80 2345 bfin-*-*)
2d46f1dd 2346 noconfigdirs="$noconfigdirs gdb"
a68fc753 2347 if test x${is_cross_compiler} != xno ; then
76402c80
CM
2348 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2349 fi
2350 ;;
bafecfd6 2351 c4x-*-* | tic4x-*-*)
f9a26685 2352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
bafecfd6
NN
2353 ;;
2354 c54x*-*-* | tic54x-*-*)
f9a26685 2355 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
bafecfd6 2356 ;;
dbd35e4d
NC
2357 cr16-*-*)
2358 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2359 ;;
139acfca 2360 cris-*-* | crisv32-*-*)
aac893c5 2361 unsupported_languages="$unsupported_languages java"
139acfca 2362 case "${target}" in
0d3442bf 2363 *-*-aout)
c2105cb9 2364 unsupported_languages="$unsupported_languages fortran"
aac893c5 2365 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
0d3442bf 2366 *-*-elf)
7066fc51 2367 noconfigdirs="$noconfigdirs target-boehm-gc";;
0d3442bf 2368 *-*-linux*)
7066fc51 2369 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
139acfca 2370 *)
c2105cb9 2371 unsupported_languages="$unsupported_languages fortran"
f9a26685 2372 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
139acfca 2373 esac
46093329 2374 libgloss_dir=cris
bafecfd6 2375 ;;
96979a18 2376 crx-*-*)
f9a26685 2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
96979a18 2378 ;;
bafecfd6 2379 d10v-*-*)
f9a26685 2380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
bafecfd6
NN
2381 ;;
2382 d30v-*-*)
f9a26685 2383 noconfigdirs="$noconfigdirs ${libgcj} gdb"
bafecfd6 2384 ;;
46093329
DD
2385 ep9312-*-elf | ep9312-*-coff)
2386 libgloss_dir=arm
2387 ;;
bafecfd6 2388 fr30-*-elf*)
f9a26685 2389 noconfigdirs="$noconfigdirs ${libgcj} gdb"
bafecfd6
NN
2390 ;;
2391 frv-*-*)
f9a26685 2392 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
2393 ;;
2394 h8300*-*-*)
f9a26685 2395 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
2396 ;;
2397 h8500-*-*)
f9a26685 2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
bafecfd6 2399 ;;
3d439922 2400 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3d439922 2401 ;;
bafecfd6
NN
2402 hppa*64*-*-linux* | parisc*64*-*-linux*)
2403 # In this case, it's because the hppa64-linux target is for
2404 # the kernel only at this point and has no libc, and thus no
2405 # headers, crt*.o, etc., all of which are needed by these.
2406 noconfigdirs="$noconfigdirs target-zlib"
2407 ;;
53af4f25
JDA
2408 parisc*-*-linux* | hppa*-*-linux*)
2409 ;;
bafecfd6 2410 hppa*-*-*elf* | \
bafecfd6
NN
2411 hppa*-*-lites* | \
2412 hppa*-*-openbsd* | \
2413 hppa*64*-*-*)
f9a26685 2414 noconfigdirs="$noconfigdirs ${libgcj}"
e1e5148c
CD
2415 ;;
2416 hppa*-hp-hpux11*)
2417 noconfigdirs="$noconfigdirs ld shellutils"
bafecfd6 2418 ;;
46093329
DD
2419 hppa*-*-pro*)
2420 libgloss_dir=pa
2421 ;;
bafecfd6
NN
2422 hppa*-*-*)
2423 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2424 # build on HP-UX 10.20.
f9a26685 2425 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
bafecfd6 2426 ;;
7e269125 2427 i960-*-*)
f9a26685 2428 noconfigdirs="$noconfigdirs ${libgcj} gdb"
7e269125 2429 ;;
bafecfd6
NN
2430 ia64*-*-elf*)
2431 # No gdb support yet.
44397772 2432 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
bafecfd6
NN
2433 ;;
2434 ia64*-**-hpux*)
2435 # No gdb or ld support yet.
f9a26685 2436 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
bafecfd6 2437 ;;
3d439922 2438 i370-*-opened*)
3d439922 2439 ;;
08049c01 2440 i[3456789]86-*-coff | i[3456789]86-*-elf)
f9a26685 2441 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 2442 libgloss_dir=i386
bafecfd6 2443 ;;
08049c01 2444 i[3456789]86-*-linux*)
bafecfd6
NN
2445 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2446 # not build java stuff by default.
2447 case "${target}" in
2448 *-*-*libc1*)
f9a26685 2449 noconfigdirs="$noconfigdirs ${libgcj}";;
bafecfd6
NN
2450 esac
2451
2452 # This section makes it possible to build newlib natively on linux.
2453 # If we are using a cross compiler then don't configure newlib.
2454 if test x${is_cross_compiler} != xno ; then
2245eb63 2455 noconfigdirs="$noconfigdirs target-newlib"
bafecfd6
NN
2456 fi
2457 noconfigdirs="$noconfigdirs target-libgloss"
2458 # If we are not using a cross compiler, do configure newlib.
2459 # Note however, that newlib will only be configured in this situation
2460 # if the --with-newlib option has been given, because otherwise
2461 # 'target-newlib' will appear in skipdirs.
2462 ;;
08049c01 2463 i[3456789]86-*-mingw32*)
bc668665
CV
2464 target_configdirs="$target_configdirs target-winsup"
2465 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b58b6ee1 2466 ;;
6a24f03b
NC
2467 x86_64-*-mingw*)
2468 target_configdirs="$target_configdirs target-winsup"
2469 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b58b6ee1 2470 ;;
bafecfd6
NN
2471 *-*-cygwin*)
2472 target_configdirs="$target_configdirs target-libtermcap target-winsup"
f9a26685 2473 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
99dbec4c 2474 # always build newlib if winsup directory is present.
bc668665 2475 if test -d "$srcdir/winsup/cygwin"; then
99dbec4c 2476 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4ea74b34 2477 elif test -d "$srcdir/newlib"; then
bc668665 2478 echo "Warning: winsup/cygwin is missing so newlib can't be built."
99dbec4c 2479 fi
b58b6ee1 2480 ;;
3d439922
AL
2481 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2482 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3d439922 2483 ;;
08049c01 2484 i[3456789]86-*-pe)
f9a26685 2485 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
bafecfd6 2486 ;;
08049c01 2487 i[3456789]86-*-sco3.2v5*)
bafecfd6
NN
2488 # The linker does not yet know about weak symbols in COFF,
2489 # and is not configured to handle mixed ELF and COFF.
f9a26685 2490 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
bafecfd6 2491 ;;
08049c01 2492 i[3456789]86-*-sco*)
f9a26685 2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
bafecfd6 2494 ;;
08049c01 2495 i[3456789]86-*-solaris2*)
bafecfd6
NN
2496 noconfigdirs="$noconfigdirs target-libgloss"
2497 ;;
08049c01 2498 i[3456789]86-*-sysv4*)
f9a26685 2499 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 2500 ;;
08049c01 2501 i[3456789]86-*-beos*)
f9a26685 2502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2245eb63 2503 ;;
22d7108e 2504 i[3456789]86-*-rdos*)
fef3f213
PB
2505 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2506 ;;
7e269125 2507 m32r-*-*)
f9a26685 2508 noconfigdirs="$noconfigdirs ${libgcj}"
7e269125 2509 ;;
bafecfd6 2510 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
f9a26685 2511 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
46093329 2512 libgloss_dir=m68hc11
bafecfd6
NN
2513 ;;
2514 m68k-*-elf*)
f9a26685 2515 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
2516 ;;
2517 m68k-*-coff*)
f9a26685 2518 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6 2519 ;;
46093329
DD
2520 m68*-*-* | fido-*-*)
2521 libgloss_dir=m68k
2522 ;;
bafecfd6
NN
2523 mcore-*-pe*)
2524 # The EPOC C++ environment does not support exceptions or rtti,
2525 # and so building libstdc++-v3 tends not to always work.
2526 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2527 ;;
2528 mmix-*-*)
aac893c5 2529 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
c2105cb9 2530 unsupported_languages="$unsupported_languages fortran java"
bafecfd6
NN
2531 ;;
2532 mn10200-*-*)
f9a26685 2533 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
2534 ;;
2535 mn10300-*-*)
f9a26685 2536 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6 2537 ;;
74ecef0d 2538 mt-*-*)
66cb6a19
AH
2539 noconfigdirs="$noconfigdirs sim"
2540 ;;
bafecfd6
NN
2541 powerpc-*-aix*)
2542 # copied from rs6000-*-* entry
f9a26685 2543 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
bafecfd6
NN
2544 ;;
2545 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2546 target_configdirs="$target_configdirs target-winsup"
f9a26685 2547 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
bafecfd6
NN
2548 # always build newlib.
2549 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2550 ;;
2551 # This is temporary until we can link against shared libraries
2552 powerpcle-*-solaris*)
f9a26685 2553 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
46093329 2554 libgloss_dir=rs6000
bafecfd6
NN
2555 ;;
2556 powerpc-*-beos*)
f9a26685 2557 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bafecfd6 2558 ;;
bafecfd6 2559 powerpc-*-eabi)
f9a26685 2560 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 2561 libgloss_dir=rs6000
3d439922
AL
2562 ;;
2563 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
46093329 2564 libgloss_dir=rs6000
bafecfd6 2565 ;;
bafecfd6 2566 rs6000-*-lynxos*)
f9a26685 2567 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
bafecfd6
NN
2568 ;;
2569 rs6000-*-aix*)
f9a26685 2570 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
bafecfd6
NN
2571 ;;
2572 rs6000-*-*)
f9a26685 2573 noconfigdirs="$noconfigdirs gprof ${libgcj}"
bafecfd6
NN
2574 ;;
2575 m68k-apollo-*)
f9a26685 2576 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
bafecfd6 2577 ;;
524e4570
RS
2578 mips*-sde-elf*)
2579 skipdirs="$skipdirs target-libiberty"
2580 noconfigdirs="$noconfigdirs ${libgcj}"
2581 if test x$with_newlib = xyes; then
2582 noconfigdirs="$noconfigdirs gprof"
2583 fi
2584 libgloss_dir=mips
2585 ;;
bafecfd6 2586 mips*-*-irix5*)
f9a26685 2587 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
bafecfd6
NN
2588 ;;
2589 mips*-*-irix6*)
bafecfd6
NN
2590 # Linking libjava exceeds command-line length limits on at least
2591 # IRIX 6.2, but not on IRIX 6.5.
2592 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2593 # <oldham@codesourcery.com>
f9a26685 2594 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
bafecfd6 2595 ;;
bafecfd6 2596 mips*-*-bsd*)
f9a26685 2597 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
bafecfd6 2598 ;;
bafecfd6
NN
2599 mips*-*-linux*)
2600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2601 ;;
2602 mips*-*-*)
f9a26685 2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
46093329 2604 libgloss_dir=mips
bafecfd6
NN
2605 ;;
2606 romp-*-*)
f9a26685 2607 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
bafecfd6 2608 ;;
0d549859 2609 sh-*-* | sh64-*-*)
bafecfd6 2610 case "${host}" in
08049c01
DD
2611 i[3456789]86-*-vsta) ;; # don't add gprof back in
2612 i[3456789]86-*-go32*) ;; # don't add gprof back in
2613 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
bafecfd6
NN
2614 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2615 esac
f9a26685 2616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 2617 ;;
46093329
DD
2618 sparclet-*-aout* | sparc86x-*-*)
2619 libgloss_dir=sparc
2620 ;;
bafecfd6 2621 sparc-*-elf*)
f9a26685 2622 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
2623 ;;
2624 sparc64-*-elf*)
f9a26685 2625 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 2626 libgloss_dir=sparc
bafecfd6
NN
2627 ;;
2628 sparclite-*-*)
f9a26685 2629 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 2630 libgloss_dir=sparc
bafecfd6
NN
2631 ;;
2632 sparc-*-sunos4*)
f9a26685 2633 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
2634 if test x${is_cross_compiler} != xno ; then
2635 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2636 else
2637 use_gnu_ld=no
2638 fi
2639 ;;
2caa45c4 2640 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
f9a26685 2641 noconfigdirs="$noconfigdirs ${libgcj}"
2caa45c4 2642 ;;
bafecfd6
NN
2643 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2644 ;;
3fce2c7f 2645 spu-*-*)
3fce2c7f 2646 ;;
bafecfd6 2647 v810-*-*)
f9a26685 2648 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
bafecfd6
NN
2649 ;;
2650 v850-*-*)
f9a26685 2651 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
2652 ;;
2653 v850e-*-*)
f9a26685 2654 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
2655 ;;
2656 v850ea-*-*)
f9a26685 2657 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
2658 ;;
2659 vax-*-vms)
f9a26685 2660 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
bafecfd6
NN
2661 ;;
2662 vax-*-*)
f9a26685 2663 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
bafecfd6 2664 ;;
a1e856cc 2665 xtensa*-*-*)
f9a26685 2666 noconfigdirs="$noconfigdirs ${libgcj}"
b30e0721 2667 ;;
bafecfd6 2668 ip2k-*-*)
f9a26685 2669 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
bafecfd6 2670 ;;
eb2d1dee 2671 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
bafecfd6
NN
2672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2673 ;;
2674 *-*-lynxos*)
f9a26685 2675 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
b58b6ee1 2676 ;;
bafecfd6 2677 *-*-*)
f9a26685 2678 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
2679 ;;
2680esac
a3acbf46 2681
bafecfd6
NN
2682# If we aren't building newlib, then don't build libgloss, since libgloss
2683# depends upon some newlib header files.
2684case "${noconfigdirs}" in
2685 *target-libgloss*) ;;
2686 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2687esac
2688
bafecfd6
NN
2689# Work in distributions that contain no compiler tools, like Autoconf.
2690tentative_cc=""
2691host_makefile_frag=/dev/null
2692if test -d ${srcdir}/config ; then
2693case "${host}" in
2694 m68k-hp-hpux*)
2695 # Avoid "too much defining" errors from HPUX compiler.
2696 tentative_cc="cc -Wp,-H256000"
2697 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2698 # If it's HP/UX ar, this should be harmless.
2699 RANLIB="ar ts"
2700 ;;
2701 m68k-apollo-sysv*)
2702 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2703 ;;
2704 m68k-apollo-bsd*)
2705 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2706 # chokes on bfd, the compiler won't let you assign integers to enums, and
2707 # other problems. Defining CC to gcc is a questionable way to say "don't use
2708 # the apollo compiler" (the preferred version of GCC could be called cc,
2709 # or whatever), but I'm not sure leaving CC as cc is any better...
2710 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2711 # Used to have BISON=yacc.
2712 tentative_cc=gcc
2713 ;;
2714 m88k-dg-dgux*)
2715 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
bafecfd6
NN
2716 ;;
2717 m88k-harris-cxux*)
2718 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2719 tentative_cc="cc -Xa"
2720 host_makefile_frag="config/mh-cxux"
2721 ;;
2722 m88k-motorola-sysv*)
2723 ;;
2724 mips*-dec-ultrix*)
2725 tentative_cc="cc -Wf,-XNg1000"
2726 host_makefile_frag="config/mh-decstation"
2727 ;;
2728 mips*-nec-sysv4*)
2729 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2730 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2731 host_makefile_frag="config/mh-necv4"
2732 ;;
2733 mips*-sgi-irix4*)
2734 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2735 # environment. Also bump switch table size so that cp-parse will
2736 # compile. Bump string length limit so linker builds.
2737 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2738 ;;
2739 mips*-*-sysv4*)
2740 host_makefile_frag="config/mh-sysv4"
2741 ;;
2742 mips*-*-sysv*)
2743 # This is for a MIPS running RISC/os 4.52C.
2744
2745 # This is needed for GDB, but needs to be in the top-level make because
2746 # if a library is compiled with the bsd headers and gets linked with the
2747 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2748 # a different size).
2749 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2750 # known except to select the sysv environment. Could we use /proc instead?
2751 # These "sysv environments" and "bsd environments" often end up being a pain.
2752 #
2753 # This is not part of CFLAGS because perhaps not all C compilers have this
2754 # option.
2755 tentative_cc="cc -systype sysv"
2756 ;;
2757 i370-ibm-opened*)
2758 tentative_cc="c89"
2759 ;;
08049c01 2760 i[3456789]86-*-sysv5*)
bafecfd6
NN
2761 host_makefile_frag="config/mh-sysv5"
2762 ;;
08049c01 2763 i[3456789]86-*-dgux*)
bafecfd6
NN
2764 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2765 host_makefile_frag="config/mh-dgux386"
2766 ;;
08049c01 2767 i[3456789]86-ncr-sysv4.3*)
bafecfd6
NN
2768 # The MetaWare compiler will generate a copyright message unless you
2769 # turn it off by adding the -Hnocopyr flag.
2770 tentative_cc="cc -Hnocopyr"
2771 ;;
08049c01 2772 i[3456789]86-ncr-sysv4*)
bafecfd6
NN
2773 # for an NCR 3000 (i486/SVR4) system.
2774 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2775 # This compiler not only emits obnoxious copyright messages every time
2776 # you run it, but it chokes and dies on a whole bunch of GNU source
2777 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2778 tentative_cc="/usr/ccs/ATT/cc"
2779 host_makefile_frag="config/mh-ncr3000"
2780 ;;
08049c01 2781 i[3456789]86-*-sco3.2v5*)
bafecfd6 2782 ;;
08049c01 2783 i[3456789]86-*-sco*)
bafecfd6
NN
2784 # The native C compiler botches some simple uses of const. Unfortunately,
2785 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2786 tentative_cc="cc -Dconst="
2787 host_makefile_frag="config/mh-sco"
2788 ;;
08049c01 2789 i[3456789]86-*-udk*)
bafecfd6
NN
2790 host_makefile_frag="config/mh-sysv5"
2791 ;;
08049c01 2792 i[3456789]86-*-solaris2*)
bafecfd6
NN
2793 host_makefile_frag="config/mh-sysv4"
2794 ;;
08049c01 2795 i[3456789]86-*-msdosdjgpp*)
bafecfd6
NN
2796 host_makefile_frag="config/mh-djgpp"
2797 ;;
2798 *-cygwin*)
981b79bf
NC
2799
2800echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2801echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2802echo a >cygwin-cat-check
2803if test `cat cygwin-cat-check` == a ; then
999fa990 2804 rm cygwin-cat-check
981b79bf
NC
2805 echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807else
999fa990 2808 rm cygwin-cat-check
981b79bf
NC
2809 echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2812 Please either mount the build directory in binary mode or run the following
2813 commands before running any configure script:
2814set -o igncr
2815export SHELLOPTS
2816 " >&5
2817echo "$as_me: error: The cat command does not ignore carriage return characters.
2818 Please either mount the build directory in binary mode or run the following
2819 commands before running any configure script:
2820set -o igncr
2821export SHELLOPTS
2822 " >&2;}
2823 { (exit 1); exit 1; }; }
2824fi
981b79bf 2825
bafecfd6
NN
2826 host_makefile_frag="config/mh-cygwin"
2827 ;;
617c478d 2828 *-mingw*)
fd1c1753 2829 host_makefile_frag="config/mh-mingw"
6a24f03b 2830 ;;
bafecfd6
NN
2831 *-interix*)
2832 host_makefile_frag="config/mh-interix"
2833 ;;
2834 vax-*-ultrix2*)
2835 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2836 tentative_cc=gcc
2837 ;;
2838 *-*-solaris2*)
2839 host_makefile_frag="config/mh-solaris"
2840 ;;
2841 m68k-sun-sunos*)
2842 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2843 # without overflowing the jump tables (-J says to use a 32 bit table)
2844 tentative_cc="cc -J"
2845 ;;
9ad2ea2f 2846 hppa*-hp-hpux10*)
bafecfd6 2847 tentative_cc="cc -Wp,-H256000"
9ad2ea2f 2848 host_makefile_frag="config/mh-pa-hpux10"
bafecfd6 2849 ;;
9ad2ea2f
PB
2850 hppa*-hp-hpux* | hppa*-*-hiux*)
2851 tentative_cc="cc -Wp,-H256000"
2852 host_makefile_frag="config/mh-pa"
2853 ;;
2854 hppa*-*)
2855 host_makefile_frag="config/mh-pa"
2856 ;;
2857 *-hp-hpux* | *-*-hiux*)
bafecfd6
NN
2858 tentative_cc="cc -Wp,-H256000"
2859 ;;
2860 rs6000-*-lynxos*)
2861 # /bin/cc is less than useful for our purposes. Always use GCC
2862 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2863 host_makefile_frag="config/mh-lynxrs6k"
2864 ;;
99df82b9
PB
2865 powerpc-*-darwin*)
2866 host_makefile_frag="config/mh-ppc-darwin"
2867 ;;
7e958b2e
PB
2868 powerpc-*-aix*)
2869 host_makefile_frag="config/mh-ppc-aix"
2870 ;;
2871 rs6000-*-aix*)
2872 host_makefile_frag="config/mh-ppc-aix"
2873 ;;
bafecfd6
NN
2874 *-*-lynxos*)
2875 # /bin/cc is less than useful for our purposes. Always use GCC
2876 tentative_cc="/bin/gcc"
2877 ;;
2878 *-*-sysv4*)
2879 host_makefile_frag="config/mh-sysv4"
2880 ;;
8199a77f
DD
2881 # This is placed last to prevent interfering with the cases above.
2882 i[3456789]86-*-*)
2883 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2884 host_makefile_frag="config/mh-x86omitfp"
2885 ;;
bafecfd6
NN
2886esac
2887fi
2888
cfc26d93
NN
2889# If we aren't going to be using gcc, see if we can extract a definition
2890# of CC from the fragment.
2891# Actually, use the 'pre-extracted' version above.
2892if test -z "${CC}" && test "${build}" = "${host}" ; then
2893 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2894 found=
2895 for dir in $PATH; do
2896 test -z "$dir" && dir=.
2897 if test -f $dir/gcc; then
2898 found=yes
2899 break
2900 fi
2901 done
2902 IFS="$save_ifs"
2903 if test -z "${found}" && test -n "${tentative_cc}" ; then
2904 CC=$tentative_cc
2905 fi
2906fi
2907
2908if test "${build}" != "${host}" ; then
4413ec01
PB
2909 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2910 AS_FOR_BUILD=${AS_FOR_BUILD-as}
cfc26d93 2911 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4413ec01
PB
2912 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2913 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2914 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2915 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2916 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2917 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2918 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2919 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2920 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2921else
2922 AR_FOR_BUILD="\$(AR)"
2923 AS_FOR_BUILD="\$(AS)"
31839eae 2924 CC_FOR_BUILD="\$(CC)"
4413ec01
PB
2925 CXX_FOR_BUILD="\$(CXX)"
2926 GCJ_FOR_BUILD="\$(GCJ)"
2927 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2928 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2929 LD_FOR_BUILD="\$(LD)"
2930 NM_FOR_BUILD="\$(NM)"
2931 RANLIB_FOR_BUILD="\$(RANLIB)"
2932 WINDRES_FOR_BUILD="\$(WINDRES)"
2933 WINDMC_FOR_BUILD="\$(WINDMC)"
b8c26111
PB
2934fi
2935
2936ac_ext=c
b58b6ee1
DJ
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}gcc; ac_word=$2
2944echo "$as_me:$LINENO: checking for $ac_word" >&5
2945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946if test "${ac_cv_prog_CC+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963done
2964done
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970 echo "$as_me:$LINENO: result: $CC" >&5
2971echo "${ECHO_T}$CC" >&6
2972else
2973 echo "$as_me:$LINENO: result: no" >&5
2974echo "${ECHO_T}no" >&6
2975fi
2976
2977fi
2978if test -z "$ac_cv_prog_CC"; then
2979 ac_ct_CC=$CC
2cb47d68 2980 # Extract the first word of "gcc", so it can be a program name with args.
cfc26d93 2981set dummy gcc; ac_word=$2
b58b6ee1
DJ
2982echo "$as_me:$LINENO: checking for $ac_word" >&5
2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_CC="gcc"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001done
3002done
3003
3004fi
3005fi
3006ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007if test -n "$ac_ct_CC"; then
3008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009echo "${ECHO_T}$ac_ct_CC" >&6
3010else
3011 echo "$as_me:$LINENO: result: no" >&5
3012echo "${ECHO_T}no" >&6
3013fi
3014
3015 CC=$ac_ct_CC
3016else
3017 CC="$ac_cv_prog_CC"
3018fi
3019
3020if test -z "$CC"; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023set dummy ${ac_tool_prefix}cc; ac_word=$2
3024echo "$as_me:$LINENO: checking for $ac_word" >&5
3025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026if test "${ac_cv_prog_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
cfc26d93
NN
3028else
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
b58b6ee1
DJ
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_CC="${ac_tool_prefix}cc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043done
3044done
3045
cfc26d93
NN
3046fi
3047fi
b58b6ee1 3048CC=$ac_cv_prog_CC
cfc26d93 3049if test -n "$CC"; then
b58b6ee1
DJ
3050 echo "$as_me:$LINENO: result: $CC" >&5
3051echo "${ECHO_T}$CC" >&6
cfc26d93 3052else
b58b6ee1
DJ
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
cfc26d93
NN
3055fi
3056
b58b6ee1
DJ
3057fi
3058if test -z "$ac_cv_prog_CC"; then
3059 ac_ct_CC=$CC
3060 # Extract the first word of "cc", so it can be a program name with args.
3061set dummy cc; ac_word=$2
3062echo "$as_me:$LINENO: checking for $ac_word" >&5
3063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067 if test -n "$ac_ct_CC"; then
3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_ac_ct_CC="cc"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081done
3082done
3083
3084fi
3085fi
3086ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087if test -n "$ac_ct_CC"; then
3088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3089echo "${ECHO_T}$ac_ct_CC" >&6
3090else
3091 echo "$as_me:$LINENO: result: no" >&5
3092echo "${ECHO_T}no" >&6
3093fi
3094
3095 CC=$ac_ct_CC
3096else
3097 CC="$ac_cv_prog_CC"
3098fi
3099
3100fi
cfc26d93
NN
3101if test -z "$CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103set dummy cc; ac_word=$2
b58b6ee1
DJ
3104echo "$as_me:$LINENO: checking for $ac_word" >&5
3105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106if test "${ac_cv_prog_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
cfc26d93
NN
3108else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111else
cfc26d93 3112 ac_prog_rejected=no
b58b6ee1
DJ
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3121 ac_prog_rejected=yes
3122 continue
3123 fi
3124 ac_cv_prog_CC="cc"
3125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128done
3129done
3130
cfc26d93
NN
3131if test $ac_prog_rejected = yes; then
3132 # We found a bogon in the path, so make sure we never use it.
3133 set dummy $ac_cv_prog_CC
3134 shift
b58b6ee1 3135 if test $# != 0; then
cfc26d93
NN
3136 # We chose a different compiler from the bogus one.
3137 # However, it has the same basename, so the bogon will be chosen
3138 # first if we set CC to just the basename; use the full file name.
3139 shift
b58b6ee1 3140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cfc26d93
NN
3141 fi
3142fi
3143fi
3144fi
b58b6ee1 3145CC=$ac_cv_prog_CC
cfc26d93 3146if test -n "$CC"; then
b58b6ee1
DJ
3147 echo "$as_me:$LINENO: result: $CC" >&5
3148echo "${ECHO_T}$CC" >&6
cfc26d93 3149else
b58b6ee1
DJ
3150 echo "$as_me:$LINENO: result: no" >&5
3151echo "${ECHO_T}no" >&6
cfc26d93
NN
3152fi
3153
b58b6ee1
DJ
3154fi
3155if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 for ac_prog in cl
3158 do
3159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_CC+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
cfc26d93
NN
3165else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168else
b58b6ee1
DJ
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
76402c80 3179 fi
b58b6ee1
DJ
3180done
3181done
f69e2532 3182
b58b6ee1
DJ
3183fi
3184fi
3185CC=$ac_cv_prog_CC
3186if test -n "$CC"; then
3187 echo "$as_me:$LINENO: result: $CC" >&5
3188echo "${ECHO_T}$CC" >&6
f69e2532 3189else
b58b6ee1
DJ
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
cfc26d93 3192fi
f69e2532 3193
b58b6ee1
DJ
3194 test -n "$CC" && break
3195 done
f69e2532 3196fi
b58b6ee1
DJ
3197if test -z "$CC"; then
3198 ac_ct_CC=$CC
3199 for ac_prog in cl
3200do
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202set dummy $ac_prog; ac_word=$2
3203echo "$as_me:$LINENO: checking for $ac_word" >&5
3204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
f69e2532 3207else
b58b6ee1
DJ
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
76402c80 3210else
b58b6ee1
DJ
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_ac_ct_CC="$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222done
3223done
3224
f69e2532
CM
3225fi
3226fi
b58b6ee1
DJ
3227ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228if test -n "$ac_ct_CC"; then
3229 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3230echo "${ECHO_T}$ac_ct_CC" >&6
cfc26d93 3231else
b58b6ee1
DJ
3232 echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
f69e2532 3234fi
76402c80 3235
b58b6ee1
DJ
3236 test -n "$ac_ct_CC" && break
3237done
3238
3239 CC=$ac_ct_CC
3240fi
3241
3242fi
3243
3244
7fb8d612
RW
3245test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3246echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
b58b6ee1
DJ
3248See \`config.log' for more details." >&5
3249echo "$as_me: error: no acceptable C compiler found in \$PATH
3250See \`config.log' for more details." >&2;}
7fb8d612 3251 { (exit 1); exit 1; }; }; }
b58b6ee1
DJ
3252
3253# Provide some information about the compiler.
3254echo "$as_me:$LINENO:" \
3255 "checking for C compiler version" >&5
3256ac_compiler=`set X $ac_compile; echo $2`
3257{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3258 (eval $ac_compiler --version </dev/null >&5) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3263 (eval $ac_compiler -v </dev/null >&5) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }
3267{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3268 (eval $ac_compiler -V </dev/null >&5) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3272
3273cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h. */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h. */
3279
3280int
3281main ()
3282{
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
3288ac_clean_files_save=$ac_clean_files
3289ac_clean_files="$ac_clean_files a.out a.exe b.out"
3290# Try to create an executable without -o first, disregard a.out.
3291# It will help us diagnose broken compilers, and finding out an intuition
3292# of exeext.
3293echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3294echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3295ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3297 (eval $ac_link_default) 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; then
3301 # Find the output, starting from the most likely. This scheme is
3302# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3303# resort.
3304
3305# Be careful to initialize this variable, since it used to be cached.
3306# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3307ac_cv_exeext=
3308# b.out is created by i960 compilers.
3309for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3310do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3314 ;;
3315 conftest.$ac_ext )
3316 # This is the source file.
3317 ;;
3318 [ab].out )
3319 # We found the default executable, but exeext='' is most
3320 # certainly right.
3321 break;;
3322 *.* )
3323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 # FIXME: I believe we export ac_cv_exeext for Libtool,
3325 # but it would be cool to find out if it's true. Does anybody
3326 # maintain Libtool? --akim.
3327 export ac_cv_exeext
3328 break;;
3329 * )
3330 break;;
3331 esac
3332done
3333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
7fb8d612
RW
3337{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3338echo "$as_me: error: in \`$ac_pwd':" >&2;}
b58b6ee1
DJ
3339{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3340See \`config.log' for more details." >&5
3341echo "$as_me: error: C compiler cannot create executables
3342See \`config.log' for more details." >&2;}
7fb8d612 3343 { (exit 77); exit 77; }; }; }
b58b6ee1
DJ
3344fi
3345
3346ac_exeext=$ac_cv_exeext
3347echo "$as_me:$LINENO: result: $ac_file" >&5
3348echo "${ECHO_T}$ac_file" >&6
3349
3350# Check the compiler produces executables we can run. If not, either
3351# the compiler is broken, or we cross compile.
3352echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3353echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3354# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3355# If not cross compiling, check that we can run a simple program.
3356if test "$cross_compiling" != yes; then
3357 if { ac_try='./$ac_file'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 cross_compiling=no
3364 else
3365 if test "$cross_compiling" = maybe; then
3366 cross_compiling=yes
3367 else
7fb8d612
RW
3368 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3369echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
b58b6ee1
DJ
3371If you meant to cross compile, use \`--host'.
3372See \`config.log' for more details." >&5
3373echo "$as_me: error: cannot run C compiled programs.
3374If you meant to cross compile, use \`--host'.
3375See \`config.log' for more details." >&2;}
7fb8d612 3376 { (exit 1); exit 1; }; }; }
b58b6ee1
DJ
3377 fi
3378 fi
3379fi
3380echo "$as_me:$LINENO: result: yes" >&5
3381echo "${ECHO_T}yes" >&6
3382
3383rm -f a.out a.exe conftest$ac_cv_exeext b.out
3384ac_clean_files=$ac_clean_files_save
3385# Check the compiler produces executables we can run. If not, either
3386# the compiler is broken, or we cross compile.
3387echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3388echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3389echo "$as_me:$LINENO: result: $cross_compiling" >&5
3390echo "${ECHO_T}$cross_compiling" >&6
3391
3392echo "$as_me:$LINENO: checking for suffix of executables" >&5
3393echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395 (eval $ac_link) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; then
3399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3401# work properly (i.e., refer to `conftest.exe'), while it won't with
3402# `rm'.
3403for ac_file in conftest.exe conftest conftest.*; do
3404 test -f "$ac_file" || continue
3405 case $ac_file in
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 export ac_cv_exeext
3409 break;;
3410 * ) break;;
3411 esac
3412done
3413else
7fb8d612
RW
3414 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3415echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
b58b6ee1
DJ
3417See \`config.log' for more details." >&5
3418echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3419See \`config.log' for more details." >&2;}
7fb8d612 3420 { (exit 1); exit 1; }; }; }
b58b6ee1
DJ
3421fi
3422
3423rm -f conftest$ac_cv_exeext
3424echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3425echo "${ECHO_T}$ac_cv_exeext" >&6
3426
3427rm -f conftest.$ac_ext
3428EXEEXT=$ac_cv_exeext
3429ac_exeext=$EXEEXT
3430echo "$as_me:$LINENO: checking for suffix of object files" >&5
3431echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3432if test "${ac_cv_objext+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441
3442int
3443main ()
3444{
3445
3446 ;
3447 return 0;
3448}
3449_ACEOF
3450rm -f conftest.o conftest.obj
3451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452 (eval $ac_compile) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; then
3456 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3460 break;;
3461 esac
3462done
f69e2532 3463else
b58b6ee1
DJ
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
7fb8d612
RW
3467{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3468echo "$as_me: error: in \`$ac_pwd':" >&2;}
b58b6ee1
DJ
3469{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3470See \`config.log' for more details." >&5
3471echo "$as_me: error: cannot compute suffix of object files: cannot compile
3472See \`config.log' for more details." >&2;}
7fb8d612 3473 { (exit 1); exit 1; }; }; }
b58b6ee1
DJ
3474fi
3475
3476rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477fi
3478echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3479echo "${ECHO_T}$ac_cv_objext" >&6
3480OBJEXT=$ac_cv_objext
3481ac_objext=$OBJEXT
3482echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3483echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3484if test "${ac_cv_c_compiler_gnu+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493
3494int
3495main ()
3496{
3497#ifndef __GNUC__
3498 choke me
3499#endif
3500
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505rm -f conftest.$ac_objext
3506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_compiler_gnu=yes
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532ac_compiler_gnu=no
3533fi
3534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536
3537fi
3538echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3539echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3540GCC=`test $ac_compiler_gnu = yes && echo yes`
3541ac_test_CFLAGS=${CFLAGS+set}
3542ac_save_CFLAGS=$CFLAGS
3543CFLAGS="-g"
3544echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3545echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3546if test "${ac_cv_prog_cc_g+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
cfc26d93
NN
3586 ac_cv_prog_cc_g=yes
3587else
b58b6ee1
DJ
3588 echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
f69e2532 3590
b58b6ee1 3591ac_cv_prog_cc_g=no
76402c80 3592fi
b58b6ee1
DJ
3593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3594fi
3595echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3596echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
cfc26d93 3597if test "$ac_test_CFLAGS" = set; then
b58b6ee1 3598 CFLAGS=$ac_save_CFLAGS
cfc26d93
NN
3599elif test $ac_cv_prog_cc_g = yes; then
3600 if test "$GCC" = yes; then
3601 CFLAGS="-g -O2"
3602 else
3603 CFLAGS="-g"
3604 fi
3605else
3606 if test "$GCC" = yes; then
3607 CFLAGS="-O2"
3608 else
3609 CFLAGS=
3610 fi
3611fi
b58b6ee1
DJ
3612echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3613echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3614if test "${ac_cv_prog_cc_stdc+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617 ac_cv_prog_cc_stdc=no
3618ac_save_CC=$CC
3619cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h. */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h. */
3625#include <stdarg.h>
3626#include <stdio.h>
3627#include <sys/types.h>
3628#include <sys/stat.h>
3629/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3630struct buf { int x; };
3631FILE * (*rcsopen) (struct buf *, struct stat *, int);
3632static char *e (p, i)
3633 char **p;
3634 int i;
3635{
3636 return p[i];
3637}
3638static char *f (char * (*g) (char **, int), char **p, ...)
3639{
3640 char *s;
3641 va_list v;
3642 va_start (v,p);
3643 s = g (p, va_arg (v,int));
3644 va_end (v);
3645 return s;
3646}
3647
3648/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3649 function prototypes and stuff, but not '\xHH' hex character constants.
3650 These don't provoke an error unfortunately, instead are silently treated
3651 as 'x'. The following induces an error, until -std1 is added to get
3652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3653 array size at least. It's necessary to write '\x00'==0 to get something
3654 that's true only with -std1. */
3655int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3656
3657int test (int i, double x);
3658struct s1 {int (*f) (int a);};
3659struct s2 {int (*f) (double a);};
3660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661int argc;
3662char **argv;
3663int
3664main ()
3665{
3666return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 ;
3668 return 0;
3669}
3670_ACEOF
3671# Don't try gcc -ansi; that turns off useful extensions and
3672# breaks some systems' header files.
3673# AIX -qlanglvl=ansi
3674# Ultrix and OSF/1 -std1
3675# HP-UX 10.20 and later -Ae
3676# HP-UX older versions -Aa -D_HPUX_SOURCE
3677# SVR4 -Xc -D__EXTENSIONS__
3678for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679do
3680 CC="$ac_save_CC $ac_arg"
3681 rm -f conftest.$ac_objext
3682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_prog_cc_stdc=$ac_arg
3704break
3705else
3706 echo "$as_me: failed program was:" >&5
3707sed 's/^/| /' conftest.$ac_ext >&5
3708
3709fi
3710rm -f conftest.err conftest.$ac_objext
3711done
3712rm -f conftest.$ac_ext conftest.$ac_objext
3713CC=$ac_save_CC
3714
3715fi
3716
3717case "x$ac_cv_prog_cc_stdc" in
3718 x|xno)
3719 echo "$as_me:$LINENO: result: none needed" >&5
3720echo "${ECHO_T}none needed" >&6 ;;
3721 *)
3722 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3723echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3724 CC="$CC $ac_cv_prog_cc_stdc" ;;
3725esac
3726
3727# Some people use a C++ compiler to compile C. Since we use `exit',
3728# in C++ we need to declare it. In case someone uses the same compiler
3729# for both compiling C and C++ we need to have the C++ compiler decide
3730# the declaration of exit, since it's the most demanding environment.
3731cat >conftest.$ac_ext <<_ACEOF
3732#ifndef __cplusplus
3733 choke me
3734#endif
3735_ACEOF
3736rm -f conftest.$ac_objext
3737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_c_werror_flag"
3746 || test ! -s conftest.err'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 (eval $ac_try) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 for ac_declaration in \
3759 '' \
3760 'extern "C" void std::exit (int) throw (); using std::exit;' \
3761 'extern "C" void std::exit (int); using std::exit;' \
3762 'extern "C" void exit (int) throw ();' \
3763 'extern "C" void exit (int);' \
3764 'void exit (int);'
3765do
3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
3772$ac_declaration
3773#include <stdlib.h>
3774int
3775main ()
3776{
3777exit (42);
3778 ;
3779 return 0;
3780}
3781_ACEOF
3782rm -f conftest.$ac_objext
3783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 :
3805else
3806 echo "$as_me: failed program was:" >&5
3807sed 's/^/| /' conftest.$ac_ext >&5
3808
3809continue
3810fi
3811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h. */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
3817/* end confdefs.h. */
3818$ac_declaration
3819int
3820main ()
3821{
3822exit (42);
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 break
3850else
3851 echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854fi
3855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856done
3857rm -f conftest*
3858if test -n "$ac_declaration"; then
3859 echo '#ifdef __cplusplus' >>confdefs.h
3860 echo $ac_declaration >>confdefs.h
3861 echo '#endif' >>confdefs.h
3862fi
3863
3864else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868fi
3869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3870ac_ext=c
3871ac_cpp='$CPP $CPPFLAGS'
3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874ac_compiler_gnu=$ac_cv_c_compiler_gnu
cfc26d93 3875
b8c26111
PB
3876ac_ext=cc
3877ac_cpp='$CXXCPP $CPPFLAGS'
3878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3881if test -n "$ac_tool_prefix"; then
3882 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3883 do
3884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3886echo "$as_me:$LINENO: checking for $ac_word" >&5
3887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3888if test "${ac_cv_prog_CXX+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 if test -n "$CXX"; then
3892 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3893else
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3901 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905done
3906done
31839eae 3907
b8c26111
PB
3908fi
3909fi
3910CXX=$ac_cv_prog_CXX
3911if test -n "$CXX"; then
3912 echo "$as_me:$LINENO: result: $CXX" >&5
3913echo "${ECHO_T}$CXX" >&6
3914else
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
3917fi
3918
3919 test -n "$CXX" && break
3920 done
3921fi
3922if test -z "$CXX"; then
3923 ac_ct_CXX=$CXX
3924 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3925do
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927set dummy $ac_prog; ac_word=$2
3928echo "$as_me:$LINENO: checking for $ac_word" >&5
3929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 if test -n "$ac_ct_CXX"; then
3934 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3935else
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_CXX="$ac_prog"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
31839eae 3946 fi
b8c26111
PB
3947done
3948done
31839eae 3949
b8c26111
PB
3950fi
3951fi
3952ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3953if test -n "$ac_ct_CXX"; then
3954 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3955echo "${ECHO_T}$ac_ct_CXX" >&6
3956else
3957 echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6
3959fi
3960
3961 test -n "$ac_ct_CXX" && break
3962done
3963test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3964
3965 CXX=$ac_ct_CXX
3966fi
3967
3968
3969# Provide some information about the compiler.
3970echo "$as_me:$LINENO:" \
3971 "checking for C++ compiler version" >&5
3972ac_compiler=`set X $ac_compile; echo $2`
3973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3974 (eval $ac_compiler --version </dev/null >&5) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }
3978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3979 (eval $ac_compiler -v </dev/null >&5) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }
3983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3984 (eval $ac_compiler -V </dev/null >&5) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }
3988
3989echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3990echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3991if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993else
3994 cat >conftest.$ac_ext <<_ACEOF
3995/* confdefs.h. */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h. */
4000
4001int
4002main ()
4003{
4004#ifndef __GNUC__
4005 choke me
4006#endif
4007
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -z "$ac_cxx_werror_flag"
4022 || test ! -s conftest.err'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try='test -s conftest.$ac_objext'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 ac_compiler_gnu=yes
4035else
4036 echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039ac_compiler_gnu=no
4040fi
4041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4043
4044fi
4045echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4046echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4047GXX=`test $ac_compiler_gnu = yes && echo yes`
4048ac_test_CXXFLAGS=${CXXFLAGS+set}
4049ac_save_CXXFLAGS=$CXXFLAGS
4050CXXFLAGS="-g"
4051echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4052echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4053if test "${ac_cv_prog_cxx_g+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056 cat >conftest.$ac_ext <<_ACEOF
4057/* confdefs.h. */
4058_ACEOF
4059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h. */
4062
4063int
4064main ()
4065{
4066
4067 ;
4068 return 0;
4069}
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_cxx_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_cv_prog_cxx_g=yes
4094else
4095 echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098ac_cv_prog_cxx_g=no
4099fi
4100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101fi
4102echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4103echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4104if test "$ac_test_CXXFLAGS" = set; then
4105 CXXFLAGS=$ac_save_CXXFLAGS
4106elif test $ac_cv_prog_cxx_g = yes; then
4107 if test "$GXX" = yes; then
4108 CXXFLAGS="-g -O2"
4109 else
4110 CXXFLAGS="-g"
4111 fi
4112else
4113 if test "$GXX" = yes; then
4114 CXXFLAGS="-O2"
4115 else
4116 CXXFLAGS=
4117 fi
4118fi
4119for ac_declaration in \
4120 '' \
4121 'extern "C" void std::exit (int) throw (); using std::exit;' \
4122 'extern "C" void std::exit (int); using std::exit;' \
4123 'extern "C" void exit (int) throw ();' \
4124 'extern "C" void exit (int);' \
4125 'void exit (int);'
4126do
4127 cat >conftest.$ac_ext <<_ACEOF
4128/* confdefs.h. */
4129_ACEOF
4130cat confdefs.h >>conftest.$ac_ext
4131cat >>conftest.$ac_ext <<_ACEOF
4132/* end confdefs.h. */
4133$ac_declaration
4134#include <stdlib.h>
4135int
4136main ()
4137{
4138exit (42);
4139 ;
4140 return 0;
4141}
4142_ACEOF
4143rm -f conftest.$ac_objext
4144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_cxx_werror_flag"
4153 || test ! -s conftest.err'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 :
4166else
4167 echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170continue
4171fi
4172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4173 cat >conftest.$ac_ext <<_ACEOF
4174/* confdefs.h. */
4175_ACEOF
4176cat confdefs.h >>conftest.$ac_ext
4177cat >>conftest.$ac_ext <<_ACEOF
4178/* end confdefs.h. */
4179$ac_declaration
4180int
4181main ()
4182{
4183exit (42);
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188rm -f conftest.$ac_objext
4189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_cxx_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 break
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215fi
4216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217done
4218rm -f conftest*
4219if test -n "$ac_declaration"; then
4220 echo '#ifdef __cplusplus' >>confdefs.h
4221 echo $ac_declaration >>confdefs.h
4222 echo '#endif' >>confdefs.h
4223fi
4224
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231
4232# We must set the default linker to the linker used by gcc for the correct
4233# operation of libtool. If LD is not defined and we are using gcc, try to
4234# set the LD default to the ld used by gcc.
4235if test -z "$LD"; then
4236 if test "$GCC" = yes; then
4237 case $build in
4238 *-*-mingw*)
4239 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4240 *)
4241 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4242 esac
4243 case $gcc_prog_ld in
4244 # Accept absolute paths.
4245 [\\/]* | [A-Za-z]:[\\/]*)
4246 LD="$gcc_prog_ld" ;;
4247 esac
4248 fi
31839eae
PB
4249fi
4250
4251
4252
4253
b58b6ee1 4254if test -n "$ac_tool_prefix"; then
31839eae
PB
4255 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4256set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
b58b6ee1
DJ
4257echo "$as_me:$LINENO: checking for $ac_word" >&5
4258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31839eae 4259if test "${ac_cv_prog_GNATBIND+set}" = set; then
b58b6ee1 4260 echo $ECHO_N "(cached) $ECHO_C" >&6
cfc26d93 4261else
31839eae
PB
4262 if test -n "$GNATBIND"; then
4263 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
cfc26d93 4264else
b58b6ee1
DJ
4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839eae 4272 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
b58b6ee1
DJ
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276done
4277done
4278
cfc26d93
NN
4279fi
4280fi
31839eae
PB
4281GNATBIND=$ac_cv_prog_GNATBIND
4282if test -n "$GNATBIND"; then
4283 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4284echo "${ECHO_T}$GNATBIND" >&6
cfc26d93 4285else
b58b6ee1
DJ
4286 echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
cfc26d93
NN
4288fi
4289
b58b6ee1 4290fi
31839eae
PB
4291if test -z "$ac_cv_prog_GNATBIND"; then
4292 ac_ct_GNATBIND=$GNATBIND
4293 # Extract the first word of "gnatbind", so it can be a program name with args.
4294set dummy gnatbind; ac_word=$2
b58b6ee1
DJ
4295echo "$as_me:$LINENO: checking for $ac_word" >&5
4296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31839eae 4297if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
b58b6ee1 4298 echo $ECHO_N "(cached) $ECHO_C" >&6
cfc26d93 4299else
31839eae
PB
4300 if test -n "$ac_ct_GNATBIND"; then
4301 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
cfc26d93 4302else
b58b6ee1
DJ
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839eae 4310 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
b58b6ee1
DJ
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314done
4315done
4316
31839eae 4317 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
cfc26d93
NN
4318fi
4319fi
31839eae
PB
4320ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4321if test -n "$ac_ct_GNATBIND"; then
4322 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4323echo "${ECHO_T}$ac_ct_GNATBIND" >&6
cfc26d93 4324else
b58b6ee1
DJ
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
cfc26d93
NN
4327fi
4328
31839eae 4329 GNATBIND=$ac_ct_GNATBIND
893220e0 4330else
31839eae 4331 GNATBIND="$ac_cv_prog_GNATBIND"
cfc26d93
NN
4332fi
4333
60800fb2 4334if test -n "$ac_tool_prefix"; then
31839eae
PB
4335 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4336set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
60800fb2
PB
4337echo "$as_me:$LINENO: checking for $ac_word" >&5
4338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31839eae 4339if test "${ac_cv_prog_GNATMAKE+set}" = set; then
60800fb2
PB
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341else
31839eae
PB
4342 if test -n "$GNATMAKE"; then
4343 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
60800fb2
PB
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839eae 4352 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
60800fb2
PB
4353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356done
4357done
4358
4359fi
4360fi
31839eae
PB
4361GNATMAKE=$ac_cv_prog_GNATMAKE
4362if test -n "$GNATMAKE"; then
4363 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4364echo "${ECHO_T}$GNATMAKE" >&6
60800fb2
PB
4365else
4366 echo "$as_me:$LINENO: result: no" >&5
4367echo "${ECHO_T}no" >&6
4368fi
4369
4370fi
31839eae
PB
4371if test -z "$ac_cv_prog_GNATMAKE"; then
4372 ac_ct_GNATMAKE=$GNATMAKE
4373 # Extract the first word of "gnatmake", so it can be a program name with args.
4374set dummy gnatmake; ac_word=$2
60800fb2
PB
4375echo "$as_me:$LINENO: checking for $ac_word" >&5
4376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31839eae 4377if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
60800fb2
PB
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
31839eae
PB
4380 if test -n "$ac_ct_GNATMAKE"; then
4381 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
60800fb2
PB
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839eae 4390 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
60800fb2
PB
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394done
4395done
4396
31839eae 4397 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
60800fb2
PB
4398fi
4399fi
31839eae
PB
4400ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4401if test -n "$ac_ct_GNATMAKE"; then
4402 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4403echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
60800fb2
PB
4404else
4405 echo "$as_me:$LINENO: result: no" >&5
4406echo "${ECHO_T}no" >&6
4407fi
4408
31839eae 4409 GNATMAKE=$ac_ct_GNATMAKE
60800fb2 4410else
31839eae 4411 GNATMAKE="$ac_cv_prog_GNATMAKE"
60800fb2
PB
4412fi
4413
b58b6ee1
DJ
4414echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4415echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4416if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
cfc26d93
NN
4418else
4419 cat >conftest.adb <<EOF
4420procedure conftest is begin null; end conftest;
4421EOF
4422acx_cv_cc_gcc_supports_ada=no
4423# There is a bug in old released versions of GCC which causes the
4424# driver to exit successfully when the appropriate language module
4425# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4426# Therefore we must check for the error message as well as an
4427# unsuccessful exit.
866c244e
DD
4428# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4429# given a .adb file, but produce no object file. So we must check
4430# if an object file was really produced to guard against this.
cfc26d93 4431errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
866c244e 4432if test x"$errors" = x && test -f conftest.$ac_objext; then
cfc26d93 4433 acx_cv_cc_gcc_supports_ada=yes
cfc26d93
NN
4434fi
4435rm -f conftest.*
4436fi
b58b6ee1
DJ
4437echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4438echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
cfc26d93 4439
31839eae 4440if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
cfc26d93
NN
4441 have_gnat=yes
4442else
4443 have_gnat=no
4444fi
4445
b58b6ee1
DJ
4446echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4447echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4448if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
866c244e
DD
4450else
4451 echo abfoo >t1
4452 echo cdfoo >t2
4453 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
cb2333e8
DD
4454 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4455 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4456 :
4457 else
4458 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4459 fi
4460 fi
866c244e
DD
4461 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4462 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
cb2333e8 4463 :
866c244e
DD
4464 else
4465 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4466 fi
4467 fi
4468 rm t1 t2
4469
4470fi
b58b6ee1
DJ
4471echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4472echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
866c244e
DD
4473do_compare="$gcc_cv_prog_cmp_skip"
4474
4475
cfc26d93 4476
cbd6bc14 4477# Check for GMP and MPFR
42f55f77 4478gmplibs="-lmpfr -lgmp"
cb2333e8 4479gmpinc=
42f55f77
PB
4480have_gmp=no
4481
cbd6bc14
DD
4482# Specify a location for mpfr
4483# check for this first so it ends up on the link line before gmp.
b58b6ee1 4484
cbd6bc14
DD
4485# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4486if test "${with_mpfr_dir+set}" = set; then
4487 withval="$with_mpfr_dir"
b58b6ee1
DJ
4488 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4489Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4490echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4491Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4492 { (exit 1); exit 1; }; }
4493fi;
cbd6bc14
DD
4494
4495
cbd6bc14
DD
4496# Check whether --with-mpfr or --without-mpfr was given.
4497if test "${with_mpfr+set}" = set; then
4498 withval="$with_mpfr"
b58b6ee1
DJ
4499
4500fi;
cbd6bc14 4501
14a1406e
PB
4502# Check whether --with-mpfr_include or --without-mpfr_include was given.
4503if test "${with_mpfr_include+set}" = set; then
4504 withval="$with_mpfr_include"
b58b6ee1
DJ
4505
4506fi;
14a1406e
PB
4507
4508# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4509if test "${with_mpfr_lib+set}" = set; then
4510 withval="$with_mpfr_lib"
14a1406e 4511
b58b6ee1 4512fi;
cbd6bc14
DD
4513
4514if test "x$with_mpfr" != x; then
4515 gmplibs="-L$with_mpfr/lib $gmplibs"
4516 gmpinc="-I$with_mpfr/include"
4517fi
14a1406e
PB
4518if test "x$with_mpfr_include" != x; then
4519 gmpinc="-I$with_mpfr_include"
4520fi
4521if test "x$with_mpfr_lib" != x; then
4522 gmplibs="-L$with_mpfr_lib $gmplibs"
4523fi
42f55f77
PB
4524if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4525 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4526 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4527 # Do not test the mpfr version. Assume that it is sufficient, since
4528 # it is in the source tree, and the library has not been built yet
4529 # but it would be included on the link line in the version check below
4530 # hence making the test fail.
4531 have_gmp=yes
4532fi
cbd6bc14 4533
cb2333e8 4534# Specify a location for gmp
b58b6ee1 4535
cb2333e8
DD
4536# Check whether --with-gmp-dir or --without-gmp-dir was given.
4537if test "${with_gmp_dir+set}" = set; then
4538 withval="$with_gmp_dir"
b58b6ee1
DJ
4539 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4540Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4541echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4542Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4543 { (exit 1); exit 1; }; }
4544fi;
cb2333e8
DD
4545
4546
cb2333e8
DD
4547# Check whether --with-gmp or --without-gmp was given.
4548if test "${with_gmp+set}" = set; then
4549 withval="$with_gmp"
b58b6ee1
DJ
4550
4551fi;
cb2333e8 4552
14a1406e
PB
4553# Check whether --with-gmp_include or --without-gmp_include was given.
4554if test "${with_gmp_include+set}" = set; then
4555 withval="$with_gmp_include"
b58b6ee1
DJ
4556
4557fi;
14a1406e
PB
4558
4559# Check whether --with-gmp_lib or --without-gmp_lib was given.
4560if test "${with_gmp_lib+set}" = set; then
4561 withval="$with_gmp_lib"
14a1406e 4562
b58b6ee1 4563fi;
14a1406e 4564
cb2333e8 4565
cbd6bc14
DD
4566if test "x$with_gmp" != x; then
4567 gmplibs="-L$with_gmp/lib $gmplibs"
4568 gmpinc="-I$with_gmp/include $gmpinc"
cb2333e8 4569fi
14a1406e
PB
4570if test "x$with_gmp_include" != x; then
4571 gmpinc="-I$with_gmp_include $gmpinc"
4572fi
4573if test "x$with_gmp_lib" != x; then
4574 gmplibs="-L$with_gmp_lib $gmplibs"
4575fi
42f55f77
PB
4576if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4577 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4578 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4579 # Do not test the gmp version. Assume that it is sufficient, since
4580 # it is in the source tree, and the library has not been built yet
4581 # but it would be included on the link line in the version check below
4582 # hence making the test fail.
4583 have_gmp=yes
4584fi
cb2333e8 4585
bd74ff2b 4586if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
42f55f77
PB
4587 have_gmp=yes
4588 saved_CFLAGS="$CFLAGS"
4589 CFLAGS="$CFLAGS $gmpinc"
4590 # Check GMP actually works
b58b6ee1
DJ
4591 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4592echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4593
4594cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
cb2333e8 4600#include "gmp.h"
b58b6ee1
DJ
4601int
4602main ()
4603{
cb2333e8 4604
42f55f77
PB
4605 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4606 choke me
4607 #endif
b58b6ee1
DJ
4608
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613rm -f conftest.$ac_objext
4614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 echo "$as_me:$LINENO: result: yes" >&5
4636echo "${ECHO_T}yes" >&6
4637else
4638 echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6; have_gmp=no
4643fi
4644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cb2333e8 4645
42f55f77
PB
4646 if test x"$have_gmp" = xyes; then
4647 saved_LIBS="$LIBS"
4648 LIBS="$LIBS $gmplibs"
b58b6ee1
DJ
4649 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4650echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4651 cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h. */
75ea5758 4657#include <gmp.h>
42f55f77 4658 #include <mpfr.h>
b58b6ee1
DJ
4659int
4660main ()
4661{
75ea5758 4662
fcd43632 4663 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
42f55f77
PB
4664 choke me
4665 #endif
d4954b6d
DD
4666 mpfr_t n;
4667 mpfr_t x;
42f55f77 4668 int t;
d4954b6d
DD
4669 mpfr_init (n);
4670 mpfr_init (x);
42f55f77
PB
4671 mpfr_atan2 (n, n, x, GMP_RNDN);
4672 mpfr_erfc (n, x, GMP_RNDN);
4673 mpfr_subnormalize (x, t, GMP_RNDN);
b58b6ee1
DJ
4674
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679rm -f conftest.$ac_objext conftest$ac_exeext
4680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest$ac_exeext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h. */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h. */
cb2333e8 4707#include <gmp.h>
42f55f77 4708 #include <mpfr.h>
b58b6ee1
DJ
4709int
4710main ()
4711{
a6a4e782 4712
fcd43632 4713 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
42f55f77
PB
4714 choke me
4715 #endif
4716 mpfr_t n; mpfr_init(n);
b58b6ee1
DJ
4717
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext conftest$ac_exeext
4723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724 (eval $ac_link) 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_c_werror_flag"
4732 || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest$ac_exeext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 echo "$as_me:$LINENO: result: yes" >&5
4745echo "${ECHO_T}yes" >&6
4746else
4747 echo "$as_me: failed program was:" >&5
4748sed 's/^/| /' conftest.$ac_ext >&5
4749
4750echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4751echo "${ECHO_T}buggy but acceptable" >&6
4752fi
4753rm -f conftest.err conftest.$ac_objext \
4754 conftest$ac_exeext conftest.$ac_ext
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6; have_gmp=no
4761fi
4762rm -f conftest.err conftest.$ac_objext \
4763 conftest$ac_exeext conftest.$ac_ext
42f55f77
PB
4764 LIBS="$saved_LIBS"
4765 fi
4766 CFLAGS="$saved_CFLAGS"
cb2333e8 4767
42f55f77 4768 if test x$have_gmp != xyes; then
fcd43632 4769 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
b58b6ee1
DJ
4770Try the --with-gmp and/or --with-mpfr options to specify their locations.
4771Copies of these libraries' source code can be found at their respective
4772hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4773See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4774If you obtained GMP and/or MPFR from a vendor distribution package, make
4775sure that you have installed both the libraries and the header files.
4776They may be located in separate packages." >&5
fcd43632 4777echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
a6a4e782
DD
4778Try the --with-gmp and/or --with-mpfr options to specify their locations.
4779Copies of these libraries' source code can be found at their respective
4780hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
14a1406e
PB
4781See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4782If you obtained GMP and/or MPFR from a vendor distribution package, make
4783sure that you have installed both the libraries and the header files.
b58b6ee1
DJ
4784They may be located in separate packages." >&2;}
4785 { (exit 1); exit 1; }; }
42f55f77 4786 fi
a6a4e782
DD
4787fi
4788
cbd6bc14 4789# Flags needed for both GMP and/or MPFR
cb2333e8
DD
4790
4791
4792
4a95a7fe 4793# By default, C is the only stage 1 language.
75ea5758 4794stage1_languages=,c,
457eaf16 4795
cfc26d93
NN
4796# Figure out what language subdirectories are present.
4797# Look if the user specified --enable-languages="..."; if not, use
4798# the environment variable $LANGUAGES if defined. $LANGUAGES might
4799# go away some day.
4800# NB: embedded tabs in this IF block -- do not untabify
4801if test -d ${srcdir}/gcc; then
4802 if test x"${enable_languages+set}" != xset; then
4803 if test x"${LANGUAGES+set}" = xset; then
4804 enable_languages="${LANGUAGES}"
4805 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4806 else
4807 enable_languages=all
4808 fi
4809 else
4810 if test x"${enable_languages}" = x ||
4811 test x"${enable_languages}" = xyes;
4812 then
4813 echo configure.in: --enable-languages needs at least one language argument 1>&2
4814 exit 1
4815 fi
4816 fi
4817 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4818
c2105cb9
DE
4819 # 'f95' is the old name for the 'fortran' language. We issue a warning
4820 # and make the substitution.
4821 case ,${enable_languages}, in
4822 *,f95,*)
4823 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4824 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4825 ;;
4826 esac
4827
cfc26d93
NN
4828 # First scan to see if an enabled language requires some other language.
4829 # We assume that a given config-lang.in will list all the language
4830 # front ends it requires, even if some are required indirectly.
4831 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4832 case ${lang_frag} in
4833 ..) ;;
4834 # The odd quoting in the next line works around
4835 # an apparent bug in bash 1.12 on linux.
4836 ${srcdir}/gcc/[*]/config-lang.in) ;;
4837 *)
4838 # From the config-lang.in, get $language, $lang_requires
4839 language=
4840 lang_requires=
4841 . ${lang_frag}
4842 for other in ${lang_requires} ; do
4843 case ,${enable_languages}, in
4844 *,$other,*) ;;
4845 *,all,*) ;;
4846 *,$language,*)
4847 echo " \`$other' language required by \`$language'; enabling" 1>&2
4848 enable_languages="${enable_languages},${other}"
4849 ;;
4850 esac
4851 done
4852 ;;
4853 esac
4854 done
4855
75ea5758 4856 new_enable_languages=,c,
cfc26d93 4857 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
75ea5758 4858 potential_languages=,c,
cfc26d93
NN
4859
4860 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4861 case ${lang_frag} in
4862 ..) ;;
4863 # The odd quoting in the next line works around
4864 # an apparent bug in bash 1.12 on linux.
4865 ${srcdir}/gcc/[*]/config-lang.in) ;;
4866 *)
b58b6ee1 4867 # From the config-lang.in, get $language, $target_libs,
457eaf16 4868 # $lang_dirs, $boot_language, and $build_by_default
cfc26d93
NN
4869 language=
4870 target_libs=
4871 lang_dirs=
f90716dd 4872 subdir_requires=
75ea5758
PB
4873 boot_language=no
4874 build_by_default=yes
cfc26d93 4875 . ${lang_frag}
75ea5758
PB
4876 if test x${language} = x; then
4877 echo "${lang_frag} doesn't set \$language." 1>&2
4878 exit 1
4879 fi
4880
4881 case ,${enable_languages}, in
4882 *,${language},*)
cfc26d93
NN
4883 # Language was explicitly selected; include it.
4884 add_this_lang=yes
4885 ;;
75ea5758
PB
4886 *,all,*)
4887 # 'all' was selected, select it if it is a default language
4888 add_this_lang=${build_by_default}
cfc26d93
NN
4889 ;;
4890 *)
4891 add_this_lang=no
4892 ;;
4893 esac
cb2333e8 4894
f90716dd 4895 # Disable languages that need other directories if these aren't available.
37b43cde 4896 for i in $subdir_requires; do
69d5f332 4897 test -f "$srcdir/gcc/$i/config-lang.in" && continue
f90716dd
PB
4898 case ,${enable_languages}, in
4899 *,${language},*)
4900 # Specifically requested language; tell them.
b58b6ee1
DJ
4901 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4902echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4903 { (exit 1); exit 1; }; }
f90716dd
PB
4904 ;;
4905 *)
4906 # Silently disable.
75ea5758 4907 add_this_lang=unsupported
f90716dd
PB
4908 ;;
4909 esac
4910 done
4911
75ea5758
PB
4912 # Disable Ada if no preexisting GNAT is available.
4913 case ,${enable_languages},:${language}:${have_gnat} in
4914 *,${language},*:ada:no)
4915 # Specifically requested language; tell them.
b58b6ee1
DJ
4916 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4917echo "$as_me: error: GNAT is required to build $language" >&2;}
4918 { (exit 1); exit 1; }; }
75ea5758
PB
4919 ;;
4920 *:ada:no)
4921 # Silently disable.
4922 add_this_lang=unsupported
4923 ;;
4924 esac
4925
aac893c5
HPN
4926 # Disable a language that is unsupported by the target.
4927 case " $unsupported_languages " in
4928 *" $language "*)
75ea5758 4929 add_this_lang=unsupported
aac893c5
HPN
4930 ;;
4931 esac
4932
cb2333e8 4933 case $add_this_lang in
75ea5758 4934 unsupported)
cfc26d93 4935 # Remove language-dependent dirs.
457eaf16
NN
4936 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4937 ;;
75ea5758
PB
4938 no)
4939 # Remove language-dependent dirs; still show language as supported.
4940 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4941 potential_languages="${potential_languages}${language},"
4942 ;;
4943 yes)
4944 new_enable_languages="${new_enable_languages}${language},"
4945 potential_languages="${potential_languages}${language},"
457eaf16
NN
4946 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4947 case ${boot_language} in
4948 yes)
8ec98d6c 4949 # Add to (comma-separated) list of stage 1 languages.
75ea5758 4950 stage1_languages="${stage1_languages}${language},"
457eaf16
NN
4951 ;;
4952 esac
4953 ;;
cfc26d93
NN
4954 esac
4955 ;;
4956 esac
4957 done
4958
75ea5758
PB
4959 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4960if test "${enable_stage1_languages+set}" = set; then
4961 enableval="$enable_stage1_languages"
4962 case ,${enable_stage1_languages}, in
4963 ,no,|,,)
4964 # Set it to something that will have no effect in the loop below
4965 enable_stage1_languages=c ;;
4966 ,yes,)
4967 enable_stage1_languages=`echo $new_enable_languages | \
4968 sed -e "s/^,//" -e "s/,$//" ` ;;
4969 *,all,*)
4970 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4971 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4972 esac
4973
4974 # Add "good" languages from enable_stage1_languages to stage1_languages,
4975 # while "bad" languages go in missing_languages. Leave no duplicates.
4976 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4977 case $potential_languages in
4978 *,$i,*)
4979 case $stage1_languages in
4980 *,$i,*) ;;
4981 *) stage1_languages="$stage1_languages$i," ;;
4982 esac ;;
4983 *)
4984 case $missing_languages in
4985 *,$i,*) ;;
4986 *) missing_languages="$missing_languages$i," ;;
4987 esac ;;
4988 esac
4989 done
b58b6ee1 4990fi;
75ea5758
PB
4991
4992 # Remove leading/trailing commas that were added for simplicity
4993 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
2e93c971 4994 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
75ea5758
PB
4995 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4996 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4997
cfc26d93 4998 if test "x$missing_languages" != x; then
b58b6ee1 4999 { { echo "$as_me:$LINENO: error:
57bcaf2d 5000The following requested languages could not be built: ${missing_languages}
b58b6ee1
DJ
5001Supported languages are: ${potential_languages}" >&5
5002echo "$as_me: error:
5003The following requested languages could not be built: ${missing_languages}
5004Supported languages are: ${potential_languages}" >&2;}
5005 { (exit 1); exit 1; }; }
cfc26d93 5006 fi
cfc26d93
NN
5007 if test "x$new_enable_languages" != "x$enable_languages"; then
5008 echo The following languages will be built: ${new_enable_languages}
75ea5758 5009 enable_languages="$new_enable_languages"
cfc26d93 5010 fi
75ea5758 5011
b58b6ee1 5012
0661a4a3 5013 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
cfc26d93
NN
5014fi
5015
f621a0dc
PB
5016# Handle --disable-<component> generically.
5017for dir in $configdirs $build_configdirs $target_configdirs ; do
5018 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
3fbb5e3d
PB
5019 varname=`echo $dirname | sed -e s/+/_/g`
5020 if eval test x\${enable_${varname}} "=" xno ; then
f621a0dc
PB
5021 noconfigdirs="$noconfigdirs $dir"
5022 fi
5023done
5024
e1e5148c
CD
5025# Check for Boehm's garbage collector
5026# Check whether --enable-objc-gc or --disable-objc-gc was given.
5027if test "${enable_objc_gc+set}" = set; then
5028 enableval="$enable_objc_gc"
5029 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5030 *,objc,*:*:yes:*target-boehm-gc*)
b58b6ee1
DJ
5031 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5032echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5033 { (exit 1); exit 1; }; }
e1e5148c
CD
5034 ;;
5035esac
b58b6ee1 5036fi;
e1e5148c
CD
5037
5038# Make sure we only build Boehm's garbage collector if required.
09fd280c
DA
5039case ,${enable_languages},:${enable_objc_gc} in
5040 *,objc,*:yes)
e1e5148c
CD
5041 # Keep target-boehm-gc if requested for Objective-C.
5042 ;;
e1e5148c 5043 *)
09fd280c
DA
5044 # Otherwise remove target-boehm-gc depending on target-libjava.
5045 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5046 noconfigdirs="$noconfigdirs target-boehm-gc"
5047 fi
e1e5148c
CD
5048 ;;
5049esac
5050
3d439922
AL
5051# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5052# $build_configdirs and $target_configdirs.
cfc26d93
NN
5053# If we have the source for $noconfigdirs entries, add them to $notsupp.
5054
5055notsupp=""
5056for dir in . $skipdirs $noconfigdirs ; do
3d439922 5057 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
cfc26d93
NN
5058 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5059 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5060 if test -r $srcdir/$dirname/configure ; then
5061 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5062 true
5063 else
5064 notsupp="$notsupp $dir"
5065 fi
5066 fi
5067 fi
3d439922
AL
5068 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5069 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5070 if test -r $srcdir/$dirname/configure ; then
5071 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5072 true
5073 else
5074 notsupp="$notsupp $dir"
5075 fi
5076 fi
5077 fi
cfc26d93
NN
5078 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5079 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5080 if test -r $srcdir/$dirname/configure ; then
5081 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5082 true
5083 else
5084 notsupp="$notsupp $dir"
5085 fi
5086 fi
5087 fi
5088done
5089
5090# Sometimes the tools are distributed with libiberty but with no other
5091# libraries. In that case, we don't want to build target-libiberty.
a1c408a1 5092# Don't let libgcc imply libiberty either.
cfc26d93 5093if test -n "${target_configdirs}" ; then
a1c408a1 5094 libgcc=
cfc26d93
NN
5095 others=
5096 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
a1c408a1
NC
5097 if test "$i" = "libgcc"; then
5098 libgcc=target-libgcc
5099 elif test "$i" != "libiberty" ; then
cfc26d93
NN
5100 if test -r $srcdir/$i/configure ; then
5101 others=yes;
5102 break;
5103 fi
5104 fi
5105 done
5106 if test -z "${others}" ; then
a1c408a1 5107 target_configdirs=$libgcc
cfc26d93
NN
5108 fi
5109fi
5110
5111# Quietly strip out all directories which aren't configurable in this tree.
5112# This relies on all configurable subdirectories being autoconfiscated, which
5113# is now the case.
2cb47d68
PB
5114build_configdirs_all="$build_configdirs"
5115build_configdirs=
5116for i in ${build_configdirs_all} ; do
b58b6ee1 5117 j=`echo $i | sed -e s/build-//g`
2cb47d68
PB
5118 if test -f ${srcdir}/$j/configure ; then
5119 build_configdirs="${build_configdirs} $i"
5120 fi
5121done
5122
cfc26d93
NN
5123configdirs_all="$configdirs"
5124configdirs=
5125for i in ${configdirs_all} ; do
5126 if test -f ${srcdir}/$i/configure ; then
5127 configdirs="${configdirs} $i"
5128 fi
5129done
2cb47d68 5130
cfc26d93
NN
5131target_configdirs_all="$target_configdirs"
5132target_configdirs=
5133for i in ${target_configdirs_all} ; do
b58b6ee1 5134 j=`echo $i | sed -e s/target-//g`
cfc26d93
NN
5135 if test -f ${srcdir}/$j/configure ; then
5136 target_configdirs="${target_configdirs} $i"
5137 fi
5138done
5139
5140# Produce a warning message for the subdirs we can't configure.
5141# This isn't especially interesting in the Cygnus tree, but in the individual
5142# FSF releases, it's important to let people know when their machine isn't
5143# supported by the one or two programs in a package.
5144
5145if test -n "${notsupp}" && test -z "${norecursion}" ; then
5146 # If $appdirs is non-empty, at least one of those directories must still
5147 # be configured, or we error out. (E.g., if the gas release supports a
5148 # specified target in some subdirs but not the gas subdir, we shouldn't
5149 # pretend that all is well.)
5150 if test -n "$appdirs" ; then
5151 for dir in $appdirs ; do
5152 if test -r $dir/Makefile.in ; then
5153 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5154 appdirs=""
5155 break
5156 fi
2cb47d68 5157 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
cfc26d93
NN
5158 appdirs=""
5159 break
5160 fi
5161 fi
5162 done
5163 if test -n "$appdirs" ; then
5164 echo "*** This configuration is not supported by this package." 1>&2
5165 exit 1
5166 fi
5167 fi
5168 # Okay, some application will build, or we don't care to check. Still
5169 # notify of subdirs not getting built.
5170 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5171 echo " ${notsupp}" 1>&2
5172 echo " (Any other directories should still work fine.)" 1>&2
5173fi
5174
5175case "$host" in
5176 *msdosdjgpp*)
5177 enable_gdbtk=no ;;
5178esac
5179
b8c26111
PB
5180# To find our prefix, in gcc_cv_tool_prefix.
5181
5182# The user is always right.
5183if test "${PATH_SEPARATOR+set}" != set; then
5184 echo "#! /bin/sh" >conf$$.sh
5185 echo "exit 0" >>conf$$.sh
5186 chmod +x conf$$.sh
5187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5188 PATH_SEPARATOR=';'
5189 else
5190 PATH_SEPARATOR=:
5191 fi
5192 rm -f conf$$.sh
5193fi
5194
5195
5196
5197if test "x$exec_prefix" = xNONE; then
5198 if test "x$prefix" = xNONE; then
5199 gcc_cv_tool_prefix=$ac_default_prefix
5200 else
5201 gcc_cv_tool_prefix=$prefix
5202 fi
5203else
5204 gcc_cv_tool_prefix=$exec_prefix
5205fi
5206
5207# If there is no compiler in the tree, use the PATH only. In any
5208# case, if there is no compiler in the tree nobody should use
5209# AS_FOR_TARGET and LD_FOR_TARGET.
5210if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5211 gcc_version=`cat $srcdir/gcc/BASE-VER`
5212 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5213 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5214 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5218else
5219 gcc_cv_tool_dirs=
5220fi
5221
5222if test x$build = x$target && test -n "$md_exec_prefix"; then
5223 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5224fi
5225
5226
5227
cfc26d93
NN
5228copy_dirs=
5229
b58b6ee1 5230
9b992990
MM
5231# Check whether --with-build-sysroot or --without-build-sysroot was given.
5232if test "${with_build_sysroot+set}" = set; then
5233 withval="$with_build_sysroot"
5234 if test x"$withval" != x ; then
5235 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5236 fi
5237else
5238 SYSROOT_CFLAGS_FOR_TARGET=
b58b6ee1 5239fi;
9b992990
MM
5240
5241
fcc5fef0
JM
5242
5243# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5244if test "${with_debug_prefix_map+set}" = set; then
5245 withval="$with_debug_prefix_map"
5246 if test x"$withval" != x; then
5247 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5248 for debug_map in $withval; do
5249 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5250 done
5251 fi
5252else
5253 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5254fi;
5255
5256
6532abb6
PB
5257# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5258# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5259# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5260# We want to ensure that TARGET libraries (which we know are built with
5261# gcc) are built with "-O2 -g", so include those options when setting
5262# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5263if test "x$CFLAGS_FOR_TARGET" = x; then
5264 CFLAGS_FOR_TARGET=$CFLAGS
5265 case " $CFLAGS " in
5266 *" -O2 "*) ;;
5267 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5268 esac
5269 case " $CFLAGS " in
5270 *" -g "* | *" -g3 "*) ;;
5271 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5272 esac
5273fi
5274
5275
5276if test "x$CXXFLAGS_FOR_TARGET" = x; then
5277 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5278 case " $CXXFLAGS " in
5279 *" -O2 "*) ;;
5280 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5281 esac
5282 case " $CXXFLAGS " in
5283 *" -g "* | *" -g3 "*) ;;
5284 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5285 esac
5286fi
5287
5288
cfc26d93
NN
5289# Handle --with-headers=XXX. If the value is not "yes", the contents of
5290# the named directory are copied to $(tooldir)/sys-include.
5291if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5292 if test x${is_cross_compiler} = xno ; then
5293 echo 1>&2 '***' --with-headers is only supported when cross compiling
5294 exit 1
5295 fi
5296 if test x"${with_headers}" != xyes ; then
b8c26111 5297 x=${gcc_cv_tool_prefix}
b58b6ee1 5298 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
cfc26d93
NN
5299 fi
5300fi
5301
5302# Handle --with-libs=XXX. If the value is not "yes", the contents of
5303# the name directories are copied to $(tooldir)/lib. Multiple directories
5304# are permitted.
5305if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5306 if test x${is_cross_compiler} = xno ; then
5307 echo 1>&2 '***' --with-libs is only supported when cross compiling
5308 exit 1
5309 fi
5310 if test x"${with_libs}" != xyes ; then
5311 # Copy the libraries in reverse order, so that files in the first named
5312 # library override files in subsequent libraries.
b8c26111 5313 x=${gcc_cv_tool_prefix}
cfc26d93 5314 for l in ${with_libs}; do
b58b6ee1 5315 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
cfc26d93
NN
5316 done
5317 fi
5318fi
5319
fef3f213
PB
5320# Set with_gnu_as and with_gnu_ld as appropriate.
5321#
5322# This is done by determining whether or not the appropriate directory
5323# is available, and by checking whether or not specific configurations
5324# have requested that this magic not happen.
b58b6ee1
DJ
5325#
5326# The command line options always override the explicit settings in
fef3f213
PB
5327# configure.in, and the settings in configure.in override this magic.
5328#
b58b6ee1 5329# If the default for a toolchain is to use GNU as and ld, and you don't
fef3f213
PB
5330# want to do that, then you should use the --without-gnu-as and
5331# --without-gnu-ld options for the configure script.
5332
5333if test x${use_gnu_as} = x &&
5334 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5335 with_gnu_as=yes
5336 extra_host_args="$extra_host_args --with-gnu-as"
5337fi
5338
5339if test x${use_gnu_ld} = x &&
b916272a 5340 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
fef3f213
PB
5341 with_gnu_ld=yes
5342 extra_host_args="$extra_host_args --with-gnu-ld"
5343fi
5344
5345# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5346# can detect this case.
5347
5348if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5349 with_newlib=yes
5350 extra_host_args="$extra_host_args --with-newlib"
5351fi
5352
cfc26d93
NN
5353# Handle ${copy_dirs}
5354set fnord ${copy_dirs}
5355shift
5356while test $# != 0 ; do
5357 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5358 :
5359 else
5360 echo Copying $1 to $2
5361
5362 # Use the install script to create the directory and all required
5363 # parent directories.
5364 if test -d $2 ; then
5365 :
5366 else
5367 echo >config.temp
5368 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5369 fi
5370
5371 # Copy the directory, assuming we have tar.
5372 # FIXME: Should we use B in the second tar? Not all systems support it.
5373 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5374
5375 # It is the responsibility of the user to correctly adjust all
5376 # symlinks. If somebody can figure out how to handle them correctly
5377 # here, feel free to add the code.
5378
5379 echo $1 > $2/COPIED
5380 fi
5381 shift; shift
5382done
5383
fef3f213
PB
5384# Determine a target-dependent exec_prefix that the installed
5385# gcc will search in. Keep this list sorted by triplet, with
5386# the *-*-osname triplets last.
5387md_exec_prefix=
5388case "${target}" in
5389 alpha*-*-*vms*)
5390 md_exec_prefix=/gnu/lib/gcc-lib
5391 ;;
b301596e 5392 i[34567]86-pc-msdosdjgpp*)
fef3f213
PB
5393 md_exec_prefix=/dev/env/DJDIR/bin
5394 ;;
b301596e 5395 i[34567]86-*-sco3.2v5*)
fef3f213
PB
5396 if test $with_gnu_as = yes; then
5397 md_exec_prefix=/usr/gnu/bin
5398 else
5399 md_exec_prefix=/usr/ccs/bin/elf
5400 fi
5401 ;;
5402
5403 mn10300-*-* | \
5404 powerpc-*-chorusos* | \
5405 powerpc*-*-eabi* | \
5406 powerpc*-*-sysv* | \
5407 powerpc*-*-kaos* | \
5408 s390x-ibm-tpf*)
5409 md_exec_prefix=/usr/ccs/bin
5410 ;;
5411 sparc64-*-elf*)
5412 ;;
5413 v850*-*-*)
5414 md_exec_prefix=/usr/ccs/bin
5415 ;;
a1e856cc 5416 xtensa*-*-elf*)
fef3f213
PB
5417 ;;
5418
5419 *-*-beos* | \
5420 *-*-elf* | \
5421 *-*-hpux* | \
5422 *-*-netware* | \
5423 *-*-nto-qnx* | \
5424 *-*-rtems* | \
5425 *-*-solaris2* | \
b301596e 5426 *-*-sysv[45]* | \
fef3f213
PB
5427 *-*-vxworks* | \
5428 *-wrs-windiss)
5429 md_exec_prefix=/usr/ccs/bin
5430 ;;
5431esac
5432
bafecfd6
NN
5433extra_arflags_for_target=
5434extra_nmflags_for_target=
5435extra_ranlibflags_for_target=
5436target_makefile_frag=/dev/null
5437case "${target}" in
4e16301e
DB
5438 mep*-*-*)
5439 target_makefile_frag="config/mt-mep"
5440 ;;
e53c5df0
AM
5441 spu-*-*)
5442 target_makefile_frag="config/mt-spu"
5443 ;;
2ad518b5
RS
5444 mips*-sde-elf*)
5445 target_makefile_frag="config/mt-sde"
5446 ;;
2d2e75dd
RS
5447 mipsisa*-*-elfoabi*)
5448 target_makefile_frag="config/mt-mips-elfoabi"
5449 ;;
59c59569
RS
5450 mips*-*-*linux* | mips*-*-gnu*)
5451 target_makefile_frag="config/mt-mips-gnu"
5452 ;;
b330724f 5453 *-*-netware*)
bafecfd6
NN
5454 target_makefile_frag="config/mt-netware"
5455 ;;
824cf273
NN
5456 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5457 target_makefile_frag="config/mt-gnu"
bafecfd6
NN
5458 ;;
5459 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b58b6ee1 5460 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
bafecfd6
NN
5461 # commands to handle both 32-bit and 64-bit objects. These flags are
5462 # harmless if we're using GNU nm or ar.
5463 extra_arflags_for_target=" -X32_64"
5464 extra_nmflags_for_target=" -B -X32_64"
5465 ;;
5466 *-*-darwin*)
5467 # ranlib from Darwin requires the -c flag to look at common symbols.
5468 extra_ranlibflags_for_target=" -c"
5469 ;;
5470 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5471 target_makefile_frag="config/mt-wince"
5472 ;;
5473esac
5474
5475alphaieee_frag=/dev/null
5476case $target in
5477 alpha*-*-*)
5478 # This just makes sure to use the -mieee option to build target libs.
5479 # This should probably be set individually by each library.
5480 alphaieee_frag="config/mt-alphaieee"
5481 ;;
5482esac
5483
5484# If --enable-target-optspace always use -Os instead of -O2 to build
5485# the target libraries, similarly if it is not specified, use -Os
5486# on selected platforms.
5487ospace_frag=/dev/null
5488case "${enable_target_optspace}:${target}" in
5489 yes:*)
5490 ospace_frag="config/mt-ospace"
5491 ;;
5492 :d30v-*)
5493 ospace_frag="config/mt-d30v"
5494 ;;
5495 :m32r-* | :d10v-* | :fr30-*)
5496 ospace_frag="config/mt-ospace"
5497 ;;
5498 no:* | :*)
5499 ;;
5500 *)
5501 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5502 ;;
5503esac
5504
bafecfd6
NN
5505# Default to using --with-stabs for certain targets.
5506if test x${with_stabs} = x ; then
5507 case "${target}" in
4ea8488c 5508 mips*-*-irix[56]*)
bafecfd6
NN
5509 ;;
5510 mips*-*-* | alpha*-*-osf*)
5511 with_stabs=yes;
5512 extra_host_args="${extra_host_args} --with-stabs"
5513 ;;
5514 esac
5515fi
5516
5517# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5518# them automatically.
5519case "${host}" in
b58b6ee1 5520 hppa*64*-*-hpux11*)
bafecfd6
NN
5521 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5522 ;;
5523esac
5524
bafecfd6
NN
5525# Some systems (e.g., one of the i386-aix systems the gas testers are
5526# using) don't handle "\$" correctly, so don't use it here.
b58b6ee1 5527tooldir='${exec_prefix}'/${target_noncanonical}
bafecfd6
NN
5528build_tooldir=${tooldir}
5529
bafecfd6
NN
5530# Create a .gdbinit file which runs the one in srcdir
5531# and tells GDB to look there for source files.
5532
5533if test -r ${srcdir}/.gdbinit ; then
5534 case ${srcdir} in
5535 .) ;;
5536 *) cat > ./.gdbinit <<EOF
5537# ${NO_EDIT}
5538dir ${srcdir}
5539dir .
5540source ${srcdir}/.gdbinit
5541EOF
5542 ;;
5543 esac
5544fi
5545
bafecfd6
NN
5546# Make sure that the compiler is able to generate an executable. If it
5547# can't, we are probably in trouble. We don't care whether we can run the
5548# executable--we might be using a cross compiler--we only care whether it
5549# can be created. At this point the main configure script has set CC.
5550we_are_ok=no
5551echo "int main () { return 0; }" > conftest.c
5552${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5553if test $? = 0 ; then
5554 if test -s conftest || test -s conftest.exe ; then
5555 we_are_ok=yes
5556 fi
b58b6ee1 5557fi
bafecfd6
NN
5558case $we_are_ok in
5559 no)
5560 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5561 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5562 rm -f conftest*
5563 exit 1
5564 ;;
5565esac
5566rm -f conftest*
5567
5568# The Solaris /usr/ucb/cc compiler does not appear to work.
5569case "${host}" in
5570 sparc-sun-solaris2*)
5571 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5572 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5573 could_use=
5574 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5575 if test -d /opt/cygnus/bin ; then
5576 if test "$could_use" = "" ; then
5577 could_use="/opt/cygnus/bin"
5578 else
5579 could_use="$could_use or /opt/cygnus/bin"
5580 fi
5581 fi
5582 if test "$could_use" = "" ; then
5583 echo "Warning: compilation may fail because you're using"
5584 echo "/usr/ucb/cc. You should change your PATH or CC "
5585 echo "variable and rerun configure."
5586 else
5587 echo "Warning: compilation may fail because you're using"
5588 echo "/usr/ucb/cc, when you should use the C compiler from"
5589 echo "$could_use. You should change your"
5590 echo "PATH or CC variable and rerun configure."
5591 fi
5592 fi
5593 ;;
5594esac
5595
8453fdba 5596# Decide which environment variable is used to find dynamic libraries.
bafecfd6
NN
5597case "${host}" in
5598 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
d34bd810 5599 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
8453fdba 5600 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
bafecfd6
NN
5601 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5602esac
5603
8453fdba
AL
5604# On systems where the dynamic library environment variable is PATH,
5605if test "$RPATH_ENVVAR" = PATH; then
5606 GCC_SHLIB_SUBDIR=/shlib
5607else
5608 GCC_SHLIB_SUBDIR=
5609fi
5610
bafecfd6
NN
5611# Record target_configdirs and the configure arguments for target and
5612# build configuration in Makefile.
5613target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2cb47d68 5614build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
bafecfd6 5615
bafecfd6
NN
5616# Determine whether gdb needs tk/tcl or not.
5617# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5618# and in that case we want gdb to be built without tk. Ugh!
5619# In fact I believe gdb is the *only* package directly dependent on tk,
5620# so we should be able to put the 'maybe's in unconditionally and
5621# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5622# 100% sure that that's safe though.
5035a087 5623
44397772 5624gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
bafecfd6
NN
5625case "$enable_gdbtk" in
5626 no)
5627 GDB_TK="" ;;
5035a087
AC
5628 yes)
5629 GDB_TK="${gdb_tk}" ;;
bafecfd6 5630 *)
5035a087
AC
5631 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5632 # distro. Eventually someone will fix this and move Insight, nee
5633 # gdbtk to a separate directory.
5634 if test -d ${srcdir}/gdb/gdbtk ; then
5635 GDB_TK="${gdb_tk}"
5636 else
5637 GDB_TK=""
5638 fi
5639 ;;
bafecfd6 5640esac
81cdf522
DJ
5641CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5642INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
bafecfd6 5643
a7e609d6 5644# Strip out unwanted targets.
9b520963
NN
5645
5646# While at that, we remove Makefiles if we were started for recursive
5647# configuration, so that the top-level Makefile reconfigures them,
5648# like we used to do when configure itself was recursive.
9b520963 5649
a7e609d6
PB
5650# Loop over modules. $extrasub must be used with care, limiting as
5651# much as possible the usage of range addresses. That's because autoconf
5652# splits the sed script to overcome limits in the number of commands,
5653# and relying on carefully-timed sed passes may turn out to be very hard
5654# to maintain later. In this particular case, you just have to be careful
5655# not to nest @if/@endif pairs, because configure will not warn you at all.
9b520963 5656
e1666221
PB
5657# Check whether --enable-bootstrap or --disable-bootstrap was given.
5658if test "${enable_bootstrap+set}" = set; then
5659 enableval="$enable_bootstrap"
b58b6ee1 5660
e1666221 5661else
ebc58bf8 5662 enable_bootstrap=default
b58b6ee1 5663fi;
e1666221 5664
ebc58bf8
PB
5665# Issue errors and warnings for invalid/strange bootstrap combinations.
5666case "$configdirs" in
5667 *gcc*) have_compiler=yes ;;
5668 *) have_compiler=no ;;
5669esac
5670
5671case "$have_compiler:$host:$target:$enable_bootstrap" in
5672 *:*:*:no) ;;
5673
15b527ca 5674 # Default behavior. Enable bootstrap if we have a compiler
ebc58bf8
PB
5675 # and we are in a native configuration.
5676 yes:$build:$build:default)
15b527ca 5677 enable_bootstrap=yes ;;
ebc58bf8
PB
5678
5679 *:*:*:default)
5680 enable_bootstrap=no ;;
5681
5682 # We have a compiler and we are in a native configuration, bootstrap is ok
e3c08f94 5683 yes:$build:$build:yes)
ebc58bf8
PB
5684 ;;
5685
5686 # Other configurations, but we have a compiler. Assume the user knows
5687 # what he's doing.
e3c08f94 5688 yes:*:*:yes)
b58b6ee1
DJ
5689 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5690echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ebc58bf8
PB
5691 ;;
5692
5693 # No compiler: if they passed --enable-bootstrap explicitly, fail
e3c08f94 5694 no:*:*:yes)
b58b6ee1
DJ
5695 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5696echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5697 { (exit 1); exit 1; }; } ;;
ebc58bf8
PB
5698
5699 # Fail if wrong command line
5700 *)
b58b6ee1
DJ
5701 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5702echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5703 { (exit 1); exit 1; }; }
ebc58bf8
PB
5704 ;;
5705esac
5706
5707# Adjust the toplevel makefile according to whether bootstrap was selected.
e1666221
PB
5708case "$enable_bootstrap" in
5709 yes)
aac4e7d4 5710 bootstrap_suffix=bootstrap ;;
e1666221 5711 no)
aac4e7d4 5712 bootstrap_suffix=no-bootstrap ;;
e1666221
PB
5713esac
5714
2cb47d68 5715for module in ${build_configdirs} ; do
aac4e7d4
CF
5716 if test -z "${no_recursion}" \
5717 && test -f ${build_subdir}/${module}/Makefile; then
5718 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5719 rm -f ${build_subdir}/${module}/Makefile
5720 fi
5721 extrasub="$extrasub
5722/^@if build-$module\$/d
5723/^@endif build-$module\$/d
5724/^@if build-$module-$bootstrap_suffix\$/d
5725/^@endif build-$module-$bootstrap_suffix\$/d"
5726done
5727for module in ${configdirs} ; do
e3c08f94 5728 if test -z "${no_recursion}"; then
bde7f665 5729 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
e3c08f94
PB
5730 if test -f ${file}; then
5731 echo 1>&2 "*** removing ${file} to force reconfigure"
5732 rm -f ${file}
5733 fi
5734 done
aac4e7d4
CF
5735 fi
5736 extrasub="$extrasub
5737/^@if $module\$/d
5738/^@endif $module\$/d
5739/^@if $module-$bootstrap_suffix\$/d
5740/^@endif $module-$bootstrap_suffix\$/d"
5741done
5742for module in ${target_configdirs} ; do
5743 if test -z "${no_recursion}" \
5744 && test -f ${target_subdir}/${module}/Makefile; then
5745 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5746 rm -f ${target_subdir}/${module}/Makefile
5747 fi
5748 extrasub="$extrasub
5749/^@if target-$module\$/d
5750/^@endif target-$module\$/d
5751/^@if target-$module-$bootstrap_suffix\$/d
5752/^@endif target-$module-$bootstrap_suffix\$/d"
5753done
5754
a7e609d6
PB
5755extrasub="$extrasub
5756/^@if /,/^@endif /d"
bafecfd6
NN
5757
5758# Create the serialization dependencies. This uses a temporary file.
5759
af9955fa
AO
5760# Check whether --enable-serial-configure or --disable-serial-configure was given.
5761if test "${enable_serial_configure+set}" = set; then
5762 enableval="$enable_serial_configure"
af9955fa 5763
b58b6ee1 5764fi;
af9955fa 5765
7f74e6a3
DD
5766case ${enable_serial_configure} in
5767 yes)
5768 enable_serial_build_configure=yes
5769 enable_serial_host_configure=yes
5770 enable_serial_target_configure=yes
5771 ;;
5772esac
5773
bafecfd6
NN
5774# These force 'configure's to be done one at a time, to avoid problems
5775# with contention over a shared config.cache.
5776rm -f serdep.tmp
af9955fa 5777echo '# serdep.tmp' > serdep.tmp
bafecfd6 5778olditem=
7f74e6a3 5779test "x${enable_serial_build_configure}" = xyes &&
bafecfd6
NN
5780for item in ${build_configdirs} ; do
5781 case ${olditem} in
5782 "") ;;
af9955fa 5783 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
5784 esac
5785 olditem=${item}
5786done
5787olditem=
7f74e6a3 5788test "x${enable_serial_host_configure}" = xyes &&
bafecfd6
NN
5789for item in ${configdirs} ; do
5790 case ${olditem} in
5791 "") ;;
af9955fa 5792 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
5793 esac
5794 olditem=${item}
5795done
5796olditem=
7f74e6a3 5797test "x${enable_serial_target_configure}" = xyes &&
bafecfd6
NN
5798for item in ${target_configdirs} ; do
5799 case ${olditem} in
5800 "") ;;
af9955fa 5801 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
5802 esac
5803 olditem=${item}
5804done
5805serialization_dependencies=serdep.tmp
5806
5807
af9955fa 5808# Base args. Strip norecursion, cache-file, srcdir, host, build,
b58b6ee1
DJ
5809# target, nonopt, and variable assignments. These are the ones we
5810# might not want to pass down to subconfigures. Also strip
5811# program-prefix, program-suffix, and program-transform-name, so that
5812# we can pass down a consistent program-transform-name.
5813baseargs=
5814keep_next=no
5815skip_next=no
5816eval "set -- $ac_configure_args"
b8c26111
PB
5817for ac_arg
5818do
b58b6ee1
DJ
5819 if test X"$skip_next" = X"yes"; then
5820 skip_next=no
5821 continue
5822 fi
5823 if test X"$keep_next" = X"yes"; then
5824 case $ac_arg in
5825 *\'*)
5826 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5827 esac
5828 baseargs="$baseargs '$ac_arg'"
5829 keep_next=no
5830 continue
5831 fi
5832
5833 # Handle separated arguments. Based on the logic generated by
5834 # autoconf 2.59.
5835 case $ac_arg in
5836 *=* | --config-cache | -C | -disable-* | --disable-* \
5837 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5838 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5839 | -with-* | --with-* | -without-* | --without-* | --x)
5840 separate_arg=no
5841 ;;
5842 -*)
5843 separate_arg=yes
5844 ;;
5845 *)
5846 separate_arg=no
5847 ;;
5848 esac
5849
5850 case "$ac_arg" in
5851 --no*)
5852 continue
5853 ;;
5854 --c* | \
5855 --sr* | \
5856 --ho* | \
5857 --bu* | \
5858 --t* | \
5859 --program-* | \
5860 -cache_file* | \
5861 -srcdir* | \
5862 -host* | \
5863 -build* | \
5864 -target* | \
5865 -program-prefix* | \
5866 -program-suffix* | \
5867 -program-transform-name* )
5868 skip_next=$separate_arg
5869 continue
5870 ;;
5871 -*)
5872 # An option. Add it.
5873 case $ac_arg in
5874 *\'*)
5875 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5876 esac
5877 baseargs="$baseargs '$ac_arg'"
5878 keep_next=$separate_arg
5879 ;;
5880 *)
5881 # Either a variable assignment, or a nonopt (triplet). Don't
5882 # pass it down; let the Makefile handle this.
5883 continue
5884 ;;
5885 esac
5886done
5887# Remove the initial space we just introduced and, as these will be
5888# expanded by make, quote '$'.
5889baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
bafecfd6 5890
eedd1e14
DJ
5891# Add in --program-transform-name, after --program-prefix and
5892# --program-suffix have been applied to it. Autoconf has already
5893# doubled dollar signs and backslashes in program_transform_name; we want
5894# the backslashes un-doubled, and then the entire thing wrapped in single
b58b6ee1 5895# quotes, because this will be expanded first by make and then by the shell.
eedd1e14
DJ
5896# Also, because we want to override the logic in subdir configure scripts to
5897# choose program_transform_name, replace any s,x,x, with s,y,y,.
5898sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5899${program_transform_name}
5900EOF_SED
5901gcc_transform_name=`cat conftestsed.out`
5902rm -f conftestsed.out
5903baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
fc7c811f
BE
5904if test "$silent" = yes; then
5905 baseargs="$baseargs --silent"
5906fi
eedd1e14 5907
bafecfd6
NN
5908# For the build-side libraries, we just need to pretend we're native,
5909# and not use the same cache file. Multilibs are neither needed nor
5910# desired.
42f55f77 5911build_configargs="--cache-file=../config.cache ${baseargs}"
bafecfd6
NN
5912
5913# For host modules, accept cache file option, or specification as blank.
5914case "${cache_file}" in
5915"") # empty
5916 cache_file_option="" ;;
5917/* | [A-Za-z]:[\\/]* ) # absolute path
5918 cache_file_option="--cache-file=${cache_file}" ;;
5919*) # relative path
5920 cache_file_option="--cache-file=../${cache_file}" ;;
5921esac
5922
68c6d8ac
NN
5923# Host dirs don't like to share a cache file either, horribly enough.
5924# This seems to be due to autoconf 2.5x stupidity.
42f55f77 5925host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
bafecfd6
NN
5926
5927target_configargs=${baseargs}
5928
5929# Passing a --with-cross-host argument lets the target libraries know
5930# whether they are being built with a cross-compiler or being built
5931# native. However, it would be better to use other mechanisms to make the
5932# sorts of decisions they want to make on this basis. Please consider
5933# this option to be deprecated. FIXME.
5934if test x${is_cross_compiler} = xyes ; then
b58b6ee1 5935 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
bafecfd6
NN
5936fi
5937
5938# Default to --enable-multilib.
5939if test x${enable_multilib} = x ; then
5940 target_configargs="--enable-multilib ${target_configargs}"
5941fi
5942
5943# Pass --with-newlib if appropriate. Note that target_configdirs has
5944# changed from the earlier setting of with_newlib.
5945if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5946 target_configargs="--with-newlib ${target_configargs}"
5947fi
5948
5b28b6ef
NN
5949# Different target subdirs use different values of certain variables
5950# (notably CXX). Worse, multilibs use *lots* of different values.
5951# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5952# it doesn't automatically accept command-line overrides of them.
5953# This means it's not safe for target subdirs to share a cache file,
5954# which is disgusting, but there you have it. Hopefully this can be
5955# fixed in future. It's still worthwhile to use a cache file for each
5956# directory. I think.
5957
29730600
MS
5958# Pass the appropriate --build, --host, --target and --cache-file arguments.
5959# We need to pass --target, as newer autoconf's requires consistency
5960# for target_alias and gcc doesn't manage it consistently.
42f55f77 5961target_configargs="--cache-file=./config.cache ${target_configargs}"
bafecfd6 5962
bafecfd6
NN
5963FLAGS_FOR_TARGET=
5964case " $target_configdirs " in
5965 *" newlib "*)
5966 case " $target_configargs " in
5967 *" --with-newlib "*)
5968 case "$target" in
5969 *-cygwin*)
a8833ac1 5970 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' ;;
bafecfd6
NN
5971 esac
5972
5973 # If we're not building GCC, don't discard standard headers.
5974 if test -d ${srcdir}/gcc; then
5975 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5976
5977 if test "${build}" != "${host}"; then
5978 # On Canadian crosses, CC_FOR_TARGET will have already been set
5979 # by `configure', so we won't have an opportunity to add -Bgcc/
5980 # to it. This is right: we don't want to search that directory
5981 # for binaries, but we want the header files in there, so add
5982 # them explicitly.
7fc2ca22 5983 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
bafecfd6
NN
5984
5985 # Someone might think of using the pre-installed headers on
5986 # Canadian crosses, in case the installed compiler is not fully
5987 # compatible with the compiler being built. In this case, it
5988 # would be better to flag an error than risking having
5989 # incompatible object files being constructed. We can't
5990 # guarantee that an error will be flagged, but let's hope the
5991 # compiler will do it, when presented with incompatible header
5992 # files.
5993 fi
5994 fi
5995
5996 case "${target}-${is_cross_compiler}" in
08049c01 5997 i[3456789]86-*-linux*-no)
bafecfd6
NN
5998 # Here host == target, so we don't need to build gcc,
5999 # so we don't want to discard standard headers.
6000 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6001 ;;
6002 *)
6003 # If we're building newlib, use its generic headers last, but search
6004 # for any libc-related directories first (so make it the last -B
6005 # switch).
6006 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
46093329
DD
6007
6008 # If we're building libgloss, find the startup file, simulator library
6009 # and linker script.
6010 case " $target_configdirs " in
6011 *" libgloss "*)
6012 # Look for startup file, simulator library and maybe linker script.
6013 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6014 # Look for libnosys.a in case the target needs it.
6015 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6016 # Most targets have the linker script in the source directory.
6017 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6018 ;;
6019 esac
bafecfd6
NN
6020 ;;
6021 esac
6022 ;;
6023 esac
6024 ;;
6025esac
bc668665
CV
6026case "$target" in
6027*-mingw*)
6028 # Can't be handled as Cygwin above since Mingw does not use newlib.
6029 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
6030esac
bafecfd6 6031
e9ea9dec
DD
6032# Allow the user to override the flags for
6033# our build compiler if desired.
77961173
NC
6034if test x"${build}" = x"${host}" ; then
6035 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6036 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6037 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6038fi
e9ea9dec 6039
bafecfd6
NN
6040# On Canadian crosses, we'll be searching the right directories for
6041# the previously-installed cross compiler, so don't bother to add
6042# flags for directories within the install tree of the compiler
6043# being built; programs in there won't even run.
6044if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6045 # Search for pre-installed headers if nothing else fits.
2245eb63 6046 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
bafecfd6
NN
6047fi
6048
6049if test "x${use_gnu_ld}" = x &&
6050 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6051 # Arrange for us to find uninstalled linker scripts.
7fc2ca22 6052 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
bafecfd6
NN
6053fi
6054
ad352d9b
DD
6055# Search for other target-specific linker scripts and such.
6056case "${target}" in
4e16301e
DB
6057 mep*)
6058 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6059 ;;
6060esac
6061
bafecfd6 6062# Makefile fragments.
96979a18
PB
6063for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6064do
6065 eval fragval=\$$frag
6066 if test $fragval != /dev/null; then
6067 eval $frag=${srcdir}/$fragval
6068 fi
6069done
bafecfd6
NN
6070
6071
6072
6073
6074
6075# Miscellanea: directories, flags, etc.
6076
6077
6078
6079
6080
6081
6082
8453fdba 6083
2cb47d68 6084# Build module lists & subconfigure args.
bafecfd6
NN
6085
6086
6087
a7dc05b5
PB
6088# Host module lists & subconfigure args.
6089
6090
6091
6092# Target module lists & subconfigure args.
6093
6094
6095
6096# Build tools.
6097
6098
6099
4413ec01
PB
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
a7dc05b5
PB
6114# Generate default definitions for YACC, M4, LEX and other programs that run
6115# on the build machine. These are used if the Makefile can't locate these
6116# programs in objdir.
6117MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6118
6119for ac_prog in 'bison -y' byacc yacc
6120do
b58b6ee1 6121 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 6122set dummy $ac_prog; ac_word=$2
b58b6ee1
DJ
6123echo "$as_me:$LINENO: checking for $ac_word" >&5
6124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6125if test "${ac_cv_prog_YACC+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
6127else
6128 if test -n "$YACC"; then
6129 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6130else
b58b6ee1
DJ
6131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132for as_dir in $PATH
6133do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_YACC="$ac_prog"
6139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142done
6143done
6144
a7dc05b5
PB
6145fi
6146fi
b58b6ee1 6147YACC=$ac_cv_prog_YACC
a7dc05b5 6148if test -n "$YACC"; then
b58b6ee1
DJ
6149 echo "$as_me:$LINENO: result: $YACC" >&5
6150echo "${ECHO_T}$YACC" >&6
a7dc05b5 6151else
b58b6ee1
DJ
6152 echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6
a7dc05b5
PB
6154fi
6155
b58b6ee1 6156 test -n "$YACC" && break
a7dc05b5
PB
6157done
6158test -n "$YACC" || YACC="$MISSING bison -y"
6159
6160case " $build_configdirs " in
6161 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6162 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6163esac
6164
6165for ac_prog in bison
6166do
b58b6ee1 6167 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 6168set dummy $ac_prog; ac_word=$2
b58b6ee1
DJ
6169echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6171if test "${ac_cv_prog_BISON+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
6173else
6174 if test -n "$BISON"; then
6175 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6176else
b58b6ee1
DJ
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184 ac_cv_prog_BISON="$ac_prog"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188done
6189done
6190
a7dc05b5
PB
6191fi
6192fi
b58b6ee1 6193BISON=$ac_cv_prog_BISON
a7dc05b5 6194if test -n "$BISON"; then
b58b6ee1
DJ
6195 echo "$as_me:$LINENO: result: $BISON" >&5
6196echo "${ECHO_T}$BISON" >&6
a7dc05b5 6197else
b58b6ee1
DJ
6198 echo "$as_me:$LINENO: result: no" >&5
6199echo "${ECHO_T}no" >&6
a7dc05b5
PB
6200fi
6201
b58b6ee1 6202 test -n "$BISON" && break
a7dc05b5
PB
6203done
6204test -n "$BISON" || BISON="$MISSING bison"
6205
6206case " $build_configdirs " in
6207 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6208esac
6209
6210for ac_prog in gm4 gnum4 m4
6211do
b58b6ee1 6212 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 6213set dummy $ac_prog; ac_word=$2
b58b6ee1
DJ
6214echo "$as_me:$LINENO: checking for $ac_word" >&5
6215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6216if test "${ac_cv_prog_M4+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
6218else
6219 if test -n "$M4"; then
6220 ac_cv_prog_M4="$M4" # Let the user override the test.
6221else
b58b6ee1
DJ
6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_M4="$ac_prog"
6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233done
6234done
6235
a7dc05b5
PB
6236fi
6237fi
b58b6ee1 6238M4=$ac_cv_prog_M4
a7dc05b5 6239if test -n "$M4"; then
b58b6ee1
DJ
6240 echo "$as_me:$LINENO: result: $M4" >&5
6241echo "${ECHO_T}$M4" >&6
a7dc05b5 6242else
b58b6ee1
DJ
6243 echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6
a7dc05b5
PB
6245fi
6246
b58b6ee1 6247 test -n "$M4" && break
a7dc05b5
PB
6248done
6249test -n "$M4" || M4="$MISSING m4"
6250
6251case " $build_configdirs " in
6252 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6253esac
6254
6255for ac_prog in flex lex
6256do
b58b6ee1 6257 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 6258set dummy $ac_prog; ac_word=$2
b58b6ee1
DJ
6259echo "$as_me:$LINENO: checking for $ac_word" >&5
6260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6261if test "${ac_cv_prog_LEX+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
6263else
6264 if test -n "$LEX"; then
6265 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6266else
b58b6ee1
DJ
6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_LEX="$ac_prog"
6275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278done
6279done
6280
a7dc05b5
PB
6281fi
6282fi
b58b6ee1 6283LEX=$ac_cv_prog_LEX
a7dc05b5 6284if test -n "$LEX"; then
b58b6ee1
DJ
6285 echo "$as_me:$LINENO: result: $LEX" >&5
6286echo "${ECHO_T}$LEX" >&6
a7dc05b5 6287else
b58b6ee1
DJ
6288 echo "$as_me:$LINENO: result: no" >&5
6289echo "${ECHO_T}no" >&6
a7dc05b5
PB
6290fi
6291
b58b6ee1 6292 test -n "$LEX" && break
a7dc05b5
PB
6293done
6294test -n "$LEX" || LEX="$MISSING flex"
6295
6296case " $build_configdirs " in
6297 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6298 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6299esac
6300
6301for ac_prog in flex
6302do
b58b6ee1 6303 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 6304set dummy $ac_prog; ac_word=$2
b58b6ee1
DJ
6305echo "$as_me:$LINENO: checking for $ac_word" >&5
6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6307if test "${ac_cv_prog_FLEX+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
6309else
6310 if test -n "$FLEX"; then
6311 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6312else
b58b6ee1
DJ
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_FLEX="$ac_prog"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324done
6325done
6326
a7dc05b5
PB
6327fi
6328fi
b58b6ee1 6329FLEX=$ac_cv_prog_FLEX
a7dc05b5 6330if test -n "$FLEX"; then
b58b6ee1
DJ
6331 echo "$as_me:$LINENO: result: $FLEX" >&5
6332echo "${ECHO_T}$FLEX" >&6
a7dc05b5 6333else
b58b6ee1
DJ
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
a7dc05b5
PB
6336fi
6337
b58b6ee1 6338 test -n "$FLEX" && break
a7dc05b5
PB
6339done
6340test -n "$FLEX" || FLEX="$MISSING flex"
6341
6342case " $build_configdirs " in
6343 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6344esac
6345
6346for ac_prog in makeinfo
6347do
b58b6ee1 6348 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 6349set dummy $ac_prog; ac_word=$2
b58b6ee1
DJ
6350echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6352if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
6354else
6355 if test -n "$MAKEINFO"; then
6356 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6357else
b58b6ee1
DJ
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365 ac_cv_prog_MAKEINFO="$ac_prog"
6366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 break 2
6368 fi
6369done
6370done
6371
a7dc05b5
PB
6372fi
6373fi
b58b6ee1 6374MAKEINFO=$ac_cv_prog_MAKEINFO
a7dc05b5 6375if test -n "$MAKEINFO"; then
b58b6ee1
DJ
6376 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6377echo "${ECHO_T}$MAKEINFO" >&6
a7dc05b5 6378else
b58b6ee1
DJ
6379 echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
a7dc05b5
PB
6381fi
6382
b58b6ee1 6383 test -n "$MAKEINFO" && break
a7dc05b5
PB
6384done
6385test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6386
6387case " $build_configdirs " in
6388 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6389 *)
6390
76053dfb 6391 # For an installed makeinfo, we require it to be from texinfo 4.6 or
a7dc05b5
PB
6392 # higher, else we use the "missing" dummy.
6393 if ${MAKEINFO} --version \
76053dfb 6394 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
a7dc05b5
PB
6395 :
6396 else
6397 MAKEINFO="$MISSING makeinfo"
6398 fi
6399 ;;
6400
6401esac
bafecfd6 6402
a7dc05b5 6403# FIXME: expect and dejagnu may become build tools?
bafecfd6 6404
a7dc05b5
PB
6405for ac_prog in expect
6406do
b58b6ee1 6407 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 6408set dummy $ac_prog; ac_word=$2
b58b6ee1
DJ
6409echo "$as_me:$LINENO: checking for $ac_word" >&5
6410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6411if test "${ac_cv_prog_EXPECT+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
6413else
6414 if test -n "$EXPECT"; then
6415 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6416else
b58b6ee1
DJ
6417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_EXPECT="$ac_prog"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428done
6429done
6430
a7dc05b5
PB
6431fi
6432fi
b58b6ee1 6433EXPECT=$ac_cv_prog_EXPECT
a7dc05b5 6434if test -n "$EXPECT"; then
b58b6ee1
DJ
6435 echo "$as_me:$LINENO: result: $EXPECT" >&5
6436echo "${ECHO_T}$EXPECT" >&6
a7dc05b5 6437else
b58b6ee1
DJ
6438 echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
a7dc05b5 6440fi
bafecfd6 6441
b58b6ee1 6442 test -n "$EXPECT" && break
a7dc05b5
PB
6443done
6444test -n "$EXPECT" || EXPECT="expect"
bafecfd6 6445
a7dc05b5
PB
6446case " $configdirs " in
6447 *" expect "*)
6448 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6449 ;;
6450esac
bafecfd6 6451
a7dc05b5
PB
6452for ac_prog in runtest
6453do
b58b6ee1 6454 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 6455set dummy $ac_prog; ac_word=$2
b58b6ee1
DJ
6456echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458if test "${ac_cv_prog_RUNTEST+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
6460else
6461 if test -n "$RUNTEST"; then
6462 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6463else
b58b6ee1
DJ
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_RUNTEST="$ac_prog"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475done
6476done
6477
a7dc05b5
PB
6478fi
6479fi
b58b6ee1 6480RUNTEST=$ac_cv_prog_RUNTEST
a7dc05b5 6481if test -n "$RUNTEST"; then
b58b6ee1
DJ
6482 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6483echo "${ECHO_T}$RUNTEST" >&6
a7dc05b5 6484else
b58b6ee1
DJ
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
a7dc05b5 6487fi
bafecfd6 6488
b58b6ee1 6489 test -n "$RUNTEST" && break
a7dc05b5
PB
6490done
6491test -n "$RUNTEST" || RUNTEST="runtest"
bafecfd6 6492
a7dc05b5
PB
6493case " $configdirs " in
6494 *" dejagnu "*)
adb51f0a 6495 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
a7dc05b5
PB
6496 ;;
6497esac
bafecfd6
NN
6498
6499
bafecfd6 6500# Host tools.
a0c92996
AC
6501ncn_tool_prefix=
6502test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6503ncn_target_tool_prefix=
6504test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6505
82026593
AO
6506
6507
6508if test -n "$AR"; then
6509 ac_cv_prog_AR=$AR
6510elif test -n "$ac_cv_prog_AR"; then
6511 AR=$ac_cv_prog_AR
6512fi
6513
6514if test -n "$ac_cv_prog_AR"; then
6515 for ncn_progname in ar; do
6516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6517set dummy ${ncn_progname}; ac_word=$2
6518echo "$as_me:$LINENO: checking for $ac_word" >&5
6519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6520if test "${ac_cv_prog_AR+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523 if test -n "$AR"; then
6524 ac_cv_prog_AR="$AR" # Let the user override the test.
6525else
6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_AR="${ncn_progname}"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537done
6538done
6539
6540fi
6541fi
6542AR=$ac_cv_prog_AR
6543if test -n "$AR"; then
6544 echo "$as_me:$LINENO: result: $AR" >&5
6545echo "${ECHO_T}$AR" >&6
6546else
6547 echo "$as_me:$LINENO: result: no" >&5
6548echo "${ECHO_T}no" >&6
6549fi
6550
6551 done
6552fi
6553
6554for ncn_progname in ar; do
60cfca65
PB
6555 if test -n "$ncn_tool_prefix"; then
6556 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6557set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
6558echo "$as_me:$LINENO: checking for $ac_word" >&5
6559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6560if test "${ac_cv_prog_AR+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
6562else
6563 if test -n "$AR"; then
6564 ac_cv_prog_AR="$AR" # Let the user override the test.
6565else
b58b6ee1
DJ
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6573 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577done
6578done
6579
a0c92996
AC
6580fi
6581fi
b58b6ee1 6582AR=$ac_cv_prog_AR
a0c92996 6583if test -n "$AR"; then
b58b6ee1
DJ
6584 echo "$as_me:$LINENO: result: $AR" >&5
6585echo "${ECHO_T}$AR" >&6
a0c92996 6586else
b58b6ee1
DJ
6587 echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
a0c92996
AC
6589fi
6590
60cfca65
PB
6591 fi
6592 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6594set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
6595echo "$as_me:$LINENO: checking for $ac_word" >&5
6596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6597if test "${ac_cv_prog_AR+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 6599else
60cfca65
PB
6600 if test -n "$AR"; then
6601 ac_cv_prog_AR="$AR" # Let the user override the test.
a0c92996 6602else
b58b6ee1
DJ
6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_AR="${ncn_progname}"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614done
6615done
6616
a0c92996
AC
6617fi
6618fi
b58b6ee1 6619AR=$ac_cv_prog_AR
60cfca65 6620if test -n "$AR"; then
b58b6ee1
DJ
6621 echo "$as_me:$LINENO: result: $AR" >&5
6622echo "${ECHO_T}$AR" >&6
a0c92996 6623else
b58b6ee1
DJ
6624 echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6
a0c92996 6626fi
b58b6ee1 6627
60cfca65
PB
6628 fi
6629 test -n "$ac_cv_prog_AR" && break
6630done
6631
6632if test -z "$ac_cv_prog_AR" ; then
6633 set dummy ar
6634 if test $build = $host ; then
6635 AR="$2"
a0c92996 6636 else
60cfca65 6637 AR="${ncn_tool_prefix}$2"
a0c92996 6638 fi
a0c92996
AC
6639fi
6640
82026593
AO
6641
6642
6643if test -n "$AS"; then
6644 ac_cv_prog_AS=$AS
6645elif test -n "$ac_cv_prog_AS"; then
6646 AS=$ac_cv_prog_AS
6647fi
6648
6649if test -n "$ac_cv_prog_AS"; then
6650 for ncn_progname in as; do
6651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6652set dummy ${ncn_progname}; ac_word=$2
6653echo "$as_me:$LINENO: checking for $ac_word" >&5
6654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6655if test "${ac_cv_prog_AS+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658 if test -n "$AS"; then
6659 ac_cv_prog_AS="$AS" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_AS="${ncn_progname}"
6669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672done
6673done
6674
6675fi
6676fi
6677AS=$ac_cv_prog_AS
6678if test -n "$AS"; then
6679 echo "$as_me:$LINENO: result: $AS" >&5
6680echo "${ECHO_T}$AS" >&6
6681else
6682 echo "$as_me:$LINENO: result: no" >&5
6683echo "${ECHO_T}no" >&6
6684fi
6685
6686 done
6687fi
6688
6689for ncn_progname in as; do
60cfca65
PB
6690 if test -n "$ncn_tool_prefix"; then
6691 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6692set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
6693echo "$as_me:$LINENO: checking for $ac_word" >&5
6694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6695if test "${ac_cv_prog_AS+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
6697else
6698 if test -n "$AS"; then
6699 ac_cv_prog_AS="$AS" # Let the user override the test.
b58b6ee1
DJ
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712done
6713done
6714
a0c92996
AC
6715fi
6716fi
b58b6ee1 6717AS=$ac_cv_prog_AS
a0c92996 6718if test -n "$AS"; then
b58b6ee1
DJ
6719 echo "$as_me:$LINENO: result: $AS" >&5
6720echo "${ECHO_T}$AS" >&6
a0c92996 6721else
b58b6ee1
DJ
6722 echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6
a0c92996
AC
6724fi
6725
60cfca65
PB
6726 fi
6727 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6729set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
6730echo "$as_me:$LINENO: checking for $ac_word" >&5
6731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6732if test "${ac_cv_prog_AS+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 6734else
60cfca65
PB
6735 if test -n "$AS"; then
6736 ac_cv_prog_AS="$AS" # Let the user override the test.
a0c92996 6737else
b58b6ee1
DJ
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_prog_AS="${ncn_progname}"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750done
6751
a0c92996
AC
6752fi
6753fi
b58b6ee1 6754AS=$ac_cv_prog_AS
60cfca65 6755if test -n "$AS"; then
b58b6ee1
DJ
6756 echo "$as_me:$LINENO: result: $AS" >&5
6757echo "${ECHO_T}$AS" >&6
a0c92996 6758else
b58b6ee1
DJ
6759 echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6
a0c92996 6761fi
b58b6ee1 6762
60cfca65
PB
6763 fi
6764 test -n "$ac_cv_prog_AS" && break
6765done
6766
6767if test -z "$ac_cv_prog_AS" ; then
6768 set dummy as
6769 if test $build = $host ; then
6770 AS="$2"
a0c92996 6771 else
60cfca65 6772 AS="${ncn_tool_prefix}$2"
a0c92996 6773 fi
a0c92996
AC
6774fi
6775
82026593
AO
6776
6777
6778if test -n "$DLLTOOL"; then
6779 ac_cv_prog_DLLTOOL=$DLLTOOL
6780elif test -n "$ac_cv_prog_DLLTOOL"; then
6781 DLLTOOL=$ac_cv_prog_DLLTOOL
6782fi
6783
6784if test -n "$ac_cv_prog_DLLTOOL"; then
6785 for ncn_progname in dlltool; do
6786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6787set dummy ${ncn_progname}; ac_word=$2
6788echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6790if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793 if test -n "$DLLTOOL"; then
6794 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803 ac_cv_prog_DLLTOOL="${ncn_progname}"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808done
6809
6810fi
6811fi
6812DLLTOOL=$ac_cv_prog_DLLTOOL
6813if test -n "$DLLTOOL"; then
6814 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6815echo "${ECHO_T}$DLLTOOL" >&6
6816else
6817 echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6
6819fi
6820
6821 done
6822fi
6823
6824for ncn_progname in dlltool; do
60cfca65
PB
6825 if test -n "$ncn_tool_prefix"; then
6826 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6827set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
6828echo "$as_me:$LINENO: checking for $ac_word" >&5
6829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6830if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
6832else
6833 if test -n "$DLLTOOL"; then
6834 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6835else
b58b6ee1
DJ
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847done
6848done
6849
a0c92996
AC
6850fi
6851fi
b58b6ee1 6852DLLTOOL=$ac_cv_prog_DLLTOOL
a0c92996 6853if test -n "$DLLTOOL"; then
b58b6ee1
DJ
6854 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6855echo "${ECHO_T}$DLLTOOL" >&6
a0c92996 6856else
b58b6ee1
DJ
6857 echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6
a0c92996
AC
6859fi
6860
60cfca65
PB
6861 fi
6862 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6864set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
6865echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6867if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 6869else
60cfca65
PB
6870 if test -n "$DLLTOOL"; then
6871 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
a0c92996 6872else
b58b6ee1
DJ
6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874for as_dir in $PATH
6875do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_DLLTOOL="${ncn_progname}"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884done
6885done
6886
a0c92996
AC
6887fi
6888fi
b58b6ee1 6889DLLTOOL=$ac_cv_prog_DLLTOOL
60cfca65 6890if test -n "$DLLTOOL"; then
b58b6ee1
DJ
6891 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6892echo "${ECHO_T}$DLLTOOL" >&6
a0c92996 6893else
b58b6ee1
DJ
6894 echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6
a0c92996 6896fi
b58b6ee1 6897
60cfca65
PB
6898 fi
6899 test -n "$ac_cv_prog_DLLTOOL" && break
6900done
6901
6902if test -z "$ac_cv_prog_DLLTOOL" ; then
6903 set dummy dlltool
6904 if test $build = $host ; then
6905 DLLTOOL="$2"
a0c92996 6906 else
60cfca65 6907 DLLTOOL="${ncn_tool_prefix}$2"
a0c92996 6908 fi
a0c92996
AC
6909fi
6910
82026593
AO
6911
6912
6913if test -n "$LD"; then
6914 ac_cv_prog_LD=$LD
6915elif test -n "$ac_cv_prog_LD"; then
6916 LD=$ac_cv_prog_LD
6917fi
6918
6919if test -n "$ac_cv_prog_LD"; then
6920 for ncn_progname in ld; do
6921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6922set dummy ${ncn_progname}; ac_word=$2
6923echo "$as_me:$LINENO: checking for $ac_word" >&5
6924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6925if test "${ac_cv_prog_LD+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928 if test -n "$LD"; then
6929 ac_cv_prog_LD="$LD" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_LD="${ncn_progname}"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942done
6943done
6944
6945fi
6946fi
6947LD=$ac_cv_prog_LD
6948if test -n "$LD"; then
6949 echo "$as_me:$LINENO: result: $LD" >&5
6950echo "${ECHO_T}$LD" >&6
6951else
6952 echo "$as_me:$LINENO: result: no" >&5
6953echo "${ECHO_T}no" >&6
6954fi
6955
6956 done
6957fi
6958
6959for ncn_progname in ld; do
60cfca65
PB
6960 if test -n "$ncn_tool_prefix"; then
6961 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6962set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
6963echo "$as_me:$LINENO: checking for $ac_word" >&5
6964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6965if test "${ac_cv_prog_LD+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
6967else
6968 if test -n "$LD"; then
6969 ac_cv_prog_LD="$LD" # Let the user override the test.
6970else
b58b6ee1
DJ
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982done
6983done
6984
a0c92996
AC
6985fi
6986fi
b58b6ee1 6987LD=$ac_cv_prog_LD
a0c92996 6988if test -n "$LD"; then
b58b6ee1
DJ
6989 echo "$as_me:$LINENO: result: $LD" >&5
6990echo "${ECHO_T}$LD" >&6
a0c92996 6991else
b58b6ee1
DJ
6992 echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6
a0c92996
AC
6994fi
6995
60cfca65
PB
6996 fi
6997 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6999set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7000echo "$as_me:$LINENO: checking for $ac_word" >&5
7001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7002if test "${ac_cv_prog_LD+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 7004else
60cfca65
PB
7005 if test -n "$LD"; then
7006 ac_cv_prog_LD="$LD" # Let the user override the test.
76402c80 7007else
b58b6ee1
DJ
7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_LD="${ncn_progname}"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7018 fi
7019done
7020done
7021
a0c92996
AC
7022fi
7023fi
b58b6ee1 7024LD=$ac_cv_prog_LD
60cfca65 7025if test -n "$LD"; then
b58b6ee1
DJ
7026 echo "$as_me:$LINENO: result: $LD" >&5
7027echo "${ECHO_T}$LD" >&6
a0c92996 7028else
b58b6ee1
DJ
7029 echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6
a0c92996 7031fi
b58b6ee1 7032
60cfca65
PB
7033 fi
7034 test -n "$ac_cv_prog_LD" && break
7035done
7036
7037if test -z "$ac_cv_prog_LD" ; then
7038 set dummy ld
7039 if test $build = $host ; then
7040 LD="$2"
a0c92996 7041 else
60cfca65 7042 LD="${ncn_tool_prefix}$2"
a0c92996 7043 fi
a0c92996
AC
7044fi
7045
82026593
AO
7046
7047
7048if test -n "$LIPO"; then
7049 ac_cv_prog_LIPO=$LIPO
7050elif test -n "$ac_cv_prog_LIPO"; then
7051 LIPO=$ac_cv_prog_LIPO
7052fi
7053
7054if test -n "$ac_cv_prog_LIPO"; then
7055 for ncn_progname in lipo; do
7056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7057set dummy ${ncn_progname}; ac_word=$2
7058echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060if test "${ac_cv_prog_LIPO+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 if test -n "$LIPO"; then
7064 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_LIPO="${ncn_progname}"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078done
7079
7080fi
7081fi
7082LIPO=$ac_cv_prog_LIPO
7083if test -n "$LIPO"; then
7084 echo "$as_me:$LINENO: result: $LIPO" >&5
7085echo "${ECHO_T}$LIPO" >&6
7086else
7087 echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089fi
7090
7091 done
7092fi
7093
7094for ncn_progname in lipo; do
a7dc05b5
PB
7095 if test -n "$ncn_tool_prefix"; then
7096 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7097set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7098echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7100if test "${ac_cv_prog_LIPO+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
7102else
7103 if test -n "$LIPO"; then
7104 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7105else
b58b6ee1
DJ
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118done
7119
a7dc05b5
PB
7120fi
7121fi
b58b6ee1 7122LIPO=$ac_cv_prog_LIPO
a7dc05b5 7123if test -n "$LIPO"; then
b58b6ee1
DJ
7124 echo "$as_me:$LINENO: result: $LIPO" >&5
7125echo "${ECHO_T}$LIPO" >&6
a7dc05b5 7126else
b58b6ee1
DJ
7127 echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6
a7dc05b5
PB
7129fi
7130
7131 fi
7132 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7134set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7135echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7137if test "${ac_cv_prog_LIPO+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
7139else
7140 if test -n "$LIPO"; then
7141 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7142else
b58b6ee1
DJ
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_LIPO="${ncn_progname}"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155done
7156
a7dc05b5
PB
7157fi
7158fi
b58b6ee1 7159LIPO=$ac_cv_prog_LIPO
a7dc05b5 7160if test -n "$LIPO"; then
b58b6ee1
DJ
7161 echo "$as_me:$LINENO: result: $LIPO" >&5
7162echo "${ECHO_T}$LIPO" >&6
a7dc05b5 7163else
b58b6ee1
DJ
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
a7dc05b5 7166fi
b58b6ee1 7167
a7dc05b5
PB
7168 fi
7169 test -n "$ac_cv_prog_LIPO" && break
7170done
7171
7172if test -z "$ac_cv_prog_LIPO" ; then
7173 set dummy lipo
7174 if test $build = $host ; then
7175 LIPO="$2"
7176 else
7177 LIPO="${ncn_tool_prefix}$2"
7178 fi
7179fi
7180
82026593
AO
7181
7182
7183if test -n "$NM"; then
7184 ac_cv_prog_NM=$NM
7185elif test -n "$ac_cv_prog_NM"; then
7186 NM=$ac_cv_prog_NM
7187fi
7188
7189if test -n "$ac_cv_prog_NM"; then
7190 for ncn_progname in nm; do
7191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7192set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7193echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7195if test "${ac_cv_prog_NM+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
7197else
7198 if test -n "$NM"; then
7199 ac_cv_prog_NM="$NM" # Let the user override the test.
7200else
b58b6ee1
DJ
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 7208 ac_cv_prog_NM="${ncn_progname}"
b58b6ee1
DJ
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
7214
a0c92996
AC
7215fi
7216fi
b58b6ee1 7217NM=$ac_cv_prog_NM
a0c92996 7218if test -n "$NM"; then
b58b6ee1
DJ
7219 echo "$as_me:$LINENO: result: $NM" >&5
7220echo "${ECHO_T}$NM" >&6
a0c92996 7221else
b58b6ee1
DJ
7222 echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6
a0c92996
AC
7224fi
7225
82026593
AO
7226 done
7227fi
7228
7229for ncn_progname in nm; do
7230 if test -n "$ncn_tool_prefix"; then
7231 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7232set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7233echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7235if test "${ac_cv_prog_NM+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 7237else
60cfca65
PB
7238 if test -n "$NM"; then
7239 ac_cv_prog_NM="$NM" # Let the user override the test.
a0c92996 7240else
b58b6ee1
DJ
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 7248 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
b58b6ee1
DJ
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252done
7253done
7254
a0c92996
AC
7255fi
7256fi
b58b6ee1 7257NM=$ac_cv_prog_NM
60cfca65 7258if test -n "$NM"; then
b58b6ee1
DJ
7259 echo "$as_me:$LINENO: result: $NM" >&5
7260echo "${ECHO_T}$NM" >&6
a0c92996 7261else
b58b6ee1
DJ
7262 echo "$as_me:$LINENO: result: no" >&5
7263echo "${ECHO_T}no" >&6
a0c92996 7264fi
b58b6ee1 7265
60cfca65 7266 fi
82026593
AO
7267 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7269set dummy ${ncn_progname}; ac_word=$2
7270echo "$as_me:$LINENO: checking for $ac_word" >&5
7271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272if test "${ac_cv_prog_NM+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275 if test -n "$NM"; then
7276 ac_cv_prog_NM="$NM" # Let the user override the test.
7277else
7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_NM="${ncn_progname}"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289done
7290done
7291
7292fi
7293fi
7294NM=$ac_cv_prog_NM
7295if test -n "$NM"; then
7296 echo "$as_me:$LINENO: result: $NM" >&5
7297echo "${ECHO_T}$NM" >&6
7298else
7299 echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301fi
7302
7303 fi
7304 test -n "$ac_cv_prog_NM" && break
7305done
7306
7307if test -z "$ac_cv_prog_NM" ; then
7308 set dummy nm
7309 if test $build = $host ; then
7310 NM="$2"
7311 else
7312 NM="${ncn_tool_prefix}$2"
7313 fi
7314fi
7315
7316
7317
7318if test -n "$RANLIB"; then
7319 ac_cv_prog_RANLIB=$RANLIB
7320elif test -n "$ac_cv_prog_RANLIB"; then
7321 RANLIB=$ac_cv_prog_RANLIB
7322fi
7323
7324if test -n "$ac_cv_prog_RANLIB"; then
7325 for ncn_progname in ranlib; do
7326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7327set dummy ${ncn_progname}; ac_word=$2
7328echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330if test "${ac_cv_prog_RANLIB+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 if test -n "$RANLIB"; then
7334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_RANLIB="${ncn_progname}"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347done
7348done
7349
7350fi
7351fi
7352RANLIB=$ac_cv_prog_RANLIB
7353if test -n "$RANLIB"; then
7354 echo "$as_me:$LINENO: result: $RANLIB" >&5
7355echo "${ECHO_T}$RANLIB" >&6
7356else
7357 echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6
7359fi
7360
7361 done
7362fi
a0c92996 7363
82026593 7364for ncn_progname in ranlib; do
60cfca65
PB
7365 if test -n "$ncn_tool_prefix"; then
7366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7367set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7368echo "$as_me:$LINENO: checking for $ac_word" >&5
7369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7370if test "${ac_cv_prog_RANLIB+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
7372else
7373 if test -n "$RANLIB"; then
7374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7375else
b58b6ee1
DJ
7376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377for as_dir in $PATH
7378do
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 break 2
7386 fi
7387done
7388done
7389
a0c92996
AC
7390fi
7391fi
b58b6ee1 7392RANLIB=$ac_cv_prog_RANLIB
a0c92996 7393if test -n "$RANLIB"; then
b58b6ee1
DJ
7394 echo "$as_me:$LINENO: result: $RANLIB" >&5
7395echo "${ECHO_T}$RANLIB" >&6
a0c92996 7396else
b58b6ee1
DJ
7397 echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6
a0c92996
AC
7399fi
7400
60cfca65
PB
7401 fi
7402 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7404set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7405echo "$as_me:$LINENO: checking for $ac_word" >&5
7406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7407if test "${ac_cv_prog_RANLIB+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 7409else
60cfca65
PB
7410 if test -n "$RANLIB"; then
7411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
a0c92996 7412else
b58b6ee1
DJ
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_RANLIB="${ncn_progname}"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424done
7425done
7426
a0c92996
AC
7427fi
7428fi
b58b6ee1 7429RANLIB=$ac_cv_prog_RANLIB
60cfca65 7430if test -n "$RANLIB"; then
b58b6ee1
DJ
7431 echo "$as_me:$LINENO: result: $RANLIB" >&5
7432echo "${ECHO_T}$RANLIB" >&6
a0c92996 7433else
b58b6ee1
DJ
7434 echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6
a0c92996 7436fi
b58b6ee1 7437
a0c92996 7438 fi
60cfca65
PB
7439 test -n "$ac_cv_prog_RANLIB" && break
7440done
7441
7442if test -z "$ac_cv_prog_RANLIB" ; then
7443 RANLIB=":"
a0c92996
AC
7444fi
7445
82026593
AO
7446
7447
7448if test -n "$STRIP"; then
7449 ac_cv_prog_STRIP=$STRIP
7450elif test -n "$ac_cv_prog_STRIP"; then
7451 STRIP=$ac_cv_prog_STRIP
7452fi
7453
7454if test -n "$ac_cv_prog_STRIP"; then
7455 for ncn_progname in strip; do
7456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7457set dummy ${ncn_progname}; ac_word=$2
7458echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7460if test "${ac_cv_prog_STRIP+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463 if test -n "$STRIP"; then
7464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_STRIP="${ncn_progname}"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478done
7479
7480fi
7481fi
7482STRIP=$ac_cv_prog_STRIP
7483if test -n "$STRIP"; then
7484 echo "$as_me:$LINENO: result: $STRIP" >&5
7485echo "${ECHO_T}$STRIP" >&6
7486else
7487 echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
7489fi
7490
7491 done
7492fi
7493
7494for ncn_progname in strip; do
a7dc05b5
PB
7495 if test -n "$ncn_tool_prefix"; then
7496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7497set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7498echo "$as_me:$LINENO: checking for $ac_word" >&5
7499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7500if test "${ac_cv_prog_STRIP+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
7502else
7503 if test -n "$STRIP"; then
7504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7505else
b58b6ee1
DJ
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517done
7518done
7519
a7dc05b5
PB
7520fi
7521fi
b58b6ee1 7522STRIP=$ac_cv_prog_STRIP
a7dc05b5 7523if test -n "$STRIP"; then
b58b6ee1
DJ
7524 echo "$as_me:$LINENO: result: $STRIP" >&5
7525echo "${ECHO_T}$STRIP" >&6
a7dc05b5 7526else
b58b6ee1
DJ
7527 echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6
a7dc05b5
PB
7529fi
7530
7531 fi
7532 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7534set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7535echo "$as_me:$LINENO: checking for $ac_word" >&5
7536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7537if test "${ac_cv_prog_STRIP+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
a7dc05b5
PB
7539else
7540 if test -n "$STRIP"; then
7541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7542else
b58b6ee1
DJ
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_STRIP="${ncn_progname}"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555done
7556
a7dc05b5
PB
7557fi
7558fi
b58b6ee1 7559STRIP=$ac_cv_prog_STRIP
a7dc05b5 7560if test -n "$STRIP"; then
b58b6ee1
DJ
7561 echo "$as_me:$LINENO: result: $STRIP" >&5
7562echo "${ECHO_T}$STRIP" >&6
a7dc05b5 7563else
b58b6ee1
DJ
7564 echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6
a7dc05b5 7566fi
b58b6ee1 7567
a7dc05b5
PB
7568 fi
7569 test -n "$ac_cv_prog_STRIP" && break
7570done
7571
7572if test -z "$ac_cv_prog_STRIP" ; then
7573 STRIP=":"
7574fi
7575
82026593
AO
7576
7577
7578if test -n "$WINDRES"; then
7579 ac_cv_prog_WINDRES=$WINDRES
7580elif test -n "$ac_cv_prog_WINDRES"; then
7581 WINDRES=$ac_cv_prog_WINDRES
7582fi
7583
7584if test -n "$ac_cv_prog_WINDRES"; then
7585 for ncn_progname in windres; do
7586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7587set dummy ${ncn_progname}; ac_word=$2
7588echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7590if test "${ac_cv_prog_WINDRES+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 if test -n "$WINDRES"; then
7594 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_WINDRES="${ncn_progname}"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607done
7608done
7609
7610fi
7611fi
7612WINDRES=$ac_cv_prog_WINDRES
7613if test -n "$WINDRES"; then
7614 echo "$as_me:$LINENO: result: $WINDRES" >&5
7615echo "${ECHO_T}$WINDRES" >&6
7616else
7617 echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6
7619fi
7620
7621 done
7622fi
7623
7624for ncn_progname in windres; do
60cfca65
PB
7625 if test -n "$ncn_tool_prefix"; then
7626 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7627set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7628echo "$as_me:$LINENO: checking for $ac_word" >&5
7629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7630if test "${ac_cv_prog_WINDRES+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
7632else
7633 if test -n "$WINDRES"; then
7634 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7635else
b58b6ee1
DJ
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647done
7648done
7649
a0c92996
AC
7650fi
7651fi
b58b6ee1 7652WINDRES=$ac_cv_prog_WINDRES
a0c92996 7653if test -n "$WINDRES"; then
b58b6ee1
DJ
7654 echo "$as_me:$LINENO: result: $WINDRES" >&5
7655echo "${ECHO_T}$WINDRES" >&6
a0c92996 7656else
b58b6ee1
DJ
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
a0c92996
AC
7659fi
7660
60cfca65
PB
7661 fi
7662 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7664set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7665echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7667if test "${ac_cv_prog_WINDRES+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 7669else
60cfca65
PB
7670 if test -n "$WINDRES"; then
7671 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
a0c92996 7672else
b58b6ee1
DJ
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_WINDRES="${ncn_progname}"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686
a0c92996
AC
7687fi
7688fi
b58b6ee1 7689WINDRES=$ac_cv_prog_WINDRES
60cfca65 7690if test -n "$WINDRES"; then
b58b6ee1
DJ
7691 echo "$as_me:$LINENO: result: $WINDRES" >&5
7692echo "${ECHO_T}$WINDRES" >&6
a0c92996 7693else
b58b6ee1
DJ
7694 echo "$as_me:$LINENO: result: no" >&5
7695echo "${ECHO_T}no" >&6
a0c92996 7696fi
b58b6ee1 7697
60cfca65
PB
7698 fi
7699 test -n "$ac_cv_prog_WINDRES" && break
7700done
7701
7702if test -z "$ac_cv_prog_WINDRES" ; then
7703 set dummy windres
7704 if test $build = $host ; then
7705 WINDRES="$2"
a0c92996 7706 else
60cfca65 7707 WINDRES="${ncn_tool_prefix}$2"
a0c92996 7708 fi
a0c92996
AC
7709fi
7710
82026593
AO
7711
7712
bffcbe34
NC
7713if test -n "$WINDMC"; then
7714 ac_cv_prog_WINDMC=$WINDMC
7715elif test -n "$ac_cv_prog_WINDMC"; then
7716 WINDMC=$ac_cv_prog_WINDMC
7717fi
7718
7719if test -n "$ac_cv_prog_WINDMC"; then
7720 for ncn_progname in windmc; do
7721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7722set dummy ${ncn_progname}; ac_word=$2
7723echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7725if test "${ac_cv_prog_WINDMC+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728 if test -n "$WINDMC"; then
7729 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7730else
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_WINDMC="${ncn_progname}"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7741 fi
7742done
7743done
7744
7745fi
7746fi
7747WINDMC=$ac_cv_prog_WINDMC
7748if test -n "$WINDMC"; then
7749 echo "$as_me:$LINENO: result: $WINDMC" >&5
7750echo "${ECHO_T}$WINDMC" >&6
7751else
7752 echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754fi
7755
7756 done
7757fi
7758
7759for ncn_progname in windmc; do
7760 if test -n "$ncn_tool_prefix"; then
7761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7762set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7763echo "$as_me:$LINENO: checking for $ac_word" >&5
7764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7765if test "${ac_cv_prog_WINDMC+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else
7768 if test -n "$WINDMC"; then
7769 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7770else
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782done
7783done
7784
7785fi
7786fi
7787WINDMC=$ac_cv_prog_WINDMC
7788if test -n "$WINDMC"; then
7789 echo "$as_me:$LINENO: result: $WINDMC" >&5
7790echo "${ECHO_T}$WINDMC" >&6
7791else
7792 echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6
7794fi
7795
7796 fi
7797 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7799set dummy ${ncn_progname}; ac_word=$2
7800echo "$as_me:$LINENO: checking for $ac_word" >&5
7801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7802if test "${ac_cv_prog_WINDMC+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804else
7805 if test -n "$WINDMC"; then
7806 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815 ac_cv_prog_WINDMC="${ncn_progname}"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819done
7820done
7821
7822fi
7823fi
7824WINDMC=$ac_cv_prog_WINDMC
7825if test -n "$WINDMC"; then
7826 echo "$as_me:$LINENO: result: $WINDMC" >&5
7827echo "${ECHO_T}$WINDMC" >&6
7828else
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831fi
7832
7833 fi
7834 test -n "$ac_cv_prog_WINDMC" && break
7835done
7836
7837if test -z "$ac_cv_prog_WINDMC" ; then
7838 set dummy windmc
7839 if test $build = $host ; then
7840 WINDMC="$2"
7841 else
7842 WINDMC="${ncn_tool_prefix}$2"
7843 fi
7844fi
7845
7846
7847
82026593
AO
7848if test -n "$OBJCOPY"; then
7849 ac_cv_prog_OBJCOPY=$OBJCOPY
7850elif test -n "$ac_cv_prog_OBJCOPY"; then
7851 OBJCOPY=$ac_cv_prog_OBJCOPY
7852fi
7853
7854if test -n "$ac_cv_prog_OBJCOPY"; then
7855 for ncn_progname in objcopy; do
7856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7857set dummy ${ncn_progname}; ac_word=$2
7858echo "$as_me:$LINENO: checking for $ac_word" >&5
7859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7860if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862else
7863 if test -n "$OBJCOPY"; then
7864 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7865else
7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_OBJCOPY="${ncn_progname}"
7874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877done
7878done
7879
7880fi
7881fi
7882OBJCOPY=$ac_cv_prog_OBJCOPY
7883if test -n "$OBJCOPY"; then
7884 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7885echo "${ECHO_T}$OBJCOPY" >&6
7886else
7887 echo "$as_me:$LINENO: result: no" >&5
7888echo "${ECHO_T}no" >&6
7889fi
7890
7891 done
7892fi
7893
7894for ncn_progname in objcopy; do
60cfca65
PB
7895 if test -n "$ncn_tool_prefix"; then
7896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7897set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7898echo "$as_me:$LINENO: checking for $ac_word" >&5
7899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7900if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
7902else
7903 if test -n "$OBJCOPY"; then
7904 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7905else
b58b6ee1
DJ
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917done
7918done
7919
a0c92996
AC
7920fi
7921fi
b58b6ee1 7922OBJCOPY=$ac_cv_prog_OBJCOPY
a0c92996 7923if test -n "$OBJCOPY"; then
b58b6ee1
DJ
7924 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7925echo "${ECHO_T}$OBJCOPY" >&6
a0c92996 7926else
b58b6ee1
DJ
7927 echo "$as_me:$LINENO: result: no" >&5
7928echo "${ECHO_T}no" >&6
a0c92996
AC
7929fi
7930
60cfca65
PB
7931 fi
7932 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7934set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
7935echo "$as_me:$LINENO: checking for $ac_word" >&5
7936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7937if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 7939else
60cfca65
PB
7940 if test -n "$OBJCOPY"; then
7941 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
a0c92996 7942else
b58b6ee1
DJ
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_OBJCOPY="${ncn_progname}"
7951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954done
7955done
7956
a0c92996
AC
7957fi
7958fi
b58b6ee1 7959OBJCOPY=$ac_cv_prog_OBJCOPY
60cfca65 7960if test -n "$OBJCOPY"; then
b58b6ee1
DJ
7961 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7962echo "${ECHO_T}$OBJCOPY" >&6
a0c92996 7963else
b58b6ee1
DJ
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
a0c92996 7966fi
b58b6ee1 7967
60cfca65
PB
7968 fi
7969 test -n "$ac_cv_prog_OBJCOPY" && break
7970done
7971
7972if test -z "$ac_cv_prog_OBJCOPY" ; then
7973 set dummy objcopy
7974 if test $build = $host ; then
7975 OBJCOPY="$2"
a0c92996 7976 else
60cfca65 7977 OBJCOPY="${ncn_tool_prefix}$2"
a0c92996 7978 fi
a0c92996
AC
7979fi
7980
82026593
AO
7981
7982
7983if test -n "$OBJDUMP"; then
7984 ac_cv_prog_OBJDUMP=$OBJDUMP
7985elif test -n "$ac_cv_prog_OBJDUMP"; then
7986 OBJDUMP=$ac_cv_prog_OBJDUMP
7987fi
7988
7989if test -n "$ac_cv_prog_OBJDUMP"; then
7990 for ncn_progname in objdump; do
7991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7992set dummy ${ncn_progname}; ac_word=$2
7993echo "$as_me:$LINENO: checking for $ac_word" >&5
7994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7995if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997else
7998 if test -n "$OBJDUMP"; then
7999 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8000else
8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008 ac_cv_prog_OBJDUMP="${ncn_progname}"
8009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012done
8013done
8014
8015fi
8016fi
8017OBJDUMP=$ac_cv_prog_OBJDUMP
8018if test -n "$OBJDUMP"; then
8019 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8020echo "${ECHO_T}$OBJDUMP" >&6
8021else
8022 echo "$as_me:$LINENO: result: no" >&5
8023echo "${ECHO_T}no" >&6
8024fi
8025
8026 done
8027fi
8028
8029for ncn_progname in objdump; do
60cfca65
PB
8030 if test -n "$ncn_tool_prefix"; then
8031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8032set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8033echo "$as_me:$LINENO: checking for $ac_word" >&5
8034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8035if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996
AC
8037else
8038 if test -n "$OBJDUMP"; then
8039 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8040else
b58b6ee1
DJ
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052done
8053done
8054
a0c92996
AC
8055fi
8056fi
b58b6ee1 8057OBJDUMP=$ac_cv_prog_OBJDUMP
a0c92996 8058if test -n "$OBJDUMP"; then
b58b6ee1
DJ
8059 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8060echo "${ECHO_T}$OBJDUMP" >&6
a0c92996 8061else
b58b6ee1
DJ
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
a0c92996
AC
8064fi
8065
60cfca65
PB
8066 fi
8067 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8069set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8070echo "$as_me:$LINENO: checking for $ac_word" >&5
8071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8072if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 8074else
60cfca65
PB
8075 if test -n "$OBJDUMP"; then
8076 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
a0c92996 8077else
b58b6ee1
DJ
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_prog_OBJDUMP="${ncn_progname}"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089done
8090done
8091
a0c92996
AC
8092fi
8093fi
b58b6ee1 8094OBJDUMP=$ac_cv_prog_OBJDUMP
60cfca65 8095if test -n "$OBJDUMP"; then
b58b6ee1
DJ
8096 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8097echo "${ECHO_T}$OBJDUMP" >&6
a0c92996 8098else
b58b6ee1
DJ
8099 echo "$as_me:$LINENO: result: no" >&5
8100echo "${ECHO_T}no" >&6
a0c92996 8101fi
b58b6ee1 8102
60cfca65
PB
8103 fi
8104 test -n "$ac_cv_prog_OBJDUMP" && break
8105done
8106
8107if test -z "$ac_cv_prog_OBJDUMP" ; then
8108 set dummy objdump
8109 if test $build = $host ; then
8110 OBJDUMP="$2"
a0c92996 8111 else
60cfca65 8112 OBJDUMP="${ncn_tool_prefix}$2"
a0c92996 8113 fi
a0c92996
AC
8114fi
8115
bafecfd6
NN
8116
8117
8118
8119
8120
a7dc05b5 8121# Target tools.
b58b6ee1 8122
fef3f213
PB
8123# Check whether --with-build-time-tools or --without-build-time-tools was given.
8124if test "${with_build_time_tools+set}" = set; then
8125 withval="$with_build_time_tools"
8126 case x"$withval" in
8127 x/*) ;;
8128 *)
8129 with_build_time_tools=
b58b6ee1
DJ
8130 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8131echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
fef3f213
PB
8132 ;;
8133 esac
a0c92996 8134else
fef3f213 8135 with_build_time_tools=
b58b6ee1 8136fi;
a0c92996 8137
82026593
AO
8138
8139
8140if test -n "$CC_FOR_TARGET"; then
8141 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8142elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8143 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8144fi
8145
8146if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8147 for ncn_progname in cc gcc; do
8148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8149set dummy ${ncn_progname}; ac_word=$2
8150echo "$as_me:$LINENO: checking for $ac_word" >&5
8151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8152if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155 if test -n "$CC_FOR_TARGET"; then
8156 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8157else
8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8168 fi
8169done
8170done
8171
8172fi
8173fi
8174CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8175if test -n "$CC_FOR_TARGET"; then
8176 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8177echo "${ECHO_T}$CC_FOR_TARGET" >&6
8178else
8179 echo "$as_me:$LINENO: result: no" >&5
8180echo "${ECHO_T}no" >&6
8181fi
8182
8183 done
8184fi
8185
8186if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 8187 for ncn_progname in cc gcc; do
b58b6ee1
DJ
8188 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8189echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
8190 if test -x $with_build_time_tools/${ncn_progname}; then
8191 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
8192 echo "$as_me:$LINENO: result: yes" >&5
8193echo "${ECHO_T}yes" >&6
f69e2532 8194 break
fef3f213 8195 else
b58b6ee1
DJ
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
f69e2532
CM
8198 fi
8199 done
5fb28bcc
PB
8200fi
8201
fef3f213
PB
8202if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8203 for ncn_progname in cc gcc; do
8204 if test -n "$ncn_target_tool_prefix"; then
8205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 8206set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8207echo "$as_me:$LINENO: checking for $ac_word" >&5
8208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8209if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc
PB
8211else
8212 if test -n "$CC_FOR_TARGET"; then
8213 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8214else
b58b6ee1
DJ
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226done
8227done
8228
5fb28bcc
PB
8229fi
8230fi
b58b6ee1 8231CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
5fb28bcc 8232if test -n "$CC_FOR_TARGET"; then
b58b6ee1
DJ
8233 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8234echo "${ECHO_T}$CC_FOR_TARGET" >&6
5fb28bcc 8235else
b58b6ee1
DJ
8236 echo "$as_me:$LINENO: result: no" >&5
8237echo "${ECHO_T}no" >&6
5fb28bcc
PB
8238fi
8239
fef3f213
PB
8240 fi
8241 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 8243set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8244echo "$as_me:$LINENO: checking for $ac_word" >&5
8245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8246if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc 8248else
60cfca65
PB
8249 if test -n "$CC_FOR_TARGET"; then
8250 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
5fb28bcc 8251else
b58b6ee1
DJ
8252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253for as_dir in $PATH
8254do
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8259 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8262 fi
8263done
8264done
8265
5fb28bcc
PB
8266fi
8267fi
b58b6ee1 8268CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
60cfca65 8269if test -n "$CC_FOR_TARGET"; then
b58b6ee1
DJ
8270 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8271echo "${ECHO_T}$CC_FOR_TARGET" >&6
5fb28bcc 8272else
b58b6ee1
DJ
8273 echo "$as_me:$LINENO: result: no" >&5
8274echo "${ECHO_T}no" >&6
5fb28bcc 8275fi
b58b6ee1 8276
fef3f213
PB
8277 fi
8278 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8279 done
8280fi
b58b6ee1 8281
60cfca65
PB
8282if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8283 set dummy cc gcc
8284 if test $build = $target ; then
8285 CC_FOR_TARGET="$2"
5fb28bcc 8286 else
60cfca65 8287 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 8288 fi
d058b81b
MS
8289else
8290 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
5fb28bcc
PB
8291fi
8292
82026593
AO
8293
8294
8295if test -n "$CXX_FOR_TARGET"; then
8296 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8297elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8298 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8299fi
8300
8301if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8302 for ncn_progname in c++ g++ cxx gxx; do
8303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8304set dummy ${ncn_progname}; ac_word=$2
8305echo "$as_me:$LINENO: checking for $ac_word" >&5
8306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8307if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309else
8310 if test -n "$CXX_FOR_TARGET"; then
8311 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8312else
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324done
8325done
8326
8327fi
8328fi
8329CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8330if test -n "$CXX_FOR_TARGET"; then
8331 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8332echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8333else
8334 echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6
8336fi
8337
8338 done
8339fi
8340
8341if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 8342 for ncn_progname in c++ g++ cxx gxx; do
b58b6ee1
DJ
8343 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8344echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
8345 if test -x $with_build_time_tools/${ncn_progname}; then
8346 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
8347 echo "$as_me:$LINENO: result: yes" >&5
8348echo "${ECHO_T}yes" >&6
fef3f213
PB
8349 break
8350 else
b58b6ee1
DJ
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
fef3f213
PB
8353 fi
8354 done
8355fi
8356
8357if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8358 for ncn_progname in c++ g++ cxx gxx; do
8359 if test -n "$ncn_target_tool_prefix"; then
8360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 8361set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8362echo "$as_me:$LINENO: checking for $ac_word" >&5
8363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8364if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc
PB
8366else
8367 if test -n "$CXX_FOR_TARGET"; then
8368 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8369else
b58b6ee1
DJ
8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8380 fi
8381done
8382done
8383
5fb28bcc
PB
8384fi
8385fi
b58b6ee1 8386CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
5fb28bcc 8387if test -n "$CXX_FOR_TARGET"; then
b58b6ee1
DJ
8388 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8389echo "${ECHO_T}$CXX_FOR_TARGET" >&6
5fb28bcc 8390else
b58b6ee1
DJ
8391 echo "$as_me:$LINENO: result: no" >&5
8392echo "${ECHO_T}no" >&6
5fb28bcc
PB
8393fi
8394
fef3f213
PB
8395 fi
8396 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 8398set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8399echo "$as_me:$LINENO: checking for $ac_word" >&5
8400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8401if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc 8403else
60cfca65
PB
8404 if test -n "$CXX_FOR_TARGET"; then
8405 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
5fb28bcc 8406else
b58b6ee1
DJ
8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8417 fi
8418done
8419done
8420
5fb28bcc
PB
8421fi
8422fi
b58b6ee1 8423CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
60cfca65 8424if test -n "$CXX_FOR_TARGET"; then
b58b6ee1
DJ
8425 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8426echo "${ECHO_T}$CXX_FOR_TARGET" >&6
5fb28bcc 8427else
b58b6ee1
DJ
8428 echo "$as_me:$LINENO: result: no" >&5
8429echo "${ECHO_T}no" >&6
5fb28bcc 8430fi
b58b6ee1 8431
fef3f213
PB
8432 fi
8433 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8434 done
8435fi
b58b6ee1 8436
60cfca65
PB
8437if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8438 set dummy c++ g++ cxx gxx
8439 if test $build = $target ; then
8440 CXX_FOR_TARGET="$2"
5fb28bcc 8441 else
60cfca65 8442 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 8443 fi
d058b81b
MS
8444else
8445 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
a0c92996
AC
8446fi
8447
82026593
AO
8448
8449
8450if test -n "$GCC_FOR_TARGET"; then
8451 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8452elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8453 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8454fi
8455
8456if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8457 for ncn_progname in gcc; do
8458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8459set dummy ${ncn_progname}; ac_word=$2
8460echo "$as_me:$LINENO: checking for $ac_word" >&5
8461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8462if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465 if test -n "$GCC_FOR_TARGET"; then
8466 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8467else
8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469for as_dir in $PATH
8470do
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 break 2
8478 fi
8479done
8480done
8481
8482fi
8483fi
8484GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8485if test -n "$GCC_FOR_TARGET"; then
8486 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8487echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8488else
8489 echo "$as_me:$LINENO: result: no" >&5
8490echo "${ECHO_T}no" >&6
8491fi
8492
8493 done
8494fi
8495
8496if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 8497 for ncn_progname in gcc; do
b58b6ee1
DJ
8498 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8499echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
8500 if test -x $with_build_time_tools/${ncn_progname}; then
8501 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
8502 echo "$as_me:$LINENO: result: yes" >&5
8503echo "${ECHO_T}yes" >&6
fef3f213
PB
8504 break
8505 else
b58b6ee1
DJ
8506 echo "$as_me:$LINENO: result: no" >&5
8507echo "${ECHO_T}no" >&6
fef3f213
PB
8508 fi
8509 done
8510fi
8511
8512if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8513 for ncn_progname in gcc; do
8514 if test -n "$ncn_target_tool_prefix"; then
8515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 8516set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8517echo "$as_me:$LINENO: checking for $ac_word" >&5
8518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8519if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 8521else
fef3f213
PB
8522 if test -n "$GCC_FOR_TARGET"; then
8523 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
5fb28bcc 8524else
b58b6ee1
DJ
8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536done
8537done
8538
5fb28bcc
PB
8539fi
8540fi
b58b6ee1 8541GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
5fb28bcc 8542if test -n "$GCC_FOR_TARGET"; then
b58b6ee1
DJ
8543 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8544echo "${ECHO_T}$GCC_FOR_TARGET" >&6
5fb28bcc 8545else
b58b6ee1
DJ
8546 echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6
5fb28bcc
PB
8548fi
8549
fef3f213
PB
8550 fi
8551 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 8553set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8554echo "$as_me:$LINENO: checking for $ac_word" >&5
8555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8556if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc 8558else
60cfca65
PB
8559 if test -n "$GCC_FOR_TARGET"; then
8560 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
5fb28bcc 8561else
b58b6ee1
DJ
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573done
8574done
8575
5fb28bcc
PB
8576fi
8577fi
b58b6ee1 8578GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
60cfca65 8579if test -n "$GCC_FOR_TARGET"; then
b58b6ee1
DJ
8580 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8581echo "${ECHO_T}$GCC_FOR_TARGET" >&6
5fb28bcc 8582else
b58b6ee1
DJ
8583 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6
5fb28bcc 8585fi
b58b6ee1 8586
fef3f213
PB
8587 fi
8588 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8589 done
8590fi
b58b6ee1 8591
60cfca65
PB
8592if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8593 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d058b81b
MS
8594else
8595 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
5fb28bcc
PB
8596fi
8597
82026593
AO
8598
8599
8600if test -n "$GCJ_FOR_TARGET"; then
8601 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8602elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8603 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8604fi
8605
8606if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8607 for ncn_progname in gcj; do
8608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8609set dummy ${ncn_progname}; ac_word=$2
8610echo "$as_me:$LINENO: checking for $ac_word" >&5
8611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8612if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614else
8615 if test -n "$GCJ_FOR_TARGET"; then
8616 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8617else
8618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619for as_dir in $PATH
8620do
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8625 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 break 2
8628 fi
8629done
8630done
8631
8632fi
8633fi
8634GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8635if test -n "$GCJ_FOR_TARGET"; then
8636 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8637echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8638else
8639 echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6
8641fi
8642
8643 done
8644fi
8645
8646if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 8647 for ncn_progname in gcj; do
b58b6ee1
DJ
8648 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8649echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
8650 if test -x $with_build_time_tools/${ncn_progname}; then
8651 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
8652 echo "$as_me:$LINENO: result: yes" >&5
8653echo "${ECHO_T}yes" >&6
fef3f213
PB
8654 break
8655 else
b58b6ee1
DJ
8656 echo "$as_me:$LINENO: result: no" >&5
8657echo "${ECHO_T}no" >&6
fef3f213
PB
8658 fi
8659 done
8660fi
8661
8662if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8663 for ncn_progname in gcj; do
8664 if test -n "$ncn_target_tool_prefix"; then
8665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 8666set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8667echo "$as_me:$LINENO: checking for $ac_word" >&5
8668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8669if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc
PB
8671else
8672 if test -n "$GCJ_FOR_TARGET"; then
8673 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8674else
b58b6ee1
DJ
8675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676for as_dir in $PATH
8677do
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8682 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 break 2
8685 fi
8686done
8687done
8688
5fb28bcc
PB
8689fi
8690fi
82026593
AO
8691GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8692if test -n "$GCJ_FOR_TARGET"; then
8693 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8694echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8695else
8696 echo "$as_me:$LINENO: result: no" >&5
8697echo "${ECHO_T}no" >&6
8698fi
8699
8700 fi
8701 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8703set dummy ${ncn_progname}; ac_word=$2
8704echo "$as_me:$LINENO: checking for $ac_word" >&5
8705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8706if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8708else
8709 if test -n "$GCJ_FOR_TARGET"; then
8710 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8711else
8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 break 2
8722 fi
8723done
8724done
8725
8726fi
8727fi
8728GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8729if test -n "$GCJ_FOR_TARGET"; then
8730 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8731echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8732else
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
8735fi
8736
8737 fi
8738 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8739 done
8740fi
8741
8742if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8743 set dummy gcj
8744 if test $build = $target ; then
8745 GCJ_FOR_TARGET="$2"
8746 else
8747 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8748 fi
d058b81b
MS
8749else
8750 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
82026593
AO
8751fi
8752
8753
8754
8755if test -n "$GFORTRAN_FOR_TARGET"; then
8756 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8757elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8758 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
5fb28bcc
PB
8759fi
8760
82026593
AO
8761if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8762 for ncn_progname in gfortran; do
8763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 8764set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8765echo "$as_me:$LINENO: checking for $ac_word" >&5
8766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
82026593 8767if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
b58b6ee1 8768 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc 8769else
82026593
AO
8770 if test -n "$GFORTRAN_FOR_TARGET"; then
8771 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5fb28bcc 8772else
b58b6ee1
DJ
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 8780 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
b58b6ee1
DJ
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784done
8785done
8786
5fb28bcc
PB
8787fi
8788fi
82026593
AO
8789GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8790if test -n "$GFORTRAN_FOR_TARGET"; then
8791 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8792echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
5fb28bcc 8793else
b58b6ee1
DJ
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
5fb28bcc 8796fi
b58b6ee1 8797
fef3f213
PB
8798 done
8799fi
b58b6ee1 8800
82026593 8801if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 8802 for ncn_progname in gfortran; do
b58b6ee1
DJ
8803 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8804echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
8805 if test -x $with_build_time_tools/${ncn_progname}; then
8806 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
8807 echo "$as_me:$LINENO: result: yes" >&5
8808echo "${ECHO_T}yes" >&6
fef3f213
PB
8809 break
8810 else
b58b6ee1
DJ
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
fef3f213
PB
8813 fi
8814 done
8815fi
8816
8817if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8818 for ncn_progname in gfortran; do
8819 if test -n "$ncn_target_tool_prefix"; then
8820 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 8821set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8822echo "$as_me:$LINENO: checking for $ac_word" >&5
8823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8824if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc
PB
8826else
8827 if test -n "$GFORTRAN_FOR_TARGET"; then
8828 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8829else
b58b6ee1
DJ
8830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831for as_dir in $PATH
8832do
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8837 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8840 fi
8841done
8842done
8843
5fb28bcc
PB
8844fi
8845fi
b58b6ee1 8846GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
5fb28bcc 8847if test -n "$GFORTRAN_FOR_TARGET"; then
b58b6ee1
DJ
8848 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8849echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
5fb28bcc 8850else
b58b6ee1
DJ
8851 echo "$as_me:$LINENO: result: no" >&5
8852echo "${ECHO_T}no" >&6
5fb28bcc
PB
8853fi
8854
fef3f213
PB
8855 fi
8856 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 8858set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
8859echo "$as_me:$LINENO: checking for $ac_word" >&5
8860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8861if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
5fb28bcc 8863else
60cfca65 8864 if test -n "$GFORTRAN_FOR_TARGET"; then
b58b6ee1
DJ
8865 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8866else
8867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868for as_dir in $PATH
8869do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878done
8879done
8880
5fb28bcc
PB
8881fi
8882fi
b58b6ee1 8883GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
60cfca65 8884if test -n "$GFORTRAN_FOR_TARGET"; then
b58b6ee1
DJ
8885 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8886echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
5fb28bcc 8887else
b58b6ee1
DJ
8888 echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
5fb28bcc 8890fi
b58b6ee1 8891
fef3f213
PB
8892 fi
8893 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8894 done
8895fi
b58b6ee1 8896
60cfca65
PB
8897if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8898 set dummy gfortran
8899 if test $build = $target ; then
8900 GFORTRAN_FOR_TARGET="$2"
5fb28bcc 8901 else
60cfca65 8902 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 8903 fi
d058b81b
MS
8904else
8905 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
a0c92996
AC
8906fi
8907
fef3f213
PB
8908
8909
fef3f213
PB
8910cat > conftest.c << \EOF
8911#ifdef __GNUC__
8912 gcc_yay;
8913#endif
8914EOF
8915if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8916 have_gcc_for_target=yes
a0c92996 8917else
fef3f213
PB
8918 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8919 have_gcc_for_target=no
a0c92996 8920fi
fef3f213
PB
8921rm conftest.c
8922
8923
8924
a0c92996 8925
fef3f213
PB
8926if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8927 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
8928 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8929echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
8930 if test -x $with_build_time_tools/ar; then
8931 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8932 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
b58b6ee1
DJ
8933 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8934echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
207258c8 8935 else
b58b6ee1
DJ
8936 echo "$as_me:$LINENO: result: no" >&5
8937echo "${ECHO_T}no" >&6
207258c8 8938 fi
fef3f213
PB
8939 elif test $build != $host && test $have_gcc_for_target = yes; then
8940 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d058b81b
MS
8941 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8942 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
60cfca65 8943 fi
fef3f213 8944fi
b58b6ee1 8945if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
8946 # Extract the first word of "ar", so it can be a program name with args.
8947set dummy ar; ac_word=$2
b58b6ee1
DJ
8948echo "$as_me:$LINENO: checking for $ac_word" >&5
8949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8950if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 8952else
b58b6ee1
DJ
8953 case $AR_FOR_TARGET in
8954 [\\/]* | ?:[\\/]*)
fef3f213
PB
8955 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8956 ;;
fef3f213 8957 *)
b58b6ee1
DJ
8958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959for as_dir in $gcc_cv_tool_dirs
8960do
8961 IFS=$as_save_IFS
8962 test -z "$as_dir" && as_dir=.
8963 for ac_exec_ext in '' $ac_executable_extensions; do
8964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8965 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 break 2
8968 fi
8969done
8970done
8971
fef3f213
PB
8972 ;;
8973esac
a0c92996 8974fi
b58b6ee1
DJ
8975AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8976
fef3f213 8977if test -n "$AR_FOR_TARGET"; then
b58b6ee1
DJ
8978 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8979echo "${ECHO_T}$AR_FOR_TARGET" >&6
a0c92996 8980else
b58b6ee1
DJ
8981 echo "$as_me:$LINENO: result: no" >&5
8982echo "${ECHO_T}no" >&6
a0c92996 8983fi
60cfca65 8984
fef3f213
PB
8985fi
8986if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
82026593
AO
8987
8988
8989if test -n "$AR_FOR_TARGET"; then
8990 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8991elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8992 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8993fi
8994
8995if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8996 for ncn_progname in ar; do
8997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8998set dummy ${ncn_progname}; ac_word=$2
8999echo "$as_me:$LINENO: checking for $ac_word" >&5
9000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004 if test -n "$AR_FOR_TARGET"; then
9005 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9006else
9007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018done
9019done
9020
9021fi
9022fi
9023AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9024if test -n "$AR_FOR_TARGET"; then
9025 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9026echo "${ECHO_T}$AR_FOR_TARGET" >&6
9027else
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
9030fi
9031
9032 done
9033fi
9034
9035if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 9036 for ncn_progname in ar; do
b58b6ee1
DJ
9037 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9038echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9039 if test -x $with_build_time_tools/${ncn_progname}; then
9040 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
9041 echo "$as_me:$LINENO: result: yes" >&5
9042echo "${ECHO_T}yes" >&6
fef3f213
PB
9043 break
9044 else
b58b6ee1
DJ
9045 echo "$as_me:$LINENO: result: no" >&5
9046echo "${ECHO_T}no" >&6
fef3f213
PB
9047 fi
9048 done
a0c92996
AC
9049fi
9050
fef3f213
PB
9051if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9052 for ncn_progname in ar; do
9053 if test -n "$ncn_target_tool_prefix"; then
9054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 9055set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9056echo "$as_me:$LINENO: checking for $ac_word" >&5
9057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9058if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
6a33f745 9060else
fef3f213
PB
9061 if test -n "$AR_FOR_TARGET"; then
9062 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
6a33f745 9063else
b58b6ee1
DJ
9064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065for as_dir in $PATH
9066do
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 break 2
9074 fi
9075done
9076done
9077
6a33f745
GK
9078fi
9079fi
b58b6ee1 9080AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
fef3f213 9081if test -n "$AR_FOR_TARGET"; then
b58b6ee1
DJ
9082 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9083echo "${ECHO_T}$AR_FOR_TARGET" >&6
6a33f745 9084else
b58b6ee1
DJ
9085 echo "$as_me:$LINENO: result: no" >&5
9086echo "${ECHO_T}no" >&6
6a33f745
GK
9087fi
9088
fef3f213
PB
9089 fi
9090 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6a33f745 9092set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9093echo "$as_me:$LINENO: checking for $ac_word" >&5
9094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9095if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
6a33f745 9097else
fef3f213
PB
9098 if test -n "$AR_FOR_TARGET"; then
9099 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
f69e2532 9100else
b58b6ee1
DJ
9101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102for as_dir in $PATH
9103do
9104 IFS=$as_save_IFS
9105 test -z "$as_dir" && as_dir=.
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 break 2
9111 fi
9112done
9113done
9114
6a33f745
GK
9115fi
9116fi
b58b6ee1 9117AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
fef3f213 9118if test -n "$AR_FOR_TARGET"; then
b58b6ee1
DJ
9119 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9120echo "${ECHO_T}$AR_FOR_TARGET" >&6
6a33f745 9121else
b58b6ee1
DJ
9122 echo "$as_me:$LINENO: result: no" >&5
9123echo "${ECHO_T}no" >&6
6a33f745 9124fi
b58b6ee1 9125
fef3f213
PB
9126 fi
9127 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9128 done
9129fi
b58b6ee1 9130
fef3f213
PB
9131if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9132 set dummy ar
6a33f745 9133 if test $build = $target ; then
fef3f213 9134 AR_FOR_TARGET="$2"
6a33f745 9135 else
fef3f213 9136 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
6a33f745 9137 fi
d058b81b
MS
9138else
9139 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
6a33f745
GK
9140fi
9141
207258c8
PB
9142else
9143 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
fef3f213
PB
9144fi
9145
9146
9147
9148
9149if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9150 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
9151 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9152echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9153 if test -x $with_build_time_tools/as; then
9154 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9155 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
b58b6ee1
DJ
9156 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9157echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
207258c8 9158 else
b58b6ee1
DJ
9159 echo "$as_me:$LINENO: result: no" >&5
9160echo "${ECHO_T}no" >&6
207258c8 9161 fi
fef3f213
PB
9162 elif test $build != $host && test $have_gcc_for_target = yes; then
9163 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d058b81b
MS
9164 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9165 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
fef3f213
PB
9166 fi
9167fi
b58b6ee1 9168if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
9169 # Extract the first word of "as", so it can be a program name with args.
9170set dummy as; ac_word=$2
b58b6ee1
DJ
9171echo "$as_me:$LINENO: checking for $ac_word" >&5
9172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9173if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 9175else
b58b6ee1
DJ
9176 case $AS_FOR_TARGET in
9177 [\\/]* | ?:[\\/]*)
fef3f213
PB
9178 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9179 ;;
fef3f213 9180 *)
b58b6ee1
DJ
9181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182for as_dir in $gcc_cv_tool_dirs
9183do
9184 IFS=$as_save_IFS
9185 test -z "$as_dir" && as_dir=.
9186 for ac_exec_ext in '' $ac_executable_extensions; do
9187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9188 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9190 break 2
9191 fi
9192done
9193done
9194
fef3f213
PB
9195 ;;
9196esac
9197fi
b58b6ee1
DJ
9198AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9199
fef3f213 9200if test -n "$AS_FOR_TARGET"; then
b58b6ee1
DJ
9201 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9202echo "${ECHO_T}$AS_FOR_TARGET" >&6
fef3f213 9203else
b58b6ee1
DJ
9204 echo "$as_me:$LINENO: result: no" >&5
9205echo "${ECHO_T}no" >&6
fef3f213
PB
9206fi
9207
9208fi
9209if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
82026593
AO
9210
9211
9212if test -n "$AS_FOR_TARGET"; then
9213 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9214elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9215 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9216fi
9217
9218if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9219 for ncn_progname in as; do
9220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9221set dummy ${ncn_progname}; ac_word=$2
9222echo "$as_me:$LINENO: checking for $ac_word" >&5
9223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9224if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227 if test -n "$AS_FOR_TARGET"; then
9228 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9229else
9230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231for as_dir in $PATH
9232do
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9237 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9240 fi
9241done
9242done
9243
9244fi
9245fi
9246AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9247if test -n "$AS_FOR_TARGET"; then
9248 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9249echo "${ECHO_T}$AS_FOR_TARGET" >&6
9250else
9251 echo "$as_me:$LINENO: result: no" >&5
9252echo "${ECHO_T}no" >&6
9253fi
9254
9255 done
9256fi
9257
9258if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 9259 for ncn_progname in as; do
b58b6ee1
DJ
9260 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9261echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9262 if test -x $with_build_time_tools/${ncn_progname}; then
9263 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
9264 echo "$as_me:$LINENO: result: yes" >&5
9265echo "${ECHO_T}yes" >&6
fef3f213
PB
9266 break
9267 else
b58b6ee1
DJ
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
fef3f213
PB
9270 fi
9271 done
9272fi
9273
9274if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9275 for ncn_progname in as; do
9276 if test -n "$ncn_target_tool_prefix"; then
9277 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9278set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9279echo "$as_me:$LINENO: checking for $ac_word" >&5
9280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9281if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213
PB
9283else
9284 if test -n "$AS_FOR_TARGET"; then
9285 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9286else
b58b6ee1
DJ
9287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288for as_dir in $PATH
9289do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9294 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9297 fi
9298done
9299done
9300
fef3f213
PB
9301fi
9302fi
b58b6ee1 9303AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
fef3f213 9304if test -n "$AS_FOR_TARGET"; then
b58b6ee1
DJ
9305 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9306echo "${ECHO_T}$AS_FOR_TARGET" >&6
fef3f213 9307else
b58b6ee1
DJ
9308 echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
fef3f213
PB
9310fi
9311
9312 fi
9313 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9315set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9316echo "$as_me:$LINENO: checking for $ac_word" >&5
9317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9318if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213
PB
9320else
9321 if test -n "$AS_FOR_TARGET"; then
9322 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9323else
b58b6ee1
DJ
9324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325for as_dir in $PATH
9326do
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9331 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9334 fi
9335done
9336done
9337
fef3f213
PB
9338fi
9339fi
b58b6ee1 9340AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
fef3f213 9341if test -n "$AS_FOR_TARGET"; then
b58b6ee1
DJ
9342 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9343echo "${ECHO_T}$AS_FOR_TARGET" >&6
fef3f213 9344else
b58b6ee1
DJ
9345 echo "$as_me:$LINENO: result: no" >&5
9346echo "${ECHO_T}no" >&6
fef3f213 9347fi
b58b6ee1 9348
fef3f213
PB
9349 fi
9350 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9351 done
9352fi
b58b6ee1 9353
fef3f213
PB
9354if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9355 set dummy as
9356 if test $build = $target ; then
9357 AS_FOR_TARGET="$2"
9358 else
9359 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9360 fi
d058b81b
MS
9361else
9362 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
fef3f213
PB
9363fi
9364
207258c8
PB
9365else
9366 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
fef3f213
PB
9367fi
9368
9369
9370
9371
9372if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9373 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
9374 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9375echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9376 if test -x $with_build_time_tools/dlltool; then
9377 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9378 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
b58b6ee1
DJ
9379 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9380echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
207258c8 9381 else
b58b6ee1
DJ
9382 echo "$as_me:$LINENO: result: no" >&5
9383echo "${ECHO_T}no" >&6
207258c8 9384 fi
fef3f213
PB
9385 elif test $build != $host && test $have_gcc_for_target = yes; then
9386 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d058b81b
MS
9387 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9388 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
fef3f213
PB
9389 fi
9390fi
b58b6ee1 9391if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
9392 # Extract the first word of "dlltool", so it can be a program name with args.
9393set dummy dlltool; ac_word=$2
b58b6ee1
DJ
9394echo "$as_me:$LINENO: checking for $ac_word" >&5
9395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9396if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 9398else
b58b6ee1
DJ
9399 case $DLLTOOL_FOR_TARGET in
9400 [\\/]* | ?:[\\/]*)
fef3f213
PB
9401 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9402 ;;
fef3f213 9403 *)
b58b6ee1
DJ
9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405for as_dir in $gcc_cv_tool_dirs
9406do
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9411 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9414 fi
9415done
9416done
9417
fef3f213
PB
9418 ;;
9419esac
9420fi
b58b6ee1
DJ
9421DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9422
fef3f213 9423if test -n "$DLLTOOL_FOR_TARGET"; then
b58b6ee1
DJ
9424 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9425echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
fef3f213 9426else
b58b6ee1
DJ
9427 echo "$as_me:$LINENO: result: no" >&5
9428echo "${ECHO_T}no" >&6
fef3f213
PB
9429fi
9430
9431fi
9432if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
82026593
AO
9433
9434
9435if test -n "$DLLTOOL_FOR_TARGET"; then
9436 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9437elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9438 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9439fi
9440
9441if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9442 for ncn_progname in dlltool; do
9443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9444set dummy ${ncn_progname}; ac_word=$2
9445echo "$as_me:$LINENO: checking for $ac_word" >&5
9446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9447if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449else
9450 if test -n "$DLLTOOL_FOR_TARGET"; then
9451 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9452else
9453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454for as_dir in $PATH
9455do
9456 IFS=$as_save_IFS
9457 test -z "$as_dir" && as_dir=.
9458 for ac_exec_ext in '' $ac_executable_extensions; do
9459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9460 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9462 break 2
9463 fi
9464done
9465done
9466
9467fi
9468fi
9469DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9470if test -n "$DLLTOOL_FOR_TARGET"; then
9471 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9472echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9473else
9474 echo "$as_me:$LINENO: result: no" >&5
9475echo "${ECHO_T}no" >&6
9476fi
9477
9478 done
9479fi
9480
9481if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 9482 for ncn_progname in dlltool; do
b58b6ee1
DJ
9483 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9484echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9485 if test -x $with_build_time_tools/${ncn_progname}; then
9486 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
9487 echo "$as_me:$LINENO: result: yes" >&5
9488echo "${ECHO_T}yes" >&6
fef3f213
PB
9489 break
9490 else
b58b6ee1
DJ
9491 echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
fef3f213
PB
9493 fi
9494 done
9495fi
9496
9497if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9498 for ncn_progname in dlltool; do
9499 if test -n "$ncn_target_tool_prefix"; then
9500 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9501set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9502echo "$as_me:$LINENO: checking for $ac_word" >&5
9503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9504if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213
PB
9506else
9507 if test -n "$DLLTOOL_FOR_TARGET"; then
9508 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9509else
b58b6ee1
DJ
9510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511for as_dir in $PATH
9512do
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9517 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 break 2
9520 fi
9521done
9522done
9523
fef3f213
PB
9524fi
9525fi
b58b6ee1 9526DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
fef3f213 9527if test -n "$DLLTOOL_FOR_TARGET"; then
b58b6ee1
DJ
9528 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9529echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
fef3f213 9530else
b58b6ee1
DJ
9531 echo "$as_me:$LINENO: result: no" >&5
9532echo "${ECHO_T}no" >&6
fef3f213
PB
9533fi
9534
9535 fi
9536 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9538set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9539echo "$as_me:$LINENO: checking for $ac_word" >&5
9540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9541if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213
PB
9543else
9544 if test -n "$DLLTOOL_FOR_TARGET"; then
9545 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9546else
b58b6ee1
DJ
9547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548for as_dir in $PATH
9549do
9550 IFS=$as_save_IFS
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9556 break 2
9557 fi
9558done
9559done
9560
fef3f213
PB
9561fi
9562fi
b58b6ee1 9563DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
fef3f213 9564if test -n "$DLLTOOL_FOR_TARGET"; then
b58b6ee1
DJ
9565 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9566echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
fef3f213 9567else
b58b6ee1
DJ
9568 echo "$as_me:$LINENO: result: no" >&5
9569echo "${ECHO_T}no" >&6
fef3f213 9570fi
b58b6ee1 9571
fef3f213
PB
9572 fi
9573 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9574 done
9575fi
b58b6ee1 9576
fef3f213
PB
9577if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9578 set dummy dlltool
9579 if test $build = $target ; then
9580 DLLTOOL_FOR_TARGET="$2"
9581 else
9582 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9583 fi
d058b81b
MS
9584else
9585 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
fef3f213
PB
9586fi
9587
207258c8
PB
9588else
9589 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
fef3f213
PB
9590fi
9591
9592
9593
9594
9595if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9596 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
9597 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9598echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9599 if test -x $with_build_time_tools/ld; then
9600 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9601 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
b58b6ee1
DJ
9602 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9603echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
207258c8 9604 else
b58b6ee1
DJ
9605 echo "$as_me:$LINENO: result: no" >&5
9606echo "${ECHO_T}no" >&6
207258c8 9607 fi
fef3f213
PB
9608 elif test $build != $host && test $have_gcc_for_target = yes; then
9609 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d058b81b
MS
9610 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9611 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
fef3f213
PB
9612 fi
9613fi
b58b6ee1 9614if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
9615 # Extract the first word of "ld", so it can be a program name with args.
9616set dummy ld; ac_word=$2
b58b6ee1
DJ
9617echo "$as_me:$LINENO: checking for $ac_word" >&5
9618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9619if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 9621else
b58b6ee1
DJ
9622 case $LD_FOR_TARGET in
9623 [\\/]* | ?:[\\/]*)
fef3f213
PB
9624 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9625 ;;
fef3f213 9626 *)
b58b6ee1
DJ
9627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628for as_dir in $gcc_cv_tool_dirs
9629do
9630 IFS=$as_save_IFS
9631 test -z "$as_dir" && as_dir=.
9632 for ac_exec_ext in '' $ac_executable_extensions; do
9633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9634 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 break 2
9637 fi
9638done
9639done
9640
fef3f213
PB
9641 ;;
9642esac
9643fi
b58b6ee1
DJ
9644LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9645
fef3f213 9646if test -n "$LD_FOR_TARGET"; then
b58b6ee1
DJ
9647 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9648echo "${ECHO_T}$LD_FOR_TARGET" >&6
fef3f213 9649else
b58b6ee1
DJ
9650 echo "$as_me:$LINENO: result: no" >&5
9651echo "${ECHO_T}no" >&6
fef3f213
PB
9652fi
9653
9654fi
9655if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
82026593
AO
9656
9657
9658if test -n "$LD_FOR_TARGET"; then
9659 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9660elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9661 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9662fi
9663
9664if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9665 for ncn_progname in ld; do
9666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9667set dummy ${ncn_progname}; ac_word=$2
9668echo "$as_me:$LINENO: checking for $ac_word" >&5
9669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9670if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672else
9673 if test -n "$LD_FOR_TARGET"; then
9674 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9675else
9676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677for as_dir in $PATH
9678do
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
9681 for ac_exec_ext in '' $ac_executable_extensions; do
9682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9683 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 break 2
9686 fi
9687done
9688done
9689
9690fi
9691fi
9692LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9693if test -n "$LD_FOR_TARGET"; then
9694 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9695echo "${ECHO_T}$LD_FOR_TARGET" >&6
9696else
9697 echo "$as_me:$LINENO: result: no" >&5
9698echo "${ECHO_T}no" >&6
9699fi
9700
9701 done
9702fi
9703
9704if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 9705 for ncn_progname in ld; do
b58b6ee1
DJ
9706 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9707echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9708 if test -x $with_build_time_tools/${ncn_progname}; then
9709 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
9710 echo "$as_me:$LINENO: result: yes" >&5
9711echo "${ECHO_T}yes" >&6
fef3f213
PB
9712 break
9713 else
b58b6ee1
DJ
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
fef3f213
PB
9716 fi
9717 done
9718fi
9719
9720if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9721 for ncn_progname in ld; do
9722 if test -n "$ncn_target_tool_prefix"; then
9723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9724set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9725echo "$as_me:$LINENO: checking for $ac_word" >&5
9726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9727if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213
PB
9729else
9730 if test -n "$LD_FOR_TARGET"; then
9731 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9732else
b58b6ee1
DJ
9733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744done
9745done
9746
fef3f213
PB
9747fi
9748fi
b58b6ee1 9749LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
fef3f213 9750if test -n "$LD_FOR_TARGET"; then
b58b6ee1
DJ
9751 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9752echo "${ECHO_T}$LD_FOR_TARGET" >&6
fef3f213 9753else
b58b6ee1
DJ
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
fef3f213
PB
9756fi
9757
9758 fi
9759 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9761set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9762echo "$as_me:$LINENO: checking for $ac_word" >&5
9763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9764if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213
PB
9766else
9767 if test -n "$LD_FOR_TARGET"; then
9768 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9769else
b58b6ee1
DJ
9770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771for as_dir in $PATH
9772do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
9776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9777 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781done
9782done
9783
fef3f213
PB
9784fi
9785fi
b58b6ee1 9786LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
fef3f213 9787if test -n "$LD_FOR_TARGET"; then
b58b6ee1
DJ
9788 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9789echo "${ECHO_T}$LD_FOR_TARGET" >&6
fef3f213 9790else
b58b6ee1
DJ
9791 echo "$as_me:$LINENO: result: no" >&5
9792echo "${ECHO_T}no" >&6
fef3f213 9793fi
b58b6ee1 9794
fef3f213
PB
9795 fi
9796 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9797 done
9798fi
b58b6ee1 9799
fef3f213
PB
9800if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9801 set dummy ld
9802 if test $build = $target ; then
9803 LD_FOR_TARGET="$2"
9804 else
9805 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9806 fi
d058b81b
MS
9807else
9808 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
fef3f213
PB
9809fi
9810
207258c8
PB
9811else
9812 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
fef3f213
PB
9813fi
9814
9815
9816
9817
9818if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9819 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
9820 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9821echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9822 if test -x $with_build_time_tools/lipo; then
9823 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9824 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
b58b6ee1
DJ
9825 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9826echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
207258c8 9827 else
b58b6ee1
DJ
9828 echo "$as_me:$LINENO: result: no" >&5
9829echo "${ECHO_T}no" >&6
207258c8 9830 fi
fef3f213
PB
9831 elif test $build != $host && test $have_gcc_for_target = yes; then
9832 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d058b81b
MS
9833 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9834 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
fef3f213
PB
9835 fi
9836fi
82026593
AO
9837if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9838 # Extract the first word of "lipo", so it can be a program name with args.
9839set dummy lipo; ac_word=$2
9840echo "$as_me:$LINENO: checking for $ac_word" >&5
9841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9842if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845 case $LIPO_FOR_TARGET in
9846 [\\/]* | ?:[\\/]*)
9847 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9848 ;;
9849 *)
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851for as_dir in $gcc_cv_tool_dirs
9852do
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9857 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9860 fi
9861done
9862done
9863
9864 ;;
9865esac
9866fi
9867LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9868
9869if test -n "$LIPO_FOR_TARGET"; then
9870 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9871echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9872else
9873 echo "$as_me:$LINENO: result: no" >&5
9874echo "${ECHO_T}no" >&6
9875fi
9876
9877fi
9878if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9879
9880
9881if test -n "$LIPO_FOR_TARGET"; then
9882 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9883elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9884 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9885fi
9886
9887if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9888 for ncn_progname in lipo; do
9889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9890set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9891echo "$as_me:$LINENO: checking for $ac_word" >&5
9892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
82026593 9893if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
b58b6ee1 9894 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 9895else
82026593
AO
9896 if test -n "$LIPO_FOR_TARGET"; then
9897 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9898else
9899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900for as_dir in $PATH
b58b6ee1
DJ
9901do
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 9906 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
b58b6ee1
DJ
9907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9909 fi
9910done
9911done
9912
fef3f213 9913fi
82026593
AO
9914fi
9915LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 9916if test -n "$LIPO_FOR_TARGET"; then
b58b6ee1
DJ
9917 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9918echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
fef3f213 9919else
b58b6ee1
DJ
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
fef3f213
PB
9922fi
9923
82026593 9924 done
fef3f213 9925fi
82026593
AO
9926
9927if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 9928 for ncn_progname in lipo; do
b58b6ee1
DJ
9929 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9930echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
9931 if test -x $with_build_time_tools/${ncn_progname}; then
9932 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
9933 echo "$as_me:$LINENO: result: yes" >&5
9934echo "${ECHO_T}yes" >&6
fef3f213
PB
9935 break
9936 else
b58b6ee1
DJ
9937 echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
fef3f213
PB
9939 fi
9940 done
9941fi
9942
9943if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9944 for ncn_progname in lipo; do
9945 if test -n "$ncn_target_tool_prefix"; then
9946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9947set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9948echo "$as_me:$LINENO: checking for $ac_word" >&5
9949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9950if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213
PB
9952else
9953 if test -n "$LIPO_FOR_TARGET"; then
9954 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9955else
b58b6ee1
DJ
9956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957for as_dir in $PATH
9958do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9963 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967done
9968done
9969
fef3f213
PB
9970fi
9971fi
b58b6ee1 9972LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 9973if test -n "$LIPO_FOR_TARGET"; then
b58b6ee1
DJ
9974 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9975echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
fef3f213 9976else
b58b6ee1
DJ
9977 echo "$as_me:$LINENO: result: no" >&5
9978echo "${ECHO_T}no" >&6
fef3f213
PB
9979fi
9980
9981 fi
9982 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9984set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
9985echo "$as_me:$LINENO: checking for $ac_word" >&5
9986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9987if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213
PB
9989else
9990 if test -n "$LIPO_FOR_TARGET"; then
9991 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9992else
b58b6ee1
DJ
9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10000 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10003 fi
10004done
10005done
10006
fef3f213
PB
10007fi
10008fi
b58b6ee1 10009LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 10010if test -n "$LIPO_FOR_TARGET"; then
b58b6ee1
DJ
10011 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10012echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
fef3f213 10013else
b58b6ee1
DJ
10014 echo "$as_me:$LINENO: result: no" >&5
10015echo "${ECHO_T}no" >&6
fef3f213 10016fi
b58b6ee1 10017
fef3f213
PB
10018 fi
10019 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10020 done
10021fi
b58b6ee1 10022
fef3f213
PB
10023if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10024 set dummy lipo
10025 if test $build = $target ; then
10026 LIPO_FOR_TARGET="$2"
10027 else
10028 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10029 fi
d058b81b
MS
10030else
10031 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
fef3f213
PB
10032fi
10033
207258c8
PB
10034else
10035 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
fef3f213
PB
10036fi
10037
10038
10039
10040
10041if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10042 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
10043 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10044echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10045 if test -x $with_build_time_tools/nm; then
10046 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10047 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
b58b6ee1
DJ
10048 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10049echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
207258c8 10050 else
b58b6ee1
DJ
10051 echo "$as_me:$LINENO: result: no" >&5
10052echo "${ECHO_T}no" >&6
207258c8 10053 fi
fef3f213
PB
10054 elif test $build != $host && test $have_gcc_for_target = yes; then
10055 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d058b81b
MS
10056 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10057 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
fef3f213
PB
10058 fi
10059fi
b58b6ee1 10060if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
10061 # Extract the first word of "nm", so it can be a program name with args.
10062set dummy nm; ac_word=$2
b58b6ee1
DJ
10063echo "$as_me:$LINENO: checking for $ac_word" >&5
10064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10065if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 10067else
b58b6ee1
DJ
10068 case $NM_FOR_TARGET in
10069 [\\/]* | ?:[\\/]*)
fef3f213
PB
10070 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10071 ;;
fef3f213 10072 *)
b58b6ee1
DJ
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074for as_dir in $gcc_cv_tool_dirs
10075do
10076 IFS=$as_save_IFS
10077 test -z "$as_dir" && as_dir=.
10078 for ac_exec_ext in '' $ac_executable_extensions; do
10079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10080 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 break 2
10083 fi
10084done
10085done
10086
fef3f213
PB
10087 ;;
10088esac
10089fi
b58b6ee1
DJ
10090NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10091
fef3f213 10092if test -n "$NM_FOR_TARGET"; then
b58b6ee1
DJ
10093 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10094echo "${ECHO_T}$NM_FOR_TARGET" >&6
fef3f213 10095else
b58b6ee1
DJ
10096 echo "$as_me:$LINENO: result: no" >&5
10097echo "${ECHO_T}no" >&6
fef3f213
PB
10098fi
10099
10100fi
10101if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
82026593
AO
10102
10103
10104if test -n "$NM_FOR_TARGET"; then
10105 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10106elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10107 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10108fi
10109
10110if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10111 for ncn_progname in nm; do
10112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10113set dummy ${ncn_progname}; ac_word=$2
10114echo "$as_me:$LINENO: checking for $ac_word" >&5
10115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10116if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119 if test -n "$NM_FOR_TARGET"; then
10120 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10121else
10122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123for as_dir in $PATH
10124do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10129 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10132 fi
10133done
10134done
10135
10136fi
10137fi
10138NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10139if test -n "$NM_FOR_TARGET"; then
10140 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10141echo "${ECHO_T}$NM_FOR_TARGET" >&6
10142else
10143 echo "$as_me:$LINENO: result: no" >&5
10144echo "${ECHO_T}no" >&6
10145fi
10146
10147 done
10148fi
10149
10150if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10151 for ncn_progname in nm; do
b58b6ee1
DJ
10152 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10153echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10154 if test -x $with_build_time_tools/${ncn_progname}; then
10155 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
10156 echo "$as_me:$LINENO: result: yes" >&5
10157echo "${ECHO_T}yes" >&6
fef3f213
PB
10158 break
10159 else
b58b6ee1
DJ
10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
fef3f213
PB
10162 fi
10163 done
10164fi
10165
10166if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10167 for ncn_progname in nm; do
10168 if test -n "$ncn_target_tool_prefix"; then
10169 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6a33f745 10170set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
10171echo "$as_me:$LINENO: checking for $ac_word" >&5
10172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10173if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 10175else
5fb28bcc
PB
10176 if test -n "$NM_FOR_TARGET"; then
10177 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
a0c92996 10178else
b58b6ee1
DJ
10179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180for as_dir in $PATH
10181do
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10186 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 break 2
10189 fi
10190done
10191done
10192
a0c92996
AC
10193fi
10194fi
b58b6ee1 10195NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
5fb28bcc 10196if test -n "$NM_FOR_TARGET"; then
b58b6ee1
DJ
10197 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10198echo "${ECHO_T}$NM_FOR_TARGET" >&6
a0c92996 10199else
b58b6ee1
DJ
10200 echo "$as_me:$LINENO: result: no" >&5
10201echo "${ECHO_T}no" >&6
a0c92996
AC
10202fi
10203
fef3f213
PB
10204 fi
10205 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10207set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
10208echo "$as_me:$LINENO: checking for $ac_word" >&5
10209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10210if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 10212else
60cfca65
PB
10213 if test -n "$NM_FOR_TARGET"; then
10214 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
a0c92996 10215else
b58b6ee1
DJ
10216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217for as_dir in $PATH
10218do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10223 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10226 fi
10227done
10228done
10229
a0c92996
AC
10230fi
10231fi
b58b6ee1 10232NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
60cfca65 10233if test -n "$NM_FOR_TARGET"; then
b58b6ee1
DJ
10234 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10235echo "${ECHO_T}$NM_FOR_TARGET" >&6
a0c92996 10236else
b58b6ee1
DJ
10237 echo "$as_me:$LINENO: result: no" >&5
10238echo "${ECHO_T}no" >&6
a0c92996 10239fi
b58b6ee1 10240
fef3f213
PB
10241 fi
10242 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10243 done
10244fi
b58b6ee1 10245
60cfca65
PB
10246if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10247 set dummy nm
10248 if test $build = $target ; then
10249 NM_FOR_TARGET="$2"
a0c92996 10250 else
60cfca65 10251 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 10252 fi
d058b81b
MS
10253else
10254 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
a0c92996
AC
10255fi
10256
207258c8
PB
10257else
10258 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
fef3f213
PB
10259fi
10260
10261
10262
10263
10264if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10265 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
10266 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10267echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10268 if test -x $with_build_time_tools/objdump; then
10269 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10270 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
b58b6ee1
DJ
10271 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10272echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
207258c8 10273 else
b58b6ee1
DJ
10274 echo "$as_me:$LINENO: result: no" >&5
10275echo "${ECHO_T}no" >&6
207258c8 10276 fi
fef3f213
PB
10277 elif test $build != $host && test $have_gcc_for_target = yes; then
10278 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d058b81b
MS
10279 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10280 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
fef3f213
PB
10281 fi
10282fi
b58b6ee1 10283if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
10284 # Extract the first word of "objdump", so it can be a program name with args.
10285set dummy objdump; ac_word=$2
b58b6ee1
DJ
10286echo "$as_me:$LINENO: checking for $ac_word" >&5
10287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10288if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 10290else
b58b6ee1
DJ
10291 case $OBJDUMP_FOR_TARGET in
10292 [\\/]* | ?:[\\/]*)
fef3f213
PB
10293 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10294 ;;
fef3f213 10295 *)
b58b6ee1
DJ
10296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297for as_dir in $gcc_cv_tool_dirs
10298do
10299 IFS=$as_save_IFS
10300 test -z "$as_dir" && as_dir=.
10301 for ac_exec_ext in '' $ac_executable_extensions; do
10302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10305 break 2
10306 fi
10307done
10308done
10309
fef3f213
PB
10310 ;;
10311esac
10312fi
b58b6ee1
DJ
10313OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10314
fef3f213 10315if test -n "$OBJDUMP_FOR_TARGET"; then
b58b6ee1
DJ
10316 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10317echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
fef3f213 10318else
b58b6ee1
DJ
10319 echo "$as_me:$LINENO: result: no" >&5
10320echo "${ECHO_T}no" >&6
fef3f213
PB
10321fi
10322
10323fi
10324if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
82026593
AO
10325
10326
10327if test -n "$OBJDUMP_FOR_TARGET"; then
10328 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10329elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10330 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10331fi
10332
10333if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10334 for ncn_progname in objdump; do
10335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10336set dummy ${ncn_progname}; ac_word=$2
10337echo "$as_me:$LINENO: checking for $ac_word" >&5
10338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10339if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10341else
10342 if test -n "$OBJDUMP_FOR_TARGET"; then
10343 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10344else
10345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346for as_dir in $PATH
10347do
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10355 fi
10356done
10357done
10358
10359fi
10360fi
10361OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10362if test -n "$OBJDUMP_FOR_TARGET"; then
10363 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10364echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10365else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368fi
10369
10370 done
10371fi
10372
10373if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10374 for ncn_progname in objdump; do
b58b6ee1
DJ
10375 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10376echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10377 if test -x $with_build_time_tools/${ncn_progname}; then
10378 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
10379 echo "$as_me:$LINENO: result: yes" >&5
10380echo "${ECHO_T}yes" >&6
fef3f213
PB
10381 break
10382 else
b58b6ee1
DJ
10383 echo "$as_me:$LINENO: result: no" >&5
10384echo "${ECHO_T}no" >&6
fef3f213
PB
10385 fi
10386 done
10387fi
10388
10389if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10390 for ncn_progname in objdump; do
10391 if test -n "$ncn_target_tool_prefix"; then
10392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10393set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
10394echo "$as_me:$LINENO: checking for $ac_word" >&5
10395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10396if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
51c8a213
DJ
10398else
10399 if test -n "$OBJDUMP_FOR_TARGET"; then
10400 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10401else
b58b6ee1
DJ
10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403for as_dir in $PATH
10404do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10412 fi
10413done
10414done
10415
51c8a213
DJ
10416fi
10417fi
b58b6ee1 10418OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
51c8a213 10419if test -n "$OBJDUMP_FOR_TARGET"; then
b58b6ee1
DJ
10420 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10421echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
51c8a213 10422else
b58b6ee1
DJ
10423 echo "$as_me:$LINENO: result: no" >&5
10424echo "${ECHO_T}no" >&6
51c8a213
DJ
10425fi
10426
fef3f213
PB
10427 fi
10428 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
51c8a213 10430set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
10431echo "$as_me:$LINENO: checking for $ac_word" >&5
10432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10433if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
51c8a213
DJ
10435else
10436 if test -n "$OBJDUMP_FOR_TARGET"; then
10437 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10438else
b58b6ee1
DJ
10439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440for as_dir in $PATH
10441do
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10449 fi
10450done
10451done
10452
51c8a213
DJ
10453fi
10454fi
b58b6ee1 10455OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
51c8a213 10456if test -n "$OBJDUMP_FOR_TARGET"; then
b58b6ee1
DJ
10457 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10458echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
51c8a213 10459else
b58b6ee1
DJ
10460 echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
51c8a213 10462fi
b58b6ee1 10463
fef3f213
PB
10464 fi
10465 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10466 done
10467fi
b58b6ee1 10468
51c8a213
DJ
10469if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10470 set dummy objdump
10471 if test $build = $target ; then
10472 OBJDUMP_FOR_TARGET="$2"
10473 else
10474 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10475 fi
d058b81b
MS
10476else
10477 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
51c8a213
DJ
10478fi
10479
207258c8
PB
10480else
10481 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
fef3f213
PB
10482fi
10483
10484
10485
10486
10487if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10488 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
10489 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10490echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10491 if test -x $with_build_time_tools/ranlib; then
10492 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10493 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
b58b6ee1
DJ
10494 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10495echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
207258c8 10496 else
b58b6ee1
DJ
10497 echo "$as_me:$LINENO: result: no" >&5
10498echo "${ECHO_T}no" >&6
207258c8 10499 fi
fef3f213
PB
10500 elif test $build != $host && test $have_gcc_for_target = yes; then
10501 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d058b81b
MS
10502 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10503 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
fef3f213
PB
10504 fi
10505fi
b58b6ee1 10506if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
10507 # Extract the first word of "ranlib", so it can be a program name with args.
10508set dummy ranlib; ac_word=$2
b58b6ee1
DJ
10509echo "$as_me:$LINENO: checking for $ac_word" >&5
10510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10511if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 10513else
b58b6ee1
DJ
10514 case $RANLIB_FOR_TARGET in
10515 [\\/]* | ?:[\\/]*)
fef3f213
PB
10516 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10517 ;;
fef3f213 10518 *)
b58b6ee1
DJ
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $gcc_cv_tool_dirs
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10526 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10529 fi
10530done
10531done
10532
fef3f213
PB
10533 ;;
10534esac
10535fi
b58b6ee1
DJ
10536RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10537
fef3f213 10538if test -n "$RANLIB_FOR_TARGET"; then
b58b6ee1
DJ
10539 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10540echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
fef3f213 10541else
b58b6ee1
DJ
10542 echo "$as_me:$LINENO: result: no" >&5
10543echo "${ECHO_T}no" >&6
fef3f213
PB
10544fi
10545
10546fi
10547if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
82026593
AO
10548
10549
10550if test -n "$RANLIB_FOR_TARGET"; then
10551 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10552elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10553 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10554fi
10555
10556if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10557 for ncn_progname in ranlib; do
10558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10559set dummy ${ncn_progname}; ac_word=$2
10560echo "$as_me:$LINENO: checking for $ac_word" >&5
10561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10562if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564else
10565 if test -n "$RANLIB_FOR_TARGET"; then
10566 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10567else
10568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569for as_dir in $PATH
10570do
10571 IFS=$as_save_IFS
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10575 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 break 2
10578 fi
10579done
10580done
10581
10582fi
10583fi
10584RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10585if test -n "$RANLIB_FOR_TARGET"; then
10586 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10587echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10588else
10589 echo "$as_me:$LINENO: result: no" >&5
10590echo "${ECHO_T}no" >&6
10591fi
10592
10593 done
10594fi
10595
10596if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10597 for ncn_progname in ranlib; do
b58b6ee1
DJ
10598 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10599echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10600 if test -x $with_build_time_tools/${ncn_progname}; then
10601 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
10602 echo "$as_me:$LINENO: result: yes" >&5
10603echo "${ECHO_T}yes" >&6
fef3f213
PB
10604 break
10605 else
b58b6ee1
DJ
10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
fef3f213
PB
10608 fi
10609 done
10610fi
10611
10612if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10613 for ncn_progname in ranlib; do
10614 if test -n "$ncn_target_tool_prefix"; then
10615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
51c8a213 10616set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
10617echo "$as_me:$LINENO: checking for $ac_word" >&5
10618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10619if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 10621else
5fb28bcc
PB
10622 if test -n "$RANLIB_FOR_TARGET"; then
10623 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
a0c92996 10624else
b58b6ee1
DJ
10625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626for as_dir in $PATH
10627do
10628 IFS=$as_save_IFS
10629 test -z "$as_dir" && as_dir=.
10630 for ac_exec_ext in '' $ac_executable_extensions; do
10631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10632 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10634 break 2
10635 fi
10636done
10637done
10638
a0c92996
AC
10639fi
10640fi
b58b6ee1 10641RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
5fb28bcc 10642if test -n "$RANLIB_FOR_TARGET"; then
b58b6ee1
DJ
10643 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10644echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
a0c92996 10645else
b58b6ee1
DJ
10646 echo "$as_me:$LINENO: result: no" >&5
10647echo "${ECHO_T}no" >&6
a0c92996
AC
10648fi
10649
fef3f213
PB
10650 fi
10651 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10653set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
10654echo "$as_me:$LINENO: checking for $ac_word" >&5
10655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10656if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 10658else
60cfca65
PB
10659 if test -n "$RANLIB_FOR_TARGET"; then
10660 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
a0c92996 10661else
b58b6ee1
DJ
10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $PATH
10664do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673done
10674done
10675
a0c92996
AC
10676fi
10677fi
b58b6ee1 10678RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
60cfca65 10679if test -n "$RANLIB_FOR_TARGET"; then
b58b6ee1
DJ
10680 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10681echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
a0c92996 10682else
b58b6ee1
DJ
10683 echo "$as_me:$LINENO: result: no" >&5
10684echo "${ECHO_T}no" >&6
a0c92996 10685fi
b58b6ee1 10686
fef3f213
PB
10687 fi
10688 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10689 done
10690fi
b58b6ee1 10691
fef3f213
PB
10692if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10693 set dummy ranlib
10694 if test $build = $target ; then
10695 RANLIB_FOR_TARGET="$2"
10696 else
10697 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 10698 fi
d058b81b
MS
10699else
10700 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
fef3f213 10701fi
60cfca65 10702
207258c8
PB
10703else
10704 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
a0c92996
AC
10705fi
10706
fef3f213
PB
10707
10708
10709
10710if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10711 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
10712 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10713echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10714 if test -x $with_build_time_tools/strip; then
10715 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10716 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
b58b6ee1
DJ
10717 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10718echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
207258c8 10719 else
b58b6ee1
DJ
10720 echo "$as_me:$LINENO: result: no" >&5
10721echo "${ECHO_T}no" >&6
207258c8 10722 fi
fef3f213
PB
10723 elif test $build != $host && test $have_gcc_for_target = yes; then
10724 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d058b81b
MS
10725 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10726 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
fef3f213
PB
10727 fi
10728fi
b58b6ee1 10729if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
10730 # Extract the first word of "strip", so it can be a program name with args.
10731set dummy strip; ac_word=$2
b58b6ee1
DJ
10732echo "$as_me:$LINENO: checking for $ac_word" >&5
10733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10734if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 10736else
b58b6ee1
DJ
10737 case $STRIP_FOR_TARGET in
10738 [\\/]* | ?:[\\/]*)
fef3f213
PB
10739 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10740 ;;
fef3f213 10741 *)
b58b6ee1
DJ
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743for as_dir in $gcc_cv_tool_dirs
10744do
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 break 2
10752 fi
10753done
10754done
10755
fef3f213
PB
10756 ;;
10757esac
10758fi
b58b6ee1
DJ
10759STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10760
fef3f213 10761if test -n "$STRIP_FOR_TARGET"; then
b58b6ee1
DJ
10762 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10763echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
fef3f213 10764else
b58b6ee1
DJ
10765 echo "$as_me:$LINENO: result: no" >&5
10766echo "${ECHO_T}no" >&6
fef3f213
PB
10767fi
10768
10769fi
10770if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
82026593
AO
10771
10772
10773if test -n "$STRIP_FOR_TARGET"; then
10774 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10775elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10776 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10777fi
10778
10779if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10780 for ncn_progname in strip; do
10781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10782set dummy ${ncn_progname}; ac_word=$2
10783echo "$as_me:$LINENO: checking for $ac_word" >&5
10784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10785if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787else
10788 if test -n "$STRIP_FOR_TARGET"; then
10789 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10790else
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802done
10803done
10804
10805fi
10806fi
10807STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10808if test -n "$STRIP_FOR_TARGET"; then
10809 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10810echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10811else
10812 echo "$as_me:$LINENO: result: no" >&5
10813echo "${ECHO_T}no" >&6
10814fi
10815
10816 done
10817fi
10818
10819if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10820 for ncn_progname in strip; do
b58b6ee1
DJ
10821 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10822echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10823 if test -x $with_build_time_tools/${ncn_progname}; then
10824 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
10825 echo "$as_me:$LINENO: result: yes" >&5
10826echo "${ECHO_T}yes" >&6
fef3f213
PB
10827 break
10828 else
b58b6ee1
DJ
10829 echo "$as_me:$LINENO: result: no" >&5
10830echo "${ECHO_T}no" >&6
fef3f213
PB
10831 fi
10832 done
10833fi
10834
10835if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10836 for ncn_progname in strip; do
10837 if test -n "$ncn_target_tool_prefix"; then
10838 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6a33f745 10839set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
10840echo "$as_me:$LINENO: checking for $ac_word" >&5
10841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10842if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
6a33f745
GK
10844else
10845 if test -n "$STRIP_FOR_TARGET"; then
10846 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
b58b6ee1
DJ
10847else
10848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10849for as_dir in $PATH
10850do
10851 IFS=$as_save_IFS
10852 test -z "$as_dir" && as_dir=.
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10855 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 break 2
10858 fi
10859done
10860done
10861
6a33f745
GK
10862fi
10863fi
b58b6ee1 10864STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
6a33f745 10865if test -n "$STRIP_FOR_TARGET"; then
b58b6ee1
DJ
10866 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10867echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
6a33f745 10868else
b58b6ee1
DJ
10869 echo "$as_me:$LINENO: result: no" >&5
10870echo "${ECHO_T}no" >&6
6a33f745
GK
10871fi
10872
fef3f213
PB
10873 fi
10874 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6a33f745 10876set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
10877echo "$as_me:$LINENO: checking for $ac_word" >&5
10878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10879if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
6a33f745
GK
10881else
10882 if test -n "$STRIP_FOR_TARGET"; then
10883 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10884else
b58b6ee1
DJ
10885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886for as_dir in $PATH
10887do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10895 fi
10896done
10897done
10898
6a33f745
GK
10899fi
10900fi
b58b6ee1 10901STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
6a33f745 10902if test -n "$STRIP_FOR_TARGET"; then
b58b6ee1
DJ
10903 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10904echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
6a33f745 10905else
b58b6ee1
DJ
10906 echo "$as_me:$LINENO: result: no" >&5
10907echo "${ECHO_T}no" >&6
6a33f745 10908fi
b58b6ee1 10909
fef3f213
PB
10910 fi
10911 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10912 done
10913fi
b58b6ee1 10914
6a33f745
GK
10915if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10916 set dummy strip
10917 if test $build = $target ; then
10918 STRIP_FOR_TARGET="$2"
10919 else
10920 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10921 fi
d058b81b
MS
10922else
10923 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6a33f745
GK
10924fi
10925
207258c8
PB
10926else
10927 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
fef3f213
PB
10928fi
10929
10930
10931
10932
10933if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10934 if test -n "$with_build_time_tools"; then
b58b6ee1
DJ
10935 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10936echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
10937 if test -x $with_build_time_tools/windres; then
10938 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10939 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
b58b6ee1
DJ
10940 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10941echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
207258c8 10942 else
b58b6ee1
DJ
10943 echo "$as_me:$LINENO: result: no" >&5
10944echo "${ECHO_T}no" >&6
207258c8 10945 fi
fef3f213
PB
10946 elif test $build != $host && test $have_gcc_for_target = yes; then
10947 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d058b81b
MS
10948 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10949 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
fef3f213
PB
10950 fi
10951fi
b58b6ee1 10952if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
10953 # Extract the first word of "windres", so it can be a program name with args.
10954set dummy windres; ac_word=$2
b58b6ee1
DJ
10955echo "$as_me:$LINENO: checking for $ac_word" >&5
10956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10957if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
fef3f213 10959else
b58b6ee1
DJ
10960 case $WINDRES_FOR_TARGET in
10961 [\\/]* | ?:[\\/]*)
fef3f213
PB
10962 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10963 ;;
fef3f213 10964 *)
b58b6ee1
DJ
10965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966for as_dir in $gcc_cv_tool_dirs
10967do
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10972 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10975 fi
10976done
10977done
10978
fef3f213
PB
10979 ;;
10980esac
10981fi
b58b6ee1
DJ
10982WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10983
fef3f213 10984if test -n "$WINDRES_FOR_TARGET"; then
b58b6ee1
DJ
10985 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10986echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
fef3f213 10987else
b58b6ee1
DJ
10988 echo "$as_me:$LINENO: result: no" >&5
10989echo "${ECHO_T}no" >&6
fef3f213
PB
10990fi
10991
10992fi
10993if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
82026593
AO
10994
10995
10996if test -n "$WINDRES_FOR_TARGET"; then
10997 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10998elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10999 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11000fi
11001
11002if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11003 for ncn_progname in windres; do
11004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11005set dummy ${ncn_progname}; ac_word=$2
11006echo "$as_me:$LINENO: checking for $ac_word" >&5
11007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11008if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11010else
11011 if test -n "$WINDRES_FOR_TARGET"; then
11012 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11013else
11014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015for as_dir in $PATH
11016do
11017 IFS=$as_save_IFS
11018 test -z "$as_dir" && as_dir=.
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11023 break 2
11024 fi
11025done
11026done
11027
11028fi
11029fi
11030WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11031if test -n "$WINDRES_FOR_TARGET"; then
11032 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11033echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11034else
11035 echo "$as_me:$LINENO: result: no" >&5
11036echo "${ECHO_T}no" >&6
11037fi
11038
11039 done
11040fi
11041
11042if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11043 for ncn_progname in windres; do
b58b6ee1
DJ
11044 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11045echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
207258c8
PB
11046 if test -x $with_build_time_tools/${ncn_progname}; then
11047 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
b58b6ee1
DJ
11048 echo "$as_me:$LINENO: result: yes" >&5
11049echo "${ECHO_T}yes" >&6
fef3f213
PB
11050 break
11051 else
b58b6ee1
DJ
11052 echo "$as_me:$LINENO: result: no" >&5
11053echo "${ECHO_T}no" >&6
fef3f213
PB
11054 fi
11055 done
11056fi
11057
11058if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11059 for ncn_progname in windres; do
11060 if test -n "$ncn_target_tool_prefix"; then
11061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 11062set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
b58b6ee1
DJ
11063echo "$as_me:$LINENO: checking for $ac_word" >&5
11064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11065if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 11067else
5fb28bcc
PB
11068 if test -n "$WINDRES_FOR_TARGET"; then
11069 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
a0c92996 11070else
b58b6ee1
DJ
11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11078 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082done
11083done
11084
a0c92996
AC
11085fi
11086fi
b58b6ee1 11087WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
5fb28bcc 11088if test -n "$WINDRES_FOR_TARGET"; then
b58b6ee1
DJ
11089 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11090echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
a0c92996 11091else
b58b6ee1
DJ
11092 echo "$as_me:$LINENO: result: no" >&5
11093echo "${ECHO_T}no" >&6
a0c92996
AC
11094fi
11095
fef3f213
PB
11096 fi
11097 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 11099set dummy ${ncn_progname}; ac_word=$2
b58b6ee1
DJ
11100echo "$as_me:$LINENO: checking for $ac_word" >&5
11101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11102if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
a0c92996 11104else
60cfca65
PB
11105 if test -n "$WINDRES_FOR_TARGET"; then
11106 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
a0c92996 11107else
b58b6ee1
DJ
11108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109for as_dir in $PATH
11110do
11111 IFS=$as_save_IFS
11112 test -z "$as_dir" && as_dir=.
11113 for ac_exec_ext in '' $ac_executable_extensions; do
11114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11115 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 break 2
11118 fi
11119done
11120done
11121
a0c92996
AC
11122fi
11123fi
b58b6ee1 11124WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
60cfca65 11125if test -n "$WINDRES_FOR_TARGET"; then
b58b6ee1
DJ
11126 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11127echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
a0c92996 11128else
b58b6ee1
DJ
11129 echo "$as_me:$LINENO: result: no" >&5
11130echo "${ECHO_T}no" >&6
a0c92996 11131fi
b58b6ee1 11132
fef3f213
PB
11133 fi
11134 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11135 done
11136fi
b58b6ee1 11137
60cfca65
PB
11138if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11139 set dummy windres
11140 if test $build = $target ; then
11141 WINDRES_FOR_TARGET="$2"
a0c92996 11142 else
60cfca65 11143 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 11144 fi
d058b81b
MS
11145else
11146 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
a0c92996
AC
11147fi
11148
207258c8
PB
11149else
11150 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
fef3f213
PB
11151fi
11152
712e2a32 11153
bffcbe34
NC
11154
11155
11156if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11157 if test -n "$with_build_time_tools"; then
11158 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11159echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11160 if test -x $with_build_time_tools/windmc; then
11161 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11162 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11163 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11164echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11165 else
11166 echo "$as_me:$LINENO: result: no" >&5
11167echo "${ECHO_T}no" >&6
11168 fi
11169 elif test $build != $host && test $have_gcc_for_target = yes; then
11170 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11171 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11172 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11173 fi
11174fi
11175if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11176 # Extract the first word of "windmc", so it can be a program name with args.
11177set dummy windmc; ac_word=$2
11178echo "$as_me:$LINENO: checking for $ac_word" >&5
11179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11180if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182else
11183 case $WINDMC_FOR_TARGET in
11184 [\\/]* | ?:[\\/]*)
11185 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11186 ;;
11187 *)
11188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189for as_dir in $gcc_cv_tool_dirs
11190do
11191 IFS=$as_save_IFS
11192 test -z "$as_dir" && as_dir=.
11193 for ac_exec_ext in '' $ac_executable_extensions; do
11194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11195 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 break 2
11198 fi
11199done
11200done
11201
11202 ;;
11203esac
11204fi
11205WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11206
11207if test -n "$WINDMC_FOR_TARGET"; then
11208 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11209echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11210else
11211 echo "$as_me:$LINENO: result: no" >&5
11212echo "${ECHO_T}no" >&6
11213fi
11214
11215fi
11216if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11217
11218
11219if test -n "$WINDMC_FOR_TARGET"; then
11220 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11221elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11222 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11223fi
11224
11225if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11226 for ncn_progname in windmc; do
11227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11228set dummy ${ncn_progname}; ac_word=$2
11229echo "$as_me:$LINENO: checking for $ac_word" >&5
11230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11231if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 if test -n "$WINDMC_FOR_TARGET"; then
11235 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11236else
11237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238for as_dir in $PATH
11239do
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11246 break 2
11247 fi
11248done
11249done
11250
11251fi
11252fi
11253WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11254if test -n "$WINDMC_FOR_TARGET"; then
11255 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11256echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11257else
11258 echo "$as_me:$LINENO: result: no" >&5
11259echo "${ECHO_T}no" >&6
11260fi
11261
11262 done
11263fi
11264
11265if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11266 for ncn_progname in windmc; do
11267 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11268echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11269 if test -x $with_build_time_tools/${ncn_progname}; then
11270 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11271 echo "$as_me:$LINENO: result: yes" >&5
11272echo "${ECHO_T}yes" >&6
11273 break
11274 else
11275 echo "$as_me:$LINENO: result: no" >&5
11276echo "${ECHO_T}no" >&6
11277 fi
11278 done
11279fi
11280
11281if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11282 for ncn_progname in windmc; do
11283 if test -n "$ncn_target_tool_prefix"; then
11284 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11285set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11286echo "$as_me:$LINENO: checking for $ac_word" >&5
11287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11288if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 if test -n "$WINDMC_FOR_TARGET"; then
11292 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11293else
11294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295for as_dir in $PATH
11296do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11304 fi
11305done
11306done
11307
11308fi
11309fi
11310WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11311if test -n "$WINDMC_FOR_TARGET"; then
11312 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11313echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11314else
11315 echo "$as_me:$LINENO: result: no" >&5
11316echo "${ECHO_T}no" >&6
11317fi
11318
11319 fi
11320 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11322set dummy ${ncn_progname}; ac_word=$2
11323echo "$as_me:$LINENO: checking for $ac_word" >&5
11324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11325if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 if test -n "$WINDMC_FOR_TARGET"; then
11329 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11341 fi
11342done
11343done
11344
11345fi
11346fi
11347WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11348if test -n "$WINDMC_FOR_TARGET"; then
11349 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11350echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11351else
11352 echo "$as_me:$LINENO: result: no" >&5
11353echo "${ECHO_T}no" >&6
11354fi
11355
11356 fi
11357 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11358 done
11359fi
11360
11361if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11362 set dummy windmc
11363 if test $build = $target ; then
11364 WINDMC_FOR_TARGET="$2"
11365 else
11366 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11367 fi
11368else
11369 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11370fi
11371
11372else
11373 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11374fi
11375
11376
a7dc05b5
PB
11377RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11378
b58b6ee1
DJ
11379echo "$as_me:$LINENO: checking where to find the target ar" >&5
11380echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
a7dc05b5 11381if test "x${build}" != "x${host}" ; then
fef3f213
PB
11382 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11383 # We already found the complete path
7a81a717
AS
11384 ac_dir=`dirname $AR_FOR_TARGET`
11385 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11386echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11387 else
11388 # Canadian cross, just use what we found
b58b6ee1
DJ
11389 echo "$as_me:$LINENO: result: pre-installed" >&5
11390echo "${ECHO_T}pre-installed" >&6
fef3f213 11391 fi
a7dc05b5
PB
11392else
11393 ok=yes
11394 case " ${configdirs} " in
11395 *" binutils "*) ;;
11396 *) ok=no ;;
11397 esac
b58b6ee1 11398
a7dc05b5
PB
11399 if test $ok = yes; then
11400 # An in-tree tool is available and we can use it
11401 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
b58b6ee1
DJ
11402 echo "$as_me:$LINENO: result: just compiled" >&5
11403echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11404 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11405 # We already found the complete path
7a81a717
AS
11406 ac_dir=`dirname $AR_FOR_TARGET`
11407 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11408echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11409 elif test "x$target" = "x$host"; then
11410 # We can use an host tool
11411 AR_FOR_TARGET='$(AR)'
b58b6ee1
DJ
11412 echo "$as_me:$LINENO: result: host tool" >&5
11413echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11414 else
11415 # We need a cross tool
b58b6ee1
DJ
11416 echo "$as_me:$LINENO: result: pre-installed" >&5
11417echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11418 fi
11419fi
42f55f77 11420
b58b6ee1
DJ
11421echo "$as_me:$LINENO: checking where to find the target as" >&5
11422echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
a7dc05b5 11423if test "x${build}" != "x${host}" ; then
fef3f213
PB
11424 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11425 # We already found the complete path
7a81a717
AS
11426 ac_dir=`dirname $AS_FOR_TARGET`
11427 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11428echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11429 else
11430 # Canadian cross, just use what we found
b58b6ee1
DJ
11431 echo "$as_me:$LINENO: result: pre-installed" >&5
11432echo "${ECHO_T}pre-installed" >&6
fef3f213 11433 fi
a7dc05b5
PB
11434else
11435 ok=yes
11436 case " ${configdirs} " in
11437 *" gas "*) ;;
11438 *) ok=no ;;
11439 esac
b58b6ee1 11440
a7dc05b5
PB
11441 if test $ok = yes; then
11442 # An in-tree tool is available and we can use it
11443 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
b58b6ee1
DJ
11444 echo "$as_me:$LINENO: result: just compiled" >&5
11445echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11446 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11447 # We already found the complete path
7a81a717
AS
11448 ac_dir=`dirname $AS_FOR_TARGET`
11449 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11450echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11451 elif test "x$target" = "x$host"; then
11452 # We can use an host tool
11453 AS_FOR_TARGET='$(AS)'
b58b6ee1
DJ
11454 echo "$as_me:$LINENO: result: host tool" >&5
11455echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11456 else
11457 # We need a cross tool
b58b6ee1
DJ
11458 echo "$as_me:$LINENO: result: pre-installed" >&5
11459echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11460 fi
11461fi
42f55f77 11462
b58b6ee1
DJ
11463echo "$as_me:$LINENO: checking where to find the target cc" >&5
11464echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
a7dc05b5 11465if test "x${build}" != "x${host}" ; then
fef3f213
PB
11466 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11467 # We already found the complete path
7a81a717
AS
11468 ac_dir=`dirname $CC_FOR_TARGET`
11469 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11470echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11471 else
11472 # Canadian cross, just use what we found
b58b6ee1
DJ
11473 echo "$as_me:$LINENO: result: pre-installed" >&5
11474echo "${ECHO_T}pre-installed" >&6
fef3f213 11475 fi
a7dc05b5
PB
11476else
11477 ok=yes
11478 case " ${configdirs} " in
11479 *" gcc "*) ;;
11480 *) ok=no ;;
11481 esac
b58b6ee1 11482
a7dc05b5
PB
11483 if test $ok = yes; then
11484 # An in-tree tool is available and we can use it
11485 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
b58b6ee1
DJ
11486 echo "$as_me:$LINENO: result: just compiled" >&5
11487echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11488 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11489 # We already found the complete path
7a81a717
AS
11490 ac_dir=`dirname $CC_FOR_TARGET`
11491 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11492echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11493 elif test "x$target" = "x$host"; then
11494 # We can use an host tool
11495 CC_FOR_TARGET='$(CC)'
b58b6ee1
DJ
11496 echo "$as_me:$LINENO: result: host tool" >&5
11497echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11498 else
11499 # We need a cross tool
b58b6ee1
DJ
11500 echo "$as_me:$LINENO: result: pre-installed" >&5
11501echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11502 fi
11503fi
42f55f77 11504
b58b6ee1
DJ
11505echo "$as_me:$LINENO: checking where to find the target c++" >&5
11506echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
a7dc05b5 11507if test "x${build}" != "x${host}" ; then
fef3f213
PB
11508 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11509 # We already found the complete path
7a81a717
AS
11510 ac_dir=`dirname $CXX_FOR_TARGET`
11511 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11512echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11513 else
11514 # Canadian cross, just use what we found
b58b6ee1
DJ
11515 echo "$as_me:$LINENO: result: pre-installed" >&5
11516echo "${ECHO_T}pre-installed" >&6
fef3f213 11517 fi
a7dc05b5
PB
11518else
11519 ok=yes
11520 case " ${configdirs} " in
11521 *" gcc "*) ;;
11522 *) ok=no ;;
11523 esac
11524 case ,${enable_languages}, in
11525 *,c++,*) ;;
11526 *) ok=no ;;
11527 esac
11528 if test $ok = yes; then
11529 # An in-tree tool is available and we can use it
11530 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `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'
b58b6ee1
DJ
11531 echo "$as_me:$LINENO: result: just compiled" >&5
11532echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11533 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11534 # We already found the complete path
7a81a717
AS
11535 ac_dir=`dirname $CXX_FOR_TARGET`
11536 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11537echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11538 elif test "x$target" = "x$host"; then
11539 # We can use an host tool
11540 CXX_FOR_TARGET='$(CXX)'
b58b6ee1
DJ
11541 echo "$as_me:$LINENO: result: host tool" >&5
11542echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11543 else
11544 # We need a cross tool
b58b6ee1
DJ
11545 echo "$as_me:$LINENO: result: pre-installed" >&5
11546echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11547 fi
11548fi
42f55f77 11549
b58b6ee1
DJ
11550echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11551echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
a7dc05b5 11552if test "x${build}" != "x${host}" ; then
fef3f213
PB
11553 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11554 # We already found the complete path
7a81a717
AS
11555 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11556 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11557echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11558 else
11559 # Canadian cross, just use what we found
b58b6ee1
DJ
11560 echo "$as_me:$LINENO: result: pre-installed" >&5
11561echo "${ECHO_T}pre-installed" >&6
fef3f213 11562 fi
a7dc05b5
PB
11563else
11564 ok=yes
11565 case " ${configdirs} " in
11566 *" gcc "*) ;;
11567 *) ok=no ;;
11568 esac
11569 case ,${enable_languages}, in
11570 *,c++,*) ;;
11571 *) ok=no ;;
11572 esac
11573 if test $ok = yes; then
11574 # An in-tree tool is available and we can use it
11575 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
b58b6ee1
DJ
11576 echo "$as_me:$LINENO: result: just compiled" >&5
11577echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11578 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11579 # We already found the complete path
7a81a717
AS
11580 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11581 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11582echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11583 elif test "x$target" = "x$host"; then
11584 # We can use an host tool
11585 RAW_CXX_FOR_TARGET='$(CXX)'
b58b6ee1
DJ
11586 echo "$as_me:$LINENO: result: host tool" >&5
11587echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11588 else
11589 # We need a cross tool
b58b6ee1
DJ
11590 echo "$as_me:$LINENO: result: pre-installed" >&5
11591echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11592 fi
11593fi
42f55f77 11594
b58b6ee1
DJ
11595echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11596echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
a7dc05b5 11597if test "x${build}" != "x${host}" ; then
fef3f213
PB
11598 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11599 # We already found the complete path
7a81a717
AS
11600 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11601 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11602echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11603 else
11604 # Canadian cross, just use what we found
b58b6ee1
DJ
11605 echo "$as_me:$LINENO: result: pre-installed" >&5
11606echo "${ECHO_T}pre-installed" >&6
fef3f213 11607 fi
a7dc05b5
PB
11608else
11609 ok=yes
11610 case " ${configdirs} " in
11611 *" binutils "*) ;;
11612 *) ok=no ;;
11613 esac
b58b6ee1 11614
a7dc05b5
PB
11615 if test $ok = yes; then
11616 # An in-tree tool is available and we can use it
11617 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
b58b6ee1
DJ
11618 echo "$as_me:$LINENO: result: just compiled" >&5
11619echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11620 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11621 # We already found the complete path
7a81a717
AS
11622 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11623 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11624echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11625 elif test "x$target" = "x$host"; then
11626 # We can use an host tool
11627 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
b58b6ee1
DJ
11628 echo "$as_me:$LINENO: result: host tool" >&5
11629echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11630 else
11631 # We need a cross tool
b58b6ee1
DJ
11632 echo "$as_me:$LINENO: result: pre-installed" >&5
11633echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11634 fi
11635fi
42f55f77 11636
b58b6ee1
DJ
11637echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11638echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
a7dc05b5 11639if test "x${build}" != "x${host}" ; then
fef3f213
PB
11640 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11641 # We already found the complete path
7a81a717
AS
11642 ac_dir=`dirname $GCC_FOR_TARGET`
11643 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11644echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11645 else
11646 # Canadian cross, just use what we found
b58b6ee1
DJ
11647 echo "$as_me:$LINENO: result: pre-installed" >&5
11648echo "${ECHO_T}pre-installed" >&6
fef3f213 11649 fi
a7dc05b5
PB
11650else
11651 ok=yes
11652 case " ${configdirs} " in
11653 *" gcc "*) ;;
11654 *) ok=no ;;
11655 esac
b58b6ee1 11656
a7dc05b5
PB
11657 if test $ok = yes; then
11658 # An in-tree tool is available and we can use it
11659 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
b58b6ee1
DJ
11660 echo "$as_me:$LINENO: result: just compiled" >&5
11661echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11662 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11663 # We already found the complete path
7a81a717
AS
11664 ac_dir=`dirname $GCC_FOR_TARGET`
11665 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11666echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11667 elif test "x$target" = "x$host"; then
11668 # We can use an host tool
11669 GCC_FOR_TARGET='$()'
b58b6ee1
DJ
11670 echo "$as_me:$LINENO: result: host tool" >&5
11671echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11672 else
11673 # We need a cross tool
b58b6ee1
DJ
11674 echo "$as_me:$LINENO: result: pre-installed" >&5
11675echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11676 fi
11677fi
42f55f77 11678
b58b6ee1
DJ
11679echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11680echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
a7dc05b5 11681if test "x${build}" != "x${host}" ; then
fef3f213
PB
11682 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11683 # We already found the complete path
7a81a717
AS
11684 ac_dir=`dirname $GCJ_FOR_TARGET`
11685 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11686echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11687 else
11688 # Canadian cross, just use what we found
b58b6ee1
DJ
11689 echo "$as_me:$LINENO: result: pre-installed" >&5
11690echo "${ECHO_T}pre-installed" >&6
fef3f213 11691 fi
a7dc05b5
PB
11692else
11693 ok=yes
11694 case " ${configdirs} " in
11695 *" gcc "*) ;;
11696 *) ok=no ;;
11697 esac
11698 case ,${enable_languages}, in
11699 *,java,*) ;;
11700 *) ok=no ;;
11701 esac
11702 if test $ok = yes; then
11703 # An in-tree tool is available and we can use it
11704 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
b58b6ee1
DJ
11705 echo "$as_me:$LINENO: result: just compiled" >&5
11706echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11707 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11708 # We already found the complete path
7a81a717
AS
11709 ac_dir=`dirname $GCJ_FOR_TARGET`
11710 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11711echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11712 elif test "x$target" = "x$host"; then
11713 # We can use an host tool
11714 GCJ_FOR_TARGET='$(GCJ)'
b58b6ee1
DJ
11715 echo "$as_me:$LINENO: result: host tool" >&5
11716echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11717 else
11718 # We need a cross tool
b58b6ee1
DJ
11719 echo "$as_me:$LINENO: result: pre-installed" >&5
11720echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11721 fi
11722fi
42f55f77 11723
b58b6ee1
DJ
11724echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11725echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
a7dc05b5 11726if test "x${build}" != "x${host}" ; then
fef3f213
PB
11727 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11728 # We already found the complete path
7a81a717
AS
11729 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11730 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11731echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11732 else
11733 # Canadian cross, just use what we found
b58b6ee1
DJ
11734 echo "$as_me:$LINENO: result: pre-installed" >&5
11735echo "${ECHO_T}pre-installed" >&6
fef3f213 11736 fi
a7dc05b5
PB
11737else
11738 ok=yes
11739 case " ${configdirs} " in
11740 *" gcc "*) ;;
11741 *) ok=no ;;
11742 esac
11743 case ,${enable_languages}, in
11744 *,fortran,*) ;;
11745 *) ok=no ;;
11746 esac
11747 if test $ok = yes; then
11748 # An in-tree tool is available and we can use it
11749 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
b58b6ee1
DJ
11750 echo "$as_me:$LINENO: result: just compiled" >&5
11751echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11752 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11753 # We already found the complete path
7a81a717
AS
11754 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11755 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11756echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11757 elif test "x$target" = "x$host"; then
11758 # We can use an host tool
11759 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
b58b6ee1
DJ
11760 echo "$as_me:$LINENO: result: host tool" >&5
11761echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11762 else
11763 # We need a cross tool
b58b6ee1
DJ
11764 echo "$as_me:$LINENO: result: pre-installed" >&5
11765echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11766 fi
11767fi
42f55f77 11768
b58b6ee1
DJ
11769echo "$as_me:$LINENO: checking where to find the target ld" >&5
11770echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
a7dc05b5 11771if test "x${build}" != "x${host}" ; then
fef3f213
PB
11772 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11773 # We already found the complete path
7a81a717
AS
11774 ac_dir=`dirname $LD_FOR_TARGET`
11775 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11776echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11777 else
11778 # Canadian cross, just use what we found
b58b6ee1
DJ
11779 echo "$as_me:$LINENO: result: pre-installed" >&5
11780echo "${ECHO_T}pre-installed" >&6
fef3f213 11781 fi
a7dc05b5
PB
11782else
11783 ok=yes
11784 case " ${configdirs} " in
11785 *" ld "*) ;;
11786 *) ok=no ;;
11787 esac
b58b6ee1 11788
a7dc05b5
PB
11789 if test $ok = yes; then
11790 # An in-tree tool is available and we can use it
11791 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
b58b6ee1
DJ
11792 echo "$as_me:$LINENO: result: just compiled" >&5
11793echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11794 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11795 # We already found the complete path
7a81a717
AS
11796 ac_dir=`dirname $LD_FOR_TARGET`
11797 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11798echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11799 elif test "x$target" = "x$host"; then
11800 # We can use an host tool
11801 LD_FOR_TARGET='$(LD)'
b58b6ee1
DJ
11802 echo "$as_me:$LINENO: result: host tool" >&5
11803echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11804 else
11805 # We need a cross tool
b58b6ee1
DJ
11806 echo "$as_me:$LINENO: result: pre-installed" >&5
11807echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11808 fi
11809fi
42f55f77 11810
b58b6ee1
DJ
11811echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11812echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
a7dc05b5 11813if test "x${build}" != "x${host}" ; then
fef3f213
PB
11814 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11815 # We already found the complete path
7a81a717
AS
11816 ac_dir=`dirname $LIPO_FOR_TARGET`
11817 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11818echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11819 else
11820 # Canadian cross, just use what we found
b58b6ee1
DJ
11821 echo "$as_me:$LINENO: result: pre-installed" >&5
11822echo "${ECHO_T}pre-installed" >&6
fef3f213 11823 fi
a7dc05b5 11824else
fef3f213
PB
11825 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11826 # We already found the complete path
7a81a717
AS
11827 ac_dir=`dirname $LIPO_FOR_TARGET`
11828 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11829echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213 11830 elif test "x$target" = "x$host"; then
a7dc05b5
PB
11831 # We can use an host tool
11832 LIPO_FOR_TARGET='$(LIPO)'
b58b6ee1
DJ
11833 echo "$as_me:$LINENO: result: host tool" >&5
11834echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11835 else
11836 # We need a cross tool
b58b6ee1
DJ
11837 echo "$as_me:$LINENO: result: pre-installed" >&5
11838echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11839 fi
11840fi
42f55f77 11841
b58b6ee1
DJ
11842echo "$as_me:$LINENO: checking where to find the target nm" >&5
11843echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
a7dc05b5 11844if test "x${build}" != "x${host}" ; then
fef3f213
PB
11845 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11846 # We already found the complete path
7a81a717
AS
11847 ac_dir=`dirname $NM_FOR_TARGET`
11848 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11849echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11850 else
11851 # Canadian cross, just use what we found
b58b6ee1
DJ
11852 echo "$as_me:$LINENO: result: pre-installed" >&5
11853echo "${ECHO_T}pre-installed" >&6
fef3f213 11854 fi
a7dc05b5
PB
11855else
11856 ok=yes
11857 case " ${configdirs} " in
11858 *" binutils "*) ;;
11859 *) ok=no ;;
11860 esac
b58b6ee1 11861
a7dc05b5
PB
11862 if test $ok = yes; then
11863 # An in-tree tool is available and we can use it
11864 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
b58b6ee1
DJ
11865 echo "$as_me:$LINENO: result: just compiled" >&5
11866echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11867 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11868 # We already found the complete path
7a81a717
AS
11869 ac_dir=`dirname $NM_FOR_TARGET`
11870 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11871echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11872 elif test "x$target" = "x$host"; then
11873 # We can use an host tool
11874 NM_FOR_TARGET='$(NM)'
b58b6ee1
DJ
11875 echo "$as_me:$LINENO: result: host tool" >&5
11876echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11877 else
11878 # We need a cross tool
b58b6ee1
DJ
11879 echo "$as_me:$LINENO: result: pre-installed" >&5
11880echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11881 fi
11882fi
42f55f77 11883
b58b6ee1
DJ
11884echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11885echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
a7dc05b5 11886if test "x${build}" != "x${host}" ; then
fef3f213
PB
11887 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11888 # We already found the complete path
7a81a717
AS
11889 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11890 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11891echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11892 else
11893 # Canadian cross, just use what we found
b58b6ee1
DJ
11894 echo "$as_me:$LINENO: result: pre-installed" >&5
11895echo "${ECHO_T}pre-installed" >&6
fef3f213 11896 fi
a7dc05b5
PB
11897else
11898 ok=yes
11899 case " ${configdirs} " in
11900 *" binutils "*) ;;
11901 *) ok=no ;;
11902 esac
b58b6ee1 11903
a7dc05b5
PB
11904 if test $ok = yes; then
11905 # An in-tree tool is available and we can use it
11906 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
b58b6ee1
DJ
11907 echo "$as_me:$LINENO: result: just compiled" >&5
11908echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11909 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11910 # We already found the complete path
7a81a717
AS
11911 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11912 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11913echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11914 elif test "x$target" = "x$host"; then
11915 # We can use an host tool
11916 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
b58b6ee1
DJ
11917 echo "$as_me:$LINENO: result: host tool" >&5
11918echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11919 else
11920 # We need a cross tool
b58b6ee1
DJ
11921 echo "$as_me:$LINENO: result: pre-installed" >&5
11922echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11923 fi
11924fi
42f55f77 11925
b58b6ee1
DJ
11926echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11927echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
a7dc05b5 11928if test "x${build}" != "x${host}" ; then
fef3f213
PB
11929 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11930 # We already found the complete path
7a81a717
AS
11931 ac_dir=`dirname $RANLIB_FOR_TARGET`
11932 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11933echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11934 else
11935 # Canadian cross, just use what we found
b58b6ee1
DJ
11936 echo "$as_me:$LINENO: result: pre-installed" >&5
11937echo "${ECHO_T}pre-installed" >&6
fef3f213 11938 fi
a7dc05b5
PB
11939else
11940 ok=yes
11941 case " ${configdirs} " in
11942 *" binutils "*) ;;
11943 *) ok=no ;;
11944 esac
b58b6ee1 11945
a7dc05b5
PB
11946 if test $ok = yes; then
11947 # An in-tree tool is available and we can use it
11948 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
b58b6ee1
DJ
11949 echo "$as_me:$LINENO: result: just compiled" >&5
11950echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11951 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11952 # We already found the complete path
7a81a717
AS
11953 ac_dir=`dirname $RANLIB_FOR_TARGET`
11954 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11955echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11956 elif test "x$target" = "x$host"; then
11957 # We can use an host tool
11958 RANLIB_FOR_TARGET='$(RANLIB)'
b58b6ee1
DJ
11959 echo "$as_me:$LINENO: result: host tool" >&5
11960echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
11961 else
11962 # We need a cross tool
b58b6ee1
DJ
11963 echo "$as_me:$LINENO: result: pre-installed" >&5
11964echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
11965 fi
11966fi
42f55f77 11967
b58b6ee1
DJ
11968echo "$as_me:$LINENO: checking where to find the target strip" >&5
11969echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
a7dc05b5 11970if test "x${build}" != "x${host}" ; then
fef3f213
PB
11971 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11972 # We already found the complete path
7a81a717
AS
11973 ac_dir=`dirname $STRIP_FOR_TARGET`
11974 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11975echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
11976 else
11977 # Canadian cross, just use what we found
b58b6ee1
DJ
11978 echo "$as_me:$LINENO: result: pre-installed" >&5
11979echo "${ECHO_T}pre-installed" >&6
fef3f213 11980 fi
a7dc05b5
PB
11981else
11982 ok=yes
11983 case " ${configdirs} " in
11984 *" binutils "*) ;;
11985 *) ok=no ;;
11986 esac
b58b6ee1 11987
a7dc05b5
PB
11988 if test $ok = yes; then
11989 # An in-tree tool is available and we can use it
11990 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
b58b6ee1
DJ
11991 echo "$as_me:$LINENO: result: just compiled" >&5
11992echo "${ECHO_T}just compiled" >&6
fef3f213
PB
11993 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11994 # We already found the complete path
7a81a717
AS
11995 ac_dir=`dirname $STRIP_FOR_TARGET`
11996 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11997echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
11998 elif test "x$target" = "x$host"; then
11999 # We can use an host tool
12000 STRIP_FOR_TARGET='$(STRIP)'
b58b6ee1
DJ
12001 echo "$as_me:$LINENO: result: host tool" >&5
12002echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
12003 else
12004 # We need a cross tool
b58b6ee1
DJ
12005 echo "$as_me:$LINENO: result: pre-installed" >&5
12006echo "${ECHO_T}pre-installed" >&6
a7dc05b5
PB
12007 fi
12008fi
42f55f77 12009
b58b6ee1
DJ
12010echo "$as_me:$LINENO: checking where to find the target windres" >&5
12011echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
a7dc05b5 12012if test "x${build}" != "x${host}" ; then
fef3f213
PB
12013 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12014 # We already found the complete path
7a81a717
AS
12015 ac_dir=`dirname $WINDRES_FOR_TARGET`
12016 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12017echo "${ECHO_T}pre-installed in $ac_dir" >&6
fef3f213
PB
12018 else
12019 # Canadian cross, just use what we found
b58b6ee1
DJ
12020 echo "$as_me:$LINENO: result: pre-installed" >&5
12021echo "${ECHO_T}pre-installed" >&6
fef3f213 12022 fi
a7dc05b5
PB
12023else
12024 ok=yes
12025 case " ${configdirs} " in
12026 *" binutils "*) ;;
12027 *) ok=no ;;
12028 esac
b58b6ee1 12029
a7dc05b5
PB
12030 if test $ok = yes; then
12031 # An in-tree tool is available and we can use it
12032 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
b58b6ee1
DJ
12033 echo "$as_me:$LINENO: result: just compiled" >&5
12034echo "${ECHO_T}just compiled" >&6
fef3f213
PB
12035 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12036 # We already found the complete path
7a81a717
AS
12037 ac_dir=`dirname $WINDRES_FOR_TARGET`
12038 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12039echo "${ECHO_T}pre-installed in $ac_dir" >&6
a7dc05b5
PB
12040 elif test "x$target" = "x$host"; then
12041 # We can use an host tool
12042 WINDRES_FOR_TARGET='$(WINDRES)'
b58b6ee1
DJ
12043 echo "$as_me:$LINENO: result: host tool" >&5
12044echo "${ECHO_T}host tool" >&6
a7dc05b5
PB
12045 else
12046 # We need a cross tool
b58b6ee1
DJ
12047 echo "$as_me:$LINENO: result: pre-installed" >&5
12048echo "${ECHO_T}pre-installed" >&6
a7dc05b5 12049 fi
bafecfd6 12050fi
ef76efc6 12051
bffcbe34
NC
12052echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12053echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12054if test "x${build}" != "x${host}" ; then
12055 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12056 # We already found the complete path
12057 ac_dir=`dirname $WINDMC_FOR_TARGET`
12058 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12059echo "${ECHO_T}pre-installed in $ac_dir" >&6
12060 else
12061 # Canadian cross, just use what we found
12062 echo "$as_me:$LINENO: result: pre-installed" >&5
12063echo "${ECHO_T}pre-installed" >&6
12064 fi
12065else
12066 ok=yes
12067 case " ${configdirs} " in
12068 *" binutils "*) ;;
12069 *) ok=no ;;
12070 esac
12071
12072 if test $ok = yes; then
12073 # An in-tree tool is available and we can use it
12074 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12075 echo "$as_me:$LINENO: result: just compiled" >&5
12076echo "${ECHO_T}just compiled" >&6
12077 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12078 # We already found the complete path
12079 ac_dir=`dirname $WINDMC_FOR_TARGET`
12080 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12081echo "${ECHO_T}pre-installed in $ac_dir" >&6
12082 elif test "x$target" = "x$host"; then
12083 # We can use an host tool
12084 WINDMC_FOR_TARGET='$(WINDMC)'
12085 echo "$as_me:$LINENO: result: host tool" >&5
12086echo "${ECHO_T}host tool" >&6
12087 else
12088 # We need a cross tool
12089 echo "$as_me:$LINENO: result: pre-installed" >&5
12090echo "${ECHO_T}pre-installed" >&6
12091 fi
12092fi
12093
ef76efc6
NN
12094
12095
a7dc05b5 12096
42f55f77 12097
bafecfd6
NN
12098# Certain tools may need extra flags.
12099AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12100RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12101NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12102
a7dc05b5
PB
12103# When building target libraries, except in a Canadian cross, we use
12104# the same toolchain as the compiler we just built.
12105COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12106COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12107COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12108if test $host = $build; then
12109 case " $configdirs " in
12110 *" gcc "*)
12111 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12112 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12113 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12114 ;;
12115 esac
12116fi
12117
12118
12119
12120
12121
b58b6ee1
DJ
12122echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12123echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
51dcf285
AO
12124# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12125if test "${enable_maintainer_mode+set}" = set; then
12126 enableval="$enable_maintainer_mode"
12127 USE_MAINTAINER_MODE=$enableval
12128else
12129 USE_MAINTAINER_MODE=no
b58b6ee1
DJ
12130fi;
12131echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12132echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
51dcf285
AO
12133
12134
12135if test "$USE_MAINTAINER_MODE" = yes; then
12136 MAINTAINER_MODE_TRUE=
12137 MAINTAINER_MODE_FALSE='#'
12138else
12139 MAINTAINER_MODE_TRUE='#'
12140 MAINTAINER_MODE_FALSE=
b58b6ee1 12141fi
51dcf285
AO
12142MAINT=$MAINTAINER_MODE_TRUE
12143
457eaf16
NN
12144# ---------------------
12145# GCC bootstrap support
12146# ---------------------
12147
12148# Stage specific cflags for build.
12149stage1_cflags="-g"
12150case $build in
12151 vax-*-*)
12152 case ${GCC} in
12153 yes) stage1_cflags="-g -Wa,-J" ;;
12154 *) stage1_cflags="-g -J" ;;
12155 esac ;;
457eaf16
NN
12156esac
12157
c684482d
PB
12158# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12159if test "$GCC" = yes; then
12160 saved_CFLAGS="$CFLAGS"
12161
12162 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12163 CFLAGS="$CFLAGS -fkeep-inline-functions"
b58b6ee1
DJ
12164 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12165echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12166 cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172
540baa7b
PB
12173#if (__GNUC__ < 3) \
12174 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12175 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12176#error http://gcc.gnu.org/PR29382
12177#endif
12178
b58b6ee1
DJ
12179int
12180main ()
12181{
12182
12183 ;
12184 return 0;
12185}
12186_ACEOF
12187rm -f conftest.$ac_objext
12188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -z "$ac_c_werror_flag"
12197 || test ! -s conftest.err'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest.$ac_objext'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 echo "$as_me:$LINENO: result: yes" >&5
12210echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12211else
12212 echo "$as_me: failed program was:" >&5
12213sed 's/^/| /' conftest.$ac_ext >&5
12214
12215echo "$as_me:$LINENO: result: no" >&5
12216echo "${ECHO_T}no" >&6
12217fi
12218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c684482d
PB
12219
12220 CFLAGS="$saved_CFLAGS"
12221fi
12222
12223
457eaf16 12224
14a1406e
PB
12225# Enable --enable-checking in stage1 of the compiler.
12226# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12227if test "${enable_stage1_checking+set}" = set; then
12228 enableval="$enable_stage1_checking"
12229 stage1_checking=--enable-checking=${enable_stage1_checking}
12230else
1b410bcf 12231 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
3c527a31 12232 stage1_checking=--enable-checking=yes,types
14a1406e 12233else
1b410bcf 12234 stage1_checking=--enable-checking=$enable_checking,types
14a1406e 12235fi
b58b6ee1 12236fi;
14a1406e
PB
12237
12238
457eaf16 12239# Enable -Werror in bootstrap stage2 and later.
457eaf16
NN
12240# Check whether --enable-werror or --disable-werror was given.
12241if test "${enable_werror+set}" = set; then
12242 enableval="$enable_werror"
b58b6ee1 12243
457eaf16 12244else
e6659c00 12245 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
457eaf16 12246 enable_werror=yes
48edcc3f
PB
12247else
12248 enable_werror=no
12249fi
b58b6ee1 12250fi;
f06f3d7c
NN
12251case ${enable_werror} in
12252 yes) stage2_werror_flag="--enable-werror-always" ;;
12253 *) stage2_werror_flag="" ;;
457eaf16
NN
12254esac
12255
12256
83c9add4 12257# Flags needed to enable html installing and building
b58b6ee1 12258
83c9add4
CD
12259# Check whether --with-datarootdir or --without-datarootdir was given.
12260if test "${with_datarootdir+set}" = set; then
12261 withval="$with_datarootdir"
12262 datarootdir="\${prefix}/${withval}"
12263else
12264 datarootdir="\${prefix}/share"
b58b6ee1 12265fi;
83c9add4
CD
12266
12267
12268# Check whether --with-docdir or --without-docdir was given.
12269if test "${with_docdir+set}" = set; then
12270 withval="$with_docdir"
12271 docdir="\${prefix}/${withval}"
12272else
12273 docdir="\${datarootdir}/doc"
b58b6ee1 12274fi;
83c9add4
CD
12275
12276
d4954b6d
DD
12277# Check whether --with-pdfdir or --without-pdfdir was given.
12278if test "${with_pdfdir+set}" = set; then
12279 withval="$with_pdfdir"
12280 pdfdir="\${prefix}/${withval}"
12281else
12282 pdfdir="\${docdir}"
12283fi;
12284
12285
83c9add4
CD
12286# Check whether --with-htmldir or --without-htmldir was given.
12287if test "${with_htmldir+set}" = set; then
12288 withval="$with_htmldir"
12289 htmldir="\${prefix}/${withval}"
12290else
12291 htmldir="\${docdir}"
b58b6ee1 12292fi;
83c9add4
CD
12293
12294
12295
12296
12297
7a81a717 12298
b58b6ee1
DJ
12299 ac_config_files="$ac_config_files Makefile"
12300cat >confcache <<\_ACEOF
bafecfd6
NN
12301# This file is a shell script that caches the results of configure
12302# tests run on this system so they can be shared between configure
b58b6ee1
DJ
12303# scripts and configure runs, see configure's option --config-cache.
12304# It is not useful on other systems. If it contains results you don't
12305# want to keep, you may remove or edit it.
bafecfd6 12306#
b58b6ee1
DJ
12307# config.status only pays attention to the cache file if you give it
12308# the --recheck option to rerun configure.
bafecfd6 12309#
b58b6ee1
DJ
12310# `ac_cv_env_foo' variables (set or unset) will be overridden when
12311# loading this file, other *unset* `ac_cv_foo' will be assigned the
12312# following values.
12313
12314_ACEOF
12315
bafecfd6
NN
12316# The following way of writing the cache mishandles newlines in values,
12317# but we know of no workaround that is simple, portable, and efficient.
12318# So, don't put newlines in cache variables' values.
12319# Ultrix sh set writes to stderr and can't be redirected directly,
12320# and sets the high bit in the cache file unless we assign to the vars.
b58b6ee1
DJ
12321{
12322 (set) 2>&1 |
12323 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12324 *ac_space=\ *)
12325 # `set' does not quote correctly, so add quotes (double-quote
12326 # substitution turns \\\\ into \\, and sed turns \\ into \).
12327 sed -n \
12328 "s/'/'\\\\''/g;
12329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12330 ;;
12331 *)
12332 # `set' quotes correctly as required by POSIX, so do not add quotes.
12333 sed -n \
12334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12335 ;;
12336 esac;
12337} |
12338 sed '
12339 t clear
12340 : clear
12341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12342 t end
12343 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12344 : end' >>confcache
12345if diff $cache_file confcache >/dev/null 2>&1; then :; else
bafecfd6 12346 if test -w $cache_file; then
b58b6ee1
DJ
12347 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12348 cat confcache >$cache_file
bafecfd6
NN
12349 else
12350 echo "not updating unwritable cache $cache_file"
12351 fi
712e2a32 12352fi
bafecfd6 12353rm -f confcache
712e2a32 12354
bafecfd6
NN
12355test "x$prefix" = xNONE && prefix=$ac_default_prefix
12356# Let make expand exec_prefix.
12357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
712e2a32 12358
b58b6ee1
DJ
12359# VPATH may cause trouble with some makes, so we remove $(srcdir),
12360# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12361# trailing colons and then remove the whole line if VPATH becomes empty
12362# (actually we leave an empty line to preserve line numbers).
bafecfd6 12363if test "x$srcdir" = x.; then
b58b6ee1
DJ
12364 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12365s/:*\$(srcdir):*/:/;
12366s/:*\${srcdir}:*/:/;
12367s/:*@srcdir@:*/:/;
12368s/^\([^=]*=[ ]*\):*/\1/;
12369s/:*$//;
12370s/^[^=]*=[ ]*$//;
12371}'
bafecfd6 12372fi
a3acbf46 12373
bafecfd6
NN
12374# Transform confdefs.h into DEFS.
12375# Protect against shell expansion while executing Makefile rules.
12376# Protect against Makefile macro expansion.
b58b6ee1
DJ
12377#
12378# If the first sed substitution is executed (which looks for macros that
12379# take arguments), then we branch to the quote section. Otherwise,
12380# look for a macro that doesn't take arguments.
12381cat >confdef2opt.sed <<\_ACEOF
12382t clear
12383: clear
12384s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12385t quote
12386s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12387t quote
12388d
12389: quote
12390s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12391s,\[,\\&,g
12392s,\],\\&,g
12393s,\$,$$,g
12394p
12395_ACEOF
12396# We use echo to avoid assuming a particular line-breaking character.
12397# The extra dot is to prevent the shell from consuming trailing
12398# line-breaks from the sub-command output. A line-break within
12399# single-quotes doesn't work because, if this script is created in a
12400# platform that uses two characters for line-breaks (e.g., DOS), tr
12401# would break.
12402ac_LF_and_DOT=`echo; echo .`
12403DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12404rm -f confdef2opt.sed
12405
12406
12407ac_libobjs=
12408ac_ltlibobjs=
12409for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12410 # 1. Remove the extension, and $U if already installed.
12411 ac_i=`echo "$ac_i" |
12412 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12413 # 2. Add them.
12414 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12415 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12416done
12417LIBOBJS=$ac_libobjs
712e2a32 12418
b58b6ee1 12419LTLIBOBJS=$ac_ltlibobjs
76402c80 12420
f69e2532 12421
b58b6ee1
DJ
12422
12423: ${CONFIG_STATUS=./config.status}
12424ac_clean_files_save=$ac_clean_files
12425ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12426{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12427echo "$as_me: creating $CONFIG_STATUS" >&6;}
12428cat >$CONFIG_STATUS <<_ACEOF
12429#! $SHELL
12430# Generated by $as_me.
bafecfd6 12431# Run this file to recreate the current configuration.
bafecfd6 12432# Compiler output produced by configure, useful for debugging
b58b6ee1 12433# configure, is in config.log if it exists.
76402c80 12434
b58b6ee1
DJ
12435debug=false
12436ac_cs_recheck=false
12437ac_cs_silent=false
12438SHELL=\${CONFIG_SHELL-$SHELL}
12439_ACEOF
12440
12441cat >>$CONFIG_STATUS <<\_ACEOF
12442## --------------------- ##
12443## M4sh Initialization. ##
12444## --------------------- ##
12445
12446# Be Bourne compatible
12447if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12448 emulate sh
12449 NULLCMD=:
12450 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12451 # is contrary to our usage. Disable this feature.
12452 alias -g '${1+"$@"}'='"$@"'
12453elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12454 set -o posix
12455fi
12456DUALCASE=1; export DUALCASE # for MKS sh
12457
12458# Support unset when possible.
12459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12460 as_unset=unset
12461else
12462 as_unset=false
12463fi
12464
12465
12466# Work around bugs in pre-3.0 UWIN ksh.
12467$as_unset ENV MAIL MAILPATH
12468PS1='$ '
12469PS2='> '
12470PS4='+ '
12471
12472# NLS nuisances.
12473for as_var in \
12474 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12475 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12476 LC_TELEPHONE LC_TIME
12477do
12478 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12479 eval $as_var=C; export $as_var
12480 else
12481 $as_unset $as_var
12482 fi
12483done
12484
12485# Required to use basename.
12486if expr a : '\(a\)' >/dev/null 2>&1; then
12487 as_expr=expr
12488else
12489 as_expr=false
12490fi
12491
12492if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12493 as_basename=basename
12494else
12495 as_basename=false
12496fi
12497
12498
12499# Name of the executable.
12500as_me=`$as_basename "$0" ||
12501$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12502 X"$0" : 'X\(//\)$' \| \
12503 X"$0" : 'X\(/\)$' \| \
12504 . : '\(.\)' 2>/dev/null ||
12505echo X/"$0" |
12506 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12507 /^X\/\(\/\/\)$/{ s//\1/; q; }
12508 /^X\/\(\/\).*/{ s//\1/; q; }
12509 s/.*/./; q'`
12510
12511
12512# PATH needs CR, and LINENO needs CR and PATH.
12513# Avoid depending upon Character Ranges.
12514as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12516as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12517as_cr_digits='0123456789'
12518as_cr_alnum=$as_cr_Letters$as_cr_digits
12519
12520# The user is always right.
12521if test "${PATH_SEPARATOR+set}" != set; then
12522 echo "#! /bin/sh" >conf$$.sh
12523 echo "exit 0" >>conf$$.sh
12524 chmod +x conf$$.sh
12525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12526 PATH_SEPARATOR=';'
12527 else
12528 PATH_SEPARATOR=:
12529 fi
12530 rm -f conf$$.sh
12531fi
12532
12533
12534 as_lineno_1=$LINENO
12535 as_lineno_2=$LINENO
12536 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12537 test "x$as_lineno_1" != "x$as_lineno_2" &&
12538 test "x$as_lineno_3" = "x$as_lineno_2" || {
12539 # Find who we are. Look in the path if we contain no path at all
12540 # relative or not.
12541 case $0 in
12542 *[\\/]* ) as_myself=$0 ;;
12543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544for as_dir in $PATH
12545do
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12549done
12550
12551 ;;
12552 esac
12553 # We did not find ourselves, most probably we were run as `sh COMMAND'
12554 # in which case we are not to be found in the path.
12555 if test "x$as_myself" = x; then
12556 as_myself=$0
12557 fi
12558 if test ! -f "$as_myself"; then
12559 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12560echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12561 { (exit 1); exit 1; }; }
12562 fi
12563 case $CONFIG_SHELL in
12564 '')
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12567do
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for as_base in sh bash ksh sh5; do
12571 case $as_dir in
12572 /*)
12573 if ("$as_dir/$as_base" -c '
12574 as_lineno_1=$LINENO
12575 as_lineno_2=$LINENO
12576 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12577 test "x$as_lineno_1" != "x$as_lineno_2" &&
12578 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12579 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12580 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12581 CONFIG_SHELL=$as_dir/$as_base
12582 export CONFIG_SHELL
12583 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12584 fi;;
12585 esac
12586 done
12587done
12588;;
12589 esac
12590
12591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12592 # uniformly replaced by the line number. The first 'sed' inserts a
12593 # line-number line before each line; the second 'sed' does the real
12594 # work. The second script uses 'N' to pair each line-number line
12595 # with the numbered line, and appends trailing '-' during
12596 # substitution so that $LINENO is not a special case at line end.
12597 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12598 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12599 sed '=' <$as_myself |
12600 sed '
12601 N
12602 s,$,-,
12603 : loop
12604 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12605 t loop
12606 s,-$,,
12607 s,^['$as_cr_digits']*\n,,
12608 ' >$as_me.lineno &&
12609 chmod +x $as_me.lineno ||
12610 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12611echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12612 { (exit 1); exit 1; }; }
12613
12614 # Don't try to exec as it changes $[0], causing all sort of problems
12615 # (the dirname of $[0] is not the place where we might find the
12616 # original and so on. Autoconf is especially sensible to this).
12617 . ./$as_me.lineno
12618 # Exit status is that of the last command.
12619 exit
12620}
12621
12622
12623case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12624 *c*,-n*) ECHO_N= ECHO_C='
12625' ECHO_T=' ' ;;
12626 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12627 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12628esac
12629
12630if expr a : '\(a\)' >/dev/null 2>&1; then
12631 as_expr=expr
12632else
12633 as_expr=false
12634fi
12635
12636rm -f conf$$ conf$$.exe conf$$.file
12637echo >conf$$.file
12638if ln -s conf$$.file conf$$ 2>/dev/null; then
12639 # We could just check for DJGPP; but this test a) works b) is more generic
12640 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12641 if test -f conf$$.exe; then
12642 # Don't use ln at all; we don't have any links
12643 as_ln_s='cp -p'
12644 else
12645 as_ln_s='ln -s'
12646 fi
12647elif ln conf$$.file conf$$ 2>/dev/null; then
12648 as_ln_s=ln
12649else
12650 as_ln_s='cp -p'
12651fi
12652rm -f conf$$ conf$$.exe conf$$.file
12653
12654if mkdir -p . 2>/dev/null; then
12655 as_mkdir_p=:
12656else
12657 test -d ./-p && rmdir ./-p
12658 as_mkdir_p=false
12659fi
12660
12661as_executable_p="test -f"
12662
12663# Sed expression to map a string onto a valid CPP name.
12664as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12665
12666# Sed expression to map a string onto a valid variable name.
12667as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12668
12669
12670# IFS
12671# We need space, tab and new line, in precisely that order.
12672as_nl='
12673'
12674IFS=" $as_nl"
12675
12676# CDPATH.
12677$as_unset CDPATH
12678
12679exec 6>&1
12680
12681# Open the log real soon, to keep \$[0] and so on meaningful, and to
12682# report actual input values of CONFIG_FILES etc. instead of their
12683# values after options handling. Logging --version etc. is OK.
12684exec 5>>config.log
12685{
12686 echo
12687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12688## Running $as_me. ##
12689_ASBOX
12690} >&5
12691cat >&5 <<_CSEOF
12692
12693This file was extended by $as_me, which was
12694generated by GNU Autoconf 2.59. Invocation command line was
12695
12696 CONFIG_FILES = $CONFIG_FILES
12697 CONFIG_HEADERS = $CONFIG_HEADERS
12698 CONFIG_LINKS = $CONFIG_LINKS
12699 CONFIG_COMMANDS = $CONFIG_COMMANDS
12700 $ $0 $@
12701
12702_CSEOF
12703echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12704echo >&5
12705_ACEOF
12706
12707# Files that config.status was made for.
12708if test -n "$ac_config_files"; then
12709 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12710fi
12711
12712if test -n "$ac_config_headers"; then
12713 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12714fi
12715
12716if test -n "$ac_config_links"; then
12717 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12718fi
12719
12720if test -n "$ac_config_commands"; then
12721 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12722fi
12723
12724cat >>$CONFIG_STATUS <<\_ACEOF
12725
12726ac_cs_usage="\
12727\`$as_me' instantiates files from templates according to the
12728current configuration.
12729
12730Usage: $0 [OPTIONS] [FILE]...
12731
12732 -h, --help print this help, then exit
12733 -V, --version print version number, then exit
12734 -q, --quiet do not print progress messages
12735 -d, --debug don't remove temporary files
12736 --recheck update $as_me by reconfiguring in the same conditions
12737 --file=FILE[:TEMPLATE]
12738 instantiate the configuration file FILE
12739
12740Configuration files:
12741$config_files
12742
12743Report bugs to <bug-autoconf@gnu.org>."
12744_ACEOF
12745
12746cat >>$CONFIG_STATUS <<_ACEOF
12747ac_cs_version="\\
12748config.status
12749configured by $0, generated by GNU Autoconf 2.59,
12750 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12751
12752Copyright (C) 2003 Free Software Foundation, Inc.
12753This config.status script is free software; the Free Software Foundation
12754gives unlimited permission to copy, distribute and modify it."
12755srcdir=$srcdir
12756INSTALL="$INSTALL"
12757_ACEOF
12758
12759cat >>$CONFIG_STATUS <<\_ACEOF
12760# If no file are specified by the user, then we need to provide default
12761# value. By we need to know if files were specified by the user.
12762ac_need_defaults=:
12763while test $# != 0
bafecfd6 12764do
b58b6ee1
DJ
12765 case $1 in
12766 --*=*)
12767 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12768 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12769 ac_shift=:
12770 ;;
12771 -*)
12772 ac_option=$1
12773 ac_optarg=$2
12774 ac_shift=shift
12775 ;;
12776 *) # This is not an option, so the user has probably given explicit
12777 # arguments.
12778 ac_option=$1
12779 ac_need_defaults=false;;
12780 esac
12781
12782 case $ac_option in
12783 # Handling of the options.
12784_ACEOF
12785cat >>$CONFIG_STATUS <<\_ACEOF
bafecfd6 12786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b58b6ee1
DJ
12787 ac_cs_recheck=: ;;
12788 --version | --vers* | -V )
12789 echo "$ac_cs_version"; exit 0 ;;
12790 --he | --h)
12791 # Conflict between --help and --header
12792 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12793Try \`$0 --help' for more information." >&5
12794echo "$as_me: error: ambiguous option: $1
12795Try \`$0 --help' for more information." >&2;}
12796 { (exit 1); exit 1; }; };;
12797 --help | --hel | -h )
12798 echo "$ac_cs_usage"; exit 0 ;;
12799 --debug | --d* | -d )
12800 debug=: ;;
12801 --file | --fil | --fi | --f )
12802 $ac_shift
12803 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12804 ac_need_defaults=false;;
12805 --header | --heade | --head | --hea )
12806 $ac_shift
12807 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12808 ac_need_defaults=false;;
12809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12810 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12811 ac_cs_silent=: ;;
12812
12813 # This is an error.
12814 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12815Try \`$0 --help' for more information." >&5
12816echo "$as_me: error: unrecognized option: $1
12817Try \`$0 --help' for more information." >&2;}
12818 { (exit 1); exit 1; }; } ;;
12819
12820 *) ac_config_targets="$ac_config_targets $1" ;;
12821
76402c80 12822 esac
b58b6ee1 12823 shift
76402c80
CM
12824done
12825
b58b6ee1 12826ac_configure_extra_args=
76402c80 12827
b58b6ee1
DJ
12828if $ac_cs_silent; then
12829 exec 6>/dev/null
12830 ac_configure_extra_args="$ac_configure_extra_args --silent"
12831fi
76402c80 12832
b58b6ee1
DJ
12833_ACEOF
12834cat >>$CONFIG_STATUS <<_ACEOF
12835if \$ac_cs_recheck; then
12836 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12837 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12838fi
12839
12840_ACEOF
12841
12842
12843
12844
12845
12846cat >>$CONFIG_STATUS <<\_ACEOF
12847for ac_config_target in $ac_config_targets
12848do
12849 case "$ac_config_target" in
12850 # Handling of arguments.
12851 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12852 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12853echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12854 { (exit 1); exit 1; }; };;
12855 esac
12856done
12857
12858# If the user did not use the arguments to specify the items to instantiate,
12859# then the envvar interface is used. Set only those that are not.
12860# We use the long form for the default assignment because of an extremely
12861# bizarre bug on SunOS 4.1.3.
12862if $ac_need_defaults; then
12863 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12864fi
12865
12866# Have a temporary directory for convenience. Make it in the build tree
12867# simply because there is no reason to put it here, and in addition,
12868# creating and moving files from /tmp can sometimes cause problems.
12869# Create a temporary directory, and hook for its removal unless debugging.
12870$debug ||
12871{
12872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12873 trap '{ (exit 1); exit 1; }' 1 2 13 15
12874}
12875
12876# Create a (secure) tmp directory for tmp files.
12877
12878{
12879 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12880 test -n "$tmp" && test -d "$tmp"
12881} ||
12882{
12883 tmp=./confstat$$-$RANDOM
12884 (umask 077 && mkdir $tmp)
12885} ||
12886{
12887 echo "$me: cannot create a temporary directory in ." >&2
12888 { (exit 1); exit 1; }
12889}
12890
12891_ACEOF
12892
12893cat >>$CONFIG_STATUS <<_ACEOF
12894
12895#
12896# CONFIG_FILES section.
12897#
12898
12899# No need to generate the scripts if there are no CONFIG_FILES.
12900# This happens for instance when ./config.status config.h
12901if test -n "\$CONFIG_FILES"; then
12902 # Protect against being on the right side of a sed subst in config.status.
12903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12905s,@SHELL@,$SHELL,;t t
12906s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12907s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12908s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12909s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12910s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12911s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12912s,@exec_prefix@,$exec_prefix,;t t
12913s,@prefix@,$prefix,;t t
12914s,@program_transform_name@,$program_transform_name,;t t
12915s,@bindir@,$bindir,;t t
12916s,@sbindir@,$sbindir,;t t
12917s,@libexecdir@,$libexecdir,;t t
12918s,@datadir@,$datadir,;t t
12919s,@sysconfdir@,$sysconfdir,;t t
12920s,@sharedstatedir@,$sharedstatedir,;t t
12921s,@localstatedir@,$localstatedir,;t t
12922s,@libdir@,$libdir,;t t
12923s,@includedir@,$includedir,;t t
12924s,@oldincludedir@,$oldincludedir,;t t
12925s,@infodir@,$infodir,;t t
12926s,@mandir@,$mandir,;t t
12927s,@build_alias@,$build_alias,;t t
12928s,@host_alias@,$host_alias,;t t
12929s,@target_alias@,$target_alias,;t t
12930s,@DEFS@,$DEFS,;t t
12931s,@ECHO_C@,$ECHO_C,;t t
12932s,@ECHO_N@,$ECHO_N,;t t
12933s,@ECHO_T@,$ECHO_T,;t t
12934s,@LIBS@,$LIBS,;t t
00f8aa9c 12935s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
b58b6ee1
DJ
12936s,@build@,$build,;t t
12937s,@build_cpu@,$build_cpu,;t t
12938s,@build_vendor@,$build_vendor,;t t
12939s,@build_os@,$build_os,;t t
12940s,@build_noncanonical@,$build_noncanonical,;t t
12941s,@host_noncanonical@,$host_noncanonical,;t t
12942s,@target_noncanonical@,$target_noncanonical,;t t
12943s,@host@,$host,;t t
12944s,@host_cpu@,$host_cpu,;t t
12945s,@host_vendor@,$host_vendor,;t t
12946s,@host_os@,$host_os,;t t
12947s,@target@,$target,;t t
12948s,@target_cpu@,$target_cpu,;t t
12949s,@target_vendor@,$target_vendor,;t t
12950s,@target_os@,$target_os,;t t
12951s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12952s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12953s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12954s,@LN@,$LN,;t t
12955s,@LN_S@,$LN_S,;t t
b58b6ee1
DJ
12956s,@build_libsubdir@,$build_libsubdir,;t t
12957s,@build_subdir@,$build_subdir,;t t
12958s,@host_subdir@,$host_subdir,;t t
12959s,@target_subdir@,$target_subdir,;t t
12960s,@CC@,$CC,;t t
12961s,@CFLAGS@,$CFLAGS,;t t
12962s,@LDFLAGS@,$LDFLAGS,;t t
12963s,@CPPFLAGS@,$CPPFLAGS,;t t
12964s,@ac_ct_CC@,$ac_ct_CC,;t t
12965s,@EXEEXT@,$EXEEXT,;t t
12966s,@OBJEXT@,$OBJEXT,;t t
b8c26111
PB
12967s,@CXX@,$CXX,;t t
12968s,@CXXFLAGS@,$CXXFLAGS,;t t
12969s,@ac_ct_CXX@,$ac_ct_CXX,;t t
b58b6ee1
DJ
12970s,@GNATBIND@,$GNATBIND,;t t
12971s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
31839eae
PB
12972s,@GNATMAKE@,$GNATMAKE,;t t
12973s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
b58b6ee1
DJ
12974s,@do_compare@,$do_compare,;t t
12975s,@gmplibs@,$gmplibs,;t t
12976s,@gmpinc@,$gmpinc,;t t
12977s,@stage1_languages@,$stage1_languages,;t t
12978s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
fcc5fef0 12979s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
6532abb6
PB
12980s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12981s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
b58b6ee1 12982s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
8453fdba 12983s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
b58b6ee1
DJ
12984s,@tooldir@,$tooldir,;t t
12985s,@build_tooldir@,$build_tooldir,;t t
12986s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12987s,@GDB_TK@,$GDB_TK,;t t
12988s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12989s,@build_configargs@,$build_configargs,;t t
12990s,@build_configdirs@,$build_configdirs,;t t
12991s,@host_configargs@,$host_configargs,;t t
12992s,@configdirs@,$configdirs,;t t
12993s,@target_configargs@,$target_configargs,;t t
4413ec01
PB
12994s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12995s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
b58b6ee1 12996s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
4413ec01
PB
12997s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12998s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12999s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13000s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13001s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13002s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13003s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13004s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13005s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13006s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13007s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13008s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
b58b6ee1
DJ
13009s,@config_shell@,$config_shell,;t t
13010s,@YACC@,$YACC,;t t
13011s,@BISON@,$BISON,;t t
13012s,@M4@,$M4,;t t
13013s,@LEX@,$LEX,;t t
13014s,@FLEX@,$FLEX,;t t
13015s,@MAKEINFO@,$MAKEINFO,;t t
13016s,@EXPECT@,$EXPECT,;t t
13017s,@RUNTEST@,$RUNTEST,;t t
13018s,@AR@,$AR,;t t
13019s,@AS@,$AS,;t t
13020s,@DLLTOOL@,$DLLTOOL,;t t
13021s,@LD@,$LD,;t t
13022s,@LIPO@,$LIPO,;t t
13023s,@NM@,$NM,;t t
13024s,@RANLIB@,$RANLIB,;t t
13025s,@STRIP@,$STRIP,;t t
13026s,@WINDRES@,$WINDRES,;t t
bffcbe34 13027s,@WINDMC@,$WINDMC,;t t
b58b6ee1
DJ
13028s,@OBJCOPY@,$OBJCOPY,;t t
13029s,@OBJDUMP@,$OBJDUMP,;t t
b58b6ee1
DJ
13030s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13031s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13032s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13033s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13034s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13035s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13036s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13037s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13038s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13039s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13040s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13041s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13042s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13043s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13044s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
bffcbe34 13045s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
b58b6ee1
DJ
13046s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13047s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13048s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13049s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13050s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13051s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13052s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13053s,@MAINT@,$MAINT,;t t
13054s,@stage1_cflags@,$stage1_cflags,;t t
13055s,@stage1_checking@,$stage1_checking,;t t
13056s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13057s,@datarootdir@,$datarootdir,;t t
13058s,@docdir@,$docdir,;t t
d4954b6d 13059s,@pdfdir@,$pdfdir,;t t
b58b6ee1
DJ
13060s,@htmldir@,$htmldir,;t t
13061s,@LIBOBJS@,$LIBOBJS,;t t
13062s,@LTLIBOBJS@,$LTLIBOBJS,;t t
bafecfd6 13063/@serialization_dependencies@/r $serialization_dependencies
b58b6ee1 13064s,@serialization_dependencies@,,;t t
bafecfd6 13065/@host_makefile_frag@/r $host_makefile_frag
b58b6ee1 13066s,@host_makefile_frag@,,;t t
bafecfd6 13067/@target_makefile_frag@/r $target_makefile_frag
b58b6ee1 13068s,@target_makefile_frag@,,;t t
bafecfd6 13069/@alphaieee_frag@/r $alphaieee_frag
b58b6ee1 13070s,@alphaieee_frag@,,;t t
bafecfd6 13071/@ospace_frag@/r $ospace_frag
b58b6ee1 13072s,@ospace_frag@,,;t t
bafecfd6 13073CEOF
a3acbf46 13074
b58b6ee1
DJ
13075_ACEOF
13076
13077 cat >>$CONFIG_STATUS <<\_ACEOF
13078 # Split the substitutions into bite-sized pieces for seds with
13079 # small command number limits, like on Digital OSF/1 and HP-UX.
13080 ac_max_sed_lines=48
13081 ac_sed_frag=1 # Number of current file.
13082 ac_beg=1 # First line for current file.
13083 ac_end=$ac_max_sed_lines # Line after last line for current file.
13084 ac_more_lines=:
13085 ac_sed_cmds=
13086 while $ac_more_lines; do
13087 if test $ac_beg -gt 1; then
13088 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13089 else
13090 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13091 fi
13092 if test ! -s $tmp/subs.frag; then
13093 ac_more_lines=false
bafecfd6 13094 else
b58b6ee1
DJ
13095 # The purpose of the label and of the branching condition is to
13096 # speed up the sed processing (if there are no `@' at all, there
13097 # is no need to browse any of the substitutions).
13098 # These are the two extra sed commands mentioned above.
13099 (echo ':t
13100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13101 if test -z "$ac_sed_cmds"; then
13102 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13103 else
13104 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13105 fi
13106 ac_sed_frag=`expr $ac_sed_frag + 1`
13107 ac_beg=$ac_end
13108 ac_end=`expr $ac_end + $ac_max_sed_lines`
bafecfd6 13109 fi
b58b6ee1
DJ
13110 done
13111 if test -z "$ac_sed_cmds"; then
13112 ac_sed_cmds=cat
712e2a32 13113 fi
b58b6ee1 13114fi # test -n "$CONFIG_FILES"
f69e2532 13115
b58b6ee1
DJ
13116_ACEOF
13117cat >>$CONFIG_STATUS <<\_ACEOF
13118for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
bafecfd6 13119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b58b6ee1
DJ
13120 case $ac_file in
13121 - | *:- | *:-:* ) # input from stdin
13122 cat >$tmp/stdin
13123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13127 * ) ac_file_in=$ac_file.in ;;
bafecfd6 13128 esac
a3acbf46 13129
b58b6ee1
DJ
13130 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13131 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13132$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13133 X"$ac_file" : 'X\(//\)[^/]' \| \
13134 X"$ac_file" : 'X\(//\)$' \| \
13135 X"$ac_file" : 'X\(/\)' \| \
13136 . : '\(.\)' 2>/dev/null ||
13137echo X"$ac_file" |
13138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13140 /^X\(\/\/\)$/{ s//\1/; q; }
13141 /^X\(\/\).*/{ s//\1/; q; }
13142 s/.*/./; q'`
13143 { if $as_mkdir_p; then
13144 mkdir -p "$ac_dir"
f69e2532 13145 else
b58b6ee1
DJ
13146 as_dir="$ac_dir"
13147 as_dirs=
13148 while test ! -d "$as_dir"; do
13149 as_dirs="$as_dir $as_dirs"
13150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13152 X"$as_dir" : 'X\(//\)[^/]' \| \
13153 X"$as_dir" : 'X\(//\)$' \| \
13154 X"$as_dir" : 'X\(/\)' \| \
13155 . : '\(.\)' 2>/dev/null ||
13156echo X"$as_dir" |
13157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13159 /^X\(\/\/\)$/{ s//\1/; q; }
13160 /^X\(\/\).*/{ s//\1/; q; }
13161 s/.*/./; q'`
13162 done
13163 test ! -n "$as_dirs" || mkdir $as_dirs
13164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13165echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13166 { (exit 1); exit 1; }; }; }
13167
13168 ac_builddir=.
a3acbf46 13169
b58b6ee1
DJ
13170if test "$ac_dir" != .; then
13171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13172 # A "../" for each directory in $ac_dir_suffix.
13173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13174else
13175 ac_dir_suffix= ac_top_builddir=
13176fi
13177
13178case $srcdir in
13179 .) # No --srcdir option. We are building in place.
13180 ac_srcdir=.
13181 if test -z "$ac_top_builddir"; then
13182 ac_top_srcdir=.
13183 else
13184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13185 fi ;;
13186 [\\/]* | ?:[\\/]* ) # Absolute path.
13187 ac_srcdir=$srcdir$ac_dir_suffix;
13188 ac_top_srcdir=$srcdir ;;
bafecfd6 13189 *) # Relative path.
b58b6ee1
DJ
13190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13192esac
a3acbf46 13193
b58b6ee1
DJ
13194# Do not use `cd foo && pwd` to compute absolute paths, because
13195# the directories may not exist.
13196case `pwd` in
13197.) ac_abs_builddir="$ac_dir";;
13198*)
13199 case "$ac_dir" in
13200 .) ac_abs_builddir=`pwd`;;
13201 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13202 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13203 esac;;
13204esac
13205case $ac_abs_builddir in
13206.) ac_abs_top_builddir=${ac_top_builddir}.;;
13207*)
13208 case ${ac_top_builddir}. in
13209 .) ac_abs_top_builddir=$ac_abs_builddir;;
13210 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13211 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13212 esac;;
13213esac
13214case $ac_abs_builddir in
13215.) ac_abs_srcdir=$ac_srcdir;;
13216*)
13217 case $ac_srcdir in
13218 .) ac_abs_srcdir=$ac_abs_builddir;;
13219 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13220 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13221 esac;;
13222esac
13223case $ac_abs_builddir in
13224.) ac_abs_top_srcdir=$ac_top_srcdir;;
13225*)
13226 case $ac_top_srcdir in
13227 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13228 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13229 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13230 esac;;
13231esac
a3acbf46 13232
b58b6ee1
DJ
13233
13234 case $INSTALL in
13235 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13236 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
bafecfd6 13237 esac
a3acbf46 13238
b58b6ee1
DJ
13239 if test x"$ac_file" != x-; then
13240 { echo "$as_me:$LINENO: creating $ac_file" >&5
13241echo "$as_me: creating $ac_file" >&6;}
13242 rm -f "$ac_file"
13243 fi
13244 # Let's still pretend it is `configure' which instantiates (i.e., don't
13245 # use $as_me), people would be surprised to read:
13246 # /* config.h. Generated by config.status. */
13247 if test x"$ac_file" = x-; then
13248 configure_input=
13249 else
13250 configure_input="$ac_file. "
13251 fi
13252 configure_input=$configure_input"Generated from `echo $ac_file_in |
13253 sed 's,.*/,,'` by configure."
13254
13255 # First look for the input files in the build tree, otherwise in the
13256 # src tree.
13257 ac_file_inputs=`IFS=:
13258 for f in $ac_file_in; do
13259 case $f in
13260 -) echo $tmp/stdin ;;
13261 [\\/$]*)
13262 # Absolute (can't be DOS-style, as IFS=:)
13263 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13264echo "$as_me: error: cannot find input file: $f" >&2;}
13265 { (exit 1); exit 1; }; }
13266 echo "$f";;
13267 *) # Relative
13268 if test -f "$f"; then
13269 # Build tree
13270 echo "$f"
13271 elif test -f "$srcdir/$f"; then
13272 # Source tree
13273 echo "$srcdir/$f"
13274 else
13275 # /dev/null tree
13276 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13277echo "$as_me: error: cannot find input file: $f" >&2;}
13278 { (exit 1); exit 1; }; }
13279 fi;;
13280 esac
13281 done` || { (exit 1); exit 1; }
13282_ACEOF
13283cat >>$CONFIG_STATUS <<_ACEOF
13284 sed "$ac_vpsub
13285$extrasub
13286_ACEOF
13287cat >>$CONFIG_STATUS <<\_ACEOF
13288:t
13289/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13290s,@configure_input@,$configure_input,;t t
13291s,@srcdir@,$ac_srcdir,;t t
13292s,@abs_srcdir@,$ac_abs_srcdir,;t t
13293s,@top_srcdir@,$ac_top_srcdir,;t t
13294s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13295s,@builddir@,$ac_builddir,;t t
13296s,@abs_builddir@,$ac_abs_builddir,;t t
13297s,@top_builddir@,$ac_top_builddir,;t t
13298s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13299s,@INSTALL@,$ac_INSTALL,;t t
13300" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13301 rm -f $tmp/stdin
13302 if test x"$ac_file" != x-; then
13303 mv $tmp/out $ac_file
13304 else
13305 cat $tmp/out
13306 rm -f $tmp/out
13307 fi
9f35b464 13308
b58b6ee1
DJ
13309done
13310_ACEOF
9f35b464 13311
b58b6ee1 13312cat >>$CONFIG_STATUS <<\_ACEOF
9f35b464 13313
b58b6ee1
DJ
13314{ (exit 0); exit 0; }
13315_ACEOF
9f35b464 13316chmod +x $CONFIG_STATUS
b58b6ee1
DJ
13317ac_clean_files=$ac_clean_files_save
13318
13319
13320# configure is writing to config.log, and then calls config.status.
13321# config.status does its own redirection, appending to config.log.
13322# Unfortunately, on DOS this fails, as config.log is still kept open
13323# by configure, so config.status won't be able to write to it; its
13324# output is simply discarded. So we exec the FD to /dev/null,
13325# effectively closing config.log, so it can be properly (re)opened and
13326# appended to by config.status. When coming back to configure, we
13327# need to make the FD available again.
13328if test "$no_create" != yes; then
13329 ac_cs_success=:
13330 ac_config_status_args=
13331 test "$silent" = yes &&
13332 ac_config_status_args="$ac_config_status_args --quiet"
13333 exec 5>/dev/null
13334 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13335 exec 5>>config.log
13336 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13337 # would make configure fail if this is the last instruction.
13338 $ac_cs_success || { (exit 1); exit 1; }
13339fi
9f35b464 13340
This page took 1.972253 seconds and 5 git commands to generate.