]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Fix comment.
[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#
c6b750e1 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"
8a6ee3ab 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 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 TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD 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'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
880_ACEOF
881
882 cat <<_ACEOF
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
a0da8069 923fi
a0da8069 924
c6b750e1
DJ
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521ec477
DD
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 935 stage1. Mostly useful for compiler development.
521ec477
DD
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
c6b750e1 941 sub-packages for the host, target or build
521ec477 942 machine, or all sub-packages
c6b750e1
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
521ec477
DD
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
c6b750e1
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
521ec477
DD
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
521ec477
DD
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
c6b750e1 967 use sysroot as the system root during the build
8a6ee3ab
JM
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
521ec477 970 --with-build-time-tools=PATH
c6b750e1 971 use given path to find target tools during the build
521ec477
DD
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
c6b750e1
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
18f6b6ee
PB
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
9a819804
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
0c24b341 995 WINDMC WINDMC for the host
9a819804
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
0c24b341
NC
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
c6b750e1
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1043
1044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1051
1052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1105esac
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1121 fi
1122 cd $ac_popdir
1123 done
1124fi
1125
1126test -n "$ac_init_help" && exit 0
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
1130Copyright (C) 2003 Free Software Foundation, Inc.
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
1134 exit 0
1135fi
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
1142generated by GNU Autoconf 2.59. Invocation command line was
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
1200ac_sep=
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
1260{
1261 (set) 2>&1 |
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1264 sed -n \
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1268 *)
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1271 ;;
1272 esac;
1273}
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
1311 sed "/^$/d" confdefs.h | sort
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1320 exit $exit_status
1321 ' 0
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
a0da8069 1360# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1366 fi
1367fi
1368for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
c6b750e1
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
c6b750e1
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1386 esac
1387 fi
a0da8069 1388else
c6b750e1
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
a0da8069
NN
1443fi
1444
1445ac_ext=c
a0da8069 1446ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
a0da8069
NN
1463
1464
75778ec4 1465
c6b750e1
DJ
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
a0da8069 1472ac_aux_dir=
315b3b02 1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
c6b750e1
DJ
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
a0da8069
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
a0da8069 1492fi
c6b750e1
DJ
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1496
c6b750e1
DJ
1497# Make sure we can run config.sub.
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520fi
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1523build=$ac_cv_build
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1527
a0da8069 1528
c6b750e1
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1532esac
1533
1534
cac3d6c4 1535
c6b750e1
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1539esac
1540
cac3d6c4 1541
c6b750e1
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1546esac
1547
cac3d6c4 1548
c6b750e1
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
c6b750e1 1554 program_transform_name=s,y,y,
cac3d6c4 1555
c6b750e1
DJ
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1560else
c6b750e1
DJ
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1572host=$ac_cv_host
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
cac3d6c4 1591fi
c6b750e1
DJ
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1594target=$ac_cv_target
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
a0da8069 1606test "$program_prefix" != NONE &&
c6b750e1 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
c6b750e1
DJ
1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1617rm conftest.sed
cac3d6c4 1618
a0da8069
NN
1619
1620
e5c3f801
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
c6b750e1 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1633# OS/2's system install, which has a completely different semantic
e5c3f801 1634# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1637if test -z "$INSTALL"; then
c6b750e1
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1659 if test $ac_prog = install &&
c6b750e1 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
c6b750e1
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
e5c3f801 1667 else
c6b750e1
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
e5c3f801
NN
1670 fi
1671 fi
1672 done
c6b750e1
DJ
1673 done
1674 ;;
1675esac
1676done
1677
e5c3f801
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1681 INSTALL=$ac_cv_path_install
e5c3f801
NN
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
c6b750e1 1687 INSTALL=$ac_install_sh
e5c3f801
NN
1688 fi
1689fi
c6b750e1
DJ
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
c6b750e1 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
c6b750e1
DJ
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
c6b750e1
DJ
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1721else
1722 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
656fdd47
PB
1725fi
1726
c6b750e1
DJ
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
cac3d6c4 1733else
c6b750e1
DJ
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1736fi
1737
e5c3f801 1738
252b5132 1739### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
a0da8069
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
252b5132
RH
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
a0da8069 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1776
92f01d61
JM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
a4708fba
JM
1781for ac_arg
1782do
92f01d61 1783 case "$ac_arg" in
ffa8bd48 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
2444379b
BE
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
92f01d61
JM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1799
75205f78 1800
a0da8069 1801moveifchange=${srcdir}/move-if-change
252b5132 1802
0fdbe983
DJ
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
a0da8069
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
a0da8069
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
252b5132
RH
1816fi
1817
a0da8069 1818topsrcdir=$srcpwd
252b5132 1819
a0da8069 1820extra_host_args=
afefada0 1821
a0da8069
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
252b5132 1825
c6b750e1 1826# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1827# configdirs, or target_configdirs; see the serialization section below.
252b5132 1828
c6b750e1
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
a0da8069 1831# the Makefile, whether or not it's implicitly specified here.
252b5132 1832
a0da8069
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
252b5132 1835
6a9cf61e
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
ee025550 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1843
a0da8069
NN
1844# these libraries are used by various programs built for the host environment
1845#
4b900473 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1847
a0da8069
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
b00612cc 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
a0da8069
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
b1299c4e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
a0da8069
NN
1866 target-libgloss \
1867 target-newlib \
b9459e83 1868 target-libstdc++-v3 \
4b1cb4fe 1869 target-libmudflap \
bb780410 1870 target-libssp \
4b1cb4fe 1871 target-libgfortran \
4f0ef2d8 1872 target-boehm-gc \
83326456 1873 ${libgcj} \
a2592b1b 1874 target-libobjc \
b3ded179
PB
1875 target-libada \
1876 target-libgomp"
a0da8069 1877
9c14acb8
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
a0da8069 1880#
9c14acb8 1881# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
a3dd767d 1885target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1886
a0da8069 1887################################################################################
252b5132 1888
a0da8069
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
a0da8069 1894configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1896build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1897
a0da8069 1898################################################################################
252b5132 1899
a0da8069 1900srcname="gnu development package"
252b5132 1901
a0da8069
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
252b5132 1904
a0da8069
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
252b5132 1909else
a0da8069 1910 is_cross_compiler=yes
c6b750e1 1911fi
252b5132 1912
9175bfc0 1913# Find the build and target subdir names.
dd12c3a8 1914
66a79c16
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1925build_subdir="build-${build_noncanonical}"
c6b750e1 1926
66a79c16
DJ
1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1928if test "${with_build_libsubdir+set}" = set; then
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
1931else
1932 build_libsubdir="$build_subdir"
c6b750e1 1933fi;
b00612cc
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
dd12c3a8
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
c6b750e1 1943
252b5132 1944
a0da8069
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
252b5132 1949
a0da8069
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1955fi
1956
a0da8069
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1962fi
1963
c6b750e1 1964# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1965# it's not even worth trying to configure, much less build, that tool.
252b5132 1966
a0da8069
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
675c6968 1970 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1971 # We won't be able to build gdbtk without X.
c6b750e1 1972 enable_gdbtk=no
a0da8069
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
252b5132 1976
a0da8069 1977# Some tools are only suitable for building in a "native" situation.
c6b750e1 1978# Remove these if host!=target.
701628f5 1979native_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 1980
a0da8069
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
252b5132 1989
a0da8069
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
32be62b5
RS
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
252b5132
RH
1997fi
1998
a0da8069
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
252b5132 2004
a0da8069 2005# Configure extra directories which are host specific
252b5132 2006
a0da8069
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
252b5132 2011
59f7ec45
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
c6b750e1 2016# Remove more programs from consideration, based on the host or
a0da8069
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
252b5132 2019
a0da8069
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
ec11bdc6 2024 i[3456789]86-*-vsta)
675c6968 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2026 ;;
ec11bdc6 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2029 ;;
2d1e8239
NC
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
ec11bdc6 2033 i[3456789]86-*-mingw32*)
675c6968 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2036 ;;
ec11bdc6 2037 i[3456789]86-*-beos*)
675c6968 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2039 ;;
a0da8069 2040 *-*-cygwin*)
a92834c8 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2042 ;;
2043 *-*-netbsd*)
a92834c8 2044 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2045 ;;
2046 ppc*-*-pe)
675c6968 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2048 ;;
2049 powerpc-*-beos*)
675c6968 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2051 ;;
a0da8069 2052esac
252b5132 2053
4b1cb4fe 2054
a2592b1b
DD
2055# Check whether --enable-libada or --disable-libada was given.
2056if test "${enable_libada+set}" = set; then
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
2059else
2060 ENABLE_LIBADA=yes
c6b750e1 2061fi;
a2592b1b 2062if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2063 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2064fi
2065
5f128533
KH
2066# Check whether --enable-libssp or --disable-libssp was given.
2067if test "${enable_libssp+set}" = set; then
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
2070else
2071 ENABLE_LIBSSP=yes
c6b750e1 2072fi;
5f128533 2073
a0da8069
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
252b5132 2089
4b1cb4fe 2090
a6df5a19
PB
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
3e707e94 2093 case "${target}" in
0ebe98fb 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2095 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2096 ;;
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
a6df5a19 2105fi
4b1cb4fe 2106
a6df5a19
PB
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
b3ded179
PB
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
64ce424c 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2116 ;;
2117 *-*-darwin* | *-*-aix*)
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
a6df5a19 2123fi
b3ded179 2124
691bb5a1
DD
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
4b1cb4fe 2127
a0da8069
NN
2128case "${target}" in
2129 *-*-chorusos)
54d1c879 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2131 ;;
790c0838 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2134 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2135 ;;
04d1ab34 2136 *-*-darwin*)
d320aacb 2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2138 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2139 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2140 ;;
a0da8069 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2143 ;;
de0b4a87 2144 *-*-freebsd*)
4b1cb4fe
DD
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
54d1c879 2156 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2157 ;;
2158 esac
2159 ;;
f8a495c8
NC
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
a0da8069
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
5b474aa8 2174 arm*-*-netbsdelf*) ;;
a0da8069 2175 *)
54d1c879 2176 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2177 ;;
2178 esac
2179 ;;
2a3124ca 2180 *-*-netware*)
54d1c879 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2182 ;;
2183 *-*-rtems*)
54d1c879 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2185 ;;
1587117a
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
54d1c879 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2189 ;;
c1968181 2190 *-*-uclinux*)
54d1c879 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2192 ;;
a0da8069 2193 *-*-vxworks*)
54d1c879 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
54d1c879 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
a0da8069
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
54d1c879 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2212 ;;
4a18bd6b 2213 am33_2.0-*-linux*)
54d1c879 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2215 ;;
a0da8069 2216 sh-*-linux*)
54d1c879 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2218 ;;
a0da8069 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2220 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2230 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2231 ;;
2232 esac
691bb5a1 2233 libgloss_dir=wince
a0da8069
NN
2234 ;;
2235 arc-*-*)
54d1c879 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2237 ;;
caeba88f 2238 arm-semi-aof )
caeba88f 2239 ;;
a0da8069 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2241 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2242 libgloss_dir=arm
a0da8069 2243 ;;
11b04d1f 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2246 libgloss_dir=arm
a0da8069 2247 ;;
bd70a46f 2248 arm*-*-linux-gnueabi)
6d18b86b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
691bb5a1 2254 libgloss_dir=arm
bd70a46f 2255 ;;
df4a6958 2256 arm*-*-symbianelf*)
54d1c879 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2258 libgloss_dir=arm
df4a6958 2259 ;;
a0da8069 2260 arm-*-pe*)
54d1c879 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2262 ;;
a0da8069 2263 thumb-*-coff)
54d1c879 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2265 ;;
2266 thumb-*-elf)
54d1c879 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2268 ;;
a0da8069 2269 thumb-*-pe)
54d1c879 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2271 ;;
2272 arm-*-riscix*)
54d1c879 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2274 ;;
2275 avr-*-*)
54d1c879 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2277 ;;
376a0e54 2278 bfin-*-*)
00d89675 2279 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2280 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
a0da8069 2284 c4x-*-* | tic4x-*-*)
54d1c879 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
54d1c879 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2289 ;;
c7e66c6d 2290 cris-*-* | crisv32-*-*)
59f7ec45 2291 unsupported_languages="$unsupported_languages java"
c7e66c6d 2292 case "${target}" in
2faa2958 2293 *-*-aout)
096f7d00 2294 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2296 *-*-elf)
096f7d00 2297 unsupported_languages="$unsupported_languages fortran"
5e818318 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2299 *-*-linux*)
5e818318 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2301 *)
096f7d00 2302 unsupported_languages="$unsupported_languages fortran"
54d1c879 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2304 esac
691bb5a1 2305 libgloss_dir=cris
a0da8069 2306 ;;
3e707e94 2307 crx-*-*)
54d1c879 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2309 ;;
a0da8069 2310 d10v-*-*)
54d1c879 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2312 ;;
2313 d30v-*-*)
54d1c879 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2315 ;;
691bb5a1
DD
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
a0da8069 2319 fr30-*-elf*)
54d1c879 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2321 ;;
2322 frv-*-*)
54d1c879 2323 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2324 ;;
2325 h8300*-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2327 ;;
2328 h8500-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2330 ;;
caeba88f 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2332 ;;
a0da8069
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
5dcac624
DA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
a0da8069 2341 hppa*-*-*elf* | \
a0da8069
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2346 ;;
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2349 ;;
691bb5a1
DD
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
a0da8069
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
54d1c879 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2357 ;;
b07c2aad 2358 i960-*-*)
54d1c879 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2360 ;;
a0da8069
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
675c6968 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
54d1c879 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2368 ;;
caeba88f 2369 i370-*-opened*)
caeba88f 2370 ;;
ec11bdc6 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2373 libgloss_dir=i386
a0da8069 2374 ;;
ec11bdc6 2375 i[3456789]86-*-linux*)
a0da8069
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
54d1c879 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
bba45b8b 2386 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
ec11bdc6 2394 i[3456789]86-*-mingw32*)
45055374
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2397 ;;
2d1e8239
NC
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2401 ;;
a0da8069
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2405 # always build newlib if winsup directory is present.
45055374 2406 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2408 elif test -d "$srcdir/newlib"; then
45055374 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2410 fi
c6b750e1 2411 ;;
caeba88f
AL
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2414 ;;
ec11bdc6 2415 i[3456789]86-*-pe)
54d1c879 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2417 ;;
ec11bdc6 2418 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
54d1c879 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2422 ;;
ec11bdc6 2423 i[3456789]86-*-sco*)
54d1c879 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2425 ;;
ec11bdc6 2426 i[3456789]86-*-solaris2*)
a0da8069
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
ec11bdc6 2429 i[3456789]86-*-sysv4*)
54d1c879 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2431 ;;
ec11bdc6 2432 i[3456789]86-*-beos*)
54d1c879 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2434 ;;
b59bea8a 2435 i[3456789]86-*-rdos*)
2429c060
PB
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
b07c2aad 2438 m32r-*-*)
54d1c879 2439 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2440 ;;
a0da8069 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2443 libgloss_dir=m68hc11
a0da8069
NN
2444 ;;
2445 m68k-*-elf*)
54d1c879 2446 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2447 ;;
2448 m68k-*-coff*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2450 ;;
691bb5a1
DD
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
a0da8069
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
59f7ec45 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2461 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2462 ;;
2463 mn10200-*-*)
54d1c879 2464 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2465 ;;
2466 mn10300-*-*)
54d1c879 2467 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2468 ;;
4970f871 2469 mt-*-*)
cdb9b172
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
a0da8069
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
54d1c879 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
54d1c879 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
54d1c879 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2485 libgloss_dir=rs6000
a0da8069
NN
2486 ;;
2487 powerpc-*-beos*)
54d1c879 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2489 ;;
a0da8069 2490 powerpc-*-eabi)
54d1c879 2491 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2492 libgloss_dir=rs6000
caeba88f
AL
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2495 libgloss_dir=rs6000
a0da8069 2496 ;;
a0da8069 2497 rs6000-*-lynxos*)
54d1c879 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2499 ;;
2500 rs6000-*-aix*)
54d1c879 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2502 ;;
2503 rs6000-*-*)
54d1c879 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2505 ;;
2506 m68k-apollo-*)
54d1c879 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2508 ;;
5bd8be13
RS
2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
a0da8069 2517 mips*-*-irix5*)
54d1c879 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2519 ;;
2520 mips*-*-irix6*)
a0da8069
NN
2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
54d1c879 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2526 ;;
a0da8069 2527 mips*-*-bsd*)
54d1c879 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2529 ;;
a0da8069
NN
2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
54d1c879 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2535 libgloss_dir=mips
a0da8069
NN
2536 ;;
2537 romp-*-*)
54d1c879 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2539 ;;
dbf85af7 2540 sh-*-* | sh64-*-*)
a0da8069 2541 case "${host}" in
ec11bdc6
DD
2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
54d1c879 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2548 ;;
691bb5a1
DD
2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
a0da8069 2552 sparc-*-elf*)
54d1c879 2553 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2554 ;;
2555 sparc64-*-elf*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2557 libgloss_dir=sparc
a0da8069
NN
2558 ;;
2559 sparclite-*-*)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2561 libgloss_dir=sparc
a0da8069
NN
2562 ;;
2563 sparc-*-sunos4*)
54d1c879 2564 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
e3c770b1 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2572 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2573 ;;
a0da8069
NN
2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
2839fe5d
BE
2576 spu-*-*)
2577 skipdirs="target-libssp"
2578 ;;
a0da8069 2579 v810-*-*)
54d1c879 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2581 ;;
2582 v850-*-*)
54d1c879 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2584 ;;
2585 v850e-*-*)
54d1c879 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2587 ;;
2588 v850ea-*-*)
54d1c879 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2590 ;;
2591 vax-*-vms)
54d1c879 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2593 ;;
2594 vax-*-*)
54d1c879 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2596 ;;
fbd1054d 2597 xtensa-*-*)
54d1c879 2598 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2599 ;;
a0da8069 2600 ip2k-*-*)
54d1c879 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2602 ;;
de0b4a87 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
54d1c879 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2608 ;;
a0da8069 2609 *-*-*)
54d1c879 2610 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2611 ;;
2612esac
252b5132 2613
a0da8069
NN
2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
a0da8069
NN
2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
ec11bdc6 2692 i[3456789]86-*-sysv5*)
a0da8069
NN
2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
ec11bdc6 2695 i[3456789]86-*-dgux*)
a0da8069
NN
2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
ec11bdc6 2699 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
ec11bdc6 2704 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
ec11bdc6 2713 i[3456789]86-*-sco3.2v5*)
a0da8069 2714 ;;
ec11bdc6 2715 i[3456789]86-*-sco*)
a0da8069
NN
2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
ec11bdc6 2721 i[3456789]86-*-udk*)
a0da8069
NN
2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
ec11bdc6 2724 i[3456789]86-*-solaris2*)
a0da8069
NN
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
ec11bdc6 2727 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
84e7906e 2734 host_makefile_frag="config/mh-mingw"
a0da8069 2735 ;;
2d1e8239 2736 *-mingw64*)
84e7906e 2737 host_makefile_frag="config/mh-mingw"
2d1e8239 2738 ;;
a0da8069
NN
2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
0df3d27f
PB
2765 powerpc-*-darwin*)
2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
f6d183c0
PB
2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
a0da8069
NN
2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
fe69863c
DD
2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
a0da8069
NN
2786esac
2787fi
2788
9e07f89d
NN
2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
9e07f89d 2809 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2810else
512b7dfb 2811 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2812fi
2813
2814ac_ext=c
c6b750e1
DJ
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}gcc; ac_word=$2
2822echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842done
2843
2844fi
2845fi
2846CC=$ac_cv_prog_CC
2847if test -n "$CC"; then
2848 echo "$as_me:$LINENO: result: $CC" >&5
2849echo "${ECHO_T}$CC" >&6
2850else
2851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853fi
2854
2855fi
2856if test -z "$ac_cv_prog_CC"; then
2857 ac_ct_CC=$CC
6a9cf61e 2858 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2859set dummy gcc; ac_word=$2
c6b750e1
DJ
2860echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_CC="gcc"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879done
2880done
2881
2882fi
2883fi
2884ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885if test -n "$ac_ct_CC"; then
2886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887echo "${ECHO_T}$ac_ct_CC" >&6
2888else
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891fi
2892
2893 CC=$ac_ct_CC
2894else
2895 CC="$ac_cv_prog_CC"
2896fi
2897
2898if test -z "$CC"; then
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2901set dummy ${ac_tool_prefix}cc; ac_word=$2
2902echo "$as_me:$LINENO: checking for $ac_word" >&5
2903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2906else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909else
c6b750e1
DJ
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_CC="${ac_tool_prefix}cc"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921done
2922done
2923
9e07f89d
NN
2924fi
2925fi
c6b750e1 2926CC=$ac_cv_prog_CC
9e07f89d 2927if test -n "$CC"; then
c6b750e1
DJ
2928 echo "$as_me:$LINENO: result: $CC" >&5
2929echo "${ECHO_T}$CC" >&6
9e07f89d 2930else
c6b750e1
DJ
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
9e07f89d
NN
2933fi
2934
c6b750e1
DJ
2935fi
2936if test -z "$ac_cv_prog_CC"; then
2937 ac_ct_CC=$CC
2938 # Extract the first word of "cc", so it can be a program name with args.
2939set dummy cc; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_CC="cc"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969 echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973 CC=$ac_ct_CC
2974else
2975 CC="$ac_cv_prog_CC"
2976fi
2977
2978fi
9e07f89d
NN
2979if test -z "$CC"; then
2980 # Extract the first word of "cc", so it can be a program name with args.
2981set dummy cc; ac_word=$2
c6b750e1
DJ
2982echo "$as_me:$LINENO: checking for $ac_word" >&5
2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2986else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
9e07f89d 2990 ac_prog_rejected=no
c6b750e1
DJ
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2999 ac_prog_rejected=yes
3000 continue
3001 fi
3002 ac_cv_prog_CC="cc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006done
3007done
3008
9e07f89d
NN
3009if test $ac_prog_rejected = yes; then
3010 # We found a bogon in the path, so make sure we never use it.
3011 set dummy $ac_cv_prog_CC
3012 shift
c6b750e1 3013 if test $# != 0; then
9e07f89d
NN
3014 # We chose a different compiler from the bogus one.
3015 # However, it has the same basename, so the bogon will be chosen
3016 # first if we set CC to just the basename; use the full file name.
3017 shift
c6b750e1 3018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3019 fi
3020fi
3021fi
3022fi
c6b750e1 3023CC=$ac_cv_prog_CC
9e07f89d 3024if test -n "$CC"; then
c6b750e1
DJ
3025 echo "$as_me:$LINENO: result: $CC" >&5
3026echo "${ECHO_T}$CC" >&6
9e07f89d 3027else
c6b750e1
DJ
3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
9e07f89d
NN
3030fi
3031
c6b750e1
DJ
3032fi
3033if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog in cl
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039echo "$as_me:$LINENO: checking for $ac_word" >&5
3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
c6b750e1
DJ
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
376a0e54 3057 fi
c6b750e1
DJ
3058done
3059done
cac3d6c4 3060
c6b750e1
DJ
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065 echo "$as_me:$LINENO: result: $CC" >&5
3066echo "${ECHO_T}$CC" >&6
cac3d6c4 3067else
c6b750e1
DJ
3068 echo "$as_me:$LINENO: result: no" >&5
3069echo "${ECHO_T}no" >&6
9e07f89d 3070fi
cac3d6c4 3071
c6b750e1
DJ
3072 test -n "$CC" && break
3073 done
cac3d6c4 3074fi
c6b750e1
DJ
3075if test -z "$CC"; then
3076 ac_ct_CC=$CC
3077 for ac_prog in cl
3078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3085else
c6b750e1
DJ
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3088else
c6b750e1
DJ
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_ac_ct_CC="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
cac3d6c4
CM
3103fi
3104fi
c6b750e1
DJ
3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
3107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3108echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3109else
c6b750e1
DJ
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
cac3d6c4 3112fi
376a0e54 3113
c6b750e1
DJ
3114 test -n "$ac_ct_CC" && break
3115done
3116
3117 CC=$ac_ct_CC
3118fi
3119
3120fi
3121
3122
3123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124See \`config.log' for more details." >&5
3125echo "$as_me: error: no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3128
3129# Provide some information about the compiler.
3130echo "$as_me:$LINENO:" \
3131 "checking for C compiler version" >&5
3132ac_compiler=`set X $ac_compile; echo $2`
3133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3134 (eval $ac_compiler --version </dev/null >&5) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3139 (eval $ac_compiler -v </dev/null >&5) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3144 (eval $ac_compiler -V </dev/null >&5) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148
3149cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
3165ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
3169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3173 (eval $ac_link_default) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; then
3177 # Find the output, starting from the most likely. This scheme is
3178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3179# resort.
3180
3181# Be careful to initialize this variable, since it used to be cached.
3182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3183ac_cv_exeext=
3184# b.out is created by i960 compilers.
3185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3186do
3187 test -f "$ac_file" || continue
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3190 ;;
3191 conftest.$ac_ext )
3192 # This is the source file.
3193 ;;
3194 [ab].out )
3195 # We found the default executable, but exeext='' is most
3196 # certainly right.
3197 break;;
3198 *.* )
3199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 # FIXME: I believe we export ac_cv_exeext for Libtool,
3201 # but it would be cool to find out if it's true. Does anybody
3202 # maintain Libtool? --akim.
3203 export ac_cv_exeext
3204 break;;
3205 * )
3206 break;;
3207 esac
3208done
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3214See \`config.log' for more details." >&5
3215echo "$as_me: error: C compiler cannot create executables
3216See \`config.log' for more details." >&2;}
3217 { (exit 77); exit 77; }; }
3218fi
3219
3220ac_exeext=$ac_cv_exeext
3221echo "$as_me:$LINENO: result: $ac_file" >&5
3222echo "${ECHO_T}$ac_file" >&6
3223
3224# Check the compiler produces executables we can run. If not, either
3225# the compiler is broken, or we cross compile.
3226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3229# If not cross compiling, check that we can run a simple program.
3230if test "$cross_compiling" != yes; then
3231 if { ac_try='./$ac_file'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 cross_compiling=no
3238 else
3239 if test "$cross_compiling" = maybe; then
3240 cross_compiling=yes
3241 else
3242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3243If you meant to cross compile, use \`--host'.
3244See \`config.log' for more details." >&5
3245echo "$as_me: error: cannot run C compiled programs.
3246If you meant to cross compile, use \`--host'.
3247See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250 fi
3251fi
3252echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
3254
3255rm -f a.out a.exe conftest$ac_cv_exeext b.out
3256ac_clean_files=$ac_clean_files_save
3257# Check the compiler produces executables we can run. If not, either
3258# the compiler is broken, or we cross compile.
3259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3261echo "$as_me:$LINENO: result: $cross_compiling" >&5
3262echo "${ECHO_T}$cross_compiling" >&6
3263
3264echo "$as_me:$LINENO: checking for suffix of executables" >&5
3265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273# work properly (i.e., refer to `conftest.exe'), while it won't with
3274# `rm'.
3275for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 export ac_cv_exeext
3281 break;;
3282 * ) break;;
3283 esac
3284done
3285else
3286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details." >&5
3288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3289See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3291fi
3292
3293rm -f conftest$ac_cv_exeext
3294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3295echo "${ECHO_T}$ac_cv_exeext" >&6
3296
3297rm -f conftest.$ac_ext
3298EXEEXT=$ac_cv_exeext
3299ac_exeext=$EXEEXT
3300echo "$as_me:$LINENO: checking for suffix of object files" >&5
3301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3302if test "${ac_cv_objext+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320rm -f conftest.o conftest.obj
3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
3326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332done
cac3d6c4 3333else
c6b750e1
DJ
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338See \`config.log' for more details." >&5
3339echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3342fi
3343
3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345fi
3346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347echo "${ECHO_T}$ac_cv_objext" >&6
3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
3350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3352if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
3368
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_compiler_gnu=yes
3396else
3397 echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400ac_compiler_gnu=no
3401fi
3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405fi
3406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3408GCC=`test $ac_compiler_gnu = yes && echo yes`
3409ac_test_CFLAGS=${CFLAGS+set}
3410ac_save_CFLAGS=$CFLAGS
3411CFLAGS="-g"
3412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3414if test "${ac_cv_prog_cc_g+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417 cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
9e07f89d
NN
3454 ac_cv_prog_cc_g=yes
3455else
c6b750e1
DJ
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3458
c6b750e1 3459ac_cv_prog_cc_g=no
376a0e54 3460fi
c6b750e1
DJ
3461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3465if test "$ac_test_CFLAGS" = set; then
c6b750e1 3466 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3467elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3472 fi
3473else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3478 fi
3479fi
c6b750e1
DJ
3480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3482if test "${ac_cv_prog_cc_stdc+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485 ac_cv_prog_cc_stdc=no
3486ac_save_CC=$CC
3487cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493#include <stdarg.h>
3494#include <stdio.h>
3495#include <sys/types.h>
3496#include <sys/stat.h>
3497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3498struct buf { int x; };
3499FILE * (*rcsopen) (struct buf *, struct stat *, int);
3500static char *e (p, i)
3501 char **p;
3502 int i;
3503{
3504 return p[i];
3505}
3506static char *f (char * (*g) (char **, int), char **p, ...)
3507{
3508 char *s;
3509 va_list v;
3510 va_start (v,p);
3511 s = g (p, va_arg (v,int));
3512 va_end (v);
3513 return s;
3514}
3515
3516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3517 function prototypes and stuff, but not '\xHH' hex character constants.
3518 These don't provoke an error unfortunately, instead are silently treated
3519 as 'x'. The following induces an error, until -std1 is added to get
3520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3521 array size at least. It's necessary to write '\x00'==0 to get something
3522 that's true only with -std1. */
3523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3524
3525int test (int i, double x);
3526struct s1 {int (*f) (int a);};
3527struct s2 {int (*f) (double a);};
3528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529int argc;
3530char **argv;
3531int
3532main ()
3533{
3534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3535 ;
3536 return 0;
3537}
3538_ACEOF
3539# Don't try gcc -ansi; that turns off useful extensions and
3540# breaks some systems' header files.
3541# AIX -qlanglvl=ansi
3542# Ultrix and OSF/1 -std1
3543# HP-UX 10.20 and later -Ae
3544# HP-UX older versions -Aa -D_HPUX_SOURCE
3545# SVR4 -Xc -D__EXTENSIONS__
3546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3547do
3548 CC="$ac_save_CC $ac_arg"
3549 rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 ac_cv_prog_cc_stdc=$ac_arg
3572break
3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577fi
3578rm -f conftest.err conftest.$ac_objext
3579done
3580rm -f conftest.$ac_ext conftest.$ac_objext
3581CC=$ac_save_CC
3582
3583fi
3584
3585case "x$ac_cv_prog_cc_stdc" in
3586 x|xno)
3587 echo "$as_me:$LINENO: result: none needed" >&5
3588echo "${ECHO_T}none needed" >&6 ;;
3589 *)
3590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3592 CC="$CC $ac_cv_prog_cc_stdc" ;;
3593esac
3594
3595# Some people use a C++ compiler to compile C. Since we use `exit',
3596# in C++ we need to declare it. In case someone uses the same compiler
3597# for both compiling C and C++ we need to have the C++ compiler decide
3598# the declaration of exit, since it's the most demanding environment.
3599cat >conftest.$ac_ext <<_ACEOF
3600#ifndef __cplusplus
3601 choke me
3602#endif
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 for ac_declaration in \
3627 '' \
3628 'extern "C" void std::exit (int) throw (); using std::exit;' \
3629 'extern "C" void std::exit (int); using std::exit;' \
3630 'extern "C" void exit (int) throw ();' \
3631 'extern "C" void exit (int);' \
3632 'void exit (int);'
3633do
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640$ac_declaration
3641#include <stdlib.h>
3642int
3643main ()
3644{
3645exit (42);
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 :
3673else
3674 echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677continue
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680 cat >conftest.$ac_ext <<_ACEOF
3681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
3686$ac_declaration
3687int
3688main ()
3689{
3690exit (42);
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 break
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
3723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3724done
3725rm -f conftest*
3726if test -n "$ac_declaration"; then
3727 echo '#ifdef __cplusplus' >>confdefs.h
3728 echo $ac_declaration >>confdefs.h
3729 echo '#endif' >>confdefs.h
3730fi
3731
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736fi
3737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3743
18f6b6ee
PB
3744ac_ext=cc
3745ac_cpp='$CXXCPP $CPPFLAGS'
3746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3749if test -n "$ac_tool_prefix"; then
3750 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3751 do
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754echo "$as_me:$LINENO: checking for $ac_word" >&5
3755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756if test "${ac_cv_prog_CXX+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 if test -n "$CXX"; then
3760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773done
3774done
512b7dfb 3775
18f6b6ee
PB
3776fi
3777fi
3778CXX=$ac_cv_prog_CXX
3779if test -n "$CXX"; then
3780 echo "$as_me:$LINENO: result: $CXX" >&5
3781echo "${ECHO_T}$CXX" >&6
3782else
3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
3785fi
3786
3787 test -n "$CXX" && break
3788 done
3789fi
3790if test -z "$CXX"; then
3791 ac_ct_CXX=$CXX
3792 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3793do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 if test -n "$ac_ct_CXX"; then
3802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_CXX="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
512b7dfb 3814 fi
18f6b6ee
PB
3815done
3816done
512b7dfb 3817
18f6b6ee
PB
3818fi
3819fi
3820ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821if test -n "$ac_ct_CXX"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3823echo "${ECHO_T}$ac_ct_CXX" >&6
3824else
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
3827fi
3828
3829 test -n "$ac_ct_CXX" && break
3830done
3831test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3832
3833 CXX=$ac_ct_CXX
3834fi
3835
3836
3837# Provide some information about the compiler.
3838echo "$as_me:$LINENO:" \
3839 "checking for C++ compiler version" >&5
3840ac_compiler=`set X $ac_compile; echo $2`
3841{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3842 (eval $ac_compiler --version </dev/null >&5) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
3846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3847 (eval $ac_compiler -v </dev/null >&5) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
3851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3852 (eval $ac_compiler -V </dev/null >&5) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856
3857echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3858echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3859if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
3868
3869int
3870main ()
3871{
3872#ifndef __GNUC__
3873 choke me
3874#endif
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
3880rm -f conftest.$ac_objext
3881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882 (eval $ac_compile) 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_cxx_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_compiler_gnu=yes
3903else
3904 echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907ac_compiler_gnu=no
3908fi
3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3910ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3911
3912fi
3913echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3914echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3915GXX=`test $ac_compiler_gnu = yes && echo yes`
3916ac_test_CXXFLAGS=${CXXFLAGS+set}
3917ac_save_CXXFLAGS=$CXXFLAGS
3918CXXFLAGS="-g"
3919echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3920echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3921if test "${ac_cv_prog_cxx_g+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930
3931int
3932main ()
3933{
3934
3935 ;
3936 return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext
3940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_cxx_werror_flag"
3949 || test ! -s conftest.err'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; } &&
3955 { ac_try='test -s conftest.$ac_objext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_cv_prog_cxx_g=yes
3962else
3963 echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966ac_cv_prog_cxx_g=no
3967fi
3968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3969fi
3970echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3971echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3972if test "$ac_test_CXXFLAGS" = set; then
3973 CXXFLAGS=$ac_save_CXXFLAGS
3974elif test $ac_cv_prog_cxx_g = yes; then
3975 if test "$GXX" = yes; then
3976 CXXFLAGS="-g -O2"
3977 else
3978 CXXFLAGS="-g"
3979 fi
3980else
3981 if test "$GXX" = yes; then
3982 CXXFLAGS="-O2"
3983 else
3984 CXXFLAGS=
3985 fi
3986fi
3987for ac_declaration in \
3988 '' \
3989 'extern "C" void std::exit (int) throw (); using std::exit;' \
3990 'extern "C" void std::exit (int); using std::exit;' \
3991 'extern "C" void exit (int) throw ();' \
3992 'extern "C" void exit (int);' \
3993 'void exit (int);'
3994do
3995 cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
4001$ac_declaration
4002#include <stdlib.h>
4003int
4004main ()
4005{
4006exit (42);
4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext
4012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_cxx_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 :
4034else
4035 echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
4037
4038continue
4039fi
4040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047$ac_declaration
4048int
4049main ()
4050{
4051exit (42);
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_cxx_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 break
4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083fi
4084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085done
4086rm -f conftest*
4087if test -n "$ac_declaration"; then
4088 echo '#ifdef __cplusplus' >>confdefs.h
4089 echo $ac_declaration >>confdefs.h
4090 echo '#endif' >>confdefs.h
4091fi
4092
4093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099
4100# We must set the default linker to the linker used by gcc for the correct
4101# operation of libtool. If LD is not defined and we are using gcc, try to
4102# set the LD default to the ld used by gcc.
4103if test -z "$LD"; then
4104 if test "$GCC" = yes; then
4105 case $build in
4106 *-*-mingw*)
4107 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4108 *)
4109 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4110 esac
4111 case $gcc_prog_ld in
4112 # Accept absolute paths.
4113 [\\/]* | [A-Za-z]:[\\/]*)
4114 LD="$gcc_prog_ld" ;;
4115 esac
4116 fi
512b7dfb
PB
4117fi
4118
4119
4120
4121
c6b750e1 4122if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4123 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4124set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4125echo "$as_me:$LINENO: checking for $ac_word" >&5
4126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4127if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4128 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4129else
512b7dfb
PB
4130 if test -n "$GNATBIND"; then
4131 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4132else
c6b750e1
DJ
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4140 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
4145done
4146
9e07f89d
NN
4147fi
4148fi
512b7dfb
PB
4149GNATBIND=$ac_cv_prog_GNATBIND
4150if test -n "$GNATBIND"; then
4151 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4152echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4153else
c6b750e1
DJ
4154 echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6
9e07f89d
NN
4156fi
4157
c6b750e1 4158fi
512b7dfb
PB
4159if test -z "$ac_cv_prog_GNATBIND"; then
4160 ac_ct_GNATBIND=$GNATBIND
4161 # Extract the first word of "gnatbind", so it can be a program name with args.
4162set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4163echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4165if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4166 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4167else
512b7dfb
PB
4168 if test -n "$ac_ct_GNATBIND"; then
4169 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4170else
c6b750e1
DJ
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4178 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183done
4184
512b7dfb 4185 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4186fi
4187fi
512b7dfb
PB
4188ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4189if test -n "$ac_ct_GNATBIND"; then
4190 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4191echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4192else
c6b750e1
DJ
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
9e07f89d
NN
4195fi
4196
512b7dfb 4197 GNATBIND=$ac_ct_GNATBIND
24ff9987 4198else
512b7dfb 4199 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4200fi
4201
7df2cd5d 4202if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4203 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4204set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4207if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
512b7dfb
PB
4210 if test -n "$GNATMAKE"; then
4211 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4220 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225done
4226
4227fi
4228fi
512b7dfb
PB
4229GNATMAKE=$ac_cv_prog_GNATMAKE
4230if test -n "$GNATMAKE"; then
4231 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4232echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4233else
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236fi
4237
4238fi
512b7dfb
PB
4239if test -z "$ac_cv_prog_GNATMAKE"; then
4240 ac_ct_GNATMAKE=$GNATMAKE
4241 # Extract the first word of "gnatmake", so it can be a program name with args.
4242set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4243echo "$as_me:$LINENO: checking for $ac_word" >&5
4244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4245if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
512b7dfb
PB
4248 if test -n "$ac_ct_GNATMAKE"; then
4249 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4250else
4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4258 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262done
4263done
4264
512b7dfb 4265 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4266fi
4267fi
512b7dfb
PB
4268ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4269if test -n "$ac_ct_GNATMAKE"; then
4270 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4271echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4272else
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
4275fi
4276
512b7dfb 4277 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4278else
512b7dfb 4279 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4280fi
4281
c6b750e1
DJ
4282echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4283echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4284if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4286else
4287 cat >conftest.adb <<EOF
4288procedure conftest is begin null; end conftest;
4289EOF
4290acx_cv_cc_gcc_supports_ada=no
4291# There is a bug in old released versions of GCC which causes the
4292# driver to exit successfully when the appropriate language module
4293# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4294# Therefore we must check for the error message as well as an
4295# unsuccessful exit.
b8908782
DD
4296# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4297# given a .adb file, but produce no object file. So we must check
4298# if an object file was really produced to guard against this.
9e07f89d 4299errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4300if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4301 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4302fi
4303rm -f conftest.*
4304fi
c6b750e1
DJ
4305echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4306echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4307
512b7dfb 4308if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4309 have_gnat=yes
4310else
4311 have_gnat=no
4312fi
4313
c6b750e1
DJ
4314echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4315echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4316if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4318else
4319 echo abfoo >t1
4320 echo cdfoo >t2
4321 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4322 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4323 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4324 :
4325 else
4326 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4327 fi
4328 fi
b8908782
DD
4329 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4330 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4331 :
b8908782
DD
4332 else
4333 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4334 fi
4335 fi
4336 rm t1 t2
4337
4338fi
c6b750e1
DJ
4339echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4340echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4341do_compare="$gcc_cv_prog_cmp_skip"
4342
4343
9e07f89d 4344
11b04d1f 4345# Check for GMP and MPFR
4b900473 4346gmplibs="-lmpfr -lgmp"
4b1cb4fe 4347gmpinc=
4b900473
PB
4348have_gmp=no
4349
11b04d1f
DD
4350# Specify a location for mpfr
4351# check for this first so it ends up on the link line before gmp.
c6b750e1 4352
11b04d1f
DD
4353# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4354if test "${with_mpfr_dir+set}" = set; then
4355 withval="$with_mpfr_dir"
c6b750e1
DJ
4356 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4357Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4358echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4359Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4360 { (exit 1); exit 1; }; }
4361fi;
11b04d1f
DD
4362
4363
11b04d1f
DD
4364# Check whether --with-mpfr or --without-mpfr was given.
4365if test "${with_mpfr+set}" = set; then
4366 withval="$with_mpfr"
c6b750e1
DJ
4367
4368fi;
11b04d1f 4369
8a0d8a5c
PB
4370# Check whether --with-mpfr_include or --without-mpfr_include was given.
4371if test "${with_mpfr_include+set}" = set; then
4372 withval="$with_mpfr_include"
c6b750e1
DJ
4373
4374fi;
8a0d8a5c
PB
4375
4376# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4377if test "${with_mpfr_lib+set}" = set; then
4378 withval="$with_mpfr_lib"
8a0d8a5c 4379
c6b750e1 4380fi;
11b04d1f
DD
4381
4382if test "x$with_mpfr" != x; then
4383 gmplibs="-L$with_mpfr/lib $gmplibs"
4384 gmpinc="-I$with_mpfr/include"
4385fi
8a0d8a5c
PB
4386if test "x$with_mpfr_include" != x; then
4387 gmpinc="-I$with_mpfr_include"
4388fi
4389if test "x$with_mpfr_lib" != x; then
4390 gmplibs="-L$with_mpfr_lib $gmplibs"
4391fi
4b900473
PB
4392if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4393 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4394 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4395 # Do not test the mpfr version. Assume that it is sufficient, since
4396 # it is in the source tree, and the library has not been built yet
4397 # but it would be included on the link line in the version check below
4398 # hence making the test fail.
4399 have_gmp=yes
4400fi
11b04d1f 4401
4b1cb4fe 4402# Specify a location for gmp
c6b750e1 4403
4b1cb4fe
DD
4404# Check whether --with-gmp-dir or --without-gmp-dir was given.
4405if test "${with_gmp_dir+set}" = set; then
4406 withval="$with_gmp_dir"
c6b750e1
DJ
4407 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4408Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4409echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4410Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4411 { (exit 1); exit 1; }; }
4412fi;
4b1cb4fe
DD
4413
4414
4b1cb4fe
DD
4415# Check whether --with-gmp or --without-gmp was given.
4416if test "${with_gmp+set}" = set; then
4417 withval="$with_gmp"
c6b750e1
DJ
4418
4419fi;
4b1cb4fe 4420
8a0d8a5c
PB
4421# Check whether --with-gmp_include or --without-gmp_include was given.
4422if test "${with_gmp_include+set}" = set; then
4423 withval="$with_gmp_include"
c6b750e1
DJ
4424
4425fi;
8a0d8a5c
PB
4426
4427# Check whether --with-gmp_lib or --without-gmp_lib was given.
4428if test "${with_gmp_lib+set}" = set; then
4429 withval="$with_gmp_lib"
8a0d8a5c 4430
c6b750e1 4431fi;
8a0d8a5c 4432
4b1cb4fe 4433
11b04d1f
DD
4434if test "x$with_gmp" != x; then
4435 gmplibs="-L$with_gmp/lib $gmplibs"
4436 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4437fi
8a0d8a5c
PB
4438if test "x$with_gmp_include" != x; then
4439 gmpinc="-I$with_gmp_include $gmpinc"
4440fi
4441if test "x$with_gmp_lib" != x; then
4442 gmplibs="-L$with_gmp_lib $gmplibs"
4443fi
4b900473
PB
4444if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4445 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4446 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4447 # Do not test the gmp version. Assume that it is sufficient, since
4448 # it is in the source tree, and the library has not been built yet
4449 # but it would be included on the link line in the version check below
4450 # hence making the test fail.
4451 have_gmp=yes
4452fi
4b1cb4fe 4453
ceb92e78 4454if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4455 have_gmp=yes
4456 saved_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS $gmpinc"
4458 # Check GMP actually works
c6b750e1
DJ
4459 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4460echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4461
4462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4b1cb4fe 4468#include "gmp.h"
c6b750e1
DJ
4469int
4470main ()
4471{
4b1cb4fe 4472
4b900473
PB
4473 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4474 choke me
4475 #endif
c6b750e1
DJ
4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505else
4506 echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
4509echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; have_gmp=no
4511fi
4512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4513
4b900473
PB
4514 if test x"$have_gmp" = xyes; then
4515 saved_LIBS="$LIBS"
4516 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4517 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4518echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
9b134994 4525#include <gmp.h>
4b900473 4526 #include <mpfr.h>
c6b750e1
DJ
4527int
4528main ()
4529{
9b134994 4530
4b900473
PB
4531 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4532 choke me
4533 #endif
a3ca38d2
DD
4534 mpfr_t n;
4535 mpfr_t x;
4b900473 4536 int t;
a3ca38d2
DD
4537 mpfr_init (n);
4538 mpfr_init (x);
4b900473
PB
4539 mpfr_atan2 (n, n, x, GMP_RNDN);
4540 mpfr_erfc (n, x, GMP_RNDN);
4541 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547rm -f conftest.$ac_objext conftest$ac_exeext
4548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>conftest.er1
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
4b1cb4fe 4575#include <gmp.h>
4b900473 4576 #include <mpfr.h>
c6b750e1
DJ
4577int
4578main ()
4579{
9dbaa842 4580
4b900473
PB
4581 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4582 choke me
4583 #endif
4584 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext conftest$ac_exeext
4591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag"
4600 || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4619echo "${ECHO_T}buggy but acceptable" >&6
4620fi
4621rm -f conftest.err conftest.$ac_objext \
4622 conftest$ac_exeext conftest.$ac_ext
4623else
4624 echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; have_gmp=no
4629fi
4630rm -f conftest.err conftest.$ac_objext \
4631 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4632 LIBS="$saved_LIBS"
4633 fi
4634 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4635
4b900473 4636 if test x$have_gmp != xyes; then
c6b750e1
DJ
4637 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4638Try the --with-gmp and/or --with-mpfr options to specify their locations.
4639Copies of these libraries' source code can be found at their respective
4640hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4641See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4642If you obtained GMP and/or MPFR from a vendor distribution package, make
4643sure that you have installed both the libraries and the header files.
4644They may be located in separate packages." >&5
4645echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4646Try the --with-gmp and/or --with-mpfr options to specify their locations.
4647Copies of these libraries' source code can be found at their respective
4648hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4649See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4650If you obtained GMP and/or MPFR from a vendor distribution package, make
4651sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4652They may be located in separate packages." >&2;}
4653 { (exit 1); exit 1; }; }
4b900473 4654 fi
9dbaa842
DD
4655fi
4656
11b04d1f 4657# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4658
4659
4660
947f426e 4661# By default, C is the only stage 1 language.
9b134994 4662stage1_languages=,c,
1d39f329 4663
9e07f89d
NN
4664# Figure out what language subdirectories are present.
4665# Look if the user specified --enable-languages="..."; if not, use
4666# the environment variable $LANGUAGES if defined. $LANGUAGES might
4667# go away some day.
4668# NB: embedded tabs in this IF block -- do not untabify
4669if test -d ${srcdir}/gcc; then
4670 if test x"${enable_languages+set}" != xset; then
4671 if test x"${LANGUAGES+set}" = xset; then
4672 enable_languages="${LANGUAGES}"
4673 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4674 else
4675 enable_languages=all
4676 fi
4677 else
4678 if test x"${enable_languages}" = x ||
4679 test x"${enable_languages}" = xyes;
4680 then
4681 echo configure.in: --enable-languages needs at least one language argument 1>&2
4682 exit 1
4683 fi
4684 fi
4685 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4686
096f7d00
DE
4687 # 'f95' is the old name for the 'fortran' language. We issue a warning
4688 # and make the substitution.
4689 case ,${enable_languages}, in
4690 *,f95,*)
4691 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4692 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4693 ;;
4694 esac
4695
9e07f89d
NN
4696 # First scan to see if an enabled language requires some other language.
4697 # We assume that a given config-lang.in will list all the language
4698 # front ends it requires, even if some are required indirectly.
4699 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4700 case ${lang_frag} in
4701 ..) ;;
4702 # The odd quoting in the next line works around
4703 # an apparent bug in bash 1.12 on linux.
4704 ${srcdir}/gcc/[*]/config-lang.in) ;;
4705 *)
4706 # From the config-lang.in, get $language, $lang_requires
4707 language=
4708 lang_requires=
4709 . ${lang_frag}
4710 for other in ${lang_requires} ; do
4711 case ,${enable_languages}, in
4712 *,$other,*) ;;
4713 *,all,*) ;;
4714 *,$language,*)
4715 echo " \`$other' language required by \`$language'; enabling" 1>&2
4716 enable_languages="${enable_languages},${other}"
4717 ;;
4718 esac
4719 done
4720 ;;
4721 esac
4722 done
4723
9b134994 4724 new_enable_languages=,c,
9e07f89d 4725 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4726 potential_languages=,c,
9e07f89d
NN
4727
4728 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4729 case ${lang_frag} in
4730 ..) ;;
4731 # The odd quoting in the next line works around
4732 # an apparent bug in bash 1.12 on linux.
4733 ${srcdir}/gcc/[*]/config-lang.in) ;;
4734 *)
c6b750e1 4735 # From the config-lang.in, get $language, $target_libs,
1d39f329 4736 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4737 language=
4738 target_libs=
4739 lang_dirs=
64ce424c 4740 subdir_requires=
9b134994
PB
4741 boot_language=no
4742 build_by_default=yes
9e07f89d 4743 . ${lang_frag}
9b134994
PB
4744 if test x${language} = x; then
4745 echo "${lang_frag} doesn't set \$language." 1>&2
4746 exit 1
4747 fi
4748
4749 case ,${enable_languages}, in
4750 *,${language},*)
9e07f89d
NN
4751 # Language was explicitly selected; include it.
4752 add_this_lang=yes
4753 ;;
9b134994
PB
4754 *,all,*)
4755 # 'all' was selected, select it if it is a default language
4756 add_this_lang=${build_by_default}
9e07f89d
NN
4757 ;;
4758 *)
4759 add_this_lang=no
4760 ;;
4761 esac
4b1cb4fe 4762
64ce424c 4763 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4764 for i in $subdir_requires; do
3d3adb43 4765 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4766 case ,${enable_languages}, in
4767 *,${language},*)
4768 # Specifically requested language; tell them.
c6b750e1
DJ
4769 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4770echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4771 { (exit 1); exit 1; }; }
64ce424c
PB
4772 ;;
4773 *)
4774 # Silently disable.
9b134994 4775 add_this_lang=unsupported
64ce424c
PB
4776 ;;
4777 esac
4778 done
4779
9b134994
PB
4780 # Disable Ada if no preexisting GNAT is available.
4781 case ,${enable_languages},:${language}:${have_gnat} in
4782 *,${language},*:ada:no)
4783 # Specifically requested language; tell them.
c6b750e1
DJ
4784 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4785echo "$as_me: error: GNAT is required to build $language" >&2;}
4786 { (exit 1); exit 1; }; }
9b134994
PB
4787 ;;
4788 *:ada:no)
4789 # Silently disable.
4790 add_this_lang=unsupported
4791 ;;
4792 esac
4793
59f7ec45
HPN
4794 # Disable a language that is unsupported by the target.
4795 case " $unsupported_languages " in
4796 *" $language "*)
9b134994 4797 add_this_lang=unsupported
59f7ec45
HPN
4798 ;;
4799 esac
4800
4b1cb4fe 4801 case $add_this_lang in
9b134994 4802 unsupported)
9e07f89d 4803 # Remove language-dependent dirs.
1d39f329
NN
4804 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4805 ;;
9b134994
PB
4806 no)
4807 # Remove language-dependent dirs; still show language as supported.
4808 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4809 potential_languages="${potential_languages}${language},"
4810 ;;
4811 yes)
4812 new_enable_languages="${new_enable_languages}${language},"
4813 potential_languages="${potential_languages}${language},"
1d39f329
NN
4814 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4815 case ${boot_language} in
4816 yes)
4fa63067 4817 # Add to (comma-separated) list of stage 1 languages.
9b134994 4818 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4819 ;;
4820 esac
4821 ;;
9e07f89d
NN
4822 esac
4823 ;;
4824 esac
4825 done
4826
9b134994
PB
4827 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4828if test "${enable_stage1_languages+set}" = set; then
4829 enableval="$enable_stage1_languages"
4830 case ,${enable_stage1_languages}, in
4831 ,no,|,,)
4832 # Set it to something that will have no effect in the loop below
4833 enable_stage1_languages=c ;;
4834 ,yes,)
4835 enable_stage1_languages=`echo $new_enable_languages | \
4836 sed -e "s/^,//" -e "s/,$//" ` ;;
4837 *,all,*)
4838 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4839 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4840 esac
4841
4842 # Add "good" languages from enable_stage1_languages to stage1_languages,
4843 # while "bad" languages go in missing_languages. Leave no duplicates.
4844 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4845 case $potential_languages in
4846 *,$i,*)
4847 case $stage1_languages in
4848 *,$i,*) ;;
4849 *) stage1_languages="$stage1_languages$i," ;;
4850 esac ;;
4851 *)
4852 case $missing_languages in
4853 *,$i,*) ;;
4854 *) missing_languages="$missing_languages$i," ;;
4855 esac ;;
4856 esac
4857 done
c6b750e1 4858fi;
9b134994
PB
4859
4860 # Remove leading/trailing commas that were added for simplicity
4861 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4862 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4863 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4864 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4865
9e07f89d 4866 if test "x$missing_languages" != x; then
c6b750e1 4867 { { echo "$as_me:$LINENO: error:
27258dd4 4868The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4869Supported languages are: ${potential_languages}" >&5
4870echo "$as_me: error:
4871The following requested languages could not be built: ${missing_languages}
4872Supported languages are: ${potential_languages}" >&2;}
4873 { (exit 1); exit 1; }; }
9e07f89d 4874 fi
9e07f89d
NN
4875 if test "x$new_enable_languages" != "x$enable_languages"; then
4876 echo The following languages will be built: ${new_enable_languages}
9b134994 4877 enable_languages="$new_enable_languages"
9e07f89d 4878 fi
9b134994 4879
c6b750e1 4880
81ec575a 4881 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4882fi
4883
a6df5a19
PB
4884# Handle --disable-<component> generically.
4885for dir in $configdirs $build_configdirs $target_configdirs ; do
4886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4887 if eval test x\${enable_${dirname}} "=" xno ; then
4888 noconfigdirs="$noconfigdirs $dir"
4889 fi
4890done
4891
4f0ef2d8
CD
4892# Check for Boehm's garbage collector
4893# Check whether --enable-objc-gc or --disable-objc-gc was given.
4894if test "${enable_objc_gc+set}" = set; then
4895 enableval="$enable_objc_gc"
4896 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4897 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4898 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4899echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4900 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4901 ;;
4902esac
c6b750e1 4903fi;
4f0ef2d8
CD
4904
4905# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4906case ,${enable_languages},:${enable_objc_gc} in
4907 *,objc,*:yes)
4f0ef2d8
CD
4908 # Keep target-boehm-gc if requested for Objective-C.
4909 ;;
4f0ef2d8 4910 *)
d42c4017
DA
4911 # Otherwise remove target-boehm-gc depending on target-libjava.
4912 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4913 noconfigdirs="$noconfigdirs target-boehm-gc"
4914 fi
4f0ef2d8
CD
4915 ;;
4916esac
4917
caeba88f
AL
4918# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4919# $build_configdirs and $target_configdirs.
9e07f89d
NN
4920# If we have the source for $noconfigdirs entries, add them to $notsupp.
4921
4922notsupp=""
4923for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4924 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4925 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4926 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4927 if test -r $srcdir/$dirname/configure ; then
4928 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4929 true
4930 else
4931 notsupp="$notsupp $dir"
4932 fi
4933 fi
4934 fi
caeba88f
AL
4935 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4936 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4937 if test -r $srcdir/$dirname/configure ; then
4938 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4939 true
4940 else
4941 notsupp="$notsupp $dir"
4942 fi
4943 fi
4944 fi
9e07f89d
NN
4945 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4946 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4947 if test -r $srcdir/$dirname/configure ; then
4948 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4949 true
4950 else
4951 notsupp="$notsupp $dir"
4952 fi
4953 fi
4954 fi
4955done
4956
4957# Sometimes the tools are distributed with libiberty but with no other
4958# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4959# Don't let libgcc imply libiberty either.
9e07f89d 4960if test -n "${target_configdirs}" ; then
f86e35b8 4961 libgcc=
9e07f89d
NN
4962 others=
4963 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4964 if test "$i" = "libgcc"; then
4965 libgcc=target-libgcc
4966 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4967 if test -r $srcdir/$i/configure ; then
4968 others=yes;
4969 break;
4970 fi
4971 fi
4972 done
4973 if test -z "${others}" ; then
f86e35b8 4974 target_configdirs=$libgcc
9e07f89d
NN
4975 fi
4976fi
4977
4978# Quietly strip out all directories which aren't configurable in this tree.
4979# This relies on all configurable subdirectories being autoconfiscated, which
4980# is now the case.
6a9cf61e
PB
4981build_configdirs_all="$build_configdirs"
4982build_configdirs=
4983for i in ${build_configdirs_all} ; do
c6b750e1 4984 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4985 if test -f ${srcdir}/$j/configure ; then
4986 build_configdirs="${build_configdirs} $i"
4987 fi
4988done
4989
9e07f89d
NN
4990configdirs_all="$configdirs"
4991configdirs=
4992for i in ${configdirs_all} ; do
4993 if test -f ${srcdir}/$i/configure ; then
4994 configdirs="${configdirs} $i"
4995 fi
4996done
6a9cf61e 4997
9e07f89d
NN
4998target_configdirs_all="$target_configdirs"
4999target_configdirs=
5000for i in ${target_configdirs_all} ; do
c6b750e1 5001 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5002 if test -f ${srcdir}/$j/configure ; then
5003 target_configdirs="${target_configdirs} $i"
5004 fi
5005done
5006
5007# Produce a warning message for the subdirs we can't configure.
5008# This isn't especially interesting in the Cygnus tree, but in the individual
5009# FSF releases, it's important to let people know when their machine isn't
5010# supported by the one or two programs in a package.
5011
5012if test -n "${notsupp}" && test -z "${norecursion}" ; then
5013 # If $appdirs is non-empty, at least one of those directories must still
5014 # be configured, or we error out. (E.g., if the gas release supports a
5015 # specified target in some subdirs but not the gas subdir, we shouldn't
5016 # pretend that all is well.)
5017 if test -n "$appdirs" ; then
5018 for dir in $appdirs ; do
5019 if test -r $dir/Makefile.in ; then
5020 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5021 appdirs=""
5022 break
5023 fi
6a9cf61e 5024 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5025 appdirs=""
5026 break
5027 fi
5028 fi
5029 done
5030 if test -n "$appdirs" ; then
5031 echo "*** This configuration is not supported by this package." 1>&2
5032 exit 1
5033 fi
5034 fi
5035 # Okay, some application will build, or we don't care to check. Still
5036 # notify of subdirs not getting built.
5037 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5038 echo " ${notsupp}" 1>&2
5039 echo " (Any other directories should still work fine.)" 1>&2
5040fi
5041
5042case "$host" in
5043 *msdosdjgpp*)
5044 enable_gdbtk=no ;;
5045esac
5046
18f6b6ee
PB
5047# To find our prefix, in gcc_cv_tool_prefix.
5048
5049# The user is always right.
5050if test "${PATH_SEPARATOR+set}" != set; then
5051 echo "#! /bin/sh" >conf$$.sh
5052 echo "exit 0" >>conf$$.sh
5053 chmod +x conf$$.sh
5054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5055 PATH_SEPARATOR=';'
5056 else
5057 PATH_SEPARATOR=:
5058 fi
5059 rm -f conf$$.sh
5060fi
5061
5062
5063
5064if test "x$exec_prefix" = xNONE; then
5065 if test "x$prefix" = xNONE; then
5066 gcc_cv_tool_prefix=$ac_default_prefix
5067 else
5068 gcc_cv_tool_prefix=$prefix
5069 fi
5070else
5071 gcc_cv_tool_prefix=$exec_prefix
5072fi
5073
5074# If there is no compiler in the tree, use the PATH only. In any
5075# case, if there is no compiler in the tree nobody should use
5076# AS_FOR_TARGET and LD_FOR_TARGET.
5077if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5078 gcc_version=`cat $srcdir/gcc/BASE-VER`
5079 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5080 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5085else
5086 gcc_cv_tool_dirs=
5087fi
5088
5089if test x$build = x$target && test -n "$md_exec_prefix"; then
5090 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5091fi
5092
5093
5094
9e07f89d
NN
5095copy_dirs=
5096
c6b750e1 5097
a19b6204
MM
5098# Check whether --with-build-sysroot or --without-build-sysroot was given.
5099if test "${with_build_sysroot+set}" = set; then
5100 withval="$with_build_sysroot"
5101 if test x"$withval" != x ; then
5102 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5103 fi
5104else
5105 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5106fi;
a19b6204
MM
5107
5108
8a6ee3ab
JM
5109
5110# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5111if test "${with_debug_prefix_map+set}" = set; then
5112 withval="$with_debug_prefix_map"
5113 if test x"$withval" != x; then
5114 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5115 for debug_map in $withval; do
5116 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5117 done
5118 fi
5119else
5120 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5121fi;
5122
5123
9e07f89d
NN
5124# Handle --with-headers=XXX. If the value is not "yes", the contents of
5125# the named directory are copied to $(tooldir)/sys-include.
5126if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5127 if test x${is_cross_compiler} = xno ; then
5128 echo 1>&2 '***' --with-headers is only supported when cross compiling
5129 exit 1
5130 fi
5131 if test x"${with_headers}" != xyes ; then
18f6b6ee 5132 x=${gcc_cv_tool_prefix}
c6b750e1 5133 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5134 fi
5135fi
5136
5137# Handle --with-libs=XXX. If the value is not "yes", the contents of
5138# the name directories are copied to $(tooldir)/lib. Multiple directories
5139# are permitted.
5140if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5141 if test x${is_cross_compiler} = xno ; then
5142 echo 1>&2 '***' --with-libs is only supported when cross compiling
5143 exit 1
5144 fi
5145 if test x"${with_libs}" != xyes ; then
5146 # Copy the libraries in reverse order, so that files in the first named
5147 # library override files in subsequent libraries.
18f6b6ee 5148 x=${gcc_cv_tool_prefix}
9e07f89d 5149 for l in ${with_libs}; do
c6b750e1 5150 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5151 done
5152 fi
5153fi
5154
2429c060
PB
5155# Set with_gnu_as and with_gnu_ld as appropriate.
5156#
5157# This is done by determining whether or not the appropriate directory
5158# is available, and by checking whether or not specific configurations
5159# have requested that this magic not happen.
c6b750e1
DJ
5160#
5161# The command line options always override the explicit settings in
2429c060
PB
5162# configure.in, and the settings in configure.in override this magic.
5163#
c6b750e1 5164# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5165# want to do that, then you should use the --without-gnu-as and
5166# --without-gnu-ld options for the configure script.
5167
5168if test x${use_gnu_as} = x &&
5169 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5170 with_gnu_as=yes
5171 extra_host_args="$extra_host_args --with-gnu-as"
5172fi
5173
5174if test x${use_gnu_ld} = x &&
5175 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5176 with_gnu_ld=yes
5177 extra_host_args="$extra_host_args --with-gnu-ld"
5178fi
5179
5180# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5181# can detect this case.
5182
5183if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5184 with_newlib=yes
5185 extra_host_args="$extra_host_args --with-newlib"
5186fi
5187
9e07f89d
NN
5188# Handle ${copy_dirs}
5189set fnord ${copy_dirs}
5190shift
5191while test $# != 0 ; do
5192 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5193 :
5194 else
5195 echo Copying $1 to $2
5196
5197 # Use the install script to create the directory and all required
5198 # parent directories.
5199 if test -d $2 ; then
5200 :
5201 else
5202 echo >config.temp
5203 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5204 fi
5205
5206 # Copy the directory, assuming we have tar.
5207 # FIXME: Should we use B in the second tar? Not all systems support it.
5208 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5209
5210 # It is the responsibility of the user to correctly adjust all
5211 # symlinks. If somebody can figure out how to handle them correctly
5212 # here, feel free to add the code.
5213
5214 echo $1 > $2/COPIED
5215 fi
5216 shift; shift
5217done
5218
2429c060
PB
5219# Determine a target-dependent exec_prefix that the installed
5220# gcc will search in. Keep this list sorted by triplet, with
5221# the *-*-osname triplets last.
5222md_exec_prefix=
5223case "${target}" in
5224 alpha*-*-*vms*)
5225 md_exec_prefix=/gnu/lib/gcc-lib
5226 ;;
521ec477 5227 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5228 md_exec_prefix=/dev/env/DJDIR/bin
5229 ;;
521ec477 5230 i[34567]86-*-sco3.2v5*)
2429c060
PB
5231 if test $with_gnu_as = yes; then
5232 md_exec_prefix=/usr/gnu/bin
5233 else
5234 md_exec_prefix=/usr/ccs/bin/elf
5235 fi
5236 ;;
5237
5238 mn10300-*-* | \
5239 powerpc-*-chorusos* | \
5240 powerpc*-*-eabi* | \
5241 powerpc*-*-sysv* | \
5242 powerpc*-*-kaos* | \
5243 s390x-ibm-tpf*)
5244 md_exec_prefix=/usr/ccs/bin
5245 ;;
5246 sparc64-*-elf*)
5247 ;;
5248 v850*-*-*)
5249 md_exec_prefix=/usr/ccs/bin
5250 ;;
5251 xtensa-*-elf*)
5252 ;;
5253
5254 *-*-beos* | \
5255 *-*-elf* | \
5256 *-*-hpux* | \
5257 *-*-netware* | \
5258 *-*-nto-qnx* | \
5259 *-*-rtems* | \
5260 *-*-solaris2* | \
521ec477 5261 *-*-sysv[45]* | \
2429c060
PB
5262 *-*-vxworks* | \
5263 *-wrs-windiss)
5264 md_exec_prefix=/usr/ccs/bin
5265 ;;
5266esac
5267
a0da8069
NN
5268extra_arflags_for_target=
5269extra_nmflags_for_target=
5270extra_ranlibflags_for_target=
5271target_makefile_frag=/dev/null
5272case "${target}" in
4e206d7e
DB
5273 mep*-*-*)
5274 target_makefile_frag="config/mt-mep"
5275 ;;
77d7106f
AM
5276 spu-*-*)
5277 target_makefile_frag="config/mt-spu"
5278 ;;
429acdec
RS
5279 mips*-sde-elf*)
5280 target_makefile_frag="config/mt-sde"
5281 ;;
2a3124ca 5282 *-*-netware*)
a0da8069
NN
5283 target_makefile_frag="config/mt-netware"
5284 ;;
3d6dfe0f
NN
5285 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5286 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5287 ;;
5288 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5289 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5290 # commands to handle both 32-bit and 64-bit objects. These flags are
5291 # harmless if we're using GNU nm or ar.
5292 extra_arflags_for_target=" -X32_64"
5293 extra_nmflags_for_target=" -B -X32_64"
5294 ;;
5295 *-*-darwin*)
5296 # ranlib from Darwin requires the -c flag to look at common symbols.
5297 extra_ranlibflags_for_target=" -c"
5298 ;;
5299 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5300 target_makefile_frag="config/mt-wince"
5301 ;;
5302esac
5303
5304alphaieee_frag=/dev/null
5305case $target in
5306 alpha*-*-*)
5307 # This just makes sure to use the -mieee option to build target libs.
5308 # This should probably be set individually by each library.
5309 alphaieee_frag="config/mt-alphaieee"
5310 ;;
5311esac
5312
5313# If --enable-target-optspace always use -Os instead of -O2 to build
5314# the target libraries, similarly if it is not specified, use -Os
5315# on selected platforms.
5316ospace_frag=/dev/null
5317case "${enable_target_optspace}:${target}" in
5318 yes:*)
5319 ospace_frag="config/mt-ospace"
5320 ;;
5321 :d30v-*)
5322 ospace_frag="config/mt-d30v"
5323 ;;
5324 :m32r-* | :d10v-* | :fr30-*)
5325 ospace_frag="config/mt-ospace"
5326 ;;
5327 no:* | :*)
5328 ;;
5329 *)
5330 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5331 ;;
5332esac
5333
a0da8069
NN
5334# Default to using --with-stabs for certain targets.
5335if test x${with_stabs} = x ; then
5336 case "${target}" in
e31d1ea3 5337 mips*-*-irix[56]*)
a0da8069
NN
5338 ;;
5339 mips*-*-* | alpha*-*-osf*)
5340 with_stabs=yes;
5341 extra_host_args="${extra_host_args} --with-stabs"
5342 ;;
5343 esac
5344fi
5345
5346# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5347# them automatically.
5348case "${host}" in
c6b750e1 5349 hppa*64*-*-hpux11*)
a0da8069
NN
5350 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5351 ;;
5352esac
5353
a0da8069
NN
5354# Some systems (e.g., one of the i386-aix systems the gas testers are
5355# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5356tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5357build_tooldir=${tooldir}
5358
a0da8069
NN
5359# Create a .gdbinit file which runs the one in srcdir
5360# and tells GDB to look there for source files.
5361
5362if test -r ${srcdir}/.gdbinit ; then
5363 case ${srcdir} in
5364 .) ;;
5365 *) cat > ./.gdbinit <<EOF
5366# ${NO_EDIT}
5367dir ${srcdir}
5368dir .
5369source ${srcdir}/.gdbinit
5370EOF
5371 ;;
5372 esac
5373fi
5374
a0da8069
NN
5375# Make sure that the compiler is able to generate an executable. If it
5376# can't, we are probably in trouble. We don't care whether we can run the
5377# executable--we might be using a cross compiler--we only care whether it
5378# can be created. At this point the main configure script has set CC.
5379we_are_ok=no
5380echo "int main () { return 0; }" > conftest.c
5381${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5382if test $? = 0 ; then
5383 if test -s conftest || test -s conftest.exe ; then
5384 we_are_ok=yes
5385 fi
c6b750e1 5386fi
a0da8069
NN
5387case $we_are_ok in
5388 no)
5389 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5390 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5391 rm -f conftest*
5392 exit 1
5393 ;;
5394esac
5395rm -f conftest*
5396
5397# The Solaris /usr/ucb/cc compiler does not appear to work.
5398case "${host}" in
5399 sparc-sun-solaris2*)
5400 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5401 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5402 could_use=
5403 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5404 if test -d /opt/cygnus/bin ; then
5405 if test "$could_use" = "" ; then
5406 could_use="/opt/cygnus/bin"
5407 else
5408 could_use="$could_use or /opt/cygnus/bin"
5409 fi
5410 fi
5411 if test "$could_use" = "" ; then
5412 echo "Warning: compilation may fail because you're using"
5413 echo "/usr/ucb/cc. You should change your PATH or CC "
5414 echo "variable and rerun configure."
5415 else
5416 echo "Warning: compilation may fail because you're using"
5417 echo "/usr/ucb/cc, when you should use the C compiler from"
5418 echo "$could_use. You should change your"
5419 echo "PATH or CC variable and rerun configure."
5420 fi
5421 fi
5422 ;;
5423esac
5424
a0da8069
NN
5425case "${host}" in
5426 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5427 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5428 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5429esac
5430
5431# Record target_configdirs and the configure arguments for target and
5432# build configuration in Makefile.
5433target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5434build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5435
a0da8069
NN
5436# Determine whether gdb needs tk/tcl or not.
5437# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5438# and in that case we want gdb to be built without tk. Ugh!
5439# In fact I believe gdb is the *only* package directly dependent on tk,
5440# so we should be able to put the 'maybe's in unconditionally and
5441# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5442# 100% sure that that's safe though.
c180f501 5443
675c6968 5444gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5445case "$enable_gdbtk" in
5446 no)
5447 GDB_TK="" ;;
c180f501
AC
5448 yes)
5449 GDB_TK="${gdb_tk}" ;;
a0da8069 5450 *)
c180f501
AC
5451 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5452 # distro. Eventually someone will fix this and move Insight, nee
5453 # gdbtk to a separate directory.
5454 if test -d ${srcdir}/gdb/gdbtk ; then
5455 GDB_TK="${gdb_tk}"
5456 else
5457 GDB_TK=""
5458 fi
5459 ;;
a0da8069 5460esac
907be67c
DJ
5461CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5462INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5463
6bd3dfaa 5464# Strip out unwanted targets.
dd12c3a8
NN
5465
5466# While at that, we remove Makefiles if we were started for recursive
5467# configuration, so that the top-level Makefile reconfigures them,
5468# like we used to do when configure itself was recursive.
dd12c3a8 5469
6bd3dfaa
PB
5470# Loop over modules. $extrasub must be used with care, limiting as
5471# much as possible the usage of range addresses. That's because autoconf
5472# splits the sed script to overcome limits in the number of commands,
5473# and relying on carefully-timed sed passes may turn out to be very hard
5474# to maintain later. In this particular case, you just have to be careful
5475# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5476
319cab08
PB
5477# Check whether --enable-bootstrap or --disable-bootstrap was given.
5478if test "${enable_bootstrap+set}" = set; then
5479 enableval="$enable_bootstrap"
c6b750e1 5480
319cab08 5481else
9cb3fa6f 5482 enable_bootstrap=default
c6b750e1 5483fi;
319cab08 5484
9cb3fa6f
PB
5485# Issue errors and warnings for invalid/strange bootstrap combinations.
5486case "$configdirs" in
5487 *gcc*) have_compiler=yes ;;
5488 *) have_compiler=no ;;
5489esac
5490
5491case "$have_compiler:$host:$target:$enable_bootstrap" in
5492 *:*:*:no) ;;
5493
0aed8855 5494 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5495 # and we are in a native configuration.
5496 yes:$build:$build:default)
0aed8855 5497 enable_bootstrap=yes ;;
9cb3fa6f
PB
5498
5499 *:*:*:default)
5500 enable_bootstrap=no ;;
5501
5502 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5503 yes:$build:$build:yes)
9cb3fa6f
PB
5504 ;;
5505
5506 # Other configurations, but we have a compiler. Assume the user knows
5507 # what he's doing.
80911fe1 5508 yes:*:*:yes)
c6b750e1
DJ
5509 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5510echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5511 ;;
5512
5513 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5514 no:*:*:yes)
c6b750e1
DJ
5515 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5516echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5517 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5518
5519 # Fail if wrong command line
5520 *)
c6b750e1
DJ
5521 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5522echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5523 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5524 ;;
5525esac
5526
5527# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5528case "$enable_bootstrap" in
5529 yes)
498d4a71 5530 bootstrap_suffix=bootstrap ;;
319cab08 5531 no)
498d4a71 5532 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5533esac
5534
6a9cf61e 5535for module in ${build_configdirs} ; do
498d4a71
CF
5536 if test -z "${no_recursion}" \
5537 && test -f ${build_subdir}/${module}/Makefile; then
5538 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5539 rm -f ${build_subdir}/${module}/Makefile
5540 fi
5541 extrasub="$extrasub
5542/^@if build-$module\$/d
5543/^@endif build-$module\$/d
5544/^@if build-$module-$bootstrap_suffix\$/d
5545/^@endif build-$module-$bootstrap_suffix\$/d"
5546done
5547for module in ${configdirs} ; do
80911fe1 5548 if test -z "${no_recursion}"; then
8cf39b1b 5549 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5550 if test -f ${file}; then
5551 echo 1>&2 "*** removing ${file} to force reconfigure"
5552 rm -f ${file}
5553 fi
5554 done
498d4a71
CF
5555 fi
5556 extrasub="$extrasub
5557/^@if $module\$/d
5558/^@endif $module\$/d
5559/^@if $module-$bootstrap_suffix\$/d
5560/^@endif $module-$bootstrap_suffix\$/d"
5561done
5562for module in ${target_configdirs} ; do
5563 if test -z "${no_recursion}" \
5564 && test -f ${target_subdir}/${module}/Makefile; then
5565 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5566 rm -f ${target_subdir}/${module}/Makefile
5567 fi
5568 extrasub="$extrasub
5569/^@if target-$module\$/d
5570/^@endif target-$module\$/d
5571/^@if target-$module-$bootstrap_suffix\$/d
5572/^@endif target-$module-$bootstrap_suffix\$/d"
5573done
5574
6bd3dfaa
PB
5575extrasub="$extrasub
5576/^@if /,/^@endif /d"
a0da8069
NN
5577
5578# Create the serialization dependencies. This uses a temporary file.
5579
e6bfb94a
AO
5580# Check whether --enable-serial-configure or --disable-serial-configure was given.
5581if test "${enable_serial_configure+set}" = set; then
5582 enableval="$enable_serial_configure"
e6bfb94a 5583
c6b750e1 5584fi;
e6bfb94a 5585
1047cb91
DD
5586case ${enable_serial_configure} in
5587 yes)
5588 enable_serial_build_configure=yes
5589 enable_serial_host_configure=yes
5590 enable_serial_target_configure=yes
5591 ;;
5592esac
5593
a0da8069
NN
5594# These force 'configure's to be done one at a time, to avoid problems
5595# with contention over a shared config.cache.
5596rm -f serdep.tmp
e6bfb94a 5597echo '# serdep.tmp' > serdep.tmp
a0da8069 5598olditem=
1047cb91 5599test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5600for item in ${build_configdirs} ; do
5601 case ${olditem} in
5602 "") ;;
e6bfb94a 5603 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5604 esac
5605 olditem=${item}
5606done
5607olditem=
1047cb91 5608test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5609for item in ${configdirs} ; do
5610 case ${olditem} in
5611 "") ;;
e6bfb94a 5612 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5613 esac
5614 olditem=${item}
5615done
5616olditem=
1047cb91 5617test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5618for item in ${target_configdirs} ; do
5619 case ${olditem} in
5620 "") ;;
e6bfb94a 5621 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5622 esac
5623 olditem=${item}
5624done
5625serialization_dependencies=serdep.tmp
5626
5627
e6bfb94a 5628# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5629# target, nonopt, and variable assignments. These are the ones we
5630# might not want to pass down to subconfigures. Also strip
5631# program-prefix, program-suffix, and program-transform-name, so that
5632# we can pass down a consistent program-transform-name.
5633baseargs=
5634keep_next=no
5635skip_next=no
5636eval "set -- $ac_configure_args"
18f6b6ee
PB
5637for ac_arg
5638do
c6b750e1
DJ
5639 if test X"$skip_next" = X"yes"; then
5640 skip_next=no
5641 continue
5642 fi
5643 if test X"$keep_next" = X"yes"; then
5644 case $ac_arg in
5645 *\'*)
5646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5647 esac
5648 baseargs="$baseargs '$ac_arg'"
5649 keep_next=no
5650 continue
5651 fi
5652
5653 # Handle separated arguments. Based on the logic generated by
5654 # autoconf 2.59.
5655 case $ac_arg in
5656 *=* | --config-cache | -C | -disable-* | --disable-* \
5657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5659 | -with-* | --with-* | -without-* | --without-* | --x)
5660 separate_arg=no
5661 ;;
5662 -*)
5663 separate_arg=yes
5664 ;;
5665 *)
5666 separate_arg=no
5667 ;;
5668 esac
5669
5670 case "$ac_arg" in
5671 --no*)
5672 continue
5673 ;;
5674 --c* | \
5675 --sr* | \
5676 --ho* | \
5677 --bu* | \
5678 --t* | \
5679 --program-* | \
5680 -cache_file* | \
5681 -srcdir* | \
5682 -host* | \
5683 -build* | \
5684 -target* | \
5685 -program-prefix* | \
5686 -program-suffix* | \
5687 -program-transform-name* )
5688 skip_next=$separate_arg
5689 continue
5690 ;;
5691 -*)
5692 # An option. Add it.
5693 case $ac_arg in
5694 *\'*)
5695 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5696 esac
5697 baseargs="$baseargs '$ac_arg'"
5698 keep_next=$separate_arg
5699 ;;
5700 *)
5701 # Either a variable assignment, or a nonopt (triplet). Don't
5702 # pass it down; let the Makefile handle this.
5703 continue
5704 ;;
5705 esac
5706done
5707# Remove the initial space we just introduced and, as these will be
5708# expanded by make, quote '$'.
5709baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5710
f27d4f92
DJ
5711# Add in --program-transform-name, after --program-prefix and
5712# --program-suffix have been applied to it. Autoconf has already
5713# doubled dollar signs and backslashes in program_transform_name; we want
5714# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5715# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5716# Also, because we want to override the logic in subdir configure scripts to
5717# choose program_transform_name, replace any s,x,x, with s,y,y,.
5718sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5719${program_transform_name}
5720EOF_SED
5721gcc_transform_name=`cat conftestsed.out`
5722rm -f conftestsed.out
5723baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5724if test "$silent" = yes; then
5725 baseargs="$baseargs --silent"
5726fi
f27d4f92 5727
a0da8069
NN
5728# For the build-side libraries, we just need to pretend we're native,
5729# and not use the same cache file. Multilibs are neither needed nor
5730# desired.
4b900473 5731build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5732
5733# For host modules, accept cache file option, or specification as blank.
5734case "${cache_file}" in
5735"") # empty
5736 cache_file_option="" ;;
5737/* | [A-Za-z]:[\\/]* ) # absolute path
5738 cache_file_option="--cache-file=${cache_file}" ;;
5739*) # relative path
5740 cache_file_option="--cache-file=../${cache_file}" ;;
5741esac
5742
82252c06
NN
5743# Host dirs don't like to share a cache file either, horribly enough.
5744# This seems to be due to autoconf 2.5x stupidity.
4b900473 5745host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5746
5747target_configargs=${baseargs}
5748
5749# Passing a --with-cross-host argument lets the target libraries know
5750# whether they are being built with a cross-compiler or being built
5751# native. However, it would be better to use other mechanisms to make the
5752# sorts of decisions they want to make on this basis. Please consider
5753# this option to be deprecated. FIXME.
5754if test x${is_cross_compiler} = xyes ; then
c6b750e1 5755 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5756fi
5757
5758# Default to --enable-multilib.
5759if test x${enable_multilib} = x ; then
5760 target_configargs="--enable-multilib ${target_configargs}"
5761fi
5762
5763# Pass --with-newlib if appropriate. Note that target_configdirs has
5764# changed from the earlier setting of with_newlib.
5765if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5766 target_configargs="--with-newlib ${target_configargs}"
5767fi
5768
95036d20
NN
5769# Different target subdirs use different values of certain variables
5770# (notably CXX). Worse, multilibs use *lots* of different values.
5771# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5772# it doesn't automatically accept command-line overrides of them.
5773# This means it's not safe for target subdirs to share a cache file,
5774# which is disgusting, but there you have it. Hopefully this can be
5775# fixed in future. It's still worthwhile to use a cache file for each
5776# directory. I think.
5777
ae380b45
MS
5778# Pass the appropriate --build, --host, --target and --cache-file arguments.
5779# We need to pass --target, as newer autoconf's requires consistency
5780# for target_alias and gcc doesn't manage it consistently.
4b900473 5781target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5782
a0da8069
NN
5783FLAGS_FOR_TARGET=
5784case " $target_configdirs " in
5785 *" newlib "*)
5786 case " $target_configargs " in
5787 *" --with-newlib "*)
5788 case "$target" in
5789 *-cygwin*)
564b43e5 5790 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
5791 esac
5792
5793 # If we're not building GCC, don't discard standard headers.
5794 if test -d ${srcdir}/gcc; then
5795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5796
5797 if test "${build}" != "${host}"; then
5798 # On Canadian crosses, CC_FOR_TARGET will have already been set
5799 # by `configure', so we won't have an opportunity to add -Bgcc/
5800 # to it. This is right: we don't want to search that directory
5801 # for binaries, but we want the header files in there, so add
5802 # them explicitly.
b00612cc 5803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5804
5805 # Someone might think of using the pre-installed headers on
5806 # Canadian crosses, in case the installed compiler is not fully
5807 # compatible with the compiler being built. In this case, it
5808 # would be better to flag an error than risking having
5809 # incompatible object files being constructed. We can't
5810 # guarantee that an error will be flagged, but let's hope the
5811 # compiler will do it, when presented with incompatible header
5812 # files.
5813 fi
5814 fi
5815
5816 case "${target}-${is_cross_compiler}" in
ec11bdc6 5817 i[3456789]86-*-linux*-no)
a0da8069
NN
5818 # Here host == target, so we don't need to build gcc,
5819 # so we don't want to discard standard headers.
5820 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5821 ;;
5822 *)
5823 # If we're building newlib, use its generic headers last, but search
5824 # for any libc-related directories first (so make it the last -B
5825 # switch).
5826 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
5827
5828 # If we're building libgloss, find the startup file, simulator library
5829 # and linker script.
5830 case " $target_configdirs " in
5831 *" libgloss "*)
5832 # Look for startup file, simulator library and maybe linker script.
5833 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5834 # Look for libnosys.a in case the target needs it.
5835 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5836 # Most targets have the linker script in the source directory.
5837 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5838 ;;
5839 esac
a0da8069
NN
5840 ;;
5841 esac
5842 ;;
5843 esac
5844 ;;
5845esac
45055374
CV
5846case "$target" in
5847*-mingw*)
5848 # Can't be handled as Cygwin above since Mingw does not use newlib.
5849 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' ;;
5850esac
a0da8069 5851
5fbad20a
DD
5852# Allow the user to override the flags for
5853# our build compiler if desired.
5854CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5855
a0da8069
NN
5856# On Canadian crosses, we'll be searching the right directories for
5857# the previously-installed cross compiler, so don't bother to add
5858# flags for directories within the install tree of the compiler
5859# being built; programs in there won't even run.
5860if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5861 # Search for pre-installed headers if nothing else fits.
bba45b8b 5862 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
5863fi
5864
5865if test "x${use_gnu_ld}" = x &&
5866 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5867 # Arrange for us to find uninstalled linker scripts.
b00612cc 5868 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5869fi
5870
a481dbb7
DD
5871# Search for other target-specific linker scripts and such.
5872case "${target}" in
4e206d7e
DB
5873 mep*)
5874 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5875 ;;
5876esac
5877
a0da8069 5878# Makefile fragments.
3e707e94
PB
5879for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5880do
5881 eval fragval=\$$frag
5882 if test $fragval != /dev/null; then
5883 eval $frag=${srcdir}/$fragval
5884 fi
5885done
a0da8069
NN
5886
5887
5888
5889
5890
5891# Miscellanea: directories, flags, etc.
5892
5893
5894
5895
5896
5897
5898
6a9cf61e 5899# Build module lists & subconfigure args.
a0da8069
NN
5900
5901
5902
be01d343
PB
5903# Host module lists & subconfigure args.
5904
5905
5906
5907# Target module lists & subconfigure args.
5908
5909
5910
5911# Build tools.
5912
5913
5914
5915# Generate default definitions for YACC, M4, LEX and other programs that run
5916# on the build machine. These are used if the Makefile can't locate these
5917# programs in objdir.
5918MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5919
5920for ac_prog in 'bison -y' byacc yacc
5921do
c6b750e1 5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5923set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5924echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926if test "${ac_cv_prog_YACC+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5928else
5929 if test -n "$YACC"; then
5930 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5931else
c6b750e1
DJ
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_YACC="$ac_prog"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944done
5945
be01d343
PB
5946fi
5947fi
c6b750e1 5948YACC=$ac_cv_prog_YACC
be01d343 5949if test -n "$YACC"; then
c6b750e1
DJ
5950 echo "$as_me:$LINENO: result: $YACC" >&5
5951echo "${ECHO_T}$YACC" >&6
be01d343 5952else
c6b750e1
DJ
5953 echo "$as_me:$LINENO: result: no" >&5
5954echo "${ECHO_T}no" >&6
be01d343
PB
5955fi
5956
c6b750e1 5957 test -n "$YACC" && break
be01d343
PB
5958done
5959test -n "$YACC" || YACC="$MISSING bison -y"
5960
5961case " $build_configdirs " in
5962 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5963 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5964esac
5965
5966for ac_prog in bison
5967do
c6b750e1 5968 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5969set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5970echo "$as_me:$LINENO: checking for $ac_word" >&5
5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972if test "${ac_cv_prog_BISON+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5974else
5975 if test -n "$BISON"; then
5976 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5977else
c6b750e1
DJ
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 ac_cv_prog_BISON="$ac_prog"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989done
5990done
5991
be01d343
PB
5992fi
5993fi
c6b750e1 5994BISON=$ac_cv_prog_BISON
be01d343 5995if test -n "$BISON"; then
c6b750e1
DJ
5996 echo "$as_me:$LINENO: result: $BISON" >&5
5997echo "${ECHO_T}$BISON" >&6
be01d343 5998else
c6b750e1
DJ
5999 echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6
be01d343
PB
6001fi
6002
c6b750e1 6003 test -n "$BISON" && break
be01d343
PB
6004done
6005test -n "$BISON" || BISON="$MISSING bison"
6006
6007case " $build_configdirs " in
6008 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6009esac
6010
6011for ac_prog in gm4 gnum4 m4
6012do
c6b750e1 6013 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6014set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6015echo "$as_me:$LINENO: checking for $ac_word" >&5
6016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6017if test "${ac_cv_prog_M4+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6019else
6020 if test -n "$M4"; then
6021 ac_cv_prog_M4="$M4" # Let the user override the test.
6022else
c6b750e1
DJ
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_M4="$ac_prog"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035done
6036
be01d343
PB
6037fi
6038fi
c6b750e1 6039M4=$ac_cv_prog_M4
be01d343 6040if test -n "$M4"; then
c6b750e1
DJ
6041 echo "$as_me:$LINENO: result: $M4" >&5
6042echo "${ECHO_T}$M4" >&6
be01d343 6043else
c6b750e1
DJ
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
be01d343
PB
6046fi
6047
c6b750e1 6048 test -n "$M4" && break
be01d343
PB
6049done
6050test -n "$M4" || M4="$MISSING m4"
6051
6052case " $build_configdirs " in
6053 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6054esac
6055
6056for ac_prog in flex lex
6057do
c6b750e1 6058 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6059set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6060echo "$as_me:$LINENO: checking for $ac_word" >&5
6061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6062if test "${ac_cv_prog_LEX+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6064else
6065 if test -n "$LEX"; then
6066 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6067else
c6b750e1
DJ
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_LEX="$ac_prog"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079done
6080done
6081
be01d343
PB
6082fi
6083fi
c6b750e1 6084LEX=$ac_cv_prog_LEX
be01d343 6085if test -n "$LEX"; then
c6b750e1
DJ
6086 echo "$as_me:$LINENO: result: $LEX" >&5
6087echo "${ECHO_T}$LEX" >&6
be01d343 6088else
c6b750e1
DJ
6089 echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
be01d343
PB
6091fi
6092
c6b750e1 6093 test -n "$LEX" && break
be01d343
PB
6094done
6095test -n "$LEX" || LEX="$MISSING flex"
6096
6097case " $build_configdirs " in
6098 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6099 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6100esac
6101
6102for ac_prog in flex
6103do
c6b750e1 6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6105set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6106echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108if test "${ac_cv_prog_FLEX+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6110else
6111 if test -n "$FLEX"; then
6112 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6113else
c6b750e1
DJ
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_FLEX="$ac_prog"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125done
6126done
6127
be01d343
PB
6128fi
6129fi
c6b750e1 6130FLEX=$ac_cv_prog_FLEX
be01d343 6131if test -n "$FLEX"; then
c6b750e1
DJ
6132 echo "$as_me:$LINENO: result: $FLEX" >&5
6133echo "${ECHO_T}$FLEX" >&6
be01d343 6134else
c6b750e1
DJ
6135 echo "$as_me:$LINENO: result: no" >&5
6136echo "${ECHO_T}no" >&6
be01d343
PB
6137fi
6138
c6b750e1 6139 test -n "$FLEX" && break
be01d343
PB
6140done
6141test -n "$FLEX" || FLEX="$MISSING flex"
6142
6143case " $build_configdirs " in
6144 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6145esac
6146
6147for ac_prog in makeinfo
6148do
c6b750e1 6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6150set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6151echo "$as_me:$LINENO: checking for $ac_word" >&5
6152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6155else
6156 if test -n "$MAKEINFO"; then
6157 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6158else
c6b750e1
DJ
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_MAKEINFO="$ac_prog"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171done
6172
be01d343
PB
6173fi
6174fi
c6b750e1 6175MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6176if test -n "$MAKEINFO"; then
c6b750e1
DJ
6177 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6178echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6179else
c6b750e1
DJ
6180 echo "$as_me:$LINENO: result: no" >&5
6181echo "${ECHO_T}no" >&6
be01d343
PB
6182fi
6183
c6b750e1 6184 test -n "$MAKEINFO" && break
be01d343
PB
6185done
6186test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6187
6188case " $build_configdirs " in
6189 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6190 *)
6191
625a61cd 6192 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6193 # higher, else we use the "missing" dummy.
6194 if ${MAKEINFO} --version \
625a61cd 6195 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6196 :
6197 else
6198 MAKEINFO="$MISSING makeinfo"
6199 fi
6200 ;;
6201
6202esac
a0da8069 6203
be01d343 6204# FIXME: expect and dejagnu may become build tools?
a0da8069 6205
be01d343
PB
6206for ac_prog in expect
6207do
c6b750e1 6208 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6209set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6210echo "$as_me:$LINENO: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212if test "${ac_cv_prog_EXPECT+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6214else
6215 if test -n "$EXPECT"; then
6216 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6217else
c6b750e1
DJ
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_EXPECT="$ac_prog"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229done
6230done
6231
be01d343
PB
6232fi
6233fi
c6b750e1 6234EXPECT=$ac_cv_prog_EXPECT
be01d343 6235if test -n "$EXPECT"; then
c6b750e1
DJ
6236 echo "$as_me:$LINENO: result: $EXPECT" >&5
6237echo "${ECHO_T}$EXPECT" >&6
be01d343 6238else
c6b750e1
DJ
6239 echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
be01d343 6241fi
a0da8069 6242
c6b750e1 6243 test -n "$EXPECT" && break
be01d343
PB
6244done
6245test -n "$EXPECT" || EXPECT="expect"
a0da8069 6246
be01d343
PB
6247case " $configdirs " in
6248 *" expect "*)
6249 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6250 ;;
6251esac
a0da8069 6252
be01d343
PB
6253for ac_prog in runtest
6254do
c6b750e1 6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6256set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6257echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6259if test "${ac_cv_prog_RUNTEST+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6261else
6262 if test -n "$RUNTEST"; then
6263 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6264else
c6b750e1
DJ
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272 ac_cv_prog_RUNTEST="$ac_prog"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276done
6277done
6278
be01d343
PB
6279fi
6280fi
c6b750e1 6281RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6282if test -n "$RUNTEST"; then
c6b750e1
DJ
6283 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6284echo "${ECHO_T}$RUNTEST" >&6
be01d343 6285else
c6b750e1
DJ
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
be01d343 6288fi
a0da8069 6289
c6b750e1 6290 test -n "$RUNTEST" && break
be01d343
PB
6291done
6292test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6293
be01d343
PB
6294case " $configdirs " in
6295 *" dejagnu "*)
6b89cc21 6296 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6297 ;;
6298esac
a0da8069
NN
6299
6300
a0da8069 6301# Host tools.
859789af
AC
6302ncn_tool_prefix=
6303test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6304ncn_target_tool_prefix=
6305test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6306
9a819804
AO
6307
6308
6309if test -n "$AR"; then
6310 ac_cv_prog_AR=$AR
6311elif test -n "$ac_cv_prog_AR"; then
6312 AR=$ac_cv_prog_AR
6313fi
6314
6315if test -n "$ac_cv_prog_AR"; then
6316 for ncn_progname in ar; do
6317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6318set dummy ${ncn_progname}; ac_word=$2
6319echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6321if test "${ac_cv_prog_AR+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 if test -n "$AR"; then
6325 ac_cv_prog_AR="$AR" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_AR="${ncn_progname}"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338done
6339done
6340
6341fi
6342fi
6343AR=$ac_cv_prog_AR
6344if test -n "$AR"; then
6345 echo "$as_me:$LINENO: result: $AR" >&5
6346echo "${ECHO_T}$AR" >&6
6347else
6348 echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
6350fi
6351
6352 done
6353fi
6354
6355for ncn_progname in ar; do
05cbd757
PB
6356 if test -n "$ncn_tool_prefix"; then
6357 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6358set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6359echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6361if test "${ac_cv_prog_AR+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6363else
6364 if test -n "$AR"; then
6365 ac_cv_prog_AR="$AR" # Let the user override the test.
6366else
c6b750e1
DJ
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378done
6379done
6380
859789af
AC
6381fi
6382fi
c6b750e1 6383AR=$ac_cv_prog_AR
859789af 6384if test -n "$AR"; then
c6b750e1
DJ
6385 echo "$as_me:$LINENO: result: $AR" >&5
6386echo "${ECHO_T}$AR" >&6
859789af 6387else
c6b750e1
DJ
6388 echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
859789af
AC
6390fi
6391
05cbd757
PB
6392 fi
6393 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6395set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6396echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6398if test "${ac_cv_prog_AR+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6400else
05cbd757
PB
6401 if test -n "$AR"; then
6402 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6403else
c6b750e1
DJ
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6411 ac_cv_prog_AR="${ncn_progname}"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415done
6416done
6417
859789af
AC
6418fi
6419fi
c6b750e1 6420AR=$ac_cv_prog_AR
05cbd757 6421if test -n "$AR"; then
c6b750e1
DJ
6422 echo "$as_me:$LINENO: result: $AR" >&5
6423echo "${ECHO_T}$AR" >&6
859789af 6424else
c6b750e1
DJ
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
859789af 6427fi
c6b750e1 6428
05cbd757
PB
6429 fi
6430 test -n "$ac_cv_prog_AR" && break
6431done
6432
6433if test -z "$ac_cv_prog_AR" ; then
6434 set dummy ar
6435 if test $build = $host ; then
6436 AR="$2"
859789af 6437 else
05cbd757 6438 AR="${ncn_tool_prefix}$2"
859789af 6439 fi
859789af
AC
6440fi
6441
9a819804
AO
6442
6443
6444if test -n "$AS"; then
6445 ac_cv_prog_AS=$AS
6446elif test -n "$ac_cv_prog_AS"; then
6447 AS=$ac_cv_prog_AS
6448fi
6449
6450if test -n "$ac_cv_prog_AS"; then
6451 for ncn_progname in as; do
6452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6453set dummy ${ncn_progname}; ac_word=$2
6454echo "$as_me:$LINENO: checking for $ac_word" >&5
6455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6456if test "${ac_cv_prog_AS+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
6459 if test -n "$AS"; then
6460 ac_cv_prog_AS="$AS" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_AS="${ncn_progname}"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473done
6474done
6475
6476fi
6477fi
6478AS=$ac_cv_prog_AS
6479if test -n "$AS"; then
6480 echo "$as_me:$LINENO: result: $AS" >&5
6481echo "${ECHO_T}$AS" >&6
6482else
6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
6485fi
6486
6487 done
6488fi
6489
6490for ncn_progname in as; do
05cbd757
PB
6491 if test -n "$ncn_tool_prefix"; then
6492 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6493set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6494echo "$as_me:$LINENO: checking for $ac_word" >&5
6495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6496if test "${ac_cv_prog_AS+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6498else
6499 if test -n "$AS"; then
6500 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513done
6514done
6515
859789af
AC
6516fi
6517fi
c6b750e1 6518AS=$ac_cv_prog_AS
859789af 6519if test -n "$AS"; then
c6b750e1
DJ
6520 echo "$as_me:$LINENO: result: $AS" >&5
6521echo "${ECHO_T}$AS" >&6
859789af 6522else
c6b750e1
DJ
6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
859789af
AC
6525fi
6526
05cbd757
PB
6527 fi
6528 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6530set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6531echo "$as_me:$LINENO: checking for $ac_word" >&5
6532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6533if test "${ac_cv_prog_AS+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6535else
05cbd757
PB
6536 if test -n "$AS"; then
6537 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6538else
c6b750e1
DJ
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_AS="${ncn_progname}"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551done
6552
859789af
AC
6553fi
6554fi
c6b750e1 6555AS=$ac_cv_prog_AS
05cbd757 6556if test -n "$AS"; then
c6b750e1
DJ
6557 echo "$as_me:$LINENO: result: $AS" >&5
6558echo "${ECHO_T}$AS" >&6
859789af 6559else
c6b750e1
DJ
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
859789af 6562fi
c6b750e1 6563
05cbd757
PB
6564 fi
6565 test -n "$ac_cv_prog_AS" && break
6566done
6567
6568if test -z "$ac_cv_prog_AS" ; then
6569 set dummy as
6570 if test $build = $host ; then
6571 AS="$2"
859789af 6572 else
05cbd757 6573 AS="${ncn_tool_prefix}$2"
859789af 6574 fi
859789af
AC
6575fi
6576
9a819804
AO
6577
6578
6579if test -n "$DLLTOOL"; then
6580 ac_cv_prog_DLLTOOL=$DLLTOOL
6581elif test -n "$ac_cv_prog_DLLTOOL"; then
6582 DLLTOOL=$ac_cv_prog_DLLTOOL
6583fi
6584
6585if test -n "$ac_cv_prog_DLLTOOL"; then
6586 for ncn_progname in dlltool; do
6587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6588set dummy ${ncn_progname}; ac_word=$2
6589echo "$as_me:$LINENO: checking for $ac_word" >&5
6590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6591if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594 if test -n "$DLLTOOL"; then
6595 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_DLLTOOL="${ncn_progname}"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608done
6609done
6610
6611fi
6612fi
6613DLLTOOL=$ac_cv_prog_DLLTOOL
6614if test -n "$DLLTOOL"; then
6615 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6616echo "${ECHO_T}$DLLTOOL" >&6
6617else
6618 echo "$as_me:$LINENO: result: no" >&5
6619echo "${ECHO_T}no" >&6
6620fi
6621
6622 done
6623fi
6624
6625for ncn_progname in dlltool; do
05cbd757
PB
6626 if test -n "$ncn_tool_prefix"; then
6627 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6628set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6629echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6631if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6633else
6634 if test -n "$DLLTOOL"; then
6635 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6636else
c6b750e1
DJ
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648done
6649done
6650
859789af
AC
6651fi
6652fi
c6b750e1 6653DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6654if test -n "$DLLTOOL"; then
c6b750e1
DJ
6655 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6656echo "${ECHO_T}$DLLTOOL" >&6
859789af 6657else
c6b750e1
DJ
6658 echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6
859789af
AC
6660fi
6661
05cbd757
PB
6662 fi
6663 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6665set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6666echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6670else
05cbd757
PB
6671 if test -n "$DLLTOOL"; then
6672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6673else
c6b750e1
DJ
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_DLLTOOL="${ncn_progname}"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686done
6687
859789af
AC
6688fi
6689fi
c6b750e1 6690DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6691if test -n "$DLLTOOL"; then
c6b750e1
DJ
6692 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6693echo "${ECHO_T}$DLLTOOL" >&6
859789af 6694else
c6b750e1
DJ
6695 echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
859789af 6697fi
c6b750e1 6698
05cbd757
PB
6699 fi
6700 test -n "$ac_cv_prog_DLLTOOL" && break
6701done
6702
6703if test -z "$ac_cv_prog_DLLTOOL" ; then
6704 set dummy dlltool
6705 if test $build = $host ; then
6706 DLLTOOL="$2"
859789af 6707 else
05cbd757 6708 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6709 fi
859789af
AC
6710fi
6711
9a819804
AO
6712
6713
6714if test -n "$LD"; then
6715 ac_cv_prog_LD=$LD
6716elif test -n "$ac_cv_prog_LD"; then
6717 LD=$ac_cv_prog_LD
6718fi
6719
6720if test -n "$ac_cv_prog_LD"; then
6721 for ncn_progname in ld; do
6722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6723set dummy ${ncn_progname}; ac_word=$2
6724echo "$as_me:$LINENO: checking for $ac_word" >&5
6725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6726if test "${ac_cv_prog_LD+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728else
6729 if test -n "$LD"; then
6730 ac_cv_prog_LD="$LD" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_LD="${ncn_progname}"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744done
6745
6746fi
6747fi
6748LD=$ac_cv_prog_LD
6749if test -n "$LD"; then
6750 echo "$as_me:$LINENO: result: $LD" >&5
6751echo "${ECHO_T}$LD" >&6
6752else
6753 echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6
6755fi
6756
6757 done
6758fi
6759
6760for ncn_progname in ld; do
05cbd757
PB
6761 if test -n "$ncn_tool_prefix"; then
6762 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6763set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6764echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6766if test "${ac_cv_prog_LD+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6768else
6769 if test -n "$LD"; then
6770 ac_cv_prog_LD="$LD" # Let the user override the test.
6771else
c6b750e1
DJ
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784done
6785
859789af
AC
6786fi
6787fi
c6b750e1 6788LD=$ac_cv_prog_LD
859789af 6789if test -n "$LD"; then
c6b750e1
DJ
6790 echo "$as_me:$LINENO: result: $LD" >&5
6791echo "${ECHO_T}$LD" >&6
859789af 6792else
c6b750e1
DJ
6793 echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6
859789af
AC
6795fi
6796
05cbd757
PB
6797 fi
6798 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6800set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6801echo "$as_me:$LINENO: checking for $ac_word" >&5
6802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6803if test "${ac_cv_prog_LD+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6805else
05cbd757
PB
6806 if test -n "$LD"; then
6807 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6808else
c6b750e1
DJ
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6816 ac_cv_prog_LD="${ncn_progname}"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821done
6822
859789af
AC
6823fi
6824fi
c6b750e1 6825LD=$ac_cv_prog_LD
05cbd757 6826if test -n "$LD"; then
c6b750e1
DJ
6827 echo "$as_me:$LINENO: result: $LD" >&5
6828echo "${ECHO_T}$LD" >&6
859789af 6829else
c6b750e1
DJ
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
859789af 6832fi
c6b750e1 6833
05cbd757
PB
6834 fi
6835 test -n "$ac_cv_prog_LD" && break
6836done
6837
6838if test -z "$ac_cv_prog_LD" ; then
6839 set dummy ld
6840 if test $build = $host ; then
6841 LD="$2"
859789af 6842 else
05cbd757 6843 LD="${ncn_tool_prefix}$2"
859789af 6844 fi
859789af
AC
6845fi
6846
9a819804
AO
6847
6848
6849if test -n "$LIPO"; then
6850 ac_cv_prog_LIPO=$LIPO
6851elif test -n "$ac_cv_prog_LIPO"; then
6852 LIPO=$ac_cv_prog_LIPO
6853fi
6854
6855if test -n "$ac_cv_prog_LIPO"; then
6856 for ncn_progname in lipo; do
6857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6858set dummy ${ncn_progname}; ac_word=$2
6859echo "$as_me:$LINENO: checking for $ac_word" >&5
6860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6861if test "${ac_cv_prog_LIPO+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864 if test -n "$LIPO"; then
6865 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_LIPO="${ncn_progname}"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879done
6880
6881fi
6882fi
6883LIPO=$ac_cv_prog_LIPO
6884if test -n "$LIPO"; then
6885 echo "$as_me:$LINENO: result: $LIPO" >&5
6886echo "${ECHO_T}$LIPO" >&6
6887else
6888 echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6
6890fi
6891
6892 done
6893fi
6894
6895for ncn_progname in lipo; do
be01d343
PB
6896 if test -n "$ncn_tool_prefix"; then
6897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6898set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6899echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6901if test "${ac_cv_prog_LIPO+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6903else
6904 if test -n "$LIPO"; then
6905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6906else
c6b750e1
DJ
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918done
6919done
6920
be01d343
PB
6921fi
6922fi
c6b750e1 6923LIPO=$ac_cv_prog_LIPO
be01d343 6924if test -n "$LIPO"; then
c6b750e1
DJ
6925 echo "$as_me:$LINENO: result: $LIPO" >&5
6926echo "${ECHO_T}$LIPO" >&6
be01d343 6927else
c6b750e1
DJ
6928 echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6
be01d343
PB
6930fi
6931
6932 fi
6933 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6935set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6936echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6938if test "${ac_cv_prog_LIPO+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6940else
6941 if test -n "$LIPO"; then
6942 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6943else
c6b750e1
DJ
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_LIPO="${ncn_progname}"
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955done
6956done
6957
be01d343
PB
6958fi
6959fi
c6b750e1 6960LIPO=$ac_cv_prog_LIPO
be01d343 6961if test -n "$LIPO"; then
c6b750e1
DJ
6962 echo "$as_me:$LINENO: result: $LIPO" >&5
6963echo "${ECHO_T}$LIPO" >&6
be01d343 6964else
c6b750e1
DJ
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
be01d343 6967fi
c6b750e1 6968
be01d343
PB
6969 fi
6970 test -n "$ac_cv_prog_LIPO" && break
6971done
6972
6973if test -z "$ac_cv_prog_LIPO" ; then
6974 set dummy lipo
6975 if test $build = $host ; then
6976 LIPO="$2"
6977 else
6978 LIPO="${ncn_tool_prefix}$2"
6979 fi
6980fi
6981
9a819804
AO
6982
6983
6984if test -n "$NM"; then
6985 ac_cv_prog_NM=$NM
6986elif test -n "$ac_cv_prog_NM"; then
6987 NM=$ac_cv_prog_NM
6988fi
6989
6990if test -n "$ac_cv_prog_NM"; then
6991 for ncn_progname in nm; do
6992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6993set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6994echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6996if test "${ac_cv_prog_NM+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6998else
6999 if test -n "$NM"; then
7000 ac_cv_prog_NM="$NM" # Let the user override the test.
7001else
c6b750e1
DJ
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7009 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015
859789af
AC
7016fi
7017fi
c6b750e1 7018NM=$ac_cv_prog_NM
859789af 7019if test -n "$NM"; then
c6b750e1
DJ
7020 echo "$as_me:$LINENO: result: $NM" >&5
7021echo "${ECHO_T}$NM" >&6
859789af 7022else
c6b750e1
DJ
7023 echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6
859789af
AC
7025fi
7026
9a819804
AO
7027 done
7028fi
7029
7030for ncn_progname in nm; do
7031 if test -n "$ncn_tool_prefix"; then
7032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7033set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7034echo "$as_me:$LINENO: checking for $ac_word" >&5
7035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7036if test "${ac_cv_prog_NM+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7038else
05cbd757
PB
7039 if test -n "$NM"; then
7040 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7041else
c6b750e1
DJ
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7049 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054done
7055
859789af
AC
7056fi
7057fi
c6b750e1 7058NM=$ac_cv_prog_NM
05cbd757 7059if test -n "$NM"; then
c6b750e1
DJ
7060 echo "$as_me:$LINENO: result: $NM" >&5
7061echo "${ECHO_T}$NM" >&6
859789af 7062else
c6b750e1
DJ
7063 echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6
859789af 7065fi
c6b750e1 7066
05cbd757 7067 fi
9a819804
AO
7068 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7070set dummy ${ncn_progname}; ac_word=$2
7071echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7073if test "${ac_cv_prog_NM+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 if test -n "$NM"; then
7077 ac_cv_prog_NM="$NM" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_NM="${ncn_progname}"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090done
7091done
7092
7093fi
7094fi
7095NM=$ac_cv_prog_NM
7096if test -n "$NM"; then
7097 echo "$as_me:$LINENO: result: $NM" >&5
7098echo "${ECHO_T}$NM" >&6
7099else
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102fi
7103
7104 fi
7105 test -n "$ac_cv_prog_NM" && break
7106done
7107
7108if test -z "$ac_cv_prog_NM" ; then
7109 set dummy nm
7110 if test $build = $host ; then
7111 NM="$2"
7112 else
7113 NM="${ncn_tool_prefix}$2"
7114 fi
7115fi
7116
7117
7118
7119if test -n "$RANLIB"; then
7120 ac_cv_prog_RANLIB=$RANLIB
7121elif test -n "$ac_cv_prog_RANLIB"; then
7122 RANLIB=$ac_cv_prog_RANLIB
7123fi
7124
7125if test -n "$ac_cv_prog_RANLIB"; then
7126 for ncn_progname in ranlib; do
7127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7128set dummy ${ncn_progname}; ac_word=$2
7129echo "$as_me:$LINENO: checking for $ac_word" >&5
7130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7131if test "${ac_cv_prog_RANLIB+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 if test -n "$RANLIB"; then
7135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_RANLIB="${ncn_progname}"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150
7151fi
7152fi
7153RANLIB=$ac_cv_prog_RANLIB
7154if test -n "$RANLIB"; then
7155 echo "$as_me:$LINENO: result: $RANLIB" >&5
7156echo "${ECHO_T}$RANLIB" >&6
7157else
7158 echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6
7160fi
7161
7162 done
7163fi
859789af 7164
9a819804 7165for ncn_progname in ranlib; do
05cbd757
PB
7166 if test -n "$ncn_tool_prefix"; then
7167 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7168set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7169echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7171if test "${ac_cv_prog_RANLIB+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7173else
7174 if test -n "$RANLIB"; then
7175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7176else
c6b750e1
DJ
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188done
7189done
7190
859789af
AC
7191fi
7192fi
c6b750e1 7193RANLIB=$ac_cv_prog_RANLIB
859789af 7194if test -n "$RANLIB"; then
c6b750e1
DJ
7195 echo "$as_me:$LINENO: result: $RANLIB" >&5
7196echo "${ECHO_T}$RANLIB" >&6
859789af 7197else
c6b750e1
DJ
7198 echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6
859789af
AC
7200fi
7201
05cbd757
PB
7202 fi
7203 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7205set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7206echo "$as_me:$LINENO: checking for $ac_word" >&5
7207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7208if test "${ac_cv_prog_RANLIB+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7210else
05cbd757
PB
7211 if test -n "$RANLIB"; then
7212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7213else
c6b750e1
DJ
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_RANLIB="${ncn_progname}"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227
859789af
AC
7228fi
7229fi
c6b750e1 7230RANLIB=$ac_cv_prog_RANLIB
05cbd757 7231if test -n "$RANLIB"; then
c6b750e1
DJ
7232 echo "$as_me:$LINENO: result: $RANLIB" >&5
7233echo "${ECHO_T}$RANLIB" >&6
859789af 7234else
c6b750e1
DJ
7235 echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6
859789af 7237fi
c6b750e1 7238
859789af 7239 fi
05cbd757
PB
7240 test -n "$ac_cv_prog_RANLIB" && break
7241done
7242
7243if test -z "$ac_cv_prog_RANLIB" ; then
7244 RANLIB=":"
859789af
AC
7245fi
7246
9a819804
AO
7247
7248
7249if test -n "$STRIP"; then
7250 ac_cv_prog_STRIP=$STRIP
7251elif test -n "$ac_cv_prog_STRIP"; then
7252 STRIP=$ac_cv_prog_STRIP
7253fi
7254
7255if test -n "$ac_cv_prog_STRIP"; then
7256 for ncn_progname in strip; do
7257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7258set dummy ${ncn_progname}; ac_word=$2
7259echo "$as_me:$LINENO: checking for $ac_word" >&5
7260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7261if test "${ac_cv_prog_STRIP+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264 if test -n "$STRIP"; then
7265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274 ac_cv_prog_STRIP="${ncn_progname}"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279done
7280
7281fi
7282fi
7283STRIP=$ac_cv_prog_STRIP
7284if test -n "$STRIP"; then
7285 echo "$as_me:$LINENO: result: $STRIP" >&5
7286echo "${ECHO_T}$STRIP" >&6
7287else
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
7290fi
7291
7292 done
7293fi
7294
7295for ncn_progname in strip; do
be01d343
PB
7296 if test -n "$ncn_tool_prefix"; then
7297 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7298set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7299echo "$as_me:$LINENO: checking for $ac_word" >&5
7300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7301if test "${ac_cv_prog_STRIP+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7303else
7304 if test -n "$STRIP"; then
7305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7306else
c6b750e1
DJ
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319done
7320
be01d343
PB
7321fi
7322fi
c6b750e1 7323STRIP=$ac_cv_prog_STRIP
be01d343 7324if test -n "$STRIP"; then
c6b750e1
DJ
7325 echo "$as_me:$LINENO: result: $STRIP" >&5
7326echo "${ECHO_T}$STRIP" >&6
be01d343 7327else
c6b750e1
DJ
7328 echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6
be01d343
PB
7330fi
7331
7332 fi
7333 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7335set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7336echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338if test "${ac_cv_prog_STRIP+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7340else
7341 if test -n "$STRIP"; then
7342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7343else
c6b750e1
DJ
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_STRIP="${ncn_progname}"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355done
7356done
7357
be01d343
PB
7358fi
7359fi
c6b750e1 7360STRIP=$ac_cv_prog_STRIP
be01d343 7361if test -n "$STRIP"; then
c6b750e1
DJ
7362 echo "$as_me:$LINENO: result: $STRIP" >&5
7363echo "${ECHO_T}$STRIP" >&6
be01d343 7364else
c6b750e1
DJ
7365 echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6
be01d343 7367fi
c6b750e1 7368
be01d343
PB
7369 fi
7370 test -n "$ac_cv_prog_STRIP" && break
7371done
7372
7373if test -z "$ac_cv_prog_STRIP" ; then
7374 STRIP=":"
7375fi
7376
9a819804
AO
7377
7378
7379if test -n "$WINDRES"; then
7380 ac_cv_prog_WINDRES=$WINDRES
7381elif test -n "$ac_cv_prog_WINDRES"; then
7382 WINDRES=$ac_cv_prog_WINDRES
7383fi
7384
7385if test -n "$ac_cv_prog_WINDRES"; then
7386 for ncn_progname in windres; do
7387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7388set dummy ${ncn_progname}; ac_word=$2
7389echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391if test "${ac_cv_prog_WINDRES+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 if test -n "$WINDRES"; then
7395 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_WINDRES="${ncn_progname}"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409done
7410
7411fi
7412fi
7413WINDRES=$ac_cv_prog_WINDRES
7414if test -n "$WINDRES"; then
7415 echo "$as_me:$LINENO: result: $WINDRES" >&5
7416echo "${ECHO_T}$WINDRES" >&6
7417else
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
7420fi
7421
7422 done
7423fi
7424
7425for ncn_progname in windres; do
05cbd757
PB
7426 if test -n "$ncn_tool_prefix"; then
7427 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7428set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7429echo "$as_me:$LINENO: checking for $ac_word" >&5
7430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7431if test "${ac_cv_prog_WINDRES+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7433else
7434 if test -n "$WINDRES"; then
7435 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7436else
c6b750e1
DJ
7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448done
7449done
7450
859789af
AC
7451fi
7452fi
c6b750e1 7453WINDRES=$ac_cv_prog_WINDRES
859789af 7454if test -n "$WINDRES"; then
c6b750e1
DJ
7455 echo "$as_me:$LINENO: result: $WINDRES" >&5
7456echo "${ECHO_T}$WINDRES" >&6
859789af 7457else
c6b750e1
DJ
7458 echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6
859789af
AC
7460fi
7461
05cbd757
PB
7462 fi
7463 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7465set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7466echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468if test "${ac_cv_prog_WINDRES+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7470else
05cbd757
PB
7471 if test -n "$WINDRES"; then
7472 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7473else
c6b750e1
DJ
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_WINDRES="${ncn_progname}"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487
859789af
AC
7488fi
7489fi
c6b750e1 7490WINDRES=$ac_cv_prog_WINDRES
05cbd757 7491if test -n "$WINDRES"; then
c6b750e1
DJ
7492 echo "$as_me:$LINENO: result: $WINDRES" >&5
7493echo "${ECHO_T}$WINDRES" >&6
859789af 7494else
c6b750e1
DJ
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
859789af 7497fi
c6b750e1 7498
05cbd757
PB
7499 fi
7500 test -n "$ac_cv_prog_WINDRES" && break
7501done
7502
7503if test -z "$ac_cv_prog_WINDRES" ; then
7504 set dummy windres
7505 if test $build = $host ; then
7506 WINDRES="$2"
859789af 7507 else
05cbd757 7508 WINDRES="${ncn_tool_prefix}$2"
859789af 7509 fi
859789af
AC
7510fi
7511
9a819804
AO
7512
7513
0c24b341
NC
7514if test -n "$WINDMC"; then
7515 ac_cv_prog_WINDMC=$WINDMC
7516elif test -n "$ac_cv_prog_WINDMC"; then
7517 WINDMC=$ac_cv_prog_WINDMC
7518fi
7519
7520if test -n "$ac_cv_prog_WINDMC"; then
7521 for ncn_progname in windmc; do
7522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7523set dummy ${ncn_progname}; ac_word=$2
7524echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526if test "${ac_cv_prog_WINDMC+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 if test -n "$WINDMC"; then
7530 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_WINDMC="${ncn_progname}"
7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543done
7544done
7545
7546fi
7547fi
7548WINDMC=$ac_cv_prog_WINDMC
7549if test -n "$WINDMC"; then
7550 echo "$as_me:$LINENO: result: $WINDMC" >&5
7551echo "${ECHO_T}$WINDMC" >&6
7552else
7553 echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
7555fi
7556
7557 done
7558fi
7559
7560for ncn_progname in windmc; do
7561 if test -n "$ncn_tool_prefix"; then
7562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7563set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7564echo "$as_me:$LINENO: checking for $ac_word" >&5
7565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7566if test "${ac_cv_prog_WINDMC+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569 if test -n "$WINDMC"; then
7570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583done
7584done
7585
7586fi
7587fi
7588WINDMC=$ac_cv_prog_WINDMC
7589if test -n "$WINDMC"; then
7590 echo "$as_me:$LINENO: result: $WINDMC" >&5
7591echo "${ECHO_T}$WINDMC" >&6
7592else
7593 echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6
7595fi
7596
7597 fi
7598 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7600set dummy ${ncn_progname}; ac_word=$2
7601echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603if test "${ac_cv_prog_WINDMC+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606 if test -n "$WINDMC"; then
7607 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7608else
7609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_WINDMC="${ncn_progname}"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622
7623fi
7624fi
7625WINDMC=$ac_cv_prog_WINDMC
7626if test -n "$WINDMC"; then
7627 echo "$as_me:$LINENO: result: $WINDMC" >&5
7628echo "${ECHO_T}$WINDMC" >&6
7629else
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
7632fi
7633
7634 fi
7635 test -n "$ac_cv_prog_WINDMC" && break
7636done
7637
7638if test -z "$ac_cv_prog_WINDMC" ; then
7639 set dummy windmc
7640 if test $build = $host ; then
7641 WINDMC="$2"
7642 else
7643 WINDMC="${ncn_tool_prefix}$2"
7644 fi
7645fi
7646
7647
7648
9a819804
AO
7649if test -n "$OBJCOPY"; then
7650 ac_cv_prog_OBJCOPY=$OBJCOPY
7651elif test -n "$ac_cv_prog_OBJCOPY"; then
7652 OBJCOPY=$ac_cv_prog_OBJCOPY
7653fi
7654
7655if test -n "$ac_cv_prog_OBJCOPY"; then
7656 for ncn_progname in objcopy; do
7657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7658set dummy ${ncn_progname}; ac_word=$2
7659echo "$as_me:$LINENO: checking for $ac_word" >&5
7660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7661if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663else
7664 if test -n "$OBJCOPY"; then
7665 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_OBJCOPY="${ncn_progname}"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678done
7679done
7680
7681fi
7682fi
7683OBJCOPY=$ac_cv_prog_OBJCOPY
7684if test -n "$OBJCOPY"; then
7685 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7686echo "${ECHO_T}$OBJCOPY" >&6
7687else
7688 echo "$as_me:$LINENO: result: no" >&5
7689echo "${ECHO_T}no" >&6
7690fi
7691
7692 done
7693fi
7694
7695for ncn_progname in objcopy; do
05cbd757
PB
7696 if test -n "$ncn_tool_prefix"; then
7697 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7698set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7699echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7701if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7703else
7704 if test -n "$OBJCOPY"; then
7705 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7706else
c6b750e1
DJ
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719done
7720
859789af
AC
7721fi
7722fi
c6b750e1 7723OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7724if test -n "$OBJCOPY"; then
c6b750e1
DJ
7725 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7726echo "${ECHO_T}$OBJCOPY" >&6
859789af 7727else
c6b750e1
DJ
7728 echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6
859789af
AC
7730fi
7731
05cbd757
PB
7732 fi
7733 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7735set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7736echo "$as_me:$LINENO: checking for $ac_word" >&5
7737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7738if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7740else
05cbd757
PB
7741 if test -n "$OBJCOPY"; then
7742 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7743else
c6b750e1
DJ
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_OBJCOPY="${ncn_progname}"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756done
7757
859789af
AC
7758fi
7759fi
c6b750e1 7760OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7761if test -n "$OBJCOPY"; then
c6b750e1
DJ
7762 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7763echo "${ECHO_T}$OBJCOPY" >&6
859789af 7764else
c6b750e1
DJ
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
859789af 7767fi
c6b750e1 7768
05cbd757
PB
7769 fi
7770 test -n "$ac_cv_prog_OBJCOPY" && break
7771done
7772
7773if test -z "$ac_cv_prog_OBJCOPY" ; then
7774 set dummy objcopy
7775 if test $build = $host ; then
7776 OBJCOPY="$2"
859789af 7777 else
05cbd757 7778 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7779 fi
859789af
AC
7780fi
7781
9a819804
AO
7782
7783
7784if test -n "$OBJDUMP"; then
7785 ac_cv_prog_OBJDUMP=$OBJDUMP
7786elif test -n "$ac_cv_prog_OBJDUMP"; then
7787 OBJDUMP=$ac_cv_prog_OBJDUMP
7788fi
7789
7790if test -n "$ac_cv_prog_OBJDUMP"; then
7791 for ncn_progname in objdump; do
7792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7793set dummy ${ncn_progname}; ac_word=$2
7794echo "$as_me:$LINENO: checking for $ac_word" >&5
7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7796if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 if test -n "$OBJDUMP"; then
7800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7801else
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_OBJDUMP="${ncn_progname}"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814done
7815
7816fi
7817fi
7818OBJDUMP=$ac_cv_prog_OBJDUMP
7819if test -n "$OBJDUMP"; then
7820 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7821echo "${ECHO_T}$OBJDUMP" >&6
7822else
7823 echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
7825fi
7826
7827 done
7828fi
7829
7830for ncn_progname in objdump; do
05cbd757
PB
7831 if test -n "$ncn_tool_prefix"; then
7832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7833set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7834echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7838else
7839 if test -n "$OBJDUMP"; then
7840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7841else
c6b750e1
DJ
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853done
7854done
7855
859789af
AC
7856fi
7857fi
c6b750e1 7858OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7859if test -n "$OBJDUMP"; then
c6b750e1
DJ
7860 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7861echo "${ECHO_T}$OBJDUMP" >&6
859789af 7862else
c6b750e1
DJ
7863 echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6
859789af
AC
7865fi
7866
05cbd757
PB
7867 fi
7868 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7870set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7871echo "$as_me:$LINENO: checking for $ac_word" >&5
7872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7873if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7875else
05cbd757
PB
7876 if test -n "$OBJDUMP"; then
7877 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7878else
c6b750e1
DJ
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_OBJDUMP="${ncn_progname}"
7887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890done
7891done
7892
859789af
AC
7893fi
7894fi
c6b750e1 7895OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7896if test -n "$OBJDUMP"; then
c6b750e1
DJ
7897 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7898echo "${ECHO_T}$OBJDUMP" >&6
859789af 7899else
c6b750e1
DJ
7900 echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
859789af 7902fi
c6b750e1 7903
05cbd757
PB
7904 fi
7905 test -n "$ac_cv_prog_OBJDUMP" && break
7906done
7907
7908if test -z "$ac_cv_prog_OBJDUMP" ; then
7909 set dummy objdump
7910 if test $build = $host ; then
7911 OBJDUMP="$2"
859789af 7912 else
05cbd757 7913 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7914 fi
859789af
AC
7915fi
7916
a0da8069
NN
7917
7918
7919
7920
7921
7922
be01d343 7923# Target tools.
c6b750e1 7924
2429c060
PB
7925# Check whether --with-build-time-tools or --without-build-time-tools was given.
7926if test "${with_build_time_tools+set}" = set; then
7927 withval="$with_build_time_tools"
7928 case x"$withval" in
7929 x/*) ;;
7930 *)
7931 with_build_time_tools=
c6b750e1
DJ
7932 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7933echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7934 ;;
7935 esac
859789af 7936else
2429c060 7937 with_build_time_tools=
c6b750e1 7938fi;
859789af 7939
9a819804
AO
7940
7941
7942if test -n "$CC_FOR_TARGET"; then
7943 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7944elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7945 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7946fi
7947
7948if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7949 for ncn_progname in cc gcc; do
7950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7951set dummy ${ncn_progname}; ac_word=$2
7952echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7954if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957 if test -n "$CC_FOR_TARGET"; then
7958 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7959else
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973
7974fi
7975fi
7976CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7977if test -n "$CC_FOR_TARGET"; then
7978 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7979echo "${ECHO_T}$CC_FOR_TARGET" >&6
7980else
7981 echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6
7983fi
7984
7985 done
7986fi
7987
7988if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7989 for ncn_progname in cc gcc; do
c6b750e1
DJ
7990 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7991echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7992 if test -x $with_build_time_tools/${ncn_progname}; then
7993 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7994 echo "$as_me:$LINENO: result: yes" >&5
7995echo "${ECHO_T}yes" >&6
cac3d6c4 7996 break
2429c060 7997 else
c6b750e1
DJ
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
cac3d6c4
CM
8000 fi
8001 done
55db4b87
PB
8002fi
8003
2429c060
PB
8004if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8005 for ncn_progname in cc gcc; do
8006 if test -n "$ncn_target_tool_prefix"; then
8007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8008set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8009echo "$as_me:$LINENO: checking for $ac_word" >&5
8010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8011if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8013else
8014 if test -n "$CC_FOR_TARGET"; then
8015 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8016else
c6b750e1
DJ
8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029done
8030
55db4b87
PB
8031fi
8032fi
c6b750e1 8033CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8034if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8035 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8036echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8037else
c6b750e1
DJ
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
55db4b87
PB
8040fi
8041
2429c060
PB
8042 fi
8043 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8045set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8046echo "$as_me:$LINENO: checking for $ac_word" >&5
8047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8048if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8050else
05cbd757
PB
8051 if test -n "$CC_FOR_TARGET"; then
8052 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8053else
c6b750e1
DJ
8054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065done
8066done
8067
55db4b87
PB
8068fi
8069fi
c6b750e1 8070CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8071if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8072 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8073echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8074else
c6b750e1
DJ
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
55db4b87 8077fi
c6b750e1 8078
2429c060
PB
8079 fi
8080 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8081 done
8082fi
c6b750e1 8083
05cbd757
PB
8084if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8085 set dummy cc gcc
8086 if test $build = $target ; then
8087 CC_FOR_TARGET="$2"
55db4b87 8088 else
05cbd757 8089 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8090 fi
d3f5afc4
MS
8091else
8092 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8093fi
8094
9a819804
AO
8095
8096
8097if test -n "$CXX_FOR_TARGET"; then
8098 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8099elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8100 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8101fi
8102
8103if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8104 for ncn_progname in c++ g++ cxx gxx; do
8105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8106set dummy ${ncn_progname}; ac_word=$2
8107echo "$as_me:$LINENO: checking for $ac_word" >&5
8108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8109if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111else
8112 if test -n "$CXX_FOR_TARGET"; then
8113 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127done
8128
8129fi
8130fi
8131CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8132if test -n "$CXX_FOR_TARGET"; then
8133 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8134echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8135else
8136 echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6
8138fi
8139
8140 done
8141fi
8142
8143if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8144 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8145 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8146echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8147 if test -x $with_build_time_tools/${ncn_progname}; then
8148 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
2429c060
PB
8151 break
8152 else
c6b750e1
DJ
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
2429c060
PB
8155 fi
8156 done
8157fi
8158
8159if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8160 for ncn_progname in c++ g++ cxx gxx; do
8161 if test -n "$ncn_target_tool_prefix"; then
8162 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8163set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8164echo "$as_me:$LINENO: checking for $ac_word" >&5
8165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8166if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8168else
8169 if test -n "$CXX_FOR_TARGET"; then
8170 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8171else
c6b750e1
DJ
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184done
8185
55db4b87
PB
8186fi
8187fi
c6b750e1 8188CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8189if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8190 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8191echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8192else
c6b750e1
DJ
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
55db4b87
PB
8195fi
8196
2429c060
PB
8197 fi
8198 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8200set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8201echo "$as_me:$LINENO: checking for $ac_word" >&5
8202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8203if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8205else
05cbd757
PB
8206 if test -n "$CXX_FOR_TARGET"; then
8207 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8208else
c6b750e1
DJ
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220done
8221done
8222
55db4b87
PB
8223fi
8224fi
c6b750e1 8225CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8226if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8227 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8228echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8229else
c6b750e1
DJ
8230 echo "$as_me:$LINENO: result: no" >&5
8231echo "${ECHO_T}no" >&6
55db4b87 8232fi
c6b750e1 8233
2429c060
PB
8234 fi
8235 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8236 done
8237fi
c6b750e1 8238
05cbd757
PB
8239if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8240 set dummy c++ g++ cxx gxx
8241 if test $build = $target ; then
8242 CXX_FOR_TARGET="$2"
55db4b87 8243 else
05cbd757 8244 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8245 fi
d3f5afc4
MS
8246else
8247 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8248fi
8249
9a819804
AO
8250
8251
8252if test -n "$GCC_FOR_TARGET"; then
8253 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8254elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8255 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8256fi
8257
8258if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8259 for ncn_progname in gcc; do
8260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8261set dummy ${ncn_progname}; ac_word=$2
8262echo "$as_me:$LINENO: checking for $ac_word" >&5
8263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8264if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 if test -n "$GCC_FOR_TARGET"; then
8268 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281done
8282done
8283
8284fi
8285fi
8286GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8287if test -n "$GCC_FOR_TARGET"; then
8288 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8289echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8290else
8291 echo "$as_me:$LINENO: result: no" >&5
8292echo "${ECHO_T}no" >&6
8293fi
8294
8295 done
8296fi
8297
8298if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8299 for ncn_progname in gcc; do
c6b750e1
DJ
8300 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8301echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8302 if test -x $with_build_time_tools/${ncn_progname}; then
8303 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8304 echo "$as_me:$LINENO: result: yes" >&5
8305echo "${ECHO_T}yes" >&6
2429c060
PB
8306 break
8307 else
c6b750e1
DJ
8308 echo "$as_me:$LINENO: result: no" >&5
8309echo "${ECHO_T}no" >&6
2429c060
PB
8310 fi
8311 done
8312fi
8313
8314if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8315 for ncn_progname in gcc; do
8316 if test -n "$ncn_target_tool_prefix"; then
8317 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8318set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8319echo "$as_me:$LINENO: checking for $ac_word" >&5
8320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8321if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8323else
2429c060
PB
8324 if test -n "$GCC_FOR_TARGET"; then
8325 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8326else
c6b750e1
DJ
8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338done
8339done
8340
55db4b87
PB
8341fi
8342fi
c6b750e1 8343GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8344if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8345 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8346echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8347else
c6b750e1
DJ
8348 echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6
55db4b87
PB
8350fi
8351
2429c060
PB
8352 fi
8353 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8355set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8356echo "$as_me:$LINENO: checking for $ac_word" >&5
8357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8358if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8360else
05cbd757
PB
8361 if test -n "$GCC_FOR_TARGET"; then
8362 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8363else
c6b750e1
DJ
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375done
8376done
8377
55db4b87
PB
8378fi
8379fi
c6b750e1 8380GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8381if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8382 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8383echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8384else
c6b750e1
DJ
8385 echo "$as_me:$LINENO: result: no" >&5
8386echo "${ECHO_T}no" >&6
55db4b87 8387fi
c6b750e1 8388
2429c060
PB
8389 fi
8390 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8391 done
8392fi
c6b750e1 8393
05cbd757
PB
8394if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8395 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8396else
8397 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8398fi
8399
9a819804
AO
8400
8401
8402if test -n "$GCJ_FOR_TARGET"; then
8403 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8404elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8405 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8406fi
8407
8408if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8409 for ncn_progname in gcj; do
8410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8411set dummy ${ncn_progname}; ac_word=$2
8412echo "$as_me:$LINENO: checking for $ac_word" >&5
8413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8414if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417 if test -n "$GCJ_FOR_TARGET"; then
8418 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431done
8432done
8433
8434fi
8435fi
8436GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8437if test -n "$GCJ_FOR_TARGET"; then
8438 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8439echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8440else
8441 echo "$as_me:$LINENO: result: no" >&5
8442echo "${ECHO_T}no" >&6
8443fi
8444
8445 done
8446fi
8447
8448if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8449 for ncn_progname in gcj; do
c6b750e1
DJ
8450 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8451echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8452 if test -x $with_build_time_tools/${ncn_progname}; then
8453 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8454 echo "$as_me:$LINENO: result: yes" >&5
8455echo "${ECHO_T}yes" >&6
2429c060
PB
8456 break
8457 else
c6b750e1
DJ
8458 echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6
2429c060
PB
8460 fi
8461 done
8462fi
8463
8464if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8465 for ncn_progname in gcj; do
8466 if test -n "$ncn_target_tool_prefix"; then
8467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8469echo "$as_me:$LINENO: checking for $ac_word" >&5
8470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8471if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8473else
8474 if test -n "$GCJ_FOR_TARGET"; then
8475 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8476else
c6b750e1
DJ
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488done
8489done
8490
55db4b87
PB
8491fi
8492fi
9a819804
AO
8493GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8494if test -n "$GCJ_FOR_TARGET"; then
8495 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8496echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8497else
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
8500fi
8501
8502 fi
8503 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8505set dummy ${ncn_progname}; ac_word=$2
8506echo "$as_me:$LINENO: checking for $ac_word" >&5
8507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8508if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511 if test -n "$GCJ_FOR_TARGET"; then
8512 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8513else
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525done
8526done
8527
8528fi
8529fi
8530GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8531if test -n "$GCJ_FOR_TARGET"; then
8532 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8533echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8534else
8535 echo "$as_me:$LINENO: result: no" >&5
8536echo "${ECHO_T}no" >&6
8537fi
8538
8539 fi
8540 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8541 done
8542fi
8543
8544if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8545 set dummy gcj
8546 if test $build = $target ; then
8547 GCJ_FOR_TARGET="$2"
8548 else
8549 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8550 fi
d3f5afc4
MS
8551else
8552 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8553fi
8554
8555
8556
8557if test -n "$GFORTRAN_FOR_TARGET"; then
8558 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8559elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8560 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8561fi
8562
9a819804
AO
8563if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8564 for ncn_progname in gfortran; do
8565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8566set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8567echo "$as_me:$LINENO: checking for $ac_word" >&5
8568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8569if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8570 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8571else
9a819804
AO
8572 if test -n "$GFORTRAN_FOR_TARGET"; then
8573 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8574else
c6b750e1
DJ
8575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576for as_dir in $PATH
8577do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8582 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586done
8587done
8588
55db4b87
PB
8589fi
8590fi
9a819804
AO
8591GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8592if test -n "$GFORTRAN_FOR_TARGET"; then
8593 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8594echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8595else
c6b750e1
DJ
8596 echo "$as_me:$LINENO: result: no" >&5
8597echo "${ECHO_T}no" >&6
55db4b87 8598fi
c6b750e1 8599
2429c060
PB
8600 done
8601fi
c6b750e1 8602
9a819804 8603if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8604 for ncn_progname in gfortran; do
c6b750e1
DJ
8605 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8606echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8607 if test -x $with_build_time_tools/${ncn_progname}; then
8608 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8609 echo "$as_me:$LINENO: result: yes" >&5
8610echo "${ECHO_T}yes" >&6
2429c060
PB
8611 break
8612 else
c6b750e1
DJ
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
2429c060
PB
8615 fi
8616 done
8617fi
8618
8619if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8620 for ncn_progname in gfortran; do
8621 if test -n "$ncn_target_tool_prefix"; then
8622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8623set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8624echo "$as_me:$LINENO: checking for $ac_word" >&5
8625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8626if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8628else
8629 if test -n "$GFORTRAN_FOR_TARGET"; then
8630 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8631else
c6b750e1
DJ
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8639 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 break 2
8642 fi
8643done
8644done
8645
55db4b87
PB
8646fi
8647fi
c6b750e1 8648GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8649if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8650 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8651echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8652else
c6b750e1
DJ
8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
55db4b87
PB
8655fi
8656
2429c060
PB
8657 fi
8658 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8660set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8661echo "$as_me:$LINENO: checking for $ac_word" >&5
8662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8663if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8665else
05cbd757 8666 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8667 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8668else
8669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670for as_dir in $PATH
8671do
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8676 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8679 fi
8680done
8681done
8682
55db4b87
PB
8683fi
8684fi
c6b750e1 8685GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8686if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8687 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8688echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8689else
c6b750e1
DJ
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
55db4b87 8692fi
c6b750e1 8693
2429c060
PB
8694 fi
8695 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8696 done
8697fi
c6b750e1 8698
05cbd757
PB
8699if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8700 set dummy gfortran
8701 if test $build = $target ; then
8702 GFORTRAN_FOR_TARGET="$2"
55db4b87 8703 else
05cbd757 8704 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8705 fi
d3f5afc4
MS
8706else
8707 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8708fi
8709
2429c060
PB
8710
8711
2429c060
PB
8712cat > conftest.c << \EOF
8713#ifdef __GNUC__
8714 gcc_yay;
8715#endif
8716EOF
8717if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8718 have_gcc_for_target=yes
859789af 8719else
2429c060
PB
8720 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8721 have_gcc_for_target=no
859789af 8722fi
2429c060
PB
8723rm conftest.c
8724
8725
8726
859789af 8727
2429c060
PB
8728if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8729 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8730 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8731echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8732 if test -x $with_build_time_tools/ar; then
8733 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8734 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8735 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8736echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8737 else
c6b750e1
DJ
8738 echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
3a35eeb3 8740 fi
2429c060
PB
8741 elif test $build != $host && test $have_gcc_for_target = yes; then
8742 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8743 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8744 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8745 fi
2429c060 8746fi
c6b750e1 8747if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8748 # Extract the first word of "ar", so it can be a program name with args.
8749set dummy ar; ac_word=$2
c6b750e1
DJ
8750echo "$as_me:$LINENO: checking for $ac_word" >&5
8751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8752if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8754else
c6b750e1
DJ
8755 case $AR_FOR_TARGET in
8756 [\\/]* | ?:[\\/]*)
2429c060
PB
8757 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8758 ;;
2429c060 8759 *)
c6b750e1
DJ
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761for as_dir in $gcc_cv_tool_dirs
8762do
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 break 2
8770 fi
8771done
8772done
8773
2429c060
PB
8774 ;;
8775esac
859789af 8776fi
c6b750e1
DJ
8777AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8778
2429c060 8779if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8780 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8781echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8782else
c6b750e1
DJ
8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
859789af 8785fi
05cbd757 8786
2429c060
PB
8787fi
8788if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8789
8790
8791if test -n "$AR_FOR_TARGET"; then
8792 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8793elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8794 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8795fi
8796
8797if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8798 for ncn_progname in ar; do
8799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8800set dummy ${ncn_progname}; ac_word=$2
8801echo "$as_me:$LINENO: checking for $ac_word" >&5
8802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8803if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 if test -n "$AR_FOR_TARGET"; then
8807 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8808else
8809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810for as_dir in $PATH
8811do
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8816 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8819 fi
8820done
8821done
8822
8823fi
8824fi
8825AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8826if test -n "$AR_FOR_TARGET"; then
8827 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8828echo "${ECHO_T}$AR_FOR_TARGET" >&6
8829else
8830 echo "$as_me:$LINENO: result: no" >&5
8831echo "${ECHO_T}no" >&6
8832fi
8833
8834 done
8835fi
8836
8837if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8838 for ncn_progname in ar; do
c6b750e1
DJ
8839 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8840echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8841 if test -x $with_build_time_tools/${ncn_progname}; then
8842 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8843 echo "$as_me:$LINENO: result: yes" >&5
8844echo "${ECHO_T}yes" >&6
2429c060
PB
8845 break
8846 else
c6b750e1
DJ
8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
2429c060
PB
8849 fi
8850 done
859789af
AC
8851fi
8852
2429c060
PB
8853if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8854 for ncn_progname in ar; do
8855 if test -n "$ncn_target_tool_prefix"; then
8856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8857set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8858echo "$as_me:$LINENO: checking for $ac_word" >&5
8859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8860if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8862else
2429c060
PB
8863 if test -n "$AR_FOR_TARGET"; then
8864 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8865else
c6b750e1
DJ
8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH
8868do
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8873 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8876 fi
8877done
8878done
8879
7e0f7140
GK
8880fi
8881fi
c6b750e1 8882AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8883if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8884 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8885echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8886else
c6b750e1
DJ
8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
7e0f7140
GK
8889fi
8890
2429c060
PB
8891 fi
8892 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8894set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8895echo "$as_me:$LINENO: checking for $ac_word" >&5
8896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8899else
2429c060
PB
8900 if test -n "$AR_FOR_TARGET"; then
8901 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8902else
c6b750e1
DJ
8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915done
8916
7e0f7140
GK
8917fi
8918fi
c6b750e1 8919AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8920if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8921 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8922echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8923else
c6b750e1
DJ
8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
7e0f7140 8926fi
c6b750e1 8927
2429c060
PB
8928 fi
8929 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8930 done
8931fi
c6b750e1 8932
2429c060
PB
8933if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8934 set dummy ar
7e0f7140 8935 if test $build = $target ; then
2429c060 8936 AR_FOR_TARGET="$2"
7e0f7140 8937 else
2429c060 8938 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8939 fi
d3f5afc4
MS
8940else
8941 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8942fi
8943
3a35eeb3
PB
8944else
8945 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8946fi
8947
8948
8949
8950
8951if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8952 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8953 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8954echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8955 if test -x $with_build_time_tools/as; then
8956 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8957 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8958 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8959echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8960 else
c6b750e1
DJ
8961 echo "$as_me:$LINENO: result: no" >&5
8962echo "${ECHO_T}no" >&6
3a35eeb3 8963 fi
2429c060
PB
8964 elif test $build != $host && test $have_gcc_for_target = yes; then
8965 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8966 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8967 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8968 fi
8969fi
c6b750e1 8970if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8971 # Extract the first word of "as", so it can be a program name with args.
8972set dummy as; ac_word=$2
c6b750e1
DJ
8973echo "$as_me:$LINENO: checking for $ac_word" >&5
8974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8975if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8977else
c6b750e1
DJ
8978 case $AS_FOR_TARGET in
8979 [\\/]* | ?:[\\/]*)
2429c060
PB
8980 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8981 ;;
2429c060 8982 *)
c6b750e1
DJ
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984for as_dir in $gcc_cv_tool_dirs
8985do
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8990 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8993 fi
8994done
8995done
8996
2429c060
PB
8997 ;;
8998esac
8999fi
c6b750e1
DJ
9000AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9001
2429c060 9002if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9003 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9004echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9005else
c6b750e1
DJ
9006 echo "$as_me:$LINENO: result: no" >&5
9007echo "${ECHO_T}no" >&6
2429c060
PB
9008fi
9009
9010fi
9011if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9012
9013
9014if test -n "$AS_FOR_TARGET"; then
9015 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9016elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9017 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9018fi
9019
9020if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9021 for ncn_progname in as; do
9022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9023set dummy ${ncn_progname}; ac_word=$2
9024echo "$as_me:$LINENO: checking for $ac_word" >&5
9025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9026if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028else
9029 if test -n "$AS_FOR_TARGET"; then
9030 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9031else
9032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033for as_dir in $PATH
9034do
9035 IFS=$as_save_IFS
9036 test -z "$as_dir" && as_dir=.
9037 for ac_exec_ext in '' $ac_executable_extensions; do
9038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9039 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9041 break 2
9042 fi
9043done
9044done
9045
9046fi
9047fi
9048AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9049if test -n "$AS_FOR_TARGET"; then
9050 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9051echo "${ECHO_T}$AS_FOR_TARGET" >&6
9052else
9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
9055fi
9056
9057 done
9058fi
9059
9060if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9061 for ncn_progname in as; do
c6b750e1
DJ
9062 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9063echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9064 if test -x $with_build_time_tools/${ncn_progname}; then
9065 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
2429c060
PB
9068 break
9069 else
c6b750e1
DJ
9070 echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
2429c060
PB
9072 fi
9073 done
9074fi
9075
9076if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9077 for ncn_progname in as; do
9078 if test -n "$ncn_target_tool_prefix"; then
9079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9080set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9081echo "$as_me:$LINENO: checking for $ac_word" >&5
9082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9083if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9085else
9086 if test -n "$AS_FOR_TARGET"; then
9087 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9088else
c6b750e1
DJ
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100done
9101done
9102
2429c060
PB
9103fi
9104fi
c6b750e1 9105AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9106if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9107 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9108echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9109else
c6b750e1
DJ
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
2429c060
PB
9112fi
9113
9114 fi
9115 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9117set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9118echo "$as_me:$LINENO: checking for $ac_word" >&5
9119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9120if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9122else
9123 if test -n "$AS_FOR_TARGET"; then
9124 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9125else
c6b750e1
DJ
9126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127for as_dir in $PATH
9128do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9133 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137done
9138done
9139
2429c060
PB
9140fi
9141fi
c6b750e1 9142AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9143if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9144 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9145echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9146else
c6b750e1
DJ
9147 echo "$as_me:$LINENO: result: no" >&5
9148echo "${ECHO_T}no" >&6
2429c060 9149fi
c6b750e1 9150
2429c060
PB
9151 fi
9152 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9153 done
9154fi
c6b750e1 9155
2429c060
PB
9156if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9157 set dummy as
9158 if test $build = $target ; then
9159 AS_FOR_TARGET="$2"
9160 else
9161 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9162 fi
d3f5afc4
MS
9163else
9164 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9165fi
9166
3a35eeb3
PB
9167else
9168 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9169fi
9170
9171
9172
9173
9174if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9175 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9176 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9177echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9178 if test -x $with_build_time_tools/dlltool; then
9179 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9180 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9181 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9182echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9183 else
c6b750e1
DJ
9184 echo "$as_me:$LINENO: result: no" >&5
9185echo "${ECHO_T}no" >&6
3a35eeb3 9186 fi
2429c060
PB
9187 elif test $build != $host && test $have_gcc_for_target = yes; then
9188 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9189 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9190 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9191 fi
9192fi
c6b750e1 9193if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9194 # Extract the first word of "dlltool", so it can be a program name with args.
9195set dummy dlltool; ac_word=$2
c6b750e1
DJ
9196echo "$as_me:$LINENO: checking for $ac_word" >&5
9197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9198if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9200else
c6b750e1
DJ
9201 case $DLLTOOL_FOR_TARGET in
9202 [\\/]* | ?:[\\/]*)
2429c060
PB
9203 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9204 ;;
2429c060 9205 *)
c6b750e1
DJ
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $gcc_cv_tool_dirs
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217done
9218done
9219
2429c060
PB
9220 ;;
9221esac
9222fi
c6b750e1
DJ
9223DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9224
2429c060 9225if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9226 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9227echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9228else
c6b750e1
DJ
9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
2429c060
PB
9231fi
9232
9233fi
9234if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9235
9236
9237if test -n "$DLLTOOL_FOR_TARGET"; then
9238 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9239elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9240 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9241fi
9242
9243if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9244 for ncn_progname in dlltool; do
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_progname}; ac_word=$2
9247echo "$as_me:$LINENO: checking for $ac_word" >&5
9248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9249if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252 if test -n "$DLLTOOL_FOR_TARGET"; then
9253 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9254else
9255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256for as_dir in $PATH
9257do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9262 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9265 fi
9266done
9267done
9268
9269fi
9270fi
9271DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9272if test -n "$DLLTOOL_FOR_TARGET"; then
9273 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9274echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9275else
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
9278fi
9279
9280 done
9281fi
9282
9283if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9284 for ncn_progname in dlltool; do
c6b750e1
DJ
9285 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9286echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9287 if test -x $with_build_time_tools/${ncn_progname}; then
9288 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9289 echo "$as_me:$LINENO: result: yes" >&5
9290echo "${ECHO_T}yes" >&6
2429c060
PB
9291 break
9292 else
c6b750e1
DJ
9293 echo "$as_me:$LINENO: result: no" >&5
9294echo "${ECHO_T}no" >&6
2429c060
PB
9295 fi
9296 done
9297fi
9298
9299if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9300 for ncn_progname in dlltool; do
9301 if test -n "$ncn_target_tool_prefix"; then
9302 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9303set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9304echo "$as_me:$LINENO: checking for $ac_word" >&5
9305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9306if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9308else
9309 if test -n "$DLLTOOL_FOR_TARGET"; then
9310 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9311else
c6b750e1
DJ
9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9319 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9322 fi
9323done
9324done
9325
2429c060
PB
9326fi
9327fi
c6b750e1 9328DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9329if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9330 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9331echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9332else
c6b750e1
DJ
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
2429c060
PB
9335fi
9336
9337 fi
9338 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9340set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9341echo "$as_me:$LINENO: checking for $ac_word" >&5
9342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9343if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9345else
9346 if test -n "$DLLTOOL_FOR_TARGET"; then
9347 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9348else
c6b750e1
DJ
9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $PATH
9351do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9356 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9359 fi
9360done
9361done
9362
2429c060
PB
9363fi
9364fi
c6b750e1 9365DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9366if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9367 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9368echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9369else
c6b750e1
DJ
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
2429c060 9372fi
c6b750e1 9373
2429c060
PB
9374 fi
9375 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9376 done
9377fi
c6b750e1 9378
2429c060
PB
9379if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9380 set dummy dlltool
9381 if test $build = $target ; then
9382 DLLTOOL_FOR_TARGET="$2"
9383 else
9384 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9385 fi
d3f5afc4
MS
9386else
9387 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9388fi
9389
3a35eeb3
PB
9390else
9391 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9392fi
9393
9394
9395
9396
9397if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9398 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9399 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9400echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9401 if test -x $with_build_time_tools/ld; then
9402 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9403 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9404 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9405echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9406 else
c6b750e1
DJ
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
3a35eeb3 9409 fi
2429c060
PB
9410 elif test $build != $host && test $have_gcc_for_target = yes; then
9411 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9412 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9413 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9414 fi
9415fi
c6b750e1 9416if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9417 # Extract the first word of "ld", so it can be a program name with args.
9418set dummy ld; ac_word=$2
c6b750e1
DJ
9419echo "$as_me:$LINENO: checking for $ac_word" >&5
9420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9421if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9423else
c6b750e1
DJ
9424 case $LD_FOR_TARGET in
9425 [\\/]* | ?:[\\/]*)
2429c060
PB
9426 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9427 ;;
2429c060 9428 *)
c6b750e1
DJ
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $gcc_cv_tool_dirs
9431do
9432 IFS=$as_save_IFS
9433 test -z "$as_dir" && as_dir=.
9434 for ac_exec_ext in '' $ac_executable_extensions; do
9435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9436 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9438 break 2
9439 fi
9440done
9441done
9442
2429c060
PB
9443 ;;
9444esac
9445fi
c6b750e1
DJ
9446LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9447
2429c060 9448if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9449 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9450echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9451else
c6b750e1
DJ
9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
2429c060
PB
9454fi
9455
9456fi
9457if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9458
9459
9460if test -n "$LD_FOR_TARGET"; then
9461 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9462elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9463 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9464fi
9465
9466if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9467 for ncn_progname in ld; do
9468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9469set dummy ${ncn_progname}; ac_word=$2
9470echo "$as_me:$LINENO: checking for $ac_word" >&5
9471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9472if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475 if test -n "$LD_FOR_TARGET"; then
9476 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9477else
9478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479for as_dir in $PATH
9480do
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9485 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9488 fi
9489done
9490done
9491
9492fi
9493fi
9494LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9495if test -n "$LD_FOR_TARGET"; then
9496 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9497echo "${ECHO_T}$LD_FOR_TARGET" >&6
9498else
9499 echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6
9501fi
9502
9503 done
9504fi
9505
9506if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9507 for ncn_progname in ld; do
c6b750e1
DJ
9508 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9509echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9510 if test -x $with_build_time_tools/${ncn_progname}; then
9511 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9512 echo "$as_me:$LINENO: result: yes" >&5
9513echo "${ECHO_T}yes" >&6
2429c060
PB
9514 break
9515 else
c6b750e1
DJ
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
2429c060
PB
9518 fi
9519 done
9520fi
9521
9522if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9523 for ncn_progname in ld; do
9524 if test -n "$ncn_target_tool_prefix"; then
9525 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9526set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9527echo "$as_me:$LINENO: checking for $ac_word" >&5
9528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9529if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9531else
9532 if test -n "$LD_FOR_TARGET"; then
9533 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9534else
c6b750e1
DJ
9535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547done
9548
2429c060
PB
9549fi
9550fi
c6b750e1 9551LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9552if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9553 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9554echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9555else
c6b750e1
DJ
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
2429c060
PB
9558fi
9559
9560 fi
9561 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9563set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9564echo "$as_me:$LINENO: checking for $ac_word" >&5
9565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9566if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9568else
9569 if test -n "$LD_FOR_TARGET"; then
9570 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9571else
c6b750e1
DJ
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9579 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9582 fi
9583done
9584done
9585
2429c060
PB
9586fi
9587fi
c6b750e1 9588LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9589if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9590 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9591echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9592else
c6b750e1
DJ
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
2429c060 9595fi
c6b750e1 9596
2429c060
PB
9597 fi
9598 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9599 done
9600fi
c6b750e1 9601
2429c060
PB
9602if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9603 set dummy ld
9604 if test $build = $target ; then
9605 LD_FOR_TARGET="$2"
9606 else
9607 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9608 fi
d3f5afc4
MS
9609else
9610 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9611fi
9612
3a35eeb3
PB
9613else
9614 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9615fi
9616
9617
9618
9619
9620if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9621 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9622 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9623echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9624 if test -x $with_build_time_tools/lipo; then
9625 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9626 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9627 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9628echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9629 else
c6b750e1
DJ
9630 echo "$as_me:$LINENO: result: no" >&5
9631echo "${ECHO_T}no" >&6
3a35eeb3 9632 fi
2429c060
PB
9633 elif test $build != $host && test $have_gcc_for_target = yes; then
9634 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9635 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9636 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9637 fi
9638fi
9a819804
AO
9639if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9640 # Extract the first word of "lipo", so it can be a program name with args.
9641set dummy lipo; ac_word=$2
9642echo "$as_me:$LINENO: checking for $ac_word" >&5
9643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9644if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646else
9647 case $LIPO_FOR_TARGET in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9650 ;;
9651 *)
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653for as_dir in $gcc_cv_tool_dirs
9654do
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9659 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9662 fi
9663done
9664done
9665
9666 ;;
9667esac
9668fi
9669LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9670
9671if test -n "$LIPO_FOR_TARGET"; then
9672 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9673echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9674else
9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
9677fi
9678
9679fi
9680if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9681
9682
9683if test -n "$LIPO_FOR_TARGET"; then
9684 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9685elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9686 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9687fi
9688
9689if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9690 for ncn_progname in lipo; do
9691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9692set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9693echo "$as_me:$LINENO: checking for $ac_word" >&5
9694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9695if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9696 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9697else
9a819804
AO
9698 if test -n "$LIPO_FOR_TARGET"; then
9699 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9700else
9701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702for as_dir in $PATH
c6b750e1
DJ
9703do
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9708 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9711 fi
9712done
9713done
9714
2429c060 9715fi
9a819804
AO
9716fi
9717LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9718if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9719 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9720echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9721else
c6b750e1
DJ
9722 echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
2429c060
PB
9724fi
9725
9a819804 9726 done
2429c060 9727fi
9a819804
AO
9728
9729if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9730 for ncn_progname in lipo; do
c6b750e1
DJ
9731 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9732echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9733 if test -x $with_build_time_tools/${ncn_progname}; then
9734 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9735 echo "$as_me:$LINENO: result: yes" >&5
9736echo "${ECHO_T}yes" >&6
2429c060
PB
9737 break
9738 else
c6b750e1
DJ
9739 echo "$as_me:$LINENO: result: no" >&5
9740echo "${ECHO_T}no" >&6
2429c060
PB
9741 fi
9742 done
9743fi
9744
9745if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9746 for ncn_progname in lipo; do
9747 if test -n "$ncn_target_tool_prefix"; then
9748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9749set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9750echo "$as_me:$LINENO: checking for $ac_word" >&5
9751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9752if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9754else
9755 if test -n "$LIPO_FOR_TARGET"; then
9756 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9757else
c6b750e1
DJ
9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9768 fi
9769done
9770done
9771
2429c060
PB
9772fi
9773fi
c6b750e1 9774LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9775if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9776 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9777echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9778else
c6b750e1
DJ
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
2429c060
PB
9781fi
9782
9783 fi
9784 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9786set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9787echo "$as_me:$LINENO: checking for $ac_word" >&5
9788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9789if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9791else
9792 if test -n "$LIPO_FOR_TARGET"; then
9793 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9794else
c6b750e1
DJ
9795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796for as_dir in $PATH
9797do
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9802 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9805 fi
9806done
9807done
9808
2429c060
PB
9809fi
9810fi
c6b750e1 9811LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9812if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9813 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9814echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9815else
c6b750e1
DJ
9816 echo "$as_me:$LINENO: result: no" >&5
9817echo "${ECHO_T}no" >&6
2429c060 9818fi
c6b750e1 9819
2429c060
PB
9820 fi
9821 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9822 done
9823fi
c6b750e1 9824
2429c060
PB
9825if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9826 set dummy lipo
9827 if test $build = $target ; then
9828 LIPO_FOR_TARGET="$2"
9829 else
9830 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9831 fi
d3f5afc4
MS
9832else
9833 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9834fi
9835
3a35eeb3
PB
9836else
9837 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9838fi
9839
9840
9841
9842
9843if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9844 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9845 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9846echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9847 if test -x $with_build_time_tools/nm; then
9848 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9849 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9850 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9851echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9852 else
c6b750e1
DJ
9853 echo "$as_me:$LINENO: result: no" >&5
9854echo "${ECHO_T}no" >&6
3a35eeb3 9855 fi
2429c060
PB
9856 elif test $build != $host && test $have_gcc_for_target = yes; then
9857 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9858 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9859 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9860 fi
9861fi
c6b750e1 9862if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9863 # Extract the first word of "nm", so it can be a program name with args.
9864set dummy nm; ac_word=$2
c6b750e1
DJ
9865echo "$as_me:$LINENO: checking for $ac_word" >&5
9866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9867if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9869else
c6b750e1
DJ
9870 case $NM_FOR_TARGET in
9871 [\\/]* | ?:[\\/]*)
2429c060
PB
9872 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9873 ;;
2429c060 9874 *)
c6b750e1
DJ
9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $gcc_cv_tool_dirs
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9882 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886done
9887done
9888
2429c060
PB
9889 ;;
9890esac
9891fi
c6b750e1
DJ
9892NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9893
2429c060 9894if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9895 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9896echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9897else
c6b750e1
DJ
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
2429c060
PB
9900fi
9901
9902fi
9903if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9904
9905
9906if test -n "$NM_FOR_TARGET"; then
9907 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9908elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9909 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9910fi
9911
9912if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9913 for ncn_progname in nm; do
9914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9915set dummy ${ncn_progname}; ac_word=$2
9916echo "$as_me:$LINENO: checking for $ac_word" >&5
9917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9918if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920else
9921 if test -n "$NM_FOR_TARGET"; then
9922 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9923else
9924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925for as_dir in $PATH
9926do
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9931 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 break 2
9934 fi
9935done
9936done
9937
9938fi
9939fi
9940NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9941if test -n "$NM_FOR_TARGET"; then
9942 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9943echo "${ECHO_T}$NM_FOR_TARGET" >&6
9944else
9945 echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6
9947fi
9948
9949 done
9950fi
9951
9952if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9953 for ncn_progname in nm; do
c6b750e1
DJ
9954 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9955echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9956 if test -x $with_build_time_tools/${ncn_progname}; then
9957 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
2429c060
PB
9960 break
9961 else
c6b750e1
DJ
9962 echo "$as_me:$LINENO: result: no" >&5
9963echo "${ECHO_T}no" >&6
2429c060
PB
9964 fi
9965 done
9966fi
9967
9968if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9969 for ncn_progname in nm; do
9970 if test -n "$ncn_target_tool_prefix"; then
9971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9973echo "$as_me:$LINENO: checking for $ac_word" >&5
9974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9975if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9977else
55db4b87
PB
9978 if test -n "$NM_FOR_TARGET"; then
9979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9980else
c6b750e1
DJ
9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9988 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9991 fi
9992done
9993done
9994
859789af
AC
9995fi
9996fi
c6b750e1 9997NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9998if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9999 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10000echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10001else
c6b750e1
DJ
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
859789af
AC
10004fi
10005
2429c060
PB
10006 fi
10007 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10009set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10010echo "$as_me:$LINENO: checking for $ac_word" >&5
10011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10012if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10014else
05cbd757
PB
10015 if test -n "$NM_FOR_TARGET"; then
10016 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10017else
c6b750e1
DJ
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029done
10030done
10031
859789af
AC
10032fi
10033fi
c6b750e1 10034NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10035if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10036 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10037echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10038else
c6b750e1
DJ
10039 echo "$as_me:$LINENO: result: no" >&5
10040echo "${ECHO_T}no" >&6
859789af 10041fi
c6b750e1 10042
2429c060
PB
10043 fi
10044 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10045 done
10046fi
c6b750e1 10047
05cbd757
PB
10048if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10049 set dummy nm
10050 if test $build = $target ; then
10051 NM_FOR_TARGET="$2"
859789af 10052 else
05cbd757 10053 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10054 fi
d3f5afc4
MS
10055else
10056 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10057fi
10058
3a35eeb3
PB
10059else
10060 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10061fi
10062
10063
10064
10065
10066if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10067 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10068 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10069echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10070 if test -x $with_build_time_tools/objdump; then
10071 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10072 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10073 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10074echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10075 else
c6b750e1
DJ
10076 echo "$as_me:$LINENO: result: no" >&5
10077echo "${ECHO_T}no" >&6
3a35eeb3 10078 fi
2429c060
PB
10079 elif test $build != $host && test $have_gcc_for_target = yes; then
10080 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10081 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10082 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10083 fi
10084fi
c6b750e1 10085if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10086 # Extract the first word of "objdump", so it can be a program name with args.
10087set dummy objdump; ac_word=$2
c6b750e1
DJ
10088echo "$as_me:$LINENO: checking for $ac_word" >&5
10089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10090if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10092else
c6b750e1
DJ
10093 case $OBJDUMP_FOR_TARGET in
10094 [\\/]* | ?:[\\/]*)
2429c060
PB
10095 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10096 ;;
2429c060 10097 *)
c6b750e1
DJ
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $gcc_cv_tool_dirs
10100do
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10105 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10108 fi
10109done
10110done
10111
2429c060
PB
10112 ;;
10113esac
10114fi
c6b750e1
DJ
10115OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10116
2429c060 10117if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10118 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10119echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10120else
c6b750e1
DJ
10121 echo "$as_me:$LINENO: result: no" >&5
10122echo "${ECHO_T}no" >&6
2429c060
PB
10123fi
10124
10125fi
10126if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10127
10128
10129if test -n "$OBJDUMP_FOR_TARGET"; then
10130 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10131elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10132 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10133fi
10134
10135if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10136 for ncn_progname in objdump; do
10137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138set dummy ${ncn_progname}; ac_word=$2
10139echo "$as_me:$LINENO: checking for $ac_word" >&5
10140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10141if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144 if test -n "$OBJDUMP_FOR_TARGET"; then
10145 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10146else
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10154 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10157 fi
10158done
10159done
10160
10161fi
10162fi
10163OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10164if test -n "$OBJDUMP_FOR_TARGET"; then
10165 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10166echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10167else
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
10170fi
10171
10172 done
10173fi
10174
10175if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10176 for ncn_progname in objdump; do
c6b750e1
DJ
10177 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10178echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10179 if test -x $with_build_time_tools/${ncn_progname}; then
10180 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10181 echo "$as_me:$LINENO: result: yes" >&5
10182echo "${ECHO_T}yes" >&6
2429c060
PB
10183 break
10184 else
c6b750e1
DJ
10185 echo "$as_me:$LINENO: result: no" >&5
10186echo "${ECHO_T}no" >&6
2429c060
PB
10187 fi
10188 done
10189fi
10190
10191if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10192 for ncn_progname in objdump; do
10193 if test -n "$ncn_target_tool_prefix"; then
10194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10195set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10196echo "$as_me:$LINENO: checking for $ac_word" >&5
10197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10198if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10200else
10201 if test -n "$OBJDUMP_FOR_TARGET"; then
10202 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10203else
c6b750e1
DJ
10204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205for as_dir in $PATH
10206do
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10211 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10214 fi
10215done
10216done
10217
5ae72758
DJ
10218fi
10219fi
c6b750e1 10220OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10221if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10222 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10223echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10224else
c6b750e1
DJ
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
5ae72758
DJ
10227fi
10228
2429c060
PB
10229 fi
10230 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10232set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10233echo "$as_me:$LINENO: checking for $ac_word" >&5
10234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10235if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10237else
10238 if test -n "$OBJDUMP_FOR_TARGET"; then
10239 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10240else
c6b750e1
DJ
10241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242for as_dir in $PATH
10243do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10251 fi
10252done
10253done
10254
5ae72758
DJ
10255fi
10256fi
c6b750e1 10257OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10258if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10259 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10260echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10261else
c6b750e1
DJ
10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
5ae72758 10264fi
c6b750e1 10265
2429c060
PB
10266 fi
10267 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10268 done
10269fi
c6b750e1 10270
5ae72758
DJ
10271if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10272 set dummy objdump
10273 if test $build = $target ; then
10274 OBJDUMP_FOR_TARGET="$2"
10275 else
10276 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10277 fi
d3f5afc4
MS
10278else
10279 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10280fi
10281
3a35eeb3
PB
10282else
10283 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10284fi
10285
10286
10287
10288
10289if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10290 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10291 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10292echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10293 if test -x $with_build_time_tools/ranlib; then
10294 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10295 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10296 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10297echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10298 else
c6b750e1
DJ
10299 echo "$as_me:$LINENO: result: no" >&5
10300echo "${ECHO_T}no" >&6
3a35eeb3 10301 fi
2429c060
PB
10302 elif test $build != $host && test $have_gcc_for_target = yes; then
10303 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10304 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10305 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10306 fi
10307fi
c6b750e1 10308if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10309 # Extract the first word of "ranlib", so it can be a program name with args.
10310set dummy ranlib; ac_word=$2
c6b750e1
DJ
10311echo "$as_me:$LINENO: checking for $ac_word" >&5
10312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10313if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10315else
c6b750e1
DJ
10316 case $RANLIB_FOR_TARGET in
10317 [\\/]* | ?:[\\/]*)
2429c060
PB
10318 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10319 ;;
2429c060 10320 *)
c6b750e1
DJ
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $gcc_cv_tool_dirs
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10331 fi
10332done
10333done
10334
2429c060
PB
10335 ;;
10336esac
10337fi
c6b750e1
DJ
10338RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10339
2429c060 10340if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10341 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10342echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10343else
c6b750e1
DJ
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
2429c060
PB
10346fi
10347
10348fi
10349if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10350
10351
10352if test -n "$RANLIB_FOR_TARGET"; then
10353 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10354elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10355 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10356fi
10357
10358if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10359 for ncn_progname in ranlib; do
10360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10361set dummy ${ncn_progname}; ac_word=$2
10362echo "$as_me:$LINENO: checking for $ac_word" >&5
10363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10364if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366else
10367 if test -n "$RANLIB_FOR_TARGET"; then
10368 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10369else
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381done
10382done
10383
10384fi
10385fi
10386RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10387if test -n "$RANLIB_FOR_TARGET"; then
10388 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10389echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10390else
10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
10393fi
10394
10395 done
10396fi
10397
10398if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10399 for ncn_progname in ranlib; do
c6b750e1
DJ
10400 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10401echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10402 if test -x $with_build_time_tools/${ncn_progname}; then
10403 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10404 echo "$as_me:$LINENO: result: yes" >&5
10405echo "${ECHO_T}yes" >&6
2429c060
PB
10406 break
10407 else
c6b750e1
DJ
10408 echo "$as_me:$LINENO: result: no" >&5
10409echo "${ECHO_T}no" >&6
2429c060
PB
10410 fi
10411 done
10412fi
10413
10414if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10415 for ncn_progname in ranlib; do
10416 if test -n "$ncn_target_tool_prefix"; then
10417 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10418set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10419echo "$as_me:$LINENO: checking for $ac_word" >&5
10420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10421if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10423else
55db4b87
PB
10424 if test -n "$RANLIB_FOR_TARGET"; then
10425 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10426else
c6b750e1
DJ
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_exec_ext in '' $ac_executable_extensions; do
10433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10434 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 break 2
10437 fi
10438done
10439done
10440
859789af
AC
10441fi
10442fi
c6b750e1 10443RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10444if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10445 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10446echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10447else
c6b750e1
DJ
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
859789af
AC
10450fi
10451
2429c060
PB
10452 fi
10453 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10455set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10456echo "$as_me:$LINENO: checking for $ac_word" >&5
10457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10458if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10460else
05cbd757
PB
10461 if test -n "$RANLIB_FOR_TARGET"; then
10462 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10463else
c6b750e1
DJ
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10471 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476done
10477
859789af
AC
10478fi
10479fi
c6b750e1 10480RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10481if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10482 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10483echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10484else
c6b750e1
DJ
10485 echo "$as_me:$LINENO: result: no" >&5
10486echo "${ECHO_T}no" >&6
859789af 10487fi
c6b750e1 10488
2429c060
PB
10489 fi
10490 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10491 done
10492fi
c6b750e1 10493
2429c060
PB
10494if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10495 set dummy ranlib
10496 if test $build = $target ; then
10497 RANLIB_FOR_TARGET="$2"
10498 else
10499 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10500 fi
d3f5afc4
MS
10501else
10502 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10503fi
05cbd757 10504
3a35eeb3
PB
10505else
10506 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10507fi
10508
2429c060
PB
10509
10510
10511
10512if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10513 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10514 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10515echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10516 if test -x $with_build_time_tools/strip; then
10517 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10518 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10519 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10520echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10521 else
c6b750e1
DJ
10522 echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
3a35eeb3 10524 fi
2429c060
PB
10525 elif test $build != $host && test $have_gcc_for_target = yes; then
10526 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10527 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10528 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10529 fi
10530fi
c6b750e1 10531if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10532 # Extract the first word of "strip", so it can be a program name with args.
10533set dummy strip; ac_word=$2
c6b750e1
DJ
10534echo "$as_me:$LINENO: checking for $ac_word" >&5
10535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10536if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10538else
c6b750e1
DJ
10539 case $STRIP_FOR_TARGET in
10540 [\\/]* | ?:[\\/]*)
2429c060
PB
10541 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10542 ;;
2429c060 10543 *)
c6b750e1
DJ
10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545for as_dir in $gcc_cv_tool_dirs
10546do
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10551 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10554 fi
10555done
10556done
10557
2429c060
PB
10558 ;;
10559esac
10560fi
c6b750e1
DJ
10561STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10562
2429c060 10563if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10564 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10565echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10566else
c6b750e1
DJ
10567 echo "$as_me:$LINENO: result: no" >&5
10568echo "${ECHO_T}no" >&6
2429c060
PB
10569fi
10570
10571fi
10572if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10573
10574
10575if test -n "$STRIP_FOR_TARGET"; then
10576 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10577elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10578 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10579fi
10580
10581if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10582 for ncn_progname in strip; do
10583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10584set dummy ${ncn_progname}; ac_word=$2
10585echo "$as_me:$LINENO: checking for $ac_word" >&5
10586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10587if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589else
10590 if test -n "$STRIP_FOR_TARGET"; then
10591 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10592else
10593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594for as_dir in $PATH
10595do
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
10599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10603 fi
10604done
10605done
10606
10607fi
10608fi
10609STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10610if test -n "$STRIP_FOR_TARGET"; then
10611 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10612echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10613else
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
10616fi
10617
10618 done
10619fi
10620
10621if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10622 for ncn_progname in strip; do
c6b750e1
DJ
10623 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10624echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10625 if test -x $with_build_time_tools/${ncn_progname}; then
10626 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10627 echo "$as_me:$LINENO: result: yes" >&5
10628echo "${ECHO_T}yes" >&6
2429c060
PB
10629 break
10630 else
c6b750e1
DJ
10631 echo "$as_me:$LINENO: result: no" >&5
10632echo "${ECHO_T}no" >&6
2429c060
PB
10633 fi
10634 done
10635fi
10636
10637if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10638 for ncn_progname in strip; do
10639 if test -n "$ncn_target_tool_prefix"; then
10640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10641set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10642echo "$as_me:$LINENO: checking for $ac_word" >&5
10643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10644if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10646else
10647 if test -n "$STRIP_FOR_TARGET"; then
10648 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10649else
10650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651for as_dir in $PATH
10652do
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10660 fi
10661done
10662done
10663
7e0f7140
GK
10664fi
10665fi
c6b750e1 10666STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10667if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10668 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10669echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10670else
c6b750e1
DJ
10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
7e0f7140
GK
10673fi
10674
2429c060
PB
10675 fi
10676 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10678set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10679echo "$as_me:$LINENO: checking for $ac_word" >&5
10680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10681if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10683else
10684 if test -n "$STRIP_FOR_TARGET"; then
10685 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10686else
c6b750e1
DJ
10687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688for as_dir in $PATH
10689do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698done
10699done
10700
7e0f7140
GK
10701fi
10702fi
c6b750e1 10703STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10704if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10705 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10706echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10707else
c6b750e1
DJ
10708 echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6
7e0f7140 10710fi
c6b750e1 10711
2429c060
PB
10712 fi
10713 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10714 done
10715fi
c6b750e1 10716
7e0f7140
GK
10717if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10718 set dummy strip
10719 if test $build = $target ; then
10720 STRIP_FOR_TARGET="$2"
10721 else
10722 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10723 fi
d3f5afc4
MS
10724else
10725 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10726fi
10727
3a35eeb3
PB
10728else
10729 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10730fi
10731
10732
10733
10734
10735if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10736 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10737 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10738echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10739 if test -x $with_build_time_tools/windres; then
10740 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10741 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10742 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10743echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10744 else
c6b750e1
DJ
10745 echo "$as_me:$LINENO: result: no" >&5
10746echo "${ECHO_T}no" >&6
3a35eeb3 10747 fi
2429c060
PB
10748 elif test $build != $host && test $have_gcc_for_target = yes; then
10749 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10750 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10751 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10752 fi
10753fi
c6b750e1 10754if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10755 # Extract the first word of "windres", so it can be a program name with args.
10756set dummy windres; ac_word=$2
c6b750e1
DJ
10757echo "$as_me:$LINENO: checking for $ac_word" >&5
10758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10759if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10761else
c6b750e1
DJ
10762 case $WINDRES_FOR_TARGET in
10763 [\\/]* | ?:[\\/]*)
2429c060
PB
10764 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10765 ;;
2429c060 10766 *)
c6b750e1
DJ
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $gcc_cv_tool_dirs
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10774 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10777 fi
10778done
10779done
10780
2429c060
PB
10781 ;;
10782esac
10783fi
c6b750e1
DJ
10784WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10785
2429c060 10786if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10787 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10788echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10789else
c6b750e1
DJ
10790 echo "$as_me:$LINENO: result: no" >&5
10791echo "${ECHO_T}no" >&6
2429c060
PB
10792fi
10793
10794fi
10795if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10796
10797
10798if test -n "$WINDRES_FOR_TARGET"; then
10799 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10800elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10801 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10802fi
10803
10804if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10805 for ncn_progname in windres; do
10806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10807set dummy ${ncn_progname}; ac_word=$2
10808echo "$as_me:$LINENO: checking for $ac_word" >&5
10809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10810if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812else
10813 if test -n "$WINDRES_FOR_TARGET"; then
10814 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10815else
10816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817for as_dir in $PATH
10818do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827done
10828done
10829
10830fi
10831fi
10832WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10833if test -n "$WINDRES_FOR_TARGET"; then
10834 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10835echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10836else
10837 echo "$as_me:$LINENO: result: no" >&5
10838echo "${ECHO_T}no" >&6
10839fi
10840
10841 done
10842fi
10843
10844if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10845 for ncn_progname in windres; do
c6b750e1
DJ
10846 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10847echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10848 if test -x $with_build_time_tools/${ncn_progname}; then
10849 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10850 echo "$as_me:$LINENO: result: yes" >&5
10851echo "${ECHO_T}yes" >&6
2429c060
PB
10852 break
10853 else
c6b750e1
DJ
10854 echo "$as_me:$LINENO: result: no" >&5
10855echo "${ECHO_T}no" >&6
2429c060
PB
10856 fi
10857 done
10858fi
10859
10860if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10861 for ncn_progname in windres; do
10862 if test -n "$ncn_target_tool_prefix"; then
10863 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10864set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10865echo "$as_me:$LINENO: checking for $ac_word" >&5
10866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10867if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10869else
55db4b87
PB
10870 if test -n "$WINDRES_FOR_TARGET"; then
10871 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10872else
c6b750e1
DJ
10873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874for as_dir in $PATH
10875do
10876 IFS=$as_save_IFS
10877 test -z "$as_dir" && as_dir=.
10878 for ac_exec_ext in '' $ac_executable_extensions; do
10879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10880 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 break 2
10883 fi
10884done
10885done
10886
859789af
AC
10887fi
10888fi
c6b750e1 10889WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10890if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10891 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10892echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10893else
c6b750e1
DJ
10894 echo "$as_me:$LINENO: result: no" >&5
10895echo "${ECHO_T}no" >&6
859789af
AC
10896fi
10897
2429c060
PB
10898 fi
10899 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10901set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10902echo "$as_me:$LINENO: checking for $ac_word" >&5
10903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10904if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10906else
05cbd757
PB
10907 if test -n "$WINDRES_FOR_TARGET"; then
10908 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10909else
c6b750e1
DJ
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10917 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921done
10922done
10923
859789af
AC
10924fi
10925fi
c6b750e1 10926WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10927if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10928 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10929echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10930else
c6b750e1
DJ
10931 echo "$as_me:$LINENO: result: no" >&5
10932echo "${ECHO_T}no" >&6
859789af 10933fi
c6b750e1 10934
2429c060
PB
10935 fi
10936 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10937 done
10938fi
c6b750e1 10939
05cbd757
PB
10940if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10941 set dummy windres
10942 if test $build = $target ; then
10943 WINDRES_FOR_TARGET="$2"
859789af 10944 else
05cbd757 10945 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10946 fi
d3f5afc4
MS
10947else
10948 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10949fi
10950
3a35eeb3
PB
10951else
10952 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10953fi
10954
852e5f18 10955
0c24b341
NC
10956
10957
10958if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10959 if test -n "$with_build_time_tools"; then
10960 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10961echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10962 if test -x $with_build_time_tools/windmc; then
10963 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10964 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10965 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10966echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10967 else
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
10970 fi
10971 elif test $build != $host && test $have_gcc_for_target = yes; then
10972 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10973 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10974 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10975 fi
10976fi
10977if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10978 # Extract the first word of "windmc", so it can be a program name with args.
10979set dummy windmc; ac_word=$2
10980echo "$as_me:$LINENO: checking for $ac_word" >&5
10981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10982if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
10985 case $WINDMC_FOR_TARGET in
10986 [\\/]* | ?:[\\/]*)
10987 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10988 ;;
10989 *)
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $gcc_cv_tool_dirs
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10997 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 break 2
11000 fi
11001done
11002done
11003
11004 ;;
11005esac
11006fi
11007WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11008
11009if test -n "$WINDMC_FOR_TARGET"; then
11010 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11011echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11012else
11013 echo "$as_me:$LINENO: result: no" >&5
11014echo "${ECHO_T}no" >&6
11015fi
11016
11017fi
11018if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11019
11020
11021if test -n "$WINDMC_FOR_TARGET"; then
11022 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11023elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11024 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11025fi
11026
11027if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11028 for ncn_progname in windmc; do
11029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11030set dummy ${ncn_progname}; ac_word=$2
11031echo "$as_me:$LINENO: checking for $ac_word" >&5
11032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11033if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035else
11036 if test -n "$WINDMC_FOR_TARGET"; then
11037 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11038else
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050done
11051done
11052
11053fi
11054fi
11055WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11056if test -n "$WINDMC_FOR_TARGET"; then
11057 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11058echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11059else
11060 echo "$as_me:$LINENO: result: no" >&5
11061echo "${ECHO_T}no" >&6
11062fi
11063
11064 done
11065fi
11066
11067if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11068 for ncn_progname in windmc; do
11069 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11070echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11071 if test -x $with_build_time_tools/${ncn_progname}; then
11072 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11073 echo "$as_me:$LINENO: result: yes" >&5
11074echo "${ECHO_T}yes" >&6
11075 break
11076 else
11077 echo "$as_me:$LINENO: result: no" >&5
11078echo "${ECHO_T}no" >&6
11079 fi
11080 done
11081fi
11082
11083if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11084 for ncn_progname in windmc; do
11085 if test -n "$ncn_target_tool_prefix"; then
11086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11087set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11088echo "$as_me:$LINENO: checking for $ac_word" >&5
11089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092else
11093 if test -n "$WINDMC_FOR_TARGET"; then
11094 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11095else
11096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097for as_dir in $PATH
11098do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 break 2
11106 fi
11107done
11108done
11109
11110fi
11111fi
11112WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11113if test -n "$WINDMC_FOR_TARGET"; then
11114 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11115echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11116else
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
11119fi
11120
11121 fi
11122 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124set dummy ${ncn_progname}; ac_word=$2
11125echo "$as_me:$LINENO: checking for $ac_word" >&5
11126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11127if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 if test -n "$WINDMC_FOR_TARGET"; then
11131 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11132else
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11143 fi
11144done
11145done
11146
11147fi
11148fi
11149WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11150if test -n "$WINDMC_FOR_TARGET"; then
11151 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11152echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11153else
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
11156fi
11157
11158 fi
11159 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11160 done
11161fi
11162
11163if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11164 set dummy windmc
11165 if test $build = $target ; then
11166 WINDMC_FOR_TARGET="$2"
11167 else
11168 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11169 fi
11170else
11171 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11172fi
11173
11174else
11175 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11176fi
11177
11178
be01d343
PB
11179RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11180
c6b750e1
DJ
11181echo "$as_me:$LINENO: checking where to find the target ar" >&5
11182echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11183if test "x${build}" != "x${host}" ; then
2429c060
PB
11184 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11185 # We already found the complete path
b8025f34
AS
11186 ac_dir=`dirname $AR_FOR_TARGET`
11187 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11188echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11189 else
11190 # Canadian cross, just use what we found
c6b750e1
DJ
11191 echo "$as_me:$LINENO: result: pre-installed" >&5
11192echo "${ECHO_T}pre-installed" >&6
2429c060 11193 fi
be01d343
PB
11194else
11195 ok=yes
11196 case " ${configdirs} " in
11197 *" binutils "*) ;;
11198 *) ok=no ;;
11199 esac
c6b750e1 11200
be01d343
PB
11201 if test $ok = yes; then
11202 # An in-tree tool is available and we can use it
11203 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11204 echo "$as_me:$LINENO: result: just compiled" >&5
11205echo "${ECHO_T}just compiled" >&6
2429c060
PB
11206 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11207 # We already found the complete path
b8025f34
AS
11208 ac_dir=`dirname $AR_FOR_TARGET`
11209 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11210echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11211 elif test "x$target" = "x$host"; then
11212 # We can use an host tool
11213 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11214 echo "$as_me:$LINENO: result: host tool" >&5
11215echo "${ECHO_T}host tool" >&6
be01d343
PB
11216 else
11217 # We need a cross tool
c6b750e1
DJ
11218 echo "$as_me:$LINENO: result: pre-installed" >&5
11219echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11220 fi
11221fi
4b900473 11222
c6b750e1
DJ
11223echo "$as_me:$LINENO: checking where to find the target as" >&5
11224echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11225if test "x${build}" != "x${host}" ; then
2429c060
PB
11226 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
b8025f34
AS
11228 ac_dir=`dirname $AS_FOR_TARGET`
11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11231 else
11232 # Canadian cross, just use what we found
c6b750e1
DJ
11233 echo "$as_me:$LINENO: result: pre-installed" >&5
11234echo "${ECHO_T}pre-installed" >&6
2429c060 11235 fi
be01d343
PB
11236else
11237 ok=yes
11238 case " ${configdirs} " in
11239 *" gas "*) ;;
11240 *) ok=no ;;
11241 esac
c6b750e1 11242
be01d343
PB
11243 if test $ok = yes; then
11244 # An in-tree tool is available and we can use it
11245 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11246 echo "$as_me:$LINENO: result: just compiled" >&5
11247echo "${ECHO_T}just compiled" >&6
2429c060
PB
11248 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11249 # We already found the complete path
b8025f34
AS
11250 ac_dir=`dirname $AS_FOR_TARGET`
11251 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11252echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11253 elif test "x$target" = "x$host"; then
11254 # We can use an host tool
11255 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11256 echo "$as_me:$LINENO: result: host tool" >&5
11257echo "${ECHO_T}host tool" >&6
be01d343
PB
11258 else
11259 # We need a cross tool
c6b750e1
DJ
11260 echo "$as_me:$LINENO: result: pre-installed" >&5
11261echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11262 fi
11263fi
4b900473 11264
c6b750e1
DJ
11265echo "$as_me:$LINENO: checking where to find the target cc" >&5
11266echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11267if test "x${build}" != "x${host}" ; then
2429c060
PB
11268 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11269 # We already found the complete path
b8025f34
AS
11270 ac_dir=`dirname $CC_FOR_TARGET`
11271 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11272echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11273 else
11274 # Canadian cross, just use what we found
c6b750e1
DJ
11275 echo "$as_me:$LINENO: result: pre-installed" >&5
11276echo "${ECHO_T}pre-installed" >&6
2429c060 11277 fi
be01d343
PB
11278else
11279 ok=yes
11280 case " ${configdirs} " in
11281 *" gcc "*) ;;
11282 *) ok=no ;;
11283 esac
c6b750e1 11284
be01d343
PB
11285 if test $ok = yes; then
11286 # An in-tree tool is available and we can use it
11287 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11288 echo "$as_me:$LINENO: result: just compiled" >&5
11289echo "${ECHO_T}just compiled" >&6
2429c060
PB
11290 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11291 # We already found the complete path
b8025f34
AS
11292 ac_dir=`dirname $CC_FOR_TARGET`
11293 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11294echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11295 elif test "x$target" = "x$host"; then
11296 # We can use an host tool
11297 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11298 echo "$as_me:$LINENO: result: host tool" >&5
11299echo "${ECHO_T}host tool" >&6
be01d343
PB
11300 else
11301 # We need a cross tool
c6b750e1
DJ
11302 echo "$as_me:$LINENO: result: pre-installed" >&5
11303echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11304 fi
11305fi
4b900473 11306
c6b750e1
DJ
11307echo "$as_me:$LINENO: checking where to find the target c++" >&5
11308echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11309if test "x${build}" != "x${host}" ; then
2429c060
PB
11310 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11311 # We already found the complete path
b8025f34
AS
11312 ac_dir=`dirname $CXX_FOR_TARGET`
11313 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11314echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11315 else
11316 # Canadian cross, just use what we found
c6b750e1
DJ
11317 echo "$as_me:$LINENO: result: pre-installed" >&5
11318echo "${ECHO_T}pre-installed" >&6
2429c060 11319 fi
be01d343
PB
11320else
11321 ok=yes
11322 case " ${configdirs} " in
11323 *" gcc "*) ;;
11324 *) ok=no ;;
11325 esac
11326 case ,${enable_languages}, in
11327 *,c++,*) ;;
11328 *) ok=no ;;
11329 esac
11330 if test $ok = yes; then
11331 # An in-tree tool is available and we can use it
11332 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
11333 echo "$as_me:$LINENO: result: just compiled" >&5
11334echo "${ECHO_T}just compiled" >&6
2429c060
PB
11335 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11336 # We already found the complete path
b8025f34
AS
11337 ac_dir=`dirname $CXX_FOR_TARGET`
11338 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11339echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11340 elif test "x$target" = "x$host"; then
11341 # We can use an host tool
11342 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11343 echo "$as_me:$LINENO: result: host tool" >&5
11344echo "${ECHO_T}host tool" >&6
be01d343
PB
11345 else
11346 # We need a cross tool
c6b750e1
DJ
11347 echo "$as_me:$LINENO: result: pre-installed" >&5
11348echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11349 fi
11350fi
4b900473 11351
c6b750e1
DJ
11352echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11353echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11354if test "x${build}" != "x${host}" ; then
2429c060
PB
11355 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11356 # We already found the complete path
b8025f34
AS
11357 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11358 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11359echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11360 else
11361 # Canadian cross, just use what we found
c6b750e1
DJ
11362 echo "$as_me:$LINENO: result: pre-installed" >&5
11363echo "${ECHO_T}pre-installed" >&6
2429c060 11364 fi
be01d343
PB
11365else
11366 ok=yes
11367 case " ${configdirs} " in
11368 *" gcc "*) ;;
11369 *) ok=no ;;
11370 esac
11371 case ,${enable_languages}, in
11372 *,c++,*) ;;
11373 *) ok=no ;;
11374 esac
11375 if test $ok = yes; then
11376 # An in-tree tool is available and we can use it
11377 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
11378 echo "$as_me:$LINENO: result: just compiled" >&5
11379echo "${ECHO_T}just compiled" >&6
2429c060
PB
11380 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11381 # We already found the complete path
b8025f34
AS
11382 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11383 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11384echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11385 elif test "x$target" = "x$host"; then
11386 # We can use an host tool
11387 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11388 echo "$as_me:$LINENO: result: host tool" >&5
11389echo "${ECHO_T}host tool" >&6
be01d343
PB
11390 else
11391 # We need a cross tool
c6b750e1
DJ
11392 echo "$as_me:$LINENO: result: pre-installed" >&5
11393echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11394 fi
11395fi
4b900473 11396
c6b750e1
DJ
11397echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11398echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11399if test "x${build}" != "x${host}" ; then
2429c060
PB
11400 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11401 # We already found the complete path
b8025f34
AS
11402 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11403 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11404echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11405 else
11406 # Canadian cross, just use what we found
c6b750e1
DJ
11407 echo "$as_me:$LINENO: result: pre-installed" >&5
11408echo "${ECHO_T}pre-installed" >&6
2429c060 11409 fi
be01d343
PB
11410else
11411 ok=yes
11412 case " ${configdirs} " in
11413 *" binutils "*) ;;
11414 *) ok=no ;;
11415 esac
c6b750e1 11416
be01d343
PB
11417 if test $ok = yes; then
11418 # An in-tree tool is available and we can use it
11419 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11420 echo "$as_me:$LINENO: result: just compiled" >&5
11421echo "${ECHO_T}just compiled" >&6
2429c060
PB
11422 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11423 # We already found the complete path
b8025f34
AS
11424 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11425 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11426echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11427 elif test "x$target" = "x$host"; then
11428 # We can use an host tool
11429 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11430 echo "$as_me:$LINENO: result: host tool" >&5
11431echo "${ECHO_T}host tool" >&6
be01d343
PB
11432 else
11433 # We need a cross tool
c6b750e1
DJ
11434 echo "$as_me:$LINENO: result: pre-installed" >&5
11435echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11436 fi
11437fi
4b900473 11438
c6b750e1
DJ
11439echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11440echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11441if test "x${build}" != "x${host}" ; then
2429c060
PB
11442 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11443 # We already found the complete path
b8025f34
AS
11444 ac_dir=`dirname $GCC_FOR_TARGET`
11445 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11446echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11447 else
11448 # Canadian cross, just use what we found
c6b750e1
DJ
11449 echo "$as_me:$LINENO: result: pre-installed" >&5
11450echo "${ECHO_T}pre-installed" >&6
2429c060 11451 fi
be01d343
PB
11452else
11453 ok=yes
11454 case " ${configdirs} " in
11455 *" gcc "*) ;;
11456 *) ok=no ;;
11457 esac
c6b750e1 11458
be01d343
PB
11459 if test $ok = yes; then
11460 # An in-tree tool is available and we can use it
11461 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11462 echo "$as_me:$LINENO: result: just compiled" >&5
11463echo "${ECHO_T}just compiled" >&6
2429c060
PB
11464 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11465 # We already found the complete path
b8025f34
AS
11466 ac_dir=`dirname $GCC_FOR_TARGET`
11467 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11468echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11469 elif test "x$target" = "x$host"; then
11470 # We can use an host tool
11471 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11472 echo "$as_me:$LINENO: result: host tool" >&5
11473echo "${ECHO_T}host tool" >&6
be01d343
PB
11474 else
11475 # We need a cross tool
c6b750e1
DJ
11476 echo "$as_me:$LINENO: result: pre-installed" >&5
11477echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11478 fi
11479fi
4b900473 11480
c6b750e1
DJ
11481echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11482echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11483if test "x${build}" != "x${host}" ; then
2429c060
PB
11484 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11485 # We already found the complete path
b8025f34
AS
11486 ac_dir=`dirname $GCJ_FOR_TARGET`
11487 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11488echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11489 else
11490 # Canadian cross, just use what we found
c6b750e1
DJ
11491 echo "$as_me:$LINENO: result: pre-installed" >&5
11492echo "${ECHO_T}pre-installed" >&6
2429c060 11493 fi
be01d343
PB
11494else
11495 ok=yes
11496 case " ${configdirs} " in
11497 *" gcc "*) ;;
11498 *) ok=no ;;
11499 esac
11500 case ,${enable_languages}, in
11501 *,java,*) ;;
11502 *) ok=no ;;
11503 esac
11504 if test $ok = yes; then
11505 # An in-tree tool is available and we can use it
11506 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11507 echo "$as_me:$LINENO: result: just compiled" >&5
11508echo "${ECHO_T}just compiled" >&6
2429c060
PB
11509 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11510 # We already found the complete path
b8025f34
AS
11511 ac_dir=`dirname $GCJ_FOR_TARGET`
11512 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11513echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11514 elif test "x$target" = "x$host"; then
11515 # We can use an host tool
11516 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11517 echo "$as_me:$LINENO: result: host tool" >&5
11518echo "${ECHO_T}host tool" >&6
be01d343
PB
11519 else
11520 # We need a cross tool
c6b750e1
DJ
11521 echo "$as_me:$LINENO: result: pre-installed" >&5
11522echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11523 fi
11524fi
4b900473 11525
c6b750e1
DJ
11526echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11527echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11528if test "x${build}" != "x${host}" ; then
2429c060
PB
11529 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11530 # We already found the complete path
b8025f34
AS
11531 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11532 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11533echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11534 else
11535 # Canadian cross, just use what we found
c6b750e1
DJ
11536 echo "$as_me:$LINENO: result: pre-installed" >&5
11537echo "${ECHO_T}pre-installed" >&6
2429c060 11538 fi
be01d343
PB
11539else
11540 ok=yes
11541 case " ${configdirs} " in
11542 *" gcc "*) ;;
11543 *) ok=no ;;
11544 esac
11545 case ,${enable_languages}, in
11546 *,fortran,*) ;;
11547 *) ok=no ;;
11548 esac
11549 if test $ok = yes; then
11550 # An in-tree tool is available and we can use it
11551 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11552 echo "$as_me:$LINENO: result: just compiled" >&5
11553echo "${ECHO_T}just compiled" >&6
2429c060
PB
11554 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11555 # We already found the complete path
b8025f34
AS
11556 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11557 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11558echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11559 elif test "x$target" = "x$host"; then
11560 # We can use an host tool
11561 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11562 echo "$as_me:$LINENO: result: host tool" >&5
11563echo "${ECHO_T}host tool" >&6
be01d343
PB
11564 else
11565 # We need a cross tool
c6b750e1
DJ
11566 echo "$as_me:$LINENO: result: pre-installed" >&5
11567echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11568 fi
11569fi
4b900473 11570
c6b750e1
DJ
11571echo "$as_me:$LINENO: checking where to find the target ld" >&5
11572echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11573if test "x${build}" != "x${host}" ; then
2429c060
PB
11574 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11575 # We already found the complete path
b8025f34
AS
11576 ac_dir=`dirname $LD_FOR_TARGET`
11577 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11578echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11579 else
11580 # Canadian cross, just use what we found
c6b750e1
DJ
11581 echo "$as_me:$LINENO: result: pre-installed" >&5
11582echo "${ECHO_T}pre-installed" >&6
2429c060 11583 fi
be01d343
PB
11584else
11585 ok=yes
11586 case " ${configdirs} " in
11587 *" ld "*) ;;
11588 *) ok=no ;;
11589 esac
c6b750e1 11590
be01d343
PB
11591 if test $ok = yes; then
11592 # An in-tree tool is available and we can use it
11593 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11594 echo "$as_me:$LINENO: result: just compiled" >&5
11595echo "${ECHO_T}just compiled" >&6
2429c060
PB
11596 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11597 # We already found the complete path
b8025f34
AS
11598 ac_dir=`dirname $LD_FOR_TARGET`
11599 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11600echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11601 elif test "x$target" = "x$host"; then
11602 # We can use an host tool
11603 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11604 echo "$as_me:$LINENO: result: host tool" >&5
11605echo "${ECHO_T}host tool" >&6
be01d343
PB
11606 else
11607 # We need a cross tool
c6b750e1
DJ
11608 echo "$as_me:$LINENO: result: pre-installed" >&5
11609echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11610 fi
11611fi
4b900473 11612
c6b750e1
DJ
11613echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11614echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11615if test "x${build}" != "x${host}" ; then
2429c060
PB
11616 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11617 # We already found the complete path
b8025f34
AS
11618 ac_dir=`dirname $LIPO_FOR_TARGET`
11619 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11620echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11621 else
11622 # Canadian cross, just use what we found
c6b750e1
DJ
11623 echo "$as_me:$LINENO: result: pre-installed" >&5
11624echo "${ECHO_T}pre-installed" >&6
2429c060 11625 fi
be01d343 11626else
2429c060
PB
11627 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11628 # We already found the complete path
b8025f34
AS
11629 ac_dir=`dirname $LIPO_FOR_TARGET`
11630 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11631echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11632 elif test "x$target" = "x$host"; then
be01d343
PB
11633 # We can use an host tool
11634 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11635 echo "$as_me:$LINENO: result: host tool" >&5
11636echo "${ECHO_T}host tool" >&6
be01d343
PB
11637 else
11638 # We need a cross tool
c6b750e1
DJ
11639 echo "$as_me:$LINENO: result: pre-installed" >&5
11640echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11641 fi
11642fi
4b900473 11643
c6b750e1
DJ
11644echo "$as_me:$LINENO: checking where to find the target nm" >&5
11645echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11646if test "x${build}" != "x${host}" ; then
2429c060
PB
11647 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11648 # We already found the complete path
b8025f34
AS
11649 ac_dir=`dirname $NM_FOR_TARGET`
11650 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11651echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11652 else
11653 # Canadian cross, just use what we found
c6b750e1
DJ
11654 echo "$as_me:$LINENO: result: pre-installed" >&5
11655echo "${ECHO_T}pre-installed" >&6
2429c060 11656 fi
be01d343
PB
11657else
11658 ok=yes
11659 case " ${configdirs} " in
11660 *" binutils "*) ;;
11661 *) ok=no ;;
11662 esac
c6b750e1 11663
be01d343
PB
11664 if test $ok = yes; then
11665 # An in-tree tool is available and we can use it
11666 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11667 echo "$as_me:$LINENO: result: just compiled" >&5
11668echo "${ECHO_T}just compiled" >&6
2429c060
PB
11669 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11670 # We already found the complete path
b8025f34
AS
11671 ac_dir=`dirname $NM_FOR_TARGET`
11672 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11673echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11674 elif test "x$target" = "x$host"; then
11675 # We can use an host tool
11676 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11677 echo "$as_me:$LINENO: result: host tool" >&5
11678echo "${ECHO_T}host tool" >&6
be01d343
PB
11679 else
11680 # We need a cross tool
c6b750e1
DJ
11681 echo "$as_me:$LINENO: result: pre-installed" >&5
11682echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11683 fi
11684fi
4b900473 11685
c6b750e1
DJ
11686echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11687echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11688if test "x${build}" != "x${host}" ; then
2429c060
PB
11689 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
b8025f34
AS
11691 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11694 else
11695 # Canadian cross, just use what we found
c6b750e1
DJ
11696 echo "$as_me:$LINENO: result: pre-installed" >&5
11697echo "${ECHO_T}pre-installed" >&6
2429c060 11698 fi
be01d343
PB
11699else
11700 ok=yes
11701 case " ${configdirs} " in
11702 *" binutils "*) ;;
11703 *) ok=no ;;
11704 esac
c6b750e1 11705
be01d343
PB
11706 if test $ok = yes; then
11707 # An in-tree tool is available and we can use it
11708 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11709 echo "$as_me:$LINENO: result: just compiled" >&5
11710echo "${ECHO_T}just compiled" >&6
2429c060
PB
11711 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11712 # We already found the complete path
b8025f34
AS
11713 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11714 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11715echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11716 elif test "x$target" = "x$host"; then
11717 # We can use an host tool
11718 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11719 echo "$as_me:$LINENO: result: host tool" >&5
11720echo "${ECHO_T}host tool" >&6
be01d343
PB
11721 else
11722 # We need a cross tool
c6b750e1
DJ
11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11725 fi
11726fi
4b900473 11727
c6b750e1
DJ
11728echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11729echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11730if test "x${build}" != "x${host}" ; then
2429c060
PB
11731 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
b8025f34
AS
11733 ac_dir=`dirname $RANLIB_FOR_TARGET`
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11736 else
11737 # Canadian cross, just use what we found
c6b750e1
DJ
11738 echo "$as_me:$LINENO: result: pre-installed" >&5
11739echo "${ECHO_T}pre-installed" >&6
2429c060 11740 fi
be01d343
PB
11741else
11742 ok=yes
11743 case " ${configdirs} " in
11744 *" binutils "*) ;;
11745 *) ok=no ;;
11746 esac
c6b750e1 11747
be01d343
PB
11748 if test $ok = yes; then
11749 # An in-tree tool is available and we can use it
11750 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11751 echo "$as_me:$LINENO: result: just compiled" >&5
11752echo "${ECHO_T}just compiled" >&6
2429c060
PB
11753 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11754 # We already found the complete path
b8025f34
AS
11755 ac_dir=`dirname $RANLIB_FOR_TARGET`
11756 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11757echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11758 elif test "x$target" = "x$host"; then
11759 # We can use an host tool
11760 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11761 echo "$as_me:$LINENO: result: host tool" >&5
11762echo "${ECHO_T}host tool" >&6
be01d343
PB
11763 else
11764 # We need a cross tool
c6b750e1
DJ
11765 echo "$as_me:$LINENO: result: pre-installed" >&5
11766echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11767 fi
11768fi
4b900473 11769
c6b750e1
DJ
11770echo "$as_me:$LINENO: checking where to find the target strip" >&5
11771echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11772if test "x${build}" != "x${host}" ; then
2429c060
PB
11773 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
b8025f34
AS
11775 ac_dir=`dirname $STRIP_FOR_TARGET`
11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11778 else
11779 # Canadian cross, just use what we found
c6b750e1
DJ
11780 echo "$as_me:$LINENO: result: pre-installed" >&5
11781echo "${ECHO_T}pre-installed" >&6
2429c060 11782 fi
be01d343
PB
11783else
11784 ok=yes
11785 case " ${configdirs} " in
11786 *" binutils "*) ;;
11787 *) ok=no ;;
11788 esac
c6b750e1 11789
be01d343
PB
11790 if test $ok = yes; then
11791 # An in-tree tool is available and we can use it
11792 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11793 echo "$as_me:$LINENO: result: just compiled" >&5
11794echo "${ECHO_T}just compiled" >&6
2429c060
PB
11795 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11796 # We already found the complete path
b8025f34
AS
11797 ac_dir=`dirname $STRIP_FOR_TARGET`
11798 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11799echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11800 elif test "x$target" = "x$host"; then
11801 # We can use an host tool
11802 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11803 echo "$as_me:$LINENO: result: host tool" >&5
11804echo "${ECHO_T}host tool" >&6
be01d343
PB
11805 else
11806 # We need a cross tool
c6b750e1
DJ
11807 echo "$as_me:$LINENO: result: pre-installed" >&5
11808echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11809 fi
11810fi
4b900473 11811
c6b750e1
DJ
11812echo "$as_me:$LINENO: checking where to find the target windres" >&5
11813echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11814if test "x${build}" != "x${host}" ; then
2429c060
PB
11815 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
b8025f34
AS
11817 ac_dir=`dirname $WINDRES_FOR_TARGET`
11818 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11820 else
11821 # Canadian cross, just use what we found
c6b750e1
DJ
11822 echo "$as_me:$LINENO: result: pre-installed" >&5
11823echo "${ECHO_T}pre-installed" >&6
2429c060 11824 fi
be01d343
PB
11825else
11826 ok=yes
11827 case " ${configdirs} " in
11828 *" binutils "*) ;;
11829 *) ok=no ;;
11830 esac
c6b750e1 11831
be01d343
PB
11832 if test $ok = yes; then
11833 # An in-tree tool is available and we can use it
11834 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11835 echo "$as_me:$LINENO: result: just compiled" >&5
11836echo "${ECHO_T}just compiled" >&6
2429c060
PB
11837 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11838 # We already found the complete path
b8025f34
AS
11839 ac_dir=`dirname $WINDRES_FOR_TARGET`
11840 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11841echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11842 elif test "x$target" = "x$host"; then
11843 # We can use an host tool
11844 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11845 echo "$as_me:$LINENO: result: host tool" >&5
11846echo "${ECHO_T}host tool" >&6
be01d343
PB
11847 else
11848 # We need a cross tool
c6b750e1
DJ
11849 echo "$as_me:$LINENO: result: pre-installed" >&5
11850echo "${ECHO_T}pre-installed" >&6
be01d343 11851 fi
a0da8069 11852fi
54752a6b 11853
0c24b341
NC
11854echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11855echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11856if test "x${build}" != "x${host}" ; then
11857 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11858 # We already found the complete path
11859 ac_dir=`dirname $WINDMC_FOR_TARGET`
11860 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11861echo "${ECHO_T}pre-installed in $ac_dir" >&6
11862 else
11863 # Canadian cross, just use what we found
11864 echo "$as_me:$LINENO: result: pre-installed" >&5
11865echo "${ECHO_T}pre-installed" >&6
11866 fi
11867else
11868 ok=yes
11869 case " ${configdirs} " in
11870 *" binutils "*) ;;
11871 *) ok=no ;;
11872 esac
11873
11874 if test $ok = yes; then
11875 # An in-tree tool is available and we can use it
11876 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11877 echo "$as_me:$LINENO: result: just compiled" >&5
11878echo "${ECHO_T}just compiled" >&6
11879 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11880 # We already found the complete path
11881 ac_dir=`dirname $WINDMC_FOR_TARGET`
11882 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11883echo "${ECHO_T}pre-installed in $ac_dir" >&6
11884 elif test "x$target" = "x$host"; then
11885 # We can use an host tool
11886 WINDMC_FOR_TARGET='$(WINDMC)'
11887 echo "$as_me:$LINENO: result: host tool" >&5
11888echo "${ECHO_T}host tool" >&6
11889 else
11890 # We need a cross tool
11891 echo "$as_me:$LINENO: result: pre-installed" >&5
11892echo "${ECHO_T}pre-installed" >&6
11893 fi
11894fi
11895
54752a6b
NN
11896
11897
be01d343 11898
4b900473 11899
a0da8069
NN
11900# Certain tools may need extra flags.
11901AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11902RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11903NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11904
be01d343
PB
11905# When building target libraries, except in a Canadian cross, we use
11906# the same toolchain as the compiler we just built.
11907COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11908COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11909COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11910if test $host = $build; then
11911 case " $configdirs " in
11912 *" gcc "*)
11913 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11914 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11915 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11916 ;;
11917 esac
11918fi
11919
11920
11921
11922
11923
c6b750e1
DJ
11924echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11925echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11926# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11927if test "${enable_maintainer_mode+set}" = set; then
11928 enableval="$enable_maintainer_mode"
11929 USE_MAINTAINER_MODE=$enableval
11930else
11931 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11932fi;
11933echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11934echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11935
11936
11937if test "$USE_MAINTAINER_MODE" = yes; then
11938 MAINTAINER_MODE_TRUE=
11939 MAINTAINER_MODE_FALSE='#'
11940else
11941 MAINTAINER_MODE_TRUE='#'
11942 MAINTAINER_MODE_FALSE=
c6b750e1 11943fi
3d5e36ae
AO
11944MAINT=$MAINTAINER_MODE_TRUE
11945
1d39f329
NN
11946# ---------------------
11947# GCC bootstrap support
11948# ---------------------
11949
11950# Stage specific cflags for build.
11951stage1_cflags="-g"
11952case $build in
11953 vax-*-*)
11954 case ${GCC} in
11955 yes) stage1_cflags="-g -Wa,-J" ;;
11956 *) stage1_cflags="-g -J" ;;
11957 esac ;;
1d39f329
NN
11958esac
11959
1d89b610
PB
11960# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11961if test "$GCC" = yes; then
11962 saved_CFLAGS="$CFLAGS"
11963
11964 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11965 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11966 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11967echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11968 cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
11974
2038f525
PB
11975#if (__GNUC__ < 3) \
11976 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11977 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11978#error http://gcc.gnu.org/PR29382
11979#endif
11980
c6b750e1
DJ
11981int
11982main ()
11983{
11984
11985 ;
11986 return 0;
11987}
11988_ACEOF
11989rm -f conftest.$ac_objext
11990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>conftest.er1
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -z "$ac_c_werror_flag"
11999 || test ! -s conftest.err'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 echo "$as_me:$LINENO: result: yes" >&5
12012echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12013else
12014 echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
12017echo "$as_me:$LINENO: result: no" >&5
12018echo "${ECHO_T}no" >&6
12019fi
12020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12021
12022 CFLAGS="$saved_CFLAGS"
12023fi
12024
12025
1d39f329 12026
8a0d8a5c
PB
12027# Enable --enable-checking in stage1 of the compiler.
12028# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12029if test "${enable_stage1_checking+set}" = set; then
12030 enableval="$enable_stage1_checking"
12031 stage1_checking=--enable-checking=${enable_stage1_checking}
12032else
5566c1fa 12033 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12034 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12035else
5566c1fa 12036 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12037fi
c6b750e1 12038fi;
8a0d8a5c
PB
12039
12040
1d39f329 12041# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12042# Check whether --enable-werror or --disable-werror was given.
12043if test "${enable_werror+set}" = set; then
12044 enableval="$enable_werror"
c6b750e1 12045
1d39f329 12046else
a0323144 12047 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12048 enable_werror=yes
79fcd0ec
PB
12049else
12050 enable_werror=no
12051fi
c6b750e1 12052fi;
1a6f2dc7
NN
12053case ${enable_werror} in
12054 yes) stage2_werror_flag="--enable-werror-always" ;;
12055 *) stage2_werror_flag="" ;;
1d39f329
NN
12056esac
12057
12058
108a6f8e 12059# Flags needed to enable html installing and building
c6b750e1 12060
108a6f8e
CD
12061# Check whether --with-datarootdir or --without-datarootdir was given.
12062if test "${with_datarootdir+set}" = set; then
12063 withval="$with_datarootdir"
12064 datarootdir="\${prefix}/${withval}"
12065else
12066 datarootdir="\${prefix}/share"
c6b750e1 12067fi;
108a6f8e
CD
12068
12069
12070# Check whether --with-docdir or --without-docdir was given.
12071if test "${with_docdir+set}" = set; then
12072 withval="$with_docdir"
12073 docdir="\${prefix}/${withval}"
12074else
12075 docdir="\${datarootdir}/doc"
c6b750e1 12076fi;
108a6f8e
CD
12077
12078
a3ca38d2
DD
12079# Check whether --with-pdfdir or --without-pdfdir was given.
12080if test "${with_pdfdir+set}" = set; then
12081 withval="$with_pdfdir"
12082 pdfdir="\${prefix}/${withval}"
12083else
12084 pdfdir="\${docdir}"
12085fi;
12086
12087
108a6f8e
CD
12088# Check whether --with-htmldir or --without-htmldir was given.
12089if test "${with_htmldir+set}" = set; then
12090 withval="$with_htmldir"
12091 htmldir="\${prefix}/${withval}"
12092else
12093 htmldir="\${docdir}"
c6b750e1 12094fi;
108a6f8e
CD
12095
12096
12097
12098
12099
b8025f34 12100
c6b750e1
DJ
12101 ac_config_files="$ac_config_files Makefile"
12102cat >confcache <<\_ACEOF
a0da8069
NN
12103# This file is a shell script that caches the results of configure
12104# tests run on this system so they can be shared between configure
c6b750e1
DJ
12105# scripts and configure runs, see configure's option --config-cache.
12106# It is not useful on other systems. If it contains results you don't
12107# want to keep, you may remove or edit it.
a0da8069 12108#
c6b750e1
DJ
12109# config.status only pays attention to the cache file if you give it
12110# the --recheck option to rerun configure.
a0da8069 12111#
c6b750e1
DJ
12112# `ac_cv_env_foo' variables (set or unset) will be overridden when
12113# loading this file, other *unset* `ac_cv_foo' will be assigned the
12114# following values.
12115
12116_ACEOF
12117
a0da8069
NN
12118# The following way of writing the cache mishandles newlines in values,
12119# but we know of no workaround that is simple, portable, and efficient.
12120# So, don't put newlines in cache variables' values.
12121# Ultrix sh set writes to stderr and can't be redirected directly,
12122# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12123{
12124 (set) 2>&1 |
12125 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12126 *ac_space=\ *)
12127 # `set' does not quote correctly, so add quotes (double-quote
12128 # substitution turns \\\\ into \\, and sed turns \\ into \).
12129 sed -n \
12130 "s/'/'\\\\''/g;
12131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12132 ;;
12133 *)
12134 # `set' quotes correctly as required by POSIX, so do not add quotes.
12135 sed -n \
12136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12137 ;;
12138 esac;
12139} |
12140 sed '
12141 t clear
12142 : clear
12143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12144 t end
12145 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12146 : end' >>confcache
12147if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12148 if test -w $cache_file; then
c6b750e1
DJ
12149 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12150 cat confcache >$cache_file
a0da8069
NN
12151 else
12152 echo "not updating unwritable cache $cache_file"
12153 fi
852e5f18 12154fi
a0da8069 12155rm -f confcache
852e5f18 12156
a0da8069
NN
12157test "x$prefix" = xNONE && prefix=$ac_default_prefix
12158# Let make expand exec_prefix.
12159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12160
c6b750e1
DJ
12161# VPATH may cause trouble with some makes, so we remove $(srcdir),
12162# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12163# trailing colons and then remove the whole line if VPATH becomes empty
12164# (actually we leave an empty line to preserve line numbers).
a0da8069 12165if test "x$srcdir" = x.; then
c6b750e1
DJ
12166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12167s/:*\$(srcdir):*/:/;
12168s/:*\${srcdir}:*/:/;
12169s/:*@srcdir@:*/:/;
12170s/^\([^=]*=[ ]*\):*/\1/;
12171s/:*$//;
12172s/^[^=]*=[ ]*$//;
12173}'
a0da8069 12174fi
252b5132 12175
a0da8069
NN
12176# Transform confdefs.h into DEFS.
12177# Protect against shell expansion while executing Makefile rules.
12178# Protect against Makefile macro expansion.
c6b750e1
DJ
12179#
12180# If the first sed substitution is executed (which looks for macros that
12181# take arguments), then we branch to the quote section. Otherwise,
12182# look for a macro that doesn't take arguments.
12183cat >confdef2opt.sed <<\_ACEOF
12184t clear
12185: clear
12186s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12187t quote
12188s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12189t quote
12190d
12191: quote
12192s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12193s,\[,\\&,g
12194s,\],\\&,g
12195s,\$,$$,g
12196p
12197_ACEOF
12198# We use echo to avoid assuming a particular line-breaking character.
12199# The extra dot is to prevent the shell from consuming trailing
12200# line-breaks from the sub-command output. A line-break within
12201# single-quotes doesn't work because, if this script is created in a
12202# platform that uses two characters for line-breaks (e.g., DOS), tr
12203# would break.
12204ac_LF_and_DOT=`echo; echo .`
12205DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12206rm -f confdef2opt.sed
12207
12208
12209ac_libobjs=
12210ac_ltlibobjs=
12211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12212 # 1. Remove the extension, and $U if already installed.
12213 ac_i=`echo "$ac_i" |
12214 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12215 # 2. Add them.
12216 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12217 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12218done
12219LIBOBJS=$ac_libobjs
852e5f18 12220
c6b750e1 12221LTLIBOBJS=$ac_ltlibobjs
376a0e54 12222
cac3d6c4 12223
c6b750e1
DJ
12224
12225: ${CONFIG_STATUS=./config.status}
12226ac_clean_files_save=$ac_clean_files
12227ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12228{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12229echo "$as_me: creating $CONFIG_STATUS" >&6;}
12230cat >$CONFIG_STATUS <<_ACEOF
12231#! $SHELL
12232# Generated by $as_me.
a0da8069 12233# Run this file to recreate the current configuration.
a0da8069 12234# Compiler output produced by configure, useful for debugging
c6b750e1 12235# configure, is in config.log if it exists.
376a0e54 12236
c6b750e1
DJ
12237debug=false
12238ac_cs_recheck=false
12239ac_cs_silent=false
12240SHELL=\${CONFIG_SHELL-$SHELL}
12241_ACEOF
12242
12243cat >>$CONFIG_STATUS <<\_ACEOF
12244## --------------------- ##
12245## M4sh Initialization. ##
12246## --------------------- ##
12247
12248# Be Bourne compatible
12249if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12250 emulate sh
12251 NULLCMD=:
12252 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12253 # is contrary to our usage. Disable this feature.
12254 alias -g '${1+"$@"}'='"$@"'
12255elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12256 set -o posix
12257fi
12258DUALCASE=1; export DUALCASE # for MKS sh
12259
12260# Support unset when possible.
12261if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12262 as_unset=unset
12263else
12264 as_unset=false
12265fi
12266
12267
12268# Work around bugs in pre-3.0 UWIN ksh.
12269$as_unset ENV MAIL MAILPATH
12270PS1='$ '
12271PS2='> '
12272PS4='+ '
12273
12274# NLS nuisances.
12275for as_var in \
12276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12278 LC_TELEPHONE LC_TIME
12279do
12280 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12281 eval $as_var=C; export $as_var
12282 else
12283 $as_unset $as_var
12284 fi
12285done
12286
12287# Required to use basename.
12288if expr a : '\(a\)' >/dev/null 2>&1; then
12289 as_expr=expr
12290else
12291 as_expr=false
12292fi
12293
12294if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12295 as_basename=basename
12296else
12297 as_basename=false
12298fi
12299
12300
12301# Name of the executable.
12302as_me=`$as_basename "$0" ||
12303$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12304 X"$0" : 'X\(//\)$' \| \
12305 X"$0" : 'X\(/\)$' \| \
12306 . : '\(.\)' 2>/dev/null ||
12307echo X/"$0" |
12308 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12309 /^X\/\(\/\/\)$/{ s//\1/; q; }
12310 /^X\/\(\/\).*/{ s//\1/; q; }
12311 s/.*/./; q'`
12312
12313
12314# PATH needs CR, and LINENO needs CR and PATH.
12315# Avoid depending upon Character Ranges.
12316as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12317as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12318as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12319as_cr_digits='0123456789'
12320as_cr_alnum=$as_cr_Letters$as_cr_digits
12321
12322# The user is always right.
12323if test "${PATH_SEPARATOR+set}" != set; then
12324 echo "#! /bin/sh" >conf$$.sh
12325 echo "exit 0" >>conf$$.sh
12326 chmod +x conf$$.sh
12327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12328 PATH_SEPARATOR=';'
12329 else
12330 PATH_SEPARATOR=:
12331 fi
12332 rm -f conf$$.sh
12333fi
12334
12335
12336 as_lineno_1=$LINENO
12337 as_lineno_2=$LINENO
12338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12339 test "x$as_lineno_1" != "x$as_lineno_2" &&
12340 test "x$as_lineno_3" = "x$as_lineno_2" || {
12341 # Find who we are. Look in the path if we contain no path at all
12342 # relative or not.
12343 case $0 in
12344 *[\\/]* ) as_myself=$0 ;;
12345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346for as_dir in $PATH
12347do
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
12350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12351done
12352
12353 ;;
12354 esac
12355 # We did not find ourselves, most probably we were run as `sh COMMAND'
12356 # in which case we are not to be found in the path.
12357 if test "x$as_myself" = x; then
12358 as_myself=$0
12359 fi
12360 if test ! -f "$as_myself"; then
12361 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12362echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12363 { (exit 1); exit 1; }; }
12364 fi
12365 case $CONFIG_SHELL in
12366 '')
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for as_base in sh bash ksh sh5; do
12373 case $as_dir in
12374 /*)
12375 if ("$as_dir/$as_base" -c '
12376 as_lineno_1=$LINENO
12377 as_lineno_2=$LINENO
12378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12379 test "x$as_lineno_1" != "x$as_lineno_2" &&
12380 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12381 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12382 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12383 CONFIG_SHELL=$as_dir/$as_base
12384 export CONFIG_SHELL
12385 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12386 fi;;
12387 esac
12388 done
12389done
12390;;
12391 esac
12392
12393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12394 # uniformly replaced by the line number. The first 'sed' inserts a
12395 # line-number line before each line; the second 'sed' does the real
12396 # work. The second script uses 'N' to pair each line-number line
12397 # with the numbered line, and appends trailing '-' during
12398 # substitution so that $LINENO is not a special case at line end.
12399 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12400 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12401 sed '=' <$as_myself |
12402 sed '
12403 N
12404 s,$,-,
12405 : loop
12406 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12407 t loop
12408 s,-$,,
12409 s,^['$as_cr_digits']*\n,,
12410 ' >$as_me.lineno &&
12411 chmod +x $as_me.lineno ||
12412 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12413echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12414 { (exit 1); exit 1; }; }
12415
12416 # Don't try to exec as it changes $[0], causing all sort of problems
12417 # (the dirname of $[0] is not the place where we might find the
12418 # original and so on. Autoconf is especially sensible to this).
12419 . ./$as_me.lineno
12420 # Exit status is that of the last command.
12421 exit
12422}
12423
12424
12425case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12426 *c*,-n*) ECHO_N= ECHO_C='
12427' ECHO_T=' ' ;;
12428 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12429 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12430esac
12431
12432if expr a : '\(a\)' >/dev/null 2>&1; then
12433 as_expr=expr
12434else
12435 as_expr=false
12436fi
12437
12438rm -f conf$$ conf$$.exe conf$$.file
12439echo >conf$$.file
12440if ln -s conf$$.file conf$$ 2>/dev/null; then
12441 # We could just check for DJGPP; but this test a) works b) is more generic
12442 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12443 if test -f conf$$.exe; then
12444 # Don't use ln at all; we don't have any links
12445 as_ln_s='cp -p'
12446 else
12447 as_ln_s='ln -s'
12448 fi
12449elif ln conf$$.file conf$$ 2>/dev/null; then
12450 as_ln_s=ln
12451else
12452 as_ln_s='cp -p'
12453fi
12454rm -f conf$$ conf$$.exe conf$$.file
12455
12456if mkdir -p . 2>/dev/null; then
12457 as_mkdir_p=:
12458else
12459 test -d ./-p && rmdir ./-p
12460 as_mkdir_p=false
12461fi
12462
12463as_executable_p="test -f"
12464
12465# Sed expression to map a string onto a valid CPP name.
12466as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12467
12468# Sed expression to map a string onto a valid variable name.
12469as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12470
12471
12472# IFS
12473# We need space, tab and new line, in precisely that order.
12474as_nl='
12475'
12476IFS=" $as_nl"
12477
12478# CDPATH.
12479$as_unset CDPATH
12480
12481exec 6>&1
12482
12483# Open the log real soon, to keep \$[0] and so on meaningful, and to
12484# report actual input values of CONFIG_FILES etc. instead of their
12485# values after options handling. Logging --version etc. is OK.
12486exec 5>>config.log
12487{
12488 echo
12489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12490## Running $as_me. ##
12491_ASBOX
12492} >&5
12493cat >&5 <<_CSEOF
12494
12495This file was extended by $as_me, which was
12496generated by GNU Autoconf 2.59. Invocation command line was
12497
12498 CONFIG_FILES = $CONFIG_FILES
12499 CONFIG_HEADERS = $CONFIG_HEADERS
12500 CONFIG_LINKS = $CONFIG_LINKS
12501 CONFIG_COMMANDS = $CONFIG_COMMANDS
12502 $ $0 $@
12503
12504_CSEOF
12505echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12506echo >&5
12507_ACEOF
12508
12509# Files that config.status was made for.
12510if test -n "$ac_config_files"; then
12511 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12512fi
12513
12514if test -n "$ac_config_headers"; then
12515 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12516fi
12517
12518if test -n "$ac_config_links"; then
12519 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12520fi
12521
12522if test -n "$ac_config_commands"; then
12523 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12524fi
12525
12526cat >>$CONFIG_STATUS <<\_ACEOF
12527
12528ac_cs_usage="\
12529\`$as_me' instantiates files from templates according to the
12530current configuration.
12531
12532Usage: $0 [OPTIONS] [FILE]...
12533
12534 -h, --help print this help, then exit
12535 -V, --version print version number, then exit
12536 -q, --quiet do not print progress messages
12537 -d, --debug don't remove temporary files
12538 --recheck update $as_me by reconfiguring in the same conditions
12539 --file=FILE[:TEMPLATE]
12540 instantiate the configuration file FILE
12541
12542Configuration files:
12543$config_files
12544
12545Report bugs to <bug-autoconf@gnu.org>."
12546_ACEOF
12547
12548cat >>$CONFIG_STATUS <<_ACEOF
12549ac_cs_version="\\
12550config.status
12551configured by $0, generated by GNU Autoconf 2.59,
12552 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12553
12554Copyright (C) 2003 Free Software Foundation, Inc.
12555This config.status script is free software; the Free Software Foundation
12556gives unlimited permission to copy, distribute and modify it."
12557srcdir=$srcdir
12558INSTALL="$INSTALL"
12559_ACEOF
12560
12561cat >>$CONFIG_STATUS <<\_ACEOF
12562# If no file are specified by the user, then we need to provide default
12563# value. By we need to know if files were specified by the user.
12564ac_need_defaults=:
12565while test $# != 0
a0da8069 12566do
c6b750e1
DJ
12567 case $1 in
12568 --*=*)
12569 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12570 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12571 ac_shift=:
12572 ;;
12573 -*)
12574 ac_option=$1
12575 ac_optarg=$2
12576 ac_shift=shift
12577 ;;
12578 *) # This is not an option, so the user has probably given explicit
12579 # arguments.
12580 ac_option=$1
12581 ac_need_defaults=false;;
12582 esac
12583
12584 case $ac_option in
12585 # Handling of the options.
12586_ACEOF
12587cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12589 ac_cs_recheck=: ;;
12590 --version | --vers* | -V )
12591 echo "$ac_cs_version"; exit 0 ;;
12592 --he | --h)
12593 # Conflict between --help and --header
12594 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12595Try \`$0 --help' for more information." >&5
12596echo "$as_me: error: ambiguous option: $1
12597Try \`$0 --help' for more information." >&2;}
12598 { (exit 1); exit 1; }; };;
12599 --help | --hel | -h )
12600 echo "$ac_cs_usage"; exit 0 ;;
12601 --debug | --d* | -d )
12602 debug=: ;;
12603 --file | --fil | --fi | --f )
12604 $ac_shift
12605 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12606 ac_need_defaults=false;;
12607 --header | --heade | --head | --hea )
12608 $ac_shift
12609 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12610 ac_need_defaults=false;;
12611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12613 ac_cs_silent=: ;;
12614
12615 # This is an error.
12616 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12617Try \`$0 --help' for more information." >&5
12618echo "$as_me: error: unrecognized option: $1
12619Try \`$0 --help' for more information." >&2;}
12620 { (exit 1); exit 1; }; } ;;
12621
12622 *) ac_config_targets="$ac_config_targets $1" ;;
12623
376a0e54 12624 esac
c6b750e1 12625 shift
376a0e54
CM
12626done
12627
c6b750e1 12628ac_configure_extra_args=
376a0e54 12629
c6b750e1
DJ
12630if $ac_cs_silent; then
12631 exec 6>/dev/null
12632 ac_configure_extra_args="$ac_configure_extra_args --silent"
12633fi
376a0e54 12634
c6b750e1
DJ
12635_ACEOF
12636cat >>$CONFIG_STATUS <<_ACEOF
12637if \$ac_cs_recheck; then
12638 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12639 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12640fi
12641
12642_ACEOF
12643
12644
12645
12646
12647
12648cat >>$CONFIG_STATUS <<\_ACEOF
12649for ac_config_target in $ac_config_targets
12650do
12651 case "$ac_config_target" in
12652 # Handling of arguments.
12653 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12655echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12656 { (exit 1); exit 1; }; };;
12657 esac
12658done
12659
12660# If the user did not use the arguments to specify the items to instantiate,
12661# then the envvar interface is used. Set only those that are not.
12662# We use the long form for the default assignment because of an extremely
12663# bizarre bug on SunOS 4.1.3.
12664if $ac_need_defaults; then
12665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12666fi
12667
12668# Have a temporary directory for convenience. Make it in the build tree
12669# simply because there is no reason to put it here, and in addition,
12670# creating and moving files from /tmp can sometimes cause problems.
12671# Create a temporary directory, and hook for its removal unless debugging.
12672$debug ||
12673{
12674 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12675 trap '{ (exit 1); exit 1; }' 1 2 13 15
12676}
12677
12678# Create a (secure) tmp directory for tmp files.
12679
12680{
12681 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12682 test -n "$tmp" && test -d "$tmp"
12683} ||
12684{
12685 tmp=./confstat$$-$RANDOM
12686 (umask 077 && mkdir $tmp)
12687} ||
12688{
12689 echo "$me: cannot create a temporary directory in ." >&2
12690 { (exit 1); exit 1; }
12691}
12692
12693_ACEOF
12694
12695cat >>$CONFIG_STATUS <<_ACEOF
12696
12697#
12698# CONFIG_FILES section.
12699#
12700
12701# No need to generate the scripts if there are no CONFIG_FILES.
12702# This happens for instance when ./config.status config.h
12703if test -n "\$CONFIG_FILES"; then
12704 # Protect against being on the right side of a sed subst in config.status.
12705 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12706 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12707s,@SHELL@,$SHELL,;t t
12708s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12709s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12710s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12711s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12712s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12713s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12714s,@exec_prefix@,$exec_prefix,;t t
12715s,@prefix@,$prefix,;t t
12716s,@program_transform_name@,$program_transform_name,;t t
12717s,@bindir@,$bindir,;t t
12718s,@sbindir@,$sbindir,;t t
12719s,@libexecdir@,$libexecdir,;t t
12720s,@datadir@,$datadir,;t t
12721s,@sysconfdir@,$sysconfdir,;t t
12722s,@sharedstatedir@,$sharedstatedir,;t t
12723s,@localstatedir@,$localstatedir,;t t
12724s,@libdir@,$libdir,;t t
12725s,@includedir@,$includedir,;t t
12726s,@oldincludedir@,$oldincludedir,;t t
12727s,@infodir@,$infodir,;t t
12728s,@mandir@,$mandir,;t t
12729s,@build_alias@,$build_alias,;t t
12730s,@host_alias@,$host_alias,;t t
12731s,@target_alias@,$target_alias,;t t
12732s,@DEFS@,$DEFS,;t t
12733s,@ECHO_C@,$ECHO_C,;t t
12734s,@ECHO_N@,$ECHO_N,;t t
12735s,@ECHO_T@,$ECHO_T,;t t
12736s,@LIBS@,$LIBS,;t t
12737s,@build@,$build,;t t
12738s,@build_cpu@,$build_cpu,;t t
12739s,@build_vendor@,$build_vendor,;t t
12740s,@build_os@,$build_os,;t t
12741s,@build_noncanonical@,$build_noncanonical,;t t
12742s,@host_noncanonical@,$host_noncanonical,;t t
12743s,@target_noncanonical@,$target_noncanonical,;t t
12744s,@host@,$host,;t t
12745s,@host_cpu@,$host_cpu,;t t
12746s,@host_vendor@,$host_vendor,;t t
12747s,@host_os@,$host_os,;t t
12748s,@target@,$target,;t t
12749s,@target_cpu@,$target_cpu,;t t
12750s,@target_vendor@,$target_vendor,;t t
12751s,@target_os@,$target_os,;t t
12752s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12753s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12754s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12755s,@LN@,$LN,;t t
12756s,@LN_S@,$LN_S,;t t
12757s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12758s,@build_libsubdir@,$build_libsubdir,;t t
12759s,@build_subdir@,$build_subdir,;t t
12760s,@host_subdir@,$host_subdir,;t t
12761s,@target_subdir@,$target_subdir,;t t
12762s,@CC@,$CC,;t t
12763s,@CFLAGS@,$CFLAGS,;t t
12764s,@LDFLAGS@,$LDFLAGS,;t t
12765s,@CPPFLAGS@,$CPPFLAGS,;t t
12766s,@ac_ct_CC@,$ac_ct_CC,;t t
12767s,@EXEEXT@,$EXEEXT,;t t
12768s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12769s,@CXX@,$CXX,;t t
12770s,@CXXFLAGS@,$CXXFLAGS,;t t
12771s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12772s,@GNATBIND@,$GNATBIND,;t t
12773s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12774s,@GNATMAKE@,$GNATMAKE,;t t
12775s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12776s,@do_compare@,$do_compare,;t t
12777s,@gmplibs@,$gmplibs,;t t
12778s,@gmpinc@,$gmpinc,;t t
12779s,@stage1_languages@,$stage1_languages,;t t
12780s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12781s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12782s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12783s,@tooldir@,$tooldir,;t t
12784s,@build_tooldir@,$build_tooldir,;t t
12785s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12786s,@GDB_TK@,$GDB_TK,;t t
12787s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12788s,@build_configargs@,$build_configargs,;t t
12789s,@build_configdirs@,$build_configdirs,;t t
12790s,@host_configargs@,$host_configargs,;t t
12791s,@configdirs@,$configdirs,;t t
12792s,@target_configargs@,$target_configargs,;t t
12793s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12794s,@config_shell@,$config_shell,;t t
12795s,@YACC@,$YACC,;t t
12796s,@BISON@,$BISON,;t t
12797s,@M4@,$M4,;t t
12798s,@LEX@,$LEX,;t t
12799s,@FLEX@,$FLEX,;t t
12800s,@MAKEINFO@,$MAKEINFO,;t t
12801s,@EXPECT@,$EXPECT,;t t
12802s,@RUNTEST@,$RUNTEST,;t t
12803s,@AR@,$AR,;t t
12804s,@AS@,$AS,;t t
12805s,@DLLTOOL@,$DLLTOOL,;t t
12806s,@LD@,$LD,;t t
12807s,@LIPO@,$LIPO,;t t
12808s,@NM@,$NM,;t t
12809s,@RANLIB@,$RANLIB,;t t
12810s,@STRIP@,$STRIP,;t t
12811s,@WINDRES@,$WINDRES,;t t
0c24b341 12812s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12813s,@OBJCOPY@,$OBJCOPY,;t t
12814s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12815s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12816s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12817s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12818s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12819s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12820s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12821s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12822s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12823s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12824s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12825s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12826s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12827s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12828s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12829s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12830s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12831s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12832s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12833s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12834s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12835s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12836s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12837s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12838s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12839s,@MAINT@,$MAINT,;t t
12840s,@stage1_cflags@,$stage1_cflags,;t t
12841s,@stage1_checking@,$stage1_checking,;t t
12842s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12843s,@datarootdir@,$datarootdir,;t t
12844s,@docdir@,$docdir,;t t
a3ca38d2 12845s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12846s,@htmldir@,$htmldir,;t t
12847s,@LIBOBJS@,$LIBOBJS,;t t
12848s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12849/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12850s,@serialization_dependencies@,,;t t
a0da8069 12851/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12852s,@host_makefile_frag@,,;t t
a0da8069 12853/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12854s,@target_makefile_frag@,,;t t
a0da8069 12855/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12856s,@alphaieee_frag@,,;t t
a0da8069 12857/@ospace_frag@/r $ospace_frag
c6b750e1 12858s,@ospace_frag@,,;t t
a0da8069 12859CEOF
252b5132 12860
c6b750e1
DJ
12861_ACEOF
12862
12863 cat >>$CONFIG_STATUS <<\_ACEOF
12864 # Split the substitutions into bite-sized pieces for seds with
12865 # small command number limits, like on Digital OSF/1 and HP-UX.
12866 ac_max_sed_lines=48
12867 ac_sed_frag=1 # Number of current file.
12868 ac_beg=1 # First line for current file.
12869 ac_end=$ac_max_sed_lines # Line after last line for current file.
12870 ac_more_lines=:
12871 ac_sed_cmds=
12872 while $ac_more_lines; do
12873 if test $ac_beg -gt 1; then
12874 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12875 else
12876 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12877 fi
12878 if test ! -s $tmp/subs.frag; then
12879 ac_more_lines=false
a0da8069 12880 else
c6b750e1
DJ
12881 # The purpose of the label and of the branching condition is to
12882 # speed up the sed processing (if there are no `@' at all, there
12883 # is no need to browse any of the substitutions).
12884 # These are the two extra sed commands mentioned above.
12885 (echo ':t
12886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12887 if test -z "$ac_sed_cmds"; then
12888 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12889 else
12890 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12891 fi
12892 ac_sed_frag=`expr $ac_sed_frag + 1`
12893 ac_beg=$ac_end
12894 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12895 fi
c6b750e1
DJ
12896 done
12897 if test -z "$ac_sed_cmds"; then
12898 ac_sed_cmds=cat
852e5f18 12899 fi
c6b750e1 12900fi # test -n "$CONFIG_FILES"
cac3d6c4 12901
c6b750e1
DJ
12902_ACEOF
12903cat >>$CONFIG_STATUS <<\_ACEOF
12904for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12905 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12906 case $ac_file in
12907 - | *:- | *:-:* ) # input from stdin
12908 cat >$tmp/stdin
12909 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12911 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12912 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12913 * ) ac_file_in=$ac_file.in ;;
a0da8069 12914 esac
252b5132 12915
c6b750e1
DJ
12916 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12917 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12918$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12919 X"$ac_file" : 'X\(//\)[^/]' \| \
12920 X"$ac_file" : 'X\(//\)$' \| \
12921 X"$ac_file" : 'X\(/\)' \| \
12922 . : '\(.\)' 2>/dev/null ||
12923echo X"$ac_file" |
12924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12926 /^X\(\/\/\)$/{ s//\1/; q; }
12927 /^X\(\/\).*/{ s//\1/; q; }
12928 s/.*/./; q'`
12929 { if $as_mkdir_p; then
12930 mkdir -p "$ac_dir"
cac3d6c4 12931 else
c6b750e1
DJ
12932 as_dir="$ac_dir"
12933 as_dirs=
12934 while test ! -d "$as_dir"; do
12935 as_dirs="$as_dir $as_dirs"
12936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12938 X"$as_dir" : 'X\(//\)[^/]' \| \
12939 X"$as_dir" : 'X\(//\)$' \| \
12940 X"$as_dir" : 'X\(/\)' \| \
12941 . : '\(.\)' 2>/dev/null ||
12942echo X"$as_dir" |
12943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12945 /^X\(\/\/\)$/{ s//\1/; q; }
12946 /^X\(\/\).*/{ s//\1/; q; }
12947 s/.*/./; q'`
12948 done
12949 test ! -n "$as_dirs" || mkdir $as_dirs
12950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12951echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12952 { (exit 1); exit 1; }; }; }
12953
12954 ac_builddir=.
252b5132 12955
c6b750e1
DJ
12956if test "$ac_dir" != .; then
12957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12958 # A "../" for each directory in $ac_dir_suffix.
12959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12960else
12961 ac_dir_suffix= ac_top_builddir=
12962fi
12963
12964case $srcdir in
12965 .) # No --srcdir option. We are building in place.
12966 ac_srcdir=.
12967 if test -z "$ac_top_builddir"; then
12968 ac_top_srcdir=.
12969 else
12970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12971 fi ;;
12972 [\\/]* | ?:[\\/]* ) # Absolute path.
12973 ac_srcdir=$srcdir$ac_dir_suffix;
12974 ac_top_srcdir=$srcdir ;;
a0da8069 12975 *) # Relative path.
c6b750e1
DJ
12976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12978esac
252b5132 12979
c6b750e1
DJ
12980# Do not use `cd foo && pwd` to compute absolute paths, because
12981# the directories may not exist.
12982case `pwd` in
12983.) ac_abs_builddir="$ac_dir";;
12984*)
12985 case "$ac_dir" in
12986 .) ac_abs_builddir=`pwd`;;
12987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12989 esac;;
12990esac
12991case $ac_abs_builddir in
12992.) ac_abs_top_builddir=${ac_top_builddir}.;;
12993*)
12994 case ${ac_top_builddir}. in
12995 .) ac_abs_top_builddir=$ac_abs_builddir;;
12996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12998 esac;;
12999esac
13000case $ac_abs_builddir in
13001.) ac_abs_srcdir=$ac_srcdir;;
13002*)
13003 case $ac_srcdir in
13004 .) ac_abs_srcdir=$ac_abs_builddir;;
13005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13007 esac;;
13008esac
13009case $ac_abs_builddir in
13010.) ac_abs_top_srcdir=$ac_top_srcdir;;
13011*)
13012 case $ac_top_srcdir in
13013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13016 esac;;
13017esac
252b5132 13018
c6b750e1
DJ
13019
13020 case $INSTALL in
13021 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13022 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13023 esac
252b5132 13024
c6b750e1
DJ
13025 if test x"$ac_file" != x-; then
13026 { echo "$as_me:$LINENO: creating $ac_file" >&5
13027echo "$as_me: creating $ac_file" >&6;}
13028 rm -f "$ac_file"
13029 fi
13030 # Let's still pretend it is `configure' which instantiates (i.e., don't
13031 # use $as_me), people would be surprised to read:
13032 # /* config.h. Generated by config.status. */
13033 if test x"$ac_file" = x-; then
13034 configure_input=
13035 else
13036 configure_input="$ac_file. "
13037 fi
13038 configure_input=$configure_input"Generated from `echo $ac_file_in |
13039 sed 's,.*/,,'` by configure."
13040
13041 # First look for the input files in the build tree, otherwise in the
13042 # src tree.
13043 ac_file_inputs=`IFS=:
13044 for f in $ac_file_in; do
13045 case $f in
13046 -) echo $tmp/stdin ;;
13047 [\\/$]*)
13048 # Absolute (can't be DOS-style, as IFS=:)
13049 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13050echo "$as_me: error: cannot find input file: $f" >&2;}
13051 { (exit 1); exit 1; }; }
13052 echo "$f";;
13053 *) # Relative
13054 if test -f "$f"; then
13055 # Build tree
13056 echo "$f"
13057 elif test -f "$srcdir/$f"; then
13058 # Source tree
13059 echo "$srcdir/$f"
13060 else
13061 # /dev/null tree
13062 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13063echo "$as_me: error: cannot find input file: $f" >&2;}
13064 { (exit 1); exit 1; }; }
13065 fi;;
13066 esac
13067 done` || { (exit 1); exit 1; }
13068_ACEOF
13069cat >>$CONFIG_STATUS <<_ACEOF
13070 sed "$ac_vpsub
13071$extrasub
13072_ACEOF
13073cat >>$CONFIG_STATUS <<\_ACEOF
13074:t
13075/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13076s,@configure_input@,$configure_input,;t t
13077s,@srcdir@,$ac_srcdir,;t t
13078s,@abs_srcdir@,$ac_abs_srcdir,;t t
13079s,@top_srcdir@,$ac_top_srcdir,;t t
13080s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13081s,@builddir@,$ac_builddir,;t t
13082s,@abs_builddir@,$ac_abs_builddir,;t t
13083s,@top_builddir@,$ac_top_builddir,;t t
13084s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13085s,@INSTALL@,$ac_INSTALL,;t t
13086" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13087 rm -f $tmp/stdin
13088 if test x"$ac_file" != x-; then
13089 mv $tmp/out $ac_file
13090 else
13091 cat $tmp/out
13092 rm -f $tmp/out
13093 fi
c148b4cb 13094
c6b750e1
DJ
13095done
13096_ACEOF
c148b4cb 13097
c6b750e1 13098cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13099
c6b750e1
DJ
13100{ (exit 0); exit 0; }
13101_ACEOF
c148b4cb 13102chmod +x $CONFIG_STATUS
c6b750e1
DJ
13103ac_clean_files=$ac_clean_files_save
13104
13105
13106# configure is writing to config.log, and then calls config.status.
13107# config.status does its own redirection, appending to config.log.
13108# Unfortunately, on DOS this fails, as config.log is still kept open
13109# by configure, so config.status won't be able to write to it; its
13110# output is simply discarded. So we exec the FD to /dev/null,
13111# effectively closing config.log, so it can be properly (re)opened and
13112# appended to by config.status. When coming back to configure, we
13113# need to make the FD available again.
13114if test "$no_create" != yes; then
13115 ac_cs_success=:
13116 ac_config_status_args=
13117 test "$silent" = yes &&
13118 ac_config_status_args="$ac_config_status_args --quiet"
13119 exec 5>/dev/null
13120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13121 exec 5>>config.log
13122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13123 # would make configure fail if this is the last instruction.
13124 $ac_cs_success || { (exit 1); exit 1; }
13125fi
c148b4cb 13126