* opncls.c (find_separate_debug_file): Ensure bfd_set_error has
[deliverable/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
NN
2508 ;;
2509 mips*-*-irix5*)
54d1c879 2510 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2511 ;;
2512 mips*-*-irix6*)
a0da8069
NN
2513 # Linking libjava exceeds command-line length limits on at least
2514 # IRIX 6.2, but not on IRIX 6.5.
2515 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2516 # <oldham@codesourcery.com>
54d1c879 2517 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2518 ;;
a0da8069 2519 mips*-*-bsd*)
54d1c879 2520 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2521 ;;
a0da8069
NN
2522 mips*-*-linux*)
2523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2524 ;;
2525 mips*-*-*)
54d1c879 2526 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2527 libgloss_dir=mips
a0da8069
NN
2528 ;;
2529 romp-*-*)
54d1c879 2530 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2531 ;;
dbf85af7 2532 sh-*-* | sh64-*-*)
a0da8069 2533 case "${host}" in
ec11bdc6
DD
2534 i[3456789]86-*-vsta) ;; # don't add gprof back in
2535 i[3456789]86-*-go32*) ;; # don't add gprof back in
2536 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2537 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2538 esac
54d1c879 2539 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2540 ;;
691bb5a1
DD
2541 sparclet-*-aout* | sparc86x-*-*)
2542 libgloss_dir=sparc
2543 ;;
a0da8069 2544 sparc-*-elf*)
54d1c879 2545 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2546 ;;
2547 sparc64-*-elf*)
54d1c879 2548 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2549 libgloss_dir=sparc
a0da8069
NN
2550 ;;
2551 sparclite-*-*)
54d1c879 2552 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2553 libgloss_dir=sparc
a0da8069
NN
2554 ;;
2555 sparc-*-sunos4*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2557 if test x${is_cross_compiler} != xno ; then
2558 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2559 else
2560 use_gnu_ld=no
2561 fi
2562 ;;
e3c770b1 2563 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2564 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2565 ;;
a0da8069
NN
2566 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2567 ;;
2839fe5d
BE
2568 spu-*-*)
2569 skipdirs="target-libssp"
2570 ;;
a0da8069 2571 v810-*-*)
54d1c879 2572 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2573 ;;
2574 v850-*-*)
54d1c879 2575 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2576 ;;
2577 v850e-*-*)
54d1c879 2578 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2579 ;;
2580 v850ea-*-*)
54d1c879 2581 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2582 ;;
2583 vax-*-vms)
54d1c879 2584 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2585 ;;
2586 vax-*-*)
54d1c879 2587 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2588 ;;
fbd1054d 2589 xtensa-*-*)
54d1c879 2590 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2591 ;;
a0da8069 2592 ip2k-*-*)
54d1c879 2593 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2594 ;;
de0b4a87 2595 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2597 ;;
2598 *-*-lynxos*)
54d1c879 2599 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2600 ;;
a0da8069 2601 *-*-*)
54d1c879 2602 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2603 ;;
2604esac
252b5132 2605
a0da8069
NN
2606# If we aren't building newlib, then don't build libgloss, since libgloss
2607# depends upon some newlib header files.
2608case "${noconfigdirs}" in
2609 *target-libgloss*) ;;
2610 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2611esac
2612
a0da8069
NN
2613# Work in distributions that contain no compiler tools, like Autoconf.
2614tentative_cc=""
2615host_makefile_frag=/dev/null
2616if test -d ${srcdir}/config ; then
2617case "${host}" in
2618 m68k-hp-hpux*)
2619 # Avoid "too much defining" errors from HPUX compiler.
2620 tentative_cc="cc -Wp,-H256000"
2621 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2622 # If it's HP/UX ar, this should be harmless.
2623 RANLIB="ar ts"
2624 ;;
2625 m68k-apollo-sysv*)
2626 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2627 ;;
2628 m68k-apollo-bsd*)
2629 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2630 # chokes on bfd, the compiler won't let you assign integers to enums, and
2631 # other problems. Defining CC to gcc is a questionable way to say "don't use
2632 # the apollo compiler" (the preferred version of GCC could be called cc,
2633 # or whatever), but I'm not sure leaving CC as cc is any better...
2634 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2635 # Used to have BISON=yacc.
2636 tentative_cc=gcc
2637 ;;
2638 m88k-dg-dgux*)
2639 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2640 ;;
2641 m88k-harris-cxux*)
2642 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2643 tentative_cc="cc -Xa"
2644 host_makefile_frag="config/mh-cxux"
2645 ;;
2646 m88k-motorola-sysv*)
2647 ;;
2648 mips*-dec-ultrix*)
2649 tentative_cc="cc -Wf,-XNg1000"
2650 host_makefile_frag="config/mh-decstation"
2651 ;;
2652 mips*-nec-sysv4*)
2653 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2654 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2655 host_makefile_frag="config/mh-necv4"
2656 ;;
2657 mips*-sgi-irix4*)
2658 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2659 # environment. Also bump switch table size so that cp-parse will
2660 # compile. Bump string length limit so linker builds.
2661 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2662 ;;
2663 mips*-*-sysv4*)
2664 host_makefile_frag="config/mh-sysv4"
2665 ;;
2666 mips*-*-sysv*)
2667 # This is for a MIPS running RISC/os 4.52C.
2668
2669 # This is needed for GDB, but needs to be in the top-level make because
2670 # if a library is compiled with the bsd headers and gets linked with the
2671 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2672 # a different size).
2673 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2674 # known except to select the sysv environment. Could we use /proc instead?
2675 # These "sysv environments" and "bsd environments" often end up being a pain.
2676 #
2677 # This is not part of CFLAGS because perhaps not all C compilers have this
2678 # option.
2679 tentative_cc="cc -systype sysv"
2680 ;;
2681 i370-ibm-opened*)
2682 tentative_cc="c89"
2683 ;;
ec11bdc6 2684 i[3456789]86-*-sysv5*)
a0da8069
NN
2685 host_makefile_frag="config/mh-sysv5"
2686 ;;
ec11bdc6 2687 i[3456789]86-*-dgux*)
a0da8069
NN
2688 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2689 host_makefile_frag="config/mh-dgux386"
2690 ;;
ec11bdc6 2691 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2692 # The MetaWare compiler will generate a copyright message unless you
2693 # turn it off by adding the -Hnocopyr flag.
2694 tentative_cc="cc -Hnocopyr"
2695 ;;
ec11bdc6 2696 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2697 # for an NCR 3000 (i486/SVR4) system.
2698 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2699 # This compiler not only emits obnoxious copyright messages every time
2700 # you run it, but it chokes and dies on a whole bunch of GNU source
2701 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2702 tentative_cc="/usr/ccs/ATT/cc"
2703 host_makefile_frag="config/mh-ncr3000"
2704 ;;
ec11bdc6 2705 i[3456789]86-*-sco3.2v5*)
a0da8069 2706 ;;
ec11bdc6 2707 i[3456789]86-*-sco*)
a0da8069
NN
2708 # The native C compiler botches some simple uses of const. Unfortunately,
2709 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2710 tentative_cc="cc -Dconst="
2711 host_makefile_frag="config/mh-sco"
2712 ;;
ec11bdc6 2713 i[3456789]86-*-udk*)
a0da8069
NN
2714 host_makefile_frag="config/mh-sysv5"
2715 ;;
ec11bdc6 2716 i[3456789]86-*-solaris2*)
a0da8069
NN
2717 host_makefile_frag="config/mh-sysv4"
2718 ;;
ec11bdc6 2719 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2720 host_makefile_frag="config/mh-djgpp"
2721 ;;
2722 *-cygwin*)
2723 host_makefile_frag="config/mh-cygwin"
2724 ;;
2725 *-mingw32*)
84e7906e 2726 host_makefile_frag="config/mh-mingw"
a0da8069 2727 ;;
2d1e8239 2728 *-mingw64*)
84e7906e 2729 host_makefile_frag="config/mh-mingw"
2d1e8239 2730 ;;
a0da8069
NN
2731 *-interix*)
2732 host_makefile_frag="config/mh-interix"
2733 ;;
2734 vax-*-ultrix2*)
2735 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2736 tentative_cc=gcc
2737 ;;
2738 *-*-solaris2*)
2739 host_makefile_frag="config/mh-solaris"
2740 ;;
2741 m68k-sun-sunos*)
2742 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2743 # without overflowing the jump tables (-J says to use a 32 bit table)
2744 tentative_cc="cc -J"
2745 ;;
2746 *-hp-hpux*)
2747 tentative_cc="cc -Wp,-H256000"
2748 ;;
2749 *-*-hiux*)
2750 tentative_cc="cc -Wp,-H256000"
2751 ;;
2752 rs6000-*-lynxos*)
2753 # /bin/cc is less than useful for our purposes. Always use GCC
2754 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2755 host_makefile_frag="config/mh-lynxrs6k"
2756 ;;
0df3d27f
PB
2757 powerpc-*-darwin*)
2758 host_makefile_frag="config/mh-ppc-darwin"
2759 ;;
f6d183c0
PB
2760 powerpc-*-aix*)
2761 host_makefile_frag="config/mh-ppc-aix"
2762 ;;
2763 rs6000-*-aix*)
2764 host_makefile_frag="config/mh-ppc-aix"
2765 ;;
a0da8069
NN
2766 *-*-lynxos*)
2767 # /bin/cc is less than useful for our purposes. Always use GCC
2768 tentative_cc="/bin/gcc"
2769 ;;
2770 *-*-sysv4*)
2771 host_makefile_frag="config/mh-sysv4"
2772 ;;
fe69863c
DD
2773 # This is placed last to prevent interfering with the cases above.
2774 i[3456789]86-*-*)
2775 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2776 host_makefile_frag="config/mh-x86omitfp"
2777 ;;
a0da8069
NN
2778esac
2779fi
2780
9e07f89d
NN
2781# If we aren't going to be using gcc, see if we can extract a definition
2782# of CC from the fragment.
2783# Actually, use the 'pre-extracted' version above.
2784if test -z "${CC}" && test "${build}" = "${host}" ; then
2785 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2786 found=
2787 for dir in $PATH; do
2788 test -z "$dir" && dir=.
2789 if test -f $dir/gcc; then
2790 found=yes
2791 break
2792 fi
2793 done
2794 IFS="$save_ifs"
2795 if test -z "${found}" && test -n "${tentative_cc}" ; then
2796 CC=$tentative_cc
2797 fi
2798fi
2799
2800if test "${build}" != "${host}" ; then
9e07f89d 2801 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2802else
512b7dfb 2803 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2804fi
2805
2806ac_ext=c
c6b750e1
DJ
2807ac_cpp='$CPP $CPPFLAGS'
2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813set dummy ${ac_tool_prefix}gcc; ac_word=$2
2814echo "$as_me:$LINENO: checking for $ac_word" >&5
2815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835
2836fi
2837fi
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
2840 echo "$as_me:$LINENO: result: $CC" >&5
2841echo "${ECHO_T}$CC" >&6
2842else
2843 echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6
2845fi
2846
2847fi
2848if test -z "$ac_cv_prog_CC"; then
2849 ac_ct_CC=$CC
6a9cf61e 2850 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2851set dummy gcc; ac_word=$2
c6b750e1
DJ
2852echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_ac_ct_CC="gcc"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871done
2872done
2873
2874fi
2875fi
2876ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877if test -n "$ac_ct_CC"; then
2878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879echo "${ECHO_T}$ac_ct_CC" >&6
2880else
2881 echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883fi
2884
2885 CC=$ac_ct_CC
2886else
2887 CC="$ac_cv_prog_CC"
2888fi
2889
2890if test -z "$CC"; then
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893set dummy ${ac_tool_prefix}cc; ac_word=$2
2894echo "$as_me:$LINENO: checking for $ac_word" >&5
2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2898else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
c6b750e1
DJ
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CC="${ac_tool_prefix}cc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913done
2914done
2915
9e07f89d
NN
2916fi
2917fi
c6b750e1 2918CC=$ac_cv_prog_CC
9e07f89d 2919if test -n "$CC"; then
c6b750e1
DJ
2920 echo "$as_me:$LINENO: result: $CC" >&5
2921echo "${ECHO_T}$CC" >&6
9e07f89d 2922else
c6b750e1
DJ
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
9e07f89d
NN
2925fi
2926
c6b750e1
DJ
2927fi
2928if test -z "$ac_cv_prog_CC"; then
2929 ac_ct_CC=$CC
2930 # Extract the first word of "cc", so it can be a program name with args.
2931set dummy cc; ac_word=$2
2932echo "$as_me:$LINENO: checking for $ac_word" >&5
2933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="cc"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951done
2952done
2953
2954fi
2955fi
2956ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957if test -n "$ac_ct_CC"; then
2958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959echo "${ECHO_T}$ac_ct_CC" >&6
2960else
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963fi
2964
2965 CC=$ac_ct_CC
2966else
2967 CC="$ac_cv_prog_CC"
2968fi
2969
2970fi
9e07f89d
NN
2971if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973set dummy cc; ac_word=$2
c6b750e1
DJ
2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976if test "${ac_cv_prog_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2978else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
9e07f89d 2982 ac_prog_rejected=no
c6b750e1
DJ
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2992 continue
2993 fi
2994 ac_cv_prog_CC="cc"
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999done
3000
9e07f89d
NN
3001if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3004 shift
c6b750e1 3005 if test $# != 0; then
9e07f89d
NN
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3009 shift
c6b750e1 3010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3011 fi
3012fi
3013fi
3014fi
c6b750e1 3015CC=$ac_cv_prog_CC
9e07f89d 3016if test -n "$CC"; then
c6b750e1
DJ
3017 echo "$as_me:$LINENO: result: $CC" >&5
3018echo "${ECHO_T}$CC" >&6
9e07f89d 3019else
c6b750e1
DJ
3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
9e07f89d
NN
3022fi
3023
c6b750e1
DJ
3024fi
3025if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl
3028 do
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031echo "$as_me:$LINENO: checking for $ac_word" >&5
3032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033if test "${ac_cv_prog_CC+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3035else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
c6b750e1
DJ
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
376a0e54 3049 fi
c6b750e1
DJ
3050done
3051done
cac3d6c4 3052
c6b750e1
DJ
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
3057 echo "$as_me:$LINENO: result: $CC" >&5
3058echo "${ECHO_T}$CC" >&6
cac3d6c4 3059else
c6b750e1
DJ
3060 echo "$as_me:$LINENO: result: no" >&5
3061echo "${ECHO_T}no" >&6
9e07f89d 3062fi
cac3d6c4 3063
c6b750e1
DJ
3064 test -n "$CC" && break
3065 done
cac3d6c4 3066fi
c6b750e1
DJ
3067if test -z "$CC"; then
3068 ac_ct_CC=$CC
3069 for ac_prog in cl
3070do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072set dummy $ac_prog; ac_word=$2
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3077else
c6b750e1
DJ
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3080else
c6b750e1
DJ
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
cac3d6c4
CM
3095fi
3096fi
c6b750e1
DJ
3097ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098if test -n "$ac_ct_CC"; then
3099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3101else
c6b750e1
DJ
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
cac3d6c4 3104fi
376a0e54 3105
c6b750e1
DJ
3106 test -n "$ac_ct_CC" && break
3107done
3108
3109 CC=$ac_ct_CC
3110fi
3111
3112fi
3113
3114
3115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3116See \`config.log' for more details." >&5
3117echo "$as_me: error: no acceptable C compiler found in \$PATH
3118See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3120
3121# Provide some information about the compiler.
3122echo "$as_me:$LINENO:" \
3123 "checking for C compiler version" >&5
3124ac_compiler=`set X $ac_compile; echo $2`
3125{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3126 (eval $ac_compiler --version </dev/null >&5) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }
3130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3131 (eval $ac_compiler -v </dev/null >&5) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }
3135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3136 (eval $ac_compiler -V </dev/null >&5) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }
3140
3141cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156ac_clean_files_save=$ac_clean_files
3157ac_clean_files="$ac_clean_files a.out a.exe b.out"
3158# Try to create an executable without -o first, disregard a.out.
3159# It will help us diagnose broken compilers, and finding out an intuition
3160# of exeext.
3161echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3165 (eval $ac_link_default) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 # Find the output, starting from the most likely. This scheme is
3170# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3171# resort.
3172
3173# Be careful to initialize this variable, since it used to be cached.
3174# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3175ac_cv_exeext=
3176# b.out is created by i960 compilers.
3177for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3178do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3182 ;;
3183 conftest.$ac_ext )
3184 # This is the source file.
3185 ;;
3186 [ab].out )
3187 # We found the default executable, but exeext='' is most
3188 # certainly right.
3189 break;;
3190 *.* )
3191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192 # FIXME: I believe we export ac_cv_exeext for Libtool,
3193 # but it would be cool to find out if it's true. Does anybody
3194 # maintain Libtool? --akim.
3195 export ac_cv_exeext
3196 break;;
3197 * )
3198 break;;
3199 esac
3200done
3201else
3202 echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3206See \`config.log' for more details." >&5
3207echo "$as_me: error: C compiler cannot create executables
3208See \`config.log' for more details." >&2;}
3209 { (exit 77); exit 77; }; }
3210fi
3211
3212ac_exeext=$ac_cv_exeext
3213echo "$as_me:$LINENO: result: $ac_file" >&5
3214echo "${ECHO_T}$ac_file" >&6
3215
3216# Check the compiler produces executables we can run. If not, either
3217# the compiler is broken, or we cross compile.
3218echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3221# If not cross compiling, check that we can run a simple program.
3222if test "$cross_compiling" != yes; then
3223 if { ac_try='./$ac_file'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 cross_compiling=no
3230 else
3231 if test "$cross_compiling" = maybe; then
3232 cross_compiling=yes
3233 else
3234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3235If you meant to cross compile, use \`--host'.
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: cannot run C compiled programs.
3238If you meant to cross compile, use \`--host'.
3239See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242 fi
3243fi
3244echo "$as_me:$LINENO: result: yes" >&5
3245echo "${ECHO_T}yes" >&6
3246
3247rm -f a.out a.exe conftest$ac_cv_exeext b.out
3248ac_clean_files=$ac_clean_files_save
3249# Check the compiler produces executables we can run. If not, either
3250# the compiler is broken, or we cross compile.
3251echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3253echo "$as_me:$LINENO: result: $cross_compiling" >&5
3254echo "${ECHO_T}$cross_compiling" >&6
3255
3256echo "$as_me:$LINENO: checking for suffix of executables" >&5
3257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; then
3263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265# work properly (i.e., refer to `conftest.exe'), while it won't with
3266# `rm'.
3267for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 export ac_cv_exeext
3273 break;;
3274 * ) break;;
3275 esac
3276done
3277else
3278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3279See \`config.log' for more details." >&5
3280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3281See \`config.log' for more details." >&2;}
3282 { (exit 1); exit 1; }; }
3283fi
3284
3285rm -f conftest$ac_cv_exeext
3286echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3287echo "${ECHO_T}$ac_cv_exeext" >&6
3288
3289rm -f conftest.$ac_ext
3290EXEEXT=$ac_cv_exeext
3291ac_exeext=$EXEEXT
3292echo "$as_me:$LINENO: checking for suffix of object files" >&5
3293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3294if test "${ac_cv_objext+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312rm -f conftest.o conftest.obj
3313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; then
3318 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3322 break;;
3323 esac
3324done
cac3d6c4 3325else
c6b750e1
DJ
3326 echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3330See \`config.log' for more details." >&5
3331echo "$as_me: error: cannot compute suffix of object files: cannot compile
3332See \`config.log' for more details." >&2;}
3333 { (exit 1); exit 1; }; }
3334fi
3335
3336rm -f conftest.$ac_cv_objext conftest.$ac_ext
3337fi
3338echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3339echo "${ECHO_T}$ac_cv_objext" >&6
3340OBJEXT=$ac_cv_objext
3341ac_objext=$OBJEXT
3342echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3343echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3344if test "${ac_cv_c_compiler_gnu+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347 cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */
3353
3354int
3355main ()
3356{
3357#ifndef __GNUC__
3358 choke me
3359#endif
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365rm -f conftest.$ac_objext
3366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag"
3375 || test ! -s conftest.err'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 ac_compiler_gnu=yes
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392ac_compiler_gnu=no
3393fi
3394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3395ac_cv_c_compiler_gnu=$ac_compiler_gnu
3396
3397fi
3398echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3399echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3400GCC=`test $ac_compiler_gnu = yes && echo yes`
3401ac_test_CFLAGS=${CFLAGS+set}
3402ac_save_CFLAGS=$CFLAGS
3403CFLAGS="-g"
3404echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3405echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3406if test "${ac_cv_prog_cc_g+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409 cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415
3416int
3417main ()
3418{
3419
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
9e07f89d
NN
3446 ac_cv_prog_cc_g=yes
3447else
c6b750e1
DJ
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3450
c6b750e1 3451ac_cv_prog_cc_g=no
376a0e54 3452fi
c6b750e1
DJ
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454fi
3455echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3456echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3457if test "$ac_test_CFLAGS" = set; then
c6b750e1 3458 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3459elif test $ac_cv_prog_cc_g = yes; then
3460 if test "$GCC" = yes; then
3461 CFLAGS="-g -O2"
3462 else
3463 CFLAGS="-g"
3464 fi
3465else
3466 if test "$GCC" = yes; then
3467 CFLAGS="-O2"
3468 else
3469 CFLAGS=
3470 fi
3471fi
c6b750e1
DJ
3472echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3473echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3474if test "${ac_cv_prog_cc_stdc+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477 ac_cv_prog_cc_stdc=no
3478ac_save_CC=$CC
3479cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h. */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h. */
3485#include <stdarg.h>
3486#include <stdio.h>
3487#include <sys/types.h>
3488#include <sys/stat.h>
3489/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3490struct buf { int x; };
3491FILE * (*rcsopen) (struct buf *, struct stat *, int);
3492static char *e (p, i)
3493 char **p;
3494 int i;
3495{
3496 return p[i];
3497}
3498static char *f (char * (*g) (char **, int), char **p, ...)
3499{
3500 char *s;
3501 va_list v;
3502 va_start (v,p);
3503 s = g (p, va_arg (v,int));
3504 va_end (v);
3505 return s;
3506}
3507
3508/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3509 function prototypes and stuff, but not '\xHH' hex character constants.
3510 These don't provoke an error unfortunately, instead are silently treated
3511 as 'x'. The following induces an error, until -std1 is added to get
3512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3513 array size at least. It's necessary to write '\x00'==0 to get something
3514 that's true only with -std1. */
3515int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3516
3517int test (int i, double x);
3518struct s1 {int (*f) (int a);};
3519struct s2 {int (*f) (double a);};
3520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521int argc;
3522char **argv;
3523int
3524main ()
3525{
3526return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 ;
3528 return 0;
3529}
3530_ACEOF
3531# Don't try gcc -ansi; that turns off useful extensions and
3532# breaks some systems' header files.
3533# AIX -qlanglvl=ansi
3534# Ultrix and OSF/1 -std1
3535# HP-UX 10.20 and later -Ae
3536# HP-UX older versions -Aa -D_HPUX_SOURCE
3537# SVR4 -Xc -D__EXTENSIONS__
3538for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3539do
3540 CC="$ac_save_CC $ac_arg"
3541 rm -f conftest.$ac_objext
3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_prog_cc_stdc=$ac_arg
3564break
3565else
3566 echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569fi
3570rm -f conftest.err conftest.$ac_objext
3571done
3572rm -f conftest.$ac_ext conftest.$ac_objext
3573CC=$ac_save_CC
3574
3575fi
3576
3577case "x$ac_cv_prog_cc_stdc" in
3578 x|xno)
3579 echo "$as_me:$LINENO: result: none needed" >&5
3580echo "${ECHO_T}none needed" >&6 ;;
3581 *)
3582 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3583echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3584 CC="$CC $ac_cv_prog_cc_stdc" ;;
3585esac
3586
3587# Some people use a C++ compiler to compile C. Since we use `exit',
3588# in C++ we need to declare it. In case someone uses the same compiler
3589# for both compiling C and C++ we need to have the C++ compiler decide
3590# the declaration of exit, since it's the most demanding environment.
3591cat >conftest.$ac_ext <<_ACEOF
3592#ifndef __cplusplus
3593 choke me
3594#endif
3595_ACEOF
3596rm -f conftest.$ac_objext
3597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 for ac_declaration in \
3619 '' \
3620 'extern "C" void std::exit (int) throw (); using std::exit;' \
3621 'extern "C" void std::exit (int); using std::exit;' \
3622 'extern "C" void exit (int) throw ();' \
3623 'extern "C" void exit (int);' \
3624 'void exit (int);'
3625do
3626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632$ac_declaration
3633#include <stdlib.h>
3634int
3635main ()
3636{
3637exit (42);
3638 ;
3639 return 0;
3640}
3641_ACEOF
3642rm -f conftest.$ac_objext
3643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644 (eval $ac_compile) 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -z "$ac_c_werror_flag"
3652 || test ! -s conftest.err'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 :
3665else
3666 echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669continue
3670fi
3671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3672 cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
3678$ac_declaration
3679int
3680main ()
3681{
3682exit (42);
3683 ;
3684 return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 break
3710else
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714fi
3715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716done
3717rm -f conftest*
3718if test -n "$ac_declaration"; then
3719 echo '#ifdef __cplusplus' >>confdefs.h
3720 echo $ac_declaration >>confdefs.h
3721 echo '#endif' >>confdefs.h
3722fi
3723
3724else
3725 echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728fi
3729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730ac_ext=c
3731ac_cpp='$CPP $CPPFLAGS'
3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3735
18f6b6ee
PB
3736ac_ext=cc
3737ac_cpp='$CXXCPP $CPPFLAGS'
3738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3741if test -n "$ac_tool_prefix"; then
3742 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3743 do
3744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3746echo "$as_me:$LINENO: checking for $ac_word" >&5
3747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748if test "${ac_cv_prog_CXX+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if test -n "$CXX"; then
3752 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765done
3766done
512b7dfb 3767
18f6b6ee
PB
3768fi
3769fi
3770CXX=$ac_cv_prog_CXX
3771if test -n "$CXX"; then
3772 echo "$as_me:$LINENO: result: $CXX" >&5
3773echo "${ECHO_T}$CXX" >&6
3774else
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
3777fi
3778
3779 test -n "$CXX" && break
3780 done
3781fi
3782if test -z "$CXX"; then
3783 ac_ct_CXX=$CXX
3784 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3785do
3786 # Extract the first word of "$ac_prog", so it can be a program name with args.
3787set dummy $ac_prog; ac_word=$2
3788echo "$as_me:$LINENO: checking for $ac_word" >&5
3789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 if test -n "$ac_ct_CXX"; then
3794 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_ac_ct_CXX="$ac_prog"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
512b7dfb 3806 fi
18f6b6ee
PB
3807done
3808done
512b7dfb 3809
18f6b6ee
PB
3810fi
3811fi
3812ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3813if test -n "$ac_ct_CXX"; then
3814 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3815echo "${ECHO_T}$ac_ct_CXX" >&6
3816else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819fi
3820
3821 test -n "$ac_ct_CXX" && break
3822done
3823test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3824
3825 CXX=$ac_ct_CXX
3826fi
3827
3828
3829# Provide some information about the compiler.
3830echo "$as_me:$LINENO:" \
3831 "checking for C++ compiler version" >&5
3832ac_compiler=`set X $ac_compile; echo $2`
3833{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3834 (eval $ac_compiler --version </dev/null >&5) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }
3838{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3839 (eval $ac_compiler -v </dev/null >&5) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }
3843{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3844 (eval $ac_compiler -V </dev/null >&5) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }
3848
3849echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3850echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3851if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h. */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
3859/* end confdefs.h. */
3860
3861int
3862main ()
3863{
3864#ifndef __GNUC__
3865 choke me
3866#endif
3867
3868 ;
3869 return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext
3873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3874 (eval $ac_compile) 2>conftest.er1
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try='test -z "$ac_cxx_werror_flag"
3882 || test ! -s conftest.err'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; } &&
3888 { ac_try='test -s conftest.$ac_objext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 ac_compiler_gnu=yes
3895else
3896 echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899ac_compiler_gnu=no
3900fi
3901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3902ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3903
3904fi
3905echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3906echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3907GXX=`test $ac_compiler_gnu = yes && echo yes`
3908ac_test_CXXFLAGS=${CXXFLAGS+set}
3909ac_save_CXXFLAGS=$CXXFLAGS
3910CXXFLAGS="-g"
3911echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3912echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3913if test "${ac_cv_prog_cxx_g+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
3922
3923int
3924main ()
3925{
3926
3927 ;
3928 return 0;
3929}
3930_ACEOF
3931rm -f conftest.$ac_objext
3932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } &&
3940 { ac_try='test -z "$ac_cxx_werror_flag"
3941 || test ! -s conftest.err'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; } &&
3947 { ac_try='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_cv_prog_cxx_g=yes
3954else
3955 echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958ac_cv_prog_cxx_g=no
3959fi
3960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3961fi
3962echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3963echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3964if test "$ac_test_CXXFLAGS" = set; then
3965 CXXFLAGS=$ac_save_CXXFLAGS
3966elif test $ac_cv_prog_cxx_g = yes; then
3967 if test "$GXX" = yes; then
3968 CXXFLAGS="-g -O2"
3969 else
3970 CXXFLAGS="-g"
3971 fi
3972else
3973 if test "$GXX" = yes; then
3974 CXXFLAGS="-O2"
3975 else
3976 CXXFLAGS=
3977 fi
3978fi
3979for ac_declaration in \
3980 '' \
3981 'extern "C" void std::exit (int) throw (); using std::exit;' \
3982 'extern "C" void std::exit (int); using std::exit;' \
3983 'extern "C" void exit (int) throw ();' \
3984 'extern "C" void exit (int);' \
3985 'void exit (int);'
3986do
3987 cat >conftest.$ac_ext <<_ACEOF
3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
3993$ac_declaration
3994#include <stdlib.h>
3995int
3996main ()
3997{
3998exit (42);
3999 ;
4000 return 0;
4001}
4002_ACEOF
4003rm -f conftest.$ac_objext
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_cxx_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 :
4026else
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030continue
4031fi
4032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039$ac_declaration
4040int
4041main ()
4042{
4043exit (42);
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext
4049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>conftest.er1
4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } &&
4057 { ac_try='test -z "$ac_cxx_werror_flag"
4058 || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 break
4071else
4072 echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075fi
4076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4077done
4078rm -f conftest*
4079if test -n "$ac_declaration"; then
4080 echo '#ifdef __cplusplus' >>confdefs.h
4081 echo $ac_declaration >>confdefs.h
4082 echo '#endif' >>confdefs.h
4083fi
4084
4085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091
4092# We must set the default linker to the linker used by gcc for the correct
4093# operation of libtool. If LD is not defined and we are using gcc, try to
4094# set the LD default to the ld used by gcc.
4095if test -z "$LD"; then
4096 if test "$GCC" = yes; then
4097 case $build in
4098 *-*-mingw*)
4099 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4100 *)
4101 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4102 esac
4103 case $gcc_prog_ld in
4104 # Accept absolute paths.
4105 [\\/]* | [A-Za-z]:[\\/]*)
4106 LD="$gcc_prog_ld" ;;
4107 esac
4108 fi
512b7dfb
PB
4109fi
4110
4111
4112
4113
c6b750e1 4114if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4115 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4116set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4117echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4119if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4120 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4121else
512b7dfb
PB
4122 if test -n "$GNATBIND"; then
4123 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4124else
c6b750e1
DJ
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4132 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136done
4137done
4138
9e07f89d
NN
4139fi
4140fi
512b7dfb
PB
4141GNATBIND=$ac_cv_prog_GNATBIND
4142if test -n "$GNATBIND"; then
4143 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4144echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4145else
c6b750e1
DJ
4146 echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
9e07f89d
NN
4148fi
4149
c6b750e1 4150fi
512b7dfb
PB
4151if test -z "$ac_cv_prog_GNATBIND"; then
4152 ac_ct_GNATBIND=$GNATBIND
4153 # Extract the first word of "gnatbind", so it can be a program name with args.
4154set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4155echo "$as_me:$LINENO: checking for $ac_word" >&5
4156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4157if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4158 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4159else
512b7dfb
PB
4160 if test -n "$ac_ct_GNATBIND"; then
4161 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4162else
c6b750e1
DJ
4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH
4165do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4170 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174done
4175done
4176
512b7dfb 4177 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4178fi
4179fi
512b7dfb
PB
4180ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4181if test -n "$ac_ct_GNATBIND"; then
4182 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4183echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4184else
c6b750e1
DJ
4185 echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
9e07f89d
NN
4187fi
4188
512b7dfb 4189 GNATBIND=$ac_ct_GNATBIND
24ff9987 4190else
512b7dfb 4191 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4192fi
4193
7df2cd5d 4194if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4195 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4196set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4197echo "$as_me:$LINENO: checking for $ac_word" >&5
4198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4199if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
512b7dfb
PB
4202 if test -n "$GNATMAKE"; then
4203 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4212 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216done
4217done
4218
4219fi
4220fi
512b7dfb
PB
4221GNATMAKE=$ac_cv_prog_GNATMAKE
4222if test -n "$GNATMAKE"; then
4223 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4224echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4225else
4226 echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6
4228fi
4229
4230fi
512b7dfb
PB
4231if test -z "$ac_cv_prog_GNATMAKE"; then
4232 ac_ct_GNATMAKE=$GNATMAKE
4233 # Extract the first word of "gnatmake", so it can be a program name with args.
4234set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4235echo "$as_me:$LINENO: checking for $ac_word" >&5
4236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4237if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239else
512b7dfb
PB
4240 if test -n "$ac_ct_GNATMAKE"; then
4241 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4242else
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4250 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254done
4255done
4256
512b7dfb 4257 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4258fi
4259fi
512b7dfb
PB
4260ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4261if test -n "$ac_ct_GNATMAKE"; then
4262 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4263echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4264else
4265 echo "$as_me:$LINENO: result: no" >&5
4266echo "${ECHO_T}no" >&6
4267fi
4268
512b7dfb 4269 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4270else
512b7dfb 4271 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4272fi
4273
c6b750e1
DJ
4274echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4275echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4276if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4278else
4279 cat >conftest.adb <<EOF
4280procedure conftest is begin null; end conftest;
4281EOF
4282acx_cv_cc_gcc_supports_ada=no
4283# There is a bug in old released versions of GCC which causes the
4284# driver to exit successfully when the appropriate language module
4285# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4286# Therefore we must check for the error message as well as an
4287# unsuccessful exit.
b8908782
DD
4288# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4289# given a .adb file, but produce no object file. So we must check
4290# if an object file was really produced to guard against this.
9e07f89d 4291errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4292if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4293 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4294fi
4295rm -f conftest.*
4296fi
c6b750e1
DJ
4297echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4298echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4299
512b7dfb 4300if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4301 have_gnat=yes
4302else
4303 have_gnat=no
4304fi
4305
c6b750e1
DJ
4306echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4307echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4308if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4310else
4311 echo abfoo >t1
4312 echo cdfoo >t2
4313 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4314 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4315 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4316 :
4317 else
4318 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4319 fi
4320 fi
b8908782
DD
4321 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4322 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4323 :
b8908782
DD
4324 else
4325 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4326 fi
4327 fi
4328 rm t1 t2
4329
4330fi
c6b750e1
DJ
4331echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4332echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4333do_compare="$gcc_cv_prog_cmp_skip"
4334
4335
9e07f89d 4336
11b04d1f 4337# Check for GMP and MPFR
4b900473 4338gmplibs="-lmpfr -lgmp"
4b1cb4fe 4339gmpinc=
4b900473
PB
4340have_gmp=no
4341
11b04d1f
DD
4342# Specify a location for mpfr
4343# check for this first so it ends up on the link line before gmp.
c6b750e1 4344
11b04d1f
DD
4345# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4346if test "${with_mpfr_dir+set}" = set; then
4347 withval="$with_mpfr_dir"
c6b750e1
DJ
4348 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4349Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4350echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4351Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4352 { (exit 1); exit 1; }; }
4353fi;
11b04d1f
DD
4354
4355
11b04d1f
DD
4356# Check whether --with-mpfr or --without-mpfr was given.
4357if test "${with_mpfr+set}" = set; then
4358 withval="$with_mpfr"
c6b750e1
DJ
4359
4360fi;
11b04d1f 4361
8a0d8a5c
PB
4362# Check whether --with-mpfr_include or --without-mpfr_include was given.
4363if test "${with_mpfr_include+set}" = set; then
4364 withval="$with_mpfr_include"
c6b750e1
DJ
4365
4366fi;
8a0d8a5c
PB
4367
4368# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4369if test "${with_mpfr_lib+set}" = set; then
4370 withval="$with_mpfr_lib"
8a0d8a5c 4371
c6b750e1 4372fi;
11b04d1f
DD
4373
4374if test "x$with_mpfr" != x; then
4375 gmplibs="-L$with_mpfr/lib $gmplibs"
4376 gmpinc="-I$with_mpfr/include"
4377fi
8a0d8a5c
PB
4378if test "x$with_mpfr_include" != x; then
4379 gmpinc="-I$with_mpfr_include"
4380fi
4381if test "x$with_mpfr_lib" != x; then
4382 gmplibs="-L$with_mpfr_lib $gmplibs"
4383fi
4b900473
PB
4384if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4385 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4386 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4387 # Do not test the mpfr version. Assume that it is sufficient, since
4388 # it is in the source tree, and the library has not been built yet
4389 # but it would be included on the link line in the version check below
4390 # hence making the test fail.
4391 have_gmp=yes
4392fi
11b04d1f 4393
4b1cb4fe 4394# Specify a location for gmp
c6b750e1 4395
4b1cb4fe
DD
4396# Check whether --with-gmp-dir or --without-gmp-dir was given.
4397if test "${with_gmp_dir+set}" = set; then
4398 withval="$with_gmp_dir"
c6b750e1
DJ
4399 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4400Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4401echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4402Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4403 { (exit 1); exit 1; }; }
4404fi;
4b1cb4fe
DD
4405
4406
4b1cb4fe
DD
4407# Check whether --with-gmp or --without-gmp was given.
4408if test "${with_gmp+set}" = set; then
4409 withval="$with_gmp"
c6b750e1
DJ
4410
4411fi;
4b1cb4fe 4412
8a0d8a5c
PB
4413# Check whether --with-gmp_include or --without-gmp_include was given.
4414if test "${with_gmp_include+set}" = set; then
4415 withval="$with_gmp_include"
c6b750e1
DJ
4416
4417fi;
8a0d8a5c
PB
4418
4419# Check whether --with-gmp_lib or --without-gmp_lib was given.
4420if test "${with_gmp_lib+set}" = set; then
4421 withval="$with_gmp_lib"
8a0d8a5c 4422
c6b750e1 4423fi;
8a0d8a5c 4424
4b1cb4fe 4425
11b04d1f
DD
4426if test "x$with_gmp" != x; then
4427 gmplibs="-L$with_gmp/lib $gmplibs"
4428 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4429fi
8a0d8a5c
PB
4430if test "x$with_gmp_include" != x; then
4431 gmpinc="-I$with_gmp_include $gmpinc"
4432fi
4433if test "x$with_gmp_lib" != x; then
4434 gmplibs="-L$with_gmp_lib $gmplibs"
4435fi
4b900473
PB
4436if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4437 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4438 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4439 # Do not test the gmp version. Assume that it is sufficient, since
4440 # it is in the source tree, and the library has not been built yet
4441 # but it would be included on the link line in the version check below
4442 # hence making the test fail.
4443 have_gmp=yes
4444fi
4b1cb4fe 4445
ceb92e78 4446if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4447 have_gmp=yes
4448 saved_CFLAGS="$CFLAGS"
4449 CFLAGS="$CFLAGS $gmpinc"
4450 # Check GMP actually works
c6b750e1
DJ
4451 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4452echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4453
4454cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h. */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h. */
4b1cb4fe 4460#include "gmp.h"
c6b750e1
DJ
4461int
4462main ()
4463{
4b1cb4fe 4464
4b900473
PB
4465 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4466 choke me
4467 #endif
c6b750e1
DJ
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext
4474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
4497else
4498 echo "$as_me: failed program was:" >&5
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
4501echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6; have_gmp=no
4503fi
4504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4505
4b900473
PB
4506 if test x"$have_gmp" = xyes; then
4507 saved_LIBS="$LIBS"
4508 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4509 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4510echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4511 cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
9b134994 4517#include <gmp.h>
4b900473 4518 #include <mpfr.h>
c6b750e1
DJ
4519int
4520main ()
4521{
9b134994 4522
4b900473
PB
4523 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4524 choke me
4525 #endif
a3ca38d2
DD
4526 mpfr_t n;
4527 mpfr_t x;
4b900473 4528 int t;
a3ca38d2
DD
4529 mpfr_init (n);
4530 mpfr_init (x);
4b900473
PB
4531 mpfr_atan2 (n, n, x, GMP_RNDN);
4532 mpfr_erfc (n, x, GMP_RNDN);
4533 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4534
4535 ;
4536 return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541 (eval $ac_link) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
4b1cb4fe 4567#include <gmp.h>
4b900473 4568 #include <mpfr.h>
c6b750e1
DJ
4569int
4570main ()
4571{
9dbaa842 4572
4b900473
PB
4573 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4574 choke me
4575 #endif
4576 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4577
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582rm -f conftest.$ac_objext conftest$ac_exeext
4583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4584 (eval $ac_link) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606else
4607 echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4611echo "${ECHO_T}buggy but acceptable" >&6
4612fi
4613rm -f conftest.err conftest.$ac_objext \
4614 conftest$ac_exeext conftest.$ac_ext
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; have_gmp=no
4621fi
4622rm -f conftest.err conftest.$ac_objext \
4623 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4624 LIBS="$saved_LIBS"
4625 fi
4626 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4627
4b900473 4628 if test x$have_gmp != xyes; then
c6b750e1
DJ
4629 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4630Try the --with-gmp and/or --with-mpfr options to specify their locations.
4631Copies of these libraries' source code can be found at their respective
4632hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4633See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4634If you obtained GMP and/or MPFR from a vendor distribution package, make
4635sure that you have installed both the libraries and the header files.
4636They may be located in separate packages." >&5
4637echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
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/.
8a0d8a5c
PB
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.
c6b750e1
DJ
4644They may be located in separate packages." >&2;}
4645 { (exit 1); exit 1; }; }
4b900473 4646 fi
9dbaa842
DD
4647fi
4648
11b04d1f 4649# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4650
4651
4652
947f426e 4653# By default, C is the only stage 1 language.
9b134994 4654stage1_languages=,c,
1d39f329 4655
9e07f89d
NN
4656# Figure out what language subdirectories are present.
4657# Look if the user specified --enable-languages="..."; if not, use
4658# the environment variable $LANGUAGES if defined. $LANGUAGES might
4659# go away some day.
4660# NB: embedded tabs in this IF block -- do not untabify
4661if test -d ${srcdir}/gcc; then
4662 if test x"${enable_languages+set}" != xset; then
4663 if test x"${LANGUAGES+set}" = xset; then
4664 enable_languages="${LANGUAGES}"
4665 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4666 else
4667 enable_languages=all
4668 fi
4669 else
4670 if test x"${enable_languages}" = x ||
4671 test x"${enable_languages}" = xyes;
4672 then
4673 echo configure.in: --enable-languages needs at least one language argument 1>&2
4674 exit 1
4675 fi
4676 fi
4677 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4678
096f7d00
DE
4679 # 'f95' is the old name for the 'fortran' language. We issue a warning
4680 # and make the substitution.
4681 case ,${enable_languages}, in
4682 *,f95,*)
4683 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4684 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4685 ;;
4686 esac
4687
9e07f89d
NN
4688 # First scan to see if an enabled language requires some other language.
4689 # We assume that a given config-lang.in will list all the language
4690 # front ends it requires, even if some are required indirectly.
4691 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4692 case ${lang_frag} in
4693 ..) ;;
4694 # The odd quoting in the next line works around
4695 # an apparent bug in bash 1.12 on linux.
4696 ${srcdir}/gcc/[*]/config-lang.in) ;;
4697 *)
4698 # From the config-lang.in, get $language, $lang_requires
4699 language=
4700 lang_requires=
4701 . ${lang_frag}
4702 for other in ${lang_requires} ; do
4703 case ,${enable_languages}, in
4704 *,$other,*) ;;
4705 *,all,*) ;;
4706 *,$language,*)
4707 echo " \`$other' language required by \`$language'; enabling" 1>&2
4708 enable_languages="${enable_languages},${other}"
4709 ;;
4710 esac
4711 done
4712 ;;
4713 esac
4714 done
4715
9b134994 4716 new_enable_languages=,c,
9e07f89d 4717 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4718 potential_languages=,c,
9e07f89d
NN
4719
4720 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4721 case ${lang_frag} in
4722 ..) ;;
4723 # The odd quoting in the next line works around
4724 # an apparent bug in bash 1.12 on linux.
4725 ${srcdir}/gcc/[*]/config-lang.in) ;;
4726 *)
c6b750e1 4727 # From the config-lang.in, get $language, $target_libs,
1d39f329 4728 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4729 language=
4730 target_libs=
4731 lang_dirs=
64ce424c 4732 subdir_requires=
9b134994
PB
4733 boot_language=no
4734 build_by_default=yes
9e07f89d 4735 . ${lang_frag}
9b134994
PB
4736 if test x${language} = x; then
4737 echo "${lang_frag} doesn't set \$language." 1>&2
4738 exit 1
4739 fi
4740
4741 case ,${enable_languages}, in
4742 *,${language},*)
9e07f89d
NN
4743 # Language was explicitly selected; include it.
4744 add_this_lang=yes
4745 ;;
9b134994
PB
4746 *,all,*)
4747 # 'all' was selected, select it if it is a default language
4748 add_this_lang=${build_by_default}
9e07f89d
NN
4749 ;;
4750 *)
4751 add_this_lang=no
4752 ;;
4753 esac
4b1cb4fe 4754
64ce424c 4755 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4756 for i in $subdir_requires; do
3d3adb43 4757 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4758 case ,${enable_languages}, in
4759 *,${language},*)
4760 # Specifically requested language; tell them.
c6b750e1
DJ
4761 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4762echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4763 { (exit 1); exit 1; }; }
64ce424c
PB
4764 ;;
4765 *)
4766 # Silently disable.
9b134994 4767 add_this_lang=unsupported
64ce424c
PB
4768 ;;
4769 esac
4770 done
4771
9b134994
PB
4772 # Disable Ada if no preexisting GNAT is available.
4773 case ,${enable_languages},:${language}:${have_gnat} in
4774 *,${language},*:ada:no)
4775 # Specifically requested language; tell them.
c6b750e1
DJ
4776 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4777echo "$as_me: error: GNAT is required to build $language" >&2;}
4778 { (exit 1); exit 1; }; }
9b134994
PB
4779 ;;
4780 *:ada:no)
4781 # Silently disable.
4782 add_this_lang=unsupported
4783 ;;
4784 esac
4785
59f7ec45
HPN
4786 # Disable a language that is unsupported by the target.
4787 case " $unsupported_languages " in
4788 *" $language "*)
9b134994 4789 add_this_lang=unsupported
59f7ec45
HPN
4790 ;;
4791 esac
4792
4b1cb4fe 4793 case $add_this_lang in
9b134994 4794 unsupported)
9e07f89d 4795 # Remove language-dependent dirs.
1d39f329
NN
4796 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4797 ;;
9b134994
PB
4798 no)
4799 # Remove language-dependent dirs; still show language as supported.
4800 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4801 potential_languages="${potential_languages}${language},"
4802 ;;
4803 yes)
4804 new_enable_languages="${new_enable_languages}${language},"
4805 potential_languages="${potential_languages}${language},"
1d39f329
NN
4806 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4807 case ${boot_language} in
4808 yes)
4fa63067 4809 # Add to (comma-separated) list of stage 1 languages.
9b134994 4810 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4811 ;;
4812 esac
4813 ;;
9e07f89d
NN
4814 esac
4815 ;;
4816 esac
4817 done
4818
9b134994
PB
4819 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4820if test "${enable_stage1_languages+set}" = set; then
4821 enableval="$enable_stage1_languages"
4822 case ,${enable_stage1_languages}, in
4823 ,no,|,,)
4824 # Set it to something that will have no effect in the loop below
4825 enable_stage1_languages=c ;;
4826 ,yes,)
4827 enable_stage1_languages=`echo $new_enable_languages | \
4828 sed -e "s/^,//" -e "s/,$//" ` ;;
4829 *,all,*)
4830 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4831 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4832 esac
4833
4834 # Add "good" languages from enable_stage1_languages to stage1_languages,
4835 # while "bad" languages go in missing_languages. Leave no duplicates.
4836 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4837 case $potential_languages in
4838 *,$i,*)
4839 case $stage1_languages in
4840 *,$i,*) ;;
4841 *) stage1_languages="$stage1_languages$i," ;;
4842 esac ;;
4843 *)
4844 case $missing_languages in
4845 *,$i,*) ;;
4846 *) missing_languages="$missing_languages$i," ;;
4847 esac ;;
4848 esac
4849 done
c6b750e1 4850fi;
9b134994
PB
4851
4852 # Remove leading/trailing commas that were added for simplicity
4853 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4854 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4855 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4856 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4857
9e07f89d 4858 if test "x$missing_languages" != x; then
c6b750e1 4859 { { echo "$as_me:$LINENO: error:
27258dd4 4860The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4861Supported languages are: ${potential_languages}" >&5
4862echo "$as_me: error:
4863The following requested languages could not be built: ${missing_languages}
4864Supported languages are: ${potential_languages}" >&2;}
4865 { (exit 1); exit 1; }; }
9e07f89d 4866 fi
9e07f89d
NN
4867 if test "x$new_enable_languages" != "x$enable_languages"; then
4868 echo The following languages will be built: ${new_enable_languages}
9b134994 4869 enable_languages="$new_enable_languages"
9e07f89d 4870 fi
9b134994 4871
c6b750e1 4872
81ec575a 4873 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4874fi
4875
a6df5a19
PB
4876# Handle --disable-<component> generically.
4877for dir in $configdirs $build_configdirs $target_configdirs ; do
4878 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4879 if eval test x\${enable_${dirname}} "=" xno ; then
4880 noconfigdirs="$noconfigdirs $dir"
4881 fi
4882done
4883
4f0ef2d8
CD
4884# Check for Boehm's garbage collector
4885# Check whether --enable-objc-gc or --disable-objc-gc was given.
4886if test "${enable_objc_gc+set}" = set; then
4887 enableval="$enable_objc_gc"
4888 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4889 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4890 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4891echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4892 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4893 ;;
4894esac
c6b750e1 4895fi;
4f0ef2d8
CD
4896
4897# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4898case ,${enable_languages},:${enable_objc_gc} in
4899 *,objc,*:yes)
4f0ef2d8
CD
4900 # Keep target-boehm-gc if requested for Objective-C.
4901 ;;
4f0ef2d8 4902 *)
d42c4017
DA
4903 # Otherwise remove target-boehm-gc depending on target-libjava.
4904 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4905 noconfigdirs="$noconfigdirs target-boehm-gc"
4906 fi
4f0ef2d8
CD
4907 ;;
4908esac
4909
caeba88f
AL
4910# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4911# $build_configdirs and $target_configdirs.
9e07f89d
NN
4912# If we have the source for $noconfigdirs entries, add them to $notsupp.
4913
4914notsupp=""
4915for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4916 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4917 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4918 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4919 if test -r $srcdir/$dirname/configure ; then
4920 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4921 true
4922 else
4923 notsupp="$notsupp $dir"
4924 fi
4925 fi
4926 fi
caeba88f
AL
4927 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4928 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4929 if test -r $srcdir/$dirname/configure ; then
4930 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4931 true
4932 else
4933 notsupp="$notsupp $dir"
4934 fi
4935 fi
4936 fi
9e07f89d
NN
4937 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4938 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4939 if test -r $srcdir/$dirname/configure ; then
4940 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4941 true
4942 else
4943 notsupp="$notsupp $dir"
4944 fi
4945 fi
4946 fi
4947done
4948
4949# Sometimes the tools are distributed with libiberty but with no other
4950# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4951# Don't let libgcc imply libiberty either.
9e07f89d 4952if test -n "${target_configdirs}" ; then
f86e35b8 4953 libgcc=
9e07f89d
NN
4954 others=
4955 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4956 if test "$i" = "libgcc"; then
4957 libgcc=target-libgcc
4958 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4959 if test -r $srcdir/$i/configure ; then
4960 others=yes;
4961 break;
4962 fi
4963 fi
4964 done
4965 if test -z "${others}" ; then
f86e35b8 4966 target_configdirs=$libgcc
9e07f89d
NN
4967 fi
4968fi
4969
4970# Quietly strip out all directories which aren't configurable in this tree.
4971# This relies on all configurable subdirectories being autoconfiscated, which
4972# is now the case.
6a9cf61e
PB
4973build_configdirs_all="$build_configdirs"
4974build_configdirs=
4975for i in ${build_configdirs_all} ; do
c6b750e1 4976 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4977 if test -f ${srcdir}/$j/configure ; then
4978 build_configdirs="${build_configdirs} $i"
4979 fi
4980done
4981
9e07f89d
NN
4982configdirs_all="$configdirs"
4983configdirs=
4984for i in ${configdirs_all} ; do
4985 if test -f ${srcdir}/$i/configure ; then
4986 configdirs="${configdirs} $i"
4987 fi
4988done
6a9cf61e 4989
9e07f89d
NN
4990target_configdirs_all="$target_configdirs"
4991target_configdirs=
4992for i in ${target_configdirs_all} ; do
c6b750e1 4993 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4994 if test -f ${srcdir}/$j/configure ; then
4995 target_configdirs="${target_configdirs} $i"
4996 fi
4997done
4998
4999# Produce a warning message for the subdirs we can't configure.
5000# This isn't especially interesting in the Cygnus tree, but in the individual
5001# FSF releases, it's important to let people know when their machine isn't
5002# supported by the one or two programs in a package.
5003
5004if test -n "${notsupp}" && test -z "${norecursion}" ; then
5005 # If $appdirs is non-empty, at least one of those directories must still
5006 # be configured, or we error out. (E.g., if the gas release supports a
5007 # specified target in some subdirs but not the gas subdir, we shouldn't
5008 # pretend that all is well.)
5009 if test -n "$appdirs" ; then
5010 for dir in $appdirs ; do
5011 if test -r $dir/Makefile.in ; then
5012 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5013 appdirs=""
5014 break
5015 fi
6a9cf61e 5016 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5017 appdirs=""
5018 break
5019 fi
5020 fi
5021 done
5022 if test -n "$appdirs" ; then
5023 echo "*** This configuration is not supported by this package." 1>&2
5024 exit 1
5025 fi
5026 fi
5027 # Okay, some application will build, or we don't care to check. Still
5028 # notify of subdirs not getting built.
5029 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5030 echo " ${notsupp}" 1>&2
5031 echo " (Any other directories should still work fine.)" 1>&2
5032fi
5033
5034case "$host" in
5035 *msdosdjgpp*)
5036 enable_gdbtk=no ;;
5037esac
5038
18f6b6ee
PB
5039# To find our prefix, in gcc_cv_tool_prefix.
5040
5041# The user is always right.
5042if test "${PATH_SEPARATOR+set}" != set; then
5043 echo "#! /bin/sh" >conf$$.sh
5044 echo "exit 0" >>conf$$.sh
5045 chmod +x conf$$.sh
5046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5047 PATH_SEPARATOR=';'
5048 else
5049 PATH_SEPARATOR=:
5050 fi
5051 rm -f conf$$.sh
5052fi
5053
5054
5055
5056if test "x$exec_prefix" = xNONE; then
5057 if test "x$prefix" = xNONE; then
5058 gcc_cv_tool_prefix=$ac_default_prefix
5059 else
5060 gcc_cv_tool_prefix=$prefix
5061 fi
5062else
5063 gcc_cv_tool_prefix=$exec_prefix
5064fi
5065
5066# If there is no compiler in the tree, use the PATH only. In any
5067# case, if there is no compiler in the tree nobody should use
5068# AS_FOR_TARGET and LD_FOR_TARGET.
5069if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5070 gcc_version=`cat $srcdir/gcc/BASE-VER`
5071 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5072 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5077else
5078 gcc_cv_tool_dirs=
5079fi
5080
5081if test x$build = x$target && test -n "$md_exec_prefix"; then
5082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5083fi
5084
5085
5086
9e07f89d
NN
5087copy_dirs=
5088
c6b750e1 5089
a19b6204
MM
5090# Check whether --with-build-sysroot or --without-build-sysroot was given.
5091if test "${with_build_sysroot+set}" = set; then
5092 withval="$with_build_sysroot"
5093 if test x"$withval" != x ; then
5094 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5095 fi
5096else
5097 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5098fi;
a19b6204
MM
5099
5100
8a6ee3ab
JM
5101
5102# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5103if test "${with_debug_prefix_map+set}" = set; then
5104 withval="$with_debug_prefix_map"
5105 if test x"$withval" != x; then
5106 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5107 for debug_map in $withval; do
5108 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5109 done
5110 fi
5111else
5112 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5113fi;
5114
5115
9e07f89d
NN
5116# Handle --with-headers=XXX. If the value is not "yes", the contents of
5117# the named directory are copied to $(tooldir)/sys-include.
5118if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5119 if test x${is_cross_compiler} = xno ; then
5120 echo 1>&2 '***' --with-headers is only supported when cross compiling
5121 exit 1
5122 fi
5123 if test x"${with_headers}" != xyes ; then
18f6b6ee 5124 x=${gcc_cv_tool_prefix}
c6b750e1 5125 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5126 fi
5127fi
5128
5129# Handle --with-libs=XXX. If the value is not "yes", the contents of
5130# the name directories are copied to $(tooldir)/lib. Multiple directories
5131# are permitted.
5132if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5133 if test x${is_cross_compiler} = xno ; then
5134 echo 1>&2 '***' --with-libs is only supported when cross compiling
5135 exit 1
5136 fi
5137 if test x"${with_libs}" != xyes ; then
5138 # Copy the libraries in reverse order, so that files in the first named
5139 # library override files in subsequent libraries.
18f6b6ee 5140 x=${gcc_cv_tool_prefix}
9e07f89d 5141 for l in ${with_libs}; do
c6b750e1 5142 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5143 done
5144 fi
5145fi
5146
2429c060
PB
5147# Set with_gnu_as and with_gnu_ld as appropriate.
5148#
5149# This is done by determining whether or not the appropriate directory
5150# is available, and by checking whether or not specific configurations
5151# have requested that this magic not happen.
c6b750e1
DJ
5152#
5153# The command line options always override the explicit settings in
2429c060
PB
5154# configure.in, and the settings in configure.in override this magic.
5155#
c6b750e1 5156# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5157# want to do that, then you should use the --without-gnu-as and
5158# --without-gnu-ld options for the configure script.
5159
5160if test x${use_gnu_as} = x &&
5161 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5162 with_gnu_as=yes
5163 extra_host_args="$extra_host_args --with-gnu-as"
5164fi
5165
5166if test x${use_gnu_ld} = x &&
5167 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5168 with_gnu_ld=yes
5169 extra_host_args="$extra_host_args --with-gnu-ld"
5170fi
5171
5172# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5173# can detect this case.
5174
5175if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5176 with_newlib=yes
5177 extra_host_args="$extra_host_args --with-newlib"
5178fi
5179
9e07f89d
NN
5180# Handle ${copy_dirs}
5181set fnord ${copy_dirs}
5182shift
5183while test $# != 0 ; do
5184 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5185 :
5186 else
5187 echo Copying $1 to $2
5188
5189 # Use the install script to create the directory and all required
5190 # parent directories.
5191 if test -d $2 ; then
5192 :
5193 else
5194 echo >config.temp
5195 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5196 fi
5197
5198 # Copy the directory, assuming we have tar.
5199 # FIXME: Should we use B in the second tar? Not all systems support it.
5200 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5201
5202 # It is the responsibility of the user to correctly adjust all
5203 # symlinks. If somebody can figure out how to handle them correctly
5204 # here, feel free to add the code.
5205
5206 echo $1 > $2/COPIED
5207 fi
5208 shift; shift
5209done
5210
2429c060
PB
5211# Determine a target-dependent exec_prefix that the installed
5212# gcc will search in. Keep this list sorted by triplet, with
5213# the *-*-osname triplets last.
5214md_exec_prefix=
5215case "${target}" in
5216 alpha*-*-*vms*)
5217 md_exec_prefix=/gnu/lib/gcc-lib
5218 ;;
521ec477 5219 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5220 md_exec_prefix=/dev/env/DJDIR/bin
5221 ;;
521ec477 5222 i[34567]86-*-sco3.2v5*)
2429c060
PB
5223 if test $with_gnu_as = yes; then
5224 md_exec_prefix=/usr/gnu/bin
5225 else
5226 md_exec_prefix=/usr/ccs/bin/elf
5227 fi
5228 ;;
5229
5230 mn10300-*-* | \
5231 powerpc-*-chorusos* | \
5232 powerpc*-*-eabi* | \
5233 powerpc*-*-sysv* | \
5234 powerpc*-*-kaos* | \
5235 s390x-ibm-tpf*)
5236 md_exec_prefix=/usr/ccs/bin
5237 ;;
5238 sparc64-*-elf*)
5239 ;;
5240 v850*-*-*)
5241 md_exec_prefix=/usr/ccs/bin
5242 ;;
5243 xtensa-*-elf*)
5244 ;;
5245
5246 *-*-beos* | \
5247 *-*-elf* | \
5248 *-*-hpux* | \
5249 *-*-netware* | \
5250 *-*-nto-qnx* | \
5251 *-*-rtems* | \
5252 *-*-solaris2* | \
521ec477 5253 *-*-sysv[45]* | \
2429c060
PB
5254 *-*-vxworks* | \
5255 *-wrs-windiss)
5256 md_exec_prefix=/usr/ccs/bin
5257 ;;
5258esac
5259
a0da8069
NN
5260extra_arflags_for_target=
5261extra_nmflags_for_target=
5262extra_ranlibflags_for_target=
5263target_makefile_frag=/dev/null
5264case "${target}" in
4e206d7e
DB
5265 mep*-*-*)
5266 target_makefile_frag="config/mt-mep"
5267 ;;
77d7106f
AM
5268 spu-*-*)
5269 target_makefile_frag="config/mt-spu"
5270 ;;
429acdec
RS
5271 mips*-sde-elf*)
5272 target_makefile_frag="config/mt-sde"
5273 ;;
2a3124ca 5274 *-*-netware*)
a0da8069
NN
5275 target_makefile_frag="config/mt-netware"
5276 ;;
3d6dfe0f
NN
5277 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5278 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5279 ;;
5280 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5281 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5282 # commands to handle both 32-bit and 64-bit objects. These flags are
5283 # harmless if we're using GNU nm or ar.
5284 extra_arflags_for_target=" -X32_64"
5285 extra_nmflags_for_target=" -B -X32_64"
5286 ;;
5287 *-*-darwin*)
5288 # ranlib from Darwin requires the -c flag to look at common symbols.
5289 extra_ranlibflags_for_target=" -c"
5290 ;;
5291 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5292 target_makefile_frag="config/mt-wince"
5293 ;;
5294esac
5295
5296alphaieee_frag=/dev/null
5297case $target in
5298 alpha*-*-*)
5299 # This just makes sure to use the -mieee option to build target libs.
5300 # This should probably be set individually by each library.
5301 alphaieee_frag="config/mt-alphaieee"
5302 ;;
5303esac
5304
5305# If --enable-target-optspace always use -Os instead of -O2 to build
5306# the target libraries, similarly if it is not specified, use -Os
5307# on selected platforms.
5308ospace_frag=/dev/null
5309case "${enable_target_optspace}:${target}" in
5310 yes:*)
5311 ospace_frag="config/mt-ospace"
5312 ;;
5313 :d30v-*)
5314 ospace_frag="config/mt-d30v"
5315 ;;
5316 :m32r-* | :d10v-* | :fr30-*)
5317 ospace_frag="config/mt-ospace"
5318 ;;
5319 no:* | :*)
5320 ;;
5321 *)
5322 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5323 ;;
5324esac
5325
a0da8069
NN
5326# Default to using --with-stabs for certain targets.
5327if test x${with_stabs} = x ; then
5328 case "${target}" in
e31d1ea3 5329 mips*-*-irix[56]*)
a0da8069
NN
5330 ;;
5331 mips*-*-* | alpha*-*-osf*)
5332 with_stabs=yes;
5333 extra_host_args="${extra_host_args} --with-stabs"
5334 ;;
5335 esac
5336fi
5337
5338# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5339# them automatically.
5340case "${host}" in
c6b750e1 5341 hppa*64*-*-hpux11*)
a0da8069
NN
5342 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5343 ;;
5344esac
5345
a0da8069
NN
5346# Some systems (e.g., one of the i386-aix systems the gas testers are
5347# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5348tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5349build_tooldir=${tooldir}
5350
a0da8069
NN
5351# Create a .gdbinit file which runs the one in srcdir
5352# and tells GDB to look there for source files.
5353
5354if test -r ${srcdir}/.gdbinit ; then
5355 case ${srcdir} in
5356 .) ;;
5357 *) cat > ./.gdbinit <<EOF
5358# ${NO_EDIT}
5359dir ${srcdir}
5360dir .
5361source ${srcdir}/.gdbinit
5362EOF
5363 ;;
5364 esac
5365fi
5366
a0da8069
NN
5367# Make sure that the compiler is able to generate an executable. If it
5368# can't, we are probably in trouble. We don't care whether we can run the
5369# executable--we might be using a cross compiler--we only care whether it
5370# can be created. At this point the main configure script has set CC.
5371we_are_ok=no
5372echo "int main () { return 0; }" > conftest.c
5373${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5374if test $? = 0 ; then
5375 if test -s conftest || test -s conftest.exe ; then
5376 we_are_ok=yes
5377 fi
c6b750e1 5378fi
a0da8069
NN
5379case $we_are_ok in
5380 no)
5381 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5382 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5383 rm -f conftest*
5384 exit 1
5385 ;;
5386esac
5387rm -f conftest*
5388
5389# The Solaris /usr/ucb/cc compiler does not appear to work.
5390case "${host}" in
5391 sparc-sun-solaris2*)
5392 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5393 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5394 could_use=
5395 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5396 if test -d /opt/cygnus/bin ; then
5397 if test "$could_use" = "" ; then
5398 could_use="/opt/cygnus/bin"
5399 else
5400 could_use="$could_use or /opt/cygnus/bin"
5401 fi
5402 fi
5403 if test "$could_use" = "" ; then
5404 echo "Warning: compilation may fail because you're using"
5405 echo "/usr/ucb/cc. You should change your PATH or CC "
5406 echo "variable and rerun configure."
5407 else
5408 echo "Warning: compilation may fail because you're using"
5409 echo "/usr/ucb/cc, when you should use the C compiler from"
5410 echo "$could_use. You should change your"
5411 echo "PATH or CC variable and rerun configure."
5412 fi
5413 fi
5414 ;;
5415esac
5416
a0da8069
NN
5417case "${host}" in
5418 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5419 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5420 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5421esac
5422
5423# Record target_configdirs and the configure arguments for target and
5424# build configuration in Makefile.
5425target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5426build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5427
a0da8069
NN
5428# Determine whether gdb needs tk/tcl or not.
5429# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5430# and in that case we want gdb to be built without tk. Ugh!
5431# In fact I believe gdb is the *only* package directly dependent on tk,
5432# so we should be able to put the 'maybe's in unconditionally and
5433# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5434# 100% sure that that's safe though.
c180f501 5435
675c6968 5436gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5437case "$enable_gdbtk" in
5438 no)
5439 GDB_TK="" ;;
c180f501
AC
5440 yes)
5441 GDB_TK="${gdb_tk}" ;;
a0da8069 5442 *)
c180f501
AC
5443 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5444 # distro. Eventually someone will fix this and move Insight, nee
5445 # gdbtk to a separate directory.
5446 if test -d ${srcdir}/gdb/gdbtk ; then
5447 GDB_TK="${gdb_tk}"
5448 else
5449 GDB_TK=""
5450 fi
5451 ;;
a0da8069 5452esac
907be67c
DJ
5453CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5454INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5455
6bd3dfaa 5456# Strip out unwanted targets.
dd12c3a8
NN
5457
5458# While at that, we remove Makefiles if we were started for recursive
5459# configuration, so that the top-level Makefile reconfigures them,
5460# like we used to do when configure itself was recursive.
dd12c3a8 5461
6bd3dfaa
PB
5462# Loop over modules. $extrasub must be used with care, limiting as
5463# much as possible the usage of range addresses. That's because autoconf
5464# splits the sed script to overcome limits in the number of commands,
5465# and relying on carefully-timed sed passes may turn out to be very hard
5466# to maintain later. In this particular case, you just have to be careful
5467# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5468
319cab08
PB
5469# Check whether --enable-bootstrap or --disable-bootstrap was given.
5470if test "${enable_bootstrap+set}" = set; then
5471 enableval="$enable_bootstrap"
c6b750e1 5472
319cab08 5473else
9cb3fa6f 5474 enable_bootstrap=default
c6b750e1 5475fi;
319cab08 5476
9cb3fa6f
PB
5477# Issue errors and warnings for invalid/strange bootstrap combinations.
5478case "$configdirs" in
5479 *gcc*) have_compiler=yes ;;
5480 *) have_compiler=no ;;
5481esac
5482
5483case "$have_compiler:$host:$target:$enable_bootstrap" in
5484 *:*:*:no) ;;
5485
0aed8855 5486 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5487 # and we are in a native configuration.
5488 yes:$build:$build:default)
0aed8855 5489 enable_bootstrap=yes ;;
9cb3fa6f
PB
5490
5491 *:*:*:default)
5492 enable_bootstrap=no ;;
5493
5494 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5495 yes:$build:$build:yes)
9cb3fa6f
PB
5496 ;;
5497
5498 # Other configurations, but we have a compiler. Assume the user knows
5499 # what he's doing.
80911fe1 5500 yes:*:*:yes)
c6b750e1
DJ
5501 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5502echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5503 ;;
5504
5505 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5506 no:*:*:yes)
c6b750e1
DJ
5507 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5508echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5509 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5510
5511 # Fail if wrong command line
5512 *)
c6b750e1
DJ
5513 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5514echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5515 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5516 ;;
5517esac
5518
5519# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5520case "$enable_bootstrap" in
5521 yes)
498d4a71 5522 bootstrap_suffix=bootstrap ;;
319cab08 5523 no)
498d4a71 5524 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5525esac
5526
6a9cf61e 5527for module in ${build_configdirs} ; do
498d4a71
CF
5528 if test -z "${no_recursion}" \
5529 && test -f ${build_subdir}/${module}/Makefile; then
5530 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5531 rm -f ${build_subdir}/${module}/Makefile
5532 fi
5533 extrasub="$extrasub
5534/^@if build-$module\$/d
5535/^@endif build-$module\$/d
5536/^@if build-$module-$bootstrap_suffix\$/d
5537/^@endif build-$module-$bootstrap_suffix\$/d"
5538done
5539for module in ${configdirs} ; do
80911fe1 5540 if test -z "${no_recursion}"; then
8cf39b1b 5541 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5542 if test -f ${file}; then
5543 echo 1>&2 "*** removing ${file} to force reconfigure"
5544 rm -f ${file}
5545 fi
5546 done
498d4a71
CF
5547 fi
5548 extrasub="$extrasub
5549/^@if $module\$/d
5550/^@endif $module\$/d
5551/^@if $module-$bootstrap_suffix\$/d
5552/^@endif $module-$bootstrap_suffix\$/d"
5553done
5554for module in ${target_configdirs} ; do
5555 if test -z "${no_recursion}" \
5556 && test -f ${target_subdir}/${module}/Makefile; then
5557 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5558 rm -f ${target_subdir}/${module}/Makefile
5559 fi
5560 extrasub="$extrasub
5561/^@if target-$module\$/d
5562/^@endif target-$module\$/d
5563/^@if target-$module-$bootstrap_suffix\$/d
5564/^@endif target-$module-$bootstrap_suffix\$/d"
5565done
5566
6bd3dfaa
PB
5567extrasub="$extrasub
5568/^@if /,/^@endif /d"
a0da8069
NN
5569
5570# Create the serialization dependencies. This uses a temporary file.
5571
e6bfb94a
AO
5572# Check whether --enable-serial-configure or --disable-serial-configure was given.
5573if test "${enable_serial_configure+set}" = set; then
5574 enableval="$enable_serial_configure"
e6bfb94a 5575
c6b750e1 5576fi;
e6bfb94a 5577
1047cb91
DD
5578case ${enable_serial_configure} in
5579 yes)
5580 enable_serial_build_configure=yes
5581 enable_serial_host_configure=yes
5582 enable_serial_target_configure=yes
5583 ;;
5584esac
5585
a0da8069
NN
5586# These force 'configure's to be done one at a time, to avoid problems
5587# with contention over a shared config.cache.
5588rm -f serdep.tmp
e6bfb94a 5589echo '# serdep.tmp' > serdep.tmp
a0da8069 5590olditem=
1047cb91 5591test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5592for item in ${build_configdirs} ; do
5593 case ${olditem} in
5594 "") ;;
e6bfb94a 5595 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5596 esac
5597 olditem=${item}
5598done
5599olditem=
1047cb91 5600test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5601for item in ${configdirs} ; do
5602 case ${olditem} in
5603 "") ;;
e6bfb94a 5604 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5605 esac
5606 olditem=${item}
5607done
5608olditem=
1047cb91 5609test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5610for item in ${target_configdirs} ; do
5611 case ${olditem} in
5612 "") ;;
e6bfb94a 5613 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5614 esac
5615 olditem=${item}
5616done
5617serialization_dependencies=serdep.tmp
5618
5619
e6bfb94a 5620# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5621# target, nonopt, and variable assignments. These are the ones we
5622# might not want to pass down to subconfigures. Also strip
5623# program-prefix, program-suffix, and program-transform-name, so that
5624# we can pass down a consistent program-transform-name.
5625baseargs=
5626keep_next=no
5627skip_next=no
5628eval "set -- $ac_configure_args"
18f6b6ee
PB
5629for ac_arg
5630do
c6b750e1
DJ
5631 if test X"$skip_next" = X"yes"; then
5632 skip_next=no
5633 continue
5634 fi
5635 if test X"$keep_next" = X"yes"; then
5636 case $ac_arg in
5637 *\'*)
5638 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5639 esac
5640 baseargs="$baseargs '$ac_arg'"
5641 keep_next=no
5642 continue
5643 fi
5644
5645 # Handle separated arguments. Based on the logic generated by
5646 # autoconf 2.59.
5647 case $ac_arg in
5648 *=* | --config-cache | -C | -disable-* | --disable-* \
5649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5651 | -with-* | --with-* | -without-* | --without-* | --x)
5652 separate_arg=no
5653 ;;
5654 -*)
5655 separate_arg=yes
5656 ;;
5657 *)
5658 separate_arg=no
5659 ;;
5660 esac
5661
5662 case "$ac_arg" in
5663 --no*)
5664 continue
5665 ;;
5666 --c* | \
5667 --sr* | \
5668 --ho* | \
5669 --bu* | \
5670 --t* | \
5671 --program-* | \
5672 -cache_file* | \
5673 -srcdir* | \
5674 -host* | \
5675 -build* | \
5676 -target* | \
5677 -program-prefix* | \
5678 -program-suffix* | \
5679 -program-transform-name* )
5680 skip_next=$separate_arg
5681 continue
5682 ;;
5683 -*)
5684 # An option. Add it.
5685 case $ac_arg in
5686 *\'*)
5687 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5688 esac
5689 baseargs="$baseargs '$ac_arg'"
5690 keep_next=$separate_arg
5691 ;;
5692 *)
5693 # Either a variable assignment, or a nonopt (triplet). Don't
5694 # pass it down; let the Makefile handle this.
5695 continue
5696 ;;
5697 esac
5698done
5699# Remove the initial space we just introduced and, as these will be
5700# expanded by make, quote '$'.
5701baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5702
f27d4f92
DJ
5703# Add in --program-transform-name, after --program-prefix and
5704# --program-suffix have been applied to it. Autoconf has already
5705# doubled dollar signs and backslashes in program_transform_name; we want
5706# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5707# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5708# Also, because we want to override the logic in subdir configure scripts to
5709# choose program_transform_name, replace any s,x,x, with s,y,y,.
5710sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5711${program_transform_name}
5712EOF_SED
5713gcc_transform_name=`cat conftestsed.out`
5714rm -f conftestsed.out
5715baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5716if test "$silent" = yes; then
5717 baseargs="$baseargs --silent"
5718fi
f27d4f92 5719
a0da8069
NN
5720# For the build-side libraries, we just need to pretend we're native,
5721# and not use the same cache file. Multilibs are neither needed nor
5722# desired.
4b900473 5723build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5724
5725# For host modules, accept cache file option, or specification as blank.
5726case "${cache_file}" in
5727"") # empty
5728 cache_file_option="" ;;
5729/* | [A-Za-z]:[\\/]* ) # absolute path
5730 cache_file_option="--cache-file=${cache_file}" ;;
5731*) # relative path
5732 cache_file_option="--cache-file=../${cache_file}" ;;
5733esac
5734
82252c06
NN
5735# Host dirs don't like to share a cache file either, horribly enough.
5736# This seems to be due to autoconf 2.5x stupidity.
4b900473 5737host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5738
5739target_configargs=${baseargs}
5740
5741# Passing a --with-cross-host argument lets the target libraries know
5742# whether they are being built with a cross-compiler or being built
5743# native. However, it would be better to use other mechanisms to make the
5744# sorts of decisions they want to make on this basis. Please consider
5745# this option to be deprecated. FIXME.
5746if test x${is_cross_compiler} = xyes ; then
c6b750e1 5747 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5748fi
5749
5750# Default to --enable-multilib.
5751if test x${enable_multilib} = x ; then
5752 target_configargs="--enable-multilib ${target_configargs}"
5753fi
5754
5755# Pass --with-newlib if appropriate. Note that target_configdirs has
5756# changed from the earlier setting of with_newlib.
5757if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5758 target_configargs="--with-newlib ${target_configargs}"
5759fi
5760
95036d20
NN
5761# Different target subdirs use different values of certain variables
5762# (notably CXX). Worse, multilibs use *lots* of different values.
5763# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5764# it doesn't automatically accept command-line overrides of them.
5765# This means it's not safe for target subdirs to share a cache file,
5766# which is disgusting, but there you have it. Hopefully this can be
5767# fixed in future. It's still worthwhile to use a cache file for each
5768# directory. I think.
5769
ae380b45
MS
5770# Pass the appropriate --build, --host, --target and --cache-file arguments.
5771# We need to pass --target, as newer autoconf's requires consistency
5772# for target_alias and gcc doesn't manage it consistently.
4b900473 5773target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5774
a0da8069
NN
5775FLAGS_FOR_TARGET=
5776case " $target_configdirs " in
5777 *" newlib "*)
5778 case " $target_configargs " in
5779 *" --with-newlib "*)
5780 case "$target" in
5781 *-cygwin*)
564b43e5 5782 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
5783 esac
5784
5785 # If we're not building GCC, don't discard standard headers.
5786 if test -d ${srcdir}/gcc; then
5787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5788
5789 if test "${build}" != "${host}"; then
5790 # On Canadian crosses, CC_FOR_TARGET will have already been set
5791 # by `configure', so we won't have an opportunity to add -Bgcc/
5792 # to it. This is right: we don't want to search that directory
5793 # for binaries, but we want the header files in there, so add
5794 # them explicitly.
b00612cc 5795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5796
5797 # Someone might think of using the pre-installed headers on
5798 # Canadian crosses, in case the installed compiler is not fully
5799 # compatible with the compiler being built. In this case, it
5800 # would be better to flag an error than risking having
5801 # incompatible object files being constructed. We can't
5802 # guarantee that an error will be flagged, but let's hope the
5803 # compiler will do it, when presented with incompatible header
5804 # files.
5805 fi
5806 fi
5807
5808 case "${target}-${is_cross_compiler}" in
ec11bdc6 5809 i[3456789]86-*-linux*-no)
a0da8069
NN
5810 # Here host == target, so we don't need to build gcc,
5811 # so we don't want to discard standard headers.
5812 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5813 ;;
5814 *)
5815 # If we're building newlib, use its generic headers last, but search
5816 # for any libc-related directories first (so make it the last -B
5817 # switch).
5818 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
5819
5820 # If we're building libgloss, find the startup file, simulator library
5821 # and linker script.
5822 case " $target_configdirs " in
5823 *" libgloss "*)
5824 # Look for startup file, simulator library and maybe linker script.
5825 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5826 # Look for libnosys.a in case the target needs it.
5827 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5828 # Most targets have the linker script in the source directory.
5829 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5830 ;;
5831 esac
a0da8069
NN
5832 ;;
5833 esac
5834 ;;
5835 esac
5836 ;;
5837esac
45055374
CV
5838case "$target" in
5839*-mingw*)
5840 # Can't be handled as Cygwin above since Mingw does not use newlib.
5841 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' ;;
5842esac
a0da8069 5843
5fbad20a
DD
5844# Allow the user to override the flags for
5845# our build compiler if desired.
5846CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5847
a0da8069
NN
5848# On Canadian crosses, we'll be searching the right directories for
5849# the previously-installed cross compiler, so don't bother to add
5850# flags for directories within the install tree of the compiler
5851# being built; programs in there won't even run.
5852if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5853 # Search for pre-installed headers if nothing else fits.
bba45b8b 5854 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
5855fi
5856
5857if test "x${use_gnu_ld}" = x &&
5858 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5859 # Arrange for us to find uninstalled linker scripts.
b00612cc 5860 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5861fi
5862
a481dbb7
DD
5863# Search for other target-specific linker scripts and such.
5864case "${target}" in
4e206d7e
DB
5865 mep*)
5866 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5867 ;;
5868esac
5869
a0da8069 5870# Makefile fragments.
3e707e94
PB
5871for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5872do
5873 eval fragval=\$$frag
5874 if test $fragval != /dev/null; then
5875 eval $frag=${srcdir}/$fragval
5876 fi
5877done
a0da8069
NN
5878
5879
5880
5881
5882
5883# Miscellanea: directories, flags, etc.
5884
5885
5886
5887
5888
5889
5890
6a9cf61e 5891# Build module lists & subconfigure args.
a0da8069
NN
5892
5893
5894
be01d343
PB
5895# Host module lists & subconfigure args.
5896
5897
5898
5899# Target module lists & subconfigure args.
5900
5901
5902
5903# Build tools.
5904
5905
5906
5907# Generate default definitions for YACC, M4, LEX and other programs that run
5908# on the build machine. These are used if the Makefile can't locate these
5909# programs in objdir.
5910MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5911
5912for ac_prog in 'bison -y' byacc yacc
5913do
c6b750e1 5914 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5915set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5916echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918if test "${ac_cv_prog_YACC+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5920else
5921 if test -n "$YACC"; then
5922 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5923else
c6b750e1
DJ
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_YACC="$ac_prog"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936done
5937
be01d343
PB
5938fi
5939fi
c6b750e1 5940YACC=$ac_cv_prog_YACC
be01d343 5941if test -n "$YACC"; then
c6b750e1
DJ
5942 echo "$as_me:$LINENO: result: $YACC" >&5
5943echo "${ECHO_T}$YACC" >&6
be01d343 5944else
c6b750e1
DJ
5945 echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
be01d343
PB
5947fi
5948
c6b750e1 5949 test -n "$YACC" && break
be01d343
PB
5950done
5951test -n "$YACC" || YACC="$MISSING bison -y"
5952
5953case " $build_configdirs " in
5954 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5955 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5956esac
5957
5958for ac_prog in bison
5959do
c6b750e1 5960 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5961set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5962echo "$as_me:$LINENO: checking for $ac_word" >&5
5963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5964if test "${ac_cv_prog_BISON+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5966else
5967 if test -n "$BISON"; then
5968 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5969else
c6b750e1
DJ
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977 ac_cv_prog_BISON="$ac_prog"
5978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981done
5982done
5983
be01d343
PB
5984fi
5985fi
c6b750e1 5986BISON=$ac_cv_prog_BISON
be01d343 5987if test -n "$BISON"; then
c6b750e1
DJ
5988 echo "$as_me:$LINENO: result: $BISON" >&5
5989echo "${ECHO_T}$BISON" >&6
be01d343 5990else
c6b750e1
DJ
5991 echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6
be01d343
PB
5993fi
5994
c6b750e1 5995 test -n "$BISON" && break
be01d343
PB
5996done
5997test -n "$BISON" || BISON="$MISSING bison"
5998
5999case " $build_configdirs " in
6000 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6001esac
6002
6003for ac_prog in gm4 gnum4 m4
6004do
c6b750e1 6005 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6006set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6007echo "$as_me:$LINENO: checking for $ac_word" >&5
6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6009if test "${ac_cv_prog_M4+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6011else
6012 if test -n "$M4"; then
6013 ac_cv_prog_M4="$M4" # Let the user override the test.
6014else
c6b750e1
DJ
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_M4="$ac_prog"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026done
6027done
6028
be01d343
PB
6029fi
6030fi
c6b750e1 6031M4=$ac_cv_prog_M4
be01d343 6032if test -n "$M4"; then
c6b750e1
DJ
6033 echo "$as_me:$LINENO: result: $M4" >&5
6034echo "${ECHO_T}$M4" >&6
be01d343 6035else
c6b750e1
DJ
6036 echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6
be01d343
PB
6038fi
6039
c6b750e1 6040 test -n "$M4" && break
be01d343
PB
6041done
6042test -n "$M4" || M4="$MISSING m4"
6043
6044case " $build_configdirs " in
6045 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6046esac
6047
6048for ac_prog in flex lex
6049do
c6b750e1 6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6051set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6052echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054if test "${ac_cv_prog_LEX+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6056else
6057 if test -n "$LEX"; then
6058 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6059else
c6b750e1
DJ
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_LEX="$ac_prog"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072done
6073
be01d343
PB
6074fi
6075fi
c6b750e1 6076LEX=$ac_cv_prog_LEX
be01d343 6077if test -n "$LEX"; then
c6b750e1
DJ
6078 echo "$as_me:$LINENO: result: $LEX" >&5
6079echo "${ECHO_T}$LEX" >&6
be01d343 6080else
c6b750e1
DJ
6081 echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6
be01d343
PB
6083fi
6084
c6b750e1 6085 test -n "$LEX" && break
be01d343
PB
6086done
6087test -n "$LEX" || LEX="$MISSING flex"
6088
6089case " $build_configdirs " in
6090 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6091 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6092esac
6093
6094for ac_prog in flex
6095do
c6b750e1 6096 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6097set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6098echo "$as_me:$LINENO: checking for $ac_word" >&5
6099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6100if test "${ac_cv_prog_FLEX+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6102else
6103 if test -n "$FLEX"; then
6104 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6105else
c6b750e1
DJ
6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_FLEX="$ac_prog"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117done
6118done
6119
be01d343
PB
6120fi
6121fi
c6b750e1 6122FLEX=$ac_cv_prog_FLEX
be01d343 6123if test -n "$FLEX"; then
c6b750e1
DJ
6124 echo "$as_me:$LINENO: result: $FLEX" >&5
6125echo "${ECHO_T}$FLEX" >&6
be01d343 6126else
c6b750e1
DJ
6127 echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6
be01d343
PB
6129fi
6130
c6b750e1 6131 test -n "$FLEX" && break
be01d343
PB
6132done
6133test -n "$FLEX" || FLEX="$MISSING flex"
6134
6135case " $build_configdirs " in
6136 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6137esac
6138
6139for ac_prog in makeinfo
6140do
c6b750e1 6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6142set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6143echo "$as_me:$LINENO: checking for $ac_word" >&5
6144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6145if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6147else
6148 if test -n "$MAKEINFO"; then
6149 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6150else
c6b750e1
DJ
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_prog_MAKEINFO="$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163done
6164
be01d343
PB
6165fi
6166fi
c6b750e1 6167MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6168if test -n "$MAKEINFO"; then
c6b750e1
DJ
6169 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6170echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6171else
c6b750e1
DJ
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
be01d343
PB
6174fi
6175
c6b750e1 6176 test -n "$MAKEINFO" && break
be01d343
PB
6177done
6178test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6179
6180case " $build_configdirs " in
6181 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6182 *)
6183
a4ef73e9 6184 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6185 # higher, else we use the "missing" dummy.
6186 if ${MAKEINFO} --version \
a4ef73e9 6187 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6188 :
6189 else
6190 MAKEINFO="$MISSING makeinfo"
6191 fi
6192 ;;
6193
6194esac
a0da8069 6195
be01d343 6196# FIXME: expect and dejagnu may become build tools?
a0da8069 6197
be01d343
PB
6198for ac_prog in expect
6199do
c6b750e1 6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6201set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6202echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6204if test "${ac_cv_prog_EXPECT+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6206else
6207 if test -n "$EXPECT"; then
6208 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6209else
c6b750e1
DJ
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_EXPECT="$ac_prog"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221done
6222done
6223
be01d343
PB
6224fi
6225fi
c6b750e1 6226EXPECT=$ac_cv_prog_EXPECT
be01d343 6227if test -n "$EXPECT"; then
c6b750e1
DJ
6228 echo "$as_me:$LINENO: result: $EXPECT" >&5
6229echo "${ECHO_T}$EXPECT" >&6
be01d343 6230else
c6b750e1
DJ
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
be01d343 6233fi
a0da8069 6234
c6b750e1 6235 test -n "$EXPECT" && break
be01d343
PB
6236done
6237test -n "$EXPECT" || EXPECT="expect"
a0da8069 6238
be01d343
PB
6239case " $configdirs " in
6240 *" expect "*)
6241 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6242 ;;
6243esac
a0da8069 6244
be01d343
PB
6245for ac_prog in runtest
6246do
c6b750e1 6247 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6248set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6249echo "$as_me:$LINENO: checking for $ac_word" >&5
6250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6251if test "${ac_cv_prog_RUNTEST+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6253else
6254 if test -n "$RUNTEST"; then
6255 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6256else
c6b750e1
DJ
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_RUNTEST="$ac_prog"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269done
6270
be01d343
PB
6271fi
6272fi
c6b750e1 6273RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6274if test -n "$RUNTEST"; then
c6b750e1
DJ
6275 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6276echo "${ECHO_T}$RUNTEST" >&6
be01d343 6277else
c6b750e1
DJ
6278 echo "$as_me:$LINENO: result: no" >&5
6279echo "${ECHO_T}no" >&6
be01d343 6280fi
a0da8069 6281
c6b750e1 6282 test -n "$RUNTEST" && break
be01d343
PB
6283done
6284test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6285
be01d343
PB
6286case " $configdirs " in
6287 *" dejagnu "*)
6b89cc21 6288 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6289 ;;
6290esac
a0da8069
NN
6291
6292
a0da8069 6293# Host tools.
859789af
AC
6294ncn_tool_prefix=
6295test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6296ncn_target_tool_prefix=
6297test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6298
9a819804
AO
6299
6300
6301if test -n "$AR"; then
6302 ac_cv_prog_AR=$AR
6303elif test -n "$ac_cv_prog_AR"; then
6304 AR=$ac_cv_prog_AR
6305fi
6306
6307if test -n "$ac_cv_prog_AR"; then
6308 for ncn_progname in ar; do
6309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6310set dummy ${ncn_progname}; ac_word=$2
6311echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6313if test "${ac_cv_prog_AR+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 if test -n "$AR"; then
6317 ac_cv_prog_AR="$AR" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_AR="${ncn_progname}"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330done
6331done
6332
6333fi
6334fi
6335AR=$ac_cv_prog_AR
6336if test -n "$AR"; then
6337 echo "$as_me:$LINENO: result: $AR" >&5
6338echo "${ECHO_T}$AR" >&6
6339else
6340 echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6
6342fi
6343
6344 done
6345fi
6346
6347for ncn_progname in ar; do
05cbd757
PB
6348 if test -n "$ncn_tool_prefix"; then
6349 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6350set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6351echo "$as_me:$LINENO: checking for $ac_word" >&5
6352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6353if test "${ac_cv_prog_AR+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6355else
6356 if test -n "$AR"; then
6357 ac_cv_prog_AR="$AR" # Let the user override the test.
6358else
c6b750e1
DJ
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370done
6371done
6372
859789af
AC
6373fi
6374fi
c6b750e1 6375AR=$ac_cv_prog_AR
859789af 6376if test -n "$AR"; then
c6b750e1
DJ
6377 echo "$as_me:$LINENO: result: $AR" >&5
6378echo "${ECHO_T}$AR" >&6
859789af 6379else
c6b750e1
DJ
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
859789af
AC
6382fi
6383
05cbd757
PB
6384 fi
6385 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6387set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6388echo "$as_me:$LINENO: checking for $ac_word" >&5
6389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6390if test "${ac_cv_prog_AR+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6392else
05cbd757
PB
6393 if test -n "$AR"; then
6394 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6395else
c6b750e1
DJ
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_AR="${ncn_progname}"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408done
6409
859789af
AC
6410fi
6411fi
c6b750e1 6412AR=$ac_cv_prog_AR
05cbd757 6413if test -n "$AR"; then
c6b750e1
DJ
6414 echo "$as_me:$LINENO: result: $AR" >&5
6415echo "${ECHO_T}$AR" >&6
859789af 6416else
c6b750e1
DJ
6417 echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6
859789af 6419fi
c6b750e1 6420
05cbd757
PB
6421 fi
6422 test -n "$ac_cv_prog_AR" && break
6423done
6424
6425if test -z "$ac_cv_prog_AR" ; then
6426 set dummy ar
6427 if test $build = $host ; then
6428 AR="$2"
859789af 6429 else
05cbd757 6430 AR="${ncn_tool_prefix}$2"
859789af 6431 fi
859789af
AC
6432fi
6433
9a819804
AO
6434
6435
6436if test -n "$AS"; then
6437 ac_cv_prog_AS=$AS
6438elif test -n "$ac_cv_prog_AS"; then
6439 AS=$ac_cv_prog_AS
6440fi
6441
6442if test -n "$ac_cv_prog_AS"; then
6443 for ncn_progname in as; do
6444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6445set dummy ${ncn_progname}; ac_word=$2
6446echo "$as_me:$LINENO: checking for $ac_word" >&5
6447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6448if test "${ac_cv_prog_AS+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 if test -n "$AS"; then
6452 ac_cv_prog_AS="$AS" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_AS="${ncn_progname}"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465done
6466done
6467
6468fi
6469fi
6470AS=$ac_cv_prog_AS
6471if test -n "$AS"; then
6472 echo "$as_me:$LINENO: result: $AS" >&5
6473echo "${ECHO_T}$AS" >&6
6474else
6475 echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
6477fi
6478
6479 done
6480fi
6481
6482for ncn_progname in as; do
05cbd757
PB
6483 if test -n "$ncn_tool_prefix"; then
6484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6486echo "$as_me:$LINENO: checking for $ac_word" >&5
6487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6488if test "${ac_cv_prog_AS+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6490else
6491 if test -n "$AS"; then
6492 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506done
6507
859789af
AC
6508fi
6509fi
c6b750e1 6510AS=$ac_cv_prog_AS
859789af 6511if test -n "$AS"; then
c6b750e1
DJ
6512 echo "$as_me:$LINENO: result: $AS" >&5
6513echo "${ECHO_T}$AS" >&6
859789af 6514else
c6b750e1
DJ
6515 echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6
859789af
AC
6517fi
6518
05cbd757
PB
6519 fi
6520 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6522set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6523echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6525if test "${ac_cv_prog_AS+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6527else
05cbd757
PB
6528 if test -n "$AS"; then
6529 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6530else
c6b750e1
DJ
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_AS="${ncn_progname}"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542done
6543done
6544
859789af
AC
6545fi
6546fi
c6b750e1 6547AS=$ac_cv_prog_AS
05cbd757 6548if test -n "$AS"; then
c6b750e1
DJ
6549 echo "$as_me:$LINENO: result: $AS" >&5
6550echo "${ECHO_T}$AS" >&6
859789af 6551else
c6b750e1
DJ
6552 echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
859789af 6554fi
c6b750e1 6555
05cbd757
PB
6556 fi
6557 test -n "$ac_cv_prog_AS" && break
6558done
6559
6560if test -z "$ac_cv_prog_AS" ; then
6561 set dummy as
6562 if test $build = $host ; then
6563 AS="$2"
859789af 6564 else
05cbd757 6565 AS="${ncn_tool_prefix}$2"
859789af 6566 fi
859789af
AC
6567fi
6568
9a819804
AO
6569
6570
6571if test -n "$DLLTOOL"; then
6572 ac_cv_prog_DLLTOOL=$DLLTOOL
6573elif test -n "$ac_cv_prog_DLLTOOL"; then
6574 DLLTOOL=$ac_cv_prog_DLLTOOL
6575fi
6576
6577if test -n "$ac_cv_prog_DLLTOOL"; then
6578 for ncn_progname in dlltool; do
6579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6580set dummy ${ncn_progname}; ac_word=$2
6581echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6583if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 if test -n "$DLLTOOL"; then
6587 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_DLLTOOL="${ncn_progname}"
6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600done
6601done
6602
6603fi
6604fi
6605DLLTOOL=$ac_cv_prog_DLLTOOL
6606if test -n "$DLLTOOL"; then
6607 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6608echo "${ECHO_T}$DLLTOOL" >&6
6609else
6610 echo "$as_me:$LINENO: result: no" >&5
6611echo "${ECHO_T}no" >&6
6612fi
6613
6614 done
6615fi
6616
6617for ncn_progname in dlltool; do
05cbd757
PB
6618 if test -n "$ncn_tool_prefix"; then
6619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6620set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6621echo "$as_me:$LINENO: checking for $ac_word" >&5
6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6623if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6625else
6626 if test -n "$DLLTOOL"; then
6627 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6628else
c6b750e1
DJ
6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630for as_dir in $PATH
6631do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640done
6641done
6642
859789af
AC
6643fi
6644fi
c6b750e1 6645DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6646if test -n "$DLLTOOL"; then
c6b750e1
DJ
6647 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6648echo "${ECHO_T}$DLLTOOL" >&6
859789af 6649else
c6b750e1
DJ
6650 echo "$as_me:$LINENO: result: no" >&5
6651echo "${ECHO_T}no" >&6
859789af
AC
6652fi
6653
05cbd757
PB
6654 fi
6655 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6657set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6658echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6660if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6662else
05cbd757
PB
6663 if test -n "$DLLTOOL"; then
6664 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6665else
c6b750e1
DJ
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_DLLTOOL="${ncn_progname}"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679
859789af
AC
6680fi
6681fi
c6b750e1 6682DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6683if test -n "$DLLTOOL"; then
c6b750e1
DJ
6684 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6685echo "${ECHO_T}$DLLTOOL" >&6
859789af 6686else
c6b750e1
DJ
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
859789af 6689fi
c6b750e1 6690
05cbd757
PB
6691 fi
6692 test -n "$ac_cv_prog_DLLTOOL" && break
6693done
6694
6695if test -z "$ac_cv_prog_DLLTOOL" ; then
6696 set dummy dlltool
6697 if test $build = $host ; then
6698 DLLTOOL="$2"
859789af 6699 else
05cbd757 6700 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6701 fi
859789af
AC
6702fi
6703
9a819804
AO
6704
6705
6706if test -n "$LD"; then
6707 ac_cv_prog_LD=$LD
6708elif test -n "$ac_cv_prog_LD"; then
6709 LD=$ac_cv_prog_LD
6710fi
6711
6712if test -n "$ac_cv_prog_LD"; then
6713 for ncn_progname in ld; do
6714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6715set dummy ${ncn_progname}; ac_word=$2
6716echo "$as_me:$LINENO: checking for $ac_word" >&5
6717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6718if test "${ac_cv_prog_LD+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721 if test -n "$LD"; then
6722 ac_cv_prog_LD="$LD" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731 ac_cv_prog_LD="${ncn_progname}"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736done
6737
6738fi
6739fi
6740LD=$ac_cv_prog_LD
6741if test -n "$LD"; then
6742 echo "$as_me:$LINENO: result: $LD" >&5
6743echo "${ECHO_T}$LD" >&6
6744else
6745 echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6
6747fi
6748
6749 done
6750fi
6751
6752for ncn_progname in ld; do
05cbd757
PB
6753 if test -n "$ncn_tool_prefix"; then
6754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6755set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6756echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6758if test "${ac_cv_prog_LD+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6760else
6761 if test -n "$LD"; then
6762 ac_cv_prog_LD="$LD" # Let the user override the test.
6763else
c6b750e1
DJ
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776done
6777
859789af
AC
6778fi
6779fi
c6b750e1 6780LD=$ac_cv_prog_LD
859789af 6781if test -n "$LD"; then
c6b750e1
DJ
6782 echo "$as_me:$LINENO: result: $LD" >&5
6783echo "${ECHO_T}$LD" >&6
859789af 6784else
c6b750e1
DJ
6785 echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6
859789af
AC
6787fi
6788
05cbd757
PB
6789 fi
6790 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6792set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6793echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6795if test "${ac_cv_prog_LD+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6797else
05cbd757
PB
6798 if test -n "$LD"; then
6799 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6800else
c6b750e1
DJ
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_LD="${ncn_progname}"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813done
6814
859789af
AC
6815fi
6816fi
c6b750e1 6817LD=$ac_cv_prog_LD
05cbd757 6818if test -n "$LD"; then
c6b750e1
DJ
6819 echo "$as_me:$LINENO: result: $LD" >&5
6820echo "${ECHO_T}$LD" >&6
859789af 6821else
c6b750e1
DJ
6822 echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
859789af 6824fi
c6b750e1 6825
05cbd757
PB
6826 fi
6827 test -n "$ac_cv_prog_LD" && break
6828done
6829
6830if test -z "$ac_cv_prog_LD" ; then
6831 set dummy ld
6832 if test $build = $host ; then
6833 LD="$2"
859789af 6834 else
05cbd757 6835 LD="${ncn_tool_prefix}$2"
859789af 6836 fi
859789af
AC
6837fi
6838
9a819804
AO
6839
6840
6841if test -n "$LIPO"; then
6842 ac_cv_prog_LIPO=$LIPO
6843elif test -n "$ac_cv_prog_LIPO"; then
6844 LIPO=$ac_cv_prog_LIPO
6845fi
6846
6847if test -n "$ac_cv_prog_LIPO"; then
6848 for ncn_progname in lipo; do
6849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6850set dummy ${ncn_progname}; ac_word=$2
6851echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6853if test "${ac_cv_prog_LIPO+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856 if test -n "$LIPO"; then
6857 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_LIPO="${ncn_progname}"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872
6873fi
6874fi
6875LIPO=$ac_cv_prog_LIPO
6876if test -n "$LIPO"; then
6877 echo "$as_me:$LINENO: result: $LIPO" >&5
6878echo "${ECHO_T}$LIPO" >&6
6879else
6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
6882fi
6883
6884 done
6885fi
6886
6887for ncn_progname in lipo; do
be01d343
PB
6888 if test -n "$ncn_tool_prefix"; then
6889 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6890set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6891echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6893if test "${ac_cv_prog_LIPO+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6895else
6896 if test -n "$LIPO"; then
6897 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6898else
c6b750e1
DJ
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
6912
be01d343
PB
6913fi
6914fi
c6b750e1 6915LIPO=$ac_cv_prog_LIPO
be01d343 6916if test -n "$LIPO"; then
c6b750e1
DJ
6917 echo "$as_me:$LINENO: result: $LIPO" >&5
6918echo "${ECHO_T}$LIPO" >&6
be01d343 6919else
c6b750e1
DJ
6920 echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6
be01d343
PB
6922fi
6923
6924 fi
6925 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6927set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6928echo "$as_me:$LINENO: checking for $ac_word" >&5
6929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6930if test "${ac_cv_prog_LIPO+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6932else
6933 if test -n "$LIPO"; then
6934 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6935else
c6b750e1
DJ
6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_prog_LIPO="${ncn_progname}"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947done
6948done
6949
be01d343
PB
6950fi
6951fi
c6b750e1 6952LIPO=$ac_cv_prog_LIPO
be01d343 6953if test -n "$LIPO"; then
c6b750e1
DJ
6954 echo "$as_me:$LINENO: result: $LIPO" >&5
6955echo "${ECHO_T}$LIPO" >&6
be01d343 6956else
c6b750e1
DJ
6957 echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6
be01d343 6959fi
c6b750e1 6960
be01d343
PB
6961 fi
6962 test -n "$ac_cv_prog_LIPO" && break
6963done
6964
6965if test -z "$ac_cv_prog_LIPO" ; then
6966 set dummy lipo
6967 if test $build = $host ; then
6968 LIPO="$2"
6969 else
6970 LIPO="${ncn_tool_prefix}$2"
6971 fi
6972fi
6973
9a819804
AO
6974
6975
6976if test -n "$NM"; then
6977 ac_cv_prog_NM=$NM
6978elif test -n "$ac_cv_prog_NM"; then
6979 NM=$ac_cv_prog_NM
6980fi
6981
6982if test -n "$ac_cv_prog_NM"; then
6983 for ncn_progname in nm; do
6984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6985set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6986echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6988if test "${ac_cv_prog_NM+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6990else
6991 if test -n "$NM"; then
6992 ac_cv_prog_NM="$NM" # Let the user override the test.
6993else
c6b750e1
DJ
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7001 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006done
7007
859789af
AC
7008fi
7009fi
c6b750e1 7010NM=$ac_cv_prog_NM
859789af 7011if test -n "$NM"; then
c6b750e1
DJ
7012 echo "$as_me:$LINENO: result: $NM" >&5
7013echo "${ECHO_T}$NM" >&6
859789af 7014else
c6b750e1
DJ
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
859789af
AC
7017fi
7018
9a819804
AO
7019 done
7020fi
7021
7022for ncn_progname in nm; do
7023 if test -n "$ncn_tool_prefix"; then
7024 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7025set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7026echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7028if test "${ac_cv_prog_NM+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7030else
05cbd757
PB
7031 if test -n "$NM"; then
7032 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7033else
c6b750e1
DJ
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7041 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046done
7047
859789af
AC
7048fi
7049fi
c6b750e1 7050NM=$ac_cv_prog_NM
05cbd757 7051if test -n "$NM"; then
c6b750e1
DJ
7052 echo "$as_me:$LINENO: result: $NM" >&5
7053echo "${ECHO_T}$NM" >&6
859789af 7054else
c6b750e1
DJ
7055 echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6
859789af 7057fi
c6b750e1 7058
05cbd757 7059 fi
9a819804
AO
7060 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7062set dummy ${ncn_progname}; ac_word=$2
7063echo "$as_me:$LINENO: checking for $ac_word" >&5
7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7065if test "${ac_cv_prog_NM+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068 if test -n "$NM"; then
7069 ac_cv_prog_NM="$NM" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078 ac_cv_prog_NM="${ncn_progname}"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082done
7083done
7084
7085fi
7086fi
7087NM=$ac_cv_prog_NM
7088if test -n "$NM"; then
7089 echo "$as_me:$LINENO: result: $NM" >&5
7090echo "${ECHO_T}$NM" >&6
7091else
7092 echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
7094fi
7095
7096 fi
7097 test -n "$ac_cv_prog_NM" && break
7098done
7099
7100if test -z "$ac_cv_prog_NM" ; then
7101 set dummy nm
7102 if test $build = $host ; then
7103 NM="$2"
7104 else
7105 NM="${ncn_tool_prefix}$2"
7106 fi
7107fi
7108
7109
7110
7111if test -n "$RANLIB"; then
7112 ac_cv_prog_RANLIB=$RANLIB
7113elif test -n "$ac_cv_prog_RANLIB"; then
7114 RANLIB=$ac_cv_prog_RANLIB
7115fi
7116
7117if test -n "$ac_cv_prog_RANLIB"; then
7118 for ncn_progname in ranlib; do
7119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7120set dummy ${ncn_progname}; ac_word=$2
7121echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7123if test "${ac_cv_prog_RANLIB+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 if test -n "$RANLIB"; then
7127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7128else
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_RANLIB="${ncn_progname}"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140done
7141done
7142
7143fi
7144fi
7145RANLIB=$ac_cv_prog_RANLIB
7146if test -n "$RANLIB"; then
7147 echo "$as_me:$LINENO: result: $RANLIB" >&5
7148echo "${ECHO_T}$RANLIB" >&6
7149else
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
7152fi
7153
7154 done
7155fi
859789af 7156
9a819804 7157for ncn_progname in ranlib; do
05cbd757
PB
7158 if test -n "$ncn_tool_prefix"; then
7159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7160set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7161echo "$as_me:$LINENO: checking for $ac_word" >&5
7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7163if test "${ac_cv_prog_RANLIB+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7165else
7166 if test -n "$RANLIB"; then
7167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7168else
c6b750e1
DJ
7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181done
7182
859789af
AC
7183fi
7184fi
c6b750e1 7185RANLIB=$ac_cv_prog_RANLIB
859789af 7186if test -n "$RANLIB"; then
c6b750e1
DJ
7187 echo "$as_me:$LINENO: result: $RANLIB" >&5
7188echo "${ECHO_T}$RANLIB" >&6
859789af 7189else
c6b750e1
DJ
7190 echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6
859789af
AC
7192fi
7193
05cbd757
PB
7194 fi
7195 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7197set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7198echo "$as_me:$LINENO: checking for $ac_word" >&5
7199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7200if test "${ac_cv_prog_RANLIB+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7202else
05cbd757
PB
7203 if test -n "$RANLIB"; then
7204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7205else
c6b750e1
DJ
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_RANLIB="${ncn_progname}"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217done
7218done
7219
859789af
AC
7220fi
7221fi
c6b750e1 7222RANLIB=$ac_cv_prog_RANLIB
05cbd757 7223if test -n "$RANLIB"; then
c6b750e1
DJ
7224 echo "$as_me:$LINENO: result: $RANLIB" >&5
7225echo "${ECHO_T}$RANLIB" >&6
859789af 7226else
c6b750e1
DJ
7227 echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6
859789af 7229fi
c6b750e1 7230
859789af 7231 fi
05cbd757
PB
7232 test -n "$ac_cv_prog_RANLIB" && break
7233done
7234
7235if test -z "$ac_cv_prog_RANLIB" ; then
7236 RANLIB=":"
859789af
AC
7237fi
7238
9a819804
AO
7239
7240
7241if test -n "$STRIP"; then
7242 ac_cv_prog_STRIP=$STRIP
7243elif test -n "$ac_cv_prog_STRIP"; then
7244 STRIP=$ac_cv_prog_STRIP
7245fi
7246
7247if test -n "$ac_cv_prog_STRIP"; then
7248 for ncn_progname in strip; do
7249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7250set dummy ${ncn_progname}; ac_word=$2
7251echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7253if test "${ac_cv_prog_STRIP+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256 if test -n "$STRIP"; then
7257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_STRIP="${ncn_progname}"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270done
7271done
7272
7273fi
7274fi
7275STRIP=$ac_cv_prog_STRIP
7276if test -n "$STRIP"; then
7277 echo "$as_me:$LINENO: result: $STRIP" >&5
7278echo "${ECHO_T}$STRIP" >&6
7279else
7280 echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6
7282fi
7283
7284 done
7285fi
7286
7287for ncn_progname in strip; do
be01d343
PB
7288 if test -n "$ncn_tool_prefix"; then
7289 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7290set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7291echo "$as_me:$LINENO: checking for $ac_word" >&5
7292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293if test "${ac_cv_prog_STRIP+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7295else
7296 if test -n "$STRIP"; then
7297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7298else
c6b750e1
DJ
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310done
7311done
7312
be01d343
PB
7313fi
7314fi
c6b750e1 7315STRIP=$ac_cv_prog_STRIP
be01d343 7316if test -n "$STRIP"; then
c6b750e1
DJ
7317 echo "$as_me:$LINENO: result: $STRIP" >&5
7318echo "${ECHO_T}$STRIP" >&6
be01d343 7319else
c6b750e1
DJ
7320 echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6
be01d343
PB
7322fi
7323
7324 fi
7325 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7327set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7328echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330if test "${ac_cv_prog_STRIP+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7332else
7333 if test -n "$STRIP"; then
7334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7335else
c6b750e1
DJ
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_STRIP="${ncn_progname}"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347done
7348done
7349
be01d343
PB
7350fi
7351fi
c6b750e1 7352STRIP=$ac_cv_prog_STRIP
be01d343 7353if test -n "$STRIP"; then
c6b750e1
DJ
7354 echo "$as_me:$LINENO: result: $STRIP" >&5
7355echo "${ECHO_T}$STRIP" >&6
be01d343 7356else
c6b750e1
DJ
7357 echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6
be01d343 7359fi
c6b750e1 7360
be01d343
PB
7361 fi
7362 test -n "$ac_cv_prog_STRIP" && break
7363done
7364
7365if test -z "$ac_cv_prog_STRIP" ; then
7366 STRIP=":"
7367fi
7368
9a819804
AO
7369
7370
7371if test -n "$WINDRES"; then
7372 ac_cv_prog_WINDRES=$WINDRES
7373elif test -n "$ac_cv_prog_WINDRES"; then
7374 WINDRES=$ac_cv_prog_WINDRES
7375fi
7376
7377if test -n "$ac_cv_prog_WINDRES"; then
7378 for ncn_progname in windres; do
7379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7380set dummy ${ncn_progname}; ac_word=$2
7381echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383if test "${ac_cv_prog_WINDRES+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 if test -n "$WINDRES"; then
7387 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7388else
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_WINDRES="${ncn_progname}"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400done
7401done
7402
7403fi
7404fi
7405WINDRES=$ac_cv_prog_WINDRES
7406if test -n "$WINDRES"; then
7407 echo "$as_me:$LINENO: result: $WINDRES" >&5
7408echo "${ECHO_T}$WINDRES" >&6
7409else
7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
7412fi
7413
7414 done
7415fi
7416
7417for ncn_progname in windres; do
05cbd757
PB
7418 if test -n "$ncn_tool_prefix"; then
7419 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7420set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7421echo "$as_me:$LINENO: checking for $ac_word" >&5
7422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7423if test "${ac_cv_prog_WINDRES+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7425else
7426 if test -n "$WINDRES"; then
7427 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7428else
c6b750e1
DJ
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440done
7441done
7442
859789af
AC
7443fi
7444fi
c6b750e1 7445WINDRES=$ac_cv_prog_WINDRES
859789af 7446if test -n "$WINDRES"; then
c6b750e1
DJ
7447 echo "$as_me:$LINENO: result: $WINDRES" >&5
7448echo "${ECHO_T}$WINDRES" >&6
859789af 7449else
c6b750e1
DJ
7450 echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6
859789af
AC
7452fi
7453
05cbd757
PB
7454 fi
7455 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7457set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7458echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7460if test "${ac_cv_prog_WINDRES+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7462else
05cbd757
PB
7463 if test -n "$WINDRES"; then
7464 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7465else
c6b750e1
DJ
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_WINDRES="${ncn_progname}"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478done
7479
859789af
AC
7480fi
7481fi
c6b750e1 7482WINDRES=$ac_cv_prog_WINDRES
05cbd757 7483if test -n "$WINDRES"; then
c6b750e1
DJ
7484 echo "$as_me:$LINENO: result: $WINDRES" >&5
7485echo "${ECHO_T}$WINDRES" >&6
859789af 7486else
c6b750e1
DJ
7487 echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
859789af 7489fi
c6b750e1 7490
05cbd757
PB
7491 fi
7492 test -n "$ac_cv_prog_WINDRES" && break
7493done
7494
7495if test -z "$ac_cv_prog_WINDRES" ; then
7496 set dummy windres
7497 if test $build = $host ; then
7498 WINDRES="$2"
859789af 7499 else
05cbd757 7500 WINDRES="${ncn_tool_prefix}$2"
859789af 7501 fi
859789af
AC
7502fi
7503
9a819804
AO
7504
7505
0c24b341
NC
7506if test -n "$WINDMC"; then
7507 ac_cv_prog_WINDMC=$WINDMC
7508elif test -n "$ac_cv_prog_WINDMC"; then
7509 WINDMC=$ac_cv_prog_WINDMC
7510fi
7511
7512if test -n "$ac_cv_prog_WINDMC"; then
7513 for ncn_progname in windmc; do
7514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7515set dummy ${ncn_progname}; ac_word=$2
7516echo "$as_me:$LINENO: checking for $ac_word" >&5
7517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518if test "${ac_cv_prog_WINDMC+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521 if test -n "$WINDMC"; then
7522 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_WINDMC="${ncn_progname}"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535done
7536done
7537
7538fi
7539fi
7540WINDMC=$ac_cv_prog_WINDMC
7541if test -n "$WINDMC"; then
7542 echo "$as_me:$LINENO: result: $WINDMC" >&5
7543echo "${ECHO_T}$WINDMC" >&6
7544else
7545 echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547fi
7548
7549 done
7550fi
7551
7552for ncn_progname in windmc; do
7553 if test -n "$ncn_tool_prefix"; then
7554 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7555set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7556echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7558if test "${ac_cv_prog_WINDMC+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561 if test -n "$WINDMC"; then
7562 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575done
7576done
7577
7578fi
7579fi
7580WINDMC=$ac_cv_prog_WINDMC
7581if test -n "$WINDMC"; then
7582 echo "$as_me:$LINENO: result: $WINDMC" >&5
7583echo "${ECHO_T}$WINDMC" >&6
7584else
7585 echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
7587fi
7588
7589 fi
7590 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7592set dummy ${ncn_progname}; ac_word=$2
7593echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7595if test "${ac_cv_prog_WINDMC+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 if test -n "$WINDMC"; then
7599 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_WINDMC="${ncn_progname}"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614
7615fi
7616fi
7617WINDMC=$ac_cv_prog_WINDMC
7618if test -n "$WINDMC"; then
7619 echo "$as_me:$LINENO: result: $WINDMC" >&5
7620echo "${ECHO_T}$WINDMC" >&6
7621else
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
7624fi
7625
7626 fi
7627 test -n "$ac_cv_prog_WINDMC" && break
7628done
7629
7630if test -z "$ac_cv_prog_WINDMC" ; then
7631 set dummy windmc
7632 if test $build = $host ; then
7633 WINDMC="$2"
7634 else
7635 WINDMC="${ncn_tool_prefix}$2"
7636 fi
7637fi
7638
7639
7640
9a819804
AO
7641if test -n "$OBJCOPY"; then
7642 ac_cv_prog_OBJCOPY=$OBJCOPY
7643elif test -n "$ac_cv_prog_OBJCOPY"; then
7644 OBJCOPY=$ac_cv_prog_OBJCOPY
7645fi
7646
7647if test -n "$ac_cv_prog_OBJCOPY"; then
7648 for ncn_progname in objcopy; do
7649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7650set dummy ${ncn_progname}; ac_word=$2
7651echo "$as_me:$LINENO: checking for $ac_word" >&5
7652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7653if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655else
7656 if test -n "$OBJCOPY"; then
7657 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7658else
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666 ac_cv_prog_OBJCOPY="${ncn_progname}"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670done
7671done
7672
7673fi
7674fi
7675OBJCOPY=$ac_cv_prog_OBJCOPY
7676if test -n "$OBJCOPY"; then
7677 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7678echo "${ECHO_T}$OBJCOPY" >&6
7679else
7680 echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
7682fi
7683
7684 done
7685fi
7686
7687for ncn_progname in objcopy; do
05cbd757
PB
7688 if test -n "$ncn_tool_prefix"; then
7689 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7690set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7691echo "$as_me:$LINENO: checking for $ac_word" >&5
7692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7693if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7695else
7696 if test -n "$OBJCOPY"; then
7697 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7698else
c6b750e1
DJ
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711done
7712
859789af
AC
7713fi
7714fi
c6b750e1 7715OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7716if test -n "$OBJCOPY"; then
c6b750e1
DJ
7717 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7718echo "${ECHO_T}$OBJCOPY" >&6
859789af 7719else
c6b750e1
DJ
7720 echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6
859789af
AC
7722fi
7723
05cbd757
PB
7724 fi
7725 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7727set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7732else
05cbd757
PB
7733 if test -n "$OBJCOPY"; then
7734 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7735else
c6b750e1
DJ
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_OBJCOPY="${ncn_progname}"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748done
7749
859789af
AC
7750fi
7751fi
c6b750e1 7752OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7753if test -n "$OBJCOPY"; then
c6b750e1
DJ
7754 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7755echo "${ECHO_T}$OBJCOPY" >&6
859789af 7756else
c6b750e1
DJ
7757 echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
859789af 7759fi
c6b750e1 7760
05cbd757
PB
7761 fi
7762 test -n "$ac_cv_prog_OBJCOPY" && break
7763done
7764
7765if test -z "$ac_cv_prog_OBJCOPY" ; then
7766 set dummy objcopy
7767 if test $build = $host ; then
7768 OBJCOPY="$2"
859789af 7769 else
05cbd757 7770 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7771 fi
859789af
AC
7772fi
7773
9a819804
AO
7774
7775
7776if test -n "$OBJDUMP"; then
7777 ac_cv_prog_OBJDUMP=$OBJDUMP
7778elif test -n "$ac_cv_prog_OBJDUMP"; then
7779 OBJDUMP=$ac_cv_prog_OBJDUMP
7780fi
7781
7782if test -n "$ac_cv_prog_OBJDUMP"; then
7783 for ncn_progname in objdump; do
7784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7785set dummy ${ncn_progname}; ac_word=$2
7786echo "$as_me:$LINENO: checking for $ac_word" >&5
7787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791 if test -n "$OBJDUMP"; then
7792 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7793else
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_OBJDUMP="${ncn_progname}"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806done
7807
7808fi
7809fi
7810OBJDUMP=$ac_cv_prog_OBJDUMP
7811if test -n "$OBJDUMP"; then
7812 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7813echo "${ECHO_T}$OBJDUMP" >&6
7814else
7815 echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
7817fi
7818
7819 done
7820fi
7821
7822for ncn_progname in objdump; do
05cbd757
PB
7823 if test -n "$ncn_tool_prefix"; then
7824 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7825set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7826echo "$as_me:$LINENO: checking for $ac_word" >&5
7827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7828if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7830else
7831 if test -n "$OBJDUMP"; then
7832 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7833else
c6b750e1
DJ
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846done
7847
859789af
AC
7848fi
7849fi
c6b750e1 7850OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7851if test -n "$OBJDUMP"; then
c6b750e1
DJ
7852 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7853echo "${ECHO_T}$OBJDUMP" >&6
859789af 7854else
c6b750e1
DJ
7855 echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6
859789af
AC
7857fi
7858
05cbd757
PB
7859 fi
7860 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7862set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7863echo "$as_me:$LINENO: checking for $ac_word" >&5
7864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7865if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7867else
05cbd757
PB
7868 if test -n "$OBJDUMP"; then
7869 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7870else
c6b750e1
DJ
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_OBJDUMP="${ncn_progname}"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884
859789af
AC
7885fi
7886fi
c6b750e1 7887OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7888if test -n "$OBJDUMP"; then
c6b750e1
DJ
7889 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7890echo "${ECHO_T}$OBJDUMP" >&6
859789af 7891else
c6b750e1
DJ
7892 echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
859789af 7894fi
c6b750e1 7895
05cbd757
PB
7896 fi
7897 test -n "$ac_cv_prog_OBJDUMP" && break
7898done
7899
7900if test -z "$ac_cv_prog_OBJDUMP" ; then
7901 set dummy objdump
7902 if test $build = $host ; then
7903 OBJDUMP="$2"
859789af 7904 else
05cbd757 7905 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7906 fi
859789af
AC
7907fi
7908
a0da8069
NN
7909
7910
7911
7912
7913
7914
be01d343 7915# Target tools.
c6b750e1 7916
2429c060
PB
7917# Check whether --with-build-time-tools or --without-build-time-tools was given.
7918if test "${with_build_time_tools+set}" = set; then
7919 withval="$with_build_time_tools"
7920 case x"$withval" in
7921 x/*) ;;
7922 *)
7923 with_build_time_tools=
c6b750e1
DJ
7924 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7925echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7926 ;;
7927 esac
859789af 7928else
2429c060 7929 with_build_time_tools=
c6b750e1 7930fi;
859789af 7931
9a819804
AO
7932
7933
7934if test -n "$CC_FOR_TARGET"; then
7935 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7936elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7937 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7938fi
7939
7940if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7941 for ncn_progname in cc gcc; do
7942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7943set dummy ${ncn_progname}; ac_word=$2
7944echo "$as_me:$LINENO: checking for $ac_word" >&5
7945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7946if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949 if test -n "$CC_FOR_TARGET"; then
7950 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963done
7964done
7965
7966fi
7967fi
7968CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7969if test -n "$CC_FOR_TARGET"; then
7970 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7971echo "${ECHO_T}$CC_FOR_TARGET" >&6
7972else
7973 echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6
7975fi
7976
7977 done
7978fi
7979
7980if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7981 for ncn_progname in cc gcc; do
c6b750e1
DJ
7982 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7983echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7984 if test -x $with_build_time_tools/${ncn_progname}; then
7985 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
cac3d6c4 7988 break
2429c060 7989 else
c6b750e1
DJ
7990 echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6
cac3d6c4
CM
7992 fi
7993 done
55db4b87
PB
7994fi
7995
2429c060
PB
7996if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7997 for ncn_progname in cc gcc; do
7998 if test -n "$ncn_target_tool_prefix"; then
7999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8000set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8001echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8005else
8006 if test -n "$CC_FOR_TARGET"; then
8007 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8008else
c6b750e1
DJ
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020done
8021done
8022
55db4b87
PB
8023fi
8024fi
c6b750e1 8025CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8026if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8027 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8028echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8029else
c6b750e1
DJ
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
55db4b87
PB
8032fi
8033
2429c060
PB
8034 fi
8035 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8037set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8038echo "$as_me:$LINENO: checking for $ac_word" >&5
8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8040if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8042else
05cbd757
PB
8043 if test -n "$CC_FOR_TARGET"; then
8044 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8045else
c6b750e1
DJ
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057done
8058done
8059
55db4b87
PB
8060fi
8061fi
c6b750e1 8062CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8063if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8064 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8065echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8066else
c6b750e1
DJ
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
55db4b87 8069fi
c6b750e1 8070
2429c060
PB
8071 fi
8072 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8073 done
8074fi
c6b750e1 8075
05cbd757
PB
8076if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8077 set dummy cc gcc
8078 if test $build = $target ; then
8079 CC_FOR_TARGET="$2"
55db4b87 8080 else
05cbd757 8081 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8082 fi
d3f5afc4
MS
8083else
8084 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8085fi
8086
9a819804
AO
8087
8088
8089if test -n "$CXX_FOR_TARGET"; then
8090 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8091elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8092 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8093fi
8094
8095if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8096 for ncn_progname in c++ g++ cxx gxx; do
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098set dummy ${ncn_progname}; ac_word=$2
8099echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104 if test -n "$CXX_FOR_TARGET"; then
8105 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119done
8120
8121fi
8122fi
8123CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8124if test -n "$CXX_FOR_TARGET"; then
8125 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8126echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8127else
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130fi
8131
8132 done
8133fi
8134
8135if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8136 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8137 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8138echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8139 if test -x $with_build_time_tools/${ncn_progname}; then
8140 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8141 echo "$as_me:$LINENO: result: yes" >&5
8142echo "${ECHO_T}yes" >&6
2429c060
PB
8143 break
8144 else
c6b750e1
DJ
8145 echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6
2429c060
PB
8147 fi
8148 done
8149fi
8150
8151if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8152 for ncn_progname in c++ g++ cxx gxx; do
8153 if test -n "$ncn_target_tool_prefix"; then
8154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8155set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8156echo "$as_me:$LINENO: checking for $ac_word" >&5
8157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8158if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8160else
8161 if test -n "$CXX_FOR_TARGET"; then
8162 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8163else
c6b750e1
DJ
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8174 fi
8175done
8176done
8177
55db4b87
PB
8178fi
8179fi
c6b750e1 8180CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8181if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8182 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8183echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8184else
c6b750e1
DJ
8185 echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6
55db4b87
PB
8187fi
8188
2429c060
PB
8189 fi
8190 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8192set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8193echo "$as_me:$LINENO: checking for $ac_word" >&5
8194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8195if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8197else
05cbd757
PB
8198 if test -n "$CXX_FOR_TARGET"; then
8199 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8200else
c6b750e1
DJ
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212done
8213done
8214
55db4b87
PB
8215fi
8216fi
c6b750e1 8217CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8218if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8219 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8220echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8221else
c6b750e1
DJ
8222 echo "$as_me:$LINENO: result: no" >&5
8223echo "${ECHO_T}no" >&6
55db4b87 8224fi
c6b750e1 8225
2429c060
PB
8226 fi
8227 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8228 done
8229fi
c6b750e1 8230
05cbd757
PB
8231if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8232 set dummy c++ g++ cxx gxx
8233 if test $build = $target ; then
8234 CXX_FOR_TARGET="$2"
55db4b87 8235 else
05cbd757 8236 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8237 fi
d3f5afc4
MS
8238else
8239 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8240fi
8241
9a819804
AO
8242
8243
8244if test -n "$GCC_FOR_TARGET"; then
8245 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8246elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8247 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8248fi
8249
8250if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8251 for ncn_progname in gcc; do
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253set dummy ${ncn_progname}; ac_word=$2
8254echo "$as_me:$LINENO: checking for $ac_word" >&5
8255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8256if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259 if test -n "$GCC_FOR_TARGET"; then
8260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8269 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273done
8274done
8275
8276fi
8277fi
8278GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8279if test -n "$GCC_FOR_TARGET"; then
8280 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8281echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8282else
8283 echo "$as_me:$LINENO: result: no" >&5
8284echo "${ECHO_T}no" >&6
8285fi
8286
8287 done
8288fi
8289
8290if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8291 for ncn_progname in gcc; do
c6b750e1
DJ
8292 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8293echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8294 if test -x $with_build_time_tools/${ncn_progname}; then
8295 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8296 echo "$as_me:$LINENO: result: yes" >&5
8297echo "${ECHO_T}yes" >&6
2429c060
PB
8298 break
8299 else
c6b750e1
DJ
8300 echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6
2429c060
PB
8302 fi
8303 done
8304fi
8305
8306if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8307 for ncn_progname in gcc; do
8308 if test -n "$ncn_target_tool_prefix"; then
8309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8310set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8311echo "$as_me:$LINENO: checking for $ac_word" >&5
8312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8313if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8315else
2429c060
PB
8316 if test -n "$GCC_FOR_TARGET"; then
8317 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8318else
c6b750e1
DJ
8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8326 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330done
8331done
8332
55db4b87
PB
8333fi
8334fi
c6b750e1 8335GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8336if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8337 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8338echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8339else
c6b750e1
DJ
8340 echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
55db4b87
PB
8342fi
8343
2429c060
PB
8344 fi
8345 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8347set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8348echo "$as_me:$LINENO: checking for $ac_word" >&5
8349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8350if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8352else
05cbd757
PB
8353 if test -n "$GCC_FOR_TARGET"; then
8354 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8355else
c6b750e1
DJ
8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357for as_dir in $PATH
8358do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8363 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367done
8368done
8369
55db4b87
PB
8370fi
8371fi
c6b750e1 8372GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8373if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8374 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8375echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8376else
c6b750e1
DJ
8377 echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6
55db4b87 8379fi
c6b750e1 8380
2429c060
PB
8381 fi
8382 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8383 done
8384fi
c6b750e1 8385
05cbd757
PB
8386if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8387 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8388else
8389 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8390fi
8391
9a819804
AO
8392
8393
8394if test -n "$GCJ_FOR_TARGET"; then
8395 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8396elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8397 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8398fi
8399
8400if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8401 for ncn_progname in gcj; do
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_progname}; ac_word=$2
8404echo "$as_me:$LINENO: checking for $ac_word" >&5
8405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8406if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409 if test -n "$GCJ_FOR_TARGET"; then
8410 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8411else
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423done
8424done
8425
8426fi
8427fi
8428GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8429if test -n "$GCJ_FOR_TARGET"; then
8430 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8431echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8432else
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
8435fi
8436
8437 done
8438fi
8439
8440if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8441 for ncn_progname in gcj; do
c6b750e1
DJ
8442 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8443echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8444 if test -x $with_build_time_tools/${ncn_progname}; then
8445 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
2429c060
PB
8448 break
8449 else
c6b750e1
DJ
8450 echo "$as_me:$LINENO: result: no" >&5
8451echo "${ECHO_T}no" >&6
2429c060
PB
8452 fi
8453 done
8454fi
8455
8456if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8457 for ncn_progname in gcj; do
8458 if test -n "$ncn_target_tool_prefix"; then
8459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8461echo "$as_me:$LINENO: checking for $ac_word" >&5
8462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8463if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8465else
8466 if test -n "$GCJ_FOR_TARGET"; then
8467 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8468else
c6b750e1
DJ
8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470for as_dir in $PATH
8471do
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8479 fi
8480done
8481done
8482
55db4b87
PB
8483fi
8484fi
9a819804
AO
8485GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8486if test -n "$GCJ_FOR_TARGET"; then
8487 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8488echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8489else
8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
8492fi
8493
8494 fi
8495 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8497set dummy ${ncn_progname}; ac_word=$2
8498echo "$as_me:$LINENO: checking for $ac_word" >&5
8499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8500if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 if test -n "$GCJ_FOR_TARGET"; then
8504 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8516 fi
8517done
8518done
8519
8520fi
8521fi
8522GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8523if test -n "$GCJ_FOR_TARGET"; then
8524 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8525echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8526else
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
8529fi
8530
8531 fi
8532 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8533 done
8534fi
8535
8536if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8537 set dummy gcj
8538 if test $build = $target ; then
8539 GCJ_FOR_TARGET="$2"
8540 else
8541 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8542 fi
d3f5afc4
MS
8543else
8544 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8545fi
8546
8547
8548
8549if test -n "$GFORTRAN_FOR_TARGET"; then
8550 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8551elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8552 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8553fi
8554
9a819804
AO
8555if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8556 for ncn_progname in gfortran; do
8557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8558set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8559echo "$as_me:$LINENO: checking for $ac_word" >&5
8560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8561if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8562 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8563else
9a819804
AO
8564 if test -n "$GFORTRAN_FOR_TARGET"; then
8565 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8566else
c6b750e1
DJ
8567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8574 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578done
8579done
8580
55db4b87
PB
8581fi
8582fi
9a819804
AO
8583GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8584if test -n "$GFORTRAN_FOR_TARGET"; then
8585 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8586echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8587else
c6b750e1
DJ
8588 echo "$as_me:$LINENO: result: no" >&5
8589echo "${ECHO_T}no" >&6
55db4b87 8590fi
c6b750e1 8591
2429c060
PB
8592 done
8593fi
c6b750e1 8594
9a819804 8595if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8596 for ncn_progname in gfortran; do
c6b750e1
DJ
8597 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8598echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8599 if test -x $with_build_time_tools/${ncn_progname}; then
8600 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
2429c060
PB
8603 break
8604 else
c6b750e1
DJ
8605 echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
2429c060
PB
8607 fi
8608 done
8609fi
8610
8611if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8612 for ncn_progname in gfortran; do
8613 if test -n "$ncn_target_tool_prefix"; then
8614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8615set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8616echo "$as_me:$LINENO: checking for $ac_word" >&5
8617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8618if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8620else
8621 if test -n "$GFORTRAN_FOR_TARGET"; then
8622 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8623else
c6b750e1
DJ
8624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635done
8636done
8637
55db4b87
PB
8638fi
8639fi
c6b750e1 8640GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8641if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8642 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8643echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8644else
c6b750e1
DJ
8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
55db4b87
PB
8647fi
8648
2429c060
PB
8649 fi
8650 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8652set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8653echo "$as_me:$LINENO: checking for $ac_word" >&5
8654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8655if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8657else
05cbd757 8658 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8659 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8660else
8661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8668 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 break 2
8671 fi
8672done
8673done
8674
55db4b87
PB
8675fi
8676fi
c6b750e1 8677GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8678if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8679 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8680echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8681else
c6b750e1
DJ
8682 echo "$as_me:$LINENO: result: no" >&5
8683echo "${ECHO_T}no" >&6
55db4b87 8684fi
c6b750e1 8685
2429c060
PB
8686 fi
8687 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8688 done
8689fi
c6b750e1 8690
05cbd757
PB
8691if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8692 set dummy gfortran
8693 if test $build = $target ; then
8694 GFORTRAN_FOR_TARGET="$2"
55db4b87 8695 else
05cbd757 8696 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8697 fi
d3f5afc4
MS
8698else
8699 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8700fi
8701
2429c060
PB
8702
8703
2429c060
PB
8704cat > conftest.c << \EOF
8705#ifdef __GNUC__
8706 gcc_yay;
8707#endif
8708EOF
8709if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8710 have_gcc_for_target=yes
859789af 8711else
2429c060
PB
8712 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8713 have_gcc_for_target=no
859789af 8714fi
2429c060
PB
8715rm conftest.c
8716
8717
8718
859789af 8719
2429c060
PB
8720if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8721 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8722 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8723echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8724 if test -x $with_build_time_tools/ar; then
8725 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8726 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8727 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8728echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8729 else
c6b750e1
DJ
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
3a35eeb3 8732 fi
2429c060
PB
8733 elif test $build != $host && test $have_gcc_for_target = yes; then
8734 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8735 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8736 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8737 fi
2429c060 8738fi
c6b750e1 8739if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8740 # Extract the first word of "ar", so it can be a program name with args.
8741set dummy ar; ac_word=$2
c6b750e1
DJ
8742echo "$as_me:$LINENO: checking for $ac_word" >&5
8743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8744if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8746else
c6b750e1
DJ
8747 case $AR_FOR_TARGET in
8748 [\\/]* | ?:[\\/]*)
2429c060
PB
8749 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8750 ;;
2429c060 8751 *)
c6b750e1
DJ
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $gcc_cv_tool_dirs
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763done
8764done
8765
2429c060
PB
8766 ;;
8767esac
859789af 8768fi
c6b750e1
DJ
8769AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8770
2429c060 8771if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8772 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8773echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8774else
c6b750e1
DJ
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
859789af 8777fi
05cbd757 8778
2429c060
PB
8779fi
8780if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8781
8782
8783if test -n "$AR_FOR_TARGET"; then
8784 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8785elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8786 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8787fi
8788
8789if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8790 for ncn_progname in ar; do
8791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8792set dummy ${ncn_progname}; ac_word=$2
8793echo "$as_me:$LINENO: checking for $ac_word" >&5
8794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8795if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798 if test -n "$AR_FOR_TARGET"; then
8799 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8800else
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8811 fi
8812done
8813done
8814
8815fi
8816fi
8817AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8818if test -n "$AR_FOR_TARGET"; then
8819 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8820echo "${ECHO_T}$AR_FOR_TARGET" >&6
8821else
8822 echo "$as_me:$LINENO: result: no" >&5
8823echo "${ECHO_T}no" >&6
8824fi
8825
8826 done
8827fi
8828
8829if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8830 for ncn_progname in ar; do
c6b750e1
DJ
8831 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8832echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8833 if test -x $with_build_time_tools/${ncn_progname}; then
8834 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8835 echo "$as_me:$LINENO: result: yes" >&5
8836echo "${ECHO_T}yes" >&6
2429c060
PB
8837 break
8838 else
c6b750e1
DJ
8839 echo "$as_me:$LINENO: result: no" >&5
8840echo "${ECHO_T}no" >&6
2429c060
PB
8841 fi
8842 done
859789af
AC
8843fi
8844
2429c060
PB
8845if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8846 for ncn_progname in ar; do
8847 if test -n "$ncn_target_tool_prefix"; then
8848 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8849set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8850echo "$as_me:$LINENO: checking for $ac_word" >&5
8851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8852if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8854else
2429c060
PB
8855 if test -n "$AR_FOR_TARGET"; then
8856 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8857else
c6b750e1
DJ
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8868 fi
8869done
8870done
8871
7e0f7140
GK
8872fi
8873fi
c6b750e1 8874AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8875if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8876 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8877echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8878else
c6b750e1
DJ
8879 echo "$as_me:$LINENO: result: no" >&5
8880echo "${ECHO_T}no" >&6
7e0f7140
GK
8881fi
8882
2429c060
PB
8883 fi
8884 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8886set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8887echo "$as_me:$LINENO: checking for $ac_word" >&5
8888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8889if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8891else
2429c060
PB
8892 if test -n "$AR_FOR_TARGET"; then
8893 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8894else
c6b750e1
DJ
8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906done
8907done
8908
7e0f7140
GK
8909fi
8910fi
c6b750e1 8911AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8912if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8913 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8914echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8915else
c6b750e1
DJ
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
7e0f7140 8918fi
c6b750e1 8919
2429c060
PB
8920 fi
8921 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8922 done
8923fi
c6b750e1 8924
2429c060
PB
8925if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8926 set dummy ar
7e0f7140 8927 if test $build = $target ; then
2429c060 8928 AR_FOR_TARGET="$2"
7e0f7140 8929 else
2429c060 8930 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8931 fi
d3f5afc4
MS
8932else
8933 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8934fi
8935
3a35eeb3
PB
8936else
8937 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8938fi
8939
8940
8941
8942
8943if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8944 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8945 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8946echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8947 if test -x $with_build_time_tools/as; then
8948 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8949 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8950 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8951echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8952 else
c6b750e1
DJ
8953 echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6
3a35eeb3 8955 fi
2429c060
PB
8956 elif test $build != $host && test $have_gcc_for_target = yes; then
8957 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8958 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8959 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8960 fi
8961fi
c6b750e1 8962if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8963 # Extract the first word of "as", so it can be a program name with args.
8964set dummy as; ac_word=$2
c6b750e1
DJ
8965echo "$as_me:$LINENO: checking for $ac_word" >&5
8966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8967if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8969else
c6b750e1
DJ
8970 case $AS_FOR_TARGET in
8971 [\\/]* | ?:[\\/]*)
2429c060
PB
8972 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8973 ;;
2429c060 8974 *)
c6b750e1
DJ
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $gcc_cv_tool_dirs
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986done
8987done
8988
2429c060
PB
8989 ;;
8990esac
8991fi
c6b750e1
DJ
8992AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8993
2429c060 8994if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8995 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8996echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8997else
c6b750e1
DJ
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
2429c060
PB
9000fi
9001
9002fi
9003if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9004
9005
9006if test -n "$AS_FOR_TARGET"; then
9007 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9008elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9009 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9010fi
9011
9012if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9013 for ncn_progname in as; do
9014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9015set dummy ${ncn_progname}; ac_word=$2
9016echo "$as_me:$LINENO: checking for $ac_word" >&5
9017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9018if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021 if test -n "$AS_FOR_TARGET"; then
9022 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9023else
9024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025for as_dir in $PATH
9026do
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 break 2
9034 fi
9035done
9036done
9037
9038fi
9039fi
9040AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9041if test -n "$AS_FOR_TARGET"; then
9042 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9043echo "${ECHO_T}$AS_FOR_TARGET" >&6
9044else
9045 echo "$as_me:$LINENO: result: no" >&5
9046echo "${ECHO_T}no" >&6
9047fi
9048
9049 done
9050fi
9051
9052if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9053 for ncn_progname in as; do
c6b750e1
DJ
9054 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9055echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9056 if test -x $with_build_time_tools/${ncn_progname}; then
9057 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
2429c060
PB
9060 break
9061 else
c6b750e1
DJ
9062 echo "$as_me:$LINENO: result: no" >&5
9063echo "${ECHO_T}no" >&6
2429c060
PB
9064 fi
9065 done
9066fi
9067
9068if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9069 for ncn_progname in as; do
9070 if test -n "$ncn_target_tool_prefix"; then
9071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9073echo "$as_me:$LINENO: checking for $ac_word" >&5
9074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9075if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9077else
9078 if test -n "$AS_FOR_TARGET"; then
9079 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9080else
c6b750e1
DJ
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093done
9094
2429c060
PB
9095fi
9096fi
c6b750e1 9097AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9098if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9099 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9100echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9101else
c6b750e1
DJ
9102 echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
2429c060
PB
9104fi
9105
9106 fi
9107 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9110echo "$as_me:$LINENO: checking for $ac_word" >&5
9111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9112if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9114else
9115 if test -n "$AS_FOR_TARGET"; then
9116 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9117else
c6b750e1
DJ
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130done
9131
2429c060
PB
9132fi
9133fi
c6b750e1 9134AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9135if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9136 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9137echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9138else
c6b750e1
DJ
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
2429c060 9141fi
c6b750e1 9142
2429c060
PB
9143 fi
9144 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9145 done
9146fi
c6b750e1 9147
2429c060
PB
9148if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9149 set dummy as
9150 if test $build = $target ; then
9151 AS_FOR_TARGET="$2"
9152 else
9153 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9154 fi
d3f5afc4
MS
9155else
9156 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9157fi
9158
3a35eeb3
PB
9159else
9160 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9161fi
9162
9163
9164
9165
9166if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9167 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9168 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9169echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9170 if test -x $with_build_time_tools/dlltool; then
9171 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9172 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9173 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9174echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9175 else
c6b750e1
DJ
9176 echo "$as_me:$LINENO: result: no" >&5
9177echo "${ECHO_T}no" >&6
3a35eeb3 9178 fi
2429c060
PB
9179 elif test $build != $host && test $have_gcc_for_target = yes; then
9180 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9181 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9182 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9183 fi
9184fi
c6b750e1 9185if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9186 # Extract the first word of "dlltool", so it can be a program name with args.
9187set dummy dlltool; ac_word=$2
c6b750e1
DJ
9188echo "$as_me:$LINENO: checking for $ac_word" >&5
9189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9190if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9192else
c6b750e1
DJ
9193 case $DLLTOOL_FOR_TARGET in
9194 [\\/]* | ?:[\\/]*)
2429c060
PB
9195 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9196 ;;
2429c060 9197 *)
c6b750e1
DJ
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199for as_dir in $gcc_cv_tool_dirs
9200do
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 break 2
9208 fi
9209done
9210done
9211
2429c060
PB
9212 ;;
9213esac
9214fi
c6b750e1
DJ
9215DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9216
2429c060 9217if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9218 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9219echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9220else
c6b750e1
DJ
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
2429c060
PB
9223fi
9224
9225fi
9226if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9227
9228
9229if test -n "$DLLTOOL_FOR_TARGET"; then
9230 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9231elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9232 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9233fi
9234
9235if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9236 for ncn_progname in dlltool; do
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238set dummy ${ncn_progname}; ac_word=$2
9239echo "$as_me:$LINENO: checking for $ac_word" >&5
9240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9241if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243else
9244 if test -n "$DLLTOOL_FOR_TARGET"; then
9245 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9246else
9247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9254 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258done
9259done
9260
9261fi
9262fi
9263DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9264if test -n "$DLLTOOL_FOR_TARGET"; then
9265 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9266echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9267else
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
9270fi
9271
9272 done
9273fi
9274
9275if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9276 for ncn_progname in dlltool; do
c6b750e1
DJ
9277 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9278echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9279 if test -x $with_build_time_tools/${ncn_progname}; then
9280 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
2429c060
PB
9283 break
9284 else
c6b750e1
DJ
9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
2429c060
PB
9287 fi
9288 done
9289fi
9290
9291if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9292 for ncn_progname in dlltool; do
9293 if test -n "$ncn_target_tool_prefix"; then
9294 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9295set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9296echo "$as_me:$LINENO: checking for $ac_word" >&5
9297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9298if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9300else
9301 if test -n "$DLLTOOL_FOR_TARGET"; then
9302 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9303else
c6b750e1
DJ
9304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307 IFS=$as_save_IFS
9308 test -z "$as_dir" && as_dir=.
9309 for ac_exec_ext in '' $ac_executable_extensions; do
9310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9311 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9313 break 2
9314 fi
9315done
9316done
9317
2429c060
PB
9318fi
9319fi
c6b750e1 9320DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9321if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9322 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9323echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9324else
c6b750e1
DJ
9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
2429c060
PB
9327fi
9328
9329 fi
9330 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9332set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9333echo "$as_me:$LINENO: checking for $ac_word" >&5
9334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9335if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9337else
9338 if test -n "$DLLTOOL_FOR_TARGET"; then
9339 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9340else
c6b750e1
DJ
9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342for as_dir in $PATH
9343do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352done
9353done
9354
2429c060
PB
9355fi
9356fi
c6b750e1 9357DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9358if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9359 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9360echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9361else
c6b750e1
DJ
9362 echo "$as_me:$LINENO: result: no" >&5
9363echo "${ECHO_T}no" >&6
2429c060 9364fi
c6b750e1 9365
2429c060
PB
9366 fi
9367 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9368 done
9369fi
c6b750e1 9370
2429c060
PB
9371if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9372 set dummy dlltool
9373 if test $build = $target ; then
9374 DLLTOOL_FOR_TARGET="$2"
9375 else
9376 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9377 fi
d3f5afc4
MS
9378else
9379 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9380fi
9381
3a35eeb3
PB
9382else
9383 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9384fi
9385
9386
9387
9388
9389if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9390 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9391 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9392echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9393 if test -x $with_build_time_tools/ld; then
9394 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9395 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9396 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9397echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9398 else
c6b750e1
DJ
9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
3a35eeb3 9401 fi
2429c060
PB
9402 elif test $build != $host && test $have_gcc_for_target = yes; then
9403 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9404 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9405 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9406 fi
9407fi
c6b750e1 9408if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9409 # Extract the first word of "ld", so it can be a program name with args.
9410set dummy ld; ac_word=$2
c6b750e1
DJ
9411echo "$as_me:$LINENO: checking for $ac_word" >&5
9412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9413if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9415else
c6b750e1
DJ
9416 case $LD_FOR_TARGET in
9417 [\\/]* | ?:[\\/]*)
2429c060
PB
9418 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9419 ;;
2429c060 9420 *)
c6b750e1
DJ
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422for as_dir in $gcc_cv_tool_dirs
9423do
9424 IFS=$as_save_IFS
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
9427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9428 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 break 2
9431 fi
9432done
9433done
9434
2429c060
PB
9435 ;;
9436esac
9437fi
c6b750e1
DJ
9438LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9439
2429c060 9440if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9441 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9442echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9443else
c6b750e1
DJ
9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
2429c060
PB
9446fi
9447
9448fi
9449if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9450
9451
9452if test -n "$LD_FOR_TARGET"; then
9453 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9454elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9455 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9456fi
9457
9458if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9459 for ncn_progname in ld; do
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461set dummy ${ncn_progname}; ac_word=$2
9462echo "$as_me:$LINENO: checking for $ac_word" >&5
9463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9464if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466else
9467 if test -n "$LD_FOR_TARGET"; then
9468 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9469else
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9480 fi
9481done
9482done
9483
9484fi
9485fi
9486LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9487if test -n "$LD_FOR_TARGET"; then
9488 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9489echo "${ECHO_T}$LD_FOR_TARGET" >&6
9490else
9491 echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
9493fi
9494
9495 done
9496fi
9497
9498if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9499 for ncn_progname in ld; do
c6b750e1
DJ
9500 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9501echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9502 if test -x $with_build_time_tools/${ncn_progname}; then
9503 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
2429c060
PB
9506 break
9507 else
c6b750e1
DJ
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
2429c060
PB
9510 fi
9511 done
9512fi
9513
9514if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9515 for ncn_progname in ld; do
9516 if test -n "$ncn_target_tool_prefix"; then
9517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9518set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9519echo "$as_me:$LINENO: checking for $ac_word" >&5
9520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9521if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9523else
9524 if test -n "$LD_FOR_TARGET"; then
9525 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9526else
c6b750e1
DJ
9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9537 fi
9538done
9539done
9540
2429c060
PB
9541fi
9542fi
c6b750e1 9543LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9544if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9545 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9546echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9547else
c6b750e1
DJ
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
2429c060
PB
9550fi
9551
9552 fi
9553 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9555set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9556echo "$as_me:$LINENO: checking for $ac_word" >&5
9557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9558if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9560else
9561 if test -n "$LD_FOR_TARGET"; then
9562 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9563else
c6b750e1
DJ
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9574 fi
9575done
9576done
9577
2429c060
PB
9578fi
9579fi
c6b750e1 9580LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9581if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9582 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9583echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9584else
c6b750e1
DJ
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
2429c060 9587fi
c6b750e1 9588
2429c060
PB
9589 fi
9590 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9591 done
9592fi
c6b750e1 9593
2429c060
PB
9594if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9595 set dummy ld
9596 if test $build = $target ; then
9597 LD_FOR_TARGET="$2"
9598 else
9599 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9600 fi
d3f5afc4
MS
9601else
9602 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9603fi
9604
3a35eeb3
PB
9605else
9606 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9607fi
9608
9609
9610
9611
9612if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9613 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9614 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9615echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9616 if test -x $with_build_time_tools/lipo; then
9617 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9618 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9619 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9620echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9621 else
c6b750e1
DJ
9622 echo "$as_me:$LINENO: result: no" >&5
9623echo "${ECHO_T}no" >&6
3a35eeb3 9624 fi
2429c060
PB
9625 elif test $build != $host && test $have_gcc_for_target = yes; then
9626 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9627 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9628 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9629 fi
9630fi
9a819804
AO
9631if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9632 # Extract the first word of "lipo", so it can be a program name with args.
9633set dummy lipo; ac_word=$2
9634echo "$as_me:$LINENO: checking for $ac_word" >&5
9635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9636if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639 case $LIPO_FOR_TARGET in
9640 [\\/]* | ?:[\\/]*)
9641 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9642 ;;
9643 *)
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $gcc_cv_tool_dirs
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656done
9657
9658 ;;
9659esac
9660fi
9661LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9662
9663if test -n "$LIPO_FOR_TARGET"; then
9664 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9665echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9666else
9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
9669fi
9670
9671fi
9672if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9673
9674
9675if test -n "$LIPO_FOR_TARGET"; then
9676 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9677elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9678 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9679fi
9680
9681if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9682 for ncn_progname in lipo; do
9683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9684set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9685echo "$as_me:$LINENO: checking for $ac_word" >&5
9686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9687if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9688 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9689else
9a819804
AO
9690 if test -n "$LIPO_FOR_TARGET"; then
9691 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9692else
9693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694for as_dir in $PATH
c6b750e1
DJ
9695do
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9700 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704done
9705done
9706
2429c060 9707fi
9a819804
AO
9708fi
9709LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9710if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9711 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9712echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9713else
c6b750e1
DJ
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
2429c060
PB
9716fi
9717
9a819804 9718 done
2429c060 9719fi
9a819804
AO
9720
9721if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9722 for ncn_progname in lipo; do
c6b750e1
DJ
9723 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9724echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9725 if test -x $with_build_time_tools/${ncn_progname}; then
9726 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9727 echo "$as_me:$LINENO: result: yes" >&5
9728echo "${ECHO_T}yes" >&6
2429c060
PB
9729 break
9730 else
c6b750e1
DJ
9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
2429c060
PB
9733 fi
9734 done
9735fi
9736
9737if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9738 for ncn_progname in lipo; do
9739 if test -n "$ncn_target_tool_prefix"; then
9740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9741set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9742echo "$as_me:$LINENO: checking for $ac_word" >&5
9743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9744if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9746else
9747 if test -n "$LIPO_FOR_TARGET"; then
9748 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9749else
c6b750e1
DJ
9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
9756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9757 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761done
9762done
9763
2429c060
PB
9764fi
9765fi
c6b750e1 9766LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9767if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9768 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9769echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9770else
c6b750e1
DJ
9771 echo "$as_me:$LINENO: result: no" >&5
9772echo "${ECHO_T}no" >&6
2429c060
PB
9773fi
9774
9775 fi
9776 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9778set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9779echo "$as_me:$LINENO: checking for $ac_word" >&5
9780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9781if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9783else
9784 if test -n "$LIPO_FOR_TARGET"; then
9785 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9786else
c6b750e1
DJ
9787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788for as_dir in $PATH
9789do
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9794 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9797 fi
9798done
9799done
9800
2429c060
PB
9801fi
9802fi
c6b750e1 9803LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9804if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9805 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9806echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9807else
c6b750e1
DJ
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
2429c060 9810fi
c6b750e1 9811
2429c060
PB
9812 fi
9813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9814 done
9815fi
c6b750e1 9816
2429c060
PB
9817if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9818 set dummy lipo
9819 if test $build = $target ; then
9820 LIPO_FOR_TARGET="$2"
9821 else
9822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9823 fi
d3f5afc4
MS
9824else
9825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9826fi
9827
3a35eeb3
PB
9828else
9829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9830fi
9831
9832
9833
9834
9835if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9836 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9837 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9838echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9839 if test -x $with_build_time_tools/nm; then
9840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9842 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9843echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9844 else
c6b750e1
DJ
9845 echo "$as_me:$LINENO: result: no" >&5
9846echo "${ECHO_T}no" >&6
3a35eeb3 9847 fi
2429c060
PB
9848 elif test $build != $host && test $have_gcc_for_target = yes; then
9849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9852 fi
9853fi
c6b750e1 9854if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9855 # Extract the first word of "nm", so it can be a program name with args.
9856set dummy nm; ac_word=$2
c6b750e1
DJ
9857echo "$as_me:$LINENO: checking for $ac_word" >&5
9858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9859if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9861else
c6b750e1
DJ
9862 case $NM_FOR_TARGET in
9863 [\\/]* | ?:[\\/]*)
2429c060
PB
9864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9865 ;;
2429c060 9866 *)
c6b750e1
DJ
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868for as_dir in $gcc_cv_tool_dirs
9869do
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9877 fi
9878done
9879done
9880
2429c060
PB
9881 ;;
9882esac
9883fi
c6b750e1
DJ
9884NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9885
2429c060 9886if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9887 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9888echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9889else
c6b750e1
DJ
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
2429c060
PB
9892fi
9893
9894fi
9895if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9896
9897
9898if test -n "$NM_FOR_TARGET"; then
9899 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9900elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9901 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9902fi
9903
9904if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9905 for ncn_progname in nm; do
9906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9907set dummy ${ncn_progname}; ac_word=$2
9908echo "$as_me:$LINENO: checking for $ac_word" >&5
9909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9910if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912else
9913 if test -n "$NM_FOR_TARGET"; then
9914 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9915else
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9923 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927done
9928done
9929
9930fi
9931fi
9932NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9933if test -n "$NM_FOR_TARGET"; then
9934 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9935echo "${ECHO_T}$NM_FOR_TARGET" >&6
9936else
9937 echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
9939fi
9940
9941 done
9942fi
9943
9944if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9945 for ncn_progname in nm; do
c6b750e1
DJ
9946 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9947echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9948 if test -x $with_build_time_tools/${ncn_progname}; then
9949 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9950 echo "$as_me:$LINENO: result: yes" >&5
9951echo "${ECHO_T}yes" >&6
2429c060
PB
9952 break
9953 else
c6b750e1
DJ
9954 echo "$as_me:$LINENO: result: no" >&5
9955echo "${ECHO_T}no" >&6
2429c060
PB
9956 fi
9957 done
9958fi
9959
9960if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9961 for ncn_progname in nm; do
9962 if test -n "$ncn_target_tool_prefix"; then
9963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9964set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9965echo "$as_me:$LINENO: checking for $ac_word" >&5
9966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9967if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9969else
55db4b87
PB
9970 if test -n "$NM_FOR_TARGET"; then
9971 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9972else
c6b750e1
DJ
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984done
9985done
9986
859789af
AC
9987fi
9988fi
c6b750e1 9989NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9990if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9991 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9992echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9993else
c6b750e1
DJ
9994 echo "$as_me:$LINENO: result: no" >&5
9995echo "${ECHO_T}no" >&6
859789af
AC
9996fi
9997
2429c060
PB
9998 fi
9999 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10001set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10002echo "$as_me:$LINENO: checking for $ac_word" >&5
10003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10004if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10006else
05cbd757
PB
10007 if test -n "$NM_FOR_TARGET"; then
10008 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10009else
c6b750e1
DJ
10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10017 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021done
10022done
10023
859789af
AC
10024fi
10025fi
c6b750e1 10026NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10027if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10028 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10029echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10030else
c6b750e1
DJ
10031 echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6
859789af 10033fi
c6b750e1 10034
2429c060
PB
10035 fi
10036 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10037 done
10038fi
c6b750e1 10039
05cbd757
PB
10040if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10041 set dummy nm
10042 if test $build = $target ; then
10043 NM_FOR_TARGET="$2"
859789af 10044 else
05cbd757 10045 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10046 fi
d3f5afc4
MS
10047else
10048 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10049fi
10050
3a35eeb3
PB
10051else
10052 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10053fi
10054
10055
10056
10057
10058if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10059 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10060 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10061echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10062 if test -x $with_build_time_tools/objdump; then
10063 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10064 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10065 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10066echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10067 else
c6b750e1
DJ
10068 echo "$as_me:$LINENO: result: no" >&5
10069echo "${ECHO_T}no" >&6
3a35eeb3 10070 fi
2429c060
PB
10071 elif test $build != $host && test $have_gcc_for_target = yes; then
10072 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10073 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10074 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10075 fi
10076fi
c6b750e1 10077if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10078 # Extract the first word of "objdump", so it can be a program name with args.
10079set dummy objdump; ac_word=$2
c6b750e1
DJ
10080echo "$as_me:$LINENO: checking for $ac_word" >&5
10081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10082if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10084else
c6b750e1
DJ
10085 case $OBJDUMP_FOR_TARGET in
10086 [\\/]* | ?:[\\/]*)
2429c060
PB
10087 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10088 ;;
2429c060 10089 *)
c6b750e1
DJ
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $gcc_cv_tool_dirs
10092do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10100 fi
10101done
10102done
10103
2429c060
PB
10104 ;;
10105esac
10106fi
c6b750e1
DJ
10107OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10108
2429c060 10109if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10110 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10111echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10112else
c6b750e1
DJ
10113 echo "$as_me:$LINENO: result: no" >&5
10114echo "${ECHO_T}no" >&6
2429c060
PB
10115fi
10116
10117fi
10118if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10119
10120
10121if test -n "$OBJDUMP_FOR_TARGET"; then
10122 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10123elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10124 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10125fi
10126
10127if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10128 for ncn_progname in objdump; do
10129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10130set dummy ${ncn_progname}; ac_word=$2
10131echo "$as_me:$LINENO: checking for $ac_word" >&5
10132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10133if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 if test -n "$OBJDUMP_FOR_TARGET"; then
10137 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10138else
10139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10146 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10149 fi
10150done
10151done
10152
10153fi
10154fi
10155OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10156if test -n "$OBJDUMP_FOR_TARGET"; then
10157 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10158echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10159else
10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
10162fi
10163
10164 done
10165fi
10166
10167if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10168 for ncn_progname in objdump; do
c6b750e1
DJ
10169 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10170echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10171 if test -x $with_build_time_tools/${ncn_progname}; then
10172 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10173 echo "$as_me:$LINENO: result: yes" >&5
10174echo "${ECHO_T}yes" >&6
2429c060
PB
10175 break
10176 else
c6b750e1
DJ
10177 echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
2429c060
PB
10179 fi
10180 done
10181fi
10182
10183if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10184 for ncn_progname in objdump; do
10185 if test -n "$ncn_target_tool_prefix"; then
10186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10187set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10188echo "$as_me:$LINENO: checking for $ac_word" >&5
10189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10190if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10192else
10193 if test -n "$OBJDUMP_FOR_TARGET"; then
10194 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10195else
c6b750e1
DJ
10196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207done
10208done
10209
5ae72758
DJ
10210fi
10211fi
c6b750e1 10212OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10213if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10214 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10215echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10216else
c6b750e1
DJ
10217 echo "$as_me:$LINENO: result: no" >&5
10218echo "${ECHO_T}no" >&6
5ae72758
DJ
10219fi
10220
2429c060
PB
10221 fi
10222 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10224set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10225echo "$as_me:$LINENO: checking for $ac_word" >&5
10226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10227if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10229else
10230 if test -n "$OBJDUMP_FOR_TARGET"; then
10231 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10232else
c6b750e1
DJ
10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244done
10245done
10246
5ae72758
DJ
10247fi
10248fi
c6b750e1 10249OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10250if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10251 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10252echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10253else
c6b750e1
DJ
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
5ae72758 10256fi
c6b750e1 10257
2429c060
PB
10258 fi
10259 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10260 done
10261fi
c6b750e1 10262
5ae72758
DJ
10263if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10264 set dummy objdump
10265 if test $build = $target ; then
10266 OBJDUMP_FOR_TARGET="$2"
10267 else
10268 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10269 fi
d3f5afc4
MS
10270else
10271 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10272fi
10273
3a35eeb3
PB
10274else
10275 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10276fi
10277
10278
10279
10280
10281if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10282 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10283 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10284echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10285 if test -x $with_build_time_tools/ranlib; then
10286 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10287 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10288 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10289echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10290 else
c6b750e1
DJ
10291 echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6
3a35eeb3 10293 fi
2429c060
PB
10294 elif test $build != $host && test $have_gcc_for_target = yes; then
10295 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10296 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10297 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10298 fi
10299fi
c6b750e1 10300if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10301 # Extract the first word of "ranlib", so it can be a program name with args.
10302set dummy ranlib; ac_word=$2
c6b750e1
DJ
10303echo "$as_me:$LINENO: checking for $ac_word" >&5
10304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10305if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10307else
c6b750e1
DJ
10308 case $RANLIB_FOR_TARGET in
10309 [\\/]* | ?:[\\/]*)
2429c060
PB
10310 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10311 ;;
2429c060 10312 *)
c6b750e1
DJ
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $gcc_cv_tool_dirs
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10320 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10323 fi
10324done
10325done
10326
2429c060
PB
10327 ;;
10328esac
10329fi
c6b750e1
DJ
10330RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10331
2429c060 10332if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10333 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10334echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10335else
c6b750e1
DJ
10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
2429c060
PB
10338fi
10339
10340fi
10341if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10342
10343
10344if test -n "$RANLIB_FOR_TARGET"; then
10345 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10346elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10347 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10348fi
10349
10350if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10351 for ncn_progname in ranlib; do
10352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10353set dummy ${ncn_progname}; ac_word=$2
10354echo "$as_me:$LINENO: checking for $ac_word" >&5
10355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10356if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359 if test -n "$RANLIB_FOR_TARGET"; then
10360 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10361else
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373done
10374done
10375
10376fi
10377fi
10378RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10379if test -n "$RANLIB_FOR_TARGET"; then
10380 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10381echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10382else
10383 echo "$as_me:$LINENO: result: no" >&5
10384echo "${ECHO_T}no" >&6
10385fi
10386
10387 done
10388fi
10389
10390if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10391 for ncn_progname in ranlib; do
c6b750e1
DJ
10392 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10393echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10394 if test -x $with_build_time_tools/${ncn_progname}; then
10395 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10396 echo "$as_me:$LINENO: result: yes" >&5
10397echo "${ECHO_T}yes" >&6
2429c060
PB
10398 break
10399 else
c6b750e1
DJ
10400 echo "$as_me:$LINENO: result: no" >&5
10401echo "${ECHO_T}no" >&6
2429c060
PB
10402 fi
10403 done
10404fi
10405
10406if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10407 for ncn_progname in ranlib; do
10408 if test -n "$ncn_target_tool_prefix"; then
10409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10411echo "$as_me:$LINENO: checking for $ac_word" >&5
10412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10413if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10415else
55db4b87
PB
10416 if test -n "$RANLIB_FOR_TARGET"; then
10417 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10418else
c6b750e1
DJ
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10429 fi
10430done
10431done
10432
859789af
AC
10433fi
10434fi
c6b750e1 10435RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10436if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10437 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10438echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10439else
c6b750e1
DJ
10440 echo "$as_me:$LINENO: result: no" >&5
10441echo "${ECHO_T}no" >&6
859789af
AC
10442fi
10443
2429c060
PB
10444 fi
10445 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10447set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10448echo "$as_me:$LINENO: checking for $ac_word" >&5
10449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10450if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10452else
05cbd757
PB
10453 if test -n "$RANLIB_FOR_TARGET"; then
10454 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10455else
c6b750e1
DJ
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10466 fi
10467done
10468done
10469
859789af
AC
10470fi
10471fi
c6b750e1 10472RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10473if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10474 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10475echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10476else
c6b750e1
DJ
10477 echo "$as_me:$LINENO: result: no" >&5
10478echo "${ECHO_T}no" >&6
859789af 10479fi
c6b750e1 10480
2429c060
PB
10481 fi
10482 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10483 done
10484fi
c6b750e1 10485
2429c060
PB
10486if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10487 set dummy ranlib
10488 if test $build = $target ; then
10489 RANLIB_FOR_TARGET="$2"
10490 else
10491 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10492 fi
d3f5afc4
MS
10493else
10494 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10495fi
05cbd757 10496
3a35eeb3
PB
10497else
10498 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10499fi
10500
2429c060
PB
10501
10502
10503
10504if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10505 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10506 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10507echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10508 if test -x $with_build_time_tools/strip; then
10509 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10510 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10511 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10512echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10513 else
c6b750e1
DJ
10514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
3a35eeb3 10516 fi
2429c060
PB
10517 elif test $build != $host && test $have_gcc_for_target = yes; then
10518 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10519 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10520 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10521 fi
10522fi
c6b750e1 10523if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10524 # Extract the first word of "strip", so it can be a program name with args.
10525set dummy strip; ac_word=$2
c6b750e1
DJ
10526echo "$as_me:$LINENO: checking for $ac_word" >&5
10527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10528if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10530else
c6b750e1
DJ
10531 case $STRIP_FOR_TARGET in
10532 [\\/]* | ?:[\\/]*)
2429c060
PB
10533 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10534 ;;
2429c060 10535 *)
c6b750e1
DJ
10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $gcc_cv_tool_dirs
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10543 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548done
10549
2429c060
PB
10550 ;;
10551esac
10552fi
c6b750e1
DJ
10553STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10554
2429c060 10555if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10556 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10557echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10558else
c6b750e1
DJ
10559 echo "$as_me:$LINENO: result: no" >&5
10560echo "${ECHO_T}no" >&6
2429c060
PB
10561fi
10562
10563fi
10564if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10565
10566
10567if test -n "$STRIP_FOR_TARGET"; then
10568 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10569elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10570 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10571fi
10572
10573if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10574 for ncn_progname in strip; do
10575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10576set dummy ${ncn_progname}; ac_word=$2
10577echo "$as_me:$LINENO: checking for $ac_word" >&5
10578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10579if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582 if test -n "$STRIP_FOR_TARGET"; then
10583 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10584else
10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10592 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596done
10597done
10598
10599fi
10600fi
10601STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10602if test -n "$STRIP_FOR_TARGET"; then
10603 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10604echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10605else
10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
10608fi
10609
10610 done
10611fi
10612
10613if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10614 for ncn_progname in strip; do
c6b750e1
DJ
10615 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10616echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10617 if test -x $with_build_time_tools/${ncn_progname}; then
10618 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10619 echo "$as_me:$LINENO: result: yes" >&5
10620echo "${ECHO_T}yes" >&6
2429c060
PB
10621 break
10622 else
c6b750e1
DJ
10623 echo "$as_me:$LINENO: result: no" >&5
10624echo "${ECHO_T}no" >&6
2429c060
PB
10625 fi
10626 done
10627fi
10628
10629if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10630 for ncn_progname in strip; do
10631 if test -n "$ncn_target_tool_prefix"; then
10632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10633set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10634echo "$as_me:$LINENO: checking for $ac_word" >&5
10635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10636if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10638else
10639 if test -n "$STRIP_FOR_TARGET"; then
10640 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10641else
10642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643for as_dir in $PATH
10644do
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10652 fi
10653done
10654done
10655
7e0f7140
GK
10656fi
10657fi
c6b750e1 10658STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10659if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10660 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10661echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10662else
c6b750e1
DJ
10663 echo "$as_me:$LINENO: result: no" >&5
10664echo "${ECHO_T}no" >&6
7e0f7140
GK
10665fi
10666
2429c060
PB
10667 fi
10668 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10670set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10671echo "$as_me:$LINENO: checking for $ac_word" >&5
10672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10673if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10675else
10676 if test -n "$STRIP_FOR_TARGET"; then
10677 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10678else
c6b750e1
DJ
10679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $PATH
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10686 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690done
10691done
10692
7e0f7140
GK
10693fi
10694fi
c6b750e1 10695STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10696if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10697 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10698echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10699else
c6b750e1
DJ
10700 echo "$as_me:$LINENO: result: no" >&5
10701echo "${ECHO_T}no" >&6
7e0f7140 10702fi
c6b750e1 10703
2429c060
PB
10704 fi
10705 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10706 done
10707fi
c6b750e1 10708
7e0f7140
GK
10709if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10710 set dummy strip
10711 if test $build = $target ; then
10712 STRIP_FOR_TARGET="$2"
10713 else
10714 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10715 fi
d3f5afc4
MS
10716else
10717 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10718fi
10719
3a35eeb3
PB
10720else
10721 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10722fi
10723
10724
10725
10726
10727if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10728 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10729 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10730echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10731 if test -x $with_build_time_tools/windres; then
10732 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10733 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10734 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10735echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10736 else
c6b750e1
DJ
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
3a35eeb3 10739 fi
2429c060
PB
10740 elif test $build != $host && test $have_gcc_for_target = yes; then
10741 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10742 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10743 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10744 fi
10745fi
c6b750e1 10746if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10747 # Extract the first word of "windres", so it can be a program name with args.
10748set dummy windres; ac_word=$2
c6b750e1
DJ
10749echo "$as_me:$LINENO: checking for $ac_word" >&5
10750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10751if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10753else
c6b750e1
DJ
10754 case $WINDRES_FOR_TARGET in
10755 [\\/]* | ?:[\\/]*)
2429c060
PB
10756 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10757 ;;
2429c060 10758 *)
c6b750e1
DJ
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $gcc_cv_tool_dirs
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771done
10772
2429c060
PB
10773 ;;
10774esac
10775fi
c6b750e1
DJ
10776WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10777
2429c060 10778if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10779 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10780echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10781else
c6b750e1
DJ
10782 echo "$as_me:$LINENO: result: no" >&5
10783echo "${ECHO_T}no" >&6
2429c060
PB
10784fi
10785
10786fi
10787if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10788
10789
10790if test -n "$WINDRES_FOR_TARGET"; then
10791 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10792elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10793 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10794fi
10795
10796if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10797 for ncn_progname in windres; do
10798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10799set dummy ${ncn_progname}; ac_word=$2
10800echo "$as_me:$LINENO: checking for $ac_word" >&5
10801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10802if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 if test -n "$WINDRES_FOR_TARGET"; then
10806 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10807else
10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10815 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10818 fi
10819done
10820done
10821
10822fi
10823fi
10824WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10825if test -n "$WINDRES_FOR_TARGET"; then
10826 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10827echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10828else
10829 echo "$as_me:$LINENO: result: no" >&5
10830echo "${ECHO_T}no" >&6
10831fi
10832
10833 done
10834fi
10835
10836if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10837 for ncn_progname in windres; do
c6b750e1
DJ
10838 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10839echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10840 if test -x $with_build_time_tools/${ncn_progname}; then
10841 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10842 echo "$as_me:$LINENO: result: yes" >&5
10843echo "${ECHO_T}yes" >&6
2429c060
PB
10844 break
10845 else
c6b750e1
DJ
10846 echo "$as_me:$LINENO: result: no" >&5
10847echo "${ECHO_T}no" >&6
2429c060
PB
10848 fi
10849 done
10850fi
10851
10852if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10853 for ncn_progname in windres; do
10854 if test -n "$ncn_target_tool_prefix"; then
10855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10856set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10857echo "$as_me:$LINENO: checking for $ac_word" >&5
10858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10859if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10861else
55db4b87
PB
10862 if test -n "$WINDRES_FOR_TARGET"; then
10863 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10864else
c6b750e1
DJ
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10872 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10875 fi
10876done
10877done
10878
859789af
AC
10879fi
10880fi
c6b750e1 10881WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10882if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10883 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10884echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10885else
c6b750e1
DJ
10886 echo "$as_me:$LINENO: result: no" >&5
10887echo "${ECHO_T}no" >&6
859789af
AC
10888fi
10889
2429c060
PB
10890 fi
10891 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10893set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10894echo "$as_me:$LINENO: checking for $ac_word" >&5
10895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10896if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10898else
05cbd757
PB
10899 if test -n "$WINDRES_FOR_TARGET"; then
10900 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10901else
c6b750e1
DJ
10902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903for as_dir in $PATH
10904do
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10909 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913done
10914done
10915
859789af
AC
10916fi
10917fi
c6b750e1 10918WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10919if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10920 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10921echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10922else
c6b750e1
DJ
10923 echo "$as_me:$LINENO: result: no" >&5
10924echo "${ECHO_T}no" >&6
859789af 10925fi
c6b750e1 10926
2429c060
PB
10927 fi
10928 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10929 done
10930fi
c6b750e1 10931
05cbd757
PB
10932if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10933 set dummy windres
10934 if test $build = $target ; then
10935 WINDRES_FOR_TARGET="$2"
859789af 10936 else
05cbd757 10937 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10938 fi
d3f5afc4
MS
10939else
10940 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10941fi
10942
3a35eeb3
PB
10943else
10944 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10945fi
10946
852e5f18 10947
0c24b341
NC
10948
10949
10950if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10951 if test -n "$with_build_time_tools"; then
10952 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10953echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10954 if test -x $with_build_time_tools/windmc; then
10955 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10956 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10957 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10958echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10959 else
10960 echo "$as_me:$LINENO: result: no" >&5
10961echo "${ECHO_T}no" >&6
10962 fi
10963 elif test $build != $host && test $have_gcc_for_target = yes; then
10964 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10965 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10966 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10967 fi
10968fi
10969if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10970 # Extract the first word of "windmc", so it can be a program name with args.
10971set dummy windmc; ac_word=$2
10972echo "$as_me:$LINENO: checking for $ac_word" >&5
10973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10974if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 case $WINDMC_FOR_TARGET in
10978 [\\/]* | ?:[\\/]*)
10979 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10980 ;;
10981 *)
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $gcc_cv_tool_dirs
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10992 fi
10993done
10994done
10995
10996 ;;
10997esac
10998fi
10999WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11000
11001if test -n "$WINDMC_FOR_TARGET"; then
11002 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11003echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11004else
11005 echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6
11007fi
11008
11009fi
11010if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11011
11012
11013if test -n "$WINDMC_FOR_TARGET"; then
11014 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11015elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11016 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11017fi
11018
11019if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11020 for ncn_progname in windmc; do
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022set dummy ${ncn_progname}; ac_word=$2
11023echo "$as_me:$LINENO: checking for $ac_word" >&5
11024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11025if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028 if test -n "$WINDMC_FOR_TARGET"; then
11029 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11030else
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043done
11044
11045fi
11046fi
11047WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11048if test -n "$WINDMC_FOR_TARGET"; then
11049 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11050echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11051else
11052 echo "$as_me:$LINENO: result: no" >&5
11053echo "${ECHO_T}no" >&6
11054fi
11055
11056 done
11057fi
11058
11059if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11060 for ncn_progname in windmc; do
11061 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11062echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11063 if test -x $with_build_time_tools/${ncn_progname}; then
11064 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11065 echo "$as_me:$LINENO: result: yes" >&5
11066echo "${ECHO_T}yes" >&6
11067 break
11068 else
11069 echo "$as_me:$LINENO: result: no" >&5
11070echo "${ECHO_T}no" >&6
11071 fi
11072 done
11073fi
11074
11075if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11076 for ncn_progname in windmc; do
11077 if test -n "$ncn_target_tool_prefix"; then
11078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11079set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11080echo "$as_me:$LINENO: checking for $ac_word" >&5
11081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11082if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084else
11085 if test -n "$WINDMC_FOR_TARGET"; then
11086 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11098 fi
11099done
11100done
11101
11102fi
11103fi
11104WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11105if test -n "$WINDMC_FOR_TARGET"; then
11106 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11107echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11108else
11109 echo "$as_me:$LINENO: result: no" >&5
11110echo "${ECHO_T}no" >&6
11111fi
11112
11113 fi
11114 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11116set dummy ${ncn_progname}; ac_word=$2
11117echo "$as_me:$LINENO: checking for $ac_word" >&5
11118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11119if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122 if test -n "$WINDMC_FOR_TARGET"; then
11123 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136done
11137done
11138
11139fi
11140fi
11141WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11142if test -n "$WINDMC_FOR_TARGET"; then
11143 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11144echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11145else
11146 echo "$as_me:$LINENO: result: no" >&5
11147echo "${ECHO_T}no" >&6
11148fi
11149
11150 fi
11151 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11152 done
11153fi
11154
11155if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11156 set dummy windmc
11157 if test $build = $target ; then
11158 WINDMC_FOR_TARGET="$2"
11159 else
11160 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11161 fi
11162else
11163 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11164fi
11165
11166else
11167 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11168fi
11169
11170
be01d343
PB
11171RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11172
c6b750e1
DJ
11173echo "$as_me:$LINENO: checking where to find the target ar" >&5
11174echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11175if test "x${build}" != "x${host}" ; then
2429c060
PB
11176 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11177 # We already found the complete path
b8025f34
AS
11178 ac_dir=`dirname $AR_FOR_TARGET`
11179 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11180echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11181 else
11182 # Canadian cross, just use what we found
c6b750e1
DJ
11183 echo "$as_me:$LINENO: result: pre-installed" >&5
11184echo "${ECHO_T}pre-installed" >&6
2429c060 11185 fi
be01d343
PB
11186else
11187 ok=yes
11188 case " ${configdirs} " in
11189 *" binutils "*) ;;
11190 *) ok=no ;;
11191 esac
c6b750e1 11192
be01d343
PB
11193 if test $ok = yes; then
11194 # An in-tree tool is available and we can use it
11195 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11196 echo "$as_me:$LINENO: result: just compiled" >&5
11197echo "${ECHO_T}just compiled" >&6
2429c060
PB
11198 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11199 # We already found the complete path
b8025f34
AS
11200 ac_dir=`dirname $AR_FOR_TARGET`
11201 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11202echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11203 elif test "x$target" = "x$host"; then
11204 # We can use an host tool
11205 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11206 echo "$as_me:$LINENO: result: host tool" >&5
11207echo "${ECHO_T}host tool" >&6
be01d343
PB
11208 else
11209 # We need a cross tool
c6b750e1
DJ
11210 echo "$as_me:$LINENO: result: pre-installed" >&5
11211echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11212 fi
11213fi
4b900473 11214
c6b750e1
DJ
11215echo "$as_me:$LINENO: checking where to find the target as" >&5
11216echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11217if test "x${build}" != "x${host}" ; then
2429c060
PB
11218 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11219 # We already found the complete path
b8025f34
AS
11220 ac_dir=`dirname $AS_FOR_TARGET`
11221 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11222echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11223 else
11224 # Canadian cross, just use what we found
c6b750e1
DJ
11225 echo "$as_me:$LINENO: result: pre-installed" >&5
11226echo "${ECHO_T}pre-installed" >&6
2429c060 11227 fi
be01d343
PB
11228else
11229 ok=yes
11230 case " ${configdirs} " in
11231 *" gas "*) ;;
11232 *) ok=no ;;
11233 esac
c6b750e1 11234
be01d343
PB
11235 if test $ok = yes; then
11236 # An in-tree tool is available and we can use it
11237 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11238 echo "$as_me:$LINENO: result: just compiled" >&5
11239echo "${ECHO_T}just compiled" >&6
2429c060
PB
11240 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11241 # We already found the complete path
b8025f34
AS
11242 ac_dir=`dirname $AS_FOR_TARGET`
11243 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11244echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11245 elif test "x$target" = "x$host"; then
11246 # We can use an host tool
11247 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11248 echo "$as_me:$LINENO: result: host tool" >&5
11249echo "${ECHO_T}host tool" >&6
be01d343
PB
11250 else
11251 # We need a cross tool
c6b750e1
DJ
11252 echo "$as_me:$LINENO: result: pre-installed" >&5
11253echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11254 fi
11255fi
4b900473 11256
c6b750e1
DJ
11257echo "$as_me:$LINENO: checking where to find the target cc" >&5
11258echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11259if test "x${build}" != "x${host}" ; then
2429c060
PB
11260 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11261 # We already found the complete path
b8025f34
AS
11262 ac_dir=`dirname $CC_FOR_TARGET`
11263 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11264echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11265 else
11266 # Canadian cross, just use what we found
c6b750e1
DJ
11267 echo "$as_me:$LINENO: result: pre-installed" >&5
11268echo "${ECHO_T}pre-installed" >&6
2429c060 11269 fi
be01d343
PB
11270else
11271 ok=yes
11272 case " ${configdirs} " in
11273 *" gcc "*) ;;
11274 *) ok=no ;;
11275 esac
c6b750e1 11276
be01d343
PB
11277 if test $ok = yes; then
11278 # An in-tree tool is available and we can use it
11279 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11280 echo "$as_me:$LINENO: result: just compiled" >&5
11281echo "${ECHO_T}just compiled" >&6
2429c060
PB
11282 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11283 # We already found the complete path
b8025f34
AS
11284 ac_dir=`dirname $CC_FOR_TARGET`
11285 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11286echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11287 elif test "x$target" = "x$host"; then
11288 # We can use an host tool
11289 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11290 echo "$as_me:$LINENO: result: host tool" >&5
11291echo "${ECHO_T}host tool" >&6
be01d343
PB
11292 else
11293 # We need a cross tool
c6b750e1
DJ
11294 echo "$as_me:$LINENO: result: pre-installed" >&5
11295echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11296 fi
11297fi
4b900473 11298
c6b750e1
DJ
11299echo "$as_me:$LINENO: checking where to find the target c++" >&5
11300echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11301if test "x${build}" != "x${host}" ; then
2429c060
PB
11302 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11303 # We already found the complete path
b8025f34
AS
11304 ac_dir=`dirname $CXX_FOR_TARGET`
11305 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11306echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11307 else
11308 # Canadian cross, just use what we found
c6b750e1
DJ
11309 echo "$as_me:$LINENO: result: pre-installed" >&5
11310echo "${ECHO_T}pre-installed" >&6
2429c060 11311 fi
be01d343
PB
11312else
11313 ok=yes
11314 case " ${configdirs} " in
11315 *" gcc "*) ;;
11316 *) ok=no ;;
11317 esac
11318 case ,${enable_languages}, in
11319 *,c++,*) ;;
11320 *) ok=no ;;
11321 esac
11322 if test $ok = yes; then
11323 # An in-tree tool is available and we can use it
11324 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
11325 echo "$as_me:$LINENO: result: just compiled" >&5
11326echo "${ECHO_T}just compiled" >&6
2429c060
PB
11327 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11328 # We already found the complete path
b8025f34
AS
11329 ac_dir=`dirname $CXX_FOR_TARGET`
11330 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11331echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11332 elif test "x$target" = "x$host"; then
11333 # We can use an host tool
11334 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11335 echo "$as_me:$LINENO: result: host tool" >&5
11336echo "${ECHO_T}host tool" >&6
be01d343
PB
11337 else
11338 # We need a cross tool
c6b750e1
DJ
11339 echo "$as_me:$LINENO: result: pre-installed" >&5
11340echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11341 fi
11342fi
4b900473 11343
c6b750e1
DJ
11344echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11345echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11346if test "x${build}" != "x${host}" ; then
2429c060
PB
11347 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11348 # We already found the complete path
b8025f34
AS
11349 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11350 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11351echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11352 else
11353 # Canadian cross, just use what we found
c6b750e1
DJ
11354 echo "$as_me:$LINENO: result: pre-installed" >&5
11355echo "${ECHO_T}pre-installed" >&6
2429c060 11356 fi
be01d343
PB
11357else
11358 ok=yes
11359 case " ${configdirs} " in
11360 *" gcc "*) ;;
11361 *) ok=no ;;
11362 esac
11363 case ,${enable_languages}, in
11364 *,c++,*) ;;
11365 *) ok=no ;;
11366 esac
11367 if test $ok = yes; then
11368 # An in-tree tool is available and we can use it
11369 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
11370 echo "$as_me:$LINENO: result: just compiled" >&5
11371echo "${ECHO_T}just compiled" >&6
2429c060
PB
11372 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11373 # We already found the complete path
b8025f34
AS
11374 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11375 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11376echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11377 elif test "x$target" = "x$host"; then
11378 # We can use an host tool
11379 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11380 echo "$as_me:$LINENO: result: host tool" >&5
11381echo "${ECHO_T}host tool" >&6
be01d343
PB
11382 else
11383 # We need a cross tool
c6b750e1
DJ
11384 echo "$as_me:$LINENO: result: pre-installed" >&5
11385echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11386 fi
11387fi
4b900473 11388
c6b750e1
DJ
11389echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11390echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11391if test "x${build}" != "x${host}" ; then
2429c060
PB
11392 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11393 # We already found the complete path
b8025f34
AS
11394 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11395 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11396echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11397 else
11398 # Canadian cross, just use what we found
c6b750e1
DJ
11399 echo "$as_me:$LINENO: result: pre-installed" >&5
11400echo "${ECHO_T}pre-installed" >&6
2429c060 11401 fi
be01d343
PB
11402else
11403 ok=yes
11404 case " ${configdirs} " in
11405 *" binutils "*) ;;
11406 *) ok=no ;;
11407 esac
c6b750e1 11408
be01d343
PB
11409 if test $ok = yes; then
11410 # An in-tree tool is available and we can use it
11411 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11412 echo "$as_me:$LINENO: result: just compiled" >&5
11413echo "${ECHO_T}just compiled" >&6
2429c060
PB
11414 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11415 # We already found the complete path
b8025f34
AS
11416 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11417 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11418echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11419 elif test "x$target" = "x$host"; then
11420 # We can use an host tool
11421 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11422 echo "$as_me:$LINENO: result: host tool" >&5
11423echo "${ECHO_T}host tool" >&6
be01d343
PB
11424 else
11425 # We need a cross tool
c6b750e1
DJ
11426 echo "$as_me:$LINENO: result: pre-installed" >&5
11427echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11428 fi
11429fi
4b900473 11430
c6b750e1
DJ
11431echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11432echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11433if test "x${build}" != "x${host}" ; then
2429c060
PB
11434 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11435 # We already found the complete path
b8025f34
AS
11436 ac_dir=`dirname $GCC_FOR_TARGET`
11437 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11438echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11439 else
11440 # Canadian cross, just use what we found
c6b750e1
DJ
11441 echo "$as_me:$LINENO: result: pre-installed" >&5
11442echo "${ECHO_T}pre-installed" >&6
2429c060 11443 fi
be01d343
PB
11444else
11445 ok=yes
11446 case " ${configdirs} " in
11447 *" gcc "*) ;;
11448 *) ok=no ;;
11449 esac
c6b750e1 11450
be01d343
PB
11451 if test $ok = yes; then
11452 # An in-tree tool is available and we can use it
11453 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11454 echo "$as_me:$LINENO: result: just compiled" >&5
11455echo "${ECHO_T}just compiled" >&6
2429c060
PB
11456 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11457 # We already found the complete path
b8025f34
AS
11458 ac_dir=`dirname $GCC_FOR_TARGET`
11459 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11460echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11461 elif test "x$target" = "x$host"; then
11462 # We can use an host tool
11463 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11464 echo "$as_me:$LINENO: result: host tool" >&5
11465echo "${ECHO_T}host tool" >&6
be01d343
PB
11466 else
11467 # We need a cross tool
c6b750e1
DJ
11468 echo "$as_me:$LINENO: result: pre-installed" >&5
11469echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11470 fi
11471fi
4b900473 11472
c6b750e1
DJ
11473echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11474echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11475if test "x${build}" != "x${host}" ; then
2429c060
PB
11476 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11477 # We already found the complete path
b8025f34
AS
11478 ac_dir=`dirname $GCJ_FOR_TARGET`
11479 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11480echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11481 else
11482 # Canadian cross, just use what we found
c6b750e1
DJ
11483 echo "$as_me:$LINENO: result: pre-installed" >&5
11484echo "${ECHO_T}pre-installed" >&6
2429c060 11485 fi
be01d343
PB
11486else
11487 ok=yes
11488 case " ${configdirs} " in
11489 *" gcc "*) ;;
11490 *) ok=no ;;
11491 esac
11492 case ,${enable_languages}, in
11493 *,java,*) ;;
11494 *) ok=no ;;
11495 esac
11496 if test $ok = yes; then
11497 # An in-tree tool is available and we can use it
11498 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11499 echo "$as_me:$LINENO: result: just compiled" >&5
11500echo "${ECHO_T}just compiled" >&6
2429c060
PB
11501 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11502 # We already found the complete path
b8025f34
AS
11503 ac_dir=`dirname $GCJ_FOR_TARGET`
11504 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11505echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11506 elif test "x$target" = "x$host"; then
11507 # We can use an host tool
11508 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11509 echo "$as_me:$LINENO: result: host tool" >&5
11510echo "${ECHO_T}host tool" >&6
be01d343
PB
11511 else
11512 # We need a cross tool
c6b750e1
DJ
11513 echo "$as_me:$LINENO: result: pre-installed" >&5
11514echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11515 fi
11516fi
4b900473 11517
c6b750e1
DJ
11518echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11519echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11520if test "x${build}" != "x${host}" ; then
2429c060
PB
11521 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11522 # We already found the complete path
b8025f34
AS
11523 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11524 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11525echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11526 else
11527 # Canadian cross, just use what we found
c6b750e1
DJ
11528 echo "$as_me:$LINENO: result: pre-installed" >&5
11529echo "${ECHO_T}pre-installed" >&6
2429c060 11530 fi
be01d343
PB
11531else
11532 ok=yes
11533 case " ${configdirs} " in
11534 *" gcc "*) ;;
11535 *) ok=no ;;
11536 esac
11537 case ,${enable_languages}, in
11538 *,fortran,*) ;;
11539 *) ok=no ;;
11540 esac
11541 if test $ok = yes; then
11542 # An in-tree tool is available and we can use it
11543 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11544 echo "$as_me:$LINENO: result: just compiled" >&5
11545echo "${ECHO_T}just compiled" >&6
2429c060
PB
11546 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11547 # We already found the complete path
b8025f34
AS
11548 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11549 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11550echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11551 elif test "x$target" = "x$host"; then
11552 # We can use an host tool
11553 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11554 echo "$as_me:$LINENO: result: host tool" >&5
11555echo "${ECHO_T}host tool" >&6
be01d343
PB
11556 else
11557 # We need a cross tool
c6b750e1
DJ
11558 echo "$as_me:$LINENO: result: pre-installed" >&5
11559echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11560 fi
11561fi
4b900473 11562
c6b750e1
DJ
11563echo "$as_me:$LINENO: checking where to find the target ld" >&5
11564echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11565if test "x${build}" != "x${host}" ; then
2429c060
PB
11566 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11567 # We already found the complete path
b8025f34
AS
11568 ac_dir=`dirname $LD_FOR_TARGET`
11569 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11570echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11571 else
11572 # Canadian cross, just use what we found
c6b750e1
DJ
11573 echo "$as_me:$LINENO: result: pre-installed" >&5
11574echo "${ECHO_T}pre-installed" >&6
2429c060 11575 fi
be01d343
PB
11576else
11577 ok=yes
11578 case " ${configdirs} " in
11579 *" ld "*) ;;
11580 *) ok=no ;;
11581 esac
c6b750e1 11582
be01d343
PB
11583 if test $ok = yes; then
11584 # An in-tree tool is available and we can use it
11585 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11586 echo "$as_me:$LINENO: result: just compiled" >&5
11587echo "${ECHO_T}just compiled" >&6
2429c060
PB
11588 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11589 # We already found the complete path
b8025f34
AS
11590 ac_dir=`dirname $LD_FOR_TARGET`
11591 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11592echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11593 elif test "x$target" = "x$host"; then
11594 # We can use an host tool
11595 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11596 echo "$as_me:$LINENO: result: host tool" >&5
11597echo "${ECHO_T}host tool" >&6
be01d343
PB
11598 else
11599 # We need a cross tool
c6b750e1
DJ
11600 echo "$as_me:$LINENO: result: pre-installed" >&5
11601echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11602 fi
11603fi
4b900473 11604
c6b750e1
DJ
11605echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11606echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11607if test "x${build}" != "x${host}" ; then
2429c060
PB
11608 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11609 # We already found the complete path
b8025f34
AS
11610 ac_dir=`dirname $LIPO_FOR_TARGET`
11611 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11612echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11613 else
11614 # Canadian cross, just use what we found
c6b750e1
DJ
11615 echo "$as_me:$LINENO: result: pre-installed" >&5
11616echo "${ECHO_T}pre-installed" >&6
2429c060 11617 fi
be01d343 11618else
2429c060
PB
11619 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11620 # We already found the complete path
b8025f34
AS
11621 ac_dir=`dirname $LIPO_FOR_TARGET`
11622 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11623echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11624 elif test "x$target" = "x$host"; then
be01d343
PB
11625 # We can use an host tool
11626 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11627 echo "$as_me:$LINENO: result: host tool" >&5
11628echo "${ECHO_T}host tool" >&6
be01d343
PB
11629 else
11630 # We need a cross tool
c6b750e1
DJ
11631 echo "$as_me:$LINENO: result: pre-installed" >&5
11632echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11633 fi
11634fi
4b900473 11635
c6b750e1
DJ
11636echo "$as_me:$LINENO: checking where to find the target nm" >&5
11637echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11638if test "x${build}" != "x${host}" ; then
2429c060
PB
11639 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11640 # We already found the complete path
b8025f34
AS
11641 ac_dir=`dirname $NM_FOR_TARGET`
11642 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11643echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11644 else
11645 # Canadian cross, just use what we found
c6b750e1
DJ
11646 echo "$as_me:$LINENO: result: pre-installed" >&5
11647echo "${ECHO_T}pre-installed" >&6
2429c060 11648 fi
be01d343
PB
11649else
11650 ok=yes
11651 case " ${configdirs} " in
11652 *" binutils "*) ;;
11653 *) ok=no ;;
11654 esac
c6b750e1 11655
be01d343
PB
11656 if test $ok = yes; then
11657 # An in-tree tool is available and we can use it
11658 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11659 echo "$as_me:$LINENO: result: just compiled" >&5
11660echo "${ECHO_T}just compiled" >&6
2429c060
PB
11661 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11662 # We already found the complete path
b8025f34
AS
11663 ac_dir=`dirname $NM_FOR_TARGET`
11664 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11665echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11666 elif test "x$target" = "x$host"; then
11667 # We can use an host tool
11668 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11669 echo "$as_me:$LINENO: result: host tool" >&5
11670echo "${ECHO_T}host tool" >&6
be01d343
PB
11671 else
11672 # We need a cross tool
c6b750e1
DJ
11673 echo "$as_me:$LINENO: result: pre-installed" >&5
11674echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11675 fi
11676fi
4b900473 11677
c6b750e1
DJ
11678echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11679echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11680if test "x${build}" != "x${host}" ; then
2429c060
PB
11681 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11682 # We already found the complete path
b8025f34
AS
11683 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11684 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11685echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11686 else
11687 # Canadian cross, just use what we found
c6b750e1
DJ
11688 echo "$as_me:$LINENO: result: pre-installed" >&5
11689echo "${ECHO_T}pre-installed" >&6
2429c060 11690 fi
be01d343
PB
11691else
11692 ok=yes
11693 case " ${configdirs} " in
11694 *" binutils "*) ;;
11695 *) ok=no ;;
11696 esac
c6b750e1 11697
be01d343
PB
11698 if test $ok = yes; then
11699 # An in-tree tool is available and we can use it
11700 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11701 echo "$as_me:$LINENO: result: just compiled" >&5
11702echo "${ECHO_T}just compiled" >&6
2429c060
PB
11703 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11704 # We already found the complete path
b8025f34
AS
11705 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11706 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11707echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11708 elif test "x$target" = "x$host"; then
11709 # We can use an host tool
11710 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11711 echo "$as_me:$LINENO: result: host tool" >&5
11712echo "${ECHO_T}host tool" >&6
be01d343
PB
11713 else
11714 # We need a cross tool
c6b750e1
DJ
11715 echo "$as_me:$LINENO: result: pre-installed" >&5
11716echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11717 fi
11718fi
4b900473 11719
c6b750e1
DJ
11720echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11721echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11722if test "x${build}" != "x${host}" ; then
2429c060
PB
11723 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11724 # We already found the complete path
b8025f34
AS
11725 ac_dir=`dirname $RANLIB_FOR_TARGET`
11726 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11727echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11728 else
11729 # Canadian cross, just use what we found
c6b750e1
DJ
11730 echo "$as_me:$LINENO: result: pre-installed" >&5
11731echo "${ECHO_T}pre-installed" >&6
2429c060 11732 fi
be01d343
PB
11733else
11734 ok=yes
11735 case " ${configdirs} " in
11736 *" binutils "*) ;;
11737 *) ok=no ;;
11738 esac
c6b750e1 11739
be01d343
PB
11740 if test $ok = yes; then
11741 # An in-tree tool is available and we can use it
11742 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11743 echo "$as_me:$LINENO: result: just compiled" >&5
11744echo "${ECHO_T}just compiled" >&6
2429c060
PB
11745 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11746 # We already found the complete path
b8025f34
AS
11747 ac_dir=`dirname $RANLIB_FOR_TARGET`
11748 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11749echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11750 elif test "x$target" = "x$host"; then
11751 # We can use an host tool
11752 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11753 echo "$as_me:$LINENO: result: host tool" >&5
11754echo "${ECHO_T}host tool" >&6
be01d343
PB
11755 else
11756 # We need a cross tool
c6b750e1
DJ
11757 echo "$as_me:$LINENO: result: pre-installed" >&5
11758echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11759 fi
11760fi
4b900473 11761
c6b750e1
DJ
11762echo "$as_me:$LINENO: checking where to find the target strip" >&5
11763echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11764if test "x${build}" != "x${host}" ; then
2429c060
PB
11765 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11766 # We already found the complete path
b8025f34
AS
11767 ac_dir=`dirname $STRIP_FOR_TARGET`
11768 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11769echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11770 else
11771 # Canadian cross, just use what we found
c6b750e1
DJ
11772 echo "$as_me:$LINENO: result: pre-installed" >&5
11773echo "${ECHO_T}pre-installed" >&6
2429c060 11774 fi
be01d343
PB
11775else
11776 ok=yes
11777 case " ${configdirs} " in
11778 *" binutils "*) ;;
11779 *) ok=no ;;
11780 esac
c6b750e1 11781
be01d343
PB
11782 if test $ok = yes; then
11783 # An in-tree tool is available and we can use it
11784 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11785 echo "$as_me:$LINENO: result: just compiled" >&5
11786echo "${ECHO_T}just compiled" >&6
2429c060
PB
11787 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11788 # We already found the complete path
b8025f34
AS
11789 ac_dir=`dirname $STRIP_FOR_TARGET`
11790 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11791echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11792 elif test "x$target" = "x$host"; then
11793 # We can use an host tool
11794 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11795 echo "$as_me:$LINENO: result: host tool" >&5
11796echo "${ECHO_T}host tool" >&6
be01d343
PB
11797 else
11798 # We need a cross tool
c6b750e1
DJ
11799 echo "$as_me:$LINENO: result: pre-installed" >&5
11800echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11801 fi
11802fi
4b900473 11803
c6b750e1
DJ
11804echo "$as_me:$LINENO: checking where to find the target windres" >&5
11805echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11806if test "x${build}" != "x${host}" ; then
2429c060
PB
11807 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11808 # We already found the complete path
b8025f34
AS
11809 ac_dir=`dirname $WINDRES_FOR_TARGET`
11810 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11811echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11812 else
11813 # Canadian cross, just use what we found
c6b750e1
DJ
11814 echo "$as_me:$LINENO: result: pre-installed" >&5
11815echo "${ECHO_T}pre-installed" >&6
2429c060 11816 fi
be01d343
PB
11817else
11818 ok=yes
11819 case " ${configdirs} " in
11820 *" binutils "*) ;;
11821 *) ok=no ;;
11822 esac
c6b750e1 11823
be01d343
PB
11824 if test $ok = yes; then
11825 # An in-tree tool is available and we can use it
11826 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11827 echo "$as_me:$LINENO: result: just compiled" >&5
11828echo "${ECHO_T}just compiled" >&6
2429c060
PB
11829 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11830 # We already found the complete path
b8025f34
AS
11831 ac_dir=`dirname $WINDRES_FOR_TARGET`
11832 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11833echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11834 elif test "x$target" = "x$host"; then
11835 # We can use an host tool
11836 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11837 echo "$as_me:$LINENO: result: host tool" >&5
11838echo "${ECHO_T}host tool" >&6
be01d343
PB
11839 else
11840 # We need a cross tool
c6b750e1
DJ
11841 echo "$as_me:$LINENO: result: pre-installed" >&5
11842echo "${ECHO_T}pre-installed" >&6
be01d343 11843 fi
a0da8069 11844fi
54752a6b 11845
0c24b341
NC
11846echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11847echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11848if test "x${build}" != "x${host}" ; then
11849 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11850 # We already found the complete path
11851 ac_dir=`dirname $WINDMC_FOR_TARGET`
11852 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11853echo "${ECHO_T}pre-installed in $ac_dir" >&6
11854 else
11855 # Canadian cross, just use what we found
11856 echo "$as_me:$LINENO: result: pre-installed" >&5
11857echo "${ECHO_T}pre-installed" >&6
11858 fi
11859else
11860 ok=yes
11861 case " ${configdirs} " in
11862 *" binutils "*) ;;
11863 *) ok=no ;;
11864 esac
11865
11866 if test $ok = yes; then
11867 # An in-tree tool is available and we can use it
11868 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11869 echo "$as_me:$LINENO: result: just compiled" >&5
11870echo "${ECHO_T}just compiled" >&6
11871 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11872 # We already found the complete path
11873 ac_dir=`dirname $WINDMC_FOR_TARGET`
11874 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11875echo "${ECHO_T}pre-installed in $ac_dir" >&6
11876 elif test "x$target" = "x$host"; then
11877 # We can use an host tool
11878 WINDMC_FOR_TARGET='$(WINDMC)'
11879 echo "$as_me:$LINENO: result: host tool" >&5
11880echo "${ECHO_T}host tool" >&6
11881 else
11882 # We need a cross tool
11883 echo "$as_me:$LINENO: result: pre-installed" >&5
11884echo "${ECHO_T}pre-installed" >&6
11885 fi
11886fi
11887
54752a6b
NN
11888
11889
be01d343 11890
4b900473 11891
a0da8069
NN
11892# Certain tools may need extra flags.
11893AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11894RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11895NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11896
be01d343
PB
11897# When building target libraries, except in a Canadian cross, we use
11898# the same toolchain as the compiler we just built.
11899COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11900COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11901COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11902if test $host = $build; then
11903 case " $configdirs " in
11904 *" gcc "*)
11905 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11906 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11907 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11908 ;;
11909 esac
11910fi
11911
11912
11913
11914
11915
c6b750e1
DJ
11916echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11917echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11918# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11919if test "${enable_maintainer_mode+set}" = set; then
11920 enableval="$enable_maintainer_mode"
11921 USE_MAINTAINER_MODE=$enableval
11922else
11923 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11924fi;
11925echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11926echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11927
11928
11929if test "$USE_MAINTAINER_MODE" = yes; then
11930 MAINTAINER_MODE_TRUE=
11931 MAINTAINER_MODE_FALSE='#'
11932else
11933 MAINTAINER_MODE_TRUE='#'
11934 MAINTAINER_MODE_FALSE=
c6b750e1 11935fi
3d5e36ae
AO
11936MAINT=$MAINTAINER_MODE_TRUE
11937
1d39f329
NN
11938# ---------------------
11939# GCC bootstrap support
11940# ---------------------
11941
11942# Stage specific cflags for build.
11943stage1_cflags="-g"
11944case $build in
11945 vax-*-*)
11946 case ${GCC} in
11947 yes) stage1_cflags="-g -Wa,-J" ;;
11948 *) stage1_cflags="-g -J" ;;
11949 esac ;;
1d39f329
NN
11950esac
11951
1d89b610
PB
11952# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11953if test "$GCC" = yes; then
11954 saved_CFLAGS="$CFLAGS"
11955
11956 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11957 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11958 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11959echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11960 cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
11966
2038f525
PB
11967#if (__GNUC__ < 3) \
11968 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11969 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11970#error http://gcc.gnu.org/PR29382
11971#endif
11972
c6b750e1
DJ
11973int
11974main ()
11975{
11976
11977 ;
11978 return 0;
11979}
11980_ACEOF
11981rm -f conftest.$ac_objext
11982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11983 (eval $ac_compile) 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag"
11991 || test ! -s conftest.err'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; } &&
11997 { ac_try='test -s conftest.$ac_objext'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 echo "$as_me:$LINENO: result: yes" >&5
12004echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12005else
12006 echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
12009echo "$as_me:$LINENO: result: no" >&5
12010echo "${ECHO_T}no" >&6
12011fi
12012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12013
12014 CFLAGS="$saved_CFLAGS"
12015fi
12016
12017
1d39f329 12018
8a0d8a5c
PB
12019# Enable --enable-checking in stage1 of the compiler.
12020# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12021if test "${enable_stage1_checking+set}" = set; then
12022 enableval="$enable_stage1_checking"
12023 stage1_checking=--enable-checking=${enable_stage1_checking}
12024else
5566c1fa 12025 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12026 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12027else
5566c1fa 12028 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12029fi
c6b750e1 12030fi;
8a0d8a5c
PB
12031
12032
1d39f329 12033# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12034# Check whether --enable-werror or --disable-werror was given.
12035if test "${enable_werror+set}" = set; then
12036 enableval="$enable_werror"
c6b750e1 12037
1d39f329 12038else
a0323144 12039 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12040 enable_werror=yes
79fcd0ec
PB
12041else
12042 enable_werror=no
12043fi
c6b750e1 12044fi;
1a6f2dc7
NN
12045case ${enable_werror} in
12046 yes) stage2_werror_flag="--enable-werror-always" ;;
12047 *) stage2_werror_flag="" ;;
1d39f329
NN
12048esac
12049
12050
108a6f8e 12051# Flags needed to enable html installing and building
c6b750e1 12052
108a6f8e
CD
12053# Check whether --with-datarootdir or --without-datarootdir was given.
12054if test "${with_datarootdir+set}" = set; then
12055 withval="$with_datarootdir"
12056 datarootdir="\${prefix}/${withval}"
12057else
12058 datarootdir="\${prefix}/share"
c6b750e1 12059fi;
108a6f8e
CD
12060
12061
12062# Check whether --with-docdir or --without-docdir was given.
12063if test "${with_docdir+set}" = set; then
12064 withval="$with_docdir"
12065 docdir="\${prefix}/${withval}"
12066else
12067 docdir="\${datarootdir}/doc"
c6b750e1 12068fi;
108a6f8e
CD
12069
12070
a3ca38d2
DD
12071# Check whether --with-pdfdir or --without-pdfdir was given.
12072if test "${with_pdfdir+set}" = set; then
12073 withval="$with_pdfdir"
12074 pdfdir="\${prefix}/${withval}"
12075else
12076 pdfdir="\${docdir}"
12077fi;
12078
12079
108a6f8e
CD
12080# Check whether --with-htmldir or --without-htmldir was given.
12081if test "${with_htmldir+set}" = set; then
12082 withval="$with_htmldir"
12083 htmldir="\${prefix}/${withval}"
12084else
12085 htmldir="\${docdir}"
c6b750e1 12086fi;
108a6f8e
CD
12087
12088
12089
12090
12091
b8025f34 12092
c6b750e1
DJ
12093 ac_config_files="$ac_config_files Makefile"
12094cat >confcache <<\_ACEOF
a0da8069
NN
12095# This file is a shell script that caches the results of configure
12096# tests run on this system so they can be shared between configure
c6b750e1
DJ
12097# scripts and configure runs, see configure's option --config-cache.
12098# It is not useful on other systems. If it contains results you don't
12099# want to keep, you may remove or edit it.
a0da8069 12100#
c6b750e1
DJ
12101# config.status only pays attention to the cache file if you give it
12102# the --recheck option to rerun configure.
a0da8069 12103#
c6b750e1
DJ
12104# `ac_cv_env_foo' variables (set or unset) will be overridden when
12105# loading this file, other *unset* `ac_cv_foo' will be assigned the
12106# following values.
12107
12108_ACEOF
12109
a0da8069
NN
12110# The following way of writing the cache mishandles newlines in values,
12111# but we know of no workaround that is simple, portable, and efficient.
12112# So, don't put newlines in cache variables' values.
12113# Ultrix sh set writes to stderr and can't be redirected directly,
12114# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12115{
12116 (set) 2>&1 |
12117 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12118 *ac_space=\ *)
12119 # `set' does not quote correctly, so add quotes (double-quote
12120 # substitution turns \\\\ into \\, and sed turns \\ into \).
12121 sed -n \
12122 "s/'/'\\\\''/g;
12123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12124 ;;
12125 *)
12126 # `set' quotes correctly as required by POSIX, so do not add quotes.
12127 sed -n \
12128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12129 ;;
12130 esac;
12131} |
12132 sed '
12133 t clear
12134 : clear
12135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12136 t end
12137 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12138 : end' >>confcache
12139if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12140 if test -w $cache_file; then
c6b750e1
DJ
12141 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12142 cat confcache >$cache_file
a0da8069
NN
12143 else
12144 echo "not updating unwritable cache $cache_file"
12145 fi
852e5f18 12146fi
a0da8069 12147rm -f confcache
852e5f18 12148
a0da8069
NN
12149test "x$prefix" = xNONE && prefix=$ac_default_prefix
12150# Let make expand exec_prefix.
12151test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12152
c6b750e1
DJ
12153# VPATH may cause trouble with some makes, so we remove $(srcdir),
12154# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12155# trailing colons and then remove the whole line if VPATH becomes empty
12156# (actually we leave an empty line to preserve line numbers).
a0da8069 12157if test "x$srcdir" = x.; then
c6b750e1
DJ
12158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12159s/:*\$(srcdir):*/:/;
12160s/:*\${srcdir}:*/:/;
12161s/:*@srcdir@:*/:/;
12162s/^\([^=]*=[ ]*\):*/\1/;
12163s/:*$//;
12164s/^[^=]*=[ ]*$//;
12165}'
a0da8069 12166fi
252b5132 12167
a0da8069
NN
12168# Transform confdefs.h into DEFS.
12169# Protect against shell expansion while executing Makefile rules.
12170# Protect against Makefile macro expansion.
c6b750e1
DJ
12171#
12172# If the first sed substitution is executed (which looks for macros that
12173# take arguments), then we branch to the quote section. Otherwise,
12174# look for a macro that doesn't take arguments.
12175cat >confdef2opt.sed <<\_ACEOF
12176t clear
12177: clear
12178s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12179t quote
12180s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12181t quote
12182d
12183: quote
12184s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12185s,\[,\\&,g
12186s,\],\\&,g
12187s,\$,$$,g
12188p
12189_ACEOF
12190# We use echo to avoid assuming a particular line-breaking character.
12191# The extra dot is to prevent the shell from consuming trailing
12192# line-breaks from the sub-command output. A line-break within
12193# single-quotes doesn't work because, if this script is created in a
12194# platform that uses two characters for line-breaks (e.g., DOS), tr
12195# would break.
12196ac_LF_and_DOT=`echo; echo .`
12197DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12198rm -f confdef2opt.sed
12199
12200
12201ac_libobjs=
12202ac_ltlibobjs=
12203for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12204 # 1. Remove the extension, and $U if already installed.
12205 ac_i=`echo "$ac_i" |
12206 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12207 # 2. Add them.
12208 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12209 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12210done
12211LIBOBJS=$ac_libobjs
852e5f18 12212
c6b750e1 12213LTLIBOBJS=$ac_ltlibobjs
376a0e54 12214
cac3d6c4 12215
c6b750e1
DJ
12216
12217: ${CONFIG_STATUS=./config.status}
12218ac_clean_files_save=$ac_clean_files
12219ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12220{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12221echo "$as_me: creating $CONFIG_STATUS" >&6;}
12222cat >$CONFIG_STATUS <<_ACEOF
12223#! $SHELL
12224# Generated by $as_me.
a0da8069 12225# Run this file to recreate the current configuration.
a0da8069 12226# Compiler output produced by configure, useful for debugging
c6b750e1 12227# configure, is in config.log if it exists.
376a0e54 12228
c6b750e1
DJ
12229debug=false
12230ac_cs_recheck=false
12231ac_cs_silent=false
12232SHELL=\${CONFIG_SHELL-$SHELL}
12233_ACEOF
12234
12235cat >>$CONFIG_STATUS <<\_ACEOF
12236## --------------------- ##
12237## M4sh Initialization. ##
12238## --------------------- ##
12239
12240# Be Bourne compatible
12241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12242 emulate sh
12243 NULLCMD=:
12244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12245 # is contrary to our usage. Disable this feature.
12246 alias -g '${1+"$@"}'='"$@"'
12247elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12248 set -o posix
12249fi
12250DUALCASE=1; export DUALCASE # for MKS sh
12251
12252# Support unset when possible.
12253if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12254 as_unset=unset
12255else
12256 as_unset=false
12257fi
12258
12259
12260# Work around bugs in pre-3.0 UWIN ksh.
12261$as_unset ENV MAIL MAILPATH
12262PS1='$ '
12263PS2='> '
12264PS4='+ '
12265
12266# NLS nuisances.
12267for as_var in \
12268 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12269 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12270 LC_TELEPHONE LC_TIME
12271do
12272 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12273 eval $as_var=C; export $as_var
12274 else
12275 $as_unset $as_var
12276 fi
12277done
12278
12279# Required to use basename.
12280if expr a : '\(a\)' >/dev/null 2>&1; then
12281 as_expr=expr
12282else
12283 as_expr=false
12284fi
12285
12286if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12287 as_basename=basename
12288else
12289 as_basename=false
12290fi
12291
12292
12293# Name of the executable.
12294as_me=`$as_basename "$0" ||
12295$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12296 X"$0" : 'X\(//\)$' \| \
12297 X"$0" : 'X\(/\)$' \| \
12298 . : '\(.\)' 2>/dev/null ||
12299echo X/"$0" |
12300 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12301 /^X\/\(\/\/\)$/{ s//\1/; q; }
12302 /^X\/\(\/\).*/{ s//\1/; q; }
12303 s/.*/./; q'`
12304
12305
12306# PATH needs CR, and LINENO needs CR and PATH.
12307# Avoid depending upon Character Ranges.
12308as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12309as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12310as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12311as_cr_digits='0123456789'
12312as_cr_alnum=$as_cr_Letters$as_cr_digits
12313
12314# The user is always right.
12315if test "${PATH_SEPARATOR+set}" != set; then
12316 echo "#! /bin/sh" >conf$$.sh
12317 echo "exit 0" >>conf$$.sh
12318 chmod +x conf$$.sh
12319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12320 PATH_SEPARATOR=';'
12321 else
12322 PATH_SEPARATOR=:
12323 fi
12324 rm -f conf$$.sh
12325fi
12326
12327
12328 as_lineno_1=$LINENO
12329 as_lineno_2=$LINENO
12330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12331 test "x$as_lineno_1" != "x$as_lineno_2" &&
12332 test "x$as_lineno_3" = "x$as_lineno_2" || {
12333 # Find who we are. Look in the path if we contain no path at all
12334 # relative or not.
12335 case $0 in
12336 *[\\/]* ) as_myself=$0 ;;
12337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338for as_dir in $PATH
12339do
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12343done
12344
12345 ;;
12346 esac
12347 # We did not find ourselves, most probably we were run as `sh COMMAND'
12348 # in which case we are not to be found in the path.
12349 if test "x$as_myself" = x; then
12350 as_myself=$0
12351 fi
12352 if test ! -f "$as_myself"; then
12353 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12354echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12355 { (exit 1); exit 1; }; }
12356 fi
12357 case $CONFIG_SHELL in
12358 '')
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12361do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for as_base in sh bash ksh sh5; do
12365 case $as_dir in
12366 /*)
12367 if ("$as_dir/$as_base" -c '
12368 as_lineno_1=$LINENO
12369 as_lineno_2=$LINENO
12370 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12371 test "x$as_lineno_1" != "x$as_lineno_2" &&
12372 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12373 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12374 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12375 CONFIG_SHELL=$as_dir/$as_base
12376 export CONFIG_SHELL
12377 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12378 fi;;
12379 esac
12380 done
12381done
12382;;
12383 esac
12384
12385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12386 # uniformly replaced by the line number. The first 'sed' inserts a
12387 # line-number line before each line; the second 'sed' does the real
12388 # work. The second script uses 'N' to pair each line-number line
12389 # with the numbered line, and appends trailing '-' during
12390 # substitution so that $LINENO is not a special case at line end.
12391 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12392 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12393 sed '=' <$as_myself |
12394 sed '
12395 N
12396 s,$,-,
12397 : loop
12398 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12399 t loop
12400 s,-$,,
12401 s,^['$as_cr_digits']*\n,,
12402 ' >$as_me.lineno &&
12403 chmod +x $as_me.lineno ||
12404 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12405echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12406 { (exit 1); exit 1; }; }
12407
12408 # Don't try to exec as it changes $[0], causing all sort of problems
12409 # (the dirname of $[0] is not the place where we might find the
12410 # original and so on. Autoconf is especially sensible to this).
12411 . ./$as_me.lineno
12412 # Exit status is that of the last command.
12413 exit
12414}
12415
12416
12417case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12418 *c*,-n*) ECHO_N= ECHO_C='
12419' ECHO_T=' ' ;;
12420 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12421 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12422esac
12423
12424if expr a : '\(a\)' >/dev/null 2>&1; then
12425 as_expr=expr
12426else
12427 as_expr=false
12428fi
12429
12430rm -f conf$$ conf$$.exe conf$$.file
12431echo >conf$$.file
12432if ln -s conf$$.file conf$$ 2>/dev/null; then
12433 # We could just check for DJGPP; but this test a) works b) is more generic
12434 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12435 if test -f conf$$.exe; then
12436 # Don't use ln at all; we don't have any links
12437 as_ln_s='cp -p'
12438 else
12439 as_ln_s='ln -s'
12440 fi
12441elif ln conf$$.file conf$$ 2>/dev/null; then
12442 as_ln_s=ln
12443else
12444 as_ln_s='cp -p'
12445fi
12446rm -f conf$$ conf$$.exe conf$$.file
12447
12448if mkdir -p . 2>/dev/null; then
12449 as_mkdir_p=:
12450else
12451 test -d ./-p && rmdir ./-p
12452 as_mkdir_p=false
12453fi
12454
12455as_executable_p="test -f"
12456
12457# Sed expression to map a string onto a valid CPP name.
12458as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12459
12460# Sed expression to map a string onto a valid variable name.
12461as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12462
12463
12464# IFS
12465# We need space, tab and new line, in precisely that order.
12466as_nl='
12467'
12468IFS=" $as_nl"
12469
12470# CDPATH.
12471$as_unset CDPATH
12472
12473exec 6>&1
12474
12475# Open the log real soon, to keep \$[0] and so on meaningful, and to
12476# report actual input values of CONFIG_FILES etc. instead of their
12477# values after options handling. Logging --version etc. is OK.
12478exec 5>>config.log
12479{
12480 echo
12481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12482## Running $as_me. ##
12483_ASBOX
12484} >&5
12485cat >&5 <<_CSEOF
12486
12487This file was extended by $as_me, which was
12488generated by GNU Autoconf 2.59. Invocation command line was
12489
12490 CONFIG_FILES = $CONFIG_FILES
12491 CONFIG_HEADERS = $CONFIG_HEADERS
12492 CONFIG_LINKS = $CONFIG_LINKS
12493 CONFIG_COMMANDS = $CONFIG_COMMANDS
12494 $ $0 $@
12495
12496_CSEOF
12497echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12498echo >&5
12499_ACEOF
12500
12501# Files that config.status was made for.
12502if test -n "$ac_config_files"; then
12503 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12504fi
12505
12506if test -n "$ac_config_headers"; then
12507 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12508fi
12509
12510if test -n "$ac_config_links"; then
12511 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12512fi
12513
12514if test -n "$ac_config_commands"; then
12515 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12516fi
12517
12518cat >>$CONFIG_STATUS <<\_ACEOF
12519
12520ac_cs_usage="\
12521\`$as_me' instantiates files from templates according to the
12522current configuration.
12523
12524Usage: $0 [OPTIONS] [FILE]...
12525
12526 -h, --help print this help, then exit
12527 -V, --version print version number, then exit
12528 -q, --quiet do not print progress messages
12529 -d, --debug don't remove temporary files
12530 --recheck update $as_me by reconfiguring in the same conditions
12531 --file=FILE[:TEMPLATE]
12532 instantiate the configuration file FILE
12533
12534Configuration files:
12535$config_files
12536
12537Report bugs to <bug-autoconf@gnu.org>."
12538_ACEOF
12539
12540cat >>$CONFIG_STATUS <<_ACEOF
12541ac_cs_version="\\
12542config.status
12543configured by $0, generated by GNU Autoconf 2.59,
12544 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12545
12546Copyright (C) 2003 Free Software Foundation, Inc.
12547This config.status script is free software; the Free Software Foundation
12548gives unlimited permission to copy, distribute and modify it."
12549srcdir=$srcdir
12550INSTALL="$INSTALL"
12551_ACEOF
12552
12553cat >>$CONFIG_STATUS <<\_ACEOF
12554# If no file are specified by the user, then we need to provide default
12555# value. By we need to know if files were specified by the user.
12556ac_need_defaults=:
12557while test $# != 0
a0da8069 12558do
c6b750e1
DJ
12559 case $1 in
12560 --*=*)
12561 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12562 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12563 ac_shift=:
12564 ;;
12565 -*)
12566 ac_option=$1
12567 ac_optarg=$2
12568 ac_shift=shift
12569 ;;
12570 *) # This is not an option, so the user has probably given explicit
12571 # arguments.
12572 ac_option=$1
12573 ac_need_defaults=false;;
12574 esac
12575
12576 case $ac_option in
12577 # Handling of the options.
12578_ACEOF
12579cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12581 ac_cs_recheck=: ;;
12582 --version | --vers* | -V )
12583 echo "$ac_cs_version"; exit 0 ;;
12584 --he | --h)
12585 # Conflict between --help and --header
12586 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12587Try \`$0 --help' for more information." >&5
12588echo "$as_me: error: ambiguous option: $1
12589Try \`$0 --help' for more information." >&2;}
12590 { (exit 1); exit 1; }; };;
12591 --help | --hel | -h )
12592 echo "$ac_cs_usage"; exit 0 ;;
12593 --debug | --d* | -d )
12594 debug=: ;;
12595 --file | --fil | --fi | --f )
12596 $ac_shift
12597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12598 ac_need_defaults=false;;
12599 --header | --heade | --head | --hea )
12600 $ac_shift
12601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12602 ac_need_defaults=false;;
12603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12605 ac_cs_silent=: ;;
12606
12607 # This is an error.
12608 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12609Try \`$0 --help' for more information." >&5
12610echo "$as_me: error: unrecognized option: $1
12611Try \`$0 --help' for more information." >&2;}
12612 { (exit 1); exit 1; }; } ;;
12613
12614 *) ac_config_targets="$ac_config_targets $1" ;;
12615
376a0e54 12616 esac
c6b750e1 12617 shift
376a0e54
CM
12618done
12619
c6b750e1 12620ac_configure_extra_args=
376a0e54 12621
c6b750e1
DJ
12622if $ac_cs_silent; then
12623 exec 6>/dev/null
12624 ac_configure_extra_args="$ac_configure_extra_args --silent"
12625fi
376a0e54 12626
c6b750e1
DJ
12627_ACEOF
12628cat >>$CONFIG_STATUS <<_ACEOF
12629if \$ac_cs_recheck; then
12630 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12631 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12632fi
12633
12634_ACEOF
12635
12636
12637
12638
12639
12640cat >>$CONFIG_STATUS <<\_ACEOF
12641for ac_config_target in $ac_config_targets
12642do
12643 case "$ac_config_target" in
12644 # Handling of arguments.
12645 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12646 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12647echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12648 { (exit 1); exit 1; }; };;
12649 esac
12650done
12651
12652# If the user did not use the arguments to specify the items to instantiate,
12653# then the envvar interface is used. Set only those that are not.
12654# We use the long form for the default assignment because of an extremely
12655# bizarre bug on SunOS 4.1.3.
12656if $ac_need_defaults; then
12657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12658fi
12659
12660# Have a temporary directory for convenience. Make it in the build tree
12661# simply because there is no reason to put it here, and in addition,
12662# creating and moving files from /tmp can sometimes cause problems.
12663# Create a temporary directory, and hook for its removal unless debugging.
12664$debug ||
12665{
12666 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12667 trap '{ (exit 1); exit 1; }' 1 2 13 15
12668}
12669
12670# Create a (secure) tmp directory for tmp files.
12671
12672{
12673 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12674 test -n "$tmp" && test -d "$tmp"
12675} ||
12676{
12677 tmp=./confstat$$-$RANDOM
12678 (umask 077 && mkdir $tmp)
12679} ||
12680{
12681 echo "$me: cannot create a temporary directory in ." >&2
12682 { (exit 1); exit 1; }
12683}
12684
12685_ACEOF
12686
12687cat >>$CONFIG_STATUS <<_ACEOF
12688
12689#
12690# CONFIG_FILES section.
12691#
12692
12693# No need to generate the scripts if there are no CONFIG_FILES.
12694# This happens for instance when ./config.status config.h
12695if test -n "\$CONFIG_FILES"; then
12696 # Protect against being on the right side of a sed subst in config.status.
12697 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12698 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12699s,@SHELL@,$SHELL,;t t
12700s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12701s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12702s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12703s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12704s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12705s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12706s,@exec_prefix@,$exec_prefix,;t t
12707s,@prefix@,$prefix,;t t
12708s,@program_transform_name@,$program_transform_name,;t t
12709s,@bindir@,$bindir,;t t
12710s,@sbindir@,$sbindir,;t t
12711s,@libexecdir@,$libexecdir,;t t
12712s,@datadir@,$datadir,;t t
12713s,@sysconfdir@,$sysconfdir,;t t
12714s,@sharedstatedir@,$sharedstatedir,;t t
12715s,@localstatedir@,$localstatedir,;t t
12716s,@libdir@,$libdir,;t t
12717s,@includedir@,$includedir,;t t
12718s,@oldincludedir@,$oldincludedir,;t t
12719s,@infodir@,$infodir,;t t
12720s,@mandir@,$mandir,;t t
12721s,@build_alias@,$build_alias,;t t
12722s,@host_alias@,$host_alias,;t t
12723s,@target_alias@,$target_alias,;t t
12724s,@DEFS@,$DEFS,;t t
12725s,@ECHO_C@,$ECHO_C,;t t
12726s,@ECHO_N@,$ECHO_N,;t t
12727s,@ECHO_T@,$ECHO_T,;t t
12728s,@LIBS@,$LIBS,;t t
12729s,@build@,$build,;t t
12730s,@build_cpu@,$build_cpu,;t t
12731s,@build_vendor@,$build_vendor,;t t
12732s,@build_os@,$build_os,;t t
12733s,@build_noncanonical@,$build_noncanonical,;t t
12734s,@host_noncanonical@,$host_noncanonical,;t t
12735s,@target_noncanonical@,$target_noncanonical,;t t
12736s,@host@,$host,;t t
12737s,@host_cpu@,$host_cpu,;t t
12738s,@host_vendor@,$host_vendor,;t t
12739s,@host_os@,$host_os,;t t
12740s,@target@,$target,;t t
12741s,@target_cpu@,$target_cpu,;t t
12742s,@target_vendor@,$target_vendor,;t t
12743s,@target_os@,$target_os,;t t
12744s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12745s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12746s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12747s,@LN@,$LN,;t t
12748s,@LN_S@,$LN_S,;t t
12749s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12750s,@build_libsubdir@,$build_libsubdir,;t t
12751s,@build_subdir@,$build_subdir,;t t
12752s,@host_subdir@,$host_subdir,;t t
12753s,@target_subdir@,$target_subdir,;t t
12754s,@CC@,$CC,;t t
12755s,@CFLAGS@,$CFLAGS,;t t
12756s,@LDFLAGS@,$LDFLAGS,;t t
12757s,@CPPFLAGS@,$CPPFLAGS,;t t
12758s,@ac_ct_CC@,$ac_ct_CC,;t t
12759s,@EXEEXT@,$EXEEXT,;t t
12760s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12761s,@CXX@,$CXX,;t t
12762s,@CXXFLAGS@,$CXXFLAGS,;t t
12763s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12764s,@GNATBIND@,$GNATBIND,;t t
12765s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12766s,@GNATMAKE@,$GNATMAKE,;t t
12767s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12768s,@do_compare@,$do_compare,;t t
12769s,@gmplibs@,$gmplibs,;t t
12770s,@gmpinc@,$gmpinc,;t t
12771s,@stage1_languages@,$stage1_languages,;t t
12772s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12773s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12774s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12775s,@tooldir@,$tooldir,;t t
12776s,@build_tooldir@,$build_tooldir,;t t
12777s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12778s,@GDB_TK@,$GDB_TK,;t t
12779s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12780s,@build_configargs@,$build_configargs,;t t
12781s,@build_configdirs@,$build_configdirs,;t t
12782s,@host_configargs@,$host_configargs,;t t
12783s,@configdirs@,$configdirs,;t t
12784s,@target_configargs@,$target_configargs,;t t
12785s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12786s,@config_shell@,$config_shell,;t t
12787s,@YACC@,$YACC,;t t
12788s,@BISON@,$BISON,;t t
12789s,@M4@,$M4,;t t
12790s,@LEX@,$LEX,;t t
12791s,@FLEX@,$FLEX,;t t
12792s,@MAKEINFO@,$MAKEINFO,;t t
12793s,@EXPECT@,$EXPECT,;t t
12794s,@RUNTEST@,$RUNTEST,;t t
12795s,@AR@,$AR,;t t
12796s,@AS@,$AS,;t t
12797s,@DLLTOOL@,$DLLTOOL,;t t
12798s,@LD@,$LD,;t t
12799s,@LIPO@,$LIPO,;t t
12800s,@NM@,$NM,;t t
12801s,@RANLIB@,$RANLIB,;t t
12802s,@STRIP@,$STRIP,;t t
12803s,@WINDRES@,$WINDRES,;t t
0c24b341 12804s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12805s,@OBJCOPY@,$OBJCOPY,;t t
12806s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12807s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12808s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12809s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12810s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12811s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12812s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12813s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12814s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12815s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12816s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12817s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12818s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12819s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12820s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12821s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12822s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12823s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12824s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12825s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12826s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12827s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12828s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12829s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12830s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12831s,@MAINT@,$MAINT,;t t
12832s,@stage1_cflags@,$stage1_cflags,;t t
12833s,@stage1_checking@,$stage1_checking,;t t
12834s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12835s,@datarootdir@,$datarootdir,;t t
12836s,@docdir@,$docdir,;t t
a3ca38d2 12837s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12838s,@htmldir@,$htmldir,;t t
12839s,@LIBOBJS@,$LIBOBJS,;t t
12840s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12841/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12842s,@serialization_dependencies@,,;t t
a0da8069 12843/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12844s,@host_makefile_frag@,,;t t
a0da8069 12845/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12846s,@target_makefile_frag@,,;t t
a0da8069 12847/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12848s,@alphaieee_frag@,,;t t
a0da8069 12849/@ospace_frag@/r $ospace_frag
c6b750e1 12850s,@ospace_frag@,,;t t
a0da8069 12851CEOF
252b5132 12852
c6b750e1
DJ
12853_ACEOF
12854
12855 cat >>$CONFIG_STATUS <<\_ACEOF
12856 # Split the substitutions into bite-sized pieces for seds with
12857 # small command number limits, like on Digital OSF/1 and HP-UX.
12858 ac_max_sed_lines=48
12859 ac_sed_frag=1 # Number of current file.
12860 ac_beg=1 # First line for current file.
12861 ac_end=$ac_max_sed_lines # Line after last line for current file.
12862 ac_more_lines=:
12863 ac_sed_cmds=
12864 while $ac_more_lines; do
12865 if test $ac_beg -gt 1; then
12866 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12867 else
12868 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12869 fi
12870 if test ! -s $tmp/subs.frag; then
12871 ac_more_lines=false
a0da8069 12872 else
c6b750e1
DJ
12873 # The purpose of the label and of the branching condition is to
12874 # speed up the sed processing (if there are no `@' at all, there
12875 # is no need to browse any of the substitutions).
12876 # These are the two extra sed commands mentioned above.
12877 (echo ':t
12878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12879 if test -z "$ac_sed_cmds"; then
12880 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12881 else
12882 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12883 fi
12884 ac_sed_frag=`expr $ac_sed_frag + 1`
12885 ac_beg=$ac_end
12886 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12887 fi
c6b750e1
DJ
12888 done
12889 if test -z "$ac_sed_cmds"; then
12890 ac_sed_cmds=cat
852e5f18 12891 fi
c6b750e1 12892fi # test -n "$CONFIG_FILES"
cac3d6c4 12893
c6b750e1
DJ
12894_ACEOF
12895cat >>$CONFIG_STATUS <<\_ACEOF
12896for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12898 case $ac_file in
12899 - | *:- | *:-:* ) # input from stdin
12900 cat >$tmp/stdin
12901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12905 * ) ac_file_in=$ac_file.in ;;
a0da8069 12906 esac
252b5132 12907
c6b750e1
DJ
12908 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12909 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12910$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12911 X"$ac_file" : 'X\(//\)[^/]' \| \
12912 X"$ac_file" : 'X\(//\)$' \| \
12913 X"$ac_file" : 'X\(/\)' \| \
12914 . : '\(.\)' 2>/dev/null ||
12915echo X"$ac_file" |
12916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12918 /^X\(\/\/\)$/{ s//\1/; q; }
12919 /^X\(\/\).*/{ s//\1/; q; }
12920 s/.*/./; q'`
12921 { if $as_mkdir_p; then
12922 mkdir -p "$ac_dir"
cac3d6c4 12923 else
c6b750e1
DJ
12924 as_dir="$ac_dir"
12925 as_dirs=
12926 while test ! -d "$as_dir"; do
12927 as_dirs="$as_dir $as_dirs"
12928 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12930 X"$as_dir" : 'X\(//\)[^/]' \| \
12931 X"$as_dir" : 'X\(//\)$' \| \
12932 X"$as_dir" : 'X\(/\)' \| \
12933 . : '\(.\)' 2>/dev/null ||
12934echo X"$as_dir" |
12935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12937 /^X\(\/\/\)$/{ s//\1/; q; }
12938 /^X\(\/\).*/{ s//\1/; q; }
12939 s/.*/./; q'`
12940 done
12941 test ! -n "$as_dirs" || mkdir $as_dirs
12942 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12943echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12944 { (exit 1); exit 1; }; }; }
12945
12946 ac_builddir=.
252b5132 12947
c6b750e1
DJ
12948if test "$ac_dir" != .; then
12949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12950 # A "../" for each directory in $ac_dir_suffix.
12951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12952else
12953 ac_dir_suffix= ac_top_builddir=
12954fi
12955
12956case $srcdir in
12957 .) # No --srcdir option. We are building in place.
12958 ac_srcdir=.
12959 if test -z "$ac_top_builddir"; then
12960 ac_top_srcdir=.
12961 else
12962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12963 fi ;;
12964 [\\/]* | ?:[\\/]* ) # Absolute path.
12965 ac_srcdir=$srcdir$ac_dir_suffix;
12966 ac_top_srcdir=$srcdir ;;
a0da8069 12967 *) # Relative path.
c6b750e1
DJ
12968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12970esac
252b5132 12971
c6b750e1
DJ
12972# Do not use `cd foo && pwd` to compute absolute paths, because
12973# the directories may not exist.
12974case `pwd` in
12975.) ac_abs_builddir="$ac_dir";;
12976*)
12977 case "$ac_dir" in
12978 .) ac_abs_builddir=`pwd`;;
12979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12981 esac;;
12982esac
12983case $ac_abs_builddir in
12984.) ac_abs_top_builddir=${ac_top_builddir}.;;
12985*)
12986 case ${ac_top_builddir}. in
12987 .) ac_abs_top_builddir=$ac_abs_builddir;;
12988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12990 esac;;
12991esac
12992case $ac_abs_builddir in
12993.) ac_abs_srcdir=$ac_srcdir;;
12994*)
12995 case $ac_srcdir in
12996 .) ac_abs_srcdir=$ac_abs_builddir;;
12997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12999 esac;;
13000esac
13001case $ac_abs_builddir in
13002.) ac_abs_top_srcdir=$ac_top_srcdir;;
13003*)
13004 case $ac_top_srcdir in
13005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13008 esac;;
13009esac
252b5132 13010
c6b750e1
DJ
13011
13012 case $INSTALL in
13013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13014 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13015 esac
252b5132 13016
c6b750e1
DJ
13017 if test x"$ac_file" != x-; then
13018 { echo "$as_me:$LINENO: creating $ac_file" >&5
13019echo "$as_me: creating $ac_file" >&6;}
13020 rm -f "$ac_file"
13021 fi
13022 # Let's still pretend it is `configure' which instantiates (i.e., don't
13023 # use $as_me), people would be surprised to read:
13024 # /* config.h. Generated by config.status. */
13025 if test x"$ac_file" = x-; then
13026 configure_input=
13027 else
13028 configure_input="$ac_file. "
13029 fi
13030 configure_input=$configure_input"Generated from `echo $ac_file_in |
13031 sed 's,.*/,,'` by configure."
13032
13033 # First look for the input files in the build tree, otherwise in the
13034 # src tree.
13035 ac_file_inputs=`IFS=:
13036 for f in $ac_file_in; do
13037 case $f in
13038 -) echo $tmp/stdin ;;
13039 [\\/$]*)
13040 # Absolute (can't be DOS-style, as IFS=:)
13041 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13042echo "$as_me: error: cannot find input file: $f" >&2;}
13043 { (exit 1); exit 1; }; }
13044 echo "$f";;
13045 *) # Relative
13046 if test -f "$f"; then
13047 # Build tree
13048 echo "$f"
13049 elif test -f "$srcdir/$f"; then
13050 # Source tree
13051 echo "$srcdir/$f"
13052 else
13053 # /dev/null tree
13054 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13055echo "$as_me: error: cannot find input file: $f" >&2;}
13056 { (exit 1); exit 1; }; }
13057 fi;;
13058 esac
13059 done` || { (exit 1); exit 1; }
13060_ACEOF
13061cat >>$CONFIG_STATUS <<_ACEOF
13062 sed "$ac_vpsub
13063$extrasub
13064_ACEOF
13065cat >>$CONFIG_STATUS <<\_ACEOF
13066:t
13067/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13068s,@configure_input@,$configure_input,;t t
13069s,@srcdir@,$ac_srcdir,;t t
13070s,@abs_srcdir@,$ac_abs_srcdir,;t t
13071s,@top_srcdir@,$ac_top_srcdir,;t t
13072s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13073s,@builddir@,$ac_builddir,;t t
13074s,@abs_builddir@,$ac_abs_builddir,;t t
13075s,@top_builddir@,$ac_top_builddir,;t t
13076s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13077s,@INSTALL@,$ac_INSTALL,;t t
13078" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13079 rm -f $tmp/stdin
13080 if test x"$ac_file" != x-; then
13081 mv $tmp/out $ac_file
13082 else
13083 cat $tmp/out
13084 rm -f $tmp/out
13085 fi
c148b4cb 13086
c6b750e1
DJ
13087done
13088_ACEOF
c148b4cb 13089
c6b750e1 13090cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13091
c6b750e1
DJ
13092{ (exit 0); exit 0; }
13093_ACEOF
c148b4cb 13094chmod +x $CONFIG_STATUS
c6b750e1
DJ
13095ac_clean_files=$ac_clean_files_save
13096
13097
13098# configure is writing to config.log, and then calls config.status.
13099# config.status does its own redirection, appending to config.log.
13100# Unfortunately, on DOS this fails, as config.log is still kept open
13101# by configure, so config.status won't be able to write to it; its
13102# output is simply discarded. So we exec the FD to /dev/null,
13103# effectively closing config.log, so it can be properly (re)opened and
13104# appended to by config.status. When coming back to configure, we
13105# need to make the FD available again.
13106if test "$no_create" != yes; then
13107 ac_cs_success=:
13108 ac_config_status_args=
13109 test "$silent" = yes &&
13110 ac_config_status_args="$ac_config_status_args --quiet"
13111 exec 5>/dev/null
13112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13113 exec 5>>config.log
13114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13115 # would make configure fail if this is the last instruction.
13116 $ac_cs_success || { (exit 1); exit 1; }
13117fi
c148b4cb 13118
This page took 1.074809 seconds and 4 git commands to generate.