]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
* resolve.cc (Symbol_table::resolve): Don't complain about defined
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
85bd1942 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
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
a0da8069 243
c6b750e1
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#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
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"
e28c595f 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 ppllibs pplinc clooglibs clooginc 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'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
7a283e07 277ac_pwd=`pwd`
a0da8069
NN
278
279# Initialize some variables set by options.
c6b750e1
DJ
280ac_init_help=
281ac_init_version=false
a0da8069
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
c6b750e1 284cache_file=/dev/null
a0da8069 285exec_prefix=NONE
a0da8069 286no_create=
a0da8069
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
a0da8069
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
c6b750e1
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.
a0da8069
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'
252b5132 316
a0da8069
NN
317ac_prev=
318for ac_option
319do
a0da8069
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
252b5132 326
c6b750e1 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
c6b750e1 331 case $ac_option in
a0da8069
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 336 bindir=$ac_optarg ;;
a0da8069
NN
337
338 -build | --build | --buil | --bui | --bu)
c6b750e1 339 ac_prev=build_alias ;;
a0da8069 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 341 build_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
a0da8069
NN
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
c6b750e1 357 datadir=$ac_optarg ;;
a0da8069
NN
358
359 -disable-* | --disable-*)
c6b750e1 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 361 # Reject names that are not valid shell variable names.
c6b750e1
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" ;;
a0da8069
NN
367
368 -enable-* | --enable-*)
c6b750e1 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 370 # Reject names that are not valid shell variable names.
c6b750e1
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"`;;
a0da8069
NN
377 *) ac_optarg=yes ;;
378 esac
c6b750e1 379 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
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=*)
c6b750e1 388 exec_prefix=$ac_optarg ;;
a0da8069
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
c6b750e1
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 ;;
a0da8069
NN
400
401 -host | --host | --hos | --ho)
c6b750e1 402 ac_prev=host_alias ;;
a0da8069 403 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 404 host_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 411 includedir=$ac_optarg ;;
a0da8069
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 416 infodir=$ac_optarg ;;
a0da8069
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 421 libdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 428 libexecdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 437 localstatedir=$ac_optarg ;;
a0da8069
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 442 mandir=$ac_optarg ;;
a0da8069
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 \
c6b750e1 449 | --no-cr | --no-c | -n)
a0da8069
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=*)
c6b750e1 463 oldincludedir=$ac_optarg ;;
a0da8069
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 468 prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 475 program_prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 482 program_suffix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 499 program_transform_name=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 509 sbindir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 520 sharedstatedir=$ac_optarg ;;
a0da8069
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
c6b750e1 525 site=$ac_optarg ;;
a0da8069
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 530 srcdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 537 sysconfdir=$ac_optarg ;;
a0da8069
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 540 ac_prev=target_alias ;;
a0da8069 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 542 target_alias=$ac_optarg ;;
a0da8069
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
c6b750e1
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
a0da8069
NN
549
550 -with-* | --with-*)
c6b750e1 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 552 # Reject names that are not valid shell variable names.
c6b750e1
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; }; }
a0da8069 556 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
559 *) ac_optarg=yes ;;
560 esac
c6b750e1 561 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
562
563 -without-* | --without-*)
c6b750e1 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 565 # Reject names that are not valid shell variable names.
c6b750e1
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" ;;
a0da8069
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=*)
c6b750e1 581 x_includes=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 588 x_libraries=$ac_optarg ;;
a0da8069 589
c6b750e1
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
a0da8069
NN
593 ;;
594
c6b750e1
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
a0da8069 605 *)
c6b750e1
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}
a0da8069
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
c6b750e1
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; }; }
a0da8069 620fi
a0da8069 621
c6b750e1
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
a0da8069 632
c6b750e1
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
a0da8069 636do
c6b750e1
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; }; };;
a0da8069
NN
642 esac
643done
644
c6b750e1
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
376a0e54 651
c6b750e1
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
a0da8069 667
a0da8069
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.
c6b750e1
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'`
a0da8069
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
c6b750e1
DJ
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
a0da8069 696 else
c6b750e1
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
9cc8ae67
PB
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
c6b750e1
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
18f6b6ee
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
9a819804
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
0c24b341
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
9a819804
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
0c24b341
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
c6b750e1
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
a0da8069 926fi
a0da8069 927
c6b750e1
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]
93f9b408 935 --enable-gold use gold instead of ld
521ec477
DD
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
e28c595f
JM
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
521ec477 940 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 941 stage1. Mostly useful for compiler development.
521ec477
DD
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
c6b750e1 947 sub-packages for the host, target or build
521ec477 948 machine, or all sub-packages
c6b750e1
DJ
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
521ec477
DD
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
c6b750e1
DJ
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
521ec477
DD
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
521ec477
DD
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
972 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
973 when linking with PPL
e28c595f
JM
974 --with-ppl=PATH Specify prefix directory for the installed PPL package
975 Equivalent to --with-ppl-include=PATH/include
976 plus --with-ppl-lib=PATH/lib
977 --with-ppl-include=PATH Specify directory for installed PPL include files
978 --with-ppl-lib=PATH Specify the directory for the installed PPL library
979 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
980 Equivalent to --with-cloog-include=PATH/include
981 plus --with-cloog-lib=PATH/lib
982 --with-cloog-include=PATH Specify directory for installed CLooG include files
983 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
521ec477 984 --with-build-sysroot=SYSROOT
c6b750e1 985 use sysroot as the system root during the build
8a6ee3ab
JM
986 --with-debug-prefix-map='A=B C=D ...'
987 map A to B, C to D ... in debug information
521ec477 988 --with-build-time-tools=PATH
c6b750e1 989 use given path to find target tools during the build
521ec477
DD
990 --with-datarootdir use datarootdir as the data root directory.
991 --with-docdir install documentation in this directory.
992 --with-pdfdir install pdf in this directory.
993 --with-htmldir install html in this directory.
c6b750e1
DJ
994
995Some influential environment variables:
996 CC C compiler command
997 CFLAGS C compiler flags
998 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
999 nonstandard directory <lib dir>
1000 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1001 headers in a nonstandard directory <include dir>
18f6b6ee
PB
1002 CXX C++ compiler command
1003 CXXFLAGS C++ compiler flags
9a819804
AO
1004 AR AR for the host
1005 AS AS for the host
1006 DLLTOOL DLLTOOL for the host
1007 LD LD for the host
1008 LIPO LIPO for the host
1009 NM NM for the host
1010 RANLIB RANLIB for the host
1011 STRIP STRIP for the host
1012 WINDRES WINDRES for the host
0c24b341 1013 WINDMC WINDMC for the host
9a819804
AO
1014 OBJCOPY OBJCOPY for the host
1015 OBJDUMP OBJDUMP for the host
1016 CC_FOR_TARGET
1017 CC for the target
1018 CXX_FOR_TARGET
1019 CXX for the target
1020 GCC_FOR_TARGET
1021 GCC for the target
1022 GCJ_FOR_TARGET
1023 GCJ for the target
1024 GFORTRAN_FOR_TARGET
1025 GFORTRAN for the target
1026 AR_FOR_TARGET
1027 AR for the target
1028 AS_FOR_TARGET
1029 AS for the target
1030 DLLTOOL_FOR_TARGET
1031 DLLTOOL for the target
1032 LD_FOR_TARGET
1033 LD for the target
1034 LIPO_FOR_TARGET
1035 LIPO for the target
1036 NM_FOR_TARGET
1037 NM for the target
1038 OBJDUMP_FOR_TARGET
1039 OBJDUMP for the target
1040 RANLIB_FOR_TARGET
1041 RANLIB for the target
1042 STRIP_FOR_TARGET
1043 STRIP for the target
1044 WINDRES_FOR_TARGET
1045 WINDRES for the target
0c24b341
NC
1046 WINDMC_FOR_TARGET
1047 WINDMC for the target
c6b750e1
DJ
1048
1049Use these variables to override the choices made by `configure' or to help
1050it to find libraries and programs with nonstandard names/locations.
1051
1052_ACEOF
1053fi
1054
1055if test "$ac_init_help" = "recursive"; then
1056 # If there are subdirs, report their specific --help.
1057 ac_popdir=`pwd`
1058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1059 test -d $ac_dir || continue
1060 ac_builddir=.
1061
1062if test "$ac_dir" != .; then
1063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1064 # A "../" for each directory in $ac_dir_suffix.
1065 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066else
1067 ac_dir_suffix= ac_top_builddir=
1068fi
1069
1070case $srcdir in
1071 .) # No --srcdir option. We are building in place.
1072 ac_srcdir=.
1073 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=.
1075 else
1076 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 fi ;;
1078 [\\/]* | ?:[\\/]* ) # Absolute path.
1079 ac_srcdir=$srcdir$ac_dir_suffix;
1080 ac_top_srcdir=$srcdir ;;
1081 *) # Relative path.
1082 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084esac
1085
1086# Do not use `cd foo && pwd` to compute absolute paths, because
1087# the directories may not exist.
1088case `pwd` in
1089.) ac_abs_builddir="$ac_dir";;
1090*)
1091 case "$ac_dir" in
1092 .) ac_abs_builddir=`pwd`;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1094 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_builddir=${ac_top_builddir}.;;
1099*)
1100 case ${ac_top_builddir}. in
1101 .) ac_abs_top_builddir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1103 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_srcdir=$ac_srcdir;;
1108*)
1109 case $ac_srcdir in
1110 .) ac_abs_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1112 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_srcdir=$ac_top_srcdir;;
1117*)
1118 case $ac_top_srcdir in
1119 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1121 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122 esac;;
1123esac
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
1134 test -f $ac_srcdir/configure.in; then
1135 echo
1136 $ac_configure --help
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 fi
1140 cd $ac_popdir
1141 done
1142fi
1143
1144test -n "$ac_init_help" && exit 0
1145if $ac_init_version; then
1146 cat <<\_ACEOF
1147
1148Copyright (C) 2003 Free Software Foundation, Inc.
1149This configure script is free software; the Free Software Foundation
1150gives unlimited permission to copy, distribute and modify it.
1151_ACEOF
1152 exit 0
1153fi
1154exec 5>config.log
1155cat >&5 <<_ACEOF
1156This file contains any messages produced by compilers while
1157running configure, to aid debugging if configure makes a mistake.
1158
1159It was created by $as_me, which was
1160generated by GNU Autoconf 2.59. Invocation command line was
1161
1162 $ $0 $@
1163
1164_ACEOF
1165{
1166cat <<_ASUNAME
1167## --------- ##
1168## Platform. ##
1169## --------- ##
1170
1171hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
1177/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179
1180/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1181/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1182/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1184/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1185/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1186/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187
1188_ASUNAME
1189
1190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191for as_dir in $PATH
1192do
1193 IFS=$as_save_IFS
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1196done
1197
1198} >&5
1199
1200cat >&5 <<_ACEOF
1201
1202
1203## ----------- ##
1204## Core tests. ##
1205## ----------- ##
1206
1207_ACEOF
1208
1209
1210# Keep a trace of the command line.
1211# Strip out --no-create and --no-recursion so they do not pile up.
1212# Strip out --silent because we don't want to record it for future runs.
1213# Also quote any args containing shell meta-characters.
1214# Make two passes to allow for proper duplicate-argument suppression.
1215ac_configure_args=
1216ac_configure_args0=
1217ac_configure_args1=
1218ac_sep=
1219ac_must_keep_next=false
1220for ac_pass in 1 2
1221do
1222 for ac_arg
1223 do
1224 case $ac_arg in
1225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 continue ;;
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 esac
1232 case $ac_pass in
1233 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 2)
1235 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236 if test $ac_must_keep_next = true; then
1237 ac_must_keep_next=false # Got value, back to normal.
1238 else
1239 case $ac_arg in
1240 *=* | --config-cache | -C | -disable-* | --disable-* \
1241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243 | -with-* | --with-* | -without-* | --without-* | --x)
1244 case "$ac_configure_args0 " in
1245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 esac
1247 ;;
1248 -* ) ac_must_keep_next=true ;;
1249 esac
1250 fi
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1253 ac_sep=" "
1254 ;;
1255 esac
1256 done
1257done
1258$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260
1261# When interrupted or exit'd, cleanup temporary files, and complete
1262# config.log. We remove comments because anyway the quotes in there
1263# would cause problems or look ugly.
1264# WARNING: Be sure not to use single quotes in there, as some shells,
1265# such as our DU 5.0 friend, will then `close' the trap.
1266trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1268 {
1269 echo
1270
1271 cat <<\_ASBOX
1272## ---------------- ##
1273## Cache variables. ##
1274## ---------------- ##
1275_ASBOX
1276 echo
1277 # The following way of writing the cache mishandles newlines in values,
1278{
1279 (set) 2>&1 |
1280 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 *ac_space=\ *)
1282 sed -n \
1283 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 ;;
1286 *)
1287 sed -n \
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 ;;
1290 esac;
1291}
1292 echo
1293
1294 cat <<\_ASBOX
1295## ----------------- ##
1296## Output variables. ##
1297## ----------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_vars
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306
1307 if test -n "$ac_subst_files"; then
1308 cat <<\_ASBOX
1309## ------------- ##
1310## Output files. ##
1311## ------------- ##
1312_ASBOX
1313 echo
1314 for ac_var in $ac_subst_files
1315 do
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1320 fi
1321
1322 if test -s confdefs.h; then
1323 cat <<\_ASBOX
1324## ----------- ##
1325## confdefs.h. ##
1326## ----------- ##
1327_ASBOX
1328 echo
1329 sed "/^$/d" confdefs.h | sort
1330 echo
1331 fi
1332 test "$ac_signal" != 0 &&
1333 echo "$as_me: caught signal $ac_signal"
1334 echo "$as_me: exit $exit_status"
1335 } >&5
1336 rm -f core *.core &&
1337 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 exit $exit_status
1339 ' 0
1340for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342done
1343ac_signal=0
1344
1345# confdefs.h avoids OS command line length limits that DEFS can exceed.
1346rm -rf conftest* confdefs.h
1347# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348echo >confdefs.h
1349
1350# Predefined preprocessor variables.
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_NAME "$PACKAGE_NAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_VERSION "$PACKAGE_VERSION"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_STRING "$PACKAGE_STRING"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374_ACEOF
1375
1376
1377# Let the site file select an alternate cache file if it wants to.
a0da8069 1378# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1379if test -z "$CONFIG_SITE"; then
1380 if test "x$prefix" != xNONE; then
1381 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 else
1383 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1384 fi
1385fi
1386for ac_site_file in $CONFIG_SITE; do
1387 if test -r "$ac_site_file"; then
c6b750e1
DJ
1388 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1391 . "$ac_site_file"
1392 fi
1393done
1394
1395if test -r "$cache_file"; then
c6b750e1
DJ
1396 # Some versions of bash will fail to source /dev/null (special
1397 # files actually), so we avoid doing that.
1398 if test -f "$cache_file"; then
1399 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400echo "$as_me: loading cache $cache_file" >&6;}
1401 case $cache_file in
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1404 esac
1405 fi
a0da8069 1406else
c6b750e1
DJ
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408echo "$as_me: creating cache $cache_file" >&6;}
1409 >$cache_file
1410fi
1411
1412# Check that the precious variables saved in the cache have kept the same
1413# value.
1414ac_cache_corrupted=false
1415for ac_var in `(set) 2>&1 |
1416 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418 eval ac_new_set=\$ac_env_${ac_var}_set
1419 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420 eval ac_new_val="\$ac_env_${ac_var}_value"
1421 case $ac_old_set,$ac_new_set in
1422 set,)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,set)
1427 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1430 ,);;
1431 *)
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1433 # differences in whitespace do not lead to failure.
1434 ac_old_val_w=`echo x $ac_old_val`
1435 ac_new_val_w=`echo x $ac_new_val`
1436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1439 ac_cache_corrupted=:
1440 else
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1444 fi
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1449 fi;;
1450 esac
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 esac
1462 fi
1463done
1464if $ac_cache_corrupted; then
7a283e07
RW
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
a0da8069
NN
1472fi
1473
1474ac_ext=c
a0da8069 1475ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
a0da8069
NN
1492
1493
75778ec4 1494
c6b750e1 1495
7a283e07
RW
1496
1497
1498
c6b750e1
DJ
1499
1500
1501
5b553f7e
RW
1502
1503progname=$0
1504# if PWD already has a value, it is probably wrong.
1505if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1506
1507# Export original configure arguments for use by sub-configures.
1508# Quote arguments with shell meta charatcers.
1509TOPLEVEL_CONFIGURE_ARGUMENTS=
1510set -- "$progname" "$@"
1511for ac_arg
1512do
1513 case "$ac_arg" in
1514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1515 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1516 # if the argument is of the form -foo=baz, quote the baz part only
1517 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1518 *) ;;
1519 esac
1520 # Add the quoted argument to the list.
1521 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1522done
1523if test "$silent" = yes; then
1524 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1525fi
1526# Remove the initial space we just introduced and, as these will be
1527# expanded by make, quote '$'.
1528TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1529
c6b750e1
DJ
1530
1531# Find the build, host, and target systems.
a0da8069 1532ac_aux_dir=
315b3b02 1533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1534 if test -f $ac_dir/install-sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break
1538 elif test -f $ac_dir/install.sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 break
c6b750e1
DJ
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
a0da8069
NN
1546 fi
1547done
1548if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
a0da8069 1552fi
c6b750e1
DJ
1553ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1556
c6b750e1
DJ
1557# Make sure we can run config.sub.
1558$ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563echo "$as_me:$LINENO: checking build system type" >&5
1564echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_build_alias=$build_alias
1569test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571test -z "$ac_cv_build_alias" &&
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
1575ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582echo "${ECHO_T}$ac_cv_build" >&6
1583build=$ac_cv_build
1584build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1587
a0da8069 1588
c6b750e1
DJ
1589 case ${build_alias} in
1590 "") build_noncanonical=${build} ;;
1591 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1592esac
1593
1594
cac3d6c4 1595
c6b750e1
DJ
1596 case ${host_alias} in
1597 "") host_noncanonical=${build_noncanonical} ;;
1598 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1599esac
1600
cac3d6c4 1601
c6b750e1
DJ
1602
1603 case ${target_alias} in
1604 "") target_noncanonical=${host_noncanonical} ;;
1605 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1606esac
1607
cac3d6c4 1608
c6b750e1
DJ
1609
1610
1611test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1612 test "$program_prefix$program_suffix$program_transform_name" = \
1613 NONENONEs,x,x, &&
c6b750e1 1614 program_transform_name=s,y,y,
cac3d6c4 1615
c6b750e1
DJ
1616echo "$as_me:$LINENO: checking host system type" >&5
1617echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1620else
c6b750e1
DJ
1621 ac_cv_host_alias=$host_alias
1622test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631echo "${ECHO_T}$ac_cv_host" >&6
1632host=$ac_cv_host
1633host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638echo "$as_me:$LINENO: checking target system type" >&5
1639echo $ECHO_N "checking target system type... $ECHO_C" >&6
1640if test "${ac_cv_target+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 ac_cv_target_alias=$target_alias
1644test "x$ac_cv_target_alias" = "x" &&
1645 ac_cv_target_alias=$ac_cv_host_alias
1646ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1648echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1649 { (exit 1); exit 1; }; }
1650
cac3d6c4 1651fi
c6b750e1
DJ
1652echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1653echo "${ECHO_T}$ac_cv_target" >&6
1654target=$ac_cv_target
1655target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658
1659
1660# The aliases save the names the user supplied, while $host etc.
1661# will get canonicalized.
1662test -n "$target_alias" &&
1663 test "$program_prefix$program_suffix$program_transform_name" = \
1664 NONENONEs,x,x, &&
1665 program_prefix=${target_alias}-
a0da8069 1666test "$program_prefix" != NONE &&
c6b750e1 1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1668# Use a double $ so make ignores it.
1669test "$program_suffix" != NONE &&
c6b750e1
DJ
1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671# Double any \ or $. echo might interpret backslashes.
1672# By default was `s,x,x', remove it if useless.
1673cat <<\_ACEOF >conftest.sed
1674s/[\\$]/&&/g;s/;s,x,x,$//
1675_ACEOF
1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677rm conftest.sed
cac3d6c4 1678
a0da8069
NN
1679
1680
e5c3f801
NN
1681# Get 'install' or 'install-sh' and its variants.
1682# Find a good install program. We prefer a C program (faster),
1683# so one script is as good as another. But avoid the broken or
1684# incompatible versions:
1685# SysV /etc/install, /usr/sbin/install
1686# SunOS /usr/etc/install
1687# IRIX /sbin/install
1688# AIX /bin/install
c6b750e1 1689# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1693# OS/2's system install, which has a completely different semantic
e5c3f801 1694# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1695# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1696echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1697echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1698if test -z "$INSTALL"; then
c6b750e1
DJ
1699if test "${ac_cv_path_install+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 # Account for people who put trailing slashes in PATH elements.
1708case $as_dir/ in
1709 ./ | .// | /cC/* | \
1710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1712 /usr/ucb/* ) ;;
1713 *)
1714 # OSF1 and SCO ODT 3.0 have their own names for install.
1715 # Don't use installbsd from OSF since it installs stuff as root
1716 # by default.
1717 for ac_prog in ginstall scoinst install; do
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1720 if test $ac_prog = install &&
c6b750e1 1721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1722 # AIX install. It has an incompatible calling convention.
1723 :
c6b750e1
DJ
1724 elif test $ac_prog = install &&
1725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # program-specific install script used by HP pwplus--don't use.
1727 :
e5c3f801 1728 else
58c85be7
RW
1729 rm -rf conftest.one conftest.two conftest.dir
1730 echo one > conftest.one
1731 echo two > conftest.two
1732 mkdir conftest.dir
1733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1734 test -s conftest.one && test -s conftest.two &&
1735 test -s conftest.dir/conftest.one &&
1736 test -s conftest.dir/conftest.two
1737 then
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739 break 3
1740 fi
e5c3f801
NN
1741 fi
1742 fi
1743 done
c6b750e1
DJ
1744 done
1745 ;;
1746esac
1747done
1748
58c85be7 1749rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1750
1751fi
1752 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1753 INSTALL=$ac_cv_path_install
e5c3f801 1754 else
58c85be7
RW
1755 # As a last resort, use the slow shell script. Don't cache a
1756 # value for INSTALL within a source directory, because that will
e5c3f801 1757 # break other packages using the cache if that directory is
58c85be7 1758 # removed, or if the value is a relative name.
c6b750e1 1759 INSTALL=$ac_install_sh
e5c3f801
NN
1760 fi
1761fi
c6b750e1
DJ
1762echo "$as_me:$LINENO: result: $INSTALL" >&5
1763echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1764
1765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766# It thinks the first close brace ends the variable substitution.
1767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768
c6b750e1 1769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1770
1771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772
c6b750e1
DJ
1773echo "$as_me:$LINENO: checking whether ln works" >&5
1774echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1775if test "${acx_cv_prog_LN+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1777else
1778 rm -f conftestdata_t
1779echo >conftestdata_f
1780if ln conftestdata_f conftestdata_t 2>/dev/null
1781then
1782 acx_cv_prog_LN=ln
1783else
1784 acx_cv_prog_LN=no
1785fi
1786rm -f conftestdata_f conftestdata_t
1787
1788fi
1789if test $acx_cv_prog_LN = no; then
1790 LN="cp"
c6b750e1
DJ
1791 echo "$as_me:$LINENO: result: no, using $LN" >&5
1792echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1793else
1794 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1795 echo "$as_me:$LINENO: result: yes" >&5
1796echo "${ECHO_T}yes" >&6
656fdd47
PB
1797fi
1798
c6b750e1
DJ
1799echo "$as_me:$LINENO: checking whether ln -s works" >&5
1800echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1801LN_S=$as_ln_s
1802if test "$LN_S" = "ln -s"; then
1803 echo "$as_me:$LINENO: result: yes" >&5
1804echo "${ECHO_T}yes" >&6
cac3d6c4 1805else
c6b750e1
DJ
1806 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1807echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1808fi
1809
e5c3f801 1810
252b5132 1811### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1812### If we are on Windows, search for the shell. This will permit people
1813### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1814### without also having to set CONFIG_SHELL. This code will work when
1815### using bash, which sets OSTYPE.
1816case "${OSTYPE}" in
1817*win32*)
a0da8069
NN
1818 if test x${CONFIG_SHELL} = x ; then
1819 if test ! -f /bin/sh ; then
1820 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1821 CONFIG_SHELL=${SHELL}
1822 export CONFIG_SHELL
1823 else
1824 for prog in sh sh.exe bash bash.exe; do
1825 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1826 for dir in $PATH; do
1827 test -z "$dir" && dir=.
1828 if test -f $dir/$prog; then
1829 CONFIG_SHELL=$dir/$prog
1830 export CONFIG_SHELL
1831 break
1832 fi
1833 done
1834 IFS="$save_ifs"
1835 test -n "${CONFIG_SHELL}" && break
1836 done
1837 fi
1838 fi
1839 fi
1840 ;;
1841esac
1842
1843config_shell=${CONFIG_SHELL-/bin/sh}
1844
a0da8069 1845moveifchange=${srcdir}/move-if-change
252b5132 1846
0fdbe983
DJ
1847srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1848
1849# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1850# a relative path.
1851if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1852 INSTALL="${srcpwd}/install-sh -c"
1853fi
1854
a0da8069
NN
1855# Set srcdir to "." if that's what it is.
1856# This is important for multilib support.
1857pwd=`${PWDCMD-pwd}`
a0da8069
NN
1858if test "${pwd}" = "${srcpwd}" ; then
1859 srcdir=.
252b5132
RH
1860fi
1861
a0da8069 1862topsrcdir=$srcpwd
252b5132 1863
a0da8069 1864extra_host_args=
afefada0 1865
a0da8069
NN
1866### To add a new directory to the tree, first choose whether it is a target
1867### or a host dependent tool. Then put it into the appropriate list
1868### (library or tools, host or target), doing a dependency sort.
252b5132 1869
c6b750e1 1870# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1871# configdirs, or target_configdirs; see the serialization section below.
252b5132 1872
c6b750e1
DJ
1873# Dependency sorting is only needed when *configuration* must be done in
1874# a particular order. In all cases a dependency should be specified in
a0da8069 1875# the Makefile, whether or not it's implicitly specified here.
252b5132 1876
a0da8069
NN
1877# Double entries in build_configdirs, configdirs, or target_configdirs may
1878# cause circular dependencies and break everything horribly.
252b5132 1879
6a9cf61e
PB
1880# these library is used by various programs built for the build
1881# environment
1882#
1883build_libs="build-libiberty"
1884
1885# these tools are built for the build environment
ee025550 1886build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1887
a0da8069
NN
1888# these libraries are used by various programs built for the host environment
1889#
dc448a7b 1890host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog libiconv"
a0da8069 1891
a0da8069
NN
1892# these tools are built for the host environment
1893# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1894# know that we are building the simulator.
1895# binutils, gas and ld appear in that order because it makes sense to run
1896# "make check" in that particular order.
93f9b408 1897# If --enable-gold is used, "gold" will replace "ld".
f9806fa5 1898host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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"
a0da8069
NN
1899
1900# libgcj represents the runtime libraries only used by gcj.
1901libgcj="target-libffi \
a0da8069
NN
1902 target-zlib \
1903 target-qthreads \
1904 target-libjava"
1905
1906# these libraries are built for the target environment, and are built after
1907# the host libraries and the host tools (which may be a cross compiler)
1908#
b1299c4e
DJ
1909target_libraries="target-libgcc \
1910 target-libiberty \
a0da8069
NN
1911 target-libgloss \
1912 target-newlib \
cff87f51 1913 target-libgomp \
b9459e83 1914 target-libstdc++-v3 \
4b1cb4fe 1915 target-libmudflap \
bb780410 1916 target-libssp \
4b1cb4fe 1917 target-libgfortran \
4f0ef2d8 1918 target-boehm-gc \
83326456 1919 ${libgcj} \
a2592b1b 1920 target-libobjc \
cff87f51 1921 target-libada"
a0da8069 1922
9c14acb8
NN
1923# these tools are built using the target libraries, and are intended to
1924# run only in the target environment
a0da8069 1925#
9c14acb8 1926# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1927# list belongs in this list. those programs are also very likely
1928# candidates for the "native_only" list which follows
1929#
a3dd767d 1930target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1931
a0da8069 1932################################################################################
252b5132 1933
a0da8069
NN
1934## All tools belong in one of the four categories, and are assigned above
1935## We assign ${configdirs} this way to remove all embedded newlines. This
1936## is important because configure will choke if they ever get through.
1937## ${configdirs} is directories we build using the host tools.
1938## ${target_configdirs} is directories we build using the target tools.
a0da8069 1939configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1940target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1941build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1942
9cc8ae67
PB
1943
1944
a0da8069 1945################################################################################
252b5132 1946
a0da8069 1947srcname="gnu development package"
252b5132 1948
a0da8069
NN
1949# This gets set non-empty for some net releases of packages.
1950appdirs=""
252b5132 1951
a0da8069
NN
1952# Define is_cross_compiler to save on calls to 'test'.
1953is_cross_compiler=
1954if test x"${host}" = x"${target}" ; then
1955 is_cross_compiler=no
252b5132 1956else
a0da8069 1957 is_cross_compiler=yes
c6b750e1 1958fi
252b5132 1959
9175bfc0 1960# Find the build and target subdir names.
dd12c3a8 1961
66a79c16
DJ
1962# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1963# have matching libraries, they should use host libraries: Makefile.tpl
1964# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1965# However, they still use the build modules, because the corresponding
1966# host modules (e.g. bison) are only built for the host when bootstrap
1967# finishes. So:
1968# - build_subdir is where we find build modules, and never changes.
1969# - build_libsubdir is where we find build libraries, and can be overridden.
1970
1971# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1972build_subdir="build-${build_noncanonical}"
c6b750e1 1973
66a79c16
DJ
1974# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1975if test "${with_build_libsubdir+set}" = set; then
1976 withval="$with_build_libsubdir"
1977 build_libsubdir="$withval"
1978else
1979 build_libsubdir="$build_subdir"
c6b750e1 1980fi;
b00612cc
PB
1981# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1982if ( test $srcdir = . && test -d gcc ) \
1983 || test -d $srcdir/../host-${host_noncanonical}; then
1984 host_subdir="host-${host_noncanonical}"
1985else
1986 host_subdir=.
1987fi
dd12c3a8
NN
1988# No prefix.
1989target_subdir=${target_noncanonical}
c6b750e1 1990
252b5132 1991
a0da8069
NN
1992# Skipdirs are removed silently.
1993skipdirs=
1994# Noconfigdirs are removed loudly.
1995noconfigdirs=""
252b5132 1996
a0da8069
NN
1997use_gnu_ld=
1998# Make sure we don't let GNU ld be added if we didn't want it.
1999if test x$with_gnu_ld = xno ; then
2000 use_gnu_ld=no
93f9b408 2001 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2002fi
2003
a0da8069
NN
2004use_gnu_as=
2005# Make sure we don't let GNU as be added if we didn't want it.
2006if test x$with_gnu_as = xno ; then
2007 use_gnu_as=no
2008 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2009fi
2010
c6b750e1 2011# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2012# it's not even worth trying to configure, much less build, that tool.
252b5132 2013
a0da8069
NN
2014case ${with_x} in
2015 yes | "") ;; # the default value for this tree is that X11 is available
2016 no)
675c6968 2017 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2018 # We won't be able to build gdbtk without X.
c6b750e1 2019 enable_gdbtk=no
a0da8069
NN
2020 ;;
2021 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2022esac
252b5132 2023
a0da8069 2024# Some tools are only suitable for building in a "native" situation.
c6b750e1 2025# Remove these if host!=target.
701628f5 2026native_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"
252b5132 2027
a0da8069
NN
2028# Similarly, some are only suitable for cross toolchains.
2029# Remove these if host=target.
2030cross_only="target-libgloss target-newlib target-opcodes"
2031
2032case $is_cross_compiler in
2033 no) skipdirs="${skipdirs} ${cross_only}" ;;
2034 yes) skipdirs="${skipdirs} ${native_only}" ;;
2035esac
252b5132 2036
a0da8069
NN
2037# If both --with-headers and --with-libs are specified, default to
2038# --without-newlib.
32be62b5
RS
2039if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2040 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2041 if test x"${with_newlib}" = x ; then
2042 with_newlib=no
2043 fi
252b5132
RH
2044fi
2045
a0da8069
NN
2046# Recognize --with-newlib/--without-newlib.
2047case ${with_newlib} in
2048 no) skipdirs="${skipdirs} target-newlib" ;;
2049 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2050esac
252b5132 2051
93f9b408
ILT
2052# Handle --enable-gold.
2053
2054# Check whether --enable-gold or --disable-gold was given.
2055if test "${enable_gold+set}" = set; then
2056 enableval="$enable_gold"
2057 ENABLE_GOLD=$enableval
2058else
2059 ENABLE_GOLD=no
2060fi;
2061if test "${ENABLE_GOLD}" = "yes"; then
2062 # Check for ELF target.
2063 is_elf=no
2064 case "${target}" in
2065 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2066 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8bcf2718 2067 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
93f9b408
ILT
2068 case "${target}" in
2069 *-*-linux*aout* | *-*-linux*oldld*)
2070 ;;
2071 *)
2072 is_elf=yes
2073 ;;
2074 esac
2075 esac
2076
2077 if test "$is_elf" = "yes"; then
2078 # Check for target supported by gold.
2079 case "${target}" in
4a657b0d 2080 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
93f9b408
ILT
2081 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2082 ;;
2083 esac
2084 fi
2085fi
2086
a0da8069 2087# Configure extra directories which are host specific
252b5132 2088
a0da8069
NN
2089case "${host}" in
2090 *-cygwin*)
2091 configdirs="$configdirs libtermcap" ;;
2092esac
252b5132 2093
59f7ec45
HPN
2094# A target can indicate whether a language isn't supported for some reason.
2095# Only spaces may be used in this macro; not newlines or tabs.
2096unsupported_languages=
2097
c6b750e1 2098# Remove more programs from consideration, based on the host or
a0da8069
NN
2099# target this usually means that a port of the program doesn't
2100# exist yet.
252b5132 2101
a0da8069
NN
2102case "${host}" in
2103 hppa*64*-*-*)
2104 noconfigdirs="$noconfigdirs byacc"
2105 ;;
ec11bdc6 2106 i[3456789]86-*-vsta)
675c6968 2107 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2108 ;;
ec11bdc6 2109 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2110 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2111 ;;
2d1e8239
NC
2112 x86_64-*-mingw*)
2113 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2114 ;;
ec11bdc6 2115 i[3456789]86-*-mingw32*)
675c6968 2116 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2117 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2118 ;;
ec11bdc6 2119 i[3456789]86-*-beos*)
675c6968 2120 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2121 ;;
a0da8069 2122 *-*-cygwin*)
a92834c8 2123 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2124 ;;
2125 *-*-netbsd*)
a92834c8 2126 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2127 ;;
2128 ppc*-*-pe)
675c6968 2129 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2130 ;;
2131 powerpc-*-beos*)
675c6968 2132 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2133 ;;
a0da8069 2134esac
252b5132 2135
4b1cb4fe 2136
a2592b1b
DD
2137# Check whether --enable-libada or --disable-libada was given.
2138if test "${enable_libada+set}" = set; then
2139 enableval="$enable_libada"
2140 ENABLE_LIBADA=$enableval
2141else
2142 ENABLE_LIBADA=yes
c6b750e1 2143fi;
a2592b1b 2144if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2145 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2146fi
2147
5f128533
KH
2148# Check whether --enable-libssp or --disable-libssp was given.
2149if test "${enable_libssp+set}" = set; then
2150 enableval="$enable_libssp"
2151 ENABLE_LIBSSP=$enableval
2152else
2153 ENABLE_LIBSSP=yes
c6b750e1 2154fi;
5f128533 2155
a0da8069
NN
2156# Save it here so that, even in case of --enable-libgcj, if the Java
2157# front-end isn't enabled, we still get libgcj disabled.
2158libgcj_saved=$libgcj
2159case $enable_libgcj in
2160yes)
2161 # If we reset it here, it won't get added to noconfigdirs in the
2162 # target-specific build rules, so it will be forcibly enabled
2163 # (unless the Java language itself isn't enabled).
2164 libgcj=
2165 ;;
2166no)
2167 # Make sure we get it printed in the list of not supported target libs.
2168 noconfigdirs="$noconfigdirs ${libgcj}"
2169 ;;
2170esac
252b5132 2171
4b1cb4fe 2172
a6df5a19
PB
2173# Disable libmudflap on some systems.
2174if test x$enable_libmudflap = x ; then
3e707e94 2175 case "${target}" in
29383458 2176 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2177 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2178 ;;
2179 *-*-freebsd*)
2180 # Enable libmudflap by default in FreeBSD.
2181 ;;
2182 *)
2183 # Disable it by default everywhere else.
2184 noconfigdirs="$noconfigdirs target-libmudflap"
2185 ;;
2186 esac
a6df5a19 2187fi
4b1cb4fe 2188
a6df5a19
PB
2189# Disable libgomp on non POSIX hosted systems.
2190if test x$enable_libgomp = x ; then
b3ded179
PB
2191 # Enable libgomp by default on hosted POSIX systems.
2192 case "${target}" in
29383458 2193 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2194 ;;
2195 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2196 ;;
64ce424c 2197 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2198 ;;
2199 *-*-darwin* | *-*-aix*)
2200 ;;
2201 *)
2202 noconfigdirs="$noconfigdirs target-libgomp"
2203 ;;
2204 esac
a6df5a19 2205fi
b3ded179 2206
691bb5a1
DD
2207# Default libgloss CPU subdirectory.
2208libgloss_dir="$target_cpu"
4b1cb4fe 2209
a0da8069
NN
2210case "${target}" in
2211 *-*-chorusos)
54d1c879 2212 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2213 ;;
24741ab2 2214 powerpc-*-darwin*)
9d39db92 2215 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2216 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 2217 ;;
85bd1942
TG
2218 i[3456789]86-*-darwin*)
2219 noconfigdirs="$noconfigdirs ld gprof"
2220 noconfigdirs="$noconfigdirs sim target-rda"
2221 ;;
2222 x86_64-*-darwin9*)
652dec25
TG
2223 noconfigdirs="$noconfigdirs ld gas gprof"
2224 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2225 ;;
04d1ab34 2226 *-*-darwin*)
d320aacb 2227 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2228 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2229 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2230 ;;
a0da8069 2231 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2232 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2233 ;;
de0b4a87 2234 *-*-freebsd*)
4b1cb4fe
DD
2235 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2236 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2237 && test -f /usr/local/include/gmp.h; then
2238 with_gmp=/usr/local
2239 fi
2240
2241 # Skip some stuff that's unsupported on some FreeBSD configurations.
2242 case "${target}" in
2243 i*86-*-*) ;;
2244 alpha*-*-*) ;;
2245 *)
54d1c879 2246 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2247 ;;
2248 esac
2249 ;;
f8a495c8
NC
2250 *-*-kaos*)
2251 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2252 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2253 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2254 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2255 noconfigdirs="$noconfigdirs target-libgloss"
2256 ;;
a0da8069
NN
2257 *-*-netbsd*)
2258 # Skip some stuff on all NetBSD configurations.
2259 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2260
2261 # Skip some stuff that's unsupported on some NetBSD configurations.
2262 case "${target}" in
2263 i*86-*-netbsdelf*) ;;
5b474aa8 2264 arm*-*-netbsdelf*) ;;
a0da8069 2265 *)
54d1c879 2266 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2267 ;;
2268 esac
2269 ;;
2a3124ca 2270 *-*-netware*)
54d1c879 2271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2272 ;;
2273 *-*-rtems*)
54d1c879 2274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2275 ;;
1587117a
EC
2276 # The tpf target doesn't support gdb yet.
2277 *-*-tpf*)
54d1c879 2278 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2279 ;;
c1968181 2280 *-*-uclinux*)
54d1c879 2281 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2282 ;;
a0da8069 2283 *-*-vxworks*)
54d1c879 2284 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2285 ;;
2286 alpha*-dec-osf*)
2287 # ld works, but does not support shared libraries.
2288 # newlib is not 64 bit ready. I'm not sure about fileutils.
2289 # gas doesn't generate exception information.
2290 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2291 ;;
2292 alpha*-*-*vms*)
54d1c879 2293 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2294 ;;
2295 alpha*-*-linux*)
2296 # newlib is not 64 bit ready
2297 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2298 ;;
a0da8069
NN
2299 alpha*-*-*)
2300 # newlib is not 64 bit ready
54d1c879 2301 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2302 ;;
4a18bd6b 2303 am33_2.0-*-linux*)
54d1c879 2304 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2305 ;;
a0da8069 2306 sh-*-linux*)
54d1c879 2307 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2308 ;;
a0da8069 2309 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2310 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2311 noconfigdirs="$noconfigdirs target-examples"
2312 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2313 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2314 noconfigdirs="$noconfigdirs expect dejagnu"
2315 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2316 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2317 noconfigdirs="$noconfigdirs target-newlib"
2318 case "${host}" in
2319 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2320 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2321 ;;
2322 esac
691bb5a1 2323 libgloss_dir=wince
a0da8069
NN
2324 ;;
2325 arc-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2327 ;;
caeba88f 2328 arm-semi-aof )
caeba88f 2329 ;;
a0da8069 2330 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2331 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2332 libgloss_dir=arm
a0da8069 2333 ;;
11b04d1f 2334 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2335 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2336 libgloss_dir=arm
a0da8069 2337 ;;
bd70a46f 2338 arm*-*-linux-gnueabi)
6d18b86b 2339 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2340 case ${with_newlib} in
2341 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2342 esac
691bb5a1 2343 libgloss_dir=arm
bd70a46f 2344 ;;
df4a6958 2345 arm*-*-symbianelf*)
54d1c879 2346 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2347 libgloss_dir=arm
df4a6958 2348 ;;
a0da8069 2349 arm-*-pe*)
54d1c879 2350 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2351 ;;
a0da8069 2352 thumb-*-coff)
54d1c879 2353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2354 ;;
2355 thumb-*-elf)
54d1c879 2356 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2357 ;;
a0da8069 2358 thumb-*-pe)
54d1c879 2359 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2360 ;;
2361 arm-*-riscix*)
54d1c879 2362 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2363 ;;
2364 avr-*-*)
266df637 2365 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2366 ;;
376a0e54 2367 bfin-*-*)
00d89675 2368 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2369 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2370 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2371 fi
2372 ;;
a0da8069 2373 c4x-*-* | tic4x-*-*)
54d1c879 2374 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2375 ;;
2376 c54x*-*-* | tic54x-*-*)
54d1c879 2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2378 ;;
52310858
NC
2379 cr16-*-*)
2380 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2381 ;;
c7e66c6d 2382 cris-*-* | crisv32-*-*)
59f7ec45 2383 unsupported_languages="$unsupported_languages java"
c7e66c6d 2384 case "${target}" in
2faa2958 2385 *-*-aout)
096f7d00 2386 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2387 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2388 *-*-elf)
5e818318 2389 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2390 *-*-linux*)
5e818318 2391 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2392 *)
096f7d00 2393 unsupported_languages="$unsupported_languages fortran"
54d1c879 2394 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2395 esac
691bb5a1 2396 libgloss_dir=cris
a0da8069 2397 ;;
3e707e94 2398 crx-*-*)
54d1c879 2399 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2400 ;;
a0da8069 2401 d10v-*-*)
54d1c879 2402 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2403 ;;
2404 d30v-*-*)
54d1c879 2405 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2406 ;;
691bb5a1
DD
2407 ep9312-*-elf | ep9312-*-coff)
2408 libgloss_dir=arm
2409 ;;
a0da8069 2410 fr30-*-elf*)
54d1c879 2411 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2412 ;;
2413 frv-*-*)
54d1c879 2414 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2415 ;;
20135e4c
NC
2416 moxie-*-*)
2417 noconfigdirs="$noconfigdirs ${libgcj}"
2418 noconfigdirs="$noconfigdirs gprof"
2419 ;;
a0da8069 2420 h8300*-*-*)
54d1c879 2421 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2422 ;;
2423 h8500-*-*)
54d1c879 2424 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2425 ;;
caeba88f 2426 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2427 ;;
a0da8069
NN
2428 hppa*64*-*-linux* | parisc*64*-*-linux*)
2429 # In this case, it's because the hppa64-linux target is for
2430 # the kernel only at this point and has no libc, and thus no
2431 # headers, crt*.o, etc., all of which are needed by these.
2432 noconfigdirs="$noconfigdirs target-zlib"
2433 ;;
5dcac624
DA
2434 parisc*-*-linux* | hppa*-*-linux*)
2435 ;;
a0da8069 2436 hppa*-*-*elf* | \
a0da8069
NN
2437 hppa*-*-lites* | \
2438 hppa*-*-openbsd* | \
2439 hppa*64*-*-*)
54d1c879 2440 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2441 ;;
2442 hppa*-hp-hpux11*)
2443 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2444 ;;
691bb5a1
DD
2445 hppa*-*-pro*)
2446 libgloss_dir=pa
2447 ;;
a0da8069
NN
2448 hppa*-*-*)
2449 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2450 # build on HP-UX 10.20.
54d1c879 2451 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2452 ;;
b07c2aad 2453 i960-*-*)
54d1c879 2454 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2455 ;;
a0da8069
NN
2456 ia64*-*-elf*)
2457 # No gdb support yet.
675c6968 2458 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2459 ;;
2460 ia64*-**-hpux*)
2461 # No gdb or ld support yet.
54d1c879 2462 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2463 ;;
19e99079
NC
2464 ia64*-*-*vms*)
2465 # No gdb or ld support yet.
2466 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2467 ;;
caeba88f 2468 i370-*-opened*)
caeba88f 2469 ;;
ec11bdc6 2470 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2471 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2472 libgloss_dir=i386
a0da8069 2473 ;;
ec11bdc6 2474 i[3456789]86-*-linux*)
a0da8069
NN
2475 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2476 # not build java stuff by default.
2477 case "${target}" in
2478 *-*-*libc1*)
54d1c879 2479 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2480 esac
2481
2482 # This section makes it possible to build newlib natively on linux.
2483 # If we are using a cross compiler then don't configure newlib.
2484 if test x${is_cross_compiler} != xno ; then
bba45b8b 2485 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2486 fi
2487 noconfigdirs="$noconfigdirs target-libgloss"
2488 # If we are not using a cross compiler, do configure newlib.
2489 # Note however, that newlib will only be configured in this situation
2490 # if the --with-newlib option has been given, because otherwise
2491 # 'target-newlib' will appear in skipdirs.
2492 ;;
ec11bdc6 2493 i[3456789]86-*-mingw32*)
45055374
CV
2494 target_configdirs="$target_configdirs target-winsup"
2495 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2496 ;;
2d1e8239
NC
2497 x86_64-*-mingw*)
2498 target_configdirs="$target_configdirs target-winsup"
2499 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2500 ;;
a0da8069
NN
2501 *-*-cygwin*)
2502 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2503 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2504 # always build newlib if winsup directory is present.
45055374 2505 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2506 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2507 elif test -d "$srcdir/newlib"; then
45055374 2508 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2509 fi
c6b750e1 2510 ;;
caeba88f
AL
2511 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2512 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2513 ;;
ec11bdc6 2514 i[3456789]86-*-pe)
54d1c879 2515 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2516 ;;
ec11bdc6 2517 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2518 # The linker does not yet know about weak symbols in COFF,
2519 # and is not configured to handle mixed ELF and COFF.
54d1c879 2520 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2521 ;;
ec11bdc6 2522 i[3456789]86-*-sco*)
54d1c879 2523 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2524 ;;
ec11bdc6 2525 i[3456789]86-*-solaris2*)
a0da8069
NN
2526 noconfigdirs="$noconfigdirs target-libgloss"
2527 ;;
ec11bdc6 2528 i[3456789]86-*-sysv4*)
54d1c879 2529 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2530 ;;
ec11bdc6 2531 i[3456789]86-*-beos*)
54d1c879 2532 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2533 ;;
b59bea8a 2534 i[3456789]86-*-rdos*)
2429c060
PB
2535 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2536 ;;
b07c2aad 2537 m32r-*-*)
54d1c879 2538 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2539 ;;
a0da8069 2540 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2541 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2542 libgloss_dir=m68hc11
a0da8069
NN
2543 ;;
2544 m68k-*-elf*)
54d1c879 2545 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2546 ;;
2547 m68k-*-coff*)
54d1c879 2548 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2549 ;;
691bb5a1
DD
2550 m68*-*-* | fido-*-*)
2551 libgloss_dir=m68k
2552 ;;
a0da8069
NN
2553 mcore-*-pe*)
2554 # The EPOC C++ environment does not support exceptions or rtti,
2555 # and so building libstdc++-v3 tends not to always work.
2556 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2557 ;;
2558 mmix-*-*)
59f7ec45 2559 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2560 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2561 ;;
2562 mn10200-*-*)
54d1c879 2563 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2564 ;;
2565 mn10300-*-*)
54d1c879 2566 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2567 ;;
4970f871 2568 mt-*-*)
cdb9b172
AH
2569 noconfigdirs="$noconfigdirs sim"
2570 ;;
a0da8069
NN
2571 powerpc-*-aix*)
2572 # copied from rs6000-*-* entry
54d1c879 2573 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2574 ;;
2575 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2576 target_configdirs="$target_configdirs target-winsup"
54d1c879 2577 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2578 # always build newlib.
2579 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2580 ;;
2581 # This is temporary until we can link against shared libraries
2582 powerpcle-*-solaris*)
54d1c879 2583 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2584 libgloss_dir=rs6000
a0da8069
NN
2585 ;;
2586 powerpc-*-beos*)
54d1c879 2587 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2588 ;;
a0da8069 2589 powerpc-*-eabi)
54d1c879 2590 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2591 libgloss_dir=rs6000
caeba88f
AL
2592 ;;
2593 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2594 libgloss_dir=rs6000
a0da8069 2595 ;;
a0da8069 2596 rs6000-*-lynxos*)
54d1c879 2597 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2598 ;;
2599 rs6000-*-aix*)
54d1c879 2600 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2601 ;;
2602 rs6000-*-*)
54d1c879 2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2604 ;;
2605 m68k-apollo-*)
54d1c879 2606 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2607 ;;
25a07265
NC
2608 microblaze*)
2609 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2610 ;;
5bd8be13
RS
2611 mips*-sde-elf*)
2612 skipdirs="$skipdirs target-libiberty"
2613 noconfigdirs="$noconfigdirs ${libgcj}"
2614 if test x$with_newlib = xyes; then
2615 noconfigdirs="$noconfigdirs gprof"
2616 fi
2617 libgloss_dir=mips
2618 ;;
a0da8069 2619 mips*-*-irix5*)
54d1c879 2620 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2621 ;;
2622 mips*-*-irix6*)
a0da8069
NN
2623 # Linking libjava exceeds command-line length limits on at least
2624 # IRIX 6.2, but not on IRIX 6.5.
2625 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2626 # <oldham@codesourcery.com>
54d1c879 2627 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2628 ;;
a0da8069 2629 mips*-*-bsd*)
54d1c879 2630 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2631 ;;
a0da8069
NN
2632 mips*-*-linux*)
2633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2634 ;;
2635 mips*-*-*)
54d1c879 2636 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2637 libgloss_dir=mips
a0da8069
NN
2638 ;;
2639 romp-*-*)
54d1c879 2640 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2641 ;;
dbf85af7 2642 sh-*-* | sh64-*-*)
a0da8069 2643 case "${host}" in
ec11bdc6
DD
2644 i[3456789]86-*-vsta) ;; # don't add gprof back in
2645 i[3456789]86-*-go32*) ;; # don't add gprof back in
2646 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2647 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2648 esac
54d1c879 2649 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2650 ;;
691bb5a1
DD
2651 sparclet-*-aout* | sparc86x-*-*)
2652 libgloss_dir=sparc
2653 ;;
a0da8069 2654 sparc-*-elf*)
54d1c879 2655 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2656 ;;
2657 sparc64-*-elf*)
54d1c879 2658 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2659 libgloss_dir=sparc
a0da8069
NN
2660 ;;
2661 sparclite-*-*)
54d1c879 2662 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2663 libgloss_dir=sparc
a0da8069
NN
2664 ;;
2665 sparc-*-sunos4*)
54d1c879 2666 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2667 if test x${is_cross_compiler} != xno ; then
2668 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2669 else
2670 use_gnu_ld=no
2671 fi
2672 ;;
e3c770b1 2673 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2674 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2675 ;;
a0da8069
NN
2676 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2677 ;;
2678 v810-*-*)
54d1c879 2679 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2680 ;;
2681 v850-*-*)
54d1c879 2682 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2683 ;;
2684 v850e-*-*)
54d1c879 2685 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2686 ;;
2687 v850ea-*-*)
54d1c879 2688 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2689 ;;
2690 vax-*-vms)
54d1c879 2691 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2692 ;;
2693 vax-*-*)
54d1c879 2694 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2695 ;;
8b66833e 2696 xtensa*-*-*)
54d1c879 2697 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2698 ;;
a0da8069 2699 ip2k-*-*)
54d1c879 2700 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2701 ;;
29383458 2702 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
2703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2704 ;;
2705 *-*-lynxos*)
54d1c879 2706 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2707 ;;
a0da8069 2708 *-*-*)
54d1c879 2709 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2710 ;;
2711esac
252b5132 2712
a0da8069
NN
2713# If we aren't building newlib, then don't build libgloss, since libgloss
2714# depends upon some newlib header files.
2715case "${noconfigdirs}" in
2716 *target-libgloss*) ;;
2717 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2718esac
2719
a0da8069
NN
2720# Work in distributions that contain no compiler tools, like Autoconf.
2721tentative_cc=""
2722host_makefile_frag=/dev/null
2723if test -d ${srcdir}/config ; then
2724case "${host}" in
2725 m68k-hp-hpux*)
2726 # Avoid "too much defining" errors from HPUX compiler.
2727 tentative_cc="cc -Wp,-H256000"
2728 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2729 # If it's HP/UX ar, this should be harmless.
2730 RANLIB="ar ts"
2731 ;;
2732 m68k-apollo-sysv*)
2733 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2734 ;;
2735 m68k-apollo-bsd*)
2736 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2737 # chokes on bfd, the compiler won't let you assign integers to enums, and
2738 # other problems. Defining CC to gcc is a questionable way to say "don't use
2739 # the apollo compiler" (the preferred version of GCC could be called cc,
2740 # or whatever), but I'm not sure leaving CC as cc is any better...
2741 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2742 # Used to have BISON=yacc.
2743 tentative_cc=gcc
2744 ;;
2745 m88k-dg-dgux*)
2746 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2747 ;;
2748 m88k-harris-cxux*)
2749 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2750 tentative_cc="cc -Xa"
2751 host_makefile_frag="config/mh-cxux"
2752 ;;
2753 m88k-motorola-sysv*)
2754 ;;
2755 mips*-dec-ultrix*)
2756 tentative_cc="cc -Wf,-XNg1000"
2757 host_makefile_frag="config/mh-decstation"
2758 ;;
2759 mips*-nec-sysv4*)
2760 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2761 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2762 host_makefile_frag="config/mh-necv4"
2763 ;;
2764 mips*-sgi-irix4*)
2765 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2766 # environment. Also bump switch table size so that cp-parse will
2767 # compile. Bump string length limit so linker builds.
2768 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2769 ;;
2770 mips*-*-sysv4*)
2771 host_makefile_frag="config/mh-sysv4"
2772 ;;
2773 mips*-*-sysv*)
2774 # This is for a MIPS running RISC/os 4.52C.
2775
2776 # This is needed for GDB, but needs to be in the top-level make because
2777 # if a library is compiled with the bsd headers and gets linked with the
2778 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2779 # a different size).
2780 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2781 # known except to select the sysv environment. Could we use /proc instead?
2782 # These "sysv environments" and "bsd environments" often end up being a pain.
2783 #
2784 # This is not part of CFLAGS because perhaps not all C compilers have this
2785 # option.
2786 tentative_cc="cc -systype sysv"
2787 ;;
2788 i370-ibm-opened*)
2789 tentative_cc="c89"
2790 ;;
ec11bdc6 2791 i[3456789]86-*-sysv5*)
a0da8069
NN
2792 host_makefile_frag="config/mh-sysv5"
2793 ;;
ec11bdc6 2794 i[3456789]86-*-dgux*)
a0da8069
NN
2795 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2796 host_makefile_frag="config/mh-dgux386"
2797 ;;
ec11bdc6 2798 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2799 # The MetaWare compiler will generate a copyright message unless you
2800 # turn it off by adding the -Hnocopyr flag.
2801 tentative_cc="cc -Hnocopyr"
2802 ;;
ec11bdc6 2803 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2804 # for an NCR 3000 (i486/SVR4) system.
2805 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2806 # This compiler not only emits obnoxious copyright messages every time
2807 # you run it, but it chokes and dies on a whole bunch of GNU source
2808 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2809 tentative_cc="/usr/ccs/ATT/cc"
2810 host_makefile_frag="config/mh-ncr3000"
2811 ;;
ec11bdc6 2812 i[3456789]86-*-sco3.2v5*)
a0da8069 2813 ;;
ec11bdc6 2814 i[3456789]86-*-sco*)
a0da8069
NN
2815 # The native C compiler botches some simple uses of const. Unfortunately,
2816 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2817 tentative_cc="cc -Dconst="
2818 host_makefile_frag="config/mh-sco"
2819 ;;
ec11bdc6 2820 i[3456789]86-*-udk*)
a0da8069
NN
2821 host_makefile_frag="config/mh-sysv5"
2822 ;;
ec11bdc6 2823 i[3456789]86-*-solaris2*)
a0da8069
NN
2824 host_makefile_frag="config/mh-sysv4"
2825 ;;
ec11bdc6 2826 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2827 host_makefile_frag="config/mh-djgpp"
2828 ;;
2829 *-cygwin*)
e33b51a6
NC
2830
2831echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2832echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2833echo a >cygwin-cat-check
2834if test `cat cygwin-cat-check` == a ; then
8ade07e9 2835 rm cygwin-cat-check
e33b51a6
NC
2836 echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6
2838else
8ade07e9 2839 rm cygwin-cat-check
e33b51a6
NC
2840 echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
2842 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2843 Please either mount the build directory in binary mode or run the following
2844 commands before running any configure script:
2845set -o igncr
2846export SHELLOPTS
2847 " >&5
2848echo "$as_me: error: The cat command does not ignore carriage return characters.
2849 Please either mount the build directory in binary mode or run the following
2850 commands before running any configure script:
2851set -o igncr
2852export SHELLOPTS
2853 " >&2;}
2854 { (exit 1); exit 1; }; }
2855fi
e33b51a6 2856
a0da8069
NN
2857 host_makefile_frag="config/mh-cygwin"
2858 ;;
8a1599ab 2859 *-mingw*)
84e7906e 2860 host_makefile_frag="config/mh-mingw"
2d1e8239 2861 ;;
a0da8069
NN
2862 *-interix*)
2863 host_makefile_frag="config/mh-interix"
2864 ;;
2865 vax-*-ultrix2*)
2866 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2867 tentative_cc=gcc
2868 ;;
2869 *-*-solaris2*)
2870 host_makefile_frag="config/mh-solaris"
2871 ;;
2872 m68k-sun-sunos*)
2873 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2874 # without overflowing the jump tables (-J says to use a 32 bit table)
2875 tentative_cc="cc -J"
2876 ;;
da888c87 2877 hppa*-hp-hpux10*)
a0da8069 2878 tentative_cc="cc -Wp,-H256000"
da888c87 2879 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2880 ;;
da888c87
PB
2881 hppa*-hp-hpux* | hppa*-*-hiux*)
2882 tentative_cc="cc -Wp,-H256000"
2883 host_makefile_frag="config/mh-pa"
2884 ;;
2885 hppa*-*)
2886 host_makefile_frag="config/mh-pa"
2887 ;;
2888 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2889 tentative_cc="cc -Wp,-H256000"
2890 ;;
2891 rs6000-*-lynxos*)
2892 # /bin/cc is less than useful for our purposes. Always use GCC
2893 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2894 host_makefile_frag="config/mh-lynxrs6k"
2895 ;;
0df3d27f
PB
2896 powerpc-*-darwin*)
2897 host_makefile_frag="config/mh-ppc-darwin"
2898 ;;
f6d183c0
PB
2899 powerpc-*-aix*)
2900 host_makefile_frag="config/mh-ppc-aix"
2901 ;;
2902 rs6000-*-aix*)
2903 host_makefile_frag="config/mh-ppc-aix"
2904 ;;
a0da8069
NN
2905 *-*-lynxos*)
2906 # /bin/cc is less than useful for our purposes. Always use GCC
2907 tentative_cc="/bin/gcc"
2908 ;;
2909 *-*-sysv4*)
2910 host_makefile_frag="config/mh-sysv4"
2911 ;;
fe69863c
DD
2912 # This is placed last to prevent interfering with the cases above.
2913 i[3456789]86-*-*)
2914 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2915 host_makefile_frag="config/mh-x86omitfp"
2916 ;;
a0da8069
NN
2917esac
2918fi
2919
9e07f89d
NN
2920# If we aren't going to be using gcc, see if we can extract a definition
2921# of CC from the fragment.
2922# Actually, use the 'pre-extracted' version above.
2923if test -z "${CC}" && test "${build}" = "${host}" ; then
2924 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2925 found=
2926 for dir in $PATH; do
2927 test -z "$dir" && dir=.
2928 if test -f $dir/gcc; then
2929 found=yes
2930 break
2931 fi
2932 done
2933 IFS="$save_ifs"
2934 if test -z "${found}" && test -n "${tentative_cc}" ; then
2935 CC=$tentative_cc
2936 fi
2937fi
2938
2939if test "${build}" != "${host}" ; then
1576798e
PB
2940 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2941 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2942 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2943 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2944 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2945 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2946 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2947 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2948 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2949 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2950 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2951 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2952else
2953 AR_FOR_BUILD="\$(AR)"
2954 AS_FOR_BUILD="\$(AS)"
512b7dfb 2955 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2956 CXX_FOR_BUILD="\$(CXX)"
2957 GCJ_FOR_BUILD="\$(GCJ)"
2958 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2959 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2960 LD_FOR_BUILD="\$(LD)"
2961 NM_FOR_BUILD="\$(NM)"
2962 RANLIB_FOR_BUILD="\$(RANLIB)"
2963 WINDRES_FOR_BUILD="\$(WINDRES)"
2964 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2965fi
2966
2967ac_ext=c
c6b750e1
DJ
2968ac_cpp='$CPP $CPPFLAGS'
2969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2974set dummy ${ac_tool_prefix}gcc; ac_word=$2
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995done
2996
2997fi
2998fi
2999CC=$ac_cv_prog_CC
3000if test -n "$CC"; then
3001 echo "$as_me:$LINENO: result: $CC" >&5
3002echo "${ECHO_T}$CC" >&6
3003else
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
3006fi
3007
3008fi
3009if test -z "$ac_cv_prog_CC"; then
3010 ac_ct_CC=$CC
6a9cf61e 3011 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3012set dummy gcc; ac_word=$2
c6b750e1
DJ
3013echo "$as_me:$LINENO: checking for $ac_word" >&5
3014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_ac_ct_CC="gcc"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032done
3033done
3034
3035fi
3036fi
3037ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038if test -n "$ac_ct_CC"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3040echo "${ECHO_T}$ac_ct_CC" >&6
3041else
3042 echo "$as_me:$LINENO: result: no" >&5
3043echo "${ECHO_T}no" >&6
3044fi
3045
3046 CC=$ac_ct_CC
3047else
3048 CC="$ac_cv_prog_CC"
3049fi
3050
3051if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054set dummy ${ac_tool_prefix}cc; ac_word=$2
3055echo "$as_me:$LINENO: checking for $ac_word" >&5
3056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3057if test "${ac_cv_prog_CC+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3059else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062else
c6b750e1
DJ
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_CC="${ac_tool_prefix}cc"
3071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074done
3075done
3076
9e07f89d
NN
3077fi
3078fi
c6b750e1 3079CC=$ac_cv_prog_CC
9e07f89d 3080if test -n "$CC"; then
c6b750e1
DJ
3081 echo "$as_me:$LINENO: result: $CC" >&5
3082echo "${ECHO_T}$CC" >&6
9e07f89d 3083else
c6b750e1
DJ
3084 echo "$as_me:$LINENO: result: no" >&5
3085echo "${ECHO_T}no" >&6
9e07f89d
NN
3086fi
3087
c6b750e1
DJ
3088fi
3089if test -z "$ac_cv_prog_CC"; then
3090 ac_ct_CC=$CC
3091 # Extract the first word of "cc", so it can be a program name with args.
3092set dummy cc; ac_word=$2
3093echo "$as_me:$LINENO: checking for $ac_word" >&5
3094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_ac_ct_CC="cc"
3109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112done
3113done
3114
3115fi
3116fi
3117ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118if test -n "$ac_ct_CC"; then
3119 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3120echo "${ECHO_T}$ac_ct_CC" >&6
3121else
3122 echo "$as_me:$LINENO: result: no" >&5
3123echo "${ECHO_T}no" >&6
3124fi
3125
3126 CC=$ac_ct_CC
3127else
3128 CC="$ac_cv_prog_CC"
3129fi
3130
3131fi
9e07f89d
NN
3132if test -z "$CC"; then
3133 # Extract the first word of "cc", so it can be a program name with args.
3134set dummy cc; ac_word=$2
c6b750e1
DJ
3135echo "$as_me:$LINENO: checking for $ac_word" >&5
3136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137if test "${ac_cv_prog_CC+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3139else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
9e07f89d 3143 ac_prog_rejected=no
c6b750e1
DJ
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152 ac_prog_rejected=yes
3153 continue
3154 fi
3155 ac_cv_prog_CC="cc"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159done
3160done
3161
9e07f89d
NN
3162if test $ac_prog_rejected = yes; then
3163 # We found a bogon in the path, so make sure we never use it.
3164 set dummy $ac_cv_prog_CC
3165 shift
c6b750e1 3166 if test $# != 0; then
9e07f89d
NN
3167 # We chose a different compiler from the bogus one.
3168 # However, it has the same basename, so the bogon will be chosen
3169 # first if we set CC to just the basename; use the full file name.
3170 shift
c6b750e1 3171 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3172 fi
3173fi
3174fi
3175fi
c6b750e1 3176CC=$ac_cv_prog_CC
9e07f89d 3177if test -n "$CC"; then
c6b750e1
DJ
3178 echo "$as_me:$LINENO: result: $CC" >&5
3179echo "${ECHO_T}$CC" >&6
9e07f89d 3180else
c6b750e1
DJ
3181 echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
9e07f89d
NN
3183fi
3184
c6b750e1
DJ
3185fi
3186if test -z "$CC"; then
3187 if test -n "$ac_tool_prefix"; then
3188 for ac_prog in cl
3189 do
3190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3192echo "$as_me:$LINENO: checking for $ac_word" >&5
3193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194if test "${ac_cv_prog_CC+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3196else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199else
c6b750e1
DJ
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
376a0e54 3210 fi
c6b750e1
DJ
3211done
3212done
cac3d6c4 3213
c6b750e1
DJ
3214fi
3215fi
3216CC=$ac_cv_prog_CC
3217if test -n "$CC"; then
3218 echo "$as_me:$LINENO: result: $CC" >&5
3219echo "${ECHO_T}$CC" >&6
cac3d6c4 3220else
c6b750e1
DJ
3221 echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
9e07f89d 3223fi
cac3d6c4 3224
c6b750e1
DJ
3225 test -n "$CC" && break
3226 done
cac3d6c4 3227fi
c6b750e1
DJ
3228if test -z "$CC"; then
3229 ac_ct_CC=$CC
3230 for ac_prog in cl
3231do
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233set dummy $ac_prog; ac_word=$2
3234echo "$as_me:$LINENO: checking for $ac_word" >&5
3235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3238else
c6b750e1
DJ
3239 if test -n "$ac_ct_CC"; then
3240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3241else
c6b750e1
DJ
3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243for as_dir in $PATH
3244do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_ac_ct_CC="$ac_prog"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253done
3254done
3255
cac3d6c4
CM
3256fi
3257fi
c6b750e1
DJ
3258ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259if test -n "$ac_ct_CC"; then
3260 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3261echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3262else
c6b750e1
DJ
3263 echo "$as_me:$LINENO: result: no" >&5
3264echo "${ECHO_T}no" >&6
cac3d6c4 3265fi
376a0e54 3266
c6b750e1
DJ
3267 test -n "$ac_ct_CC" && break
3268done
3269
3270 CC=$ac_ct_CC
3271fi
3272
3273fi
3274
3275
7a283e07
RW
3276test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3277echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3279See \`config.log' for more details." >&5
3280echo "$as_me: error: no acceptable C compiler found in \$PATH
3281See \`config.log' for more details." >&2;}
7a283e07 3282 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3283
3284# Provide some information about the compiler.
3285echo "$as_me:$LINENO:" \
3286 "checking for C compiler version" >&5
3287ac_compiler=`set X $ac_compile; echo $2`
3288{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3289 (eval $ac_compiler --version </dev/null >&5) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }
3293{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3294 (eval $ac_compiler -v </dev/null >&5) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3299 (eval $ac_compiler -V </dev/null >&5) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }
3303
3304cat >conftest.$ac_ext <<_ACEOF
3305/* confdefs.h. */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319ac_clean_files_save=$ac_clean_files
3320ac_clean_files="$ac_clean_files a.out a.exe b.out"
3321# Try to create an executable without -o first, disregard a.out.
3322# It will help us diagnose broken compilers, and finding out an intuition
3323# of exeext.
3324echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3325echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3326ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3327if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3328 (eval $ac_link_default) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; then
3332 # Find the output, starting from the most likely. This scheme is
3333# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3334# resort.
3335
3336# Be careful to initialize this variable, since it used to be cached.
3337# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3338ac_cv_exeext=
3339# b.out is created by i960 compilers.
3340for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3341do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3345 ;;
3346 conftest.$ac_ext )
3347 # This is the source file.
3348 ;;
3349 [ab].out )
3350 # We found the default executable, but exeext='' is most
3351 # certainly right.
3352 break;;
3353 *.* )
3354 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355 # FIXME: I believe we export ac_cv_exeext for Libtool,
3356 # but it would be cool to find out if it's true. Does anybody
3357 # maintain Libtool? --akim.
3358 export ac_cv_exeext
3359 break;;
3360 * )
3361 break;;
3362 esac
3363done
3364else
3365 echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
7a283e07
RW
3368{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3369echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3370{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3371See \`config.log' for more details." >&5
3372echo "$as_me: error: C compiler cannot create executables
3373See \`config.log' for more details." >&2;}
7a283e07 3374 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3375fi
3376
3377ac_exeext=$ac_cv_exeext
3378echo "$as_me:$LINENO: result: $ac_file" >&5
3379echo "${ECHO_T}$ac_file" >&6
3380
3381# Check the compiler produces executables we can run. If not, either
3382# the compiler is broken, or we cross compile.
3383echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3384echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3385# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3386# If not cross compiling, check that we can run a simple program.
3387if test "$cross_compiling" != yes; then
3388 if { ac_try='./$ac_file'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
7a283e07
RW
3399 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3402If you meant to cross compile, use \`--host'.
3403See \`config.log' for more details." >&5
3404echo "$as_me: error: cannot run C compiled programs.
3405If you meant to cross compile, use \`--host'.
3406See \`config.log' for more details." >&2;}
7a283e07 3407 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3408 fi
3409 fi
3410fi
3411echo "$as_me:$LINENO: result: yes" >&5
3412echo "${ECHO_T}yes" >&6
3413
3414rm -f a.out a.exe conftest$ac_cv_exeext b.out
3415ac_clean_files=$ac_clean_files_save
3416# Check the compiler produces executables we can run. If not, either
3417# the compiler is broken, or we cross compile.
3418echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3419echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3420echo "$as_me:$LINENO: result: $cross_compiling" >&5
3421echo "${ECHO_T}$cross_compiling" >&6
3422
3423echo "$as_me:$LINENO: checking for suffix of executables" >&5
3424echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426 (eval $ac_link) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; then
3430 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3431# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3432# work properly (i.e., refer to `conftest.exe'), while it won't with
3433# `rm'.
3434for ac_file in conftest.exe conftest conftest.*; do
3435 test -f "$ac_file" || continue
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3438 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439 export ac_cv_exeext
3440 break;;
3441 * ) break;;
3442 esac
3443done
3444else
7a283e07
RW
3445 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3446echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3450See \`config.log' for more details." >&2;}
7a283e07 3451 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3452fi
3453
3454rm -f conftest$ac_cv_exeext
3455echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3456echo "${ECHO_T}$ac_cv_exeext" >&6
3457
3458rm -f conftest.$ac_ext
3459EXEEXT=$ac_cv_exeext
3460ac_exeext=$EXEEXT
3461echo "$as_me:$LINENO: checking for suffix of object files" >&5
3462echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3463if test "${ac_cv_objext+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */
3472
3473int
3474main ()
3475{
3476
3477 ;
3478 return 0;
3479}
3480_ACEOF
3481rm -f conftest.o conftest.obj
3482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 (eval $ac_compile) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; then
3487 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491 break;;
3492 esac
3493done
cac3d6c4 3494else
c6b750e1
DJ
3495 echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
7a283e07
RW
3498{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3499echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3500{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3501See \`config.log' for more details." >&5
3502echo "$as_me: error: cannot compute suffix of object files: cannot compile
3503See \`config.log' for more details." >&2;}
7a283e07 3504 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3505fi
3506
3507rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508fi
3509echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3510echo "${ECHO_T}$ac_cv_objext" >&6
3511OBJEXT=$ac_cv_objext
3512ac_objext=$OBJEXT
3513echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518 cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524
3525int
3526main ()
3527{
3528#ifndef __GNUC__
3529 choke me
3530#endif
3531
3532 ;
3533 return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 ac_compiler_gnu=yes
3559else
3560 echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563ac_compiler_gnu=no
3564fi
3565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568fi
3569echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571GCC=`test $ac_compiler_gnu = yes && echo yes`
3572ac_test_CFLAGS=${CFLAGS+set}
3573ac_save_CFLAGS=$CFLAGS
3574CFLAGS="-g"
3575echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577if test "${ac_cv_prog_cc_g+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580 cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595rm -f conftest.$ac_objext
3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
9e07f89d
NN
3617 ac_cv_prog_cc_g=yes
3618else
c6b750e1
DJ
3619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3621
c6b750e1 3622ac_cv_prog_cc_g=no
376a0e54 3623fi
c6b750e1
DJ
3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625fi
3626echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3628if test "$ac_test_CFLAGS" = set; then
c6b750e1 3629 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3630elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3632 CFLAGS="-g -O2"
3633 else
3634 CFLAGS="-g"
3635 fi
3636else
3637 if test "$GCC" = yes; then
3638 CFLAGS="-O2"
3639 else
3640 CFLAGS=
3641 fi
3642fi
c6b750e1
DJ
3643echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648 ac_cv_prog_cc_stdc=no
3649ac_save_CC=$CC
3650cat >conftest.$ac_ext <<_ACEOF
3651/* confdefs.h. */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h. */
3656#include <stdarg.h>
3657#include <stdio.h>
3658#include <sys/types.h>
3659#include <sys/stat.h>
3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661struct buf { int x; };
3662FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663static char *e (p, i)
3664 char **p;
3665 int i;
3666{
3667 return p[i];
3668}
3669static char *f (char * (*g) (char **, int), char **p, ...)
3670{
3671 char *s;
3672 va_list v;
3673 va_start (v,p);
3674 s = g (p, va_arg (v,int));
3675 va_end (v);
3676 return s;
3677}
3678
3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std1 is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std1. */
3686int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688int test (int i, double x);
3689struct s1 {int (*f) (int a);};
3690struct s2 {int (*f) (double a);};
3691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692int argc;
3693char **argv;
3694int
3695main ()
3696{
3697return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702# Don't try gcc -ansi; that turns off useful extensions and
3703# breaks some systems' header files.
3704# AIX -qlanglvl=ansi
3705# Ultrix and OSF/1 -std1
3706# HP-UX 10.20 and later -Ae
3707# HP-UX older versions -Aa -D_HPUX_SOURCE
3708# SVR4 -Xc -D__EXTENSIONS__
3709for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710do
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_prog_cc_stdc=$ac_arg
3735break
3736else
3737 echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740fi
3741rm -f conftest.err conftest.$ac_objext
3742done
3743rm -f conftest.$ac_ext conftest.$ac_objext
3744CC=$ac_save_CC
3745
3746fi
3747
3748case "x$ac_cv_prog_cc_stdc" in
3749 x|xno)
3750 echo "$as_me:$LINENO: result: none needed" >&5
3751echo "${ECHO_T}none needed" >&6 ;;
3752 *)
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755 CC="$CC $ac_cv_prog_cc_stdc" ;;
3756esac
3757
3758# Some people use a C++ compiler to compile C. Since we use `exit',
3759# in C++ we need to declare it. In case someone uses the same compiler
3760# for both compiling C and C++ we need to have the C++ compiler decide
3761# the declaration of exit, since it's the most demanding environment.
3762cat >conftest.$ac_ext <<_ACEOF
3763#ifndef __cplusplus
3764 choke me
3765#endif
3766_ACEOF
3767rm -f conftest.$ac_objext
3768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3770 ac_status=$?
3771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 for ac_declaration in \
3790 '' \
3791 'extern "C" void std::exit (int) throw (); using std::exit;' \
3792 'extern "C" void std::exit (int); using std::exit;' \
3793 'extern "C" void exit (int) throw ();' \
3794 'extern "C" void exit (int);' \
3795 'void exit (int);'
3796do
3797 cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
3803$ac_declaration
3804#include <stdlib.h>
3805int
3806main ()
3807{
3808exit (42);
3809 ;
3810 return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext
3814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3835 :
3836else
3837 echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840continue
3841fi
3842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843 cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h. */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h. */
3849$ac_declaration
3850int
3851main ()
3852{
3853exit (42);
3854 ;
3855 return 0;
3856}
3857_ACEOF
3858rm -f conftest.$ac_objext
3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 break
3881else
3882 echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885fi
3886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887done
3888rm -f conftest*
3889if test -n "$ac_declaration"; then
3890 echo '#ifdef __cplusplus' >>confdefs.h
3891 echo $ac_declaration >>confdefs.h
3892 echo '#endif' >>confdefs.h
3893fi
3894
3895else
3896 echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899fi
3900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3906
18f6b6ee
PB
3907ac_ext=cc
3908ac_cpp='$CXXCPP $CPPFLAGS'
3909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912if test -n "$ac_tool_prefix"; then
3913 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3914 do
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917echo "$as_me:$LINENO: checking for $ac_word" >&5
3918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919if test "${ac_cv_prog_CXX+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936done
3937done
512b7dfb 3938
18f6b6ee
PB
3939fi
3940fi
3941CXX=$ac_cv_prog_CXX
3942if test -n "$CXX"; then
3943 echo "$as_me:$LINENO: result: $CXX" >&5
3944echo "${ECHO_T}$CXX" >&6
3945else
3946 echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
3948fi
3949
3950 test -n "$CXX" && break
3951 done
3952fi
3953if test -z "$CXX"; then
3954 ac_ct_CXX=$CXX
3955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3956do
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958set dummy $ac_prog; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test -n "$ac_ct_CXX"; then
3965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
512b7dfb 3977 fi
18f6b6ee
PB
3978done
3979done
512b7dfb 3980
18f6b6ee
PB
3981fi
3982fi
3983ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984if test -n "$ac_ct_CXX"; then
3985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986echo "${ECHO_T}$ac_ct_CXX" >&6
3987else
3988 echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
3990fi
3991
3992 test -n "$ac_ct_CXX" && break
3993done
3994test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996 CXX=$ac_ct_CXX
3997fi
3998
3999
4000# Provide some information about the compiler.
4001echo "$as_me:$LINENO:" \
4002 "checking for C++ compiler version" >&5
4003ac_compiler=`set X $ac_compile; echo $2`
4004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 (eval $ac_compiler --version </dev/null >&5) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010 (eval $ac_compiler -v </dev/null >&5) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015 (eval $ac_compiler -V </dev/null >&5) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4019
4020echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
4031
4032int
4033main ()
4034{
4035#ifndef __GNUC__
4036 choke me
4037#endif
4038
4039 ;
4040 return 0;
4041}
4042_ACEOF
4043rm -f conftest.$ac_objext
4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_compiler_gnu=yes
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070ac_compiler_gnu=no
4071fi
4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075fi
4076echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078GXX=`test $ac_compiler_gnu = yes && echo yes`
4079ac_test_CXXFLAGS=${CXXFLAGS+set}
4080ac_save_CXXFLAGS=$CXXFLAGS
4081CXXFLAGS="-g"
4082echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084if test "${ac_cv_prog_cxx_g+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
4093
4094int
4095main ()
4096{
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_prog_cxx_g=yes
4125else
4126 echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129ac_cv_prog_cxx_g=no
4130fi
4131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132fi
4133echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135if test "$ac_test_CXXFLAGS" = set; then
4136 CXXFLAGS=$ac_save_CXXFLAGS
4137elif test $ac_cv_prog_cxx_g = yes; then
4138 if test "$GXX" = yes; then
4139 CXXFLAGS="-g -O2"
4140 else
4141 CXXFLAGS="-g"
4142 fi
4143else
4144 if test "$GXX" = yes; then
4145 CXXFLAGS="-O2"
4146 else
4147 CXXFLAGS=
4148 fi
4149fi
4150for ac_declaration in \
4151 '' \
4152 'extern "C" void std::exit (int) throw (); using std::exit;' \
4153 'extern "C" void std::exit (int); using std::exit;' \
4154 'extern "C" void exit (int) throw ();' \
4155 'extern "C" void exit (int);' \
4156 'void exit (int);'
4157do
4158 cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164$ac_declaration
4165#include <stdlib.h>
4166int
4167main ()
4168{
4169exit (42);
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext
4175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_cxx_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 :
4197else
4198 echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201continue
4202fi
4203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
4210$ac_declaration
4211int
4212main ()
4213{
4214exit (42);
4215 ;
4216 return 0;
4217}
4218_ACEOF
4219rm -f conftest.$ac_objext
4220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 break
4242else
4243 echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246fi
4247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248done
4249rm -f conftest*
4250if test -n "$ac_declaration"; then
4251 echo '#ifdef __cplusplus' >>confdefs.h
4252 echo $ac_declaration >>confdefs.h
4253 echo '#endif' >>confdefs.h
4254fi
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263# We must set the default linker to the linker used by gcc for the correct
4264# operation of libtool. If LD is not defined and we are using gcc, try to
4265# set the LD default to the ld used by gcc.
4266if test -z "$LD"; then
4267 if test "$GCC" = yes; then
4268 case $build in
4269 *-*-mingw*)
4270 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4271 *)
4272 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4273 esac
4274 case $gcc_prog_ld in
4275 # Accept absolute paths.
4276 [\\/]* | [A-Za-z]:[\\/]*)
4277 LD="$gcc_prog_ld" ;;
4278 esac
4279 fi
512b7dfb
PB
4280fi
4281
4282
4283
4284
c6b750e1 4285if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4286 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4287set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4288echo "$as_me:$LINENO: checking for $ac_word" >&5
4289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4290if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4291 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4292else
512b7dfb
PB
4293 if test -n "$GNATBIND"; then
4294 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4295else
c6b750e1
DJ
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4303 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307done
4308done
4309
9e07f89d
NN
4310fi
4311fi
512b7dfb
PB
4312GNATBIND=$ac_cv_prog_GNATBIND
4313if test -n "$GNATBIND"; then
4314 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4315echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4316else
c6b750e1
DJ
4317 echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6
9e07f89d
NN
4319fi
4320
c6b750e1 4321fi
512b7dfb
PB
4322if test -z "$ac_cv_prog_GNATBIND"; then
4323 ac_ct_GNATBIND=$GNATBIND
4324 # Extract the first word of "gnatbind", so it can be a program name with args.
4325set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4326echo "$as_me:$LINENO: checking for $ac_word" >&5
4327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4328if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4329 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4330else
512b7dfb
PB
4331 if test -n "$ac_ct_GNATBIND"; then
4332 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4333else
c6b750e1
DJ
4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4341 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4344 fi
4345done
4346done
4347
512b7dfb 4348 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4349fi
4350fi
512b7dfb
PB
4351ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4352if test -n "$ac_ct_GNATBIND"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4354echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4355else
c6b750e1
DJ
4356 echo "$as_me:$LINENO: result: no" >&5
4357echo "${ECHO_T}no" >&6
9e07f89d
NN
4358fi
4359
512b7dfb 4360 GNATBIND=$ac_ct_GNATBIND
24ff9987 4361else
512b7dfb 4362 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4363fi
4364
7df2cd5d 4365if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4366 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4367set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4368echo "$as_me:$LINENO: checking for $ac_word" >&5
4369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4370if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
512b7dfb
PB
4373 if test -n "$GNATMAKE"; then
4374 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4383 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387done
4388done
4389
4390fi
4391fi
512b7dfb
PB
4392GNATMAKE=$ac_cv_prog_GNATMAKE
4393if test -n "$GNATMAKE"; then
4394 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4395echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4396else
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399fi
4400
4401fi
512b7dfb
PB
4402if test -z "$ac_cv_prog_GNATMAKE"; then
4403 ac_ct_GNATMAKE=$GNATMAKE
4404 # Extract the first word of "gnatmake", so it can be a program name with args.
4405set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4406echo "$as_me:$LINENO: checking for $ac_word" >&5
4407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4408if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
512b7dfb
PB
4411 if test -n "$ac_ct_GNATMAKE"; then
4412 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4421 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426done
4427
512b7dfb 4428 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4429fi
4430fi
512b7dfb
PB
4431ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4432if test -n "$ac_ct_GNATMAKE"; then
4433 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4434echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4435else
4436 echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6
4438fi
4439
512b7dfb 4440 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4441else
512b7dfb 4442 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4443fi
4444
c6b750e1
DJ
4445echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4446echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4447if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4449else
4450 cat >conftest.adb <<EOF
4451procedure conftest is begin null; end conftest;
4452EOF
4453acx_cv_cc_gcc_supports_ada=no
4454# There is a bug in old released versions of GCC which causes the
4455# driver to exit successfully when the appropriate language module
4456# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4457# Therefore we must check for the error message as well as an
4458# unsuccessful exit.
b8908782
DD
4459# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4460# given a .adb file, but produce no object file. So we must check
4461# if an object file was really produced to guard against this.
9e07f89d 4462errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4463if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4464 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4465fi
4466rm -f conftest.*
4467fi
c6b750e1
DJ
4468echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4469echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4470
512b7dfb 4471if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4472 have_gnat=yes
4473else
4474 have_gnat=no
4475fi
4476
c6b750e1
DJ
4477echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4478echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4479if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4481else
4482 echo abfoo >t1
4483 echo cdfoo >t2
4484 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4485 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4486 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4487 :
4488 else
4489 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4490 fi
4491 fi
b8908782
DD
4492 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4493 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4494 :
b8908782
DD
4495 else
4496 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4497 fi
4498 fi
4499 rm t1 t2
4500
4501fi
c6b750e1
DJ
4502echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4503echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4504do_compare="$gcc_cv_prog_cmp_skip"
4505
4506
9e07f89d 4507
11b04d1f 4508# Check for GMP and MPFR
4b900473 4509gmplibs="-lmpfr -lgmp"
4b1cb4fe 4510gmpinc=
4b900473
PB
4511have_gmp=no
4512
11b04d1f
DD
4513# Specify a location for mpfr
4514# check for this first so it ends up on the link line before gmp.
c6b750e1 4515
11b04d1f
DD
4516# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4517if test "${with_mpfr_dir+set}" = set; then
4518 withval="$with_mpfr_dir"
c6b750e1
DJ
4519 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4520Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4521echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4522Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524fi;
11b04d1f
DD
4525
4526
11b04d1f
DD
4527# Check whether --with-mpfr or --without-mpfr was given.
4528if test "${with_mpfr+set}" = set; then
4529 withval="$with_mpfr"
c6b750e1
DJ
4530
4531fi;
11b04d1f 4532
8a0d8a5c
PB
4533# Check whether --with-mpfr_include or --without-mpfr_include was given.
4534if test "${with_mpfr_include+set}" = set; then
4535 withval="$with_mpfr_include"
c6b750e1
DJ
4536
4537fi;
8a0d8a5c
PB
4538
4539# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4540if test "${with_mpfr_lib+set}" = set; then
4541 withval="$with_mpfr_lib"
8a0d8a5c 4542
c6b750e1 4543fi;
11b04d1f
DD
4544
4545if test "x$with_mpfr" != x; then
4546 gmplibs="-L$with_mpfr/lib $gmplibs"
4547 gmpinc="-I$with_mpfr/include"
4548fi
8a0d8a5c
PB
4549if test "x$with_mpfr_include" != x; then
4550 gmpinc="-I$with_mpfr_include"
4551fi
4552if test "x$with_mpfr_lib" != x; then
4553 gmplibs="-L$with_mpfr_lib $gmplibs"
4554fi
4b900473
PB
4555if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4556 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4557 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4558 # Do not test the mpfr version. Assume that it is sufficient, since
4559 # it is in the source tree, and the library has not been built yet
4560 # but it would be included on the link line in the version check below
4561 # hence making the test fail.
4562 have_gmp=yes
4563fi
11b04d1f 4564
4b1cb4fe 4565# Specify a location for gmp
c6b750e1 4566
4b1cb4fe
DD
4567# Check whether --with-gmp-dir or --without-gmp-dir was given.
4568if test "${with_gmp_dir+set}" = set; then
4569 withval="$with_gmp_dir"
c6b750e1
DJ
4570 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4571Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4572echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4573Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4574 { (exit 1); exit 1; }; }
4575fi;
4b1cb4fe
DD
4576
4577
4b1cb4fe
DD
4578# Check whether --with-gmp or --without-gmp was given.
4579if test "${with_gmp+set}" = set; then
4580 withval="$with_gmp"
c6b750e1
DJ
4581
4582fi;
4b1cb4fe 4583
8a0d8a5c
PB
4584# Check whether --with-gmp_include or --without-gmp_include was given.
4585if test "${with_gmp_include+set}" = set; then
4586 withval="$with_gmp_include"
c6b750e1
DJ
4587
4588fi;
8a0d8a5c
PB
4589
4590# Check whether --with-gmp_lib or --without-gmp_lib was given.
4591if test "${with_gmp_lib+set}" = set; then
4592 withval="$with_gmp_lib"
8a0d8a5c 4593
c6b750e1 4594fi;
8a0d8a5c 4595
4b1cb4fe 4596
11b04d1f
DD
4597if test "x$with_gmp" != x; then
4598 gmplibs="-L$with_gmp/lib $gmplibs"
4599 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4600fi
8a0d8a5c
PB
4601if test "x$with_gmp_include" != x; then
4602 gmpinc="-I$with_gmp_include $gmpinc"
4603fi
4604if test "x$with_gmp_lib" != x; then
4605 gmplibs="-L$with_gmp_lib $gmplibs"
4606fi
4b900473
PB
4607if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4608 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4609 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4610 # Do not test the gmp version. Assume that it is sufficient, since
4611 # it is in the source tree, and the library has not been built yet
4612 # but it would be included on the link line in the version check below
4613 # hence making the test fail.
4614 have_gmp=yes
4615fi
4b1cb4fe 4616
ceb92e78 4617if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4618 have_gmp=yes
4619 saved_CFLAGS="$CFLAGS"
4620 CFLAGS="$CFLAGS $gmpinc"
4621 # Check GMP actually works
c6b750e1
DJ
4622 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4623echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4624
4625cat >conftest.$ac_ext <<_ACEOF
4626/* confdefs.h. */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h. */
4b1cb4fe 4631#include "gmp.h"
c6b750e1
DJ
4632int
4633main ()
4634{
4b1cb4fe 4635
ef699244 4636 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
4637 choke me
4638 #endif
c6b750e1
DJ
4639
4640 ;
4641 return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext
4645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_c_werror_flag"
4654 || test ! -s conftest.err'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 echo "$as_me:$LINENO: result: yes" >&5
4667echo "${ECHO_T}yes" >&6
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6; have_gmp=no
4674fi
4675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4676
4b900473
PB
4677 if test x"$have_gmp" = xyes; then
4678 saved_LIBS="$LIBS"
4679 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4680 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4681echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4682 cat >conftest.$ac_ext <<_ACEOF
4683/* confdefs.h. */
4684_ACEOF
4685cat confdefs.h >>conftest.$ac_ext
4686cat >>conftest.$ac_ext <<_ACEOF
4687/* end confdefs.h. */
9b134994 4688#include <gmp.h>
4b900473 4689 #include <mpfr.h>
c6b750e1
DJ
4690int
4691main ()
4692{
9b134994 4693
ef699244 4694 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
4695 choke me
4696 #endif
a3ca38d2
DD
4697 mpfr_t n;
4698 mpfr_t x;
4b900473 4699 int t;
a3ca38d2
DD
4700 mpfr_init (n);
4701 mpfr_init (x);
4b900473
PB
4702 mpfr_atan2 (n, n, x, GMP_RNDN);
4703 mpfr_erfc (n, x, GMP_RNDN);
4704 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4705
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710rm -f conftest.$ac_objext conftest$ac_exeext
4711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest$ac_exeext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4b1cb4fe 4738#include <gmp.h>
4b900473 4739 #include <mpfr.h>
c6b750e1
DJ
4740int
4741main ()
4742{
9dbaa842 4743
e28c595f 4744 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
4745 choke me
4746 #endif
4747 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4748
4749 ;
4750 return 0;
4751}
4752_ACEOF
4753rm -f conftest.$ac_objext conftest$ac_exeext
4754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>conftest.er1
4756 ac_status=$?
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -z "$ac_c_werror_flag"
4763 || test ! -s conftest.err'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest$ac_exeext'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 echo "$as_me:$LINENO: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
4777else
4778 echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4782echo "${ECHO_T}buggy but acceptable" >&6
4783fi
4784rm -f conftest.err conftest.$ac_objext \
4785 conftest$ac_exeext conftest.$ac_ext
4786else
4787 echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6; have_gmp=no
4792fi
4793rm -f conftest.err conftest.$ac_objext \
4794 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4795 LIBS="$saved_LIBS"
4796 fi
4797 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4798
4b900473 4799 if test x$have_gmp != xyes; then
ef699244 4800 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
c6b750e1
DJ
4801Try the --with-gmp and/or --with-mpfr options to specify their locations.
4802Copies of these libraries' source code can be found at their respective
4803hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4804See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4805If you obtained GMP and/or MPFR from a vendor distribution package, make
4806sure that you have installed both the libraries and the header files.
4807They may be located in separate packages." >&5
ef699244 4808echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
4809Try the --with-gmp and/or --with-mpfr options to specify their locations.
4810Copies of these libraries' source code can be found at their respective
4811hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4812See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4813If you obtained GMP and/or MPFR from a vendor distribution package, make
4814sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4815They may be located in separate packages." >&2;}
4816 { (exit 1); exit 1; }; }
4b900473 4817 fi
9dbaa842
DD
4818fi
4819
11b04d1f 4820# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4821
4822
4823
29383458
JM
4824# Allow host libstdc++ to be specified for static linking with PPL.
4825
4826# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
4827if test "${with_host_libstdcxx+set}" = set; then
4828 withval="$with_host_libstdcxx"
4829
4830fi;
4831
4832case $with_host_libstdcxx in
4833 no|yes)
4834 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
4835echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
4836 { (exit 1); exit 1; }; }
4837 ;;
4838esac
e28c595f
JM
4839
4840# Check for PPL
4841ppl_major_version=0
4842ppl_minor_version=10
29383458 4843ppllibs=" -lppl_c -lppl -lgmpxx $with_host_libstdcxx "
e28c595f
JM
4844pplinc=
4845
4846
4847# Check whether --with-ppl or --without-ppl was given.
4848if test "${with_ppl+set}" = set; then
4849 withval="$with_ppl"
4850
4851fi;
4852
4853# Check whether --with-ppl_include or --without-ppl_include was given.
4854if test "${with_ppl_include+set}" = set; then
4855 withval="$with_ppl_include"
4856
4857fi;
4858
4859# Check whether --with-ppl_lib or --without-ppl_lib was given.
4860if test "${with_ppl_lib+set}" = set; then
4861 withval="$with_ppl_lib"
4862
4863fi;
4864
29383458
JM
4865case $with_ppl in
4866 no)
4867 ppllibs=
4868 ;;
4869 *)
4870 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4871 pplinc="-I$with_ppl/include $pplinc"
4872 LIBS="$ppllibs $LIBS"
4873 ;;
4874esac
e28c595f
JM
4875if test "x$with_ppl_include" != x; then
4876 pplinc="-I$with_ppl_include $pplinc"
4877fi
4878if test "x$with_ppl_lib" != x; then
29383458 4879 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
e28c595f
JM
4880 LIBS="$ppllibs $LIBS"
4881fi
4882if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
29383458 4883 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '"$with_host_libstdcxx "
e28c595f
JM
4884 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4885 LIBS="$ppllibs $LIBS"
4886fi
4887
4888# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4889if test "${enable_ppl_version_check+set}" = set; then
4890 enableval="$enable_ppl_version_check"
4891 ENABLE_PPL_CHECK=$enableval
4892else
4893 ENABLE_PPL_CHECK=yes
4894fi;
4895
4896if test "${ENABLE_PPL_CHECK}" = "yes"; then
4897 saved_CFLAGS="$CFLAGS"
4898 CFLAGS="$CFLAGS $pplinc $gmpinc"
4899 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4900echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4901 cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907#include "ppl_c.h"
4908int
4909main ()
4910{
4911
4912 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4913 choke me
4914 #endif
4915
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920rm -f conftest.$ac_objext
4921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -z "$ac_c_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try='test -s conftest.$ac_objext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 echo "$as_me:$LINENO: result: yes" >&5
4943echo "${ECHO_T}yes" >&6
4944else
4945 echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
4950fi
4951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952 CFLAGS="$saved_CFLAGS"
4953fi
4954
4955# Flags needed for PPL
4956
4957
4958
4959
4960# Check for CLOOG
4961clooglibs=" -lcloog "
4962clooginc=" -DCLOOG_PPL_BACKEND "
4963
4964
4965# Check whether --with-cloog or --without-cloog was given.
4966if test "${with_cloog+set}" = set; then
4967 withval="$with_cloog"
4968
4969fi;
4970
4971# Check whether --with-cloog_include or --without-cloog_include was given.
4972if test "${with_cloog_include+set}" = set; then
4973 withval="$with_cloog_include"
4974
4975fi;
4976
4977# Check whether --with-cloog_lib or --without-cloog_lib was given.
4978if test "${with_cloog_lib+set}" = set; then
4979 withval="$with_cloog_lib"
4980
4981fi;
4982
29383458
JM
4983case $with_cloog in
4984 no)
4985 clooglibs=
4986 clooginc=
4987 ;;
4988 *)
4989 clooglibs="-L$with_cloog/lib -lcloog"
4990 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4991 LIBS="$clooglibs $LIBS"
4992 ;;
4993esac
e28c595f
JM
4994if test "x$with_cloog_include" != x; then
4995 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4996fi
4997if test "x$with_cloog_lib" != x; then
4998 clooglibs="-L$with_cloog_lib -lcloog"
4999 LIBS="$clooglibs $LIBS"
5000fi
5001if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5002 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5003 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5004 LIBS="$clooglibs $LIBS"
5005fi
5006
5007# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5008if test "${enable_cloog_version_check+set}" = set; then
5009 enableval="$enable_cloog_version_check"
5010 ENABLE_CLOOG_CHECK=$enableval
5011else
5012 ENABLE_CLOOG_CHECK=yes
5013fi;
5014
5015if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5016 saved_CFLAGS="$CFLAGS"
5017 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5018 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5019echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5021/* confdefs.h. */
5022_ACEOF
5023cat confdefs.h >>conftest.$ac_ext
5024cat >>conftest.$ac_ext <<_ACEOF
5025/* end confdefs.h. */
5026#include "cloog/cloog.h"
5027int
5028main ()
5029{
5030
5031 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5032 choke me
5033 #endif
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext
5040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063else
5064 echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067echo "$as_me:$LINENO: result: no" >&5
5068echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5069fi
5070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071 CFLAGS="$saved_CFLAGS"
5072fi
5073
5074# Flags needed for CLOOG
5075
5076
5077
5078
947f426e 5079# By default, C is the only stage 1 language.
9b134994 5080stage1_languages=,c,
1d39f329 5081
9e07f89d
NN
5082# Figure out what language subdirectories are present.
5083# Look if the user specified --enable-languages="..."; if not, use
5084# the environment variable $LANGUAGES if defined. $LANGUAGES might
5085# go away some day.
5086# NB: embedded tabs in this IF block -- do not untabify
5087if test -d ${srcdir}/gcc; then
5088 if test x"${enable_languages+set}" != xset; then
5089 if test x"${LANGUAGES+set}" = xset; then
5090 enable_languages="${LANGUAGES}"
5091 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5092 else
5093 enable_languages=all
5094 fi
5095 else
5096 if test x"${enable_languages}" = x ||
5097 test x"${enable_languages}" = xyes;
5098 then
5099 echo configure.in: --enable-languages needs at least one language argument 1>&2
5100 exit 1
5101 fi
5102 fi
5103 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5104
096f7d00
DE
5105 # 'f95' is the old name for the 'fortran' language. We issue a warning
5106 # and make the substitution.
5107 case ,${enable_languages}, in
5108 *,f95,*)
5109 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5110 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5111 ;;
5112 esac
5113
9e07f89d
NN
5114 # First scan to see if an enabled language requires some other language.
5115 # We assume that a given config-lang.in will list all the language
5116 # front ends it requires, even if some are required indirectly.
5117 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5118 case ${lang_frag} in
5119 ..) ;;
5120 # The odd quoting in the next line works around
5121 # an apparent bug in bash 1.12 on linux.
5122 ${srcdir}/gcc/[*]/config-lang.in) ;;
5123 *)
5124 # From the config-lang.in, get $language, $lang_requires
5125 language=
5126 lang_requires=
5127 . ${lang_frag}
5128 for other in ${lang_requires} ; do
5129 case ,${enable_languages}, in
5130 *,$other,*) ;;
5131 *,all,*) ;;
5132 *,$language,*)
5133 echo " \`$other' language required by \`$language'; enabling" 1>&2
5134 enable_languages="${enable_languages},${other}"
5135 ;;
5136 esac
5137 done
5138 ;;
5139 esac
5140 done
5141
9b134994 5142 new_enable_languages=,c,
9e07f89d 5143 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5144 potential_languages=,c,
9e07f89d
NN
5145
5146 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5147 case ${lang_frag} in
5148 ..) ;;
5149 # The odd quoting in the next line works around
5150 # an apparent bug in bash 1.12 on linux.
5151 ${srcdir}/gcc/[*]/config-lang.in) ;;
5152 *)
c6b750e1 5153 # From the config-lang.in, get $language, $target_libs,
1d39f329 5154 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5155 language=
5156 target_libs=
5157 lang_dirs=
64ce424c 5158 subdir_requires=
9b134994
PB
5159 boot_language=no
5160 build_by_default=yes
9e07f89d 5161 . ${lang_frag}
9b134994
PB
5162 if test x${language} = x; then
5163 echo "${lang_frag} doesn't set \$language." 1>&2
5164 exit 1
5165 fi
5166
5167 case ,${enable_languages}, in
5168 *,${language},*)
9e07f89d
NN
5169 # Language was explicitly selected; include it.
5170 add_this_lang=yes
5171 ;;
9b134994
PB
5172 *,all,*)
5173 # 'all' was selected, select it if it is a default language
5174 add_this_lang=${build_by_default}
9e07f89d
NN
5175 ;;
5176 *)
5177 add_this_lang=no
5178 ;;
5179 esac
4b1cb4fe 5180
64ce424c 5181 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5182 for i in $subdir_requires; do
3d3adb43 5183 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5184 case ,${enable_languages}, in
5185 *,${language},*)
5186 # Specifically requested language; tell them.
c6b750e1
DJ
5187 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5188echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5189 { (exit 1); exit 1; }; }
64ce424c
PB
5190 ;;
5191 *)
5192 # Silently disable.
9b134994 5193 add_this_lang=unsupported
64ce424c
PB
5194 ;;
5195 esac
5196 done
5197
9b134994
PB
5198 # Disable Ada if no preexisting GNAT is available.
5199 case ,${enable_languages},:${language}:${have_gnat} in
5200 *,${language},*:ada:no)
5201 # Specifically requested language; tell them.
c6b750e1
DJ
5202 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5203echo "$as_me: error: GNAT is required to build $language" >&2;}
5204 { (exit 1); exit 1; }; }
9b134994
PB
5205 ;;
5206 *:ada:no)
5207 # Silently disable.
5208 add_this_lang=unsupported
5209 ;;
5210 esac
5211
59f7ec45
HPN
5212 # Disable a language that is unsupported by the target.
5213 case " $unsupported_languages " in
5214 *" $language "*)
9b134994 5215 add_this_lang=unsupported
59f7ec45
HPN
5216 ;;
5217 esac
5218
4b1cb4fe 5219 case $add_this_lang in
9b134994 5220 unsupported)
9e07f89d 5221 # Remove language-dependent dirs.
1d39f329
NN
5222 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5223 ;;
9b134994
PB
5224 no)
5225 # Remove language-dependent dirs; still show language as supported.
5226 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5227 potential_languages="${potential_languages}${language},"
5228 ;;
5229 yes)
5230 new_enable_languages="${new_enable_languages}${language},"
5231 potential_languages="${potential_languages}${language},"
1d39f329
NN
5232 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5233 case ${boot_language} in
5234 yes)
4fa63067 5235 # Add to (comma-separated) list of stage 1 languages.
9b134994 5236 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
5237 ;;
5238 esac
5239 ;;
9e07f89d
NN
5240 esac
5241 ;;
5242 esac
5243 done
5244
9b134994
PB
5245 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5246if test "${enable_stage1_languages+set}" = set; then
5247 enableval="$enable_stage1_languages"
5248 case ,${enable_stage1_languages}, in
5249 ,no,|,,)
5250 # Set it to something that will have no effect in the loop below
5251 enable_stage1_languages=c ;;
5252 ,yes,)
5253 enable_stage1_languages=`echo $new_enable_languages | \
5254 sed -e "s/^,//" -e "s/,$//" ` ;;
5255 *,all,*)
5256 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5257 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5258 esac
5259
5260 # Add "good" languages from enable_stage1_languages to stage1_languages,
5261 # while "bad" languages go in missing_languages. Leave no duplicates.
5262 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5263 case $potential_languages in
5264 *,$i,*)
5265 case $stage1_languages in
5266 *,$i,*) ;;
5267 *) stage1_languages="$stage1_languages$i," ;;
5268 esac ;;
5269 *)
5270 case $missing_languages in
5271 *,$i,*) ;;
5272 *) missing_languages="$missing_languages$i," ;;
5273 esac ;;
5274 esac
5275 done
c6b750e1 5276fi;
9b134994
PB
5277
5278 # Remove leading/trailing commas that were added for simplicity
5279 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5280 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5281 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5282 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5283
9e07f89d 5284 if test "x$missing_languages" != x; then
c6b750e1 5285 { { echo "$as_me:$LINENO: error:
27258dd4 5286The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5287Supported languages are: ${potential_languages}" >&5
5288echo "$as_me: error:
5289The following requested languages could not be built: ${missing_languages}
5290Supported languages are: ${potential_languages}" >&2;}
5291 { (exit 1); exit 1; }; }
9e07f89d 5292 fi
9e07f89d
NN
5293 if test "x$new_enable_languages" != "x$enable_languages"; then
5294 echo The following languages will be built: ${new_enable_languages}
9b134994 5295 enable_languages="$new_enable_languages"
9e07f89d 5296 fi
9b134994 5297
c6b750e1 5298
81ec575a 5299 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5300fi
5301
a6df5a19
PB
5302# Handle --disable-<component> generically.
5303for dir in $configdirs $build_configdirs $target_configdirs ; do
5304 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5305 varname=`echo $dirname | sed -e s/+/_/g`
5306 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5307 noconfigdirs="$noconfigdirs $dir"
5308 fi
5309done
5310
4f0ef2d8
CD
5311# Check for Boehm's garbage collector
5312# Check whether --enable-objc-gc or --disable-objc-gc was given.
5313if test "${enable_objc_gc+set}" = set; then
5314 enableval="$enable_objc_gc"
5315 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5316 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5317 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5318echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5319 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5320 ;;
5321esac
c6b750e1 5322fi;
4f0ef2d8
CD
5323
5324# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5325case ,${enable_languages},:${enable_objc_gc} in
5326 *,objc,*:yes)
4f0ef2d8
CD
5327 # Keep target-boehm-gc if requested for Objective-C.
5328 ;;
4f0ef2d8 5329 *)
d42c4017
DA
5330 # Otherwise remove target-boehm-gc depending on target-libjava.
5331 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5332 noconfigdirs="$noconfigdirs target-boehm-gc"
5333 fi
4f0ef2d8
CD
5334 ;;
5335esac
5336
caeba88f
AL
5337# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5338# $build_configdirs and $target_configdirs.
9e07f89d
NN
5339# If we have the source for $noconfigdirs entries, add them to $notsupp.
5340
5341notsupp=""
5342for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5343 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5344 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5345 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5346 if test -r $srcdir/$dirname/configure ; then
5347 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5348 true
5349 else
5350 notsupp="$notsupp $dir"
5351 fi
5352 fi
5353 fi
caeba88f
AL
5354 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5355 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5356 if test -r $srcdir/$dirname/configure ; then
5357 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5358 true
5359 else
5360 notsupp="$notsupp $dir"
5361 fi
5362 fi
5363 fi
9e07f89d
NN
5364 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5365 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5366 if test -r $srcdir/$dirname/configure ; then
5367 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5368 true
5369 else
5370 notsupp="$notsupp $dir"
5371 fi
5372 fi
5373 fi
5374done
5375
5376# Sometimes the tools are distributed with libiberty but with no other
5377# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5378# Don't let libgcc imply libiberty either.
9e07f89d 5379if test -n "${target_configdirs}" ; then
f86e35b8 5380 libgcc=
9e07f89d
NN
5381 others=
5382 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5383 if test "$i" = "libgcc"; then
5384 libgcc=target-libgcc
5385 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5386 if test -r $srcdir/$i/configure ; then
5387 others=yes;
5388 break;
5389 fi
5390 fi
5391 done
5392 if test -z "${others}" ; then
f86e35b8 5393 target_configdirs=$libgcc
9e07f89d
NN
5394 fi
5395fi
5396
5397# Quietly strip out all directories which aren't configurable in this tree.
5398# This relies on all configurable subdirectories being autoconfiscated, which
5399# is now the case.
6a9cf61e
PB
5400build_configdirs_all="$build_configdirs"
5401build_configdirs=
5402for i in ${build_configdirs_all} ; do
c6b750e1 5403 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5404 if test -f ${srcdir}/$j/configure ; then
5405 build_configdirs="${build_configdirs} $i"
5406 fi
5407done
5408
9e07f89d
NN
5409configdirs_all="$configdirs"
5410configdirs=
5411for i in ${configdirs_all} ; do
5412 if test -f ${srcdir}/$i/configure ; then
5413 configdirs="${configdirs} $i"
5414 fi
5415done
6a9cf61e 5416
9e07f89d
NN
5417target_configdirs_all="$target_configdirs"
5418target_configdirs=
5419for i in ${target_configdirs_all} ; do
c6b750e1 5420 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5421 if test -f ${srcdir}/$j/configure ; then
5422 target_configdirs="${target_configdirs} $i"
5423 fi
5424done
5425
5426# Produce a warning message for the subdirs we can't configure.
5427# This isn't especially interesting in the Cygnus tree, but in the individual
5428# FSF releases, it's important to let people know when their machine isn't
5429# supported by the one or two programs in a package.
5430
5431if test -n "${notsupp}" && test -z "${norecursion}" ; then
5432 # If $appdirs is non-empty, at least one of those directories must still
5433 # be configured, or we error out. (E.g., if the gas release supports a
5434 # specified target in some subdirs but not the gas subdir, we shouldn't
5435 # pretend that all is well.)
5436 if test -n "$appdirs" ; then
5437 for dir in $appdirs ; do
5438 if test -r $dir/Makefile.in ; then
5439 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5440 appdirs=""
5441 break
5442 fi
6a9cf61e 5443 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5444 appdirs=""
5445 break
5446 fi
5447 fi
5448 done
5449 if test -n "$appdirs" ; then
5450 echo "*** This configuration is not supported by this package." 1>&2
5451 exit 1
5452 fi
5453 fi
5454 # Okay, some application will build, or we don't care to check. Still
5455 # notify of subdirs not getting built.
5456 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5457 echo " ${notsupp}" 1>&2
5458 echo " (Any other directories should still work fine.)" 1>&2
5459fi
5460
5461case "$host" in
5462 *msdosdjgpp*)
5463 enable_gdbtk=no ;;
5464esac
5465
18f6b6ee
PB
5466# To find our prefix, in gcc_cv_tool_prefix.
5467
5468# The user is always right.
5469if test "${PATH_SEPARATOR+set}" != set; then
5470 echo "#! /bin/sh" >conf$$.sh
5471 echo "exit 0" >>conf$$.sh
5472 chmod +x conf$$.sh
5473 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5474 PATH_SEPARATOR=';'
5475 else
5476 PATH_SEPARATOR=:
5477 fi
5478 rm -f conf$$.sh
5479fi
5480
5481
5482
5483if test "x$exec_prefix" = xNONE; then
5484 if test "x$prefix" = xNONE; then
5485 gcc_cv_tool_prefix=$ac_default_prefix
5486 else
5487 gcc_cv_tool_prefix=$prefix
5488 fi
5489else
5490 gcc_cv_tool_prefix=$exec_prefix
5491fi
5492
5493# If there is no compiler in the tree, use the PATH only. In any
5494# case, if there is no compiler in the tree nobody should use
5495# AS_FOR_TARGET and LD_FOR_TARGET.
5496if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5497 gcc_version=`cat $srcdir/gcc/BASE-VER`
5498 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5499 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5501 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5502 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5503 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5504else
5505 gcc_cv_tool_dirs=
5506fi
5507
5508if test x$build = x$target && test -n "$md_exec_prefix"; then
5509 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5510fi
5511
5512
5513
9e07f89d
NN
5514copy_dirs=
5515
c6b750e1 5516
a19b6204
MM
5517# Check whether --with-build-sysroot or --without-build-sysroot was given.
5518if test "${with_build_sysroot+set}" = set; then
5519 withval="$with_build_sysroot"
5520 if test x"$withval" != x ; then
5521 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5522 fi
5523else
5524 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5525fi;
a19b6204
MM
5526
5527
8a6ee3ab
JM
5528
5529# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5530if test "${with_debug_prefix_map+set}" = set; then
5531 withval="$with_debug_prefix_map"
5532 if test x"$withval" != x; then
5533 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5534 for debug_map in $withval; do
5535 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5536 done
5537 fi
5538else
5539 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5540fi;
5541
5542
7f6ef0c0
PB
5543# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5544# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5545# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5546# We want to ensure that TARGET libraries (which we know are built with
5547# gcc) are built with "-O2 -g", so include those options when setting
5548# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5549if test "x$CFLAGS_FOR_TARGET" = x; then
5550 CFLAGS_FOR_TARGET=$CFLAGS
5551 case " $CFLAGS " in
5552 *" -O2 "*) ;;
5553 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5554 esac
5555 case " $CFLAGS " in
5556 *" -g "* | *" -g3 "*) ;;
5557 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5558 esac
5559fi
5560
5561
5562if test "x$CXXFLAGS_FOR_TARGET" = x; then
5563 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5564 case " $CXXFLAGS " in
5565 *" -O2 "*) ;;
5566 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5567 esac
5568 case " $CXXFLAGS " in
5569 *" -g "* | *" -g3 "*) ;;
5570 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5571 esac
5572fi
5573
5574
9e07f89d
NN
5575# Handle --with-headers=XXX. If the value is not "yes", the contents of
5576# the named directory are copied to $(tooldir)/sys-include.
5577if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5578 if test x${is_cross_compiler} = xno ; then
5579 echo 1>&2 '***' --with-headers is only supported when cross compiling
5580 exit 1
5581 fi
5582 if test x"${with_headers}" != xyes ; then
18f6b6ee 5583 x=${gcc_cv_tool_prefix}
c6b750e1 5584 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5585 fi
5586fi
5587
5588# Handle --with-libs=XXX. If the value is not "yes", the contents of
5589# the name directories are copied to $(tooldir)/lib. Multiple directories
5590# are permitted.
5591if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5592 if test x${is_cross_compiler} = xno ; then
5593 echo 1>&2 '***' --with-libs is only supported when cross compiling
5594 exit 1
5595 fi
5596 if test x"${with_libs}" != xyes ; then
5597 # Copy the libraries in reverse order, so that files in the first named
5598 # library override files in subsequent libraries.
18f6b6ee 5599 x=${gcc_cv_tool_prefix}
9e07f89d 5600 for l in ${with_libs}; do
c6b750e1 5601 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5602 done
5603 fi
5604fi
5605
2429c060
PB
5606# Set with_gnu_as and with_gnu_ld as appropriate.
5607#
5608# This is done by determining whether or not the appropriate directory
5609# is available, and by checking whether or not specific configurations
5610# have requested that this magic not happen.
c6b750e1
DJ
5611#
5612# The command line options always override the explicit settings in
2429c060
PB
5613# configure.in, and the settings in configure.in override this magic.
5614#
c6b750e1 5615# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5616# want to do that, then you should use the --without-gnu-as and
5617# --without-gnu-ld options for the configure script.
5618
5619if test x${use_gnu_as} = x &&
5620 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5621 with_gnu_as=yes
5622 extra_host_args="$extra_host_args --with-gnu-as"
5623fi
5624
5625if test x${use_gnu_ld} = x &&
93f9b408 5626 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5627 with_gnu_ld=yes
5628 extra_host_args="$extra_host_args --with-gnu-ld"
5629fi
5630
5631# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5632# can detect this case.
5633
5634if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5635 with_newlib=yes
5636 extra_host_args="$extra_host_args --with-newlib"
5637fi
5638
9e07f89d
NN
5639# Handle ${copy_dirs}
5640set fnord ${copy_dirs}
5641shift
5642while test $# != 0 ; do
5643 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5644 :
5645 else
5646 echo Copying $1 to $2
5647
5648 # Use the install script to create the directory and all required
5649 # parent directories.
5650 if test -d $2 ; then
5651 :
5652 else
5653 echo >config.temp
5654 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5655 fi
5656
5657 # Copy the directory, assuming we have tar.
5658 # FIXME: Should we use B in the second tar? Not all systems support it.
5659 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5660
5661 # It is the responsibility of the user to correctly adjust all
5662 # symlinks. If somebody can figure out how to handle them correctly
5663 # here, feel free to add the code.
5664
5665 echo $1 > $2/COPIED
5666 fi
5667 shift; shift
5668done
5669
2429c060
PB
5670# Determine a target-dependent exec_prefix that the installed
5671# gcc will search in. Keep this list sorted by triplet, with
5672# the *-*-osname triplets last.
5673md_exec_prefix=
5674case "${target}" in
5675 alpha*-*-*vms*)
5676 md_exec_prefix=/gnu/lib/gcc-lib
5677 ;;
521ec477 5678 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5679 md_exec_prefix=/dev/env/DJDIR/bin
5680 ;;
521ec477 5681 i[34567]86-*-sco3.2v5*)
2429c060
PB
5682 if test $with_gnu_as = yes; then
5683 md_exec_prefix=/usr/gnu/bin
5684 else
5685 md_exec_prefix=/usr/ccs/bin/elf
5686 fi
5687 ;;
5688
5689 mn10300-*-* | \
5690 powerpc-*-chorusos* | \
5691 powerpc*-*-eabi* | \
5692 powerpc*-*-sysv* | \
5693 powerpc*-*-kaos* | \
5694 s390x-ibm-tpf*)
5695 md_exec_prefix=/usr/ccs/bin
5696 ;;
5697 sparc64-*-elf*)
5698 ;;
5699 v850*-*-*)
5700 md_exec_prefix=/usr/ccs/bin
5701 ;;
8b66833e 5702 xtensa*-*-elf*)
2429c060
PB
5703 ;;
5704
5705 *-*-beos* | \
5706 *-*-elf* | \
5707 *-*-hpux* | \
5708 *-*-netware* | \
5709 *-*-nto-qnx* | \
5710 *-*-rtems* | \
5711 *-*-solaris2* | \
521ec477 5712 *-*-sysv[45]* | \
2429c060
PB
5713 *-*-vxworks* | \
5714 *-wrs-windiss)
5715 md_exec_prefix=/usr/ccs/bin
5716 ;;
5717esac
5718
a0da8069
NN
5719extra_arflags_for_target=
5720extra_nmflags_for_target=
5721extra_ranlibflags_for_target=
5722target_makefile_frag=/dev/null
5723case "${target}" in
4e206d7e
DB
5724 mep*-*-*)
5725 target_makefile_frag="config/mt-mep"
5726 ;;
77d7106f
AM
5727 spu-*-*)
5728 target_makefile_frag="config/mt-spu"
5729 ;;
429acdec
RS
5730 mips*-sde-elf*)
5731 target_makefile_frag="config/mt-sde"
5732 ;;
f3b1e08e
RS
5733 mipsisa*-*-elfoabi*)
5734 target_makefile_frag="config/mt-mips-elfoabi"
5735 ;;
e7c8859c
RS
5736 mips*-*-*linux* | mips*-*-gnu*)
5737 target_makefile_frag="config/mt-mips-gnu"
5738 ;;
2a3124ca 5739 *-*-netware*)
a0da8069
NN
5740 target_makefile_frag="config/mt-netware"
5741 ;;
29383458 5742 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 5743 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5744 ;;
5745 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5746 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5747 # commands to handle both 32-bit and 64-bit objects. These flags are
5748 # harmless if we're using GNU nm or ar.
5749 extra_arflags_for_target=" -X32_64"
5750 extra_nmflags_for_target=" -B -X32_64"
5751 ;;
5752 *-*-darwin*)
5753 # ranlib from Darwin requires the -c flag to look at common symbols.
5754 extra_ranlibflags_for_target=" -c"
5755 ;;
5756 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5757 target_makefile_frag="config/mt-wince"
5758 ;;
5759esac
5760
5761alphaieee_frag=/dev/null
5762case $target in
5763 alpha*-*-*)
5764 # This just makes sure to use the -mieee option to build target libs.
5765 # This should probably be set individually by each library.
5766 alphaieee_frag="config/mt-alphaieee"
5767 ;;
5768esac
5769
5770# If --enable-target-optspace always use -Os instead of -O2 to build
5771# the target libraries, similarly if it is not specified, use -Os
5772# on selected platforms.
5773ospace_frag=/dev/null
5774case "${enable_target_optspace}:${target}" in
5775 yes:*)
5776 ospace_frag="config/mt-ospace"
5777 ;;
5778 :d30v-*)
5779 ospace_frag="config/mt-d30v"
5780 ;;
5781 :m32r-* | :d10v-* | :fr30-*)
5782 ospace_frag="config/mt-ospace"
5783 ;;
5784 no:* | :*)
5785 ;;
5786 *)
5787 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5788 ;;
5789esac
5790
a0da8069
NN
5791# Default to using --with-stabs for certain targets.
5792if test x${with_stabs} = x ; then
5793 case "${target}" in
e31d1ea3 5794 mips*-*-irix[56]*)
a0da8069
NN
5795 ;;
5796 mips*-*-* | alpha*-*-osf*)
5797 with_stabs=yes;
5798 extra_host_args="${extra_host_args} --with-stabs"
5799 ;;
5800 esac
5801fi
5802
5803# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5804# them automatically.
5805case "${host}" in
c6b750e1 5806 hppa*64*-*-hpux11*)
a0da8069
NN
5807 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5808 ;;
5809esac
5810
a0da8069
NN
5811# Some systems (e.g., one of the i386-aix systems the gas testers are
5812# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5813tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5814build_tooldir=${tooldir}
5815
a0da8069
NN
5816# Create a .gdbinit file which runs the one in srcdir
5817# and tells GDB to look there for source files.
5818
5819if test -r ${srcdir}/.gdbinit ; then
5820 case ${srcdir} in
5821 .) ;;
5822 *) cat > ./.gdbinit <<EOF
5823# ${NO_EDIT}
5824dir ${srcdir}
5825dir .
5826source ${srcdir}/.gdbinit
5827EOF
5828 ;;
5829 esac
5830fi
5831
a0da8069
NN
5832# Make sure that the compiler is able to generate an executable. If it
5833# can't, we are probably in trouble. We don't care whether we can run the
5834# executable--we might be using a cross compiler--we only care whether it
5835# can be created. At this point the main configure script has set CC.
5836we_are_ok=no
5837echo "int main () { return 0; }" > conftest.c
5838${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5839if test $? = 0 ; then
5840 if test -s conftest || test -s conftest.exe ; then
5841 we_are_ok=yes
5842 fi
c6b750e1 5843fi
a0da8069
NN
5844case $we_are_ok in
5845 no)
5846 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5847 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5848 rm -f conftest*
5849 exit 1
5850 ;;
5851esac
5852rm -f conftest*
5853
5854# The Solaris /usr/ucb/cc compiler does not appear to work.
5855case "${host}" in
5856 sparc-sun-solaris2*)
5857 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5858 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5859 could_use=
5860 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5861 if test -d /opt/cygnus/bin ; then
5862 if test "$could_use" = "" ; then
5863 could_use="/opt/cygnus/bin"
5864 else
5865 could_use="$could_use or /opt/cygnus/bin"
5866 fi
5867 fi
5868 if test "$could_use" = "" ; then
5869 echo "Warning: compilation may fail because you're using"
5870 echo "/usr/ucb/cc. You should change your PATH or CC "
5871 echo "variable and rerun configure."
5872 else
5873 echo "Warning: compilation may fail because you're using"
5874 echo "/usr/ucb/cc, when you should use the C compiler from"
5875 echo "$could_use. You should change your"
5876 echo "PATH or CC variable and rerun configure."
5877 fi
5878 fi
5879 ;;
5880esac
5881
3bbd2f8f 5882# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
5883case "${host}" in
5884 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5885 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 5886 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
5887 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5888esac
5889
3bbd2f8f 5890# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
5891# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5892# built executables to PATH.
3bbd2f8f
AL
5893if test "$RPATH_ENVVAR" = PATH; then
5894 GCC_SHLIB_SUBDIR=/shlib
5895else
5896 GCC_SHLIB_SUBDIR=
5897fi
5898
a0da8069
NN
5899# Record target_configdirs and the configure arguments for target and
5900# build configuration in Makefile.
5901target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5902build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5903
a0da8069
NN
5904# Determine whether gdb needs tk/tcl or not.
5905# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5906# and in that case we want gdb to be built without tk. Ugh!
5907# In fact I believe gdb is the *only* package directly dependent on tk,
5908# so we should be able to put the 'maybe's in unconditionally and
5909# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5910# 100% sure that that's safe though.
c180f501 5911
675c6968 5912gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5913case "$enable_gdbtk" in
5914 no)
5915 GDB_TK="" ;;
c180f501
AC
5916 yes)
5917 GDB_TK="${gdb_tk}" ;;
a0da8069 5918 *)
c180f501
AC
5919 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5920 # distro. Eventually someone will fix this and move Insight, nee
5921 # gdbtk to a separate directory.
5922 if test -d ${srcdir}/gdb/gdbtk ; then
5923 GDB_TK="${gdb_tk}"
5924 else
5925 GDB_TK=""
5926 fi
5927 ;;
a0da8069 5928esac
907be67c
DJ
5929CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5930INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5931
6bd3dfaa 5932# Strip out unwanted targets.
dd12c3a8
NN
5933
5934# While at that, we remove Makefiles if we were started for recursive
5935# configuration, so that the top-level Makefile reconfigures them,
5936# like we used to do when configure itself was recursive.
dd12c3a8 5937
6bd3dfaa
PB
5938# Loop over modules. $extrasub must be used with care, limiting as
5939# much as possible the usage of range addresses. That's because autoconf
5940# splits the sed script to overcome limits in the number of commands,
5941# and relying on carefully-timed sed passes may turn out to be very hard
5942# to maintain later. In this particular case, you just have to be careful
5943# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5944
319cab08
PB
5945# Check whether --enable-bootstrap or --disable-bootstrap was given.
5946if test "${enable_bootstrap+set}" = set; then
5947 enableval="$enable_bootstrap"
c6b750e1 5948
319cab08 5949else
9cb3fa6f 5950 enable_bootstrap=default
c6b750e1 5951fi;
319cab08 5952
9cb3fa6f
PB
5953# Issue errors and warnings for invalid/strange bootstrap combinations.
5954case "$configdirs" in
5955 *gcc*) have_compiler=yes ;;
5956 *) have_compiler=no ;;
5957esac
5958
5959case "$have_compiler:$host:$target:$enable_bootstrap" in
5960 *:*:*:no) ;;
5961
0aed8855 5962 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5963 # and we are in a native configuration.
5964 yes:$build:$build:default)
0aed8855 5965 enable_bootstrap=yes ;;
9cb3fa6f
PB
5966
5967 *:*:*:default)
5968 enable_bootstrap=no ;;
5969
5970 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5971 yes:$build:$build:yes)
9cb3fa6f
PB
5972 ;;
5973
5974 # Other configurations, but we have a compiler. Assume the user knows
5975 # what he's doing.
80911fe1 5976 yes:*:*:yes)
c6b750e1
DJ
5977 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5978echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5979 ;;
5980
5981 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5982 no:*:*:yes)
c6b750e1
DJ
5983 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5984echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5985 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5986
5987 # Fail if wrong command line
5988 *)
c6b750e1
DJ
5989 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5990echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5991 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5992 ;;
5993esac
5994
5995# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5996case "$enable_bootstrap" in
5997 yes)
498d4a71 5998 bootstrap_suffix=bootstrap ;;
319cab08 5999 no)
498d4a71 6000 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
6001esac
6002
6a9cf61e 6003for module in ${build_configdirs} ; do
498d4a71
CF
6004 if test -z "${no_recursion}" \
6005 && test -f ${build_subdir}/${module}/Makefile; then
6006 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6007 rm -f ${build_subdir}/${module}/Makefile
6008 fi
6009 extrasub="$extrasub
6010/^@if build-$module\$/d
6011/^@endif build-$module\$/d
6012/^@if build-$module-$bootstrap_suffix\$/d
6013/^@endif build-$module-$bootstrap_suffix\$/d"
6014done
6015for module in ${configdirs} ; do
80911fe1 6016 if test -z "${no_recursion}"; then
8cf39b1b 6017 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6018 if test -f ${file}; then
6019 echo 1>&2 "*** removing ${file} to force reconfigure"
6020 rm -f ${file}
6021 fi
6022 done
498d4a71
CF
6023 fi
6024 extrasub="$extrasub
6025/^@if $module\$/d
6026/^@endif $module\$/d
6027/^@if $module-$bootstrap_suffix\$/d
6028/^@endif $module-$bootstrap_suffix\$/d"
6029done
6030for module in ${target_configdirs} ; do
6031 if test -z "${no_recursion}" \
6032 && test -f ${target_subdir}/${module}/Makefile; then
6033 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6034 rm -f ${target_subdir}/${module}/Makefile
6035 fi
6036 extrasub="$extrasub
6037/^@if target-$module\$/d
6038/^@endif target-$module\$/d
6039/^@if target-$module-$bootstrap_suffix\$/d
6040/^@endif target-$module-$bootstrap_suffix\$/d"
6041done
6042
6bd3dfaa
PB
6043extrasub="$extrasub
6044/^@if /,/^@endif /d"
a0da8069
NN
6045
6046# Create the serialization dependencies. This uses a temporary file.
6047
e6bfb94a
AO
6048# Check whether --enable-serial-configure or --disable-serial-configure was given.
6049if test "${enable_serial_configure+set}" = set; then
6050 enableval="$enable_serial_configure"
e6bfb94a 6051
c6b750e1 6052fi;
e6bfb94a 6053
1047cb91
DD
6054case ${enable_serial_configure} in
6055 yes)
6056 enable_serial_build_configure=yes
6057 enable_serial_host_configure=yes
6058 enable_serial_target_configure=yes
6059 ;;
6060esac
6061
a0da8069
NN
6062# These force 'configure's to be done one at a time, to avoid problems
6063# with contention over a shared config.cache.
6064rm -f serdep.tmp
e6bfb94a 6065echo '# serdep.tmp' > serdep.tmp
a0da8069 6066olditem=
1047cb91 6067test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6068for item in ${build_configdirs} ; do
6069 case ${olditem} in
6070 "") ;;
e6bfb94a 6071 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6072 esac
6073 olditem=${item}
6074done
6075olditem=
1047cb91 6076test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6077for item in ${configdirs} ; do
6078 case ${olditem} in
6079 "") ;;
e6bfb94a 6080 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6081 esac
6082 olditem=${item}
6083done
6084olditem=
1047cb91 6085test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6086for item in ${target_configdirs} ; do
6087 case ${olditem} in
6088 "") ;;
e6bfb94a 6089 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6090 esac
6091 olditem=${item}
6092done
6093serialization_dependencies=serdep.tmp
6094
6095
e6bfb94a 6096# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6097# target, nonopt, and variable assignments. These are the ones we
6098# might not want to pass down to subconfigures. Also strip
6099# program-prefix, program-suffix, and program-transform-name, so that
6100# we can pass down a consistent program-transform-name.
6101baseargs=
6102keep_next=no
6103skip_next=no
6104eval "set -- $ac_configure_args"
18f6b6ee
PB
6105for ac_arg
6106do
c6b750e1
DJ
6107 if test X"$skip_next" = X"yes"; then
6108 skip_next=no
6109 continue
6110 fi
6111 if test X"$keep_next" = X"yes"; then
6112 case $ac_arg in
6113 *\'*)
6114 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6115 esac
6116 baseargs="$baseargs '$ac_arg'"
6117 keep_next=no
6118 continue
6119 fi
6120
6121 # Handle separated arguments. Based on the logic generated by
6122 # autoconf 2.59.
6123 case $ac_arg in
6124 *=* | --config-cache | -C | -disable-* | --disable-* \
6125 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6126 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6127 | -with-* | --with-* | -without-* | --without-* | --x)
6128 separate_arg=no
6129 ;;
6130 -*)
6131 separate_arg=yes
6132 ;;
6133 *)
6134 separate_arg=no
6135 ;;
6136 esac
6137
6138 case "$ac_arg" in
6139 --no*)
6140 continue
6141 ;;
6142 --c* | \
6143 --sr* | \
6144 --ho* | \
6145 --bu* | \
6146 --t* | \
6147 --program-* | \
6148 -cache_file* | \
6149 -srcdir* | \
6150 -host* | \
6151 -build* | \
6152 -target* | \
6153 -program-prefix* | \
6154 -program-suffix* | \
6155 -program-transform-name* )
6156 skip_next=$separate_arg
6157 continue
6158 ;;
6159 -*)
6160 # An option. Add it.
6161 case $ac_arg in
6162 *\'*)
6163 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6164 esac
6165 baseargs="$baseargs '$ac_arg'"
6166 keep_next=$separate_arg
6167 ;;
6168 *)
6169 # Either a variable assignment, or a nonopt (triplet). Don't
6170 # pass it down; let the Makefile handle this.
6171 continue
6172 ;;
6173 esac
6174done
6175# Remove the initial space we just introduced and, as these will be
6176# expanded by make, quote '$'.
6177baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6178
f27d4f92
DJ
6179# Add in --program-transform-name, after --program-prefix and
6180# --program-suffix have been applied to it. Autoconf has already
6181# doubled dollar signs and backslashes in program_transform_name; we want
6182# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6183# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6184# Also, because we want to override the logic in subdir configure scripts to
6185# choose program_transform_name, replace any s,x,x, with s,y,y,.
6186sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6187${program_transform_name}
6188EOF_SED
6189gcc_transform_name=`cat conftestsed.out`
6190rm -f conftestsed.out
6191baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6192if test "$silent" = yes; then
6193 baseargs="$baseargs --silent"
6194fi
f27d4f92 6195
a0da8069
NN
6196# For the build-side libraries, we just need to pretend we're native,
6197# and not use the same cache file. Multilibs are neither needed nor
6198# desired.
4b900473 6199build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6200
6201# For host modules, accept cache file option, or specification as blank.
6202case "${cache_file}" in
6203"") # empty
6204 cache_file_option="" ;;
6205/* | [A-Za-z]:[\\/]* ) # absolute path
6206 cache_file_option="--cache-file=${cache_file}" ;;
6207*) # relative path
6208 cache_file_option="--cache-file=../${cache_file}" ;;
6209esac
6210
82252c06
NN
6211# Host dirs don't like to share a cache file either, horribly enough.
6212# This seems to be due to autoconf 2.5x stupidity.
4b900473 6213host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6214
6215target_configargs=${baseargs}
6216
6217# Passing a --with-cross-host argument lets the target libraries know
6218# whether they are being built with a cross-compiler or being built
6219# native. However, it would be better to use other mechanisms to make the
6220# sorts of decisions they want to make on this basis. Please consider
6221# this option to be deprecated. FIXME.
6222if test x${is_cross_compiler} = xyes ; then
c6b750e1 6223 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6224fi
6225
6226# Default to --enable-multilib.
6227if test x${enable_multilib} = x ; then
6228 target_configargs="--enable-multilib ${target_configargs}"
6229fi
6230
6231# Pass --with-newlib if appropriate. Note that target_configdirs has
6232# changed from the earlier setting of with_newlib.
6233if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6234 target_configargs="--with-newlib ${target_configargs}"
6235fi
6236
95036d20
NN
6237# Different target subdirs use different values of certain variables
6238# (notably CXX). Worse, multilibs use *lots* of different values.
6239# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6240# it doesn't automatically accept command-line overrides of them.
6241# This means it's not safe for target subdirs to share a cache file,
6242# which is disgusting, but there you have it. Hopefully this can be
6243# fixed in future. It's still worthwhile to use a cache file for each
6244# directory. I think.
6245
ae380b45
MS
6246# Pass the appropriate --build, --host, --target and --cache-file arguments.
6247# We need to pass --target, as newer autoconf's requires consistency
6248# for target_alias and gcc doesn't manage it consistently.
4b900473 6249target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6250
a0da8069
NN
6251FLAGS_FOR_TARGET=
6252case " $target_configdirs " in
6253 *" newlib "*)
6254 case " $target_configargs " in
6255 *" --with-newlib "*)
6256 case "$target" in
6257 *-cygwin*)
564b43e5 6258 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' ;;
a0da8069
NN
6259 esac
6260
6261 # If we're not building GCC, don't discard standard headers.
6262 if test -d ${srcdir}/gcc; then
6263 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6264
6265 if test "${build}" != "${host}"; then
6266 # On Canadian crosses, CC_FOR_TARGET will have already been set
6267 # by `configure', so we won't have an opportunity to add -Bgcc/
6268 # to it. This is right: we don't want to search that directory
6269 # for binaries, but we want the header files in there, so add
6270 # them explicitly.
b00612cc 6271 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6272
6273 # Someone might think of using the pre-installed headers on
6274 # Canadian crosses, in case the installed compiler is not fully
6275 # compatible with the compiler being built. In this case, it
6276 # would be better to flag an error than risking having
6277 # incompatible object files being constructed. We can't
6278 # guarantee that an error will be flagged, but let's hope the
6279 # compiler will do it, when presented with incompatible header
6280 # files.
6281 fi
6282 fi
6283
6284 case "${target}-${is_cross_compiler}" in
ec11bdc6 6285 i[3456789]86-*-linux*-no)
a0da8069
NN
6286 # Here host == target, so we don't need to build gcc,
6287 # so we don't want to discard standard headers.
6288 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6289 ;;
6290 *)
6291 # If we're building newlib, use its generic headers last, but search
6292 # for any libc-related directories first (so make it the last -B
6293 # switch).
6294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
6295
6296 # If we're building libgloss, find the startup file, simulator library
6297 # and linker script.
6298 case " $target_configdirs " in
6299 *" libgloss "*)
6300 # Look for startup file, simulator library and maybe linker script.
6301 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6302 # Look for libnosys.a in case the target needs it.
6303 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6304 # Most targets have the linker script in the source directory.
6305 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6306 ;;
6307 esac
a0da8069
NN
6308 ;;
6309 esac
6310 ;;
6311 esac
6312 ;;
6313esac
45055374
CV
6314case "$target" in
6315*-mingw*)
6316 # Can't be handled as Cygwin above since Mingw does not use newlib.
6317 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' ;;
6318esac
a0da8069 6319
5fbad20a
DD
6320# Allow the user to override the flags for
6321# our build compiler if desired.
c66487f8
NC
6322if test x"${build}" = x"${host}" ; then
6323 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6324 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6325 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6326fi
5fbad20a 6327
a0da8069
NN
6328# On Canadian crosses, we'll be searching the right directories for
6329# the previously-installed cross compiler, so don't bother to add
6330# flags for directories within the install tree of the compiler
6331# being built; programs in there won't even run.
6332if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6333 # Search for pre-installed headers if nothing else fits.
bba45b8b 6334 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
6335fi
6336
6337if test "x${use_gnu_ld}" = x &&
6338 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6339 # Arrange for us to find uninstalled linker scripts.
b00612cc 6340 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6341fi
6342
a481dbb7
DD
6343# Search for other target-specific linker scripts and such.
6344case "${target}" in
4e206d7e
DB
6345 mep*)
6346 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6347 ;;
6348esac
6349
a0da8069 6350# Makefile fragments.
3e707e94
PB
6351for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6352do
6353 eval fragval=\$$frag
6354 if test $fragval != /dev/null; then
6355 eval $frag=${srcdir}/$fragval
6356 fi
6357done
a0da8069
NN
6358
6359
6360
6361
6362
6363# Miscellanea: directories, flags, etc.
6364
6365
6366
6367
6368
6369
6370
3bbd2f8f 6371
6a9cf61e 6372# Build module lists & subconfigure args.
a0da8069
NN
6373
6374
6375
be01d343
PB
6376# Host module lists & subconfigure args.
6377
6378
6379
6380# Target module lists & subconfigure args.
6381
6382
6383
6384# Build tools.
6385
6386
6387
1576798e
PB
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
be01d343
PB
6402# Generate default definitions for YACC, M4, LEX and other programs that run
6403# on the build machine. These are used if the Makefile can't locate these
6404# programs in objdir.
6405MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6406
6407for ac_prog in 'bison -y' byacc yacc
6408do
c6b750e1 6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6410set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6411echo "$as_me:$LINENO: checking for $ac_word" >&5
6412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6413if test "${ac_cv_prog_YACC+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6415else
6416 if test -n "$YACC"; then
6417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6418else
c6b750e1
DJ
6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426 ac_cv_prog_YACC="$ac_prog"
6427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6429 fi
6430done
6431done
6432
be01d343
PB
6433fi
6434fi
c6b750e1 6435YACC=$ac_cv_prog_YACC
be01d343 6436if test -n "$YACC"; then
c6b750e1
DJ
6437 echo "$as_me:$LINENO: result: $YACC" >&5
6438echo "${ECHO_T}$YACC" >&6
be01d343 6439else
c6b750e1
DJ
6440 echo "$as_me:$LINENO: result: no" >&5
6441echo "${ECHO_T}no" >&6
be01d343
PB
6442fi
6443
c6b750e1 6444 test -n "$YACC" && break
be01d343
PB
6445done
6446test -n "$YACC" || YACC="$MISSING bison -y"
6447
6448case " $build_configdirs " in
6449 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6450 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6451esac
6452
6453for ac_prog in bison
6454do
c6b750e1 6455 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6456set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6457echo "$as_me:$LINENO: checking for $ac_word" >&5
6458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6459if test "${ac_cv_prog_BISON+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6461else
6462 if test -n "$BISON"; then
6463 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6464else
c6b750e1
DJ
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_BISON="$ac_prog"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476done
6477done
6478
be01d343
PB
6479fi
6480fi
c6b750e1 6481BISON=$ac_cv_prog_BISON
be01d343 6482if test -n "$BISON"; then
c6b750e1
DJ
6483 echo "$as_me:$LINENO: result: $BISON" >&5
6484echo "${ECHO_T}$BISON" >&6
be01d343 6485else
c6b750e1
DJ
6486 echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6
be01d343
PB
6488fi
6489
c6b750e1 6490 test -n "$BISON" && break
be01d343
PB
6491done
6492test -n "$BISON" || BISON="$MISSING bison"
6493
6494case " $build_configdirs " in
6495 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6496esac
6497
6498for ac_prog in gm4 gnum4 m4
6499do
c6b750e1 6500 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6501set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6502echo "$as_me:$LINENO: checking for $ac_word" >&5
6503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6504if test "${ac_cv_prog_M4+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6506else
6507 if test -n "$M4"; then
6508 ac_cv_prog_M4="$M4" # Let the user override the test.
6509else
c6b750e1
DJ
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_M4="$ac_prog"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521done
6522done
6523
be01d343
PB
6524fi
6525fi
c6b750e1 6526M4=$ac_cv_prog_M4
be01d343 6527if test -n "$M4"; then
c6b750e1
DJ
6528 echo "$as_me:$LINENO: result: $M4" >&5
6529echo "${ECHO_T}$M4" >&6
be01d343 6530else
c6b750e1
DJ
6531 echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6
be01d343
PB
6533fi
6534
c6b750e1 6535 test -n "$M4" && break
be01d343
PB
6536done
6537test -n "$M4" || M4="$MISSING m4"
6538
6539case " $build_configdirs " in
6540 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6541esac
6542
6543for ac_prog in flex lex
6544do
c6b750e1 6545 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6546set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6547echo "$as_me:$LINENO: checking for $ac_word" >&5
6548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549if test "${ac_cv_prog_LEX+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6551else
6552 if test -n "$LEX"; then
6553 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6554else
c6b750e1
DJ
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_LEX="$ac_prog"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567done
6568
be01d343
PB
6569fi
6570fi
c6b750e1 6571LEX=$ac_cv_prog_LEX
be01d343 6572if test -n "$LEX"; then
c6b750e1
DJ
6573 echo "$as_me:$LINENO: result: $LEX" >&5
6574echo "${ECHO_T}$LEX" >&6
be01d343 6575else
c6b750e1
DJ
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
be01d343
PB
6578fi
6579
c6b750e1 6580 test -n "$LEX" && break
be01d343
PB
6581done
6582test -n "$LEX" || LEX="$MISSING flex"
6583
6584case " $build_configdirs " in
6585 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6586 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6587esac
6588
6589for ac_prog in flex
6590do
c6b750e1 6591 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6592set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6593echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595if test "${ac_cv_prog_FLEX+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6597else
6598 if test -n "$FLEX"; then
6599 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6600else
c6b750e1
DJ
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_FLEX="$ac_prog"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6611 fi
6612done
6613done
6614
be01d343
PB
6615fi
6616fi
c6b750e1 6617FLEX=$ac_cv_prog_FLEX
be01d343 6618if test -n "$FLEX"; then
c6b750e1
DJ
6619 echo "$as_me:$LINENO: result: $FLEX" >&5
6620echo "${ECHO_T}$FLEX" >&6
be01d343 6621else
c6b750e1
DJ
6622 echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6
be01d343
PB
6624fi
6625
c6b750e1 6626 test -n "$FLEX" && break
be01d343
PB
6627done
6628test -n "$FLEX" || FLEX="$MISSING flex"
6629
6630case " $build_configdirs " in
6631 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6632esac
6633
6634for ac_prog in makeinfo
6635do
c6b750e1 6636 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6637set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6638echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6640if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6642else
6643 if test -n "$MAKEINFO"; then
6644 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6645else
c6b750e1
DJ
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_MAKEINFO="$ac_prog"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657done
6658done
6659
be01d343
PB
6660fi
6661fi
c6b750e1 6662MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6663if test -n "$MAKEINFO"; then
c6b750e1
DJ
6664 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6665echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6666else
c6b750e1
DJ
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
be01d343
PB
6669fi
6670
c6b750e1 6671 test -n "$MAKEINFO" && break
be01d343
PB
6672done
6673test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6674
6675case " $build_configdirs " in
6676 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6677 *)
6678
10ad8ef3 6679 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
6680 # higher, else we use the "missing" dummy.
6681 if ${MAKEINFO} --version \
10ad8ef3 6682 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6683 :
6684 else
6685 MAKEINFO="$MISSING makeinfo"
6686 fi
6687 ;;
6688
6689esac
a0da8069 6690
be01d343 6691# FIXME: expect and dejagnu may become build tools?
a0da8069 6692
be01d343
PB
6693for ac_prog in expect
6694do
c6b750e1 6695 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6696set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6697echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6699if test "${ac_cv_prog_EXPECT+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6701else
6702 if test -n "$EXPECT"; then
6703 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6704else
c6b750e1
DJ
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_EXPECT="$ac_prog"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717done
6718
be01d343
PB
6719fi
6720fi
c6b750e1 6721EXPECT=$ac_cv_prog_EXPECT
be01d343 6722if test -n "$EXPECT"; then
c6b750e1
DJ
6723 echo "$as_me:$LINENO: result: $EXPECT" >&5
6724echo "${ECHO_T}$EXPECT" >&6
be01d343 6725else
c6b750e1
DJ
6726 echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6
be01d343 6728fi
a0da8069 6729
c6b750e1 6730 test -n "$EXPECT" && break
be01d343
PB
6731done
6732test -n "$EXPECT" || EXPECT="expect"
a0da8069 6733
be01d343
PB
6734case " $configdirs " in
6735 *" expect "*)
6736 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6737 ;;
6738esac
a0da8069 6739
be01d343
PB
6740for ac_prog in runtest
6741do
c6b750e1 6742 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6743set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6744echo "$as_me:$LINENO: checking for $ac_word" >&5
6745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746if test "${ac_cv_prog_RUNTEST+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6748else
6749 if test -n "$RUNTEST"; then
6750 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6751else
c6b750e1
DJ
6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_RUNTEST="$ac_prog"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763done
6764done
6765
be01d343
PB
6766fi
6767fi
c6b750e1 6768RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6769if test -n "$RUNTEST"; then
c6b750e1
DJ
6770 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6771echo "${ECHO_T}$RUNTEST" >&6
be01d343 6772else
c6b750e1
DJ
6773 echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6
be01d343 6775fi
a0da8069 6776
c6b750e1 6777 test -n "$RUNTEST" && break
be01d343
PB
6778done
6779test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6780
be01d343
PB
6781case " $configdirs " in
6782 *" dejagnu "*)
6b89cc21 6783 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6784 ;;
6785esac
a0da8069
NN
6786
6787
a0da8069 6788# Host tools.
859789af
AC
6789ncn_tool_prefix=
6790test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6791ncn_target_tool_prefix=
6792test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6793
9a819804
AO
6794
6795
6796if test -n "$AR"; then
6797 ac_cv_prog_AR=$AR
6798elif test -n "$ac_cv_prog_AR"; then
6799 AR=$ac_cv_prog_AR
6800fi
6801
6802if test -n "$ac_cv_prog_AR"; then
6803 for ncn_progname in ar; do
6804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6805set dummy ${ncn_progname}; ac_word=$2
6806echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6808if test "${ac_cv_prog_AR+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811 if test -n "$AR"; then
6812 ac_cv_prog_AR="$AR" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821 ac_cv_prog_AR="${ncn_progname}"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825done
6826done
6827
6828fi
6829fi
6830AR=$ac_cv_prog_AR
6831if test -n "$AR"; then
6832 echo "$as_me:$LINENO: result: $AR" >&5
6833echo "${ECHO_T}$AR" >&6
6834else
6835 echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6
6837fi
6838
6839 done
6840fi
6841
6842for ncn_progname in ar; do
05cbd757
PB
6843 if test -n "$ncn_tool_prefix"; then
6844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6845set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6846echo "$as_me:$LINENO: checking for $ac_word" >&5
6847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6848if test "${ac_cv_prog_AR+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6850else
6851 if test -n "$AR"; then
6852 ac_cv_prog_AR="$AR" # Let the user override the test.
6853else
c6b750e1
DJ
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865done
6866done
6867
859789af
AC
6868fi
6869fi
c6b750e1 6870AR=$ac_cv_prog_AR
859789af 6871if test -n "$AR"; then
c6b750e1
DJ
6872 echo "$as_me:$LINENO: result: $AR" >&5
6873echo "${ECHO_T}$AR" >&6
859789af 6874else
c6b750e1
DJ
6875 echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6
859789af
AC
6877fi
6878
05cbd757
PB
6879 fi
6880 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6882set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6883echo "$as_me:$LINENO: checking for $ac_word" >&5
6884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6885if test "${ac_cv_prog_AR+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6887else
05cbd757
PB
6888 if test -n "$AR"; then
6889 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6890else
c6b750e1
DJ
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_AR="${ncn_progname}"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902done
6903done
6904
859789af
AC
6905fi
6906fi
c6b750e1 6907AR=$ac_cv_prog_AR
05cbd757 6908if test -n "$AR"; then
c6b750e1
DJ
6909 echo "$as_me:$LINENO: result: $AR" >&5
6910echo "${ECHO_T}$AR" >&6
859789af 6911else
c6b750e1
DJ
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
859789af 6914fi
c6b750e1 6915
05cbd757
PB
6916 fi
6917 test -n "$ac_cv_prog_AR" && break
6918done
6919
6920if test -z "$ac_cv_prog_AR" ; then
6921 set dummy ar
6922 if test $build = $host ; then
6923 AR="$2"
859789af 6924 else
05cbd757 6925 AR="${ncn_tool_prefix}$2"
859789af 6926 fi
859789af
AC
6927fi
6928
9a819804
AO
6929
6930
6931if test -n "$AS"; then
6932 ac_cv_prog_AS=$AS
6933elif test -n "$ac_cv_prog_AS"; then
6934 AS=$ac_cv_prog_AS
6935fi
6936
6937if test -n "$ac_cv_prog_AS"; then
6938 for ncn_progname in as; do
6939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6940set dummy ${ncn_progname}; ac_word=$2
6941echo "$as_me:$LINENO: checking for $ac_word" >&5
6942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6943if test "${ac_cv_prog_AS+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945else
6946 if test -n "$AS"; then
6947 ac_cv_prog_AS="$AS" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_AS="${ncn_progname}"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961done
6962
6963fi
6964fi
6965AS=$ac_cv_prog_AS
6966if test -n "$AS"; then
6967 echo "$as_me:$LINENO: result: $AS" >&5
6968echo "${ECHO_T}$AS" >&6
6969else
6970 echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6
6972fi
6973
6974 done
6975fi
6976
6977for ncn_progname in as; do
05cbd757
PB
6978 if test -n "$ncn_tool_prefix"; then
6979 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6980set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6981echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6983if test "${ac_cv_prog_AS+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6985else
6986 if test -n "$AS"; then
6987 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001done
7002
859789af
AC
7003fi
7004fi
c6b750e1 7005AS=$ac_cv_prog_AS
859789af 7006if test -n "$AS"; then
c6b750e1
DJ
7007 echo "$as_me:$LINENO: result: $AS" >&5
7008echo "${ECHO_T}$AS" >&6
859789af 7009else
c6b750e1
DJ
7010 echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6
859789af
AC
7012fi
7013
05cbd757
PB
7014 fi
7015 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7017set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7018echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7020if test "${ac_cv_prog_AS+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7022else
05cbd757
PB
7023 if test -n "$AS"; then
7024 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7025else
c6b750e1
DJ
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_AS="${ncn_progname}"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037done
7038done
7039
859789af
AC
7040fi
7041fi
c6b750e1 7042AS=$ac_cv_prog_AS
05cbd757 7043if test -n "$AS"; then
c6b750e1
DJ
7044 echo "$as_me:$LINENO: result: $AS" >&5
7045echo "${ECHO_T}$AS" >&6
859789af 7046else
c6b750e1
DJ
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
859789af 7049fi
c6b750e1 7050
05cbd757
PB
7051 fi
7052 test -n "$ac_cv_prog_AS" && break
7053done
7054
7055if test -z "$ac_cv_prog_AS" ; then
7056 set dummy as
7057 if test $build = $host ; then
7058 AS="$2"
859789af 7059 else
05cbd757 7060 AS="${ncn_tool_prefix}$2"
859789af 7061 fi
859789af
AC
7062fi
7063
9a819804
AO
7064
7065
7066if test -n "$DLLTOOL"; then
7067 ac_cv_prog_DLLTOOL=$DLLTOOL
7068elif test -n "$ac_cv_prog_DLLTOOL"; then
7069 DLLTOOL=$ac_cv_prog_DLLTOOL
7070fi
7071
7072if test -n "$ac_cv_prog_DLLTOOL"; then
7073 for ncn_progname in dlltool; do
7074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7075set dummy ${ncn_progname}; ac_word=$2
7076echo "$as_me:$LINENO: checking for $ac_word" >&5
7077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7078if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081 if test -n "$DLLTOOL"; then
7082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_DLLTOOL="${ncn_progname}"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095done
7096done
7097
7098fi
7099fi
7100DLLTOOL=$ac_cv_prog_DLLTOOL
7101if test -n "$DLLTOOL"; then
7102 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7103echo "${ECHO_T}$DLLTOOL" >&6
7104else
7105 echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6
7107fi
7108
7109 done
7110fi
7111
7112for ncn_progname in dlltool; do
05cbd757
PB
7113 if test -n "$ncn_tool_prefix"; then
7114 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7115set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7116echo "$as_me:$LINENO: checking for $ac_word" >&5
7117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7118if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7120else
7121 if test -n "$DLLTOOL"; then
7122 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7123else
c6b750e1
DJ
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135done
7136done
7137
859789af
AC
7138fi
7139fi
c6b750e1 7140DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7141if test -n "$DLLTOOL"; then
c6b750e1
DJ
7142 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7143echo "${ECHO_T}$DLLTOOL" >&6
859789af 7144else
c6b750e1
DJ
7145 echo "$as_me:$LINENO: result: no" >&5
7146echo "${ECHO_T}no" >&6
859789af
AC
7147fi
7148
05cbd757
PB
7149 fi
7150 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7152set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7153echo "$as_me:$LINENO: checking for $ac_word" >&5
7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7155if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7157else
05cbd757
PB
7158 if test -n "$DLLTOOL"; then
7159 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7160else
c6b750e1
DJ
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_DLLTOOL="${ncn_progname}"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172done
7173done
7174
859789af
AC
7175fi
7176fi
c6b750e1 7177DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7178if test -n "$DLLTOOL"; then
c6b750e1
DJ
7179 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7180echo "${ECHO_T}$DLLTOOL" >&6
859789af 7181else
c6b750e1
DJ
7182 echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6
859789af 7184fi
c6b750e1 7185
05cbd757
PB
7186 fi
7187 test -n "$ac_cv_prog_DLLTOOL" && break
7188done
7189
7190if test -z "$ac_cv_prog_DLLTOOL" ; then
7191 set dummy dlltool
7192 if test $build = $host ; then
7193 DLLTOOL="$2"
859789af 7194 else
05cbd757 7195 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7196 fi
859789af
AC
7197fi
7198
9a819804
AO
7199
7200
7201if test -n "$LD"; then
7202 ac_cv_prog_LD=$LD
7203elif test -n "$ac_cv_prog_LD"; then
7204 LD=$ac_cv_prog_LD
7205fi
7206
7207if test -n "$ac_cv_prog_LD"; then
7208 for ncn_progname in ld; do
7209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7210set dummy ${ncn_progname}; ac_word=$2
7211echo "$as_me:$LINENO: checking for $ac_word" >&5
7212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213if test "${ac_cv_prog_LD+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 if test -n "$LD"; then
7217 ac_cv_prog_LD="$LD" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_LD="${ncn_progname}"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230done
7231done
7232
7233fi
7234fi
7235LD=$ac_cv_prog_LD
7236if test -n "$LD"; then
7237 echo "$as_me:$LINENO: result: $LD" >&5
7238echo "${ECHO_T}$LD" >&6
7239else
7240 echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6
7242fi
7243
7244 done
7245fi
7246
7247for ncn_progname in ld; do
05cbd757
PB
7248 if test -n "$ncn_tool_prefix"; then
7249 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7250set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7251echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7253if test "${ac_cv_prog_LD+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7255else
7256 if test -n "$LD"; then
7257 ac_cv_prog_LD="$LD" # Let the user override the test.
7258else
c6b750e1
DJ
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270done
7271done
7272
859789af
AC
7273fi
7274fi
c6b750e1 7275LD=$ac_cv_prog_LD
859789af 7276if test -n "$LD"; then
c6b750e1
DJ
7277 echo "$as_me:$LINENO: result: $LD" >&5
7278echo "${ECHO_T}$LD" >&6
859789af 7279else
c6b750e1
DJ
7280 echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6
859789af
AC
7282fi
7283
05cbd757
PB
7284 fi
7285 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7287set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7288echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7290if test "${ac_cv_prog_LD+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7292else
05cbd757
PB
7293 if test -n "$LD"; then
7294 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7295else
c6b750e1
DJ
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_LD="${ncn_progname}"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307done
7308done
7309
859789af
AC
7310fi
7311fi
c6b750e1 7312LD=$ac_cv_prog_LD
05cbd757 7313if test -n "$LD"; then
c6b750e1
DJ
7314 echo "$as_me:$LINENO: result: $LD" >&5
7315echo "${ECHO_T}$LD" >&6
859789af 7316else
c6b750e1
DJ
7317 echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6
859789af 7319fi
c6b750e1 7320
05cbd757
PB
7321 fi
7322 test -n "$ac_cv_prog_LD" && break
7323done
7324
7325if test -z "$ac_cv_prog_LD" ; then
7326 set dummy ld
7327 if test $build = $host ; then
7328 LD="$2"
859789af 7329 else
05cbd757 7330 LD="${ncn_tool_prefix}$2"
859789af 7331 fi
859789af
AC
7332fi
7333
9a819804
AO
7334
7335
7336if test -n "$LIPO"; then
7337 ac_cv_prog_LIPO=$LIPO
7338elif test -n "$ac_cv_prog_LIPO"; then
7339 LIPO=$ac_cv_prog_LIPO
7340fi
7341
7342if test -n "$ac_cv_prog_LIPO"; then
7343 for ncn_progname in lipo; do
7344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7345set dummy ${ncn_progname}; ac_word=$2
7346echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7348if test "${ac_cv_prog_LIPO+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 if test -n "$LIPO"; then
7352 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_LIPO="${ncn_progname}"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366done
7367
7368fi
7369fi
7370LIPO=$ac_cv_prog_LIPO
7371if test -n "$LIPO"; then
7372 echo "$as_me:$LINENO: result: $LIPO" >&5
7373echo "${ECHO_T}$LIPO" >&6
7374else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377fi
7378
7379 done
7380fi
7381
7382for ncn_progname in lipo; do
be01d343
PB
7383 if test -n "$ncn_tool_prefix"; then
7384 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7385set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7386echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7388if test "${ac_cv_prog_LIPO+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7390else
7391 if test -n "$LIPO"; then
7392 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7393else
c6b750e1
DJ
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406done
7407
be01d343
PB
7408fi
7409fi
c6b750e1 7410LIPO=$ac_cv_prog_LIPO
be01d343 7411if test -n "$LIPO"; then
c6b750e1
DJ
7412 echo "$as_me:$LINENO: result: $LIPO" >&5
7413echo "${ECHO_T}$LIPO" >&6
be01d343 7414else
c6b750e1
DJ
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
be01d343
PB
7417fi
7418
7419 fi
7420 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7422set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7423echo "$as_me:$LINENO: checking for $ac_word" >&5
7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425if test "${ac_cv_prog_LIPO+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7427else
7428 if test -n "$LIPO"; then
7429 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7430else
c6b750e1
DJ
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_LIPO="${ncn_progname}"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442done
7443done
7444
be01d343
PB
7445fi
7446fi
c6b750e1 7447LIPO=$ac_cv_prog_LIPO
be01d343 7448if test -n "$LIPO"; then
c6b750e1
DJ
7449 echo "$as_me:$LINENO: result: $LIPO" >&5
7450echo "${ECHO_T}$LIPO" >&6
be01d343 7451else
c6b750e1
DJ
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
be01d343 7454fi
c6b750e1 7455
be01d343
PB
7456 fi
7457 test -n "$ac_cv_prog_LIPO" && break
7458done
7459
7460if test -z "$ac_cv_prog_LIPO" ; then
7461 set dummy lipo
7462 if test $build = $host ; then
7463 LIPO="$2"
7464 else
7465 LIPO="${ncn_tool_prefix}$2"
7466 fi
7467fi
7468
9a819804
AO
7469
7470
7471if test -n "$NM"; then
7472 ac_cv_prog_NM=$NM
7473elif test -n "$ac_cv_prog_NM"; then
7474 NM=$ac_cv_prog_NM
7475fi
7476
7477if test -n "$ac_cv_prog_NM"; then
7478 for ncn_progname in nm; do
7479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7480set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7481echo "$as_me:$LINENO: checking for $ac_word" >&5
7482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7483if test "${ac_cv_prog_NM+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7485else
7486 if test -n "$NM"; then
7487 ac_cv_prog_NM="$NM" # Let the user override the test.
7488else
c6b750e1
DJ
7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7496 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500done
7501done
7502
859789af
AC
7503fi
7504fi
c6b750e1 7505NM=$ac_cv_prog_NM
859789af 7506if test -n "$NM"; then
c6b750e1
DJ
7507 echo "$as_me:$LINENO: result: $NM" >&5
7508echo "${ECHO_T}$NM" >&6
859789af 7509else
c6b750e1
DJ
7510 echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
859789af
AC
7512fi
7513
9a819804
AO
7514 done
7515fi
7516
7517for ncn_progname in nm; do
7518 if test -n "$ncn_tool_prefix"; then
7519 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7520set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7521echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7523if test "${ac_cv_prog_NM+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7525else
05cbd757
PB
7526 if test -n "$NM"; then
7527 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7528else
c6b750e1
DJ
7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7536 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7539 fi
7540done
7541done
7542
859789af
AC
7543fi
7544fi
c6b750e1 7545NM=$ac_cv_prog_NM
05cbd757 7546if test -n "$NM"; then
c6b750e1
DJ
7547 echo "$as_me:$LINENO: result: $NM" >&5
7548echo "${ECHO_T}$NM" >&6
859789af 7549else
c6b750e1
DJ
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
859789af 7552fi
c6b750e1 7553
05cbd757 7554 fi
9a819804
AO
7555 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7557set dummy ${ncn_progname}; ac_word=$2
7558echo "$as_me:$LINENO: checking for $ac_word" >&5
7559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7560if test "${ac_cv_prog_NM+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 if test -n "$NM"; then
7564 ac_cv_prog_NM="$NM" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_NM="${ncn_progname}"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577done
7578done
7579
7580fi
7581fi
7582NM=$ac_cv_prog_NM
7583if test -n "$NM"; then
7584 echo "$as_me:$LINENO: result: $NM" >&5
7585echo "${ECHO_T}$NM" >&6
7586else
7587 echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6
7589fi
7590
7591 fi
7592 test -n "$ac_cv_prog_NM" && break
7593done
7594
7595if test -z "$ac_cv_prog_NM" ; then
7596 set dummy nm
7597 if test $build = $host ; then
7598 NM="$2"
7599 else
7600 NM="${ncn_tool_prefix}$2"
7601 fi
7602fi
7603
7604
7605
7606if test -n "$RANLIB"; then
7607 ac_cv_prog_RANLIB=$RANLIB
7608elif test -n "$ac_cv_prog_RANLIB"; then
7609 RANLIB=$ac_cv_prog_RANLIB
7610fi
7611
7612if test -n "$ac_cv_prog_RANLIB"; then
7613 for ncn_progname in ranlib; do
7614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7615set dummy ${ncn_progname}; ac_word=$2
7616echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7618if test "${ac_cv_prog_RANLIB+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621 if test -n "$RANLIB"; then
7622 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7623else
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_RANLIB="${ncn_progname}"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635done
7636done
7637
7638fi
7639fi
7640RANLIB=$ac_cv_prog_RANLIB
7641if test -n "$RANLIB"; then
7642 echo "$as_me:$LINENO: result: $RANLIB" >&5
7643echo "${ECHO_T}$RANLIB" >&6
7644else
7645 echo "$as_me:$LINENO: result: no" >&5
7646echo "${ECHO_T}no" >&6
7647fi
7648
7649 done
7650fi
859789af 7651
9a819804 7652for ncn_progname in ranlib; do
05cbd757
PB
7653 if test -n "$ncn_tool_prefix"; then
7654 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7655set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7656echo "$as_me:$LINENO: checking for $ac_word" >&5
7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7658if test "${ac_cv_prog_RANLIB+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7660else
7661 if test -n "$RANLIB"; then
7662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7663else
c6b750e1
DJ
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675done
7676done
7677
859789af
AC
7678fi
7679fi
c6b750e1 7680RANLIB=$ac_cv_prog_RANLIB
859789af 7681if test -n "$RANLIB"; then
c6b750e1
DJ
7682 echo "$as_me:$LINENO: result: $RANLIB" >&5
7683echo "${ECHO_T}$RANLIB" >&6
859789af 7684else
c6b750e1
DJ
7685 echo "$as_me:$LINENO: result: no" >&5
7686echo "${ECHO_T}no" >&6
859789af
AC
7687fi
7688
05cbd757
PB
7689 fi
7690 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7692set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7693echo "$as_me:$LINENO: checking for $ac_word" >&5
7694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7695if test "${ac_cv_prog_RANLIB+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7697else
05cbd757
PB
7698 if test -n "$RANLIB"; then
7699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7700else
c6b750e1
DJ
7701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_RANLIB="${ncn_progname}"
7709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7711 fi
7712done
7713done
7714
859789af
AC
7715fi
7716fi
c6b750e1 7717RANLIB=$ac_cv_prog_RANLIB
05cbd757 7718if test -n "$RANLIB"; then
c6b750e1
DJ
7719 echo "$as_me:$LINENO: result: $RANLIB" >&5
7720echo "${ECHO_T}$RANLIB" >&6
859789af 7721else
c6b750e1
DJ
7722 echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6
859789af 7724fi
c6b750e1 7725
859789af 7726 fi
05cbd757
PB
7727 test -n "$ac_cv_prog_RANLIB" && break
7728done
7729
7730if test -z "$ac_cv_prog_RANLIB" ; then
7731 RANLIB=":"
859789af
AC
7732fi
7733
9a819804
AO
7734
7735
7736if test -n "$STRIP"; then
7737 ac_cv_prog_STRIP=$STRIP
7738elif test -n "$ac_cv_prog_STRIP"; then
7739 STRIP=$ac_cv_prog_STRIP
7740fi
7741
7742if test -n "$ac_cv_prog_STRIP"; then
7743 for ncn_progname in strip; do
7744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7745set dummy ${ncn_progname}; ac_word=$2
7746echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7748if test "${ac_cv_prog_STRIP+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751 if test -n "$STRIP"; then
7752 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7753else
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_STRIP="${ncn_progname}"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765done
7766done
7767
7768fi
7769fi
7770STRIP=$ac_cv_prog_STRIP
7771if test -n "$STRIP"; then
7772 echo "$as_me:$LINENO: result: $STRIP" >&5
7773echo "${ECHO_T}$STRIP" >&6
7774else
7775 echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6
7777fi
7778
7779 done
7780fi
7781
7782for ncn_progname in strip; do
be01d343
PB
7783 if test -n "$ncn_tool_prefix"; then
7784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7785set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7786echo "$as_me:$LINENO: checking for $ac_word" >&5
7787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788if test "${ac_cv_prog_STRIP+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7790else
7791 if test -n "$STRIP"; then
7792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7793else
c6b750e1
DJ
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806done
7807
be01d343
PB
7808fi
7809fi
c6b750e1 7810STRIP=$ac_cv_prog_STRIP
be01d343 7811if test -n "$STRIP"; then
c6b750e1
DJ
7812 echo "$as_me:$LINENO: result: $STRIP" >&5
7813echo "${ECHO_T}$STRIP" >&6
be01d343 7814else
c6b750e1
DJ
7815 echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
be01d343
PB
7817fi
7818
7819 fi
7820 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7822set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7823echo "$as_me:$LINENO: checking for $ac_word" >&5
7824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7825if test "${ac_cv_prog_STRIP+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7827else
7828 if test -n "$STRIP"; then
7829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7830else
c6b750e1
DJ
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_STRIP="${ncn_progname}"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842done
7843done
7844
be01d343
PB
7845fi
7846fi
c6b750e1 7847STRIP=$ac_cv_prog_STRIP
be01d343 7848if test -n "$STRIP"; then
c6b750e1
DJ
7849 echo "$as_me:$LINENO: result: $STRIP" >&5
7850echo "${ECHO_T}$STRIP" >&6
be01d343 7851else
c6b750e1
DJ
7852 echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6
be01d343 7854fi
c6b750e1 7855
be01d343
PB
7856 fi
7857 test -n "$ac_cv_prog_STRIP" && break
7858done
7859
7860if test -z "$ac_cv_prog_STRIP" ; then
7861 STRIP=":"
7862fi
7863
9a819804
AO
7864
7865
7866if test -n "$WINDRES"; then
7867 ac_cv_prog_WINDRES=$WINDRES
7868elif test -n "$ac_cv_prog_WINDRES"; then
7869 WINDRES=$ac_cv_prog_WINDRES
7870fi
7871
7872if test -n "$ac_cv_prog_WINDRES"; then
7873 for ncn_progname in windres; do
7874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7875set dummy ${ncn_progname}; ac_word=$2
7876echo "$as_me:$LINENO: checking for $ac_word" >&5
7877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7878if test "${ac_cv_prog_WINDRES+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881 if test -n "$WINDRES"; then
7882 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_WINDRES="${ncn_progname}"
7892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895done
7896done
7897
7898fi
7899fi
7900WINDRES=$ac_cv_prog_WINDRES
7901if test -n "$WINDRES"; then
7902 echo "$as_me:$LINENO: result: $WINDRES" >&5
7903echo "${ECHO_T}$WINDRES" >&6
7904else
7905 echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
7907fi
7908
7909 done
7910fi
7911
7912for ncn_progname in windres; do
05cbd757
PB
7913 if test -n "$ncn_tool_prefix"; then
7914 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7915set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7916echo "$as_me:$LINENO: checking for $ac_word" >&5
7917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918if test "${ac_cv_prog_WINDRES+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7920else
7921 if test -n "$WINDRES"; then
7922 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7923else
c6b750e1
DJ
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935done
7936done
7937
859789af
AC
7938fi
7939fi
c6b750e1 7940WINDRES=$ac_cv_prog_WINDRES
859789af 7941if test -n "$WINDRES"; then
c6b750e1
DJ
7942 echo "$as_me:$LINENO: result: $WINDRES" >&5
7943echo "${ECHO_T}$WINDRES" >&6
859789af 7944else
c6b750e1
DJ
7945 echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6
859789af
AC
7947fi
7948
05cbd757
PB
7949 fi
7950 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7952set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7953echo "$as_me:$LINENO: checking for $ac_word" >&5
7954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7955if test "${ac_cv_prog_WINDRES+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7957else
05cbd757
PB
7958 if test -n "$WINDRES"; then
7959 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7960else
c6b750e1
DJ
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968 ac_cv_prog_WINDRES="${ncn_progname}"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972done
7973done
7974
859789af
AC
7975fi
7976fi
c6b750e1 7977WINDRES=$ac_cv_prog_WINDRES
05cbd757 7978if test -n "$WINDRES"; then
c6b750e1
DJ
7979 echo "$as_me:$LINENO: result: $WINDRES" >&5
7980echo "${ECHO_T}$WINDRES" >&6
859789af 7981else
c6b750e1
DJ
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
859789af 7984fi
c6b750e1 7985
05cbd757
PB
7986 fi
7987 test -n "$ac_cv_prog_WINDRES" && break
7988done
7989
7990if test -z "$ac_cv_prog_WINDRES" ; then
7991 set dummy windres
7992 if test $build = $host ; then
7993 WINDRES="$2"
859789af 7994 else
05cbd757 7995 WINDRES="${ncn_tool_prefix}$2"
859789af 7996 fi
859789af
AC
7997fi
7998
9a819804
AO
7999
8000
0c24b341
NC
8001if test -n "$WINDMC"; then
8002 ac_cv_prog_WINDMC=$WINDMC
8003elif test -n "$ac_cv_prog_WINDMC"; then
8004 WINDMC=$ac_cv_prog_WINDMC
8005fi
8006
8007if test -n "$ac_cv_prog_WINDMC"; then
8008 for ncn_progname in windmc; do
8009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8010set dummy ${ncn_progname}; ac_word=$2
8011echo "$as_me:$LINENO: checking for $ac_word" >&5
8012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8013if test "${ac_cv_prog_WINDMC+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016 if test -n "$WINDMC"; then
8017 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8018else
8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_WINDMC="${ncn_progname}"
8027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030done
8031done
8032
8033fi
8034fi
8035WINDMC=$ac_cv_prog_WINDMC
8036if test -n "$WINDMC"; then
8037 echo "$as_me:$LINENO: result: $WINDMC" >&5
8038echo "${ECHO_T}$WINDMC" >&6
8039else
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
8042fi
8043
8044 done
8045fi
8046
8047for ncn_progname in windmc; do
8048 if test -n "$ncn_tool_prefix"; then
8049 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8050set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8051echo "$as_me:$LINENO: checking for $ac_word" >&5
8052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8053if test "${ac_cv_prog_WINDMC+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056 if test -n "$WINDMC"; then
8057 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8058else
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070done
8071done
8072
8073fi
8074fi
8075WINDMC=$ac_cv_prog_WINDMC
8076if test -n "$WINDMC"; then
8077 echo "$as_me:$LINENO: result: $WINDMC" >&5
8078echo "${ECHO_T}$WINDMC" >&6
8079else
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
8082fi
8083
8084 fi
8085 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8087set dummy ${ncn_progname}; ac_word=$2
8088echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8090if test "${ac_cv_prog_WINDMC+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093 if test -n "$WINDMC"; then
8094 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_WINDMC="${ncn_progname}"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108done
8109
8110fi
8111fi
8112WINDMC=$ac_cv_prog_WINDMC
8113if test -n "$WINDMC"; then
8114 echo "$as_me:$LINENO: result: $WINDMC" >&5
8115echo "${ECHO_T}$WINDMC" >&6
8116else
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
8119fi
8120
8121 fi
8122 test -n "$ac_cv_prog_WINDMC" && break
8123done
8124
8125if test -z "$ac_cv_prog_WINDMC" ; then
8126 set dummy windmc
8127 if test $build = $host ; then
8128 WINDMC="$2"
8129 else
8130 WINDMC="${ncn_tool_prefix}$2"
8131 fi
8132fi
8133
8134
8135
9a819804
AO
8136if test -n "$OBJCOPY"; then
8137 ac_cv_prog_OBJCOPY=$OBJCOPY
8138elif test -n "$ac_cv_prog_OBJCOPY"; then
8139 OBJCOPY=$ac_cv_prog_OBJCOPY
8140fi
8141
8142if test -n "$ac_cv_prog_OBJCOPY"; then
8143 for ncn_progname in objcopy; do
8144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8145set dummy ${ncn_progname}; ac_word=$2
8146echo "$as_me:$LINENO: checking for $ac_word" >&5
8147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8148if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151 if test -n "$OBJCOPY"; then
8152 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8153else
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161 ac_cv_prog_OBJCOPY="${ncn_progname}"
8162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 break 2
8164 fi
8165done
8166done
8167
8168fi
8169fi
8170OBJCOPY=$ac_cv_prog_OBJCOPY
8171if test -n "$OBJCOPY"; then
8172 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8173echo "${ECHO_T}$OBJCOPY" >&6
8174else
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
8177fi
8178
8179 done
8180fi
8181
8182for ncn_progname in objcopy; do
05cbd757
PB
8183 if test -n "$ncn_tool_prefix"; then
8184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8185set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8186echo "$as_me:$LINENO: checking for $ac_word" >&5
8187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8188if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8190else
8191 if test -n "$OBJCOPY"; then
8192 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8193else
c6b750e1
DJ
8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195for as_dir in $PATH
8196do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8204 fi
8205done
8206done
8207
859789af
AC
8208fi
8209fi
c6b750e1 8210OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8211if test -n "$OBJCOPY"; then
c6b750e1
DJ
8212 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8213echo "${ECHO_T}$OBJCOPY" >&6
859789af 8214else
c6b750e1
DJ
8215 echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6
859789af
AC
8217fi
8218
05cbd757
PB
8219 fi
8220 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8222set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8223echo "$as_me:$LINENO: checking for $ac_word" >&5
8224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8225if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8227else
05cbd757
PB
8228 if test -n "$OBJCOPY"; then
8229 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8230else
c6b750e1
DJ
8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_OBJCOPY="${ncn_progname}"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242done
8243done
8244
859789af
AC
8245fi
8246fi
c6b750e1 8247OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8248if test -n "$OBJCOPY"; then
c6b750e1
DJ
8249 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8250echo "${ECHO_T}$OBJCOPY" >&6
859789af 8251else
c6b750e1
DJ
8252 echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6
859789af 8254fi
c6b750e1 8255
05cbd757
PB
8256 fi
8257 test -n "$ac_cv_prog_OBJCOPY" && break
8258done
8259
8260if test -z "$ac_cv_prog_OBJCOPY" ; then
8261 set dummy objcopy
8262 if test $build = $host ; then
8263 OBJCOPY="$2"
859789af 8264 else
05cbd757 8265 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8266 fi
859789af
AC
8267fi
8268
9a819804
AO
8269
8270
8271if test -n "$OBJDUMP"; then
8272 ac_cv_prog_OBJDUMP=$OBJDUMP
8273elif test -n "$ac_cv_prog_OBJDUMP"; then
8274 OBJDUMP=$ac_cv_prog_OBJDUMP
8275fi
8276
8277if test -n "$ac_cv_prog_OBJDUMP"; then
8278 for ncn_progname in objdump; do
8279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8280set dummy ${ncn_progname}; ac_word=$2
8281echo "$as_me:$LINENO: checking for $ac_word" >&5
8282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 if test -n "$OBJDUMP"; then
8287 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8288else
8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_OBJDUMP="${ncn_progname}"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300done
8301done
8302
8303fi
8304fi
8305OBJDUMP=$ac_cv_prog_OBJDUMP
8306if test -n "$OBJDUMP"; then
8307 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8308echo "${ECHO_T}$OBJDUMP" >&6
8309else
8310 echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
8312fi
8313
8314 done
8315fi
8316
8317for ncn_progname in objdump; do
05cbd757
PB
8318 if test -n "$ncn_tool_prefix"; then
8319 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8320set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8321echo "$as_me:$LINENO: checking for $ac_word" >&5
8322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8323if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8325else
8326 if test -n "$OBJDUMP"; then
8327 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8328else
c6b750e1
DJ
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8336 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340done
8341done
8342
859789af
AC
8343fi
8344fi
c6b750e1 8345OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8346if test -n "$OBJDUMP"; then
c6b750e1
DJ
8347 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8348echo "${ECHO_T}$OBJDUMP" >&6
859789af 8349else
c6b750e1
DJ
8350 echo "$as_me:$LINENO: result: no" >&5
8351echo "${ECHO_T}no" >&6
859789af
AC
8352fi
8353
05cbd757
PB
8354 fi
8355 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8357set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8358echo "$as_me:$LINENO: checking for $ac_word" >&5
8359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8360if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8362else
05cbd757
PB
8363 if test -n "$OBJDUMP"; then
8364 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8365else
c6b750e1
DJ
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_prog_OBJDUMP="${ncn_progname}"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8376 fi
8377done
8378done
8379
859789af
AC
8380fi
8381fi
c6b750e1 8382OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8383if test -n "$OBJDUMP"; then
c6b750e1
DJ
8384 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8385echo "${ECHO_T}$OBJDUMP" >&6
859789af 8386else
c6b750e1
DJ
8387 echo "$as_me:$LINENO: result: no" >&5
8388echo "${ECHO_T}no" >&6
859789af 8389fi
c6b750e1 8390
05cbd757
PB
8391 fi
8392 test -n "$ac_cv_prog_OBJDUMP" && break
8393done
8394
8395if test -z "$ac_cv_prog_OBJDUMP" ; then
8396 set dummy objdump
8397 if test $build = $host ; then
8398 OBJDUMP="$2"
859789af 8399 else
05cbd757 8400 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8401 fi
859789af
AC
8402fi
8403
a0da8069
NN
8404
8405
8406
8407
8408
be01d343 8409# Target tools.
c6b750e1 8410
2429c060
PB
8411# Check whether --with-build-time-tools or --without-build-time-tools was given.
8412if test "${with_build_time_tools+set}" = set; then
8413 withval="$with_build_time_tools"
8414 case x"$withval" in
8415 x/*) ;;
8416 *)
8417 with_build_time_tools=
c6b750e1
DJ
8418 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8419echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8420 ;;
8421 esac
859789af 8422else
2429c060 8423 with_build_time_tools=
c6b750e1 8424fi;
859789af 8425
9a819804
AO
8426
8427
8428if test -n "$CC_FOR_TARGET"; then
8429 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8430elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8431 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8432fi
8433
8434if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8435 for ncn_progname in cc gcc; do
8436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8437set dummy ${ncn_progname}; ac_word=$2
8438echo "$as_me:$LINENO: checking for $ac_word" >&5
8439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8440if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 if test -n "$CC_FOR_TARGET"; then
8444 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8445else
8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 break 2
8456 fi
8457done
8458done
8459
8460fi
8461fi
8462CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8463if test -n "$CC_FOR_TARGET"; then
8464 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8465echo "${ECHO_T}$CC_FOR_TARGET" >&6
8466else
8467 echo "$as_me:$LINENO: result: no" >&5
8468echo "${ECHO_T}no" >&6
8469fi
8470
8471 done
8472fi
8473
8474if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8475 for ncn_progname in cc gcc; do
c6b750e1
DJ
8476 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8477echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8478 if test -x $with_build_time_tools/${ncn_progname}; then
8479 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
cac3d6c4 8482 break
2429c060 8483 else
c6b750e1
DJ
8484 echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6
cac3d6c4
CM
8486 fi
8487 done
55db4b87
PB
8488fi
8489
2429c060
PB
8490if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8491 for ncn_progname in cc gcc; do
8492 if test -n "$ncn_target_tool_prefix"; then
8493 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8494set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8495echo "$as_me:$LINENO: checking for $ac_word" >&5
8496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8497if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8499else
8500 if test -n "$CC_FOR_TARGET"; then
8501 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8502else
c6b750e1
DJ
8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8510 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8513 fi
8514done
8515done
8516
55db4b87
PB
8517fi
8518fi
c6b750e1 8519CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8520if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8521 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8522echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8523else
c6b750e1
DJ
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
55db4b87
PB
8526fi
8527
2429c060
PB
8528 fi
8529 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8531set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8532echo "$as_me:$LINENO: checking for $ac_word" >&5
8533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8534if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8536else
05cbd757
PB
8537 if test -n "$CC_FOR_TARGET"; then
8538 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8539else
c6b750e1
DJ
8540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541for as_dir in $PATH
8542do
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8550 fi
8551done
8552done
8553
55db4b87
PB
8554fi
8555fi
c6b750e1 8556CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8557if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8558 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8559echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8560else
c6b750e1
DJ
8561 echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
55db4b87 8563fi
c6b750e1 8564
2429c060
PB
8565 fi
8566 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8567 done
8568fi
c6b750e1 8569
05cbd757
PB
8570if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8571 set dummy cc gcc
8572 if test $build = $target ; then
8573 CC_FOR_TARGET="$2"
55db4b87 8574 else
05cbd757 8575 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8576 fi
d3f5afc4
MS
8577else
8578 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8579fi
8580
9a819804
AO
8581
8582
8583if test -n "$CXX_FOR_TARGET"; then
8584 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8585elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8586 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8587fi
8588
8589if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8590 for ncn_progname in c++ g++ cxx gxx; do
8591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8592set dummy ${ncn_progname}; ac_word=$2
8593echo "$as_me:$LINENO: checking for $ac_word" >&5
8594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8595if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597else
8598 if test -n "$CXX_FOR_TARGET"; then
8599 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8600else
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612done
8613done
8614
8615fi
8616fi
8617CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8618if test -n "$CXX_FOR_TARGET"; then
8619 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8620echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8621else
8622 echo "$as_me:$LINENO: result: no" >&5
8623echo "${ECHO_T}no" >&6
8624fi
8625
8626 done
8627fi
8628
8629if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8630 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8631 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8632echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8633 if test -x $with_build_time_tools/${ncn_progname}; then
8634 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8635 echo "$as_me:$LINENO: result: yes" >&5
8636echo "${ECHO_T}yes" >&6
2429c060
PB
8637 break
8638 else
c6b750e1
DJ
8639 echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6
2429c060
PB
8641 fi
8642 done
8643fi
8644
8645if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8646 for ncn_progname in c++ g++ cxx gxx; do
8647 if test -n "$ncn_target_tool_prefix"; then
8648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8649set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8650echo "$as_me:$LINENO: checking for $ac_word" >&5
8651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8652if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8654else
8655 if test -n "$CXX_FOR_TARGET"; then
8656 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8657else
c6b750e1
DJ
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669done
8670done
8671
55db4b87
PB
8672fi
8673fi
c6b750e1 8674CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8675if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8676 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8677echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8678else
c6b750e1
DJ
8679 echo "$as_me:$LINENO: result: no" >&5
8680echo "${ECHO_T}no" >&6
55db4b87
PB
8681fi
8682
2429c060
PB
8683 fi
8684 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8686set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8687echo "$as_me:$LINENO: checking for $ac_word" >&5
8688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8689if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8691else
05cbd757
PB
8692 if test -n "$CXX_FOR_TARGET"; then
8693 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8694else
c6b750e1
DJ
8695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696for as_dir in $PATH
8697do
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8702 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 break 2
8705 fi
8706done
8707done
8708
55db4b87
PB
8709fi
8710fi
c6b750e1 8711CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8712if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8713 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8714echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8715else
c6b750e1
DJ
8716 echo "$as_me:$LINENO: result: no" >&5
8717echo "${ECHO_T}no" >&6
55db4b87 8718fi
c6b750e1 8719
2429c060
PB
8720 fi
8721 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8722 done
8723fi
c6b750e1 8724
05cbd757
PB
8725if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8726 set dummy c++ g++ cxx gxx
8727 if test $build = $target ; then
8728 CXX_FOR_TARGET="$2"
55db4b87 8729 else
05cbd757 8730 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8731 fi
d3f5afc4
MS
8732else
8733 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8734fi
8735
9a819804
AO
8736
8737
8738if test -n "$GCC_FOR_TARGET"; then
8739 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8740elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8741 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8742fi
8743
8744if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8745 for ncn_progname in gcc; do
8746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8747set dummy ${ncn_progname}; ac_word=$2
8748echo "$as_me:$LINENO: checking for $ac_word" >&5
8749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8750if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752else
8753 if test -n "$GCC_FOR_TARGET"; then
8754 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8755else
8756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757for as_dir in $PATH
8758do
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767done
8768done
8769
8770fi
8771fi
8772GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8773if test -n "$GCC_FOR_TARGET"; then
8774 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8775echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8776else
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
8779fi
8780
8781 done
8782fi
8783
8784if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8785 for ncn_progname in gcc; do
c6b750e1
DJ
8786 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8787echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8788 if test -x $with_build_time_tools/${ncn_progname}; then
8789 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8790 echo "$as_me:$LINENO: result: yes" >&5
8791echo "${ECHO_T}yes" >&6
2429c060
PB
8792 break
8793 else
c6b750e1
DJ
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
2429c060
PB
8796 fi
8797 done
8798fi
8799
8800if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8801 for ncn_progname in gcc; do
8802 if test -n "$ncn_target_tool_prefix"; then
8803 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8804set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8805echo "$as_me:$LINENO: checking for $ac_word" >&5
8806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8807if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8809else
2429c060
PB
8810 if test -n "$GCC_FOR_TARGET"; then
8811 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8812else
c6b750e1
DJ
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824done
8825done
8826
55db4b87
PB
8827fi
8828fi
c6b750e1 8829GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8830if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8831 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8832echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8833else
c6b750e1
DJ
8834 echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
55db4b87
PB
8836fi
8837
2429c060
PB
8838 fi
8839 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8841set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8842echo "$as_me:$LINENO: checking for $ac_word" >&5
8843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8844if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8846else
05cbd757
PB
8847 if test -n "$GCC_FOR_TARGET"; then
8848 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8849else
c6b750e1
DJ
8850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851for as_dir in $PATH
8852do
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 break 2
8860 fi
8861done
8862done
8863
55db4b87
PB
8864fi
8865fi
c6b750e1 8866GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8867if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8868 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8869echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8870else
c6b750e1
DJ
8871 echo "$as_me:$LINENO: result: no" >&5
8872echo "${ECHO_T}no" >&6
55db4b87 8873fi
c6b750e1 8874
2429c060
PB
8875 fi
8876 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8877 done
8878fi
c6b750e1 8879
05cbd757
PB
8880if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8881 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8882else
8883 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8884fi
8885
9a819804
AO
8886
8887
8888if test -n "$GCJ_FOR_TARGET"; then
8889 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8890elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8891 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8892fi
8893
8894if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8895 for ncn_progname in gcj; do
8896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8897set dummy ${ncn_progname}; ac_word=$2
8898echo "$as_me:$LINENO: checking for $ac_word" >&5
8899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8900if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902else
8903 if test -n "$GCJ_FOR_TARGET"; then
8904 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8905else
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917done
8918done
8919
8920fi
8921fi
8922GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8923if test -n "$GCJ_FOR_TARGET"; then
8924 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8925echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8926else
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
8929fi
8930
8931 done
8932fi
8933
8934if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8935 for ncn_progname in gcj; do
c6b750e1
DJ
8936 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8937echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8938 if test -x $with_build_time_tools/${ncn_progname}; then
8939 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
2429c060
PB
8942 break
8943 else
c6b750e1
DJ
8944 echo "$as_me:$LINENO: result: no" >&5
8945echo "${ECHO_T}no" >&6
2429c060
PB
8946 fi
8947 done
8948fi
8949
8950if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8951 for ncn_progname in gcj; do
8952 if test -n "$ncn_target_tool_prefix"; then
8953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8954set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8955echo "$as_me:$LINENO: checking for $ac_word" >&5
8956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8957if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8959else
8960 if test -n "$GCJ_FOR_TARGET"; then
8961 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8962else
c6b750e1
DJ
8963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964for as_dir in $PATH
8965do
8966 IFS=$as_save_IFS
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8972 break 2
8973 fi
8974done
8975done
8976
55db4b87
PB
8977fi
8978fi
9a819804
AO
8979GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8980if test -n "$GCJ_FOR_TARGET"; then
8981 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8982echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8983else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986fi
8987
8988 fi
8989 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8991set dummy ${ncn_progname}; ac_word=$2
8992echo "$as_me:$LINENO: checking for $ac_word" >&5
8993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8994if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996else
8997 if test -n "$GCJ_FOR_TARGET"; then
8998 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8999else
9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9010 fi
9011done
9012done
9013
9014fi
9015fi
9016GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9017if test -n "$GCJ_FOR_TARGET"; then
9018 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9019echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9020else
9021 echo "$as_me:$LINENO: result: no" >&5
9022echo "${ECHO_T}no" >&6
9023fi
9024
9025 fi
9026 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9027 done
9028fi
9029
9030if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9031 set dummy gcj
9032 if test $build = $target ; then
9033 GCJ_FOR_TARGET="$2"
9034 else
9035 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9036 fi
d3f5afc4
MS
9037else
9038 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9039fi
9040
9041
9042
9043if test -n "$GFORTRAN_FOR_TARGET"; then
9044 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9045elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9046 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9047fi
9048
9a819804
AO
9049if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9050 for ncn_progname in gfortran; do
9051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9052set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9053echo "$as_me:$LINENO: checking for $ac_word" >&5
9054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9055if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 9056 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9057else
9a819804
AO
9058 if test -n "$GFORTRAN_FOR_TARGET"; then
9059 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9060else
c6b750e1
DJ
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9068 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9071 fi
9072done
9073done
9074
55db4b87
PB
9075fi
9076fi
9a819804
AO
9077GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9078if test -n "$GFORTRAN_FOR_TARGET"; then
9079 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9080echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9081else
c6b750e1
DJ
9082 echo "$as_me:$LINENO: result: no" >&5
9083echo "${ECHO_T}no" >&6
55db4b87 9084fi
c6b750e1 9085
2429c060
PB
9086 done
9087fi
c6b750e1 9088
9a819804 9089if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9090 for ncn_progname in gfortran; do
c6b750e1
DJ
9091 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9092echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9093 if test -x $with_build_time_tools/${ncn_progname}; then
9094 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
2429c060
PB
9097 break
9098 else
c6b750e1
DJ
9099 echo "$as_me:$LINENO: result: no" >&5
9100echo "${ECHO_T}no" >&6
2429c060
PB
9101 fi
9102 done
9103fi
9104
9105if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9106 for ncn_progname in gfortran; do
9107 if test -n "$ncn_target_tool_prefix"; then
9108 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9109set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9110echo "$as_me:$LINENO: checking for $ac_word" >&5
9111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9112if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9114else
9115 if test -n "$GFORTRAN_FOR_TARGET"; then
9116 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9117else
c6b750e1
DJ
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130done
9131
55db4b87
PB
9132fi
9133fi
c6b750e1 9134GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9135if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9136 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9137echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9138else
c6b750e1
DJ
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
55db4b87
PB
9141fi
9142
2429c060
PB
9143 fi
9144 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9146set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9147echo "$as_me:$LINENO: checking for $ac_word" >&5
9148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9149if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9151else
05cbd757 9152 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9153 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9154else
9155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156for as_dir in $PATH
9157do
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9162 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9165 fi
9166done
9167done
9168
55db4b87
PB
9169fi
9170fi
c6b750e1 9171GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9172if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9173 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9174echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9175else
c6b750e1
DJ
9176 echo "$as_me:$LINENO: result: no" >&5
9177echo "${ECHO_T}no" >&6
55db4b87 9178fi
c6b750e1 9179
2429c060
PB
9180 fi
9181 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9182 done
9183fi
c6b750e1 9184
05cbd757
PB
9185if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9186 set dummy gfortran
9187 if test $build = $target ; then
9188 GFORTRAN_FOR_TARGET="$2"
55db4b87 9189 else
05cbd757 9190 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9191 fi
d3f5afc4
MS
9192else
9193 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9194fi
9195
2429c060
PB
9196
9197
2429c060
PB
9198cat > conftest.c << \EOF
9199#ifdef __GNUC__
9200 gcc_yay;
9201#endif
9202EOF
9203if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9204 have_gcc_for_target=yes
859789af 9205else
2429c060
PB
9206 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9207 have_gcc_for_target=no
859789af 9208fi
2429c060
PB
9209rm conftest.c
9210
9211
9212
859789af 9213
2429c060
PB
9214if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9215 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9216 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9217echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9218 if test -x $with_build_time_tools/ar; then
9219 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9220 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
9221 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9222echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 9223 else
c6b750e1
DJ
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
3a35eeb3 9226 fi
2429c060
PB
9227 elif test $build != $host && test $have_gcc_for_target = yes; then
9228 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9229 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9230 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9231 fi
2429c060 9232fi
c6b750e1 9233if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9234 # Extract the first word of "ar", so it can be a program name with args.
9235set dummy ar; ac_word=$2
c6b750e1
DJ
9236echo "$as_me:$LINENO: checking for $ac_word" >&5
9237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9240else
c6b750e1
DJ
9241 case $AR_FOR_TARGET in
9242 [\\/]* | ?:[\\/]*)
2429c060
PB
9243 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9244 ;;
2429c060 9245 *)
c6b750e1
DJ
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $gcc_cv_tool_dirs
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257done
9258done
9259
2429c060
PB
9260 ;;
9261esac
859789af 9262fi
c6b750e1
DJ
9263AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9264
2429c060 9265if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9266 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9267echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 9268else
c6b750e1
DJ
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
859789af 9271fi
05cbd757 9272
2429c060
PB
9273fi
9274if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9275
9276
9277if test -n "$AR_FOR_TARGET"; then
9278 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9279elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9280 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9281fi
9282
9283if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9284 for ncn_progname in ar; do
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286set dummy ${ncn_progname}; ac_word=$2
9287echo "$as_me:$LINENO: checking for $ac_word" >&5
9288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9289if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291else
9292 if test -n "$AR_FOR_TARGET"; then
9293 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9294else
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306done
9307done
9308
9309fi
9310fi
9311AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9312if test -n "$AR_FOR_TARGET"; then
9313 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9314echo "${ECHO_T}$AR_FOR_TARGET" >&6
9315else
9316 echo "$as_me:$LINENO: result: no" >&5
9317echo "${ECHO_T}no" >&6
9318fi
9319
9320 done
9321fi
9322
9323if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9324 for ncn_progname in ar; do
c6b750e1
DJ
9325 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9326echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9327 if test -x $with_build_time_tools/${ncn_progname}; then
9328 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9329 echo "$as_me:$LINENO: result: yes" >&5
9330echo "${ECHO_T}yes" >&6
2429c060
PB
9331 break
9332 else
c6b750e1
DJ
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
2429c060
PB
9335 fi
9336 done
859789af
AC
9337fi
9338
2429c060
PB
9339if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9340 for ncn_progname in ar; do
9341 if test -n "$ncn_target_tool_prefix"; then
9342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9343set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9344echo "$as_me:$LINENO: checking for $ac_word" >&5
9345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9346if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9348else
2429c060
PB
9349 if test -n "$AR_FOR_TARGET"; then
9350 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9351else
c6b750e1
DJ
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9362 fi
9363done
9364done
9365
7e0f7140
GK
9366fi
9367fi
c6b750e1 9368AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9369if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9370 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9371echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9372else
c6b750e1
DJ
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
7e0f7140
GK
9375fi
9376
2429c060
PB
9377 fi
9378 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9380set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9381echo "$as_me:$LINENO: checking for $ac_word" >&5
9382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9383if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9385else
2429c060
PB
9386 if test -n "$AR_FOR_TARGET"; then
9387 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9388else
c6b750e1
DJ
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9396 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400done
9401done
9402
7e0f7140
GK
9403fi
9404fi
c6b750e1 9405AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9406if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9407 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9408echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9409else
c6b750e1
DJ
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
7e0f7140 9412fi
c6b750e1 9413
2429c060
PB
9414 fi
9415 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9416 done
9417fi
c6b750e1 9418
2429c060
PB
9419if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9420 set dummy ar
7e0f7140 9421 if test $build = $target ; then
2429c060 9422 AR_FOR_TARGET="$2"
7e0f7140 9423 else
2429c060 9424 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9425 fi
d3f5afc4
MS
9426else
9427 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9428fi
9429
3a35eeb3
PB
9430else
9431 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9432fi
9433
9434
9435
9436
9437if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9438 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9439 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9440echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9441 if test -x $with_build_time_tools/as; then
9442 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9443 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9444 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9445echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9446 else
c6b750e1
DJ
9447 echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6
3a35eeb3 9449 fi
2429c060
PB
9450 elif test $build != $host && test $have_gcc_for_target = yes; then
9451 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9452 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9453 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9454 fi
9455fi
c6b750e1 9456if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9457 # Extract the first word of "as", so it can be a program name with args.
9458set dummy as; ac_word=$2
c6b750e1
DJ
9459echo "$as_me:$LINENO: checking for $ac_word" >&5
9460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9461if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9463else
c6b750e1
DJ
9464 case $AS_FOR_TARGET in
9465 [\\/]* | ?:[\\/]*)
2429c060
PB
9466 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9467 ;;
2429c060 9468 *)
c6b750e1
DJ
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470for as_dir in $gcc_cv_tool_dirs
9471do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9476 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9479 fi
9480done
9481done
9482
2429c060
PB
9483 ;;
9484esac
9485fi
c6b750e1
DJ
9486AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9487
2429c060 9488if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9489 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9490echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9491else
c6b750e1
DJ
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
2429c060
PB
9494fi
9495
9496fi
9497if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9498
9499
9500if test -n "$AS_FOR_TARGET"; then
9501 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9502elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9503 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9504fi
9505
9506if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9507 for ncn_progname in as; do
9508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9509set dummy ${ncn_progname}; ac_word=$2
9510echo "$as_me:$LINENO: checking for $ac_word" >&5
9511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9512if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 if test -n "$AS_FOR_TARGET"; then
9516 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9517else
9518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519for as_dir in $PATH
9520do
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9528 fi
9529done
9530done
9531
9532fi
9533fi
9534AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9535if test -n "$AS_FOR_TARGET"; then
9536 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9537echo "${ECHO_T}$AS_FOR_TARGET" >&6
9538else
9539 echo "$as_me:$LINENO: result: no" >&5
9540echo "${ECHO_T}no" >&6
9541fi
9542
9543 done
9544fi
9545
9546if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9547 for ncn_progname in as; do
c6b750e1
DJ
9548 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9549echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9550 if test -x $with_build_time_tools/${ncn_progname}; then
9551 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9552 echo "$as_me:$LINENO: result: yes" >&5
9553echo "${ECHO_T}yes" >&6
2429c060
PB
9554 break
9555 else
c6b750e1
DJ
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
2429c060
PB
9558 fi
9559 done
9560fi
9561
9562if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9563 for ncn_progname in as; do
9564 if test -n "$ncn_target_tool_prefix"; then
9565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9567echo "$as_me:$LINENO: checking for $ac_word" >&5
9568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9569if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9571else
9572 if test -n "$AS_FOR_TARGET"; then
9573 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9574else
c6b750e1
DJ
9575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576for as_dir in $PATH
9577do
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9585 fi
9586done
9587done
9588
2429c060
PB
9589fi
9590fi
c6b750e1 9591AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9592if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9593 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9594echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9595else
c6b750e1
DJ
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
2429c060
PB
9598fi
9599
9600 fi
9601 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9603set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9604echo "$as_me:$LINENO: checking for $ac_word" >&5
9605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9606if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9608else
9609 if test -n "$AS_FOR_TARGET"; then
9610 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9611else
c6b750e1
DJ
9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623done
9624done
9625
2429c060
PB
9626fi
9627fi
c6b750e1 9628AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9629if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9630 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9631echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9632else
c6b750e1
DJ
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
2429c060 9635fi
c6b750e1 9636
2429c060
PB
9637 fi
9638 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9639 done
9640fi
c6b750e1 9641
2429c060
PB
9642if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9643 set dummy as
9644 if test $build = $target ; then
9645 AS_FOR_TARGET="$2"
9646 else
9647 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9648 fi
d3f5afc4
MS
9649else
9650 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9651fi
9652
3a35eeb3
PB
9653else
9654 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9655fi
9656
9657
9658
9659
9660if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9661 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9662 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9663echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9664 if test -x $with_build_time_tools/dlltool; then
9665 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9666 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9667 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9668echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9669 else
c6b750e1
DJ
9670 echo "$as_me:$LINENO: result: no" >&5
9671echo "${ECHO_T}no" >&6
3a35eeb3 9672 fi
2429c060
PB
9673 elif test $build != $host && test $have_gcc_for_target = yes; then
9674 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9675 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9676 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9677 fi
9678fi
c6b750e1 9679if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9680 # Extract the first word of "dlltool", so it can be a program name with args.
9681set dummy dlltool; ac_word=$2
c6b750e1
DJ
9682echo "$as_me:$LINENO: checking for $ac_word" >&5
9683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9684if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9686else
c6b750e1
DJ
9687 case $DLLTOOL_FOR_TARGET in
9688 [\\/]* | ?:[\\/]*)
2429c060
PB
9689 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9690 ;;
2429c060 9691 *)
c6b750e1
DJ
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693for as_dir in $gcc_cv_tool_dirs
9694do
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9699 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9702 fi
9703done
9704done
9705
2429c060
PB
9706 ;;
9707esac
9708fi
c6b750e1
DJ
9709DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9710
2429c060 9711if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9712 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9713echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9714else
c6b750e1
DJ
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
2429c060
PB
9717fi
9718
9719fi
9720if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9721
9722
9723if test -n "$DLLTOOL_FOR_TARGET"; then
9724 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9725elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9726 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9727fi
9728
9729if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9730 for ncn_progname in dlltool; do
9731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9732set dummy ${ncn_progname}; ac_word=$2
9733echo "$as_me:$LINENO: checking for $ac_word" >&5
9734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9735if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738 if test -n "$DLLTOOL_FOR_TARGET"; then
9739 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752done
9753done
9754
9755fi
9756fi
9757DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9758if test -n "$DLLTOOL_FOR_TARGET"; then
9759 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9760echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9761else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764fi
9765
9766 done
9767fi
9768
9769if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9770 for ncn_progname in dlltool; do
c6b750e1
DJ
9771 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9772echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9773 if test -x $with_build_time_tools/${ncn_progname}; then
9774 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
2429c060
PB
9777 break
9778 else
c6b750e1
DJ
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
2429c060
PB
9781 fi
9782 done
9783fi
9784
9785if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9786 for ncn_progname in dlltool; do
9787 if test -n "$ncn_target_tool_prefix"; then
9788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9789set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9790echo "$as_me:$LINENO: checking for $ac_word" >&5
9791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9792if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9794else
9795 if test -n "$DLLTOOL_FOR_TARGET"; then
9796 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9797else
c6b750e1
DJ
9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799for as_dir in $PATH
9800do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809done
9810done
9811
2429c060
PB
9812fi
9813fi
c6b750e1 9814DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9815if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9816 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9817echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9818else
c6b750e1
DJ
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
2429c060
PB
9821fi
9822
9823 fi
9824 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9826set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9827echo "$as_me:$LINENO: checking for $ac_word" >&5
9828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9831else
9832 if test -n "$DLLTOOL_FOR_TARGET"; then
9833 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9834else
c6b750e1
DJ
9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836for as_dir in $PATH
9837do
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9842 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9845 fi
9846done
9847done
9848
2429c060
PB
9849fi
9850fi
c6b750e1 9851DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9852if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9853 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9854echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9855else
c6b750e1
DJ
9856 echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6
2429c060 9858fi
c6b750e1 9859
2429c060
PB
9860 fi
9861 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9862 done
9863fi
c6b750e1 9864
2429c060
PB
9865if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9866 set dummy dlltool
9867 if test $build = $target ; then
9868 DLLTOOL_FOR_TARGET="$2"
9869 else
9870 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9871 fi
d3f5afc4
MS
9872else
9873 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9874fi
9875
3a35eeb3
PB
9876else
9877 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9878fi
9879
9880
9881
9882
9883if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9884 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9885 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9886echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9887 if test -x $with_build_time_tools/ld; then
9888 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9889 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9890 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9891echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9892 else
c6b750e1
DJ
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
3a35eeb3 9895 fi
2429c060
PB
9896 elif test $build != $host && test $have_gcc_for_target = yes; then
9897 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9898 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9899 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9900 fi
9901fi
c6b750e1 9902if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9903 # Extract the first word of "ld", so it can be a program name with args.
9904set dummy ld; ac_word=$2
c6b750e1
DJ
9905echo "$as_me:$LINENO: checking for $ac_word" >&5
9906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9907if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9909else
c6b750e1
DJ
9910 case $LD_FOR_TARGET in
9911 [\\/]* | ?:[\\/]*)
2429c060
PB
9912 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9913 ;;
2429c060 9914 *)
c6b750e1
DJ
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $gcc_cv_tool_dirs
9917do
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9925 fi
9926done
9927done
9928
2429c060
PB
9929 ;;
9930esac
9931fi
c6b750e1
DJ
9932LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9933
2429c060 9934if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9935 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9936echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9937else
c6b750e1
DJ
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
2429c060
PB
9940fi
9941
9942fi
9943if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9944
9945
9946if test -n "$LD_FOR_TARGET"; then
9947 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9948elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9949 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9950fi
9951
9952if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9953 for ncn_progname in ld; do
9954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9955set dummy ${ncn_progname}; ac_word=$2
9956echo "$as_me:$LINENO: checking for $ac_word" >&5
9957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9958if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960else
9961 if test -n "$LD_FOR_TARGET"; then
9962 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9974 fi
9975done
9976done
9977
9978fi
9979fi
9980LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9981if test -n "$LD_FOR_TARGET"; then
9982 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9983echo "${ECHO_T}$LD_FOR_TARGET" >&6
9984else
9985 echo "$as_me:$LINENO: result: no" >&5
9986echo "${ECHO_T}no" >&6
9987fi
9988
9989 done
9990fi
9991
9992if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9993 for ncn_progname in ld; do
c6b750e1
DJ
9994 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9995echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9996 if test -x $with_build_time_tools/${ncn_progname}; then
9997 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
2429c060
PB
10000 break
10001 else
c6b750e1
DJ
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
2429c060
PB
10004 fi
10005 done
10006fi
10007
10008if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10009 for ncn_progname in ld; do
10010 if test -n "$ncn_target_tool_prefix"; then
10011 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10012set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10013echo "$as_me:$LINENO: checking for $ac_word" >&5
10014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10015if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10017else
10018 if test -n "$LD_FOR_TARGET"; then
10019 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10020else
c6b750e1
DJ
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033done
10034
2429c060
PB
10035fi
10036fi
c6b750e1 10037LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10038if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10039 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10040echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10041else
c6b750e1
DJ
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
2429c060
PB
10044fi
10045
10046 fi
10047 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10049set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10050echo "$as_me:$LINENO: checking for $ac_word" >&5
10051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10054else
10055 if test -n "$LD_FOR_TARGET"; then
10056 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10057else
c6b750e1
DJ
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070done
10071
2429c060
PB
10072fi
10073fi
c6b750e1 10074LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10075if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10076 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10077echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10078else
c6b750e1
DJ
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
2429c060 10081fi
c6b750e1 10082
2429c060
PB
10083 fi
10084 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10085 done
10086fi
c6b750e1 10087
2429c060
PB
10088if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10089 set dummy ld
10090 if test $build = $target ; then
10091 LD_FOR_TARGET="$2"
10092 else
10093 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10094 fi
d3f5afc4
MS
10095else
10096 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10097fi
10098
3a35eeb3
PB
10099else
10100 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10101fi
10102
10103
10104
10105
10106if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10107 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10108 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10109echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10110 if test -x $with_build_time_tools/lipo; then
10111 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10112 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
10113 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10114echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 10115 else
c6b750e1
DJ
10116 echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
3a35eeb3 10118 fi
2429c060
PB
10119 elif test $build != $host && test $have_gcc_for_target = yes; then
10120 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10121 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10122 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10123 fi
10124fi
9a819804
AO
10125if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10126 # Extract the first word of "lipo", so it can be a program name with args.
10127set dummy lipo; ac_word=$2
10128echo "$as_me:$LINENO: checking for $ac_word" >&5
10129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132else
10133 case $LIPO_FOR_TARGET in
10134 [\\/]* | ?:[\\/]*)
10135 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10136 ;;
10137 *)
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $gcc_cv_tool_dirs
10140do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149done
10150done
10151
10152 ;;
10153esac
10154fi
10155LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10156
10157if test -n "$LIPO_FOR_TARGET"; then
10158 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10159echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10160else
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
10163fi
10164
10165fi
10166if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10167
10168
10169if test -n "$LIPO_FOR_TARGET"; then
10170 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10171elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10172 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10173fi
10174
10175if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10176 for ncn_progname in lipo; do
10177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10178set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 10181if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 10182 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10183else
9a819804
AO
10184 if test -n "$LIPO_FOR_TARGET"; then
10185 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
c6b750e1
DJ
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10194 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
2429c060 10201fi
9a819804
AO
10202fi
10203LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10204if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10205 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10206echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10207else
c6b750e1
DJ
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
2429c060
PB
10210fi
10211
9a819804 10212 done
2429c060 10213fi
9a819804
AO
10214
10215if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10216 for ncn_progname in lipo; do
c6b750e1
DJ
10217 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10218echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10219 if test -x $with_build_time_tools/${ncn_progname}; then
10220 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10221 echo "$as_me:$LINENO: result: yes" >&5
10222echo "${ECHO_T}yes" >&6
2429c060
PB
10223 break
10224 else
c6b750e1
DJ
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
2429c060
PB
10227 fi
10228 done
10229fi
10230
10231if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10232 for ncn_progname in lipo; do
10233 if test -n "$ncn_target_tool_prefix"; then
10234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10235set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10236echo "$as_me:$LINENO: checking for $ac_word" >&5
10237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10238if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10240else
10241 if test -n "$LIPO_FOR_TARGET"; then
10242 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10243else
c6b750e1
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256done
10257
2429c060
PB
10258fi
10259fi
c6b750e1 10260LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10261if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10262 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10263echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10264else
c6b750e1
DJ
10265 echo "$as_me:$LINENO: result: no" >&5
10266echo "${ECHO_T}no" >&6
2429c060
PB
10267fi
10268
10269 fi
10270 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10272set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10273echo "$as_me:$LINENO: checking for $ac_word" >&5
10274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10275if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10277else
10278 if test -n "$LIPO_FOR_TARGET"; then
10279 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10280else
c6b750e1
DJ
10281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282for as_dir in $PATH
10283do
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
10287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10288 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 break 2
10291 fi
10292done
10293done
10294
2429c060
PB
10295fi
10296fi
c6b750e1 10297LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10298if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10299 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10300echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10301else
c6b750e1
DJ
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
2429c060 10304fi
c6b750e1 10305
2429c060
PB
10306 fi
10307 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10308 done
10309fi
c6b750e1 10310
2429c060
PB
10311if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10312 set dummy lipo
10313 if test $build = $target ; then
10314 LIPO_FOR_TARGET="$2"
10315 else
10316 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10317 fi
d3f5afc4
MS
10318else
10319 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10320fi
10321
3a35eeb3
PB
10322else
10323 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10324fi
10325
10326
10327
10328
10329if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10330 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10331 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10332echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10333 if test -x $with_build_time_tools/nm; then
10334 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10335 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10336 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10337echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10338 else
c6b750e1
DJ
10339 echo "$as_me:$LINENO: result: no" >&5
10340echo "${ECHO_T}no" >&6
3a35eeb3 10341 fi
2429c060
PB
10342 elif test $build != $host && test $have_gcc_for_target = yes; then
10343 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10344 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10345 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10346 fi
10347fi
c6b750e1 10348if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10349 # Extract the first word of "nm", so it can be a program name with args.
10350set dummy nm; ac_word=$2
c6b750e1
DJ
10351echo "$as_me:$LINENO: checking for $ac_word" >&5
10352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10353if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10355else
c6b750e1
DJ
10356 case $NM_FOR_TARGET in
10357 [\\/]* | ?:[\\/]*)
2429c060
PB
10358 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10359 ;;
2429c060 10360 *)
c6b750e1
DJ
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362for as_dir in $gcc_cv_tool_dirs
10363do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10371 fi
10372done
10373done
10374
2429c060
PB
10375 ;;
10376esac
10377fi
c6b750e1
DJ
10378NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10379
2429c060 10380if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10381 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10382echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10383else
c6b750e1
DJ
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
2429c060
PB
10386fi
10387
10388fi
10389if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10390
10391
10392if test -n "$NM_FOR_TARGET"; then
10393 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10394elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10395 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10396fi
10397
10398if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10399 for ncn_progname in nm; do
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401set dummy ${ncn_progname}; ac_word=$2
10402echo "$as_me:$LINENO: checking for $ac_word" >&5
10403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10404if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407 if test -n "$NM_FOR_TARGET"; then
10408 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422done
10423
10424fi
10425fi
10426NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10427if test -n "$NM_FOR_TARGET"; then
10428 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10429echo "${ECHO_T}$NM_FOR_TARGET" >&6
10430else
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
10433fi
10434
10435 done
10436fi
10437
10438if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10439 for ncn_progname in nm; do
c6b750e1
DJ
10440 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10441echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10442 if test -x $with_build_time_tools/${ncn_progname}; then
10443 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10444 echo "$as_me:$LINENO: result: yes" >&5
10445echo "${ECHO_T}yes" >&6
2429c060
PB
10446 break
10447 else
c6b750e1
DJ
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
2429c060
PB
10450 fi
10451 done
10452fi
10453
10454if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10455 for ncn_progname in nm; do
10456 if test -n "$ncn_target_tool_prefix"; then
10457 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10458set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10459echo "$as_me:$LINENO: checking for $ac_word" >&5
10460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10461if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10463else
55db4b87
PB
10464 if test -n "$NM_FOR_TARGET"; then
10465 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10466else
c6b750e1
DJ
10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468for as_dir in $PATH
10469do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478done
10479done
10480
859789af
AC
10481fi
10482fi
c6b750e1 10483NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10484if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10485 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10486echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10487else
c6b750e1
DJ
10488 echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
859789af
AC
10490fi
10491
2429c060
PB
10492 fi
10493 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10495set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10496echo "$as_me:$LINENO: checking for $ac_word" >&5
10497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10500else
05cbd757
PB
10501 if test -n "$NM_FOR_TARGET"; then
10502 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10503else
c6b750e1
DJ
10504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505for as_dir in $PATH
10506do
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10514 fi
10515done
10516done
10517
859789af
AC
10518fi
10519fi
c6b750e1 10520NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10521if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10522 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10523echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10524else
c6b750e1
DJ
10525 echo "$as_me:$LINENO: result: no" >&5
10526echo "${ECHO_T}no" >&6
859789af 10527fi
c6b750e1 10528
2429c060
PB
10529 fi
10530 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10531 done
10532fi
c6b750e1 10533
05cbd757
PB
10534if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10535 set dummy nm
10536 if test $build = $target ; then
10537 NM_FOR_TARGET="$2"
859789af 10538 else
05cbd757 10539 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10540 fi
d3f5afc4
MS
10541else
10542 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10543fi
10544
3a35eeb3
PB
10545else
10546 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10547fi
10548
10549
10550
10551
10552if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10553 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10554 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10555echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10556 if test -x $with_build_time_tools/objdump; then
10557 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10558 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10559 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10560echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10561 else
c6b750e1
DJ
10562 echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6
3a35eeb3 10564 fi
2429c060
PB
10565 elif test $build != $host && test $have_gcc_for_target = yes; then
10566 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10567 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10568 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10569 fi
10570fi
c6b750e1 10571if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10572 # Extract the first word of "objdump", so it can be a program name with args.
10573set dummy objdump; ac_word=$2
c6b750e1
DJ
10574echo "$as_me:$LINENO: checking for $ac_word" >&5
10575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10576if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10578else
c6b750e1
DJ
10579 case $OBJDUMP_FOR_TARGET in
10580 [\\/]* | ?:[\\/]*)
2429c060
PB
10581 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10582 ;;
2429c060 10583 *)
c6b750e1
DJ
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $gcc_cv_tool_dirs
10586do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10594 fi
10595done
10596done
10597
2429c060
PB
10598 ;;
10599esac
10600fi
c6b750e1
DJ
10601OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10602
2429c060 10603if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10604 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10605echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10606else
c6b750e1
DJ
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
2429c060
PB
10609fi
10610
10611fi
10612if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10613
10614
10615if test -n "$OBJDUMP_FOR_TARGET"; then
10616 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10617elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10618 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10619fi
10620
10621if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10622 for ncn_progname in objdump; do
10623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10624set dummy ${ncn_progname}; ac_word=$2
10625echo "$as_me:$LINENO: checking for $ac_word" >&5
10626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 if test -n "$OBJDUMP_FOR_TARGET"; then
10631 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10632else
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645done
10646
10647fi
10648fi
10649OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10650if test -n "$OBJDUMP_FOR_TARGET"; then
10651 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10652echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10653else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656fi
10657
10658 done
10659fi
10660
10661if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10662 for ncn_progname in objdump; do
c6b750e1
DJ
10663 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10664echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10665 if test -x $with_build_time_tools/${ncn_progname}; then
10666 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10667 echo "$as_me:$LINENO: result: yes" >&5
10668echo "${ECHO_T}yes" >&6
2429c060
PB
10669 break
10670 else
c6b750e1
DJ
10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
2429c060
PB
10673 fi
10674 done
10675fi
10676
10677if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10678 for ncn_progname in objdump; do
10679 if test -n "$ncn_target_tool_prefix"; then
10680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10682echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10684if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10686else
10687 if test -n "$OBJDUMP_FOR_TARGET"; then
10688 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10689else
c6b750e1
DJ
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
10702done
10703
5ae72758
DJ
10704fi
10705fi
c6b750e1 10706OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10707if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10708 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10709echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10710else
c6b750e1
DJ
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
5ae72758
DJ
10713fi
10714
2429c060
PB
10715 fi
10716 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10718set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10719echo "$as_me:$LINENO: checking for $ac_word" >&5
10720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10723else
10724 if test -n "$OBJDUMP_FOR_TARGET"; then
10725 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10726else
c6b750e1
DJ
10727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728for as_dir in $PATH
10729do
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10737 fi
10738done
10739done
10740
5ae72758
DJ
10741fi
10742fi
c6b750e1 10743OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10744if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10745 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10746echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10747else
c6b750e1
DJ
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
5ae72758 10750fi
c6b750e1 10751
2429c060
PB
10752 fi
10753 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10754 done
10755fi
c6b750e1 10756
5ae72758
DJ
10757if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10758 set dummy objdump
10759 if test $build = $target ; then
10760 OBJDUMP_FOR_TARGET="$2"
10761 else
10762 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10763 fi
d3f5afc4
MS
10764else
10765 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10766fi
10767
3a35eeb3
PB
10768else
10769 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10770fi
10771
10772
10773
10774
10775if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10776 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10777 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10778echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10779 if test -x $with_build_time_tools/ranlib; then
10780 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10781 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10782 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10783echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10784 else
c6b750e1
DJ
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
3a35eeb3 10787 fi
2429c060
PB
10788 elif test $build != $host && test $have_gcc_for_target = yes; then
10789 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10790 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10791 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10792 fi
10793fi
c6b750e1 10794if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10795 # Extract the first word of "ranlib", so it can be a program name with args.
10796set dummy ranlib; ac_word=$2
c6b750e1
DJ
10797echo "$as_me:$LINENO: checking for $ac_word" >&5
10798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10799if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10801else
c6b750e1
DJ
10802 case $RANLIB_FOR_TARGET in
10803 [\\/]* | ?:[\\/]*)
2429c060
PB
10804 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10805 ;;
2429c060 10806 *)
c6b750e1
DJ
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $gcc_cv_tool_dirs
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10814 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819done
10820
2429c060
PB
10821 ;;
10822esac
10823fi
c6b750e1
DJ
10824RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10825
2429c060 10826if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10827 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10828echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10829else
c6b750e1
DJ
10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
2429c060
PB
10832fi
10833
10834fi
10835if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10836
10837
10838if test -n "$RANLIB_FOR_TARGET"; then
10839 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10840elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10841 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10842fi
10843
10844if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10845 for ncn_progname in ranlib; do
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847set dummy ${ncn_progname}; ac_word=$2
10848echo "$as_me:$LINENO: checking for $ac_word" >&5
10849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10850if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 if test -n "$RANLIB_FOR_TARGET"; then
10854 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10855else
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867done
10868done
10869
10870fi
10871fi
10872RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10873if test -n "$RANLIB_FOR_TARGET"; then
10874 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10875echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10876else
10877 echo "$as_me:$LINENO: result: no" >&5
10878echo "${ECHO_T}no" >&6
10879fi
10880
10881 done
10882fi
10883
10884if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10885 for ncn_progname in ranlib; do
c6b750e1
DJ
10886 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10887echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10888 if test -x $with_build_time_tools/${ncn_progname}; then
10889 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10890 echo "$as_me:$LINENO: result: yes" >&5
10891echo "${ECHO_T}yes" >&6
2429c060
PB
10892 break
10893 else
c6b750e1
DJ
10894 echo "$as_me:$LINENO: result: no" >&5
10895echo "${ECHO_T}no" >&6
2429c060
PB
10896 fi
10897 done
10898fi
10899
10900if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10901 for ncn_progname in ranlib; do
10902 if test -n "$ncn_target_tool_prefix"; then
10903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10904set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10905echo "$as_me:$LINENO: checking for $ac_word" >&5
10906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10907if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10909else
55db4b87
PB
10910 if test -n "$RANLIB_FOR_TARGET"; then
10911 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10912else
c6b750e1
DJ
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10920 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925done
10926
859789af
AC
10927fi
10928fi
c6b750e1 10929RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10930if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10931 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10932echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10933else
c6b750e1
DJ
10934 echo "$as_me:$LINENO: result: no" >&5
10935echo "${ECHO_T}no" >&6
859789af
AC
10936fi
10937
2429c060
PB
10938 fi
10939 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10941set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10946else
05cbd757
PB
10947 if test -n "$RANLIB_FOR_TARGET"; then
10948 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10949else
c6b750e1
DJ
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10962done
10963
859789af
AC
10964fi
10965fi
c6b750e1 10966RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10967if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10968 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10969echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10970else
c6b750e1
DJ
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
859789af 10973fi
c6b750e1 10974
2429c060
PB
10975 fi
10976 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10977 done
10978fi
c6b750e1 10979
2429c060
PB
10980if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10981 set dummy ranlib
10982 if test $build = $target ; then
10983 RANLIB_FOR_TARGET="$2"
10984 else
10985 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10986 fi
d3f5afc4
MS
10987else
10988 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10989fi
05cbd757 10990
3a35eeb3
PB
10991else
10992 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10993fi
10994
2429c060
PB
10995
10996
10997
10998if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10999 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11000 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11001echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11002 if test -x $with_build_time_tools/strip; then
11003 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11004 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
11005 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11006echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 11007 else
c6b750e1
DJ
11008 echo "$as_me:$LINENO: result: no" >&5
11009echo "${ECHO_T}no" >&6
3a35eeb3 11010 fi
2429c060
PB
11011 elif test $build != $host && test $have_gcc_for_target = yes; then
11012 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11013 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11014 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11015 fi
11016fi
c6b750e1 11017if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11018 # Extract the first word of "strip", so it can be a program name with args.
11019set dummy strip; ac_word=$2
c6b750e1
DJ
11020echo "$as_me:$LINENO: checking for $ac_word" >&5
11021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11022if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11024else
c6b750e1
DJ
11025 case $STRIP_FOR_TARGET in
11026 [\\/]* | ?:[\\/]*)
2429c060
PB
11027 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11028 ;;
2429c060 11029 *)
c6b750e1
DJ
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $gcc_cv_tool_dirs
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11037 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 break 2
11040 fi
11041done
11042done
11043
2429c060
PB
11044 ;;
11045esac
11046fi
c6b750e1
DJ
11047STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11048
2429c060 11049if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11050 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11051echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 11052else
c6b750e1
DJ
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
2429c060
PB
11055fi
11056
11057fi
11058if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11059
11060
11061if test -n "$STRIP_FOR_TARGET"; then
11062 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11063elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11064 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11065fi
11066
11067if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11068 for ncn_progname in strip; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070set dummy ${ncn_progname}; ac_word=$2
11071echo "$as_me:$LINENO: checking for $ac_word" >&5
11072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11073if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075else
11076 if test -n "$STRIP_FOR_TARGET"; then
11077 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090done
11091done
11092
11093fi
11094fi
11095STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11096if test -n "$STRIP_FOR_TARGET"; then
11097 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11098echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11099else
11100 echo "$as_me:$LINENO: result: no" >&5
11101echo "${ECHO_T}no" >&6
11102fi
11103
11104 done
11105fi
11106
11107if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11108 for ncn_progname in strip; do
c6b750e1
DJ
11109 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11110echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11111 if test -x $with_build_time_tools/${ncn_progname}; then
11112 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11113 echo "$as_me:$LINENO: result: yes" >&5
11114echo "${ECHO_T}yes" >&6
2429c060
PB
11115 break
11116 else
c6b750e1
DJ
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
2429c060
PB
11119 fi
11120 done
11121fi
11122
11123if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11124 for ncn_progname in strip; do
11125 if test -n "$ncn_target_tool_prefix"; then
11126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11127set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11128echo "$as_me:$LINENO: checking for $ac_word" >&5
11129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11130if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11132else
11133 if test -n "$STRIP_FOR_TARGET"; then
11134 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11135else
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11146 fi
11147done
11148done
11149
7e0f7140
GK
11150fi
11151fi
c6b750e1 11152STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11153if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11154 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11155echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11156else
c6b750e1
DJ
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
7e0f7140
GK
11159fi
11160
2429c060
PB
11161 fi
11162 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11164set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11165echo "$as_me:$LINENO: checking for $ac_word" >&5
11166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11169else
11170 if test -n "$STRIP_FOR_TARGET"; then
11171 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11172else
c6b750e1
DJ
11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $PATH
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184done
11185done
11186
7e0f7140
GK
11187fi
11188fi
c6b750e1 11189STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11190if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11191 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11192echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11193else
c6b750e1
DJ
11194 echo "$as_me:$LINENO: result: no" >&5
11195echo "${ECHO_T}no" >&6
7e0f7140 11196fi
c6b750e1 11197
2429c060
PB
11198 fi
11199 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11200 done
11201fi
c6b750e1 11202
7e0f7140
GK
11203if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11204 set dummy strip
11205 if test $build = $target ; then
11206 STRIP_FOR_TARGET="$2"
11207 else
11208 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11209 fi
d3f5afc4
MS
11210else
11211 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11212fi
11213
3a35eeb3
PB
11214else
11215 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11216fi
11217
11218
11219
11220
11221if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11222 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11223 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11224echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11225 if test -x $with_build_time_tools/windres; then
11226 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11227 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
11228 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11229echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 11230 else
c6b750e1
DJ
11231 echo "$as_me:$LINENO: result: no" >&5
11232echo "${ECHO_T}no" >&6
3a35eeb3 11233 fi
2429c060
PB
11234 elif test $build != $host && test $have_gcc_for_target = yes; then
11235 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
11236 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11237 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
11238 fi
11239fi
c6b750e1 11240if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11241 # Extract the first word of "windres", so it can be a program name with args.
11242set dummy windres; ac_word=$2
c6b750e1
DJ
11243echo "$as_me:$LINENO: checking for $ac_word" >&5
11244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11245if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11247else
c6b750e1
DJ
11248 case $WINDRES_FOR_TARGET in
11249 [\\/]* | ?:[\\/]*)
2429c060
PB
11250 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11251 ;;
2429c060 11252 *)
c6b750e1
DJ
11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254for as_dir in $gcc_cv_tool_dirs
11255do
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
11258 for ac_exec_ext in '' $ac_executable_extensions; do
11259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11260 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11262 break 2
11263 fi
11264done
11265done
11266
2429c060
PB
11267 ;;
11268esac
11269fi
c6b750e1
DJ
11270WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11271
2429c060 11272if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11273 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11274echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 11275else
c6b750e1
DJ
11276 echo "$as_me:$LINENO: result: no" >&5
11277echo "${ECHO_T}no" >&6
2429c060
PB
11278fi
11279
11280fi
11281if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11282
11283
11284if test -n "$WINDRES_FOR_TARGET"; then
11285 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11286elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11287 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11288fi
11289
11290if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11291 for ncn_progname in windres; do
11292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11293set dummy ${ncn_progname}; ac_word=$2
11294echo "$as_me:$LINENO: checking for $ac_word" >&5
11295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11296if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
11299 if test -n "$WINDRES_FOR_TARGET"; then
11300 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11301else
11302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303for as_dir in $PATH
11304do
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 break 2
11312 fi
11313done
11314done
11315
11316fi
11317fi
11318WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11319if test -n "$WINDRES_FOR_TARGET"; then
11320 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11321echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11322else
11323 echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6
11325fi
11326
11327 done
11328fi
11329
11330if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11331 for ncn_progname in windres; do
c6b750e1
DJ
11332 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11333echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11334 if test -x $with_build_time_tools/${ncn_progname}; then
11335 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11336 echo "$as_me:$LINENO: result: yes" >&5
11337echo "${ECHO_T}yes" >&6
2429c060
PB
11338 break
11339 else
c6b750e1
DJ
11340 echo "$as_me:$LINENO: result: no" >&5
11341echo "${ECHO_T}no" >&6
2429c060
PB
11342 fi
11343 done
11344fi
11345
11346if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11347 for ncn_progname in windres; do
11348 if test -n "$ncn_target_tool_prefix"; then
11349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11351echo "$as_me:$LINENO: checking for $ac_word" >&5
11352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11353if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11355else
55db4b87
PB
11356 if test -n "$WINDRES_FOR_TARGET"; then
11357 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11358else
c6b750e1
DJ
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11369 fi
11370done
11371done
11372
859789af
AC
11373fi
11374fi
c6b750e1 11375WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11376if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11377 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11378echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11379else
c6b750e1
DJ
11380 echo "$as_me:$LINENO: result: no" >&5
11381echo "${ECHO_T}no" >&6
859789af
AC
11382fi
11383
2429c060
PB
11384 fi
11385 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11387set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11388echo "$as_me:$LINENO: checking for $ac_word" >&5
11389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11390if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11392else
05cbd757
PB
11393 if test -n "$WINDRES_FOR_TARGET"; then
11394 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11395else
c6b750e1
DJ
11396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397for as_dir in $PATH
11398do
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 break 2
11406 fi
11407done
11408done
11409
859789af
AC
11410fi
11411fi
c6b750e1 11412WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11413if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11414 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11415echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11416else
c6b750e1
DJ
11417 echo "$as_me:$LINENO: result: no" >&5
11418echo "${ECHO_T}no" >&6
859789af 11419fi
c6b750e1 11420
2429c060
PB
11421 fi
11422 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11423 done
11424fi
c6b750e1 11425
05cbd757
PB
11426if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11427 set dummy windres
11428 if test $build = $target ; then
11429 WINDRES_FOR_TARGET="$2"
859789af 11430 else
05cbd757 11431 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11432 fi
d3f5afc4
MS
11433else
11434 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11435fi
11436
3a35eeb3
PB
11437else
11438 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11439fi
11440
852e5f18 11441
0c24b341
NC
11442
11443
11444if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11445 if test -n "$with_build_time_tools"; then
11446 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11447echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11448 if test -x $with_build_time_tools/windmc; then
11449 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11450 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11451 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11452echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11453 else
11454 echo "$as_me:$LINENO: result: no" >&5
11455echo "${ECHO_T}no" >&6
11456 fi
11457 elif test $build != $host && test $have_gcc_for_target = yes; then
11458 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11459 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11460 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11461 fi
11462fi
11463if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11464 # Extract the first word of "windmc", so it can be a program name with args.
11465set dummy windmc; ac_word=$2
11466echo "$as_me:$LINENO: checking for $ac_word" >&5
11467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11468if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470else
11471 case $WINDMC_FOR_TARGET in
11472 [\\/]* | ?:[\\/]*)
11473 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11474 ;;
11475 *)
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $gcc_cv_tool_dirs
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488done
11489
11490 ;;
11491esac
11492fi
11493WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11494
11495if test -n "$WINDMC_FOR_TARGET"; then
11496 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11497echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11498else
11499 echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
11501fi
11502
11503fi
11504if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11505
11506
11507if test -n "$WINDMC_FOR_TARGET"; then
11508 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11509elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11510 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11511fi
11512
11513if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11514 for ncn_progname in windmc; do
11515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11516set dummy ${ncn_progname}; ac_word=$2
11517echo "$as_me:$LINENO: checking for $ac_word" >&5
11518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11519if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521else
11522 if test -n "$WINDMC_FOR_TARGET"; then
11523 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11524else
11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $PATH
11527do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536done
11537done
11538
11539fi
11540fi
11541WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11542if test -n "$WINDMC_FOR_TARGET"; then
11543 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11544echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11545else
11546 echo "$as_me:$LINENO: result: no" >&5
11547echo "${ECHO_T}no" >&6
11548fi
11549
11550 done
11551fi
11552
11553if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11554 for ncn_progname in windmc; do
11555 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11556echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11557 if test -x $with_build_time_tools/${ncn_progname}; then
11558 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11559 echo "$as_me:$LINENO: result: yes" >&5
11560echo "${ECHO_T}yes" >&6
11561 break
11562 else
11563 echo "$as_me:$LINENO: result: no" >&5
11564echo "${ECHO_T}no" >&6
11565 fi
11566 done
11567fi
11568
11569if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11570 for ncn_progname in windmc; do
11571 if test -n "$ncn_target_tool_prefix"; then
11572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11573set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11574echo "$as_me:$LINENO: checking for $ac_word" >&5
11575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11576if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 if test -n "$WINDMC_FOR_TARGET"; then
11580 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11581else
11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11592 fi
11593done
11594done
11595
11596fi
11597fi
11598WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11599if test -n "$WINDMC_FOR_TARGET"; then
11600 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11601echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11602else
11603 echo "$as_me:$LINENO: result: no" >&5
11604echo "${ECHO_T}no" >&6
11605fi
11606
11607 fi
11608 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11610set dummy ${ncn_progname}; ac_word=$2
11611echo "$as_me:$LINENO: checking for $ac_word" >&5
11612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11613if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615else
11616 if test -n "$WINDMC_FOR_TARGET"; then
11617 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11618else
11619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620for as_dir in $PATH
11621do
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11629 fi
11630done
11631done
11632
11633fi
11634fi
11635WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11636if test -n "$WINDMC_FOR_TARGET"; then
11637 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11638echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11639else
11640 echo "$as_me:$LINENO: result: no" >&5
11641echo "${ECHO_T}no" >&6
11642fi
11643
11644 fi
11645 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11646 done
11647fi
11648
11649if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11650 set dummy windmc
11651 if test $build = $target ; then
11652 WINDMC_FOR_TARGET="$2"
11653 else
11654 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11655 fi
11656else
11657 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11658fi
11659
11660else
11661 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11662fi
11663
11664
be01d343
PB
11665RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11666
c6b750e1
DJ
11667echo "$as_me:$LINENO: checking where to find the target ar" >&5
11668echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11669if test "x${build}" != "x${host}" ; then
2429c060
PB
11670 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11671 # We already found the complete path
b8025f34
AS
11672 ac_dir=`dirname $AR_FOR_TARGET`
11673 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11674echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11675 else
11676 # Canadian cross, just use what we found
c6b750e1
DJ
11677 echo "$as_me:$LINENO: result: pre-installed" >&5
11678echo "${ECHO_T}pre-installed" >&6
2429c060 11679 fi
be01d343
PB
11680else
11681 ok=yes
11682 case " ${configdirs} " in
11683 *" binutils "*) ;;
11684 *) ok=no ;;
11685 esac
c6b750e1 11686
be01d343
PB
11687 if test $ok = yes; then
11688 # An in-tree tool is available and we can use it
11689 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11690 echo "$as_me:$LINENO: result: just compiled" >&5
11691echo "${ECHO_T}just compiled" >&6
2429c060
PB
11692 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11693 # We already found the complete path
b8025f34
AS
11694 ac_dir=`dirname $AR_FOR_TARGET`
11695 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11696echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11697 elif test "x$target" = "x$host"; then
11698 # We can use an host tool
11699 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11700 echo "$as_me:$LINENO: result: host tool" >&5
11701echo "${ECHO_T}host tool" >&6
be01d343
PB
11702 else
11703 # We need a cross tool
c6b750e1
DJ
11704 echo "$as_me:$LINENO: result: pre-installed" >&5
11705echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11706 fi
11707fi
4b900473 11708
c6b750e1
DJ
11709echo "$as_me:$LINENO: checking where to find the target as" >&5
11710echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11711if test "x${build}" != "x${host}" ; then
2429c060
PB
11712 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11713 # We already found the complete path
b8025f34
AS
11714 ac_dir=`dirname $AS_FOR_TARGET`
11715 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11716echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11717 else
11718 # Canadian cross, just use what we found
c6b750e1
DJ
11719 echo "$as_me:$LINENO: result: pre-installed" >&5
11720echo "${ECHO_T}pre-installed" >&6
2429c060 11721 fi
be01d343
PB
11722else
11723 ok=yes
11724 case " ${configdirs} " in
11725 *" gas "*) ;;
11726 *) ok=no ;;
11727 esac
c6b750e1 11728
be01d343
PB
11729 if test $ok = yes; then
11730 # An in-tree tool is available and we can use it
11731 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11732 echo "$as_me:$LINENO: result: just compiled" >&5
11733echo "${ECHO_T}just compiled" >&6
2429c060
PB
11734 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11735 # We already found the complete path
b8025f34
AS
11736 ac_dir=`dirname $AS_FOR_TARGET`
11737 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11738echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11739 elif test "x$target" = "x$host"; then
11740 # We can use an host tool
11741 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11742 echo "$as_me:$LINENO: result: host tool" >&5
11743echo "${ECHO_T}host tool" >&6
be01d343
PB
11744 else
11745 # We need a cross tool
c6b750e1
DJ
11746 echo "$as_me:$LINENO: result: pre-installed" >&5
11747echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11748 fi
11749fi
4b900473 11750
c6b750e1
DJ
11751echo "$as_me:$LINENO: checking where to find the target cc" >&5
11752echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11753if test "x${build}" != "x${host}" ; then
2429c060
PB
11754 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11755 # We already found the complete path
b8025f34
AS
11756 ac_dir=`dirname $CC_FOR_TARGET`
11757 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11758echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11759 else
11760 # Canadian cross, just use what we found
c6b750e1
DJ
11761 echo "$as_me:$LINENO: result: pre-installed" >&5
11762echo "${ECHO_T}pre-installed" >&6
2429c060 11763 fi
be01d343
PB
11764else
11765 ok=yes
11766 case " ${configdirs} " in
11767 *" gcc "*) ;;
11768 *) ok=no ;;
11769 esac
c6b750e1 11770
be01d343
PB
11771 if test $ok = yes; then
11772 # An in-tree tool is available and we can use it
11773 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11774 echo "$as_me:$LINENO: result: just compiled" >&5
11775echo "${ECHO_T}just compiled" >&6
2429c060
PB
11776 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11777 # We already found the complete path
b8025f34
AS
11778 ac_dir=`dirname $CC_FOR_TARGET`
11779 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11780echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11781 elif test "x$target" = "x$host"; then
11782 # We can use an host tool
11783 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11784 echo "$as_me:$LINENO: result: host tool" >&5
11785echo "${ECHO_T}host tool" >&6
be01d343
PB
11786 else
11787 # We need a cross tool
c6b750e1
DJ
11788 echo "$as_me:$LINENO: result: pre-installed" >&5
11789echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11790 fi
11791fi
4b900473 11792
c6b750e1
DJ
11793echo "$as_me:$LINENO: checking where to find the target c++" >&5
11794echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11795if test "x${build}" != "x${host}" ; then
2429c060
PB
11796 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11797 # We already found the complete path
b8025f34
AS
11798 ac_dir=`dirname $CXX_FOR_TARGET`
11799 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11800echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11801 else
11802 # Canadian cross, just use what we found
c6b750e1
DJ
11803 echo "$as_me:$LINENO: result: pre-installed" >&5
11804echo "${ECHO_T}pre-installed" >&6
2429c060 11805 fi
be01d343
PB
11806else
11807 ok=yes
11808 case " ${configdirs} " in
11809 *" gcc "*) ;;
11810 *) ok=no ;;
11811 esac
11812 case ,${enable_languages}, in
11813 *,c++,*) ;;
11814 *) ok=no ;;
11815 esac
11816 if test $ok = yes; then
11817 # An in-tree tool is available and we can use it
11818 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'
c6b750e1
DJ
11819 echo "$as_me:$LINENO: result: just compiled" >&5
11820echo "${ECHO_T}just compiled" >&6
2429c060
PB
11821 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11822 # We already found the complete path
b8025f34
AS
11823 ac_dir=`dirname $CXX_FOR_TARGET`
11824 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11825echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11826 elif test "x$target" = "x$host"; then
11827 # We can use an host tool
11828 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11829 echo "$as_me:$LINENO: result: host tool" >&5
11830echo "${ECHO_T}host tool" >&6
be01d343
PB
11831 else
11832 # We need a cross tool
c6b750e1
DJ
11833 echo "$as_me:$LINENO: result: pre-installed" >&5
11834echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11835 fi
11836fi
4b900473 11837
c6b750e1
DJ
11838echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11839echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11840if test "x${build}" != "x${host}" ; then
2429c060
PB
11841 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11842 # We already found the complete path
b8025f34
AS
11843 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11844 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11845echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11846 else
11847 # Canadian cross, just use what we found
c6b750e1
DJ
11848 echo "$as_me:$LINENO: result: pre-installed" >&5
11849echo "${ECHO_T}pre-installed" >&6
2429c060 11850 fi
be01d343
PB
11851else
11852 ok=yes
11853 case " ${configdirs} " in
11854 *" gcc "*) ;;
11855 *) ok=no ;;
11856 esac
11857 case ,${enable_languages}, in
11858 *,c++,*) ;;
11859 *) ok=no ;;
11860 esac
11861 if test $ok = yes; then
11862 # An in-tree tool is available and we can use it
11863 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'
c6b750e1
DJ
11864 echo "$as_me:$LINENO: result: just compiled" >&5
11865echo "${ECHO_T}just compiled" >&6
2429c060
PB
11866 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11867 # We already found the complete path
b8025f34
AS
11868 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11869 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11870echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11871 elif test "x$target" = "x$host"; then
11872 # We can use an host tool
11873 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11874 echo "$as_me:$LINENO: result: host tool" >&5
11875echo "${ECHO_T}host tool" >&6
be01d343
PB
11876 else
11877 # We need a cross tool
c6b750e1
DJ
11878 echo "$as_me:$LINENO: result: pre-installed" >&5
11879echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11880 fi
11881fi
4b900473 11882
c6b750e1
DJ
11883echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11884echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11885if test "x${build}" != "x${host}" ; then
2429c060
PB
11886 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11887 # We already found the complete path
b8025f34
AS
11888 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11889 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11890echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11891 else
11892 # Canadian cross, just use what we found
c6b750e1
DJ
11893 echo "$as_me:$LINENO: result: pre-installed" >&5
11894echo "${ECHO_T}pre-installed" >&6
2429c060 11895 fi
be01d343
PB
11896else
11897 ok=yes
11898 case " ${configdirs} " in
11899 *" binutils "*) ;;
11900 *) ok=no ;;
11901 esac
c6b750e1 11902
be01d343
PB
11903 if test $ok = yes; then
11904 # An in-tree tool is available and we can use it
11905 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11906 echo "$as_me:$LINENO: result: just compiled" >&5
11907echo "${ECHO_T}just compiled" >&6
2429c060
PB
11908 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11909 # We already found the complete path
b8025f34
AS
11910 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11911 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11912echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11913 elif test "x$target" = "x$host"; then
11914 # We can use an host tool
11915 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11916 echo "$as_me:$LINENO: result: host tool" >&5
11917echo "${ECHO_T}host tool" >&6
be01d343
PB
11918 else
11919 # We need a cross tool
c6b750e1
DJ
11920 echo "$as_me:$LINENO: result: pre-installed" >&5
11921echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11922 fi
11923fi
4b900473 11924
c6b750e1
DJ
11925echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11926echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11927if test "x${build}" != "x${host}" ; then
2429c060
PB
11928 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11929 # We already found the complete path
b8025f34
AS
11930 ac_dir=`dirname $GCC_FOR_TARGET`
11931 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11932echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11933 else
11934 # Canadian cross, just use what we found
c6b750e1
DJ
11935 echo "$as_me:$LINENO: result: pre-installed" >&5
11936echo "${ECHO_T}pre-installed" >&6
2429c060 11937 fi
be01d343
PB
11938else
11939 ok=yes
11940 case " ${configdirs} " in
11941 *" gcc "*) ;;
11942 *) ok=no ;;
11943 esac
c6b750e1 11944
be01d343
PB
11945 if test $ok = yes; then
11946 # An in-tree tool is available and we can use it
11947 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11948 echo "$as_me:$LINENO: result: just compiled" >&5
11949echo "${ECHO_T}just compiled" >&6
2429c060
PB
11950 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11951 # We already found the complete path
b8025f34
AS
11952 ac_dir=`dirname $GCC_FOR_TARGET`
11953 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11954echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11955 elif test "x$target" = "x$host"; then
11956 # We can use an host tool
11957 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11958 echo "$as_me:$LINENO: result: host tool" >&5
11959echo "${ECHO_T}host tool" >&6
be01d343
PB
11960 else
11961 # We need a cross tool
c6b750e1
DJ
11962 echo "$as_me:$LINENO: result: pre-installed" >&5
11963echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11964 fi
11965fi
4b900473 11966
c6b750e1
DJ
11967echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11968echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11969if test "x${build}" != "x${host}" ; then
2429c060
PB
11970 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11971 # We already found the complete path
b8025f34
AS
11972 ac_dir=`dirname $GCJ_FOR_TARGET`
11973 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11974echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11975 else
11976 # Canadian cross, just use what we found
c6b750e1
DJ
11977 echo "$as_me:$LINENO: result: pre-installed" >&5
11978echo "${ECHO_T}pre-installed" >&6
2429c060 11979 fi
be01d343
PB
11980else
11981 ok=yes
11982 case " ${configdirs} " in
11983 *" gcc "*) ;;
11984 *) ok=no ;;
11985 esac
11986 case ,${enable_languages}, in
11987 *,java,*) ;;
11988 *) ok=no ;;
11989 esac
11990 if test $ok = yes; then
11991 # An in-tree tool is available and we can use it
11992 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11993 echo "$as_me:$LINENO: result: just compiled" >&5
11994echo "${ECHO_T}just compiled" >&6
2429c060
PB
11995 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11996 # We already found the complete path
b8025f34
AS
11997 ac_dir=`dirname $GCJ_FOR_TARGET`
11998 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11999echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12000 elif test "x$target" = "x$host"; then
12001 # We can use an host tool
12002 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
12003 echo "$as_me:$LINENO: result: host tool" >&5
12004echo "${ECHO_T}host tool" >&6
be01d343
PB
12005 else
12006 # We need a cross tool
c6b750e1
DJ
12007 echo "$as_me:$LINENO: result: pre-installed" >&5
12008echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12009 fi
12010fi
4b900473 12011
c6b750e1
DJ
12012echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12013echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 12014if test "x${build}" != "x${host}" ; then
2429c060
PB
12015 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12016 # We already found the complete path
b8025f34
AS
12017 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12018 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12019echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12020 else
12021 # Canadian cross, just use what we found
c6b750e1
DJ
12022 echo "$as_me:$LINENO: result: pre-installed" >&5
12023echo "${ECHO_T}pre-installed" >&6
2429c060 12024 fi
be01d343
PB
12025else
12026 ok=yes
12027 case " ${configdirs} " in
12028 *" gcc "*) ;;
12029 *) ok=no ;;
12030 esac
12031 case ,${enable_languages}, in
12032 *,fortran,*) ;;
12033 *) ok=no ;;
12034 esac
12035 if test $ok = yes; then
12036 # An in-tree tool is available and we can use it
12037 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12038 echo "$as_me:$LINENO: result: just compiled" >&5
12039echo "${ECHO_T}just compiled" >&6
2429c060
PB
12040 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12041 # We already found the complete path
b8025f34
AS
12042 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12043 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12044echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12045 elif test "x$target" = "x$host"; then
12046 # We can use an host tool
12047 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
12048 echo "$as_me:$LINENO: result: host tool" >&5
12049echo "${ECHO_T}host tool" >&6
be01d343
PB
12050 else
12051 # We need a cross tool
c6b750e1
DJ
12052 echo "$as_me:$LINENO: result: pre-installed" >&5
12053echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12054 fi
12055fi
4b900473 12056
c6b750e1
DJ
12057echo "$as_me:$LINENO: checking where to find the target ld" >&5
12058echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 12059if test "x${build}" != "x${host}" ; then
2429c060
PB
12060 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12061 # We already found the complete path
b8025f34
AS
12062 ac_dir=`dirname $LD_FOR_TARGET`
12063 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12064echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12065 else
12066 # Canadian cross, just use what we found
c6b750e1
DJ
12067 echo "$as_me:$LINENO: result: pre-installed" >&5
12068echo "${ECHO_T}pre-installed" >&6
2429c060 12069 fi
be01d343
PB
12070else
12071 ok=yes
12072 case " ${configdirs} " in
12073 *" ld "*) ;;
12074 *) ok=no ;;
12075 esac
c6b750e1 12076
be01d343
PB
12077 if test $ok = yes; then
12078 # An in-tree tool is available and we can use it
12079 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
12080 echo "$as_me:$LINENO: result: just compiled" >&5
12081echo "${ECHO_T}just compiled" >&6
2429c060
PB
12082 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12083 # We already found the complete path
b8025f34
AS
12084 ac_dir=`dirname $LD_FOR_TARGET`
12085 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12086echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12087 elif test "x$target" = "x$host"; then
12088 # We can use an host tool
12089 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
12090 echo "$as_me:$LINENO: result: host tool" >&5
12091echo "${ECHO_T}host tool" >&6
be01d343
PB
12092 else
12093 # We need a cross tool
c6b750e1
DJ
12094 echo "$as_me:$LINENO: result: pre-installed" >&5
12095echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12096 fi
12097fi
4b900473 12098
c6b750e1
DJ
12099echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12100echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 12101if test "x${build}" != "x${host}" ; then
2429c060
PB
12102 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12103 # We already found the complete path
b8025f34
AS
12104 ac_dir=`dirname $LIPO_FOR_TARGET`
12105 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12106echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12107 else
12108 # Canadian cross, just use what we found
c6b750e1
DJ
12109 echo "$as_me:$LINENO: result: pre-installed" >&5
12110echo "${ECHO_T}pre-installed" >&6
2429c060 12111 fi
be01d343 12112else
2429c060
PB
12113 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12114 # We already found the complete path
b8025f34
AS
12115 ac_dir=`dirname $LIPO_FOR_TARGET`
12116 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12117echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 12118 elif test "x$target" = "x$host"; then
be01d343
PB
12119 # We can use an host tool
12120 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
12121 echo "$as_me:$LINENO: result: host tool" >&5
12122echo "${ECHO_T}host tool" >&6
be01d343
PB
12123 else
12124 # We need a cross tool
c6b750e1
DJ
12125 echo "$as_me:$LINENO: result: pre-installed" >&5
12126echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12127 fi
12128fi
4b900473 12129
c6b750e1
DJ
12130echo "$as_me:$LINENO: checking where to find the target nm" >&5
12131echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 12132if test "x${build}" != "x${host}" ; then
2429c060
PB
12133 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12134 # We already found the complete path
b8025f34
AS
12135 ac_dir=`dirname $NM_FOR_TARGET`
12136 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12137echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12138 else
12139 # Canadian cross, just use what we found
c6b750e1
DJ
12140 echo "$as_me:$LINENO: result: pre-installed" >&5
12141echo "${ECHO_T}pre-installed" >&6
2429c060 12142 fi
be01d343
PB
12143else
12144 ok=yes
12145 case " ${configdirs} " in
12146 *" binutils "*) ;;
12147 *) ok=no ;;
12148 esac
c6b750e1 12149
be01d343
PB
12150 if test $ok = yes; then
12151 # An in-tree tool is available and we can use it
12152 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
12153 echo "$as_me:$LINENO: result: just compiled" >&5
12154echo "${ECHO_T}just compiled" >&6
2429c060
PB
12155 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12156 # We already found the complete path
b8025f34
AS
12157 ac_dir=`dirname $NM_FOR_TARGET`
12158 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12159echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12160 elif test "x$target" = "x$host"; then
12161 # We can use an host tool
12162 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
12163 echo "$as_me:$LINENO: result: host tool" >&5
12164echo "${ECHO_T}host tool" >&6
be01d343
PB
12165 else
12166 # We need a cross tool
c6b750e1
DJ
12167 echo "$as_me:$LINENO: result: pre-installed" >&5
12168echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12169 fi
12170fi
4b900473 12171
c6b750e1
DJ
12172echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12173echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 12174if test "x${build}" != "x${host}" ; then
2429c060
PB
12175 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12176 # We already found the complete path
b8025f34
AS
12177 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12178 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12179echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12180 else
12181 # Canadian cross, just use what we found
c6b750e1
DJ
12182 echo "$as_me:$LINENO: result: pre-installed" >&5
12183echo "${ECHO_T}pre-installed" >&6
2429c060 12184 fi
be01d343
PB
12185else
12186 ok=yes
12187 case " ${configdirs} " in
12188 *" binutils "*) ;;
12189 *) ok=no ;;
12190 esac
c6b750e1 12191
be01d343
PB
12192 if test $ok = yes; then
12193 # An in-tree tool is available and we can use it
12194 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
12195 echo "$as_me:$LINENO: result: just compiled" >&5
12196echo "${ECHO_T}just compiled" >&6
2429c060
PB
12197 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12198 # We already found the complete path
b8025f34
AS
12199 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12200 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12201echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12202 elif test "x$target" = "x$host"; then
12203 # We can use an host tool
12204 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
12205 echo "$as_me:$LINENO: result: host tool" >&5
12206echo "${ECHO_T}host tool" >&6
be01d343
PB
12207 else
12208 # We need a cross tool
c6b750e1
DJ
12209 echo "$as_me:$LINENO: result: pre-installed" >&5
12210echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12211 fi
12212fi
4b900473 12213
c6b750e1
DJ
12214echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12215echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 12216if test "x${build}" != "x${host}" ; then
2429c060
PB
12217 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12218 # We already found the complete path
b8025f34
AS
12219 ac_dir=`dirname $RANLIB_FOR_TARGET`
12220 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12221echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12222 else
12223 # Canadian cross, just use what we found
c6b750e1
DJ
12224 echo "$as_me:$LINENO: result: pre-installed" >&5
12225echo "${ECHO_T}pre-installed" >&6
2429c060 12226 fi
be01d343
PB
12227else
12228 ok=yes
12229 case " ${configdirs} " in
12230 *" binutils "*) ;;
12231 *) ok=no ;;
12232 esac
c6b750e1 12233
be01d343
PB
12234 if test $ok = yes; then
12235 # An in-tree tool is available and we can use it
12236 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
12237 echo "$as_me:$LINENO: result: just compiled" >&5
12238echo "${ECHO_T}just compiled" >&6
2429c060
PB
12239 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12240 # We already found the complete path
b8025f34
AS
12241 ac_dir=`dirname $RANLIB_FOR_TARGET`
12242 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12243echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12244 elif test "x$target" = "x$host"; then
12245 # We can use an host tool
12246 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
12247 echo "$as_me:$LINENO: result: host tool" >&5
12248echo "${ECHO_T}host tool" >&6
be01d343
PB
12249 else
12250 # We need a cross tool
c6b750e1
DJ
12251 echo "$as_me:$LINENO: result: pre-installed" >&5
12252echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12253 fi
12254fi
4b900473 12255
c6b750e1
DJ
12256echo "$as_me:$LINENO: checking where to find the target strip" >&5
12257echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 12258if test "x${build}" != "x${host}" ; then
2429c060
PB
12259 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12260 # We already found the complete path
b8025f34
AS
12261 ac_dir=`dirname $STRIP_FOR_TARGET`
12262 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12263echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12264 else
12265 # Canadian cross, just use what we found
c6b750e1
DJ
12266 echo "$as_me:$LINENO: result: pre-installed" >&5
12267echo "${ECHO_T}pre-installed" >&6
2429c060 12268 fi
be01d343
PB
12269else
12270 ok=yes
12271 case " ${configdirs} " in
12272 *" binutils "*) ;;
12273 *) ok=no ;;
12274 esac
c6b750e1 12275
be01d343
PB
12276 if test $ok = yes; then
12277 # An in-tree tool is available and we can use it
12278 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
12279 echo "$as_me:$LINENO: result: just compiled" >&5
12280echo "${ECHO_T}just compiled" >&6
2429c060
PB
12281 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12282 # We already found the complete path
b8025f34
AS
12283 ac_dir=`dirname $STRIP_FOR_TARGET`
12284 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12285echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12286 elif test "x$target" = "x$host"; then
12287 # We can use an host tool
12288 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
12289 echo "$as_me:$LINENO: result: host tool" >&5
12290echo "${ECHO_T}host tool" >&6
be01d343
PB
12291 else
12292 # We need a cross tool
c6b750e1
DJ
12293 echo "$as_me:$LINENO: result: pre-installed" >&5
12294echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12295 fi
12296fi
4b900473 12297
c6b750e1
DJ
12298echo "$as_me:$LINENO: checking where to find the target windres" >&5
12299echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12300if test "x${build}" != "x${host}" ; then
2429c060
PB
12301 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12302 # We already found the complete path
b8025f34
AS
12303 ac_dir=`dirname $WINDRES_FOR_TARGET`
12304 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12305echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12306 else
12307 # Canadian cross, just use what we found
c6b750e1
DJ
12308 echo "$as_me:$LINENO: result: pre-installed" >&5
12309echo "${ECHO_T}pre-installed" >&6
2429c060 12310 fi
be01d343
PB
12311else
12312 ok=yes
12313 case " ${configdirs} " in
12314 *" binutils "*) ;;
12315 *) ok=no ;;
12316 esac
c6b750e1 12317
be01d343
PB
12318 if test $ok = yes; then
12319 # An in-tree tool is available and we can use it
12320 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12321 echo "$as_me:$LINENO: result: just compiled" >&5
12322echo "${ECHO_T}just compiled" >&6
2429c060
PB
12323 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12324 # We already found the complete path
b8025f34
AS
12325 ac_dir=`dirname $WINDRES_FOR_TARGET`
12326 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12327echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12328 elif test "x$target" = "x$host"; then
12329 # We can use an host tool
12330 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12331 echo "$as_me:$LINENO: result: host tool" >&5
12332echo "${ECHO_T}host tool" >&6
be01d343
PB
12333 else
12334 # We need a cross tool
c6b750e1
DJ
12335 echo "$as_me:$LINENO: result: pre-installed" >&5
12336echo "${ECHO_T}pre-installed" >&6
be01d343 12337 fi
a0da8069 12338fi
54752a6b 12339
0c24b341
NC
12340echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12341echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12342if test "x${build}" != "x${host}" ; then
12343 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12344 # We already found the complete path
12345 ac_dir=`dirname $WINDMC_FOR_TARGET`
12346 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12347echo "${ECHO_T}pre-installed in $ac_dir" >&6
12348 else
12349 # Canadian cross, just use what we found
12350 echo "$as_me:$LINENO: result: pre-installed" >&5
12351echo "${ECHO_T}pre-installed" >&6
12352 fi
12353else
12354 ok=yes
12355 case " ${configdirs} " in
12356 *" binutils "*) ;;
12357 *) ok=no ;;
12358 esac
12359
12360 if test $ok = yes; then
12361 # An in-tree tool is available and we can use it
12362 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12363 echo "$as_me:$LINENO: result: just compiled" >&5
12364echo "${ECHO_T}just compiled" >&6
12365 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12366 # We already found the complete path
12367 ac_dir=`dirname $WINDMC_FOR_TARGET`
12368 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12369echo "${ECHO_T}pre-installed in $ac_dir" >&6
12370 elif test "x$target" = "x$host"; then
12371 # We can use an host tool
12372 WINDMC_FOR_TARGET='$(WINDMC)'
12373 echo "$as_me:$LINENO: result: host tool" >&5
12374echo "${ECHO_T}host tool" >&6
12375 else
12376 # We need a cross tool
12377 echo "$as_me:$LINENO: result: pre-installed" >&5
12378echo "${ECHO_T}pre-installed" >&6
12379 fi
12380fi
12381
54752a6b
NN
12382
12383
be01d343 12384
4b900473 12385
a0da8069
NN
12386# Certain tools may need extra flags.
12387AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12388RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12389NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12390
be01d343
PB
12391# When building target libraries, except in a Canadian cross, we use
12392# the same toolchain as the compiler we just built.
12393COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12394COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12395COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12396if test $host = $build; then
12397 case " $configdirs " in
12398 *" gcc "*)
12399 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12400 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12401 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12402 ;;
12403 esac
12404fi
12405
12406
12407
12408
12409
c6b750e1
DJ
12410echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12411echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12412# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12413if test "${enable_maintainer_mode+set}" = set; then
12414 enableval="$enable_maintainer_mode"
12415 USE_MAINTAINER_MODE=$enableval
12416else
12417 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12418fi;
12419echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12420echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12421
12422
12423if test "$USE_MAINTAINER_MODE" = yes; then
12424 MAINTAINER_MODE_TRUE=
12425 MAINTAINER_MODE_FALSE='#'
12426else
12427 MAINTAINER_MODE_TRUE='#'
12428 MAINTAINER_MODE_FALSE=
c6b750e1 12429fi
3d5e36ae
AO
12430MAINT=$MAINTAINER_MODE_TRUE
12431
1d39f329
NN
12432# ---------------------
12433# GCC bootstrap support
12434# ---------------------
12435
12436# Stage specific cflags for build.
12437stage1_cflags="-g"
12438case $build in
12439 vax-*-*)
12440 case ${GCC} in
12441 yes) stage1_cflags="-g -Wa,-J" ;;
12442 *) stage1_cflags="-g -J" ;;
12443 esac ;;
1d39f329
NN
12444esac
12445
1d89b610
PB
12446# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12447if test "$GCC" = yes; then
12448 saved_CFLAGS="$CFLAGS"
12449
12450 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12451 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12452 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12453echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12454 cat >conftest.$ac_ext <<_ACEOF
12455/* confdefs.h. */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h. */
12460
2038f525
PB
12461#if (__GNUC__ < 3) \
12462 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12463 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12464#error http://gcc.gnu.org/PR29382
12465#endif
12466
c6b750e1
DJ
12467int
12468main ()
12469{
12470
12471 ;
12472 return 0;
12473}
12474_ACEOF
12475rm -f conftest.$ac_objext
12476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12477 (eval $ac_compile) 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -z "$ac_c_werror_flag"
12485 || test ! -s conftest.err'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest.$ac_objext'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 echo "$as_me:$LINENO: result: yes" >&5
12498echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12499else
12500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
12503echo "$as_me:$LINENO: result: no" >&5
12504echo "${ECHO_T}no" >&6
12505fi
12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12507
12508 CFLAGS="$saved_CFLAGS"
12509fi
12510
12511
1d39f329 12512
8a0d8a5c
PB
12513# Enable --enable-checking in stage1 of the compiler.
12514# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12515if test "${enable_stage1_checking+set}" = set; then
12516 enableval="$enable_stage1_checking"
12517 stage1_checking=--enable-checking=${enable_stage1_checking}
12518else
5566c1fa 12519 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12520 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12521else
5566c1fa 12522 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12523fi
c6b750e1 12524fi;
8a0d8a5c
PB
12525
12526
1d39f329 12527# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12528# Check whether --enable-werror or --disable-werror was given.
12529if test "${enable_werror+set}" = set; then
12530 enableval="$enable_werror"
c6b750e1 12531
1d39f329 12532else
a0323144 12533 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12534 enable_werror=yes
79fcd0ec
PB
12535else
12536 enable_werror=no
12537fi
c6b750e1 12538fi;
1a6f2dc7
NN
12539case ${enable_werror} in
12540 yes) stage2_werror_flag="--enable-werror-always" ;;
12541 *) stage2_werror_flag="" ;;
1d39f329
NN
12542esac
12543
12544
108a6f8e 12545# Flags needed to enable html installing and building
c6b750e1 12546
108a6f8e
CD
12547# Check whether --with-datarootdir or --without-datarootdir was given.
12548if test "${with_datarootdir+set}" = set; then
12549 withval="$with_datarootdir"
12550 datarootdir="\${prefix}/${withval}"
12551else
12552 datarootdir="\${prefix}/share"
c6b750e1 12553fi;
108a6f8e
CD
12554
12555
12556# Check whether --with-docdir or --without-docdir was given.
12557if test "${with_docdir+set}" = set; then
12558 withval="$with_docdir"
12559 docdir="\${prefix}/${withval}"
12560else
12561 docdir="\${datarootdir}/doc"
c6b750e1 12562fi;
108a6f8e
CD
12563
12564
a3ca38d2
DD
12565# Check whether --with-pdfdir or --without-pdfdir was given.
12566if test "${with_pdfdir+set}" = set; then
12567 withval="$with_pdfdir"
12568 pdfdir="\${prefix}/${withval}"
12569else
12570 pdfdir="\${docdir}"
12571fi;
12572
12573
108a6f8e
CD
12574# Check whether --with-htmldir or --without-htmldir was given.
12575if test "${with_htmldir+set}" = set; then
12576 withval="$with_htmldir"
12577 htmldir="\${prefix}/${withval}"
12578else
12579 htmldir="\${docdir}"
c6b750e1 12580fi;
108a6f8e
CD
12581
12582
12583
12584
12585
b8025f34 12586
c6b750e1
DJ
12587 ac_config_files="$ac_config_files Makefile"
12588cat >confcache <<\_ACEOF
a0da8069
NN
12589# This file is a shell script that caches the results of configure
12590# tests run on this system so they can be shared between configure
c6b750e1
DJ
12591# scripts and configure runs, see configure's option --config-cache.
12592# It is not useful on other systems. If it contains results you don't
12593# want to keep, you may remove or edit it.
a0da8069 12594#
c6b750e1
DJ
12595# config.status only pays attention to the cache file if you give it
12596# the --recheck option to rerun configure.
a0da8069 12597#
c6b750e1
DJ
12598# `ac_cv_env_foo' variables (set or unset) will be overridden when
12599# loading this file, other *unset* `ac_cv_foo' will be assigned the
12600# following values.
12601
12602_ACEOF
12603
a0da8069
NN
12604# The following way of writing the cache mishandles newlines in values,
12605# but we know of no workaround that is simple, portable, and efficient.
12606# So, don't put newlines in cache variables' values.
12607# Ultrix sh set writes to stderr and can't be redirected directly,
12608# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12609{
12610 (set) 2>&1 |
12611 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12612 *ac_space=\ *)
12613 # `set' does not quote correctly, so add quotes (double-quote
12614 # substitution turns \\\\ into \\, and sed turns \\ into \).
12615 sed -n \
12616 "s/'/'\\\\''/g;
12617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12618 ;;
12619 *)
12620 # `set' quotes correctly as required by POSIX, so do not add quotes.
12621 sed -n \
12622 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12623 ;;
12624 esac;
12625} |
12626 sed '
12627 t clear
12628 : clear
12629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12630 t end
12631 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12632 : end' >>confcache
12633if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12634 if test -w $cache_file; then
c6b750e1
DJ
12635 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12636 cat confcache >$cache_file
a0da8069
NN
12637 else
12638 echo "not updating unwritable cache $cache_file"
12639 fi
852e5f18 12640fi
a0da8069 12641rm -f confcache
852e5f18 12642
a0da8069
NN
12643test "x$prefix" = xNONE && prefix=$ac_default_prefix
12644# Let make expand exec_prefix.
12645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12646
c6b750e1
DJ
12647# VPATH may cause trouble with some makes, so we remove $(srcdir),
12648# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12649# trailing colons and then remove the whole line if VPATH becomes empty
12650# (actually we leave an empty line to preserve line numbers).
a0da8069 12651if test "x$srcdir" = x.; then
c6b750e1
DJ
12652 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12653s/:*\$(srcdir):*/:/;
12654s/:*\${srcdir}:*/:/;
12655s/:*@srcdir@:*/:/;
12656s/^\([^=]*=[ ]*\):*/\1/;
12657s/:*$//;
12658s/^[^=]*=[ ]*$//;
12659}'
a0da8069 12660fi
252b5132 12661
a0da8069
NN
12662# Transform confdefs.h into DEFS.
12663# Protect against shell expansion while executing Makefile rules.
12664# Protect against Makefile macro expansion.
c6b750e1
DJ
12665#
12666# If the first sed substitution is executed (which looks for macros that
12667# take arguments), then we branch to the quote section. Otherwise,
12668# look for a macro that doesn't take arguments.
12669cat >confdef2opt.sed <<\_ACEOF
12670t clear
12671: clear
12672s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12673t quote
12674s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12675t quote
12676d
12677: quote
12678s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12679s,\[,\\&,g
12680s,\],\\&,g
12681s,\$,$$,g
12682p
12683_ACEOF
12684# We use echo to avoid assuming a particular line-breaking character.
12685# The extra dot is to prevent the shell from consuming trailing
12686# line-breaks from the sub-command output. A line-break within
12687# single-quotes doesn't work because, if this script is created in a
12688# platform that uses two characters for line-breaks (e.g., DOS), tr
12689# would break.
12690ac_LF_and_DOT=`echo; echo .`
12691DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12692rm -f confdef2opt.sed
12693
12694
12695ac_libobjs=
12696ac_ltlibobjs=
12697for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12698 # 1. Remove the extension, and $U if already installed.
12699 ac_i=`echo "$ac_i" |
12700 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12701 # 2. Add them.
12702 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12703 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12704done
12705LIBOBJS=$ac_libobjs
852e5f18 12706
c6b750e1 12707LTLIBOBJS=$ac_ltlibobjs
376a0e54 12708
cac3d6c4 12709
c6b750e1
DJ
12710
12711: ${CONFIG_STATUS=./config.status}
12712ac_clean_files_save=$ac_clean_files
12713ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12714{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12715echo "$as_me: creating $CONFIG_STATUS" >&6;}
12716cat >$CONFIG_STATUS <<_ACEOF
12717#! $SHELL
12718# Generated by $as_me.
a0da8069 12719# Run this file to recreate the current configuration.
a0da8069 12720# Compiler output produced by configure, useful for debugging
c6b750e1 12721# configure, is in config.log if it exists.
376a0e54 12722
c6b750e1
DJ
12723debug=false
12724ac_cs_recheck=false
12725ac_cs_silent=false
12726SHELL=\${CONFIG_SHELL-$SHELL}
12727_ACEOF
12728
12729cat >>$CONFIG_STATUS <<\_ACEOF
12730## --------------------- ##
12731## M4sh Initialization. ##
12732## --------------------- ##
12733
12734# Be Bourne compatible
12735if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12736 emulate sh
12737 NULLCMD=:
12738 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12739 # is contrary to our usage. Disable this feature.
12740 alias -g '${1+"$@"}'='"$@"'
12741elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12742 set -o posix
12743fi
12744DUALCASE=1; export DUALCASE # for MKS sh
12745
12746# Support unset when possible.
12747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12748 as_unset=unset
12749else
12750 as_unset=false
12751fi
12752
12753
12754# Work around bugs in pre-3.0 UWIN ksh.
12755$as_unset ENV MAIL MAILPATH
12756PS1='$ '
12757PS2='> '
12758PS4='+ '
12759
12760# NLS nuisances.
12761for as_var in \
12762 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12763 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12764 LC_TELEPHONE LC_TIME
12765do
12766 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12767 eval $as_var=C; export $as_var
12768 else
12769 $as_unset $as_var
12770 fi
12771done
12772
12773# Required to use basename.
12774if expr a : '\(a\)' >/dev/null 2>&1; then
12775 as_expr=expr
12776else
12777 as_expr=false
12778fi
12779
12780if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12781 as_basename=basename
12782else
12783 as_basename=false
12784fi
12785
12786
12787# Name of the executable.
12788as_me=`$as_basename "$0" ||
12789$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12790 X"$0" : 'X\(//\)$' \| \
12791 X"$0" : 'X\(/\)$' \| \
12792 . : '\(.\)' 2>/dev/null ||
12793echo X/"$0" |
12794 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12795 /^X\/\(\/\/\)$/{ s//\1/; q; }
12796 /^X\/\(\/\).*/{ s//\1/; q; }
12797 s/.*/./; q'`
12798
12799
12800# PATH needs CR, and LINENO needs CR and PATH.
12801# Avoid depending upon Character Ranges.
12802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12805as_cr_digits='0123456789'
12806as_cr_alnum=$as_cr_Letters$as_cr_digits
12807
12808# The user is always right.
12809if test "${PATH_SEPARATOR+set}" != set; then
12810 echo "#! /bin/sh" >conf$$.sh
12811 echo "exit 0" >>conf$$.sh
12812 chmod +x conf$$.sh
12813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12814 PATH_SEPARATOR=';'
12815 else
12816 PATH_SEPARATOR=:
12817 fi
12818 rm -f conf$$.sh
12819fi
12820
12821
12822 as_lineno_1=$LINENO
12823 as_lineno_2=$LINENO
12824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12825 test "x$as_lineno_1" != "x$as_lineno_2" &&
12826 test "x$as_lineno_3" = "x$as_lineno_2" || {
12827 # Find who we are. Look in the path if we contain no path at all
12828 # relative or not.
12829 case $0 in
12830 *[\\/]* ) as_myself=$0 ;;
12831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832for as_dir in $PATH
12833do
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
12836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12837done
12838
12839 ;;
12840 esac
12841 # We did not find ourselves, most probably we were run as `sh COMMAND'
12842 # in which case we are not to be found in the path.
12843 if test "x$as_myself" = x; then
12844 as_myself=$0
12845 fi
12846 if test ! -f "$as_myself"; then
12847 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12848echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12849 { (exit 1); exit 1; }; }
12850 fi
12851 case $CONFIG_SHELL in
12852 '')
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12855do
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for as_base in sh bash ksh sh5; do
12859 case $as_dir in
12860 /*)
12861 if ("$as_dir/$as_base" -c '
12862 as_lineno_1=$LINENO
12863 as_lineno_2=$LINENO
12864 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12865 test "x$as_lineno_1" != "x$as_lineno_2" &&
12866 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12867 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12868 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12869 CONFIG_SHELL=$as_dir/$as_base
12870 export CONFIG_SHELL
12871 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12872 fi;;
12873 esac
12874 done
12875done
12876;;
12877 esac
12878
12879 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12880 # uniformly replaced by the line number. The first 'sed' inserts a
12881 # line-number line before each line; the second 'sed' does the real
12882 # work. The second script uses 'N' to pair each line-number line
12883 # with the numbered line, and appends trailing '-' during
12884 # substitution so that $LINENO is not a special case at line end.
12885 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12886 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12887 sed '=' <$as_myself |
12888 sed '
12889 N
12890 s,$,-,
12891 : loop
12892 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12893 t loop
12894 s,-$,,
12895 s,^['$as_cr_digits']*\n,,
12896 ' >$as_me.lineno &&
12897 chmod +x $as_me.lineno ||
12898 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12899echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12900 { (exit 1); exit 1; }; }
12901
12902 # Don't try to exec as it changes $[0], causing all sort of problems
12903 # (the dirname of $[0] is not the place where we might find the
12904 # original and so on. Autoconf is especially sensible to this).
12905 . ./$as_me.lineno
12906 # Exit status is that of the last command.
12907 exit
12908}
12909
12910
12911case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12912 *c*,-n*) ECHO_N= ECHO_C='
12913' ECHO_T=' ' ;;
12914 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12915 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12916esac
12917
12918if expr a : '\(a\)' >/dev/null 2>&1; then
12919 as_expr=expr
12920else
12921 as_expr=false
12922fi
12923
12924rm -f conf$$ conf$$.exe conf$$.file
12925echo >conf$$.file
12926if ln -s conf$$.file conf$$ 2>/dev/null; then
12927 # We could just check for DJGPP; but this test a) works b) is more generic
12928 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12929 if test -f conf$$.exe; then
12930 # Don't use ln at all; we don't have any links
12931 as_ln_s='cp -p'
12932 else
12933 as_ln_s='ln -s'
12934 fi
12935elif ln conf$$.file conf$$ 2>/dev/null; then
12936 as_ln_s=ln
12937else
12938 as_ln_s='cp -p'
12939fi
12940rm -f conf$$ conf$$.exe conf$$.file
12941
12942if mkdir -p . 2>/dev/null; then
12943 as_mkdir_p=:
12944else
12945 test -d ./-p && rmdir ./-p
12946 as_mkdir_p=false
12947fi
12948
12949as_executable_p="test -f"
12950
12951# Sed expression to map a string onto a valid CPP name.
12952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12953
12954# Sed expression to map a string onto a valid variable name.
12955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12956
12957
12958# IFS
12959# We need space, tab and new line, in precisely that order.
12960as_nl='
12961'
12962IFS=" $as_nl"
12963
12964# CDPATH.
12965$as_unset CDPATH
12966
12967exec 6>&1
12968
12969# Open the log real soon, to keep \$[0] and so on meaningful, and to
12970# report actual input values of CONFIG_FILES etc. instead of their
12971# values after options handling. Logging --version etc. is OK.
12972exec 5>>config.log
12973{
12974 echo
12975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12976## Running $as_me. ##
12977_ASBOX
12978} >&5
12979cat >&5 <<_CSEOF
12980
12981This file was extended by $as_me, which was
12982generated by GNU Autoconf 2.59. Invocation command line was
12983
12984 CONFIG_FILES = $CONFIG_FILES
12985 CONFIG_HEADERS = $CONFIG_HEADERS
12986 CONFIG_LINKS = $CONFIG_LINKS
12987 CONFIG_COMMANDS = $CONFIG_COMMANDS
12988 $ $0 $@
12989
12990_CSEOF
12991echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12992echo >&5
12993_ACEOF
12994
12995# Files that config.status was made for.
12996if test -n "$ac_config_files"; then
12997 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12998fi
12999
13000if test -n "$ac_config_headers"; then
13001 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13002fi
13003
13004if test -n "$ac_config_links"; then
13005 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13006fi
13007
13008if test -n "$ac_config_commands"; then
13009 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13010fi
13011
13012cat >>$CONFIG_STATUS <<\_ACEOF
13013
13014ac_cs_usage="\
13015\`$as_me' instantiates files from templates according to the
13016current configuration.
13017
13018Usage: $0 [OPTIONS] [FILE]...
13019
13020 -h, --help print this help, then exit
13021 -V, --version print version number, then exit
13022 -q, --quiet do not print progress messages
13023 -d, --debug don't remove temporary files
13024 --recheck update $as_me by reconfiguring in the same conditions
13025 --file=FILE[:TEMPLATE]
13026 instantiate the configuration file FILE
13027
13028Configuration files:
13029$config_files
13030
13031Report bugs to <bug-autoconf@gnu.org>."
13032_ACEOF
13033
13034cat >>$CONFIG_STATUS <<_ACEOF
13035ac_cs_version="\\
13036config.status
13037configured by $0, generated by GNU Autoconf 2.59,
13038 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13039
13040Copyright (C) 2003 Free Software Foundation, Inc.
13041This config.status script is free software; the Free Software Foundation
13042gives unlimited permission to copy, distribute and modify it."
13043srcdir=$srcdir
13044INSTALL="$INSTALL"
13045_ACEOF
13046
13047cat >>$CONFIG_STATUS <<\_ACEOF
13048# If no file are specified by the user, then we need to provide default
13049# value. By we need to know if files were specified by the user.
13050ac_need_defaults=:
13051while test $# != 0
a0da8069 13052do
c6b750e1
DJ
13053 case $1 in
13054 --*=*)
13055 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13056 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13057 ac_shift=:
13058 ;;
13059 -*)
13060 ac_option=$1
13061 ac_optarg=$2
13062 ac_shift=shift
13063 ;;
13064 *) # This is not an option, so the user has probably given explicit
13065 # arguments.
13066 ac_option=$1
13067 ac_need_defaults=false;;
13068 esac
13069
13070 case $ac_option in
13071 # Handling of the options.
13072_ACEOF
13073cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 13074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
13075 ac_cs_recheck=: ;;
13076 --version | --vers* | -V )
13077 echo "$ac_cs_version"; exit 0 ;;
13078 --he | --h)
13079 # Conflict between --help and --header
13080 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13081Try \`$0 --help' for more information." >&5
13082echo "$as_me: error: ambiguous option: $1
13083Try \`$0 --help' for more information." >&2;}
13084 { (exit 1); exit 1; }; };;
13085 --help | --hel | -h )
13086 echo "$ac_cs_usage"; exit 0 ;;
13087 --debug | --d* | -d )
13088 debug=: ;;
13089 --file | --fil | --fi | --f )
13090 $ac_shift
13091 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13092 ac_need_defaults=false;;
13093 --header | --heade | --head | --hea )
13094 $ac_shift
13095 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13096 ac_need_defaults=false;;
13097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13099 ac_cs_silent=: ;;
13100
13101 # This is an error.
13102 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13103Try \`$0 --help' for more information." >&5
13104echo "$as_me: error: unrecognized option: $1
13105Try \`$0 --help' for more information." >&2;}
13106 { (exit 1); exit 1; }; } ;;
13107
13108 *) ac_config_targets="$ac_config_targets $1" ;;
13109
376a0e54 13110 esac
c6b750e1 13111 shift
376a0e54
CM
13112done
13113
c6b750e1 13114ac_configure_extra_args=
376a0e54 13115
c6b750e1
DJ
13116if $ac_cs_silent; then
13117 exec 6>/dev/null
13118 ac_configure_extra_args="$ac_configure_extra_args --silent"
13119fi
376a0e54 13120
c6b750e1
DJ
13121_ACEOF
13122cat >>$CONFIG_STATUS <<_ACEOF
13123if \$ac_cs_recheck; then
13124 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13125 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13126fi
13127
13128_ACEOF
13129
13130
13131
13132
13133
13134cat >>$CONFIG_STATUS <<\_ACEOF
13135for ac_config_target in $ac_config_targets
13136do
13137 case "$ac_config_target" in
13138 # Handling of arguments.
13139 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13140 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13141echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13142 { (exit 1); exit 1; }; };;
13143 esac
13144done
13145
13146# If the user did not use the arguments to specify the items to instantiate,
13147# then the envvar interface is used. Set only those that are not.
13148# We use the long form for the default assignment because of an extremely
13149# bizarre bug on SunOS 4.1.3.
13150if $ac_need_defaults; then
13151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13152fi
13153
13154# Have a temporary directory for convenience. Make it in the build tree
13155# simply because there is no reason to put it here, and in addition,
13156# creating and moving files from /tmp can sometimes cause problems.
13157# Create a temporary directory, and hook for its removal unless debugging.
13158$debug ||
13159{
13160 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13161 trap '{ (exit 1); exit 1; }' 1 2 13 15
13162}
13163
13164# Create a (secure) tmp directory for tmp files.
13165
13166{
13167 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13168 test -n "$tmp" && test -d "$tmp"
13169} ||
13170{
13171 tmp=./confstat$$-$RANDOM
13172 (umask 077 && mkdir $tmp)
13173} ||
13174{
13175 echo "$me: cannot create a temporary directory in ." >&2
13176 { (exit 1); exit 1; }
13177}
13178
13179_ACEOF
13180
13181cat >>$CONFIG_STATUS <<_ACEOF
13182
13183#
13184# CONFIG_FILES section.
13185#
13186
13187# No need to generate the scripts if there are no CONFIG_FILES.
13188# This happens for instance when ./config.status config.h
13189if test -n "\$CONFIG_FILES"; then
13190 # Protect against being on the right side of a sed subst in config.status.
13191 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13192 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13193s,@SHELL@,$SHELL,;t t
13194s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13195s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13196s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13197s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13198s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13199s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13200s,@exec_prefix@,$exec_prefix,;t t
13201s,@prefix@,$prefix,;t t
13202s,@program_transform_name@,$program_transform_name,;t t
13203s,@bindir@,$bindir,;t t
13204s,@sbindir@,$sbindir,;t t
13205s,@libexecdir@,$libexecdir,;t t
13206s,@datadir@,$datadir,;t t
13207s,@sysconfdir@,$sysconfdir,;t t
13208s,@sharedstatedir@,$sharedstatedir,;t t
13209s,@localstatedir@,$localstatedir,;t t
13210s,@libdir@,$libdir,;t t
13211s,@includedir@,$includedir,;t t
13212s,@oldincludedir@,$oldincludedir,;t t
13213s,@infodir@,$infodir,;t t
13214s,@mandir@,$mandir,;t t
13215s,@build_alias@,$build_alias,;t t
13216s,@host_alias@,$host_alias,;t t
13217s,@target_alias@,$target_alias,;t t
13218s,@DEFS@,$DEFS,;t t
13219s,@ECHO_C@,$ECHO_C,;t t
13220s,@ECHO_N@,$ECHO_N,;t t
13221s,@ECHO_T@,$ECHO_T,;t t
13222s,@LIBS@,$LIBS,;t t
5b553f7e 13223s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
13224s,@build@,$build,;t t
13225s,@build_cpu@,$build_cpu,;t t
13226s,@build_vendor@,$build_vendor,;t t
13227s,@build_os@,$build_os,;t t
13228s,@build_noncanonical@,$build_noncanonical,;t t
13229s,@host_noncanonical@,$host_noncanonical,;t t
13230s,@target_noncanonical@,$target_noncanonical,;t t
13231s,@host@,$host,;t t
13232s,@host_cpu@,$host_cpu,;t t
13233s,@host_vendor@,$host_vendor,;t t
13234s,@host_os@,$host_os,;t t
13235s,@target@,$target,;t t
13236s,@target_cpu@,$target_cpu,;t t
13237s,@target_vendor@,$target_vendor,;t t
13238s,@target_os@,$target_os,;t t
13239s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13240s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13241s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13242s,@LN@,$LN,;t t
13243s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
13244s,@build_libsubdir@,$build_libsubdir,;t t
13245s,@build_subdir@,$build_subdir,;t t
13246s,@host_subdir@,$host_subdir,;t t
13247s,@target_subdir@,$target_subdir,;t t
13248s,@CC@,$CC,;t t
13249s,@CFLAGS@,$CFLAGS,;t t
13250s,@LDFLAGS@,$LDFLAGS,;t t
13251s,@CPPFLAGS@,$CPPFLAGS,;t t
13252s,@ac_ct_CC@,$ac_ct_CC,;t t
13253s,@EXEEXT@,$EXEEXT,;t t
13254s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
13255s,@CXX@,$CXX,;t t
13256s,@CXXFLAGS@,$CXXFLAGS,;t t
13257s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
13258s,@GNATBIND@,$GNATBIND,;t t
13259s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
13260s,@GNATMAKE@,$GNATMAKE,;t t
13261s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
13262s,@do_compare@,$do_compare,;t t
13263s,@gmplibs@,$gmplibs,;t t
13264s,@gmpinc@,$gmpinc,;t t
e28c595f
JM
13265s,@ppllibs@,$ppllibs,;t t
13266s,@pplinc@,$pplinc,;t t
13267s,@clooglibs@,$clooglibs,;t t
13268s,@clooginc@,$clooginc,;t t
c6b750e1
DJ
13269s,@stage1_languages@,$stage1_languages,;t t
13270s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 13271s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
13272s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13273s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1 13274s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3bbd2f8f 13275s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
c6b750e1
DJ
13276s,@tooldir@,$tooldir,;t t
13277s,@build_tooldir@,$build_tooldir,;t t
13278s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13279s,@GDB_TK@,$GDB_TK,;t t
13280s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13281s,@build_configargs@,$build_configargs,;t t
13282s,@build_configdirs@,$build_configdirs,;t t
13283s,@host_configargs@,$host_configargs,;t t
13284s,@configdirs@,$configdirs,;t t
13285s,@target_configargs@,$target_configargs,;t t
1576798e
PB
13286s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13287s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 13288s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
13289s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13290s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13291s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13292s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13293s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13294s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13295s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13296s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13297s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13298s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13299s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13300s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
13301s,@config_shell@,$config_shell,;t t
13302s,@YACC@,$YACC,;t t
13303s,@BISON@,$BISON,;t t
13304s,@M4@,$M4,;t t
13305s,@LEX@,$LEX,;t t
13306s,@FLEX@,$FLEX,;t t
13307s,@MAKEINFO@,$MAKEINFO,;t t
13308s,@EXPECT@,$EXPECT,;t t
13309s,@RUNTEST@,$RUNTEST,;t t
13310s,@AR@,$AR,;t t
13311s,@AS@,$AS,;t t
13312s,@DLLTOOL@,$DLLTOOL,;t t
13313s,@LD@,$LD,;t t
13314s,@LIPO@,$LIPO,;t t
13315s,@NM@,$NM,;t t
13316s,@RANLIB@,$RANLIB,;t t
13317s,@STRIP@,$STRIP,;t t
13318s,@WINDRES@,$WINDRES,;t t
0c24b341 13319s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13320s,@OBJCOPY@,$OBJCOPY,;t t
13321s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13322s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13323s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13324s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13325s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13326s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13327s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13328s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13329s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13330s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13331s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13332s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13333s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13334s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13335s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13336s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13337s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13338s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13339s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13340s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13341s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13342s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13343s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13344s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13345s,@MAINT@,$MAINT,;t t
13346s,@stage1_cflags@,$stage1_cflags,;t t
13347s,@stage1_checking@,$stage1_checking,;t t
13348s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13349s,@datarootdir@,$datarootdir,;t t
13350s,@docdir@,$docdir,;t t
a3ca38d2 13351s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13352s,@htmldir@,$htmldir,;t t
13353s,@LIBOBJS@,$LIBOBJS,;t t
13354s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13355/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13356s,@serialization_dependencies@,,;t t
a0da8069 13357/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13358s,@host_makefile_frag@,,;t t
a0da8069 13359/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13360s,@target_makefile_frag@,,;t t
a0da8069 13361/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13362s,@alphaieee_frag@,,;t t
a0da8069 13363/@ospace_frag@/r $ospace_frag
c6b750e1 13364s,@ospace_frag@,,;t t
a0da8069 13365CEOF
252b5132 13366
c6b750e1
DJ
13367_ACEOF
13368
13369 cat >>$CONFIG_STATUS <<\_ACEOF
13370 # Split the substitutions into bite-sized pieces for seds with
13371 # small command number limits, like on Digital OSF/1 and HP-UX.
13372 ac_max_sed_lines=48
13373 ac_sed_frag=1 # Number of current file.
13374 ac_beg=1 # First line for current file.
13375 ac_end=$ac_max_sed_lines # Line after last line for current file.
13376 ac_more_lines=:
13377 ac_sed_cmds=
13378 while $ac_more_lines; do
13379 if test $ac_beg -gt 1; then
13380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13381 else
13382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13383 fi
13384 if test ! -s $tmp/subs.frag; then
13385 ac_more_lines=false
a0da8069 13386 else
c6b750e1
DJ
13387 # The purpose of the label and of the branching condition is to
13388 # speed up the sed processing (if there are no `@' at all, there
13389 # is no need to browse any of the substitutions).
13390 # These are the two extra sed commands mentioned above.
13391 (echo ':t
13392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13393 if test -z "$ac_sed_cmds"; then
13394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13395 else
13396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13397 fi
13398 ac_sed_frag=`expr $ac_sed_frag + 1`
13399 ac_beg=$ac_end
13400 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13401 fi
c6b750e1
DJ
13402 done
13403 if test -z "$ac_sed_cmds"; then
13404 ac_sed_cmds=cat
852e5f18 13405 fi
c6b750e1 13406fi # test -n "$CONFIG_FILES"
cac3d6c4 13407
c6b750e1
DJ
13408_ACEOF
13409cat >>$CONFIG_STATUS <<\_ACEOF
13410for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13412 case $ac_file in
13413 - | *:- | *:-:* ) # input from stdin
13414 cat >$tmp/stdin
13415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13419 * ) ac_file_in=$ac_file.in ;;
a0da8069 13420 esac
252b5132 13421
c6b750e1
DJ
13422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13423 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13425 X"$ac_file" : 'X\(//\)[^/]' \| \
13426 X"$ac_file" : 'X\(//\)$' \| \
13427 X"$ac_file" : 'X\(/\)' \| \
13428 . : '\(.\)' 2>/dev/null ||
13429echo X"$ac_file" |
13430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13432 /^X\(\/\/\)$/{ s//\1/; q; }
13433 /^X\(\/\).*/{ s//\1/; q; }
13434 s/.*/./; q'`
13435 { if $as_mkdir_p; then
13436 mkdir -p "$ac_dir"
cac3d6c4 13437 else
c6b750e1
DJ
13438 as_dir="$ac_dir"
13439 as_dirs=
13440 while test ! -d "$as_dir"; do
13441 as_dirs="$as_dir $as_dirs"
13442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13444 X"$as_dir" : 'X\(//\)[^/]' \| \
13445 X"$as_dir" : 'X\(//\)$' \| \
13446 X"$as_dir" : 'X\(/\)' \| \
13447 . : '\(.\)' 2>/dev/null ||
13448echo X"$as_dir" |
13449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13451 /^X\(\/\/\)$/{ s//\1/; q; }
13452 /^X\(\/\).*/{ s//\1/; q; }
13453 s/.*/./; q'`
13454 done
13455 test ! -n "$as_dirs" || mkdir $as_dirs
13456 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13457echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13458 { (exit 1); exit 1; }; }; }
13459
13460 ac_builddir=.
252b5132 13461
c6b750e1
DJ
13462if test "$ac_dir" != .; then
13463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13464 # A "../" for each directory in $ac_dir_suffix.
13465 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13466else
13467 ac_dir_suffix= ac_top_builddir=
13468fi
13469
13470case $srcdir in
13471 .) # No --srcdir option. We are building in place.
13472 ac_srcdir=.
13473 if test -z "$ac_top_builddir"; then
13474 ac_top_srcdir=.
13475 else
13476 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13477 fi ;;
13478 [\\/]* | ?:[\\/]* ) # Absolute path.
13479 ac_srcdir=$srcdir$ac_dir_suffix;
13480 ac_top_srcdir=$srcdir ;;
a0da8069 13481 *) # Relative path.
c6b750e1
DJ
13482 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13483 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13484esac
252b5132 13485
c6b750e1
DJ
13486# Do not use `cd foo && pwd` to compute absolute paths, because
13487# the directories may not exist.
13488case `pwd` in
13489.) ac_abs_builddir="$ac_dir";;
13490*)
13491 case "$ac_dir" in
13492 .) ac_abs_builddir=`pwd`;;
13493 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13494 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13495 esac;;
13496esac
13497case $ac_abs_builddir in
13498.) ac_abs_top_builddir=${ac_top_builddir}.;;
13499*)
13500 case ${ac_top_builddir}. in
13501 .) ac_abs_top_builddir=$ac_abs_builddir;;
13502 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13503 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13504 esac;;
13505esac
13506case $ac_abs_builddir in
13507.) ac_abs_srcdir=$ac_srcdir;;
13508*)
13509 case $ac_srcdir in
13510 .) ac_abs_srcdir=$ac_abs_builddir;;
13511 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13512 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13513 esac;;
13514esac
13515case $ac_abs_builddir in
13516.) ac_abs_top_srcdir=$ac_top_srcdir;;
13517*)
13518 case $ac_top_srcdir in
13519 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13520 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13521 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13522 esac;;
13523esac
252b5132 13524
c6b750e1
DJ
13525
13526 case $INSTALL in
13527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13528 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13529 esac
252b5132 13530
c6b750e1
DJ
13531 if test x"$ac_file" != x-; then
13532 { echo "$as_me:$LINENO: creating $ac_file" >&5
13533echo "$as_me: creating $ac_file" >&6;}
13534 rm -f "$ac_file"
13535 fi
13536 # Let's still pretend it is `configure' which instantiates (i.e., don't
13537 # use $as_me), people would be surprised to read:
13538 # /* config.h. Generated by config.status. */
13539 if test x"$ac_file" = x-; then
13540 configure_input=
13541 else
13542 configure_input="$ac_file. "
13543 fi
13544 configure_input=$configure_input"Generated from `echo $ac_file_in |
13545 sed 's,.*/,,'` by configure."
13546
13547 # First look for the input files in the build tree, otherwise in the
13548 # src tree.
13549 ac_file_inputs=`IFS=:
13550 for f in $ac_file_in; do
13551 case $f in
13552 -) echo $tmp/stdin ;;
13553 [\\/$]*)
13554 # Absolute (can't be DOS-style, as IFS=:)
13555 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13556echo "$as_me: error: cannot find input file: $f" >&2;}
13557 { (exit 1); exit 1; }; }
13558 echo "$f";;
13559 *) # Relative
13560 if test -f "$f"; then
13561 # Build tree
13562 echo "$f"
13563 elif test -f "$srcdir/$f"; then
13564 # Source tree
13565 echo "$srcdir/$f"
13566 else
13567 # /dev/null tree
13568 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13569echo "$as_me: error: cannot find input file: $f" >&2;}
13570 { (exit 1); exit 1; }; }
13571 fi;;
13572 esac
13573 done` || { (exit 1); exit 1; }
13574_ACEOF
13575cat >>$CONFIG_STATUS <<_ACEOF
13576 sed "$ac_vpsub
13577$extrasub
13578_ACEOF
13579cat >>$CONFIG_STATUS <<\_ACEOF
13580:t
13581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13582s,@configure_input@,$configure_input,;t t
13583s,@srcdir@,$ac_srcdir,;t t
13584s,@abs_srcdir@,$ac_abs_srcdir,;t t
13585s,@top_srcdir@,$ac_top_srcdir,;t t
13586s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13587s,@builddir@,$ac_builddir,;t t
13588s,@abs_builddir@,$ac_abs_builddir,;t t
13589s,@top_builddir@,$ac_top_builddir,;t t
13590s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13591s,@INSTALL@,$ac_INSTALL,;t t
13592" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13593 rm -f $tmp/stdin
13594 if test x"$ac_file" != x-; then
13595 mv $tmp/out $ac_file
13596 else
13597 cat $tmp/out
13598 rm -f $tmp/out
13599 fi
c148b4cb 13600
c6b750e1
DJ
13601done
13602_ACEOF
c148b4cb 13603
c6b750e1 13604cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13605
c6b750e1
DJ
13606{ (exit 0); exit 0; }
13607_ACEOF
c148b4cb 13608chmod +x $CONFIG_STATUS
c6b750e1
DJ
13609ac_clean_files=$ac_clean_files_save
13610
13611
13612# configure is writing to config.log, and then calls config.status.
13613# config.status does its own redirection, appending to config.log.
13614# Unfortunately, on DOS this fails, as config.log is still kept open
13615# by configure, so config.status won't be able to write to it; its
13616# output is simply discarded. So we exec the FD to /dev/null,
13617# effectively closing config.log, so it can be properly (re)opened and
13618# appended to by config.status. When coming back to configure, we
13619# need to make the FD available again.
13620if test "$no_create" != yes; then
13621 ac_cs_success=:
13622 ac_config_status_args=
13623 test "$silent" = yes &&
13624 ac_config_status_args="$ac_config_status_args --quiet"
13625 exec 5>/dev/null
13626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13627 exec 5>>config.log
13628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13629 # would make configure fail if this is the last instruction.
13630 $ac_cs_success || { (exit 1); exit 1; }
13631fi
c148b4cb 13632