gas/testsuite/
[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 2508 ;;
5bd8be13
RS
2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
a0da8069 2517 mips*-*-irix5*)
54d1c879 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2519 ;;
2520 mips*-*-irix6*)
a0da8069
NN
2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
54d1c879 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2526 ;;
a0da8069 2527 mips*-*-bsd*)
54d1c879 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2529 ;;
a0da8069
NN
2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
54d1c879 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2535 libgloss_dir=mips
a0da8069
NN
2536 ;;
2537 romp-*-*)
54d1c879 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2539 ;;
dbf85af7 2540 sh-*-* | sh64-*-*)
a0da8069 2541 case "${host}" in
ec11bdc6
DD
2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
54d1c879 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2548 ;;
691bb5a1
DD
2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
a0da8069 2552 sparc-*-elf*)
54d1c879 2553 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2554 ;;
2555 sparc64-*-elf*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2557 libgloss_dir=sparc
a0da8069
NN
2558 ;;
2559 sparclite-*-*)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2561 libgloss_dir=sparc
a0da8069
NN
2562 ;;
2563 sparc-*-sunos4*)
54d1c879 2564 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
e3c770b1 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2572 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2573 ;;
a0da8069
NN
2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
2839fe5d
BE
2576 spu-*-*)
2577 skipdirs="target-libssp"
2578 ;;
a0da8069 2579 v810-*-*)
54d1c879 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2581 ;;
2582 v850-*-*)
54d1c879 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2584 ;;
2585 v850e-*-*)
54d1c879 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2587 ;;
2588 v850ea-*-*)
54d1c879 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2590 ;;
2591 vax-*-vms)
54d1c879 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2593 ;;
2594 vax-*-*)
54d1c879 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2596 ;;
fbd1054d 2597 xtensa-*-*)
54d1c879 2598 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2599 ;;
a0da8069 2600 ip2k-*-*)
54d1c879 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2602 ;;
de0b4a87 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
54d1c879 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2608 ;;
a0da8069 2609 *-*-*)
54d1c879 2610 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2611 ;;
2612esac
252b5132 2613
a0da8069
NN
2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
a0da8069
NN
2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
ec11bdc6 2692 i[3456789]86-*-sysv5*)
a0da8069
NN
2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
ec11bdc6 2695 i[3456789]86-*-dgux*)
a0da8069
NN
2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
ec11bdc6 2699 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
ec11bdc6 2704 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
ec11bdc6 2713 i[3456789]86-*-sco3.2v5*)
a0da8069 2714 ;;
ec11bdc6 2715 i[3456789]86-*-sco*)
a0da8069
NN
2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
ec11bdc6 2721 i[3456789]86-*-udk*)
a0da8069
NN
2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
ec11bdc6 2724 i[3456789]86-*-solaris2*)
a0da8069
NN
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
ec11bdc6 2727 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
84e7906e 2734 host_makefile_frag="config/mh-mingw"
a0da8069 2735 ;;
2d1e8239 2736 *-mingw64*)
84e7906e 2737 host_makefile_frag="config/mh-mingw"
2d1e8239 2738 ;;
a0da8069
NN
2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
0df3d27f
PB
2765 powerpc-*-darwin*)
2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
f6d183c0
PB
2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
a0da8069
NN
2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
fe69863c
DD
2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
a0da8069
NN
2786esac
2787fi
2788
9e07f89d
NN
2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
9e07f89d 2809 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2810else
512b7dfb 2811 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2812fi
2813
2814ac_ext=c
c6b750e1
DJ
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}gcc; ac_word=$2
2822echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842done
2843
2844fi
2845fi
2846CC=$ac_cv_prog_CC
2847if test -n "$CC"; then
2848 echo "$as_me:$LINENO: result: $CC" >&5
2849echo "${ECHO_T}$CC" >&6
2850else
2851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853fi
2854
2855fi
2856if test -z "$ac_cv_prog_CC"; then
2857 ac_ct_CC=$CC
6a9cf61e 2858 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2859set dummy gcc; ac_word=$2
c6b750e1
DJ
2860echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_CC="gcc"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879done
2880done
2881
2882fi
2883fi
2884ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885if test -n "$ac_ct_CC"; then
2886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887echo "${ECHO_T}$ac_ct_CC" >&6
2888else
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891fi
2892
2893 CC=$ac_ct_CC
2894else
2895 CC="$ac_cv_prog_CC"
2896fi
2897
2898if test -z "$CC"; then
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2901set dummy ${ac_tool_prefix}cc; ac_word=$2
2902echo "$as_me:$LINENO: checking for $ac_word" >&5
2903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2906else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909else
c6b750e1
DJ
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_CC="${ac_tool_prefix}cc"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921done
2922done
2923
9e07f89d
NN
2924fi
2925fi
c6b750e1 2926CC=$ac_cv_prog_CC
9e07f89d 2927if test -n "$CC"; then
c6b750e1
DJ
2928 echo "$as_me:$LINENO: result: $CC" >&5
2929echo "${ECHO_T}$CC" >&6
9e07f89d 2930else
c6b750e1
DJ
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
9e07f89d
NN
2933fi
2934
c6b750e1
DJ
2935fi
2936if test -z "$ac_cv_prog_CC"; then
2937 ac_ct_CC=$CC
2938 # Extract the first word of "cc", so it can be a program name with args.
2939set dummy cc; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_CC="cc"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969 echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973 CC=$ac_ct_CC
2974else
2975 CC="$ac_cv_prog_CC"
2976fi
2977
2978fi
9e07f89d
NN
2979if test -z "$CC"; then
2980 # Extract the first word of "cc", so it can be a program name with args.
2981set dummy cc; ac_word=$2
c6b750e1
DJ
2982echo "$as_me:$LINENO: checking for $ac_word" >&5
2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2986else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
9e07f89d 2990 ac_prog_rejected=no
c6b750e1
DJ
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2999 ac_prog_rejected=yes
3000 continue
3001 fi
3002 ac_cv_prog_CC="cc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006done
3007done
3008
9e07f89d
NN
3009if test $ac_prog_rejected = yes; then
3010 # We found a bogon in the path, so make sure we never use it.
3011 set dummy $ac_cv_prog_CC
3012 shift
c6b750e1 3013 if test $# != 0; then
9e07f89d
NN
3014 # We chose a different compiler from the bogus one.
3015 # However, it has the same basename, so the bogon will be chosen
3016 # first if we set CC to just the basename; use the full file name.
3017 shift
c6b750e1 3018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3019 fi
3020fi
3021fi
3022fi
c6b750e1 3023CC=$ac_cv_prog_CC
9e07f89d 3024if test -n "$CC"; then
c6b750e1
DJ
3025 echo "$as_me:$LINENO: result: $CC" >&5
3026echo "${ECHO_T}$CC" >&6
9e07f89d 3027else
c6b750e1
DJ
3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
9e07f89d
NN
3030fi
3031
c6b750e1
DJ
3032fi
3033if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog in cl
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039echo "$as_me:$LINENO: checking for $ac_word" >&5
3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
c6b750e1
DJ
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
376a0e54 3057 fi
c6b750e1
DJ
3058done
3059done
cac3d6c4 3060
c6b750e1
DJ
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065 echo "$as_me:$LINENO: result: $CC" >&5
3066echo "${ECHO_T}$CC" >&6
cac3d6c4 3067else
c6b750e1
DJ
3068 echo "$as_me:$LINENO: result: no" >&5
3069echo "${ECHO_T}no" >&6
9e07f89d 3070fi
cac3d6c4 3071
c6b750e1
DJ
3072 test -n "$CC" && break
3073 done
cac3d6c4 3074fi
c6b750e1
DJ
3075if test -z "$CC"; then
3076 ac_ct_CC=$CC
3077 for ac_prog in cl
3078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3085else
c6b750e1
DJ
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3088else
c6b750e1
DJ
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_ac_ct_CC="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
cac3d6c4
CM
3103fi
3104fi
c6b750e1
DJ
3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
3107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3108echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3109else
c6b750e1
DJ
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
cac3d6c4 3112fi
376a0e54 3113
c6b750e1
DJ
3114 test -n "$ac_ct_CC" && break
3115done
3116
3117 CC=$ac_ct_CC
3118fi
3119
3120fi
3121
3122
3123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124See \`config.log' for more details." >&5
3125echo "$as_me: error: no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3128
3129# Provide some information about the compiler.
3130echo "$as_me:$LINENO:" \
3131 "checking for C compiler version" >&5
3132ac_compiler=`set X $ac_compile; echo $2`
3133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3134 (eval $ac_compiler --version </dev/null >&5) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3139 (eval $ac_compiler -v </dev/null >&5) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3144 (eval $ac_compiler -V </dev/null >&5) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148
3149cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
3165ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
3169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3173 (eval $ac_link_default) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; then
3177 # Find the output, starting from the most likely. This scheme is
3178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3179# resort.
3180
3181# Be careful to initialize this variable, since it used to be cached.
3182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3183ac_cv_exeext=
3184# b.out is created by i960 compilers.
3185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3186do
3187 test -f "$ac_file" || continue
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3190 ;;
3191 conftest.$ac_ext )
3192 # This is the source file.
3193 ;;
3194 [ab].out )
3195 # We found the default executable, but exeext='' is most
3196 # certainly right.
3197 break;;
3198 *.* )
3199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 # FIXME: I believe we export ac_cv_exeext for Libtool,
3201 # but it would be cool to find out if it's true. Does anybody
3202 # maintain Libtool? --akim.
3203 export ac_cv_exeext
3204 break;;
3205 * )
3206 break;;
3207 esac
3208done
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3214See \`config.log' for more details." >&5
3215echo "$as_me: error: C compiler cannot create executables
3216See \`config.log' for more details." >&2;}
3217 { (exit 77); exit 77; }; }
3218fi
3219
3220ac_exeext=$ac_cv_exeext
3221echo "$as_me:$LINENO: result: $ac_file" >&5
3222echo "${ECHO_T}$ac_file" >&6
3223
3224# Check the compiler produces executables we can run. If not, either
3225# the compiler is broken, or we cross compile.
3226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3229# If not cross compiling, check that we can run a simple program.
3230if test "$cross_compiling" != yes; then
3231 if { ac_try='./$ac_file'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 cross_compiling=no
3238 else
3239 if test "$cross_compiling" = maybe; then
3240 cross_compiling=yes
3241 else
3242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3243If you meant to cross compile, use \`--host'.
3244See \`config.log' for more details." >&5
3245echo "$as_me: error: cannot run C compiled programs.
3246If you meant to cross compile, use \`--host'.
3247See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250 fi
3251fi
3252echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
3254
3255rm -f a.out a.exe conftest$ac_cv_exeext b.out
3256ac_clean_files=$ac_clean_files_save
3257# Check the compiler produces executables we can run. If not, either
3258# the compiler is broken, or we cross compile.
3259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3261echo "$as_me:$LINENO: result: $cross_compiling" >&5
3262echo "${ECHO_T}$cross_compiling" >&6
3263
3264echo "$as_me:$LINENO: checking for suffix of executables" >&5
3265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273# work properly (i.e., refer to `conftest.exe'), while it won't with
3274# `rm'.
3275for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 export ac_cv_exeext
3281 break;;
3282 * ) break;;
3283 esac
3284done
3285else
3286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details." >&5
3288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3289See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3291fi
3292
3293rm -f conftest$ac_cv_exeext
3294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3295echo "${ECHO_T}$ac_cv_exeext" >&6
3296
3297rm -f conftest.$ac_ext
3298EXEEXT=$ac_cv_exeext
3299ac_exeext=$EXEEXT
3300echo "$as_me:$LINENO: checking for suffix of object files" >&5
3301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3302if test "${ac_cv_objext+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320rm -f conftest.o conftest.obj
3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
3326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332done
cac3d6c4 3333else
c6b750e1
DJ
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338See \`config.log' for more details." >&5
3339echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3342fi
3343
3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345fi
3346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347echo "${ECHO_T}$ac_cv_objext" >&6
3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
3350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3352if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
3368
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_compiler_gnu=yes
3396else
3397 echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400ac_compiler_gnu=no
3401fi
3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405fi
3406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3408GCC=`test $ac_compiler_gnu = yes && echo yes`
3409ac_test_CFLAGS=${CFLAGS+set}
3410ac_save_CFLAGS=$CFLAGS
3411CFLAGS="-g"
3412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3414if test "${ac_cv_prog_cc_g+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417 cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
9e07f89d
NN
3454 ac_cv_prog_cc_g=yes
3455else
c6b750e1
DJ
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3458
c6b750e1 3459ac_cv_prog_cc_g=no
376a0e54 3460fi
c6b750e1
DJ
3461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3465if test "$ac_test_CFLAGS" = set; then
c6b750e1 3466 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3467elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3472 fi
3473else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3478 fi
3479fi
c6b750e1
DJ
3480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3482if test "${ac_cv_prog_cc_stdc+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485 ac_cv_prog_cc_stdc=no
3486ac_save_CC=$CC
3487cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493#include <stdarg.h>
3494#include <stdio.h>
3495#include <sys/types.h>
3496#include <sys/stat.h>
3497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3498struct buf { int x; };
3499FILE * (*rcsopen) (struct buf *, struct stat *, int);
3500static char *e (p, i)
3501 char **p;
3502 int i;
3503{
3504 return p[i];
3505}
3506static char *f (char * (*g) (char **, int), char **p, ...)
3507{
3508 char *s;
3509 va_list v;
3510 va_start (v,p);
3511 s = g (p, va_arg (v,int));
3512 va_end (v);
3513 return s;
3514}
3515
3516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3517 function prototypes and stuff, but not '\xHH' hex character constants.
3518 These don't provoke an error unfortunately, instead are silently treated
3519 as 'x'. The following induces an error, until -std1 is added to get
3520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3521 array size at least. It's necessary to write '\x00'==0 to get something
3522 that's true only with -std1. */
3523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3524
3525int test (int i, double x);
3526struct s1 {int (*f) (int a);};
3527struct s2 {int (*f) (double a);};
3528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529int argc;
3530char **argv;
3531int
3532main ()
3533{
3534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3535 ;
3536 return 0;
3537}
3538_ACEOF
3539# Don't try gcc -ansi; that turns off useful extensions and
3540# breaks some systems' header files.
3541# AIX -qlanglvl=ansi
3542# Ultrix and OSF/1 -std1
3543# HP-UX 10.20 and later -Ae
3544# HP-UX older versions -Aa -D_HPUX_SOURCE
3545# SVR4 -Xc -D__EXTENSIONS__
3546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3547do
3548 CC="$ac_save_CC $ac_arg"
3549 rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 ac_cv_prog_cc_stdc=$ac_arg
3572break
3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577fi
3578rm -f conftest.err conftest.$ac_objext
3579done
3580rm -f conftest.$ac_ext conftest.$ac_objext
3581CC=$ac_save_CC
3582
3583fi
3584
3585case "x$ac_cv_prog_cc_stdc" in
3586 x|xno)
3587 echo "$as_me:$LINENO: result: none needed" >&5
3588echo "${ECHO_T}none needed" >&6 ;;
3589 *)
3590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3592 CC="$CC $ac_cv_prog_cc_stdc" ;;
3593esac
3594
3595# Some people use a C++ compiler to compile C. Since we use `exit',
3596# in C++ we need to declare it. In case someone uses the same compiler
3597# for both compiling C and C++ we need to have the C++ compiler decide
3598# the declaration of exit, since it's the most demanding environment.
3599cat >conftest.$ac_ext <<_ACEOF
3600#ifndef __cplusplus
3601 choke me
3602#endif
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 for ac_declaration in \
3627 '' \
3628 'extern "C" void std::exit (int) throw (); using std::exit;' \
3629 'extern "C" void std::exit (int); using std::exit;' \
3630 'extern "C" void exit (int) throw ();' \
3631 'extern "C" void exit (int);' \
3632 'void exit (int);'
3633do
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640$ac_declaration
3641#include <stdlib.h>
3642int
3643main ()
3644{
3645exit (42);
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 :
3673else
3674 echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677continue
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680 cat >conftest.$ac_ext <<_ACEOF
3681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
3686$ac_declaration
3687int
3688main ()
3689{
3690exit (42);
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 break
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
3723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3724done
3725rm -f conftest*
3726if test -n "$ac_declaration"; then
3727 echo '#ifdef __cplusplus' >>confdefs.h
3728 echo $ac_declaration >>confdefs.h
3729 echo '#endif' >>confdefs.h
3730fi
3731
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736fi
3737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3743
18f6b6ee
PB
3744ac_ext=cc
3745ac_cpp='$CXXCPP $CPPFLAGS'
3746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3749if test -n "$ac_tool_prefix"; then
3750 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3751 do
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754echo "$as_me:$LINENO: checking for $ac_word" >&5
3755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756if test "${ac_cv_prog_CXX+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 if test -n "$CXX"; then
3760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773done
3774done
512b7dfb 3775
18f6b6ee
PB
3776fi
3777fi
3778CXX=$ac_cv_prog_CXX
3779if test -n "$CXX"; then
3780 echo "$as_me:$LINENO: result: $CXX" >&5
3781echo "${ECHO_T}$CXX" >&6
3782else
3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
3785fi
3786
3787 test -n "$CXX" && break
3788 done
3789fi
3790if test -z "$CXX"; then
3791 ac_ct_CXX=$CXX
3792 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3793do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 if test -n "$ac_ct_CXX"; then
3802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_CXX="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
512b7dfb 3814 fi
18f6b6ee
PB
3815done
3816done
512b7dfb 3817
18f6b6ee
PB
3818fi
3819fi
3820ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821if test -n "$ac_ct_CXX"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3823echo "${ECHO_T}$ac_ct_CXX" >&6
3824else
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
3827fi
3828
3829 test -n "$ac_ct_CXX" && break
3830done
3831test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3832
3833 CXX=$ac_ct_CXX
3834fi
3835
3836
3837# Provide some information about the compiler.
3838echo "$as_me:$LINENO:" \
3839 "checking for C++ compiler version" >&5
3840ac_compiler=`set X $ac_compile; echo $2`
3841{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3842 (eval $ac_compiler --version </dev/null >&5) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
3846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3847 (eval $ac_compiler -v </dev/null >&5) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
3851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3852 (eval $ac_compiler -V </dev/null >&5) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856
3857echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3858echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3859if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
3868
3869int
3870main ()
3871{
3872#ifndef __GNUC__
3873 choke me
3874#endif
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
3880rm -f conftest.$ac_objext
3881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882 (eval $ac_compile) 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_cxx_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_compiler_gnu=yes
3903else
3904 echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907ac_compiler_gnu=no
3908fi
3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3910ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3911
3912fi
3913echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3914echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3915GXX=`test $ac_compiler_gnu = yes && echo yes`
3916ac_test_CXXFLAGS=${CXXFLAGS+set}
3917ac_save_CXXFLAGS=$CXXFLAGS
3918CXXFLAGS="-g"
3919echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3920echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3921if test "${ac_cv_prog_cxx_g+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930
3931int
3932main ()
3933{
3934
3935 ;
3936 return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext
3940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_cxx_werror_flag"
3949 || test ! -s conftest.err'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; } &&
3955 { ac_try='test -s conftest.$ac_objext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_cv_prog_cxx_g=yes
3962else
3963 echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966ac_cv_prog_cxx_g=no
3967fi
3968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3969fi
3970echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3971echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3972if test "$ac_test_CXXFLAGS" = set; then
3973 CXXFLAGS=$ac_save_CXXFLAGS
3974elif test $ac_cv_prog_cxx_g = yes; then
3975 if test "$GXX" = yes; then
3976 CXXFLAGS="-g -O2"
3977 else
3978 CXXFLAGS="-g"
3979 fi
3980else
3981 if test "$GXX" = yes; then
3982 CXXFLAGS="-O2"
3983 else
3984 CXXFLAGS=
3985 fi
3986fi
3987for ac_declaration in \
3988 '' \
3989 'extern "C" void std::exit (int) throw (); using std::exit;' \
3990 'extern "C" void std::exit (int); using std::exit;' \
3991 'extern "C" void exit (int) throw ();' \
3992 'extern "C" void exit (int);' \
3993 'void exit (int);'
3994do
3995 cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
4001$ac_declaration
4002#include <stdlib.h>
4003int
4004main ()
4005{
4006exit (42);
4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext
4012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_cxx_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 :
4034else
4035 echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
4037
4038continue
4039fi
4040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047$ac_declaration
4048int
4049main ()
4050{
4051exit (42);
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_cxx_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 break
4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083fi
4084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085done
4086rm -f conftest*
4087if test -n "$ac_declaration"; then
4088 echo '#ifdef __cplusplus' >>confdefs.h
4089 echo $ac_declaration >>confdefs.h
4090 echo '#endif' >>confdefs.h
4091fi
4092
4093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099
4100# We must set the default linker to the linker used by gcc for the correct
4101# operation of libtool. If LD is not defined and we are using gcc, try to
4102# set the LD default to the ld used by gcc.
4103if test -z "$LD"; then
4104 if test "$GCC" = yes; then
4105 case $build in
4106 *-*-mingw*)
4107 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4108 *)
4109 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4110 esac
4111 case $gcc_prog_ld in
4112 # Accept absolute paths.
4113 [\\/]* | [A-Za-z]:[\\/]*)
4114 LD="$gcc_prog_ld" ;;
4115 esac
4116 fi
512b7dfb
PB
4117fi
4118
4119
4120
4121
c6b750e1 4122if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4123 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4124set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4125echo "$as_me:$LINENO: checking for $ac_word" >&5
4126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4127if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4128 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4129else
512b7dfb
PB
4130 if test -n "$GNATBIND"; then
4131 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4132else
c6b750e1
DJ
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4140 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
4145done
4146
9e07f89d
NN
4147fi
4148fi
512b7dfb
PB
4149GNATBIND=$ac_cv_prog_GNATBIND
4150if test -n "$GNATBIND"; then
4151 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4152echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4153else
c6b750e1
DJ
4154 echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6
9e07f89d
NN
4156fi
4157
c6b750e1 4158fi
512b7dfb
PB
4159if test -z "$ac_cv_prog_GNATBIND"; then
4160 ac_ct_GNATBIND=$GNATBIND
4161 # Extract the first word of "gnatbind", so it can be a program name with args.
4162set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4163echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4165if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4166 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4167else
512b7dfb
PB
4168 if test -n "$ac_ct_GNATBIND"; then
4169 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4170else
c6b750e1
DJ
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4178 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183done
4184
512b7dfb 4185 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4186fi
4187fi
512b7dfb
PB
4188ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4189if test -n "$ac_ct_GNATBIND"; then
4190 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4191echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4192else
c6b750e1
DJ
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
9e07f89d
NN
4195fi
4196
512b7dfb 4197 GNATBIND=$ac_ct_GNATBIND
24ff9987 4198else
512b7dfb 4199 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4200fi
4201
7df2cd5d 4202if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4203 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4204set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4207if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
512b7dfb
PB
4210 if test -n "$GNATMAKE"; then
4211 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4220 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225done
4226
4227fi
4228fi
512b7dfb
PB
4229GNATMAKE=$ac_cv_prog_GNATMAKE
4230if test -n "$GNATMAKE"; then
4231 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4232echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4233else
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236fi
4237
4238fi
512b7dfb
PB
4239if test -z "$ac_cv_prog_GNATMAKE"; then
4240 ac_ct_GNATMAKE=$GNATMAKE
4241 # Extract the first word of "gnatmake", so it can be a program name with args.
4242set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4243echo "$as_me:$LINENO: checking for $ac_word" >&5
4244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4245if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
512b7dfb
PB
4248 if test -n "$ac_ct_GNATMAKE"; then
4249 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4250else
4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4258 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262done
4263done
4264
512b7dfb 4265 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4266fi
4267fi
512b7dfb
PB
4268ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4269if test -n "$ac_ct_GNATMAKE"; then
4270 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4271echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4272else
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
4275fi
4276
512b7dfb 4277 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4278else
512b7dfb 4279 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4280fi
4281
c6b750e1
DJ
4282echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4283echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4284if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4286else
4287 cat >conftest.adb <<EOF
4288procedure conftest is begin null; end conftest;
4289EOF
4290acx_cv_cc_gcc_supports_ada=no
4291# There is a bug in old released versions of GCC which causes the
4292# driver to exit successfully when the appropriate language module
4293# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4294# Therefore we must check for the error message as well as an
4295# unsuccessful exit.
b8908782
DD
4296# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4297# given a .adb file, but produce no object file. So we must check
4298# if an object file was really produced to guard against this.
9e07f89d 4299errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4300if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4301 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4302fi
4303rm -f conftest.*
4304fi
c6b750e1
DJ
4305echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4306echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4307
512b7dfb 4308if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4309 have_gnat=yes
4310else
4311 have_gnat=no
4312fi
4313
c6b750e1
DJ
4314echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4315echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4316if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4318else
4319 echo abfoo >t1
4320 echo cdfoo >t2
4321 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4322 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4323 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4324 :
4325 else
4326 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4327 fi
4328 fi
b8908782
DD
4329 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4330 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4331 :
b8908782
DD
4332 else
4333 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4334 fi
4335 fi
4336 rm t1 t2
4337
4338fi
c6b750e1
DJ
4339echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4340echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4341do_compare="$gcc_cv_prog_cmp_skip"
4342
4343
9e07f89d 4344
11b04d1f 4345# Check for GMP and MPFR
4b900473 4346gmplibs="-lmpfr -lgmp"
4b1cb4fe 4347gmpinc=
4b900473
PB
4348have_gmp=no
4349
11b04d1f
DD
4350# Specify a location for mpfr
4351# check for this first so it ends up on the link line before gmp.
c6b750e1 4352
11b04d1f
DD
4353# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4354if test "${with_mpfr_dir+set}" = set; then
4355 withval="$with_mpfr_dir"
c6b750e1
DJ
4356 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4357Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4358echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4359Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4360 { (exit 1); exit 1; }; }
4361fi;
11b04d1f
DD
4362
4363
11b04d1f
DD
4364# Check whether --with-mpfr or --without-mpfr was given.
4365if test "${with_mpfr+set}" = set; then
4366 withval="$with_mpfr"
c6b750e1
DJ
4367
4368fi;
11b04d1f 4369
8a0d8a5c
PB
4370# Check whether --with-mpfr_include or --without-mpfr_include was given.
4371if test "${with_mpfr_include+set}" = set; then
4372 withval="$with_mpfr_include"
c6b750e1
DJ
4373
4374fi;
8a0d8a5c
PB
4375
4376# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4377if test "${with_mpfr_lib+set}" = set; then
4378 withval="$with_mpfr_lib"
8a0d8a5c 4379
c6b750e1 4380fi;
11b04d1f
DD
4381
4382if test "x$with_mpfr" != x; then
4383 gmplibs="-L$with_mpfr/lib $gmplibs"
4384 gmpinc="-I$with_mpfr/include"
4385fi
8a0d8a5c
PB
4386if test "x$with_mpfr_include" != x; then
4387 gmpinc="-I$with_mpfr_include"
4388fi
4389if test "x$with_mpfr_lib" != x; then
4390 gmplibs="-L$with_mpfr_lib $gmplibs"
4391fi
4b900473
PB
4392if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4393 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4394 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4395 # Do not test the mpfr version. Assume that it is sufficient, since
4396 # it is in the source tree, and the library has not been built yet
4397 # but it would be included on the link line in the version check below
4398 # hence making the test fail.
4399 have_gmp=yes
4400fi
11b04d1f 4401
4b1cb4fe 4402# Specify a location for gmp
c6b750e1 4403
4b1cb4fe
DD
4404# Check whether --with-gmp-dir or --without-gmp-dir was given.
4405if test "${with_gmp_dir+set}" = set; then
4406 withval="$with_gmp_dir"
c6b750e1
DJ
4407 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4408Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4409echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4410Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4411 { (exit 1); exit 1; }; }
4412fi;
4b1cb4fe
DD
4413
4414
4b1cb4fe
DD
4415# Check whether --with-gmp or --without-gmp was given.
4416if test "${with_gmp+set}" = set; then
4417 withval="$with_gmp"
c6b750e1
DJ
4418
4419fi;
4b1cb4fe 4420
8a0d8a5c
PB
4421# Check whether --with-gmp_include or --without-gmp_include was given.
4422if test "${with_gmp_include+set}" = set; then
4423 withval="$with_gmp_include"
c6b750e1
DJ
4424
4425fi;
8a0d8a5c
PB
4426
4427# Check whether --with-gmp_lib or --without-gmp_lib was given.
4428if test "${with_gmp_lib+set}" = set; then
4429 withval="$with_gmp_lib"
8a0d8a5c 4430
c6b750e1 4431fi;
8a0d8a5c 4432
4b1cb4fe 4433
11b04d1f
DD
4434if test "x$with_gmp" != x; then
4435 gmplibs="-L$with_gmp/lib $gmplibs"
4436 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4437fi
8a0d8a5c
PB
4438if test "x$with_gmp_include" != x; then
4439 gmpinc="-I$with_gmp_include $gmpinc"
4440fi
4441if test "x$with_gmp_lib" != x; then
4442 gmplibs="-L$with_gmp_lib $gmplibs"
4443fi
4b900473
PB
4444if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4445 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4446 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4447 # Do not test the gmp version. Assume that it is sufficient, since
4448 # it is in the source tree, and the library has not been built yet
4449 # but it would be included on the link line in the version check below
4450 # hence making the test fail.
4451 have_gmp=yes
4452fi
4b1cb4fe 4453
ceb92e78 4454if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4455 have_gmp=yes
4456 saved_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS $gmpinc"
4458 # Check GMP actually works
c6b750e1
DJ
4459 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4460echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4461
4462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4b1cb4fe 4468#include "gmp.h"
c6b750e1
DJ
4469int
4470main ()
4471{
4b1cb4fe 4472
4b900473
PB
4473 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4474 choke me
4475 #endif
c6b750e1
DJ
4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505else
4506 echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
4509echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; have_gmp=no
4511fi
4512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4513
4b900473
PB
4514 if test x"$have_gmp" = xyes; then
4515 saved_LIBS="$LIBS"
4516 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4517 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4518echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
9b134994 4525#include <gmp.h>
4b900473 4526 #include <mpfr.h>
c6b750e1
DJ
4527int
4528main ()
4529{
9b134994 4530
4b900473
PB
4531 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4532 choke me
4533 #endif
a3ca38d2
DD
4534 mpfr_t n;
4535 mpfr_t x;
4b900473 4536 int t;
a3ca38d2
DD
4537 mpfr_init (n);
4538 mpfr_init (x);
4b900473
PB
4539 mpfr_atan2 (n, n, x, GMP_RNDN);
4540 mpfr_erfc (n, x, GMP_RNDN);
4541 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547rm -f conftest.$ac_objext conftest$ac_exeext
4548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>conftest.er1
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
4b1cb4fe 4575#include <gmp.h>
4b900473 4576 #include <mpfr.h>
c6b750e1
DJ
4577int
4578main ()
4579{
9dbaa842 4580
4b900473
PB
4581 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4582 choke me
4583 #endif
4584 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext conftest$ac_exeext
4591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag"
4600 || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4619echo "${ECHO_T}buggy but acceptable" >&6
4620fi
4621rm -f conftest.err conftest.$ac_objext \
4622 conftest$ac_exeext conftest.$ac_ext
4623else
4624 echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; have_gmp=no
4629fi
4630rm -f conftest.err conftest.$ac_objext \
4631 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4632 LIBS="$saved_LIBS"
4633 fi
4634 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4635
4b900473 4636 if test x$have_gmp != xyes; then
c6b750e1
DJ
4637 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4638Try the --with-gmp and/or --with-mpfr options to specify their locations.
4639Copies of these libraries' source code can be found at their respective
4640hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4641See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4642If you obtained GMP and/or MPFR from a vendor distribution package, make
4643sure that you have installed both the libraries and the header files.
4644They may be located in separate packages." >&5
4645echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4646Try the --with-gmp and/or --with-mpfr options to specify their locations.
4647Copies of these libraries' source code can be found at their respective
4648hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4649See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4650If you obtained GMP and/or MPFR from a vendor distribution package, make
4651sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4652They may be located in separate packages." >&2;}
4653 { (exit 1); exit 1; }; }
4b900473 4654 fi
9dbaa842
DD
4655fi
4656
11b04d1f 4657# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4658
4659
4660
947f426e 4661# By default, C is the only stage 1 language.
9b134994 4662stage1_languages=,c,
1d39f329 4663
9e07f89d
NN
4664# Figure out what language subdirectories are present.
4665# Look if the user specified --enable-languages="..."; if not, use
4666# the environment variable $LANGUAGES if defined. $LANGUAGES might
4667# go away some day.
4668# NB: embedded tabs in this IF block -- do not untabify
4669if test -d ${srcdir}/gcc; then
4670 if test x"${enable_languages+set}" != xset; then
4671 if test x"${LANGUAGES+set}" = xset; then
4672 enable_languages="${LANGUAGES}"
4673 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4674 else
4675 enable_languages=all
4676 fi
4677 else
4678 if test x"${enable_languages}" = x ||
4679 test x"${enable_languages}" = xyes;
4680 then
4681 echo configure.in: --enable-languages needs at least one language argument 1>&2
4682 exit 1
4683 fi
4684 fi
4685 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4686
096f7d00
DE
4687 # 'f95' is the old name for the 'fortran' language. We issue a warning
4688 # and make the substitution.
4689 case ,${enable_languages}, in
4690 *,f95,*)
4691 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4692 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4693 ;;
4694 esac
4695
9e07f89d
NN
4696 # First scan to see if an enabled language requires some other language.
4697 # We assume that a given config-lang.in will list all the language
4698 # front ends it requires, even if some are required indirectly.
4699 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4700 case ${lang_frag} in
4701 ..) ;;
4702 # The odd quoting in the next line works around
4703 # an apparent bug in bash 1.12 on linux.
4704 ${srcdir}/gcc/[*]/config-lang.in) ;;
4705 *)
4706 # From the config-lang.in, get $language, $lang_requires
4707 language=
4708 lang_requires=
4709 . ${lang_frag}
4710 for other in ${lang_requires} ; do
4711 case ,${enable_languages}, in
4712 *,$other,*) ;;
4713 *,all,*) ;;
4714 *,$language,*)
4715 echo " \`$other' language required by \`$language'; enabling" 1>&2
4716 enable_languages="${enable_languages},${other}"
4717 ;;
4718 esac
4719 done
4720 ;;
4721 esac
4722 done
4723
9b134994 4724 new_enable_languages=,c,
9e07f89d 4725 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4726 potential_languages=,c,
9e07f89d
NN
4727
4728 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4729 case ${lang_frag} in
4730 ..) ;;
4731 # The odd quoting in the next line works around
4732 # an apparent bug in bash 1.12 on linux.
4733 ${srcdir}/gcc/[*]/config-lang.in) ;;
4734 *)
c6b750e1 4735 # From the config-lang.in, get $language, $target_libs,
1d39f329 4736 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4737 language=
4738 target_libs=
4739 lang_dirs=
64ce424c 4740 subdir_requires=
9b134994
PB
4741 boot_language=no
4742 build_by_default=yes
9e07f89d 4743 . ${lang_frag}
9b134994
PB
4744 if test x${language} = x; then
4745 echo "${lang_frag} doesn't set \$language." 1>&2
4746 exit 1
4747 fi
4748
4749 case ,${enable_languages}, in
4750 *,${language},*)
9e07f89d
NN
4751 # Language was explicitly selected; include it.
4752 add_this_lang=yes
4753 ;;
9b134994
PB
4754 *,all,*)
4755 # 'all' was selected, select it if it is a default language
4756 add_this_lang=${build_by_default}
9e07f89d
NN
4757 ;;
4758 *)
4759 add_this_lang=no
4760 ;;
4761 esac
4b1cb4fe 4762
64ce424c 4763 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4764 for i in $subdir_requires; do
3d3adb43 4765 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4766 case ,${enable_languages}, in
4767 *,${language},*)
4768 # Specifically requested language; tell them.
c6b750e1
DJ
4769 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4770echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4771 { (exit 1); exit 1; }; }
64ce424c
PB
4772 ;;
4773 *)
4774 # Silently disable.
9b134994 4775 add_this_lang=unsupported
64ce424c
PB
4776 ;;
4777 esac
4778 done
4779
9b134994
PB
4780 # Disable Ada if no preexisting GNAT is available.
4781 case ,${enable_languages},:${language}:${have_gnat} in
4782 *,${language},*:ada:no)
4783 # Specifically requested language; tell them.
c6b750e1
DJ
4784 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4785echo "$as_me: error: GNAT is required to build $language" >&2;}
4786 { (exit 1); exit 1; }; }
9b134994
PB
4787 ;;
4788 *:ada:no)
4789 # Silently disable.
4790 add_this_lang=unsupported
4791 ;;
4792 esac
4793
59f7ec45
HPN
4794 # Disable a language that is unsupported by the target.
4795 case " $unsupported_languages " in
4796 *" $language "*)
9b134994 4797 add_this_lang=unsupported
59f7ec45
HPN
4798 ;;
4799 esac
4800
4b1cb4fe 4801 case $add_this_lang in
9b134994 4802 unsupported)
9e07f89d 4803 # Remove language-dependent dirs.
1d39f329
NN
4804 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4805 ;;
9b134994
PB
4806 no)
4807 # Remove language-dependent dirs; still show language as supported.
4808 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4809 potential_languages="${potential_languages}${language},"
4810 ;;
4811 yes)
4812 new_enable_languages="${new_enable_languages}${language},"
4813 potential_languages="${potential_languages}${language},"
1d39f329
NN
4814 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4815 case ${boot_language} in
4816 yes)
4fa63067 4817 # Add to (comma-separated) list of stage 1 languages.
9b134994 4818 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4819 ;;
4820 esac
4821 ;;
9e07f89d
NN
4822 esac
4823 ;;
4824 esac
4825 done
4826
9b134994
PB
4827 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4828if test "${enable_stage1_languages+set}" = set; then
4829 enableval="$enable_stage1_languages"
4830 case ,${enable_stage1_languages}, in
4831 ,no,|,,)
4832 # Set it to something that will have no effect in the loop below
4833 enable_stage1_languages=c ;;
4834 ,yes,)
4835 enable_stage1_languages=`echo $new_enable_languages | \
4836 sed -e "s/^,//" -e "s/,$//" ` ;;
4837 *,all,*)
4838 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4839 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4840 esac
4841
4842 # Add "good" languages from enable_stage1_languages to stage1_languages,
4843 # while "bad" languages go in missing_languages. Leave no duplicates.
4844 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4845 case $potential_languages in
4846 *,$i,*)
4847 case $stage1_languages in
4848 *,$i,*) ;;
4849 *) stage1_languages="$stage1_languages$i," ;;
4850 esac ;;
4851 *)
4852 case $missing_languages in
4853 *,$i,*) ;;
4854 *) missing_languages="$missing_languages$i," ;;
4855 esac ;;
4856 esac
4857 done
c6b750e1 4858fi;
9b134994
PB
4859
4860 # Remove leading/trailing commas that were added for simplicity
4861 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4862 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4863 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4864 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4865
9e07f89d 4866 if test "x$missing_languages" != x; then
c6b750e1 4867 { { echo "$as_me:$LINENO: error:
27258dd4 4868The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4869Supported languages are: ${potential_languages}" >&5
4870echo "$as_me: error:
4871The following requested languages could not be built: ${missing_languages}
4872Supported languages are: ${potential_languages}" >&2;}
4873 { (exit 1); exit 1; }; }
9e07f89d 4874 fi
9e07f89d
NN
4875 if test "x$new_enable_languages" != "x$enable_languages"; then
4876 echo The following languages will be built: ${new_enable_languages}
9b134994 4877 enable_languages="$new_enable_languages"
9e07f89d 4878 fi
9b134994 4879
c6b750e1 4880
81ec575a 4881 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4882fi
4883
a6df5a19
PB
4884# Handle --disable-<component> generically.
4885for dir in $configdirs $build_configdirs $target_configdirs ; do
4886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4887 if eval test x\${enable_${dirname}} "=" xno ; then
4888 noconfigdirs="$noconfigdirs $dir"
4889 fi
4890done
4891
4f0ef2d8
CD
4892# Check for Boehm's garbage collector
4893# Check whether --enable-objc-gc or --disable-objc-gc was given.
4894if test "${enable_objc_gc+set}" = set; then
4895 enableval="$enable_objc_gc"
4896 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4897 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4898 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4899echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4900 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4901 ;;
4902esac
c6b750e1 4903fi;
4f0ef2d8
CD
4904
4905# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4906case ,${enable_languages},:${enable_objc_gc} in
4907 *,objc,*:yes)
4f0ef2d8
CD
4908 # Keep target-boehm-gc if requested for Objective-C.
4909 ;;
4f0ef2d8 4910 *)
d42c4017
DA
4911 # Otherwise remove target-boehm-gc depending on target-libjava.
4912 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4913 noconfigdirs="$noconfigdirs target-boehm-gc"
4914 fi
4f0ef2d8
CD
4915 ;;
4916esac
4917
caeba88f
AL
4918# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4919# $build_configdirs and $target_configdirs.
9e07f89d
NN
4920# If we have the source for $noconfigdirs entries, add them to $notsupp.
4921
4922notsupp=""
4923for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4924 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4925 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4926 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4927 if test -r $srcdir/$dirname/configure ; then
4928 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4929 true
4930 else
4931 notsupp="$notsupp $dir"
4932 fi
4933 fi
4934 fi
caeba88f
AL
4935 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4936 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4937 if test -r $srcdir/$dirname/configure ; then
4938 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4939 true
4940 else
4941 notsupp="$notsupp $dir"
4942 fi
4943 fi
4944 fi
9e07f89d
NN
4945 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4946 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4947 if test -r $srcdir/$dirname/configure ; then
4948 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4949 true
4950 else
4951 notsupp="$notsupp $dir"
4952 fi
4953 fi
4954 fi
4955done
4956
4957# Sometimes the tools are distributed with libiberty but with no other
4958# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4959# Don't let libgcc imply libiberty either.
9e07f89d 4960if test -n "${target_configdirs}" ; then
f86e35b8 4961 libgcc=
9e07f89d
NN
4962 others=
4963 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4964 if test "$i" = "libgcc"; then
4965 libgcc=target-libgcc
4966 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4967 if test -r $srcdir/$i/configure ; then
4968 others=yes;
4969 break;
4970 fi
4971 fi
4972 done
4973 if test -z "${others}" ; then
f86e35b8 4974 target_configdirs=$libgcc
9e07f89d
NN
4975 fi
4976fi
4977
4978# Quietly strip out all directories which aren't configurable in this tree.
4979# This relies on all configurable subdirectories being autoconfiscated, which
4980# is now the case.
6a9cf61e
PB
4981build_configdirs_all="$build_configdirs"
4982build_configdirs=
4983for i in ${build_configdirs_all} ; do
c6b750e1 4984 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4985 if test -f ${srcdir}/$j/configure ; then
4986 build_configdirs="${build_configdirs} $i"
4987 fi
4988done
4989
9e07f89d
NN
4990configdirs_all="$configdirs"
4991configdirs=
4992for i in ${configdirs_all} ; do
4993 if test -f ${srcdir}/$i/configure ; then
4994 configdirs="${configdirs} $i"
4995 fi
4996done
6a9cf61e 4997
9e07f89d
NN
4998target_configdirs_all="$target_configdirs"
4999target_configdirs=
5000for i in ${target_configdirs_all} ; do
c6b750e1 5001 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5002 if test -f ${srcdir}/$j/configure ; then
5003 target_configdirs="${target_configdirs} $i"
5004 fi
5005done
5006
5007# Produce a warning message for the subdirs we can't configure.
5008# This isn't especially interesting in the Cygnus tree, but in the individual
5009# FSF releases, it's important to let people know when their machine isn't
5010# supported by the one or two programs in a package.
5011
5012if test -n "${notsupp}" && test -z "${norecursion}" ; then
5013 # If $appdirs is non-empty, at least one of those directories must still
5014 # be configured, or we error out. (E.g., if the gas release supports a
5015 # specified target in some subdirs but not the gas subdir, we shouldn't
5016 # pretend that all is well.)
5017 if test -n "$appdirs" ; then
5018 for dir in $appdirs ; do
5019 if test -r $dir/Makefile.in ; then
5020 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5021 appdirs=""
5022 break
5023 fi
6a9cf61e 5024 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5025 appdirs=""
5026 break
5027 fi
5028 fi
5029 done
5030 if test -n "$appdirs" ; then
5031 echo "*** This configuration is not supported by this package." 1>&2
5032 exit 1
5033 fi
5034 fi
5035 # Okay, some application will build, or we don't care to check. Still
5036 # notify of subdirs not getting built.
5037 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5038 echo " ${notsupp}" 1>&2
5039 echo " (Any other directories should still work fine.)" 1>&2
5040fi
5041
5042case "$host" in
5043 *msdosdjgpp*)
5044 enable_gdbtk=no ;;
5045esac
5046
18f6b6ee
PB
5047# To find our prefix, in gcc_cv_tool_prefix.
5048
5049# The user is always right.
5050if test "${PATH_SEPARATOR+set}" != set; then
5051 echo "#! /bin/sh" >conf$$.sh
5052 echo "exit 0" >>conf$$.sh
5053 chmod +x conf$$.sh
5054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5055 PATH_SEPARATOR=';'
5056 else
5057 PATH_SEPARATOR=:
5058 fi
5059 rm -f conf$$.sh
5060fi
5061
5062
5063
5064if test "x$exec_prefix" = xNONE; then
5065 if test "x$prefix" = xNONE; then
5066 gcc_cv_tool_prefix=$ac_default_prefix
5067 else
5068 gcc_cv_tool_prefix=$prefix
5069 fi
5070else
5071 gcc_cv_tool_prefix=$exec_prefix
5072fi
5073
5074# If there is no compiler in the tree, use the PATH only. In any
5075# case, if there is no compiler in the tree nobody should use
5076# AS_FOR_TARGET and LD_FOR_TARGET.
5077if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5078 gcc_version=`cat $srcdir/gcc/BASE-VER`
5079 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5080 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5085else
5086 gcc_cv_tool_dirs=
5087fi
5088
5089if test x$build = x$target && test -n "$md_exec_prefix"; then
5090 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5091fi
5092
5093
5094
9e07f89d
NN
5095copy_dirs=
5096
c6b750e1 5097
a19b6204
MM
5098# Check whether --with-build-sysroot or --without-build-sysroot was given.
5099if test "${with_build_sysroot+set}" = set; then
5100 withval="$with_build_sysroot"
5101 if test x"$withval" != x ; then
5102 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5103 fi
5104else
5105 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5106fi;
a19b6204
MM
5107
5108
8a6ee3ab
JM
5109
5110# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5111if test "${with_debug_prefix_map+set}" = set; then
5112 withval="$with_debug_prefix_map"
5113 if test x"$withval" != x; then
5114 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5115 for debug_map in $withval; do
5116 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5117 done
5118 fi
5119else
5120 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5121fi;
5122
5123
9e07f89d
NN
5124# Handle --with-headers=XXX. If the value is not "yes", the contents of
5125# the named directory are copied to $(tooldir)/sys-include.
5126if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5127 if test x${is_cross_compiler} = xno ; then
5128 echo 1>&2 '***' --with-headers is only supported when cross compiling
5129 exit 1
5130 fi
5131 if test x"${with_headers}" != xyes ; then
18f6b6ee 5132 x=${gcc_cv_tool_prefix}
c6b750e1 5133 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5134 fi
5135fi
5136
5137# Handle --with-libs=XXX. If the value is not "yes", the contents of
5138# the name directories are copied to $(tooldir)/lib. Multiple directories
5139# are permitted.
5140if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5141 if test x${is_cross_compiler} = xno ; then
5142 echo 1>&2 '***' --with-libs is only supported when cross compiling
5143 exit 1
5144 fi
5145 if test x"${with_libs}" != xyes ; then
5146 # Copy the libraries in reverse order, so that files in the first named
5147 # library override files in subsequent libraries.
18f6b6ee 5148 x=${gcc_cv_tool_prefix}
9e07f89d 5149 for l in ${with_libs}; do
c6b750e1 5150 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5151 done
5152 fi
5153fi
5154
2429c060
PB
5155# Set with_gnu_as and with_gnu_ld as appropriate.
5156#
5157# This is done by determining whether or not the appropriate directory
5158# is available, and by checking whether or not specific configurations
5159# have requested that this magic not happen.
c6b750e1
DJ
5160#
5161# The command line options always override the explicit settings in
2429c060
PB
5162# configure.in, and the settings in configure.in override this magic.
5163#
c6b750e1 5164# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5165# want to do that, then you should use the --without-gnu-as and
5166# --without-gnu-ld options for the configure script.
5167
5168if test x${use_gnu_as} = x &&
5169 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5170 with_gnu_as=yes
5171 extra_host_args="$extra_host_args --with-gnu-as"
5172fi
5173
5174if test x${use_gnu_ld} = x &&
5175 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5176 with_gnu_ld=yes
5177 extra_host_args="$extra_host_args --with-gnu-ld"
5178fi
5179
5180# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5181# can detect this case.
5182
5183if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5184 with_newlib=yes
5185 extra_host_args="$extra_host_args --with-newlib"
5186fi
5187
9e07f89d
NN
5188# Handle ${copy_dirs}
5189set fnord ${copy_dirs}
5190shift
5191while test $# != 0 ; do
5192 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5193 :
5194 else
5195 echo Copying $1 to $2
5196
5197 # Use the install script to create the directory and all required
5198 # parent directories.
5199 if test -d $2 ; then
5200 :
5201 else
5202 echo >config.temp
5203 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5204 fi
5205
5206 # Copy the directory, assuming we have tar.
5207 # FIXME: Should we use B in the second tar? Not all systems support it.
5208 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5209
5210 # It is the responsibility of the user to correctly adjust all
5211 # symlinks. If somebody can figure out how to handle them correctly
5212 # here, feel free to add the code.
5213
5214 echo $1 > $2/COPIED
5215 fi
5216 shift; shift
5217done
5218
2429c060
PB
5219# Determine a target-dependent exec_prefix that the installed
5220# gcc will search in. Keep this list sorted by triplet, with
5221# the *-*-osname triplets last.
5222md_exec_prefix=
5223case "${target}" in
5224 alpha*-*-*vms*)
5225 md_exec_prefix=/gnu/lib/gcc-lib
5226 ;;
521ec477 5227 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5228 md_exec_prefix=/dev/env/DJDIR/bin
5229 ;;
521ec477 5230 i[34567]86-*-sco3.2v5*)
2429c060
PB
5231 if test $with_gnu_as = yes; then
5232 md_exec_prefix=/usr/gnu/bin
5233 else
5234 md_exec_prefix=/usr/ccs/bin/elf
5235 fi
5236 ;;
5237
5238 mn10300-*-* | \
5239 powerpc-*-chorusos* | \
5240 powerpc*-*-eabi* | \
5241 powerpc*-*-sysv* | \
5242 powerpc*-*-kaos* | \
5243 s390x-ibm-tpf*)
5244 md_exec_prefix=/usr/ccs/bin
5245 ;;
5246 sparc64-*-elf*)
5247 ;;
5248 v850*-*-*)
5249 md_exec_prefix=/usr/ccs/bin
5250 ;;
5251 xtensa-*-elf*)
5252 ;;
5253
5254 *-*-beos* | \
5255 *-*-elf* | \
5256 *-*-hpux* | \
5257 *-*-netware* | \
5258 *-*-nto-qnx* | \
5259 *-*-rtems* | \
5260 *-*-solaris2* | \
521ec477 5261 *-*-sysv[45]* | \
2429c060
PB
5262 *-*-vxworks* | \
5263 *-wrs-windiss)
5264 md_exec_prefix=/usr/ccs/bin
5265 ;;
5266esac
5267
a0da8069
NN
5268extra_arflags_for_target=
5269extra_nmflags_for_target=
5270extra_ranlibflags_for_target=
5271target_makefile_frag=/dev/null
5272case "${target}" in
4e206d7e
DB
5273 mep*-*-*)
5274 target_makefile_frag="config/mt-mep"
5275 ;;
77d7106f
AM
5276 spu-*-*)
5277 target_makefile_frag="config/mt-spu"
5278 ;;
429acdec
RS
5279 mips*-sde-elf*)
5280 target_makefile_frag="config/mt-sde"
5281 ;;
f3b1e08e
RS
5282 mipsisa*-*-elfoabi*)
5283 target_makefile_frag="config/mt-mips-elfoabi"
5284 ;;
2a3124ca 5285 *-*-netware*)
a0da8069
NN
5286 target_makefile_frag="config/mt-netware"
5287 ;;
3d6dfe0f
NN
5288 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5289 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5290 ;;
5291 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5292 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5293 # commands to handle both 32-bit and 64-bit objects. These flags are
5294 # harmless if we're using GNU nm or ar.
5295 extra_arflags_for_target=" -X32_64"
5296 extra_nmflags_for_target=" -B -X32_64"
5297 ;;
5298 *-*-darwin*)
5299 # ranlib from Darwin requires the -c flag to look at common symbols.
5300 extra_ranlibflags_for_target=" -c"
5301 ;;
5302 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5303 target_makefile_frag="config/mt-wince"
5304 ;;
5305esac
5306
5307alphaieee_frag=/dev/null
5308case $target in
5309 alpha*-*-*)
5310 # This just makes sure to use the -mieee option to build target libs.
5311 # This should probably be set individually by each library.
5312 alphaieee_frag="config/mt-alphaieee"
5313 ;;
5314esac
5315
5316# If --enable-target-optspace always use -Os instead of -O2 to build
5317# the target libraries, similarly if it is not specified, use -Os
5318# on selected platforms.
5319ospace_frag=/dev/null
5320case "${enable_target_optspace}:${target}" in
5321 yes:*)
5322 ospace_frag="config/mt-ospace"
5323 ;;
5324 :d30v-*)
5325 ospace_frag="config/mt-d30v"
5326 ;;
5327 :m32r-* | :d10v-* | :fr30-*)
5328 ospace_frag="config/mt-ospace"
5329 ;;
5330 no:* | :*)
5331 ;;
5332 *)
5333 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5334 ;;
5335esac
5336
a0da8069
NN
5337# Default to using --with-stabs for certain targets.
5338if test x${with_stabs} = x ; then
5339 case "${target}" in
e31d1ea3 5340 mips*-*-irix[56]*)
a0da8069
NN
5341 ;;
5342 mips*-*-* | alpha*-*-osf*)
5343 with_stabs=yes;
5344 extra_host_args="${extra_host_args} --with-stabs"
5345 ;;
5346 esac
5347fi
5348
5349# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5350# them automatically.
5351case "${host}" in
c6b750e1 5352 hppa*64*-*-hpux11*)
a0da8069
NN
5353 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5354 ;;
5355esac
5356
a0da8069
NN
5357# Some systems (e.g., one of the i386-aix systems the gas testers are
5358# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5359tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5360build_tooldir=${tooldir}
5361
a0da8069
NN
5362# Create a .gdbinit file which runs the one in srcdir
5363# and tells GDB to look there for source files.
5364
5365if test -r ${srcdir}/.gdbinit ; then
5366 case ${srcdir} in
5367 .) ;;
5368 *) cat > ./.gdbinit <<EOF
5369# ${NO_EDIT}
5370dir ${srcdir}
5371dir .
5372source ${srcdir}/.gdbinit
5373EOF
5374 ;;
5375 esac
5376fi
5377
a0da8069
NN
5378# Make sure that the compiler is able to generate an executable. If it
5379# can't, we are probably in trouble. We don't care whether we can run the
5380# executable--we might be using a cross compiler--we only care whether it
5381# can be created. At this point the main configure script has set CC.
5382we_are_ok=no
5383echo "int main () { return 0; }" > conftest.c
5384${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5385if test $? = 0 ; then
5386 if test -s conftest || test -s conftest.exe ; then
5387 we_are_ok=yes
5388 fi
c6b750e1 5389fi
a0da8069
NN
5390case $we_are_ok in
5391 no)
5392 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5393 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5394 rm -f conftest*
5395 exit 1
5396 ;;
5397esac
5398rm -f conftest*
5399
5400# The Solaris /usr/ucb/cc compiler does not appear to work.
5401case "${host}" in
5402 sparc-sun-solaris2*)
5403 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5404 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5405 could_use=
5406 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5407 if test -d /opt/cygnus/bin ; then
5408 if test "$could_use" = "" ; then
5409 could_use="/opt/cygnus/bin"
5410 else
5411 could_use="$could_use or /opt/cygnus/bin"
5412 fi
5413 fi
5414 if test "$could_use" = "" ; then
5415 echo "Warning: compilation may fail because you're using"
5416 echo "/usr/ucb/cc. You should change your PATH or CC "
5417 echo "variable and rerun configure."
5418 else
5419 echo "Warning: compilation may fail because you're using"
5420 echo "/usr/ucb/cc, when you should use the C compiler from"
5421 echo "$could_use. You should change your"
5422 echo "PATH or CC variable and rerun configure."
5423 fi
5424 fi
5425 ;;
5426esac
5427
a0da8069
NN
5428case "${host}" in
5429 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5430 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5431 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5432esac
5433
5434# Record target_configdirs and the configure arguments for target and
5435# build configuration in Makefile.
5436target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5437build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5438
a0da8069
NN
5439# Determine whether gdb needs tk/tcl or not.
5440# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5441# and in that case we want gdb to be built without tk. Ugh!
5442# In fact I believe gdb is the *only* package directly dependent on tk,
5443# so we should be able to put the 'maybe's in unconditionally and
5444# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5445# 100% sure that that's safe though.
c180f501 5446
675c6968 5447gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5448case "$enable_gdbtk" in
5449 no)
5450 GDB_TK="" ;;
c180f501
AC
5451 yes)
5452 GDB_TK="${gdb_tk}" ;;
a0da8069 5453 *)
c180f501
AC
5454 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5455 # distro. Eventually someone will fix this and move Insight, nee
5456 # gdbtk to a separate directory.
5457 if test -d ${srcdir}/gdb/gdbtk ; then
5458 GDB_TK="${gdb_tk}"
5459 else
5460 GDB_TK=""
5461 fi
5462 ;;
a0da8069 5463esac
907be67c
DJ
5464CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5465INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5466
6bd3dfaa 5467# Strip out unwanted targets.
dd12c3a8
NN
5468
5469# While at that, we remove Makefiles if we were started for recursive
5470# configuration, so that the top-level Makefile reconfigures them,
5471# like we used to do when configure itself was recursive.
dd12c3a8 5472
6bd3dfaa
PB
5473# Loop over modules. $extrasub must be used with care, limiting as
5474# much as possible the usage of range addresses. That's because autoconf
5475# splits the sed script to overcome limits in the number of commands,
5476# and relying on carefully-timed sed passes may turn out to be very hard
5477# to maintain later. In this particular case, you just have to be careful
5478# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5479
319cab08
PB
5480# Check whether --enable-bootstrap or --disable-bootstrap was given.
5481if test "${enable_bootstrap+set}" = set; then
5482 enableval="$enable_bootstrap"
c6b750e1 5483
319cab08 5484else
9cb3fa6f 5485 enable_bootstrap=default
c6b750e1 5486fi;
319cab08 5487
9cb3fa6f
PB
5488# Issue errors and warnings for invalid/strange bootstrap combinations.
5489case "$configdirs" in
5490 *gcc*) have_compiler=yes ;;
5491 *) have_compiler=no ;;
5492esac
5493
5494case "$have_compiler:$host:$target:$enable_bootstrap" in
5495 *:*:*:no) ;;
5496
0aed8855 5497 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5498 # and we are in a native configuration.
5499 yes:$build:$build:default)
0aed8855 5500 enable_bootstrap=yes ;;
9cb3fa6f
PB
5501
5502 *:*:*:default)
5503 enable_bootstrap=no ;;
5504
5505 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5506 yes:$build:$build:yes)
9cb3fa6f
PB
5507 ;;
5508
5509 # Other configurations, but we have a compiler. Assume the user knows
5510 # what he's doing.
80911fe1 5511 yes:*:*:yes)
c6b750e1
DJ
5512 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5513echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5514 ;;
5515
5516 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5517 no:*:*:yes)
c6b750e1
DJ
5518 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5519echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5520 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5521
5522 # Fail if wrong command line
5523 *)
c6b750e1
DJ
5524 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5525echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5526 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5527 ;;
5528esac
5529
5530# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5531case "$enable_bootstrap" in
5532 yes)
498d4a71 5533 bootstrap_suffix=bootstrap ;;
319cab08 5534 no)
498d4a71 5535 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5536esac
5537
6a9cf61e 5538for module in ${build_configdirs} ; do
498d4a71
CF
5539 if test -z "${no_recursion}" \
5540 && test -f ${build_subdir}/${module}/Makefile; then
5541 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5542 rm -f ${build_subdir}/${module}/Makefile
5543 fi
5544 extrasub="$extrasub
5545/^@if build-$module\$/d
5546/^@endif build-$module\$/d
5547/^@if build-$module-$bootstrap_suffix\$/d
5548/^@endif build-$module-$bootstrap_suffix\$/d"
5549done
5550for module in ${configdirs} ; do
80911fe1 5551 if test -z "${no_recursion}"; then
8cf39b1b 5552 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5553 if test -f ${file}; then
5554 echo 1>&2 "*** removing ${file} to force reconfigure"
5555 rm -f ${file}
5556 fi
5557 done
498d4a71
CF
5558 fi
5559 extrasub="$extrasub
5560/^@if $module\$/d
5561/^@endif $module\$/d
5562/^@if $module-$bootstrap_suffix\$/d
5563/^@endif $module-$bootstrap_suffix\$/d"
5564done
5565for module in ${target_configdirs} ; do
5566 if test -z "${no_recursion}" \
5567 && test -f ${target_subdir}/${module}/Makefile; then
5568 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5569 rm -f ${target_subdir}/${module}/Makefile
5570 fi
5571 extrasub="$extrasub
5572/^@if target-$module\$/d
5573/^@endif target-$module\$/d
5574/^@if target-$module-$bootstrap_suffix\$/d
5575/^@endif target-$module-$bootstrap_suffix\$/d"
5576done
5577
6bd3dfaa
PB
5578extrasub="$extrasub
5579/^@if /,/^@endif /d"
a0da8069
NN
5580
5581# Create the serialization dependencies. This uses a temporary file.
5582
e6bfb94a
AO
5583# Check whether --enable-serial-configure or --disable-serial-configure was given.
5584if test "${enable_serial_configure+set}" = set; then
5585 enableval="$enable_serial_configure"
e6bfb94a 5586
c6b750e1 5587fi;
e6bfb94a 5588
1047cb91
DD
5589case ${enable_serial_configure} in
5590 yes)
5591 enable_serial_build_configure=yes
5592 enable_serial_host_configure=yes
5593 enable_serial_target_configure=yes
5594 ;;
5595esac
5596
a0da8069
NN
5597# These force 'configure's to be done one at a time, to avoid problems
5598# with contention over a shared config.cache.
5599rm -f serdep.tmp
e6bfb94a 5600echo '# serdep.tmp' > serdep.tmp
a0da8069 5601olditem=
1047cb91 5602test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5603for item in ${build_configdirs} ; do
5604 case ${olditem} in
5605 "") ;;
e6bfb94a 5606 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5607 esac
5608 olditem=${item}
5609done
5610olditem=
1047cb91 5611test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5612for item in ${configdirs} ; do
5613 case ${olditem} in
5614 "") ;;
e6bfb94a 5615 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5616 esac
5617 olditem=${item}
5618done
5619olditem=
1047cb91 5620test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5621for item in ${target_configdirs} ; do
5622 case ${olditem} in
5623 "") ;;
e6bfb94a 5624 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5625 esac
5626 olditem=${item}
5627done
5628serialization_dependencies=serdep.tmp
5629
5630
e6bfb94a 5631# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5632# target, nonopt, and variable assignments. These are the ones we
5633# might not want to pass down to subconfigures. Also strip
5634# program-prefix, program-suffix, and program-transform-name, so that
5635# we can pass down a consistent program-transform-name.
5636baseargs=
5637keep_next=no
5638skip_next=no
5639eval "set -- $ac_configure_args"
18f6b6ee
PB
5640for ac_arg
5641do
c6b750e1
DJ
5642 if test X"$skip_next" = X"yes"; then
5643 skip_next=no
5644 continue
5645 fi
5646 if test X"$keep_next" = X"yes"; then
5647 case $ac_arg in
5648 *\'*)
5649 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5650 esac
5651 baseargs="$baseargs '$ac_arg'"
5652 keep_next=no
5653 continue
5654 fi
5655
5656 # Handle separated arguments. Based on the logic generated by
5657 # autoconf 2.59.
5658 case $ac_arg in
5659 *=* | --config-cache | -C | -disable-* | --disable-* \
5660 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5661 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5662 | -with-* | --with-* | -without-* | --without-* | --x)
5663 separate_arg=no
5664 ;;
5665 -*)
5666 separate_arg=yes
5667 ;;
5668 *)
5669 separate_arg=no
5670 ;;
5671 esac
5672
5673 case "$ac_arg" in
5674 --no*)
5675 continue
5676 ;;
5677 --c* | \
5678 --sr* | \
5679 --ho* | \
5680 --bu* | \
5681 --t* | \
5682 --program-* | \
5683 -cache_file* | \
5684 -srcdir* | \
5685 -host* | \
5686 -build* | \
5687 -target* | \
5688 -program-prefix* | \
5689 -program-suffix* | \
5690 -program-transform-name* )
5691 skip_next=$separate_arg
5692 continue
5693 ;;
5694 -*)
5695 # An option. Add it.
5696 case $ac_arg in
5697 *\'*)
5698 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5699 esac
5700 baseargs="$baseargs '$ac_arg'"
5701 keep_next=$separate_arg
5702 ;;
5703 *)
5704 # Either a variable assignment, or a nonopt (triplet). Don't
5705 # pass it down; let the Makefile handle this.
5706 continue
5707 ;;
5708 esac
5709done
5710# Remove the initial space we just introduced and, as these will be
5711# expanded by make, quote '$'.
5712baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5713
f27d4f92
DJ
5714# Add in --program-transform-name, after --program-prefix and
5715# --program-suffix have been applied to it. Autoconf has already
5716# doubled dollar signs and backslashes in program_transform_name; we want
5717# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5718# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5719# Also, because we want to override the logic in subdir configure scripts to
5720# choose program_transform_name, replace any s,x,x, with s,y,y,.
5721sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5722${program_transform_name}
5723EOF_SED
5724gcc_transform_name=`cat conftestsed.out`
5725rm -f conftestsed.out
5726baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5727if test "$silent" = yes; then
5728 baseargs="$baseargs --silent"
5729fi
f27d4f92 5730
a0da8069
NN
5731# For the build-side libraries, we just need to pretend we're native,
5732# and not use the same cache file. Multilibs are neither needed nor
5733# desired.
4b900473 5734build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5735
5736# For host modules, accept cache file option, or specification as blank.
5737case "${cache_file}" in
5738"") # empty
5739 cache_file_option="" ;;
5740/* | [A-Za-z]:[\\/]* ) # absolute path
5741 cache_file_option="--cache-file=${cache_file}" ;;
5742*) # relative path
5743 cache_file_option="--cache-file=../${cache_file}" ;;
5744esac
5745
82252c06
NN
5746# Host dirs don't like to share a cache file either, horribly enough.
5747# This seems to be due to autoconf 2.5x stupidity.
4b900473 5748host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5749
5750target_configargs=${baseargs}
5751
5752# Passing a --with-cross-host argument lets the target libraries know
5753# whether they are being built with a cross-compiler or being built
5754# native. However, it would be better to use other mechanisms to make the
5755# sorts of decisions they want to make on this basis. Please consider
5756# this option to be deprecated. FIXME.
5757if test x${is_cross_compiler} = xyes ; then
c6b750e1 5758 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5759fi
5760
5761# Default to --enable-multilib.
5762if test x${enable_multilib} = x ; then
5763 target_configargs="--enable-multilib ${target_configargs}"
5764fi
5765
5766# Pass --with-newlib if appropriate. Note that target_configdirs has
5767# changed from the earlier setting of with_newlib.
5768if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5769 target_configargs="--with-newlib ${target_configargs}"
5770fi
5771
95036d20
NN
5772# Different target subdirs use different values of certain variables
5773# (notably CXX). Worse, multilibs use *lots* of different values.
5774# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5775# it doesn't automatically accept command-line overrides of them.
5776# This means it's not safe for target subdirs to share a cache file,
5777# which is disgusting, but there you have it. Hopefully this can be
5778# fixed in future. It's still worthwhile to use a cache file for each
5779# directory. I think.
5780
ae380b45
MS
5781# Pass the appropriate --build, --host, --target and --cache-file arguments.
5782# We need to pass --target, as newer autoconf's requires consistency
5783# for target_alias and gcc doesn't manage it consistently.
4b900473 5784target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5785
a0da8069
NN
5786FLAGS_FOR_TARGET=
5787case " $target_configdirs " in
5788 *" newlib "*)
5789 case " $target_configargs " in
5790 *" --with-newlib "*)
5791 case "$target" in
5792 *-cygwin*)
564b43e5 5793 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
5794 esac
5795
5796 # If we're not building GCC, don't discard standard headers.
5797 if test -d ${srcdir}/gcc; then
5798 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5799
5800 if test "${build}" != "${host}"; then
5801 # On Canadian crosses, CC_FOR_TARGET will have already been set
5802 # by `configure', so we won't have an opportunity to add -Bgcc/
5803 # to it. This is right: we don't want to search that directory
5804 # for binaries, but we want the header files in there, so add
5805 # them explicitly.
b00612cc 5806 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5807
5808 # Someone might think of using the pre-installed headers on
5809 # Canadian crosses, in case the installed compiler is not fully
5810 # compatible with the compiler being built. In this case, it
5811 # would be better to flag an error than risking having
5812 # incompatible object files being constructed. We can't
5813 # guarantee that an error will be flagged, but let's hope the
5814 # compiler will do it, when presented with incompatible header
5815 # files.
5816 fi
5817 fi
5818
5819 case "${target}-${is_cross_compiler}" in
ec11bdc6 5820 i[3456789]86-*-linux*-no)
a0da8069
NN
5821 # Here host == target, so we don't need to build gcc,
5822 # so we don't want to discard standard headers.
5823 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5824 ;;
5825 *)
5826 # If we're building newlib, use its generic headers last, but search
5827 # for any libc-related directories first (so make it the last -B
5828 # switch).
5829 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
5830
5831 # If we're building libgloss, find the startup file, simulator library
5832 # and linker script.
5833 case " $target_configdirs " in
5834 *" libgloss "*)
5835 # Look for startup file, simulator library and maybe linker script.
5836 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5837 # Look for libnosys.a in case the target needs it.
5838 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5839 # Most targets have the linker script in the source directory.
5840 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5841 ;;
5842 esac
a0da8069
NN
5843 ;;
5844 esac
5845 ;;
5846 esac
5847 ;;
5848esac
45055374
CV
5849case "$target" in
5850*-mingw*)
5851 # Can't be handled as Cygwin above since Mingw does not use newlib.
5852 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' ;;
5853esac
a0da8069 5854
5fbad20a
DD
5855# Allow the user to override the flags for
5856# our build compiler if desired.
5857CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5858
a0da8069
NN
5859# On Canadian crosses, we'll be searching the right directories for
5860# the previously-installed cross compiler, so don't bother to add
5861# flags for directories within the install tree of the compiler
5862# being built; programs in there won't even run.
5863if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5864 # Search for pre-installed headers if nothing else fits.
bba45b8b 5865 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
5866fi
5867
5868if test "x${use_gnu_ld}" = x &&
5869 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5870 # Arrange for us to find uninstalled linker scripts.
b00612cc 5871 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5872fi
5873
a481dbb7
DD
5874# Search for other target-specific linker scripts and such.
5875case "${target}" in
4e206d7e
DB
5876 mep*)
5877 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5878 ;;
5879esac
5880
a0da8069 5881# Makefile fragments.
3e707e94
PB
5882for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5883do
5884 eval fragval=\$$frag
5885 if test $fragval != /dev/null; then
5886 eval $frag=${srcdir}/$fragval
5887 fi
5888done
a0da8069
NN
5889
5890
5891
5892
5893
5894# Miscellanea: directories, flags, etc.
5895
5896
5897
5898
5899
5900
5901
6a9cf61e 5902# Build module lists & subconfigure args.
a0da8069
NN
5903
5904
5905
be01d343
PB
5906# Host module lists & subconfigure args.
5907
5908
5909
5910# Target module lists & subconfigure args.
5911
5912
5913
5914# Build tools.
5915
5916
5917
5918# Generate default definitions for YACC, M4, LEX and other programs that run
5919# on the build machine. These are used if the Makefile can't locate these
5920# programs in objdir.
5921MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5922
5923for ac_prog in 'bison -y' byacc yacc
5924do
c6b750e1 5925 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5926set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5927echo "$as_me:$LINENO: checking for $ac_word" >&5
5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5929if test "${ac_cv_prog_YACC+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5931else
5932 if test -n "$YACC"; then
5933 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5934else
c6b750e1
DJ
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_YACC="$ac_prog"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946done
5947done
5948
be01d343
PB
5949fi
5950fi
c6b750e1 5951YACC=$ac_cv_prog_YACC
be01d343 5952if test -n "$YACC"; then
c6b750e1
DJ
5953 echo "$as_me:$LINENO: result: $YACC" >&5
5954echo "${ECHO_T}$YACC" >&6
be01d343 5955else
c6b750e1
DJ
5956 echo "$as_me:$LINENO: result: no" >&5
5957echo "${ECHO_T}no" >&6
be01d343
PB
5958fi
5959
c6b750e1 5960 test -n "$YACC" && break
be01d343
PB
5961done
5962test -n "$YACC" || YACC="$MISSING bison -y"
5963
5964case " $build_configdirs " in
5965 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5966 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5967esac
5968
5969for ac_prog in bison
5970do
c6b750e1 5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5972set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5973echo "$as_me:$LINENO: checking for $ac_word" >&5
5974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5975if test "${ac_cv_prog_BISON+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5977else
5978 if test -n "$BISON"; then
5979 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5980else
c6b750e1
DJ
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_BISON="$ac_prog"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993done
5994
be01d343
PB
5995fi
5996fi
c6b750e1 5997BISON=$ac_cv_prog_BISON
be01d343 5998if test -n "$BISON"; then
c6b750e1
DJ
5999 echo "$as_me:$LINENO: result: $BISON" >&5
6000echo "${ECHO_T}$BISON" >&6
be01d343 6001else
c6b750e1
DJ
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
be01d343
PB
6004fi
6005
c6b750e1 6006 test -n "$BISON" && break
be01d343
PB
6007done
6008test -n "$BISON" || BISON="$MISSING bison"
6009
6010case " $build_configdirs " in
6011 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6012esac
6013
6014for ac_prog in gm4 gnum4 m4
6015do
c6b750e1 6016 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6017set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6018echo "$as_me:$LINENO: checking for $ac_word" >&5
6019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6020if test "${ac_cv_prog_M4+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6022else
6023 if test -n "$M4"; then
6024 ac_cv_prog_M4="$M4" # Let the user override the test.
6025else
c6b750e1
DJ
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_M4="$ac_prog"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037done
6038done
6039
be01d343
PB
6040fi
6041fi
c6b750e1 6042M4=$ac_cv_prog_M4
be01d343 6043if test -n "$M4"; then
c6b750e1
DJ
6044 echo "$as_me:$LINENO: result: $M4" >&5
6045echo "${ECHO_T}$M4" >&6
be01d343 6046else
c6b750e1
DJ
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
be01d343
PB
6049fi
6050
c6b750e1 6051 test -n "$M4" && break
be01d343
PB
6052done
6053test -n "$M4" || M4="$MISSING m4"
6054
6055case " $build_configdirs " in
6056 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6057esac
6058
6059for ac_prog in flex lex
6060do
c6b750e1 6061 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6062set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6063echo "$as_me:$LINENO: checking for $ac_word" >&5
6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6065if test "${ac_cv_prog_LEX+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6067else
6068 if test -n "$LEX"; then
6069 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6070else
c6b750e1
DJ
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_LEX="$ac_prog"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083done
6084
be01d343
PB
6085fi
6086fi
c6b750e1 6087LEX=$ac_cv_prog_LEX
be01d343 6088if test -n "$LEX"; then
c6b750e1
DJ
6089 echo "$as_me:$LINENO: result: $LEX" >&5
6090echo "${ECHO_T}$LEX" >&6
be01d343 6091else
c6b750e1
DJ
6092 echo "$as_me:$LINENO: result: no" >&5
6093echo "${ECHO_T}no" >&6
be01d343
PB
6094fi
6095
c6b750e1 6096 test -n "$LEX" && break
be01d343
PB
6097done
6098test -n "$LEX" || LEX="$MISSING flex"
6099
6100case " $build_configdirs " in
6101 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6102 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6103esac
6104
6105for ac_prog in flex
6106do
c6b750e1 6107 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6108set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6109echo "$as_me:$LINENO: checking for $ac_word" >&5
6110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6111if test "${ac_cv_prog_FLEX+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6113else
6114 if test -n "$FLEX"; then
6115 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6116else
c6b750e1
DJ
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_FLEX="$ac_prog"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128done
6129done
6130
be01d343
PB
6131fi
6132fi
c6b750e1 6133FLEX=$ac_cv_prog_FLEX
be01d343 6134if test -n "$FLEX"; then
c6b750e1
DJ
6135 echo "$as_me:$LINENO: result: $FLEX" >&5
6136echo "${ECHO_T}$FLEX" >&6
be01d343 6137else
c6b750e1
DJ
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
be01d343
PB
6140fi
6141
c6b750e1 6142 test -n "$FLEX" && break
be01d343
PB
6143done
6144test -n "$FLEX" || FLEX="$MISSING flex"
6145
6146case " $build_configdirs " in
6147 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6148esac
6149
6150for ac_prog in makeinfo
6151do
c6b750e1 6152 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6153set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6154echo "$as_me:$LINENO: checking for $ac_word" >&5
6155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6158else
6159 if test -n "$MAKEINFO"; then
6160 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6161else
c6b750e1
DJ
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_MAKEINFO="$ac_prog"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174done
6175
be01d343
PB
6176fi
6177fi
c6b750e1 6178MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6179if test -n "$MAKEINFO"; then
c6b750e1
DJ
6180 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6181echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6182else
c6b750e1
DJ
6183 echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6
be01d343
PB
6185fi
6186
c6b750e1 6187 test -n "$MAKEINFO" && break
be01d343
PB
6188done
6189test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6190
6191case " $build_configdirs " in
6192 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6193 *)
6194
625a61cd 6195 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6196 # higher, else we use the "missing" dummy.
6197 if ${MAKEINFO} --version \
625a61cd 6198 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6199 :
6200 else
6201 MAKEINFO="$MISSING makeinfo"
6202 fi
6203 ;;
6204
6205esac
a0da8069 6206
be01d343 6207# FIXME: expect and dejagnu may become build tools?
a0da8069 6208
be01d343
PB
6209for ac_prog in expect
6210do
c6b750e1 6211 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6212set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6213echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6215if test "${ac_cv_prog_EXPECT+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6217else
6218 if test -n "$EXPECT"; then
6219 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6220else
c6b750e1
DJ
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228 ac_cv_prog_EXPECT="$ac_prog"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6231 fi
6232done
6233done
6234
be01d343
PB
6235fi
6236fi
c6b750e1 6237EXPECT=$ac_cv_prog_EXPECT
be01d343 6238if test -n "$EXPECT"; then
c6b750e1
DJ
6239 echo "$as_me:$LINENO: result: $EXPECT" >&5
6240echo "${ECHO_T}$EXPECT" >&6
be01d343 6241else
c6b750e1
DJ
6242 echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
be01d343 6244fi
a0da8069 6245
c6b750e1 6246 test -n "$EXPECT" && break
be01d343
PB
6247done
6248test -n "$EXPECT" || EXPECT="expect"
a0da8069 6249
be01d343
PB
6250case " $configdirs " in
6251 *" expect "*)
6252 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6253 ;;
6254esac
a0da8069 6255
be01d343
PB
6256for ac_prog in runtest
6257do
c6b750e1 6258 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6259set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6260echo "$as_me:$LINENO: checking for $ac_word" >&5
6261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6262if test "${ac_cv_prog_RUNTEST+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6264else
6265 if test -n "$RUNTEST"; then
6266 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6267else
c6b750e1
DJ
6268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6275 ac_cv_prog_RUNTEST="$ac_prog"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279done
6280done
6281
be01d343
PB
6282fi
6283fi
c6b750e1 6284RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6285if test -n "$RUNTEST"; then
c6b750e1
DJ
6286 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6287echo "${ECHO_T}$RUNTEST" >&6
be01d343 6288else
c6b750e1
DJ
6289 echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6
be01d343 6291fi
a0da8069 6292
c6b750e1 6293 test -n "$RUNTEST" && break
be01d343
PB
6294done
6295test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6296
be01d343
PB
6297case " $configdirs " in
6298 *" dejagnu "*)
6b89cc21 6299 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6300 ;;
6301esac
a0da8069
NN
6302
6303
a0da8069 6304# Host tools.
859789af
AC
6305ncn_tool_prefix=
6306test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6307ncn_target_tool_prefix=
6308test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6309
9a819804
AO
6310
6311
6312if test -n "$AR"; then
6313 ac_cv_prog_AR=$AR
6314elif test -n "$ac_cv_prog_AR"; then
6315 AR=$ac_cv_prog_AR
6316fi
6317
6318if test -n "$ac_cv_prog_AR"; then
6319 for ncn_progname in ar; do
6320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6321set dummy ${ncn_progname}; ac_word=$2
6322echo "$as_me:$LINENO: checking for $ac_word" >&5
6323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6324if test "${ac_cv_prog_AR+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327 if test -n "$AR"; then
6328 ac_cv_prog_AR="$AR" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_AR="${ncn_progname}"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341done
6342done
6343
6344fi
6345fi
6346AR=$ac_cv_prog_AR
6347if test -n "$AR"; then
6348 echo "$as_me:$LINENO: result: $AR" >&5
6349echo "${ECHO_T}$AR" >&6
6350else
6351 echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6
6353fi
6354
6355 done
6356fi
6357
6358for ncn_progname in ar; do
05cbd757
PB
6359 if test -n "$ncn_tool_prefix"; then
6360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6361set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6362echo "$as_me:$LINENO: checking for $ac_word" >&5
6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6364if test "${ac_cv_prog_AR+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6366else
6367 if test -n "$AR"; then
6368 ac_cv_prog_AR="$AR" # Let the user override the test.
6369else
c6b750e1
DJ
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381done
6382done
6383
859789af
AC
6384fi
6385fi
c6b750e1 6386AR=$ac_cv_prog_AR
859789af 6387if test -n "$AR"; then
c6b750e1
DJ
6388 echo "$as_me:$LINENO: result: $AR" >&5
6389echo "${ECHO_T}$AR" >&6
859789af 6390else
c6b750e1
DJ
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
859789af
AC
6393fi
6394
05cbd757
PB
6395 fi
6396 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6398set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6399echo "$as_me:$LINENO: checking for $ac_word" >&5
6400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6401if test "${ac_cv_prog_AR+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6403else
05cbd757
PB
6404 if test -n "$AR"; then
6405 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6406else
c6b750e1
DJ
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_AR="${ncn_progname}"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418done
6419done
6420
859789af
AC
6421fi
6422fi
c6b750e1 6423AR=$ac_cv_prog_AR
05cbd757 6424if test -n "$AR"; then
c6b750e1
DJ
6425 echo "$as_me:$LINENO: result: $AR" >&5
6426echo "${ECHO_T}$AR" >&6
859789af 6427else
c6b750e1
DJ
6428 echo "$as_me:$LINENO: result: no" >&5
6429echo "${ECHO_T}no" >&6
859789af 6430fi
c6b750e1 6431
05cbd757
PB
6432 fi
6433 test -n "$ac_cv_prog_AR" && break
6434done
6435
6436if test -z "$ac_cv_prog_AR" ; then
6437 set dummy ar
6438 if test $build = $host ; then
6439 AR="$2"
859789af 6440 else
05cbd757 6441 AR="${ncn_tool_prefix}$2"
859789af 6442 fi
859789af
AC
6443fi
6444
9a819804
AO
6445
6446
6447if test -n "$AS"; then
6448 ac_cv_prog_AS=$AS
6449elif test -n "$ac_cv_prog_AS"; then
6450 AS=$ac_cv_prog_AS
6451fi
6452
6453if test -n "$ac_cv_prog_AS"; then
6454 for ncn_progname in as; do
6455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6456set dummy ${ncn_progname}; ac_word=$2
6457echo "$as_me:$LINENO: checking for $ac_word" >&5
6458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6459if test "${ac_cv_prog_AS+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 if test -n "$AS"; then
6463 ac_cv_prog_AS="$AS" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_AS="${ncn_progname}"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476done
6477done
6478
6479fi
6480fi
6481AS=$ac_cv_prog_AS
6482if test -n "$AS"; then
6483 echo "$as_me:$LINENO: result: $AS" >&5
6484echo "${ECHO_T}$AS" >&6
6485else
6486 echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6
6488fi
6489
6490 done
6491fi
6492
6493for ncn_progname in as; do
05cbd757
PB
6494 if test -n "$ncn_tool_prefix"; then
6495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6496set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6497echo "$as_me:$LINENO: checking for $ac_word" >&5
6498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6499if test "${ac_cv_prog_AS+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6501else
6502 if test -n "$AS"; then
6503 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517done
6518
859789af
AC
6519fi
6520fi
c6b750e1 6521AS=$ac_cv_prog_AS
859789af 6522if test -n "$AS"; then
c6b750e1
DJ
6523 echo "$as_me:$LINENO: result: $AS" >&5
6524echo "${ECHO_T}$AS" >&6
859789af 6525else
c6b750e1
DJ
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
859789af
AC
6528fi
6529
05cbd757
PB
6530 fi
6531 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6533set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6534echo "$as_me:$LINENO: checking for $ac_word" >&5
6535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6536if test "${ac_cv_prog_AS+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6538else
05cbd757
PB
6539 if test -n "$AS"; then
6540 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6541else
c6b750e1
DJ
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_AS="${ncn_progname}"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554done
6555
859789af
AC
6556fi
6557fi
c6b750e1 6558AS=$ac_cv_prog_AS
05cbd757 6559if test -n "$AS"; then
c6b750e1
DJ
6560 echo "$as_me:$LINENO: result: $AS" >&5
6561echo "${ECHO_T}$AS" >&6
859789af 6562else
c6b750e1
DJ
6563 echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6
859789af 6565fi
c6b750e1 6566
05cbd757
PB
6567 fi
6568 test -n "$ac_cv_prog_AS" && break
6569done
6570
6571if test -z "$ac_cv_prog_AS" ; then
6572 set dummy as
6573 if test $build = $host ; then
6574 AS="$2"
859789af 6575 else
05cbd757 6576 AS="${ncn_tool_prefix}$2"
859789af 6577 fi
859789af
AC
6578fi
6579
9a819804
AO
6580
6581
6582if test -n "$DLLTOOL"; then
6583 ac_cv_prog_DLLTOOL=$DLLTOOL
6584elif test -n "$ac_cv_prog_DLLTOOL"; then
6585 DLLTOOL=$ac_cv_prog_DLLTOOL
6586fi
6587
6588if test -n "$ac_cv_prog_DLLTOOL"; then
6589 for ncn_progname in dlltool; do
6590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6591set dummy ${ncn_progname}; ac_word=$2
6592echo "$as_me:$LINENO: checking for $ac_word" >&5
6593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6594if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
6597 if test -n "$DLLTOOL"; then
6598 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_DLLTOOL="${ncn_progname}"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612done
6613
6614fi
6615fi
6616DLLTOOL=$ac_cv_prog_DLLTOOL
6617if test -n "$DLLTOOL"; then
6618 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6619echo "${ECHO_T}$DLLTOOL" >&6
6620else
6621 echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
6623fi
6624
6625 done
6626fi
6627
6628for ncn_progname in dlltool; do
05cbd757
PB
6629 if test -n "$ncn_tool_prefix"; then
6630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6631set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6632echo "$as_me:$LINENO: checking for $ac_word" >&5
6633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6636else
6637 if test -n "$DLLTOOL"; then
6638 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6639else
c6b750e1
DJ
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652done
6653
859789af
AC
6654fi
6655fi
c6b750e1 6656DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6657if test -n "$DLLTOOL"; then
c6b750e1
DJ
6658 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6659echo "${ECHO_T}$DLLTOOL" >&6
859789af 6660else
c6b750e1
DJ
6661 echo "$as_me:$LINENO: result: no" >&5
6662echo "${ECHO_T}no" >&6
859789af
AC
6663fi
6664
05cbd757
PB
6665 fi
6666 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6668set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6669echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6671if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6673else
05cbd757
PB
6674 if test -n "$DLLTOOL"; then
6675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6676else
c6b750e1
DJ
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_DLLTOOL="${ncn_progname}"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689done
6690
859789af
AC
6691fi
6692fi
c6b750e1 6693DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6694if test -n "$DLLTOOL"; then
c6b750e1
DJ
6695 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6696echo "${ECHO_T}$DLLTOOL" >&6
859789af 6697else
c6b750e1
DJ
6698 echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6
859789af 6700fi
c6b750e1 6701
05cbd757
PB
6702 fi
6703 test -n "$ac_cv_prog_DLLTOOL" && break
6704done
6705
6706if test -z "$ac_cv_prog_DLLTOOL" ; then
6707 set dummy dlltool
6708 if test $build = $host ; then
6709 DLLTOOL="$2"
859789af 6710 else
05cbd757 6711 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6712 fi
859789af
AC
6713fi
6714
9a819804
AO
6715
6716
6717if test -n "$LD"; then
6718 ac_cv_prog_LD=$LD
6719elif test -n "$ac_cv_prog_LD"; then
6720 LD=$ac_cv_prog_LD
6721fi
6722
6723if test -n "$ac_cv_prog_LD"; then
6724 for ncn_progname in ld; do
6725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6726set dummy ${ncn_progname}; ac_word=$2
6727echo "$as_me:$LINENO: checking for $ac_word" >&5
6728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6729if test "${ac_cv_prog_LD+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732 if test -n "$LD"; then
6733 ac_cv_prog_LD="$LD" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_LD="${ncn_progname}"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747done
6748
6749fi
6750fi
6751LD=$ac_cv_prog_LD
6752if test -n "$LD"; then
6753 echo "$as_me:$LINENO: result: $LD" >&5
6754echo "${ECHO_T}$LD" >&6
6755else
6756 echo "$as_me:$LINENO: result: no" >&5
6757echo "${ECHO_T}no" >&6
6758fi
6759
6760 done
6761fi
6762
6763for ncn_progname in ld; do
05cbd757
PB
6764 if test -n "$ncn_tool_prefix"; then
6765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6766set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6767echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6769if test "${ac_cv_prog_LD+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6771else
6772 if test -n "$LD"; then
6773 ac_cv_prog_LD="$LD" # Let the user override the test.
6774else
c6b750e1
DJ
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788
859789af
AC
6789fi
6790fi
c6b750e1 6791LD=$ac_cv_prog_LD
859789af 6792if test -n "$LD"; then
c6b750e1
DJ
6793 echo "$as_me:$LINENO: result: $LD" >&5
6794echo "${ECHO_T}$LD" >&6
859789af 6795else
c6b750e1
DJ
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
859789af
AC
6798fi
6799
05cbd757
PB
6800 fi
6801 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6803set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6804echo "$as_me:$LINENO: checking for $ac_word" >&5
6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6806if test "${ac_cv_prog_LD+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6808else
05cbd757
PB
6809 if test -n "$LD"; then
6810 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6811else
c6b750e1
DJ
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_LD="${ncn_progname}"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824done
6825
859789af
AC
6826fi
6827fi
c6b750e1 6828LD=$ac_cv_prog_LD
05cbd757 6829if test -n "$LD"; then
c6b750e1
DJ
6830 echo "$as_me:$LINENO: result: $LD" >&5
6831echo "${ECHO_T}$LD" >&6
859789af 6832else
c6b750e1
DJ
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
859789af 6835fi
c6b750e1 6836
05cbd757
PB
6837 fi
6838 test -n "$ac_cv_prog_LD" && break
6839done
6840
6841if test -z "$ac_cv_prog_LD" ; then
6842 set dummy ld
6843 if test $build = $host ; then
6844 LD="$2"
859789af 6845 else
05cbd757 6846 LD="${ncn_tool_prefix}$2"
859789af 6847 fi
859789af
AC
6848fi
6849
9a819804
AO
6850
6851
6852if test -n "$LIPO"; then
6853 ac_cv_prog_LIPO=$LIPO
6854elif test -n "$ac_cv_prog_LIPO"; then
6855 LIPO=$ac_cv_prog_LIPO
6856fi
6857
6858if test -n "$ac_cv_prog_LIPO"; then
6859 for ncn_progname in lipo; do
6860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6861set dummy ${ncn_progname}; ac_word=$2
6862echo "$as_me:$LINENO: checking for $ac_word" >&5
6863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6864if test "${ac_cv_prog_LIPO+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 if test -n "$LIPO"; then
6868 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_LIPO="${ncn_progname}"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882done
6883
6884fi
6885fi
6886LIPO=$ac_cv_prog_LIPO
6887if test -n "$LIPO"; then
6888 echo "$as_me:$LINENO: result: $LIPO" >&5
6889echo "${ECHO_T}$LIPO" >&6
6890else
6891 echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6
6893fi
6894
6895 done
6896fi
6897
6898for ncn_progname in lipo; do
be01d343
PB
6899 if test -n "$ncn_tool_prefix"; then
6900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6901set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6902echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6904if test "${ac_cv_prog_LIPO+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6906else
6907 if test -n "$LIPO"; then
6908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6909else
c6b750e1
DJ
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923
be01d343
PB
6924fi
6925fi
c6b750e1 6926LIPO=$ac_cv_prog_LIPO
be01d343 6927if test -n "$LIPO"; then
c6b750e1
DJ
6928 echo "$as_me:$LINENO: result: $LIPO" >&5
6929echo "${ECHO_T}$LIPO" >&6
be01d343 6930else
c6b750e1
DJ
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
be01d343
PB
6933fi
6934
6935 fi
6936 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6938set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6939echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6941if test "${ac_cv_prog_LIPO+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6943else
6944 if test -n "$LIPO"; then
6945 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6946else
c6b750e1
DJ
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_LIPO="${ncn_progname}"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958done
6959done
6960
be01d343
PB
6961fi
6962fi
c6b750e1 6963LIPO=$ac_cv_prog_LIPO
be01d343 6964if test -n "$LIPO"; then
c6b750e1
DJ
6965 echo "$as_me:$LINENO: result: $LIPO" >&5
6966echo "${ECHO_T}$LIPO" >&6
be01d343 6967else
c6b750e1
DJ
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
be01d343 6970fi
c6b750e1 6971
be01d343
PB
6972 fi
6973 test -n "$ac_cv_prog_LIPO" && break
6974done
6975
6976if test -z "$ac_cv_prog_LIPO" ; then
6977 set dummy lipo
6978 if test $build = $host ; then
6979 LIPO="$2"
6980 else
6981 LIPO="${ncn_tool_prefix}$2"
6982 fi
6983fi
6984
9a819804
AO
6985
6986
6987if test -n "$NM"; then
6988 ac_cv_prog_NM=$NM
6989elif test -n "$ac_cv_prog_NM"; then
6990 NM=$ac_cv_prog_NM
6991fi
6992
6993if test -n "$ac_cv_prog_NM"; then
6994 for ncn_progname in nm; do
6995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6996set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6997echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6999if test "${ac_cv_prog_NM+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7001else
7002 if test -n "$NM"; then
7003 ac_cv_prog_NM="$NM" # Let the user override the test.
7004else
c6b750e1
DJ
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7012 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016done
7017done
7018
859789af
AC
7019fi
7020fi
c6b750e1 7021NM=$ac_cv_prog_NM
859789af 7022if test -n "$NM"; then
c6b750e1
DJ
7023 echo "$as_me:$LINENO: result: $NM" >&5
7024echo "${ECHO_T}$NM" >&6
859789af 7025else
c6b750e1
DJ
7026 echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6
859789af
AC
7028fi
7029
9a819804
AO
7030 done
7031fi
7032
7033for ncn_progname in nm; do
7034 if test -n "$ncn_tool_prefix"; then
7035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7036set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7037echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7039if test "${ac_cv_prog_NM+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7041else
05cbd757
PB
7042 if test -n "$NM"; then
7043 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7044else
c6b750e1
DJ
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7052 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057done
7058
859789af
AC
7059fi
7060fi
c6b750e1 7061NM=$ac_cv_prog_NM
05cbd757 7062if test -n "$NM"; then
c6b750e1
DJ
7063 echo "$as_me:$LINENO: result: $NM" >&5
7064echo "${ECHO_T}$NM" >&6
859789af 7065else
c6b750e1
DJ
7066 echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
859789af 7068fi
c6b750e1 7069
05cbd757 7070 fi
9a819804
AO
7071 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7073set dummy ${ncn_progname}; ac_word=$2
7074echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7076if test "${ac_cv_prog_NM+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 if test -n "$NM"; then
7080 ac_cv_prog_NM="$NM" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_NM="${ncn_progname}"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093done
7094done
7095
7096fi
7097fi
7098NM=$ac_cv_prog_NM
7099if test -n "$NM"; then
7100 echo "$as_me:$LINENO: result: $NM" >&5
7101echo "${ECHO_T}$NM" >&6
7102else
7103 echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105fi
7106
7107 fi
7108 test -n "$ac_cv_prog_NM" && break
7109done
7110
7111if test -z "$ac_cv_prog_NM" ; then
7112 set dummy nm
7113 if test $build = $host ; then
7114 NM="$2"
7115 else
7116 NM="${ncn_tool_prefix}$2"
7117 fi
7118fi
7119
7120
7121
7122if test -n "$RANLIB"; then
7123 ac_cv_prog_RANLIB=$RANLIB
7124elif test -n "$ac_cv_prog_RANLIB"; then
7125 RANLIB=$ac_cv_prog_RANLIB
7126fi
7127
7128if test -n "$ac_cv_prog_RANLIB"; then
7129 for ncn_progname in ranlib; do
7130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7131set dummy ${ncn_progname}; ac_word=$2
7132echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7134if test "${ac_cv_prog_RANLIB+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137 if test -n "$RANLIB"; then
7138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_RANLIB="${ncn_progname}"
7148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151done
7152done
7153
7154fi
7155fi
7156RANLIB=$ac_cv_prog_RANLIB
7157if test -n "$RANLIB"; then
7158 echo "$as_me:$LINENO: result: $RANLIB" >&5
7159echo "${ECHO_T}$RANLIB" >&6
7160else
7161 echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6
7163fi
7164
7165 done
7166fi
859789af 7167
9a819804 7168for ncn_progname in ranlib; do
05cbd757
PB
7169 if test -n "$ncn_tool_prefix"; then
7170 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7171set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7172echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174if test "${ac_cv_prog_RANLIB+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7176else
7177 if test -n "$RANLIB"; then
7178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7179else
c6b750e1
DJ
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191done
7192done
7193
859789af
AC
7194fi
7195fi
c6b750e1 7196RANLIB=$ac_cv_prog_RANLIB
859789af 7197if test -n "$RANLIB"; then
c6b750e1
DJ
7198 echo "$as_me:$LINENO: result: $RANLIB" >&5
7199echo "${ECHO_T}$RANLIB" >&6
859789af 7200else
c6b750e1
DJ
7201 echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6
859789af
AC
7203fi
7204
05cbd757
PB
7205 fi
7206 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7208set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7209echo "$as_me:$LINENO: checking for $ac_word" >&5
7210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7211if test "${ac_cv_prog_RANLIB+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7213else
05cbd757
PB
7214 if test -n "$RANLIB"; then
7215 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7216else
c6b750e1
DJ
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_RANLIB="${ncn_progname}"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228done
7229done
7230
859789af
AC
7231fi
7232fi
c6b750e1 7233RANLIB=$ac_cv_prog_RANLIB
05cbd757 7234if test -n "$RANLIB"; then
c6b750e1
DJ
7235 echo "$as_me:$LINENO: result: $RANLIB" >&5
7236echo "${ECHO_T}$RANLIB" >&6
859789af 7237else
c6b750e1
DJ
7238 echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6
859789af 7240fi
c6b750e1 7241
859789af 7242 fi
05cbd757
PB
7243 test -n "$ac_cv_prog_RANLIB" && break
7244done
7245
7246if test -z "$ac_cv_prog_RANLIB" ; then
7247 RANLIB=":"
859789af
AC
7248fi
7249
9a819804
AO
7250
7251
7252if test -n "$STRIP"; then
7253 ac_cv_prog_STRIP=$STRIP
7254elif test -n "$ac_cv_prog_STRIP"; then
7255 STRIP=$ac_cv_prog_STRIP
7256fi
7257
7258if test -n "$ac_cv_prog_STRIP"; then
7259 for ncn_progname in strip; do
7260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7261set dummy ${ncn_progname}; ac_word=$2
7262echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264if test "${ac_cv_prog_STRIP+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 if test -n "$STRIP"; then
7268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_STRIP="${ncn_progname}"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282done
7283
7284fi
7285fi
7286STRIP=$ac_cv_prog_STRIP
7287if test -n "$STRIP"; then
7288 echo "$as_me:$LINENO: result: $STRIP" >&5
7289echo "${ECHO_T}$STRIP" >&6
7290else
7291 echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6
7293fi
7294
7295 done
7296fi
7297
7298for ncn_progname in strip; do
be01d343
PB
7299 if test -n "$ncn_tool_prefix"; then
7300 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7301set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7302echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7304if test "${ac_cv_prog_STRIP+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7306else
7307 if test -n "$STRIP"; then
7308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7309else
c6b750e1
DJ
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322done
7323
be01d343
PB
7324fi
7325fi
c6b750e1 7326STRIP=$ac_cv_prog_STRIP
be01d343 7327if test -n "$STRIP"; then
c6b750e1
DJ
7328 echo "$as_me:$LINENO: result: $STRIP" >&5
7329echo "${ECHO_T}$STRIP" >&6
be01d343 7330else
c6b750e1
DJ
7331 echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
be01d343
PB
7333fi
7334
7335 fi
7336 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7338set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7339echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341if test "${ac_cv_prog_STRIP+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7343else
7344 if test -n "$STRIP"; then
7345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7346else
c6b750e1
DJ
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_STRIP="${ncn_progname}"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358done
7359done
7360
be01d343
PB
7361fi
7362fi
c6b750e1 7363STRIP=$ac_cv_prog_STRIP
be01d343 7364if test -n "$STRIP"; then
c6b750e1
DJ
7365 echo "$as_me:$LINENO: result: $STRIP" >&5
7366echo "${ECHO_T}$STRIP" >&6
be01d343 7367else
c6b750e1
DJ
7368 echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6
be01d343 7370fi
c6b750e1 7371
be01d343
PB
7372 fi
7373 test -n "$ac_cv_prog_STRIP" && break
7374done
7375
7376if test -z "$ac_cv_prog_STRIP" ; then
7377 STRIP=":"
7378fi
7379
9a819804
AO
7380
7381
7382if test -n "$WINDRES"; then
7383 ac_cv_prog_WINDRES=$WINDRES
7384elif test -n "$ac_cv_prog_WINDRES"; then
7385 WINDRES=$ac_cv_prog_WINDRES
7386fi
7387
7388if test -n "$ac_cv_prog_WINDRES"; then
7389 for ncn_progname in windres; do
7390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7391set dummy ${ncn_progname}; ac_word=$2
7392echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7394if test "${ac_cv_prog_WINDRES+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396else
7397 if test -n "$WINDRES"; then
7398 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_WINDRES="${ncn_progname}"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411done
7412done
7413
7414fi
7415fi
7416WINDRES=$ac_cv_prog_WINDRES
7417if test -n "$WINDRES"; then
7418 echo "$as_me:$LINENO: result: $WINDRES" >&5
7419echo "${ECHO_T}$WINDRES" >&6
7420else
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
7423fi
7424
7425 done
7426fi
7427
7428for ncn_progname in windres; do
05cbd757
PB
7429 if test -n "$ncn_tool_prefix"; then
7430 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7431set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434if test "${ac_cv_prog_WINDRES+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7436else
7437 if test -n "$WINDRES"; then
7438 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7439else
c6b750e1
DJ
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453
859789af
AC
7454fi
7455fi
c6b750e1 7456WINDRES=$ac_cv_prog_WINDRES
859789af 7457if test -n "$WINDRES"; then
c6b750e1
DJ
7458 echo "$as_me:$LINENO: result: $WINDRES" >&5
7459echo "${ECHO_T}$WINDRES" >&6
859789af 7460else
c6b750e1
DJ
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
859789af
AC
7463fi
7464
05cbd757
PB
7465 fi
7466 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7468set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7469echo "$as_me:$LINENO: checking for $ac_word" >&5
7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7471if test "${ac_cv_prog_WINDRES+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7473else
05cbd757
PB
7474 if test -n "$WINDRES"; then
7475 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7476else
c6b750e1
DJ
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_WINDRES="${ncn_progname}"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488done
7489done
7490
859789af
AC
7491fi
7492fi
c6b750e1 7493WINDRES=$ac_cv_prog_WINDRES
05cbd757 7494if test -n "$WINDRES"; then
c6b750e1
DJ
7495 echo "$as_me:$LINENO: result: $WINDRES" >&5
7496echo "${ECHO_T}$WINDRES" >&6
859789af 7497else
c6b750e1
DJ
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
859789af 7500fi
c6b750e1 7501
05cbd757
PB
7502 fi
7503 test -n "$ac_cv_prog_WINDRES" && break
7504done
7505
7506if test -z "$ac_cv_prog_WINDRES" ; then
7507 set dummy windres
7508 if test $build = $host ; then
7509 WINDRES="$2"
859789af 7510 else
05cbd757 7511 WINDRES="${ncn_tool_prefix}$2"
859789af 7512 fi
859789af
AC
7513fi
7514
9a819804
AO
7515
7516
0c24b341
NC
7517if test -n "$WINDMC"; then
7518 ac_cv_prog_WINDMC=$WINDMC
7519elif test -n "$ac_cv_prog_WINDMC"; then
7520 WINDMC=$ac_cv_prog_WINDMC
7521fi
7522
7523if test -n "$ac_cv_prog_WINDMC"; then
7524 for ncn_progname in windmc; do
7525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7526set dummy ${ncn_progname}; ac_word=$2
7527echo "$as_me:$LINENO: checking for $ac_word" >&5
7528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7529if test "${ac_cv_prog_WINDMC+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532 if test -n "$WINDMC"; then
7533 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_WINDMC="${ncn_progname}"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548
7549fi
7550fi
7551WINDMC=$ac_cv_prog_WINDMC
7552if test -n "$WINDMC"; then
7553 echo "$as_me:$LINENO: result: $WINDMC" >&5
7554echo "${ECHO_T}$WINDMC" >&6
7555else
7556 echo "$as_me:$LINENO: result: no" >&5
7557echo "${ECHO_T}no" >&6
7558fi
7559
7560 done
7561fi
7562
7563for ncn_progname in windmc; do
7564 if test -n "$ncn_tool_prefix"; then
7565 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7566set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7567echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569if test "${ac_cv_prog_WINDMC+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 if test -n "$WINDMC"; then
7573 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587done
7588
7589fi
7590fi
7591WINDMC=$ac_cv_prog_WINDMC
7592if test -n "$WINDMC"; then
7593 echo "$as_me:$LINENO: result: $WINDMC" >&5
7594echo "${ECHO_T}$WINDMC" >&6
7595else
7596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598fi
7599
7600 fi
7601 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7603set dummy ${ncn_progname}; ac_word=$2
7604echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7606if test "${ac_cv_prog_WINDMC+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609 if test -n "$WINDMC"; then
7610 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_WINDMC="${ncn_progname}"
7620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7622 fi
7623done
7624done
7625
7626fi
7627fi
7628WINDMC=$ac_cv_prog_WINDMC
7629if test -n "$WINDMC"; then
7630 echo "$as_me:$LINENO: result: $WINDMC" >&5
7631echo "${ECHO_T}$WINDMC" >&6
7632else
7633 echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
7635fi
7636
7637 fi
7638 test -n "$ac_cv_prog_WINDMC" && break
7639done
7640
7641if test -z "$ac_cv_prog_WINDMC" ; then
7642 set dummy windmc
7643 if test $build = $host ; then
7644 WINDMC="$2"
7645 else
7646 WINDMC="${ncn_tool_prefix}$2"
7647 fi
7648fi
7649
7650
7651
9a819804
AO
7652if test -n "$OBJCOPY"; then
7653 ac_cv_prog_OBJCOPY=$OBJCOPY
7654elif test -n "$ac_cv_prog_OBJCOPY"; then
7655 OBJCOPY=$ac_cv_prog_OBJCOPY
7656fi
7657
7658if test -n "$ac_cv_prog_OBJCOPY"; then
7659 for ncn_progname in objcopy; do
7660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7661set dummy ${ncn_progname}; ac_word=$2
7662echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7664if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666else
7667 if test -n "$OBJCOPY"; then
7668 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7669else
7670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_OBJCOPY="${ncn_progname}"
7678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7680 fi
7681done
7682done
7683
7684fi
7685fi
7686OBJCOPY=$ac_cv_prog_OBJCOPY
7687if test -n "$OBJCOPY"; then
7688 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7689echo "${ECHO_T}$OBJCOPY" >&6
7690else
7691 echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
7693fi
7694
7695 done
7696fi
7697
7698for ncn_progname in objcopy; do
05cbd757
PB
7699 if test -n "$ncn_tool_prefix"; then
7700 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7701set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7702echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7706else
7707 if test -n "$OBJCOPY"; then
7708 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7709else
c6b750e1
DJ
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723
859789af
AC
7724fi
7725fi
c6b750e1 7726OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7727if test -n "$OBJCOPY"; then
c6b750e1
DJ
7728 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7729echo "${ECHO_T}$OBJCOPY" >&6
859789af 7730else
c6b750e1
DJ
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
859789af
AC
7733fi
7734
05cbd757
PB
7735 fi
7736 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7738set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7739echo "$as_me:$LINENO: checking for $ac_word" >&5
7740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7743else
05cbd757
PB
7744 if test -n "$OBJCOPY"; then
7745 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7746else
c6b750e1
DJ
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_OBJCOPY="${ncn_progname}"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759done
7760
859789af
AC
7761fi
7762fi
c6b750e1 7763OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7764if test -n "$OBJCOPY"; then
c6b750e1
DJ
7765 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7766echo "${ECHO_T}$OBJCOPY" >&6
859789af 7767else
c6b750e1
DJ
7768 echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
859789af 7770fi
c6b750e1 7771
05cbd757
PB
7772 fi
7773 test -n "$ac_cv_prog_OBJCOPY" && break
7774done
7775
7776if test -z "$ac_cv_prog_OBJCOPY" ; then
7777 set dummy objcopy
7778 if test $build = $host ; then
7779 OBJCOPY="$2"
859789af 7780 else
05cbd757 7781 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7782 fi
859789af
AC
7783fi
7784
9a819804
AO
7785
7786
7787if test -n "$OBJDUMP"; then
7788 ac_cv_prog_OBJDUMP=$OBJDUMP
7789elif test -n "$ac_cv_prog_OBJDUMP"; then
7790 OBJDUMP=$ac_cv_prog_OBJDUMP
7791fi
7792
7793if test -n "$ac_cv_prog_OBJDUMP"; then
7794 for ncn_progname in objdump; do
7795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7796set dummy ${ncn_progname}; ac_word=$2
7797echo "$as_me:$LINENO: checking for $ac_word" >&5
7798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7799if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 if test -n "$OBJDUMP"; then
7803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_OBJDUMP="${ncn_progname}"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816done
7817done
7818
7819fi
7820fi
7821OBJDUMP=$ac_cv_prog_OBJDUMP
7822if test -n "$OBJDUMP"; then
7823 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7824echo "${ECHO_T}$OBJDUMP" >&6
7825else
7826 echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
7828fi
7829
7830 done
7831fi
7832
7833for ncn_progname in objdump; do
05cbd757
PB
7834 if test -n "$ncn_tool_prefix"; then
7835 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7836set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7841else
7842 if test -n "$OBJDUMP"; then
7843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7844else
c6b750e1
DJ
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858
859789af
AC
7859fi
7860fi
c6b750e1 7861OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7862if test -n "$OBJDUMP"; then
c6b750e1
DJ
7863 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7864echo "${ECHO_T}$OBJDUMP" >&6
859789af 7865else
c6b750e1
DJ
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
859789af
AC
7868fi
7869
05cbd757
PB
7870 fi
7871 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7873set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7874echo "$as_me:$LINENO: checking for $ac_word" >&5
7875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7876if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7878else
05cbd757
PB
7879 if test -n "$OBJDUMP"; then
7880 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7881else
c6b750e1
DJ
7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_OBJDUMP="${ncn_progname}"
7890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893done
7894done
7895
859789af
AC
7896fi
7897fi
c6b750e1 7898OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7899if test -n "$OBJDUMP"; then
c6b750e1
DJ
7900 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7901echo "${ECHO_T}$OBJDUMP" >&6
859789af 7902else
c6b750e1
DJ
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
859789af 7905fi
c6b750e1 7906
05cbd757
PB
7907 fi
7908 test -n "$ac_cv_prog_OBJDUMP" && break
7909done
7910
7911if test -z "$ac_cv_prog_OBJDUMP" ; then
7912 set dummy objdump
7913 if test $build = $host ; then
7914 OBJDUMP="$2"
859789af 7915 else
05cbd757 7916 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7917 fi
859789af
AC
7918fi
7919
a0da8069
NN
7920
7921
7922
7923
7924
7925
be01d343 7926# Target tools.
c6b750e1 7927
2429c060
PB
7928# Check whether --with-build-time-tools or --without-build-time-tools was given.
7929if test "${with_build_time_tools+set}" = set; then
7930 withval="$with_build_time_tools"
7931 case x"$withval" in
7932 x/*) ;;
7933 *)
7934 with_build_time_tools=
c6b750e1
DJ
7935 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7936echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7937 ;;
7938 esac
859789af 7939else
2429c060 7940 with_build_time_tools=
c6b750e1 7941fi;
859789af 7942
9a819804
AO
7943
7944
7945if test -n "$CC_FOR_TARGET"; then
7946 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7947elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7948 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7949fi
7950
7951if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7952 for ncn_progname in cc gcc; do
7953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7954set dummy ${ncn_progname}; ac_word=$2
7955echo "$as_me:$LINENO: checking for $ac_word" >&5
7956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7957if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960 if test -n "$CC_FOR_TARGET"; then
7961 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7962else
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7973 fi
7974done
7975done
7976
7977fi
7978fi
7979CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7980if test -n "$CC_FOR_TARGET"; then
7981 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7982echo "${ECHO_T}$CC_FOR_TARGET" >&6
7983else
7984 echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6
7986fi
7987
7988 done
7989fi
7990
7991if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7992 for ncn_progname in cc gcc; do
c6b750e1
DJ
7993 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7994echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7995 if test -x $with_build_time_tools/${ncn_progname}; then
7996 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7997 echo "$as_me:$LINENO: result: yes" >&5
7998echo "${ECHO_T}yes" >&6
cac3d6c4 7999 break
2429c060 8000 else
c6b750e1
DJ
8001 echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
cac3d6c4
CM
8003 fi
8004 done
55db4b87
PB
8005fi
8006
2429c060
PB
8007if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8008 for ncn_progname in cc gcc; do
8009 if test -n "$ncn_target_tool_prefix"; then
8010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8011set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8012echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8014if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8016else
8017 if test -n "$CC_FOR_TARGET"; then
8018 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8019else
c6b750e1
DJ
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033
55db4b87
PB
8034fi
8035fi
c6b750e1 8036CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8037if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8038 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8039echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8040else
c6b750e1
DJ
8041 echo "$as_me:$LINENO: result: no" >&5
8042echo "${ECHO_T}no" >&6
55db4b87
PB
8043fi
8044
2429c060
PB
8045 fi
8046 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8048set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8049echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8051if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8053else
05cbd757
PB
8054 if test -n "$CC_FOR_TARGET"; then
8055 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8056else
c6b750e1
DJ
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070
55db4b87
PB
8071fi
8072fi
c6b750e1 8073CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8074if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8075 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8076echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8077else
c6b750e1
DJ
8078 echo "$as_me:$LINENO: result: no" >&5
8079echo "${ECHO_T}no" >&6
55db4b87 8080fi
c6b750e1 8081
2429c060
PB
8082 fi
8083 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8084 done
8085fi
c6b750e1 8086
05cbd757
PB
8087if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8088 set dummy cc gcc
8089 if test $build = $target ; then
8090 CC_FOR_TARGET="$2"
55db4b87 8091 else
05cbd757 8092 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8093 fi
d3f5afc4
MS
8094else
8095 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8096fi
8097
9a819804
AO
8098
8099
8100if test -n "$CXX_FOR_TARGET"; then
8101 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8102elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8103 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8104fi
8105
8106if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8107 for ncn_progname in c++ g++ cxx gxx; do
8108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8109set dummy ${ncn_progname}; ac_word=$2
8110echo "$as_me:$LINENO: checking for $ac_word" >&5
8111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8112if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115 if test -n "$CXX_FOR_TARGET"; then
8116 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8117else
8118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129done
8130done
8131
8132fi
8133fi
8134CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8135if test -n "$CXX_FOR_TARGET"; then
8136 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8137echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8138else
8139 echo "$as_me:$LINENO: result: no" >&5
8140echo "${ECHO_T}no" >&6
8141fi
8142
8143 done
8144fi
8145
8146if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8147 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8148 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8149echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8150 if test -x $with_build_time_tools/${ncn_progname}; then
8151 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
2429c060
PB
8154 break
8155 else
c6b750e1
DJ
8156 echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6
2429c060
PB
8158 fi
8159 done
8160fi
8161
8162if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8163 for ncn_progname in c++ g++ cxx gxx; do
8164 if test -n "$ncn_target_tool_prefix"; then
8165 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8166set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8167echo "$as_me:$LINENO: checking for $ac_word" >&5
8168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8169if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8171else
8172 if test -n "$CXX_FOR_TARGET"; then
8173 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8174else
c6b750e1
DJ
8175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186done
8187done
8188
55db4b87
PB
8189fi
8190fi
c6b750e1 8191CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8192if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8193 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8194echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8195else
c6b750e1
DJ
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
55db4b87
PB
8198fi
8199
2429c060
PB
8200 fi
8201 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8203set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8204echo "$as_me:$LINENO: checking for $ac_word" >&5
8205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8206if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8208else
05cbd757
PB
8209 if test -n "$CXX_FOR_TARGET"; then
8210 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8211else
c6b750e1
DJ
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8219 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224done
8225
55db4b87
PB
8226fi
8227fi
c6b750e1 8228CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8229if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8230 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8231echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8232else
c6b750e1
DJ
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
55db4b87 8235fi
c6b750e1 8236
2429c060
PB
8237 fi
8238 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8239 done
8240fi
c6b750e1 8241
05cbd757
PB
8242if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8243 set dummy c++ g++ cxx gxx
8244 if test $build = $target ; then
8245 CXX_FOR_TARGET="$2"
55db4b87 8246 else
05cbd757 8247 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8248 fi
d3f5afc4
MS
8249else
8250 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8251fi
8252
9a819804
AO
8253
8254
8255if test -n "$GCC_FOR_TARGET"; then
8256 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8257elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8258 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8259fi
8260
8261if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8262 for ncn_progname in gcc; do
8263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8264set dummy ${ncn_progname}; ac_word=$2
8265echo "$as_me:$LINENO: checking for $ac_word" >&5
8266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8267if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270 if test -n "$GCC_FOR_TARGET"; then
8271 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8272else
8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284done
8285done
8286
8287fi
8288fi
8289GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8290if test -n "$GCC_FOR_TARGET"; then
8291 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8292echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8293else
8294 echo "$as_me:$LINENO: result: no" >&5
8295echo "${ECHO_T}no" >&6
8296fi
8297
8298 done
8299fi
8300
8301if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8302 for ncn_progname in gcc; do
c6b750e1
DJ
8303 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8304echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8305 if test -x $with_build_time_tools/${ncn_progname}; then
8306 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8307 echo "$as_me:$LINENO: result: yes" >&5
8308echo "${ECHO_T}yes" >&6
2429c060
PB
8309 break
8310 else
c6b750e1
DJ
8311 echo "$as_me:$LINENO: result: no" >&5
8312echo "${ECHO_T}no" >&6
2429c060
PB
8313 fi
8314 done
8315fi
8316
8317if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8318 for ncn_progname in gcc; do
8319 if test -n "$ncn_target_tool_prefix"; then
8320 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8321set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8322echo "$as_me:$LINENO: checking for $ac_word" >&5
8323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8324if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8326else
2429c060
PB
8327 if test -n "$GCC_FOR_TARGET"; then
8328 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8329else
c6b750e1
DJ
8330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331for as_dir in $PATH
8332do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341done
8342done
8343
55db4b87
PB
8344fi
8345fi
c6b750e1 8346GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8347if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8348 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8349echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8350else
c6b750e1
DJ
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
55db4b87
PB
8353fi
8354
2429c060
PB
8355 fi
8356 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8358set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8359echo "$as_me:$LINENO: checking for $ac_word" >&5
8360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8361if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8363else
05cbd757
PB
8364 if test -n "$GCC_FOR_TARGET"; then
8365 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8366else
c6b750e1
DJ
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8374 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378done
8379done
8380
55db4b87
PB
8381fi
8382fi
c6b750e1 8383GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8384if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8385 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8386echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8387else
c6b750e1
DJ
8388 echo "$as_me:$LINENO: result: no" >&5
8389echo "${ECHO_T}no" >&6
55db4b87 8390fi
c6b750e1 8391
2429c060
PB
8392 fi
8393 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8394 done
8395fi
c6b750e1 8396
05cbd757
PB
8397if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8398 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8399else
8400 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8401fi
8402
9a819804
AO
8403
8404
8405if test -n "$GCJ_FOR_TARGET"; then
8406 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8407elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8408 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8409fi
8410
8411if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8412 for ncn_progname in gcj; do
8413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8414set dummy ${ncn_progname}; ac_word=$2
8415echo "$as_me:$LINENO: checking for $ac_word" >&5
8416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8417if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420 if test -n "$GCJ_FOR_TARGET"; then
8421 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8422else
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 break 2
8433 fi
8434done
8435done
8436
8437fi
8438fi
8439GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8440if test -n "$GCJ_FOR_TARGET"; then
8441 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8442echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8443else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446fi
8447
8448 done
8449fi
8450
8451if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8452 for ncn_progname in gcj; do
c6b750e1
DJ
8453 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8454echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8455 if test -x $with_build_time_tools/${ncn_progname}; then
8456 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8457 echo "$as_me:$LINENO: result: yes" >&5
8458echo "${ECHO_T}yes" >&6
2429c060
PB
8459 break
8460 else
c6b750e1
DJ
8461 echo "$as_me:$LINENO: result: no" >&5
8462echo "${ECHO_T}no" >&6
2429c060
PB
8463 fi
8464 done
8465fi
8466
8467if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8468 for ncn_progname in gcj; do
8469 if test -n "$ncn_target_tool_prefix"; then
8470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8471set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8472echo "$as_me:$LINENO: checking for $ac_word" >&5
8473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8474if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8476else
8477 if test -n "$GCJ_FOR_TARGET"; then
8478 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8479else
c6b750e1
DJ
8480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481for as_dir in $PATH
8482do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491done
8492done
8493
55db4b87
PB
8494fi
8495fi
9a819804
AO
8496GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8497if test -n "$GCJ_FOR_TARGET"; then
8498 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8499echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8500else
8501 echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6
8503fi
8504
8505 fi
8506 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_progname}; ac_word=$2
8509echo "$as_me:$LINENO: checking for $ac_word" >&5
8510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8511if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513else
8514 if test -n "$GCJ_FOR_TARGET"; then
8515 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8516else
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528done
8529done
8530
8531fi
8532fi
8533GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8534if test -n "$GCJ_FOR_TARGET"; then
8535 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8536echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8537else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540fi
8541
8542 fi
8543 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8544 done
8545fi
8546
8547if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8548 set dummy gcj
8549 if test $build = $target ; then
8550 GCJ_FOR_TARGET="$2"
8551 else
8552 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8553 fi
d3f5afc4
MS
8554else
8555 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8556fi
8557
8558
8559
8560if test -n "$GFORTRAN_FOR_TARGET"; then
8561 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8562elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8563 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8564fi
8565
9a819804
AO
8566if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8567 for ncn_progname in gfortran; do
8568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8569set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8570echo "$as_me:$LINENO: checking for $ac_word" >&5
8571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8572if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8573 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8574else
9a819804
AO
8575 if test -n "$GFORTRAN_FOR_TARGET"; then
8576 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8577else
c6b750e1
DJ
8578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579for as_dir in $PATH
8580do
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8585 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8588 fi
8589done
8590done
8591
55db4b87
PB
8592fi
8593fi
9a819804
AO
8594GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8595if test -n "$GFORTRAN_FOR_TARGET"; then
8596 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8597echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8598else
c6b750e1
DJ
8599 echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6
55db4b87 8601fi
c6b750e1 8602
2429c060
PB
8603 done
8604fi
c6b750e1 8605
9a819804 8606if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8607 for ncn_progname in gfortran; do
c6b750e1
DJ
8608 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8609echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8610 if test -x $with_build_time_tools/${ncn_progname}; then
8611 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8612 echo "$as_me:$LINENO: result: yes" >&5
8613echo "${ECHO_T}yes" >&6
2429c060
PB
8614 break
8615 else
c6b750e1
DJ
8616 echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6
2429c060
PB
8618 fi
8619 done
8620fi
8621
8622if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8623 for ncn_progname in gfortran; do
8624 if test -n "$ncn_target_tool_prefix"; then
8625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8626set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8627echo "$as_me:$LINENO: checking for $ac_word" >&5
8628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8629if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8631else
8632 if test -n "$GFORTRAN_FOR_TARGET"; then
8633 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8634else
c6b750e1
DJ
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646done
8647done
8648
55db4b87
PB
8649fi
8650fi
c6b750e1 8651GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8652if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8653 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8654echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8655else
c6b750e1
DJ
8656 echo "$as_me:$LINENO: result: no" >&5
8657echo "${ECHO_T}no" >&6
55db4b87
PB
8658fi
8659
2429c060
PB
8660 fi
8661 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8663set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8664echo "$as_me:$LINENO: checking for $ac_word" >&5
8665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8666if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8668else
05cbd757 8669 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8670 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8671else
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8679 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683done
8684done
8685
55db4b87
PB
8686fi
8687fi
c6b750e1 8688GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8689if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8690 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8691echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8692else
c6b750e1
DJ
8693 echo "$as_me:$LINENO: result: no" >&5
8694echo "${ECHO_T}no" >&6
55db4b87 8695fi
c6b750e1 8696
2429c060
PB
8697 fi
8698 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8699 done
8700fi
c6b750e1 8701
05cbd757
PB
8702if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8703 set dummy gfortran
8704 if test $build = $target ; then
8705 GFORTRAN_FOR_TARGET="$2"
55db4b87 8706 else
05cbd757 8707 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8708 fi
d3f5afc4
MS
8709else
8710 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8711fi
8712
2429c060
PB
8713
8714
2429c060
PB
8715cat > conftest.c << \EOF
8716#ifdef __GNUC__
8717 gcc_yay;
8718#endif
8719EOF
8720if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8721 have_gcc_for_target=yes
859789af 8722else
2429c060
PB
8723 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8724 have_gcc_for_target=no
859789af 8725fi
2429c060
PB
8726rm conftest.c
8727
8728
8729
859789af 8730
2429c060
PB
8731if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8732 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8733 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8734echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8735 if test -x $with_build_time_tools/ar; then
8736 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8737 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8738 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8739echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8740 else
c6b750e1
DJ
8741 echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6
3a35eeb3 8743 fi
2429c060
PB
8744 elif test $build != $host && test $have_gcc_for_target = yes; then
8745 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8746 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8747 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8748 fi
2429c060 8749fi
c6b750e1 8750if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8751 # Extract the first word of "ar", so it can be a program name with args.
8752set dummy ar; ac_word=$2
c6b750e1
DJ
8753echo "$as_me:$LINENO: checking for $ac_word" >&5
8754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8755if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8757else
c6b750e1
DJ
8758 case $AR_FOR_TARGET in
8759 [\\/]* | ?:[\\/]*)
2429c060
PB
8760 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8761 ;;
2429c060 8762 *)
c6b750e1
DJ
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764for as_dir in $gcc_cv_tool_dirs
8765do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8770 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 break 2
8773 fi
8774done
8775done
8776
2429c060
PB
8777 ;;
8778esac
859789af 8779fi
c6b750e1
DJ
8780AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8781
2429c060 8782if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8783 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8784echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8785else
c6b750e1
DJ
8786 echo "$as_me:$LINENO: result: no" >&5
8787echo "${ECHO_T}no" >&6
859789af 8788fi
05cbd757 8789
2429c060
PB
8790fi
8791if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8792
8793
8794if test -n "$AR_FOR_TARGET"; then
8795 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8796elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8797 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8798fi
8799
8800if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8801 for ncn_progname in ar; do
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803set dummy ${ncn_progname}; ac_word=$2
8804echo "$as_me:$LINENO: checking for $ac_word" >&5
8805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8806if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809 if test -n "$AR_FOR_TARGET"; then
8810 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823done
8824done
8825
8826fi
8827fi
8828AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8829if test -n "$AR_FOR_TARGET"; then
8830 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8831echo "${ECHO_T}$AR_FOR_TARGET" >&6
8832else
8833 echo "$as_me:$LINENO: result: no" >&5
8834echo "${ECHO_T}no" >&6
8835fi
8836
8837 done
8838fi
8839
8840if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8841 for ncn_progname in ar; do
c6b750e1
DJ
8842 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8843echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8844 if test -x $with_build_time_tools/${ncn_progname}; then
8845 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
2429c060
PB
8848 break
8849 else
c6b750e1
DJ
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
2429c060
PB
8852 fi
8853 done
859789af
AC
8854fi
8855
2429c060
PB
8856if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8857 for ncn_progname in ar; do
8858 if test -n "$ncn_target_tool_prefix"; then
8859 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8860set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8861echo "$as_me:$LINENO: checking for $ac_word" >&5
8862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8865else
2429c060
PB
8866 if test -n "$AR_FOR_TARGET"; then
8867 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8868else
c6b750e1
DJ
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880done
8881done
8882
7e0f7140
GK
8883fi
8884fi
c6b750e1 8885AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8886if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8887 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8888echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8889else
c6b750e1
DJ
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
7e0f7140
GK
8892fi
8893
2429c060
PB
8894 fi
8895 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8897set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8898echo "$as_me:$LINENO: checking for $ac_word" >&5
8899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8900if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8902else
2429c060
PB
8903 if test -n "$AR_FOR_TARGET"; then
8904 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8905else
c6b750e1
DJ
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917done
8918done
8919
7e0f7140
GK
8920fi
8921fi
c6b750e1 8922AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8923if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8924 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8925echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8926else
c6b750e1
DJ
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
7e0f7140 8929fi
c6b750e1 8930
2429c060
PB
8931 fi
8932 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8933 done
8934fi
c6b750e1 8935
2429c060
PB
8936if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8937 set dummy ar
7e0f7140 8938 if test $build = $target ; then
2429c060 8939 AR_FOR_TARGET="$2"
7e0f7140 8940 else
2429c060 8941 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8942 fi
d3f5afc4
MS
8943else
8944 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8945fi
8946
3a35eeb3
PB
8947else
8948 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8949fi
8950
8951
8952
8953
8954if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8955 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8956 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8957echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8958 if test -x $with_build_time_tools/as; then
8959 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8960 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8961 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8962echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8963 else
c6b750e1
DJ
8964 echo "$as_me:$LINENO: result: no" >&5
8965echo "${ECHO_T}no" >&6
3a35eeb3 8966 fi
2429c060
PB
8967 elif test $build != $host && test $have_gcc_for_target = yes; then
8968 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8969 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8970 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8971 fi
8972fi
c6b750e1 8973if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8974 # Extract the first word of "as", so it can be a program name with args.
8975set dummy as; ac_word=$2
c6b750e1
DJ
8976echo "$as_me:$LINENO: checking for $ac_word" >&5
8977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8978if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8980else
c6b750e1
DJ
8981 case $AS_FOR_TARGET in
8982 [\\/]* | ?:[\\/]*)
2429c060
PB
8983 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8984 ;;
2429c060 8985 *)
c6b750e1
DJ
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $gcc_cv_tool_dirs
8988do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8996 fi
8997done
8998done
8999
2429c060
PB
9000 ;;
9001esac
9002fi
c6b750e1
DJ
9003AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9004
2429c060 9005if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9006 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9007echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9008else
c6b750e1
DJ
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
2429c060
PB
9011fi
9012
9013fi
9014if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9015
9016
9017if test -n "$AS_FOR_TARGET"; then
9018 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9019elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9020 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9021fi
9022
9023if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9024 for ncn_progname in as; do
9025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9026set dummy ${ncn_progname}; ac_word=$2
9027echo "$as_me:$LINENO: checking for $ac_word" >&5
9028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9029if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9031else
9032 if test -n "$AS_FOR_TARGET"; then
9033 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9034else
9035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036for as_dir in $PATH
9037do
9038 IFS=$as_save_IFS
9039 test -z "$as_dir" && as_dir=.
9040 for ac_exec_ext in '' $ac_executable_extensions; do
9041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9042 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 break 2
9045 fi
9046done
9047done
9048
9049fi
9050fi
9051AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9052if test -n "$AS_FOR_TARGET"; then
9053 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9054echo "${ECHO_T}$AS_FOR_TARGET" >&6
9055else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058fi
9059
9060 done
9061fi
9062
9063if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9064 for ncn_progname in as; do
c6b750e1
DJ
9065 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9066echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9067 if test -x $with_build_time_tools/${ncn_progname}; then
9068 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9069 echo "$as_me:$LINENO: result: yes" >&5
9070echo "${ECHO_T}yes" >&6
2429c060
PB
9071 break
9072 else
c6b750e1
DJ
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
2429c060
PB
9075 fi
9076 done
9077fi
9078
9079if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9080 for ncn_progname in as; do
9081 if test -n "$ncn_target_tool_prefix"; then
9082 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9083set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9084echo "$as_me:$LINENO: checking for $ac_word" >&5
9085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9086if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9088else
9089 if test -n "$AS_FOR_TARGET"; then
9090 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9091else
c6b750e1
DJ
9092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093for as_dir in $PATH
9094do
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9102 fi
9103done
9104done
9105
2429c060
PB
9106fi
9107fi
c6b750e1 9108AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9109if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9110 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9111echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9112else
c6b750e1
DJ
9113 echo "$as_me:$LINENO: result: no" >&5
9114echo "${ECHO_T}no" >&6
2429c060
PB
9115fi
9116
9117 fi
9118 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9120set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9121echo "$as_me:$LINENO: checking for $ac_word" >&5
9122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9123if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9125else
9126 if test -n "$AS_FOR_TARGET"; then
9127 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9128else
c6b750e1
DJ
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141done
9142
2429c060
PB
9143fi
9144fi
c6b750e1 9145AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9146if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9147 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9148echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9149else
c6b750e1
DJ
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
2429c060 9152fi
c6b750e1 9153
2429c060
PB
9154 fi
9155 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9156 done
9157fi
c6b750e1 9158
2429c060
PB
9159if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9160 set dummy as
9161 if test $build = $target ; then
9162 AS_FOR_TARGET="$2"
9163 else
9164 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9165 fi
d3f5afc4
MS
9166else
9167 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9168fi
9169
3a35eeb3
PB
9170else
9171 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9172fi
9173
9174
9175
9176
9177if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9178 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9179 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9180echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9181 if test -x $with_build_time_tools/dlltool; then
9182 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9183 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9184 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9185echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9186 else
c6b750e1
DJ
9187 echo "$as_me:$LINENO: result: no" >&5
9188echo "${ECHO_T}no" >&6
3a35eeb3 9189 fi
2429c060
PB
9190 elif test $build != $host && test $have_gcc_for_target = yes; then
9191 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9192 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9193 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9194 fi
9195fi
c6b750e1 9196if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9197 # Extract the first word of "dlltool", so it can be a program name with args.
9198set dummy dlltool; ac_word=$2
c6b750e1
DJ
9199echo "$as_me:$LINENO: checking for $ac_word" >&5
9200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9201if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9203else
c6b750e1
DJ
9204 case $DLLTOOL_FOR_TARGET in
9205 [\\/]* | ?:[\\/]*)
2429c060
PB
9206 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9207 ;;
2429c060 9208 *)
c6b750e1
DJ
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $gcc_cv_tool_dirs
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9219 fi
9220done
9221done
9222
2429c060
PB
9223 ;;
9224esac
9225fi
c6b750e1
DJ
9226DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9227
2429c060 9228if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9229 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9230echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9231else
c6b750e1
DJ
9232 echo "$as_me:$LINENO: result: no" >&5
9233echo "${ECHO_T}no" >&6
2429c060
PB
9234fi
9235
9236fi
9237if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9238
9239
9240if test -n "$DLLTOOL_FOR_TARGET"; then
9241 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9242elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9243 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9244fi
9245
9246if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9247 for ncn_progname in dlltool; do
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249set dummy ${ncn_progname}; ac_word=$2
9250echo "$as_me:$LINENO: checking for $ac_word" >&5
9251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9252if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254else
9255 if test -n "$DLLTOOL_FOR_TARGET"; then
9256 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9257else
9258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259for as_dir in $PATH
9260do
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9268 fi
9269done
9270done
9271
9272fi
9273fi
9274DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9275if test -n "$DLLTOOL_FOR_TARGET"; then
9276 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9277echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9278else
9279 echo "$as_me:$LINENO: result: no" >&5
9280echo "${ECHO_T}no" >&6
9281fi
9282
9283 done
9284fi
9285
9286if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9287 for ncn_progname in dlltool; do
c6b750e1
DJ
9288 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9289echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9290 if test -x $with_build_time_tools/${ncn_progname}; then
9291 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9292 echo "$as_me:$LINENO: result: yes" >&5
9293echo "${ECHO_T}yes" >&6
2429c060
PB
9294 break
9295 else
c6b750e1
DJ
9296 echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
2429c060
PB
9298 fi
9299 done
9300fi
9301
9302if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9303 for ncn_progname in dlltool; do
9304 if test -n "$ncn_target_tool_prefix"; then
9305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9307echo "$as_me:$LINENO: checking for $ac_word" >&5
9308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9309if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9311else
9312 if test -n "$DLLTOOL_FOR_TARGET"; then
9313 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9314else
c6b750e1
DJ
9315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316for as_dir in $PATH
9317do
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9322 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9325 fi
9326done
9327done
9328
2429c060
PB
9329fi
9330fi
c6b750e1 9331DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9332if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9333 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9334echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9335else
c6b750e1
DJ
9336 echo "$as_me:$LINENO: result: no" >&5
9337echo "${ECHO_T}no" >&6
2429c060
PB
9338fi
9339
9340 fi
9341 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9343set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9344echo "$as_me:$LINENO: checking for $ac_word" >&5
9345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9346if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9348else
9349 if test -n "$DLLTOOL_FOR_TARGET"; then
9350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9351else
c6b750e1
DJ
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9362 fi
9363done
9364done
9365
2429c060
PB
9366fi
9367fi
c6b750e1 9368DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9369if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9370 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9371echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9372else
c6b750e1
DJ
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
2429c060 9375fi
c6b750e1 9376
2429c060
PB
9377 fi
9378 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9379 done
9380fi
c6b750e1 9381
2429c060
PB
9382if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9383 set dummy dlltool
9384 if test $build = $target ; then
9385 DLLTOOL_FOR_TARGET="$2"
9386 else
9387 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9388 fi
d3f5afc4
MS
9389else
9390 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9391fi
9392
3a35eeb3
PB
9393else
9394 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9395fi
9396
9397
9398
9399
9400if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9401 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9402 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9403echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9404 if test -x $with_build_time_tools/ld; then
9405 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9406 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9407 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9408echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9409 else
c6b750e1
DJ
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
3a35eeb3 9412 fi
2429c060
PB
9413 elif test $build != $host && test $have_gcc_for_target = yes; then
9414 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9415 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9416 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9417 fi
9418fi
c6b750e1 9419if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9420 # Extract the first word of "ld", so it can be a program name with args.
9421set dummy ld; ac_word=$2
c6b750e1
DJ
9422echo "$as_me:$LINENO: checking for $ac_word" >&5
9423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9424if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9426else
c6b750e1
DJ
9427 case $LD_FOR_TARGET in
9428 [\\/]* | ?:[\\/]*)
2429c060
PB
9429 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9430 ;;
2429c060 9431 *)
c6b750e1
DJ
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433for as_dir in $gcc_cv_tool_dirs
9434do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9439 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443done
9444done
9445
2429c060
PB
9446 ;;
9447esac
9448fi
c6b750e1
DJ
9449LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9450
2429c060 9451if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9452 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9453echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9454else
c6b750e1
DJ
9455 echo "$as_me:$LINENO: result: no" >&5
9456echo "${ECHO_T}no" >&6
2429c060
PB
9457fi
9458
9459fi
9460if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9461
9462
9463if test -n "$LD_FOR_TARGET"; then
9464 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9465elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9466 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9467fi
9468
9469if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9470 for ncn_progname in ld; do
9471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9472set dummy ${ncn_progname}; ac_word=$2
9473echo "$as_me:$LINENO: checking for $ac_word" >&5
9474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9475if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477else
9478 if test -n "$LD_FOR_TARGET"; then
9479 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9480else
9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482for as_dir in $PATH
9483do
9484 IFS=$as_save_IFS
9485 test -z "$as_dir" && as_dir=.
9486 for ac_exec_ext in '' $ac_executable_extensions; do
9487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9488 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9490 break 2
9491 fi
9492done
9493done
9494
9495fi
9496fi
9497LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9498if test -n "$LD_FOR_TARGET"; then
9499 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9500echo "${ECHO_T}$LD_FOR_TARGET" >&6
9501else
9502 echo "$as_me:$LINENO: result: no" >&5
9503echo "${ECHO_T}no" >&6
9504fi
9505
9506 done
9507fi
9508
9509if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9510 for ncn_progname in ld; do
c6b750e1
DJ
9511 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9512echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9513 if test -x $with_build_time_tools/${ncn_progname}; then
9514 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9515 echo "$as_me:$LINENO: result: yes" >&5
9516echo "${ECHO_T}yes" >&6
2429c060
PB
9517 break
9518 else
c6b750e1
DJ
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
2429c060
PB
9521 fi
9522 done
9523fi
9524
9525if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9526 for ncn_progname in ld; do
9527 if test -n "$ncn_target_tool_prefix"; then
9528 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9529set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9530echo "$as_me:$LINENO: checking for $ac_word" >&5
9531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9532if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9534else
9535 if test -n "$LD_FOR_TARGET"; then
9536 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9537else
c6b750e1
DJ
9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539for as_dir in $PATH
9540do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9545 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9548 fi
9549done
9550done
9551
2429c060
PB
9552fi
9553fi
c6b750e1 9554LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9555if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9556 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9557echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9558else
c6b750e1
DJ
9559 echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6
2429c060
PB
9561fi
9562
9563 fi
9564 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9566set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9567echo "$as_me:$LINENO: checking for $ac_word" >&5
9568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9569if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9571else
9572 if test -n "$LD_FOR_TARGET"; then
9573 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9574else
c6b750e1
DJ
9575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576for as_dir in $PATH
9577do
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9585 fi
9586done
9587done
9588
2429c060
PB
9589fi
9590fi
c6b750e1 9591LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9592if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9593 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9594echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9595else
c6b750e1
DJ
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
2429c060 9598fi
c6b750e1 9599
2429c060
PB
9600 fi
9601 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9602 done
9603fi
c6b750e1 9604
2429c060
PB
9605if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9606 set dummy ld
9607 if test $build = $target ; then
9608 LD_FOR_TARGET="$2"
9609 else
9610 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9611 fi
d3f5afc4
MS
9612else
9613 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9614fi
9615
3a35eeb3
PB
9616else
9617 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9618fi
9619
9620
9621
9622
9623if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9624 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9625 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9626echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9627 if test -x $with_build_time_tools/lipo; then
9628 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9629 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9630 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9631echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9632 else
c6b750e1
DJ
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
3a35eeb3 9635 fi
2429c060
PB
9636 elif test $build != $host && test $have_gcc_for_target = yes; then
9637 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9638 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9639 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9640 fi
9641fi
9a819804
AO
9642if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9643 # Extract the first word of "lipo", so it can be a program name with args.
9644set dummy lipo; ac_word=$2
9645echo "$as_me:$LINENO: checking for $ac_word" >&5
9646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9647if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649else
9650 case $LIPO_FOR_TARGET in
9651 [\\/]* | ?:[\\/]*)
9652 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9653 ;;
9654 *)
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656for as_dir in $gcc_cv_tool_dirs
9657do
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9662 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9665 fi
9666done
9667done
9668
9669 ;;
9670esac
9671fi
9672LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9673
9674if test -n "$LIPO_FOR_TARGET"; then
9675 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9676echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9677else
9678 echo "$as_me:$LINENO: result: no" >&5
9679echo "${ECHO_T}no" >&6
9680fi
9681
9682fi
9683if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9684
9685
9686if test -n "$LIPO_FOR_TARGET"; then
9687 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9688elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9689 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9690fi
9691
9692if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9693 for ncn_progname in lipo; do
9694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9695set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9696echo "$as_me:$LINENO: checking for $ac_word" >&5
9697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9698if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9699 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9700else
9a819804
AO
9701 if test -n "$LIPO_FOR_TARGET"; then
9702 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9703else
9704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705for as_dir in $PATH
c6b750e1
DJ
9706do
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9711 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9713 break 2
9714 fi
9715done
9716done
9717
2429c060 9718fi
9a819804
AO
9719fi
9720LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9721if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9722 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9723echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9724else
c6b750e1
DJ
9725 echo "$as_me:$LINENO: result: no" >&5
9726echo "${ECHO_T}no" >&6
2429c060
PB
9727fi
9728
9a819804 9729 done
2429c060 9730fi
9a819804
AO
9731
9732if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9733 for ncn_progname in lipo; do
c6b750e1
DJ
9734 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9735echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9736 if test -x $with_build_time_tools/${ncn_progname}; then
9737 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9738 echo "$as_me:$LINENO: result: yes" >&5
9739echo "${ECHO_T}yes" >&6
2429c060
PB
9740 break
9741 else
c6b750e1
DJ
9742 echo "$as_me:$LINENO: result: no" >&5
9743echo "${ECHO_T}no" >&6
2429c060
PB
9744 fi
9745 done
9746fi
9747
9748if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9749 for ncn_progname in lipo; do
9750 if test -n "$ncn_target_tool_prefix"; then
9751 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9752set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9753echo "$as_me:$LINENO: checking for $ac_word" >&5
9754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9755if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9757else
9758 if test -n "$LIPO_FOR_TARGET"; then
9759 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9760else
c6b750e1
DJ
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772done
9773done
9774
2429c060
PB
9775fi
9776fi
c6b750e1 9777LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9778if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9779 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9780echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9781else
c6b750e1
DJ
9782 echo "$as_me:$LINENO: result: no" >&5
9783echo "${ECHO_T}no" >&6
2429c060
PB
9784fi
9785
9786 fi
9787 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9789set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9790echo "$as_me:$LINENO: checking for $ac_word" >&5
9791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9792if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9794else
9795 if test -n "$LIPO_FOR_TARGET"; then
9796 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9797else
c6b750e1
DJ
9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799for as_dir in $PATH
9800do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809done
9810done
9811
2429c060
PB
9812fi
9813fi
c6b750e1 9814LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9815if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9816 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9817echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9818else
c6b750e1
DJ
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
2429c060 9821fi
c6b750e1 9822
2429c060
PB
9823 fi
9824 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9825 done
9826fi
c6b750e1 9827
2429c060
PB
9828if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9829 set dummy lipo
9830 if test $build = $target ; then
9831 LIPO_FOR_TARGET="$2"
9832 else
9833 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9834 fi
d3f5afc4
MS
9835else
9836 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9837fi
9838
3a35eeb3
PB
9839else
9840 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9841fi
9842
9843
9844
9845
9846if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9847 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9848 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9849echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9850 if test -x $with_build_time_tools/nm; then
9851 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9852 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9853 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9854echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9855 else
c6b750e1
DJ
9856 echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6
3a35eeb3 9858 fi
2429c060
PB
9859 elif test $build != $host && test $have_gcc_for_target = yes; then
9860 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9861 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9862 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9863 fi
9864fi
c6b750e1 9865if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9866 # Extract the first word of "nm", so it can be a program name with args.
9867set dummy nm; ac_word=$2
c6b750e1
DJ
9868echo "$as_me:$LINENO: checking for $ac_word" >&5
9869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9870if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9872else
c6b750e1
DJ
9873 case $NM_FOR_TARGET in
9874 [\\/]* | ?:[\\/]*)
2429c060
PB
9875 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9876 ;;
2429c060 9877 *)
c6b750e1
DJ
9878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879for as_dir in $gcc_cv_tool_dirs
9880do
9881 IFS=$as_save_IFS
9882 test -z "$as_dir" && as_dir=.
9883 for ac_exec_ext in '' $ac_executable_extensions; do
9884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9885 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 break 2
9888 fi
9889done
9890done
9891
2429c060
PB
9892 ;;
9893esac
9894fi
c6b750e1
DJ
9895NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9896
2429c060 9897if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9898 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9899echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9900else
c6b750e1
DJ
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
2429c060
PB
9903fi
9904
9905fi
9906if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9907
9908
9909if test -n "$NM_FOR_TARGET"; then
9910 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9911elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9912 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9913fi
9914
9915if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9916 for ncn_progname in nm; do
9917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9918set dummy ${ncn_progname}; ac_word=$2
9919echo "$as_me:$LINENO: checking for $ac_word" >&5
9920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9921if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924 if test -n "$NM_FOR_TARGET"; then
9925 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9926else
9927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928for as_dir in $PATH
9929do
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9934 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 break 2
9937 fi
9938done
9939done
9940
9941fi
9942fi
9943NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9944if test -n "$NM_FOR_TARGET"; then
9945 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9946echo "${ECHO_T}$NM_FOR_TARGET" >&6
9947else
9948 echo "$as_me:$LINENO: result: no" >&5
9949echo "${ECHO_T}no" >&6
9950fi
9951
9952 done
9953fi
9954
9955if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9956 for ncn_progname in nm; do
c6b750e1
DJ
9957 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9958echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9959 if test -x $with_build_time_tools/${ncn_progname}; then
9960 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9961 echo "$as_me:$LINENO: result: yes" >&5
9962echo "${ECHO_T}yes" >&6
2429c060
PB
9963 break
9964 else
c6b750e1
DJ
9965 echo "$as_me:$LINENO: result: no" >&5
9966echo "${ECHO_T}no" >&6
2429c060
PB
9967 fi
9968 done
9969fi
9970
9971if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9972 for ncn_progname in nm; do
9973 if test -n "$ncn_target_tool_prefix"; then
9974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9975set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9976echo "$as_me:$LINENO: checking for $ac_word" >&5
9977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9978if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9980else
55db4b87
PB
9981 if test -n "$NM_FOR_TARGET"; then
9982 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9983else
c6b750e1
DJ
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9994 fi
9995done
9996done
9997
859789af
AC
9998fi
9999fi
c6b750e1 10000NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10001if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10002 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10003echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10004else
c6b750e1
DJ
10005 echo "$as_me:$LINENO: result: no" >&5
10006echo "${ECHO_T}no" >&6
859789af
AC
10007fi
10008
2429c060
PB
10009 fi
10010 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10012set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10013echo "$as_me:$LINENO: checking for $ac_word" >&5
10014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10015if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10017else
05cbd757
PB
10018 if test -n "$NM_FOR_TARGET"; then
10019 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10020else
c6b750e1
DJ
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033done
10034
859789af
AC
10035fi
10036fi
c6b750e1 10037NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10038if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10039 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10040echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10041else
c6b750e1
DJ
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
859789af 10044fi
c6b750e1 10045
2429c060
PB
10046 fi
10047 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10048 done
10049fi
c6b750e1 10050
05cbd757
PB
10051if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10052 set dummy nm
10053 if test $build = $target ; then
10054 NM_FOR_TARGET="$2"
859789af 10055 else
05cbd757 10056 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10057 fi
d3f5afc4
MS
10058else
10059 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10060fi
10061
3a35eeb3
PB
10062else
10063 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10064fi
10065
10066
10067
10068
10069if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10070 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10071 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10072echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10073 if test -x $with_build_time_tools/objdump; then
10074 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10075 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10076 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10077echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10078 else
c6b750e1
DJ
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
3a35eeb3 10081 fi
2429c060
PB
10082 elif test $build != $host && test $have_gcc_for_target = yes; then
10083 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10084 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10085 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10086 fi
10087fi
c6b750e1 10088if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10089 # Extract the first word of "objdump", so it can be a program name with args.
10090set dummy objdump; ac_word=$2
c6b750e1
DJ
10091echo "$as_me:$LINENO: checking for $ac_word" >&5
10092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10093if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10095else
c6b750e1
DJ
10096 case $OBJDUMP_FOR_TARGET in
10097 [\\/]* | ?:[\\/]*)
2429c060
PB
10098 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10099 ;;
2429c060 10100 *)
c6b750e1
DJ
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102for as_dir in $gcc_cv_tool_dirs
10103do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10108 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 break 2
10111 fi
10112done
10113done
10114
2429c060
PB
10115 ;;
10116esac
10117fi
c6b750e1
DJ
10118OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10119
2429c060 10120if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10121 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10122echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10123else
c6b750e1
DJ
10124 echo "$as_me:$LINENO: result: no" >&5
10125echo "${ECHO_T}no" >&6
2429c060
PB
10126fi
10127
10128fi
10129if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10130
10131
10132if test -n "$OBJDUMP_FOR_TARGET"; then
10133 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10134elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10135 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10136fi
10137
10138if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10139 for ncn_progname in objdump; do
10140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10141set dummy ${ncn_progname}; ac_word=$2
10142echo "$as_me:$LINENO: checking for $ac_word" >&5
10143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10144if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 if test -n "$OBJDUMP_FOR_TARGET"; then
10148 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161done
10162done
10163
10164fi
10165fi
10166OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10167if test -n "$OBJDUMP_FOR_TARGET"; then
10168 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10169echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10170else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173fi
10174
10175 done
10176fi
10177
10178if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10179 for ncn_progname in objdump; do
c6b750e1
DJ
10180 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10181echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10182 if test -x $with_build_time_tools/${ncn_progname}; then
10183 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10184 echo "$as_me:$LINENO: result: yes" >&5
10185echo "${ECHO_T}yes" >&6
2429c060
PB
10186 break
10187 else
c6b750e1
DJ
10188 echo "$as_me:$LINENO: result: no" >&5
10189echo "${ECHO_T}no" >&6
2429c060
PB
10190 fi
10191 done
10192fi
10193
10194if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10195 for ncn_progname in objdump; do
10196 if test -n "$ncn_target_tool_prefix"; then
10197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10198set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10199echo "$as_me:$LINENO: checking for $ac_word" >&5
10200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10201if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10203else
10204 if test -n "$OBJDUMP_FOR_TARGET"; then
10205 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10206else
c6b750e1
DJ
10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10214 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218done
10219done
10220
5ae72758
DJ
10221fi
10222fi
c6b750e1 10223OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10224if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10225 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10226echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10227else
c6b750e1
DJ
10228 echo "$as_me:$LINENO: result: no" >&5
10229echo "${ECHO_T}no" >&6
5ae72758
DJ
10230fi
10231
2429c060
PB
10232 fi
10233 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10235set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10236echo "$as_me:$LINENO: checking for $ac_word" >&5
10237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10238if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10240else
10241 if test -n "$OBJDUMP_FOR_TARGET"; then
10242 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10243else
c6b750e1
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256done
10257
5ae72758
DJ
10258fi
10259fi
c6b750e1 10260OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10261if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10262 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10263echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10264else
c6b750e1
DJ
10265 echo "$as_me:$LINENO: result: no" >&5
10266echo "${ECHO_T}no" >&6
5ae72758 10267fi
c6b750e1 10268
2429c060
PB
10269 fi
10270 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10271 done
10272fi
c6b750e1 10273
5ae72758
DJ
10274if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10275 set dummy objdump
10276 if test $build = $target ; then
10277 OBJDUMP_FOR_TARGET="$2"
10278 else
10279 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10280 fi
d3f5afc4
MS
10281else
10282 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10283fi
10284
3a35eeb3
PB
10285else
10286 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10287fi
10288
10289
10290
10291
10292if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10293 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10294 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10295echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10296 if test -x $with_build_time_tools/ranlib; then
10297 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10298 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10299 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10300echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10301 else
c6b750e1
DJ
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
3a35eeb3 10304 fi
2429c060
PB
10305 elif test $build != $host && test $have_gcc_for_target = yes; then
10306 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10307 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10308 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10309 fi
10310fi
c6b750e1 10311if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10312 # Extract the first word of "ranlib", so it can be a program name with args.
10313set dummy ranlib; ac_word=$2
c6b750e1
DJ
10314echo "$as_me:$LINENO: checking for $ac_word" >&5
10315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10316if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10318else
c6b750e1
DJ
10319 case $RANLIB_FOR_TARGET in
10320 [\\/]* | ?:[\\/]*)
2429c060
PB
10321 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10322 ;;
2429c060 10323 *)
c6b750e1
DJ
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $gcc_cv_tool_dirs
10326do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10331 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335done
10336done
10337
2429c060
PB
10338 ;;
10339esac
10340fi
c6b750e1
DJ
10341RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10342
2429c060 10343if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10344 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10345echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10346else
c6b750e1
DJ
10347 echo "$as_me:$LINENO: result: no" >&5
10348echo "${ECHO_T}no" >&6
2429c060
PB
10349fi
10350
10351fi
10352if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10353
10354
10355if test -n "$RANLIB_FOR_TARGET"; then
10356 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10357elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10358 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10359fi
10360
10361if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10362 for ncn_progname in ranlib; do
10363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10364set dummy ${ncn_progname}; ac_word=$2
10365echo "$as_me:$LINENO: checking for $ac_word" >&5
10366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10367if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370 if test -n "$RANLIB_FOR_TARGET"; then
10371 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10372else
10373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374for as_dir in $PATH
10375do
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
10379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10383 fi
10384done
10385done
10386
10387fi
10388fi
10389RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10390if test -n "$RANLIB_FOR_TARGET"; then
10391 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10392echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10393else
10394 echo "$as_me:$LINENO: result: no" >&5
10395echo "${ECHO_T}no" >&6
10396fi
10397
10398 done
10399fi
10400
10401if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10402 for ncn_progname in ranlib; do
c6b750e1
DJ
10403 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10404echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10405 if test -x $with_build_time_tools/${ncn_progname}; then
10406 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10407 echo "$as_me:$LINENO: result: yes" >&5
10408echo "${ECHO_T}yes" >&6
2429c060
PB
10409 break
10410 else
c6b750e1
DJ
10411 echo "$as_me:$LINENO: result: no" >&5
10412echo "${ECHO_T}no" >&6
2429c060
PB
10413 fi
10414 done
10415fi
10416
10417if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10418 for ncn_progname in ranlib; do
10419 if test -n "$ncn_target_tool_prefix"; then
10420 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10421set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10422echo "$as_me:$LINENO: checking for $ac_word" >&5
10423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10424if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10426else
55db4b87
PB
10427 if test -n "$RANLIB_FOR_TARGET"; then
10428 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10429else
c6b750e1
DJ
10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431for as_dir in $PATH
10432do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10437 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10440 fi
10441done
10442done
10443
859789af
AC
10444fi
10445fi
c6b750e1 10446RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10447if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10448 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10449echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10450else
c6b750e1
DJ
10451 echo "$as_me:$LINENO: result: no" >&5
10452echo "${ECHO_T}no" >&6
859789af
AC
10453fi
10454
2429c060
PB
10455 fi
10456 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10458set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10459echo "$as_me:$LINENO: checking for $ac_word" >&5
10460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10461if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10463else
05cbd757
PB
10464 if test -n "$RANLIB_FOR_TARGET"; then
10465 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10466else
c6b750e1
DJ
10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468for as_dir in $PATH
10469do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478done
10479done
10480
859789af
AC
10481fi
10482fi
c6b750e1 10483RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10484if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10485 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10486echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10487else
c6b750e1
DJ
10488 echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
859789af 10490fi
c6b750e1 10491
2429c060
PB
10492 fi
10493 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10494 done
10495fi
c6b750e1 10496
2429c060
PB
10497if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10498 set dummy ranlib
10499 if test $build = $target ; then
10500 RANLIB_FOR_TARGET="$2"
10501 else
10502 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10503 fi
d3f5afc4
MS
10504else
10505 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10506fi
05cbd757 10507
3a35eeb3
PB
10508else
10509 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10510fi
10511
2429c060
PB
10512
10513
10514
10515if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10516 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10517 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10518echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10519 if test -x $with_build_time_tools/strip; then
10520 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10521 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10522 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10523echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10524 else
c6b750e1
DJ
10525 echo "$as_me:$LINENO: result: no" >&5
10526echo "${ECHO_T}no" >&6
3a35eeb3 10527 fi
2429c060
PB
10528 elif test $build != $host && test $have_gcc_for_target = yes; then
10529 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10530 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10531 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10532 fi
10533fi
c6b750e1 10534if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10535 # Extract the first word of "strip", so it can be a program name with args.
10536set dummy strip; ac_word=$2
c6b750e1
DJ
10537echo "$as_me:$LINENO: checking for $ac_word" >&5
10538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10539if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10541else
c6b750e1
DJ
10542 case $STRIP_FOR_TARGET in
10543 [\\/]* | ?:[\\/]*)
2429c060
PB
10544 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10545 ;;
2429c060 10546 *)
c6b750e1
DJ
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548for as_dir in $gcc_cv_tool_dirs
10549do
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10557 fi
10558done
10559done
10560
2429c060
PB
10561 ;;
10562esac
10563fi
c6b750e1
DJ
10564STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10565
2429c060 10566if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10567 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10568echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10569else
c6b750e1
DJ
10570 echo "$as_me:$LINENO: result: no" >&5
10571echo "${ECHO_T}no" >&6
2429c060
PB
10572fi
10573
10574fi
10575if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10576
10577
10578if test -n "$STRIP_FOR_TARGET"; then
10579 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10580elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10581 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10582fi
10583
10584if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10585 for ncn_progname in strip; do
10586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10587set dummy ${ncn_progname}; ac_word=$2
10588echo "$as_me:$LINENO: checking for $ac_word" >&5
10589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10590if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593 if test -n "$STRIP_FOR_TARGET"; then
10594 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10595else
10596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $PATH
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10603 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 break 2
10606 fi
10607done
10608done
10609
10610fi
10611fi
10612STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10613if test -n "$STRIP_FOR_TARGET"; then
10614 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10615echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10616else
10617 echo "$as_me:$LINENO: result: no" >&5
10618echo "${ECHO_T}no" >&6
10619fi
10620
10621 done
10622fi
10623
10624if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10625 for ncn_progname in strip; do
c6b750e1
DJ
10626 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10627echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10628 if test -x $with_build_time_tools/${ncn_progname}; then
10629 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10630 echo "$as_me:$LINENO: result: yes" >&5
10631echo "${ECHO_T}yes" >&6
2429c060
PB
10632 break
10633 else
c6b750e1
DJ
10634 echo "$as_me:$LINENO: result: no" >&5
10635echo "${ECHO_T}no" >&6
2429c060
PB
10636 fi
10637 done
10638fi
10639
10640if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10641 for ncn_progname in strip; do
10642 if test -n "$ncn_target_tool_prefix"; then
10643 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10644set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10645echo "$as_me:$LINENO: checking for $ac_word" >&5
10646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10647if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10649else
10650 if test -n "$STRIP_FOR_TARGET"; then
10651 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10652else
10653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654for as_dir in $PATH
10655do
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10660 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 break 2
10663 fi
10664done
10665done
10666
7e0f7140
GK
10667fi
10668fi
c6b750e1 10669STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10670if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10671 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10672echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10673else
c6b750e1
DJ
10674 echo "$as_me:$LINENO: result: no" >&5
10675echo "${ECHO_T}no" >&6
7e0f7140
GK
10676fi
10677
2429c060
PB
10678 fi
10679 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10681set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10682echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10684if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10686else
10687 if test -n "$STRIP_FOR_TARGET"; then
10688 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10689else
c6b750e1
DJ
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
10702done
10703
7e0f7140
GK
10704fi
10705fi
c6b750e1 10706STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10707if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10708 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10709echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10710else
c6b750e1
DJ
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
7e0f7140 10713fi
c6b750e1 10714
2429c060
PB
10715 fi
10716 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10717 done
10718fi
c6b750e1 10719
7e0f7140
GK
10720if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10721 set dummy strip
10722 if test $build = $target ; then
10723 STRIP_FOR_TARGET="$2"
10724 else
10725 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10726 fi
d3f5afc4
MS
10727else
10728 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10729fi
10730
3a35eeb3
PB
10731else
10732 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10733fi
10734
10735
10736
10737
10738if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10739 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10740 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10741echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10742 if test -x $with_build_time_tools/windres; then
10743 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10744 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10745 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10746echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10747 else
c6b750e1
DJ
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
3a35eeb3 10750 fi
2429c060
PB
10751 elif test $build != $host && test $have_gcc_for_target = yes; then
10752 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10753 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10754 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10755 fi
10756fi
c6b750e1 10757if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10758 # Extract the first word of "windres", so it can be a program name with args.
10759set dummy windres; ac_word=$2
c6b750e1
DJ
10760echo "$as_me:$LINENO: checking for $ac_word" >&5
10761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10762if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10764else
c6b750e1
DJ
10765 case $WINDRES_FOR_TARGET in
10766 [\\/]* | ?:[\\/]*)
2429c060
PB
10767 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10768 ;;
2429c060 10769 *)
c6b750e1
DJ
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771for as_dir in $gcc_cv_tool_dirs
10772do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10777 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10780 fi
10781done
10782done
10783
2429c060
PB
10784 ;;
10785esac
10786fi
c6b750e1
DJ
10787WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10788
2429c060 10789if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10790 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10791echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10792else
c6b750e1
DJ
10793 echo "$as_me:$LINENO: result: no" >&5
10794echo "${ECHO_T}no" >&6
2429c060
PB
10795fi
10796
10797fi
10798if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10799
10800
10801if test -n "$WINDRES_FOR_TARGET"; then
10802 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10803elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10804 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10805fi
10806
10807if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10808 for ncn_progname in windres; do
10809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10810set dummy ${ncn_progname}; ac_word=$2
10811echo "$as_me:$LINENO: checking for $ac_word" >&5
10812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 if test -n "$WINDRES_FOR_TARGET"; then
10817 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831done
10832
10833fi
10834fi
10835WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10836if test -n "$WINDRES_FOR_TARGET"; then
10837 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10838echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10839else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842fi
10843
10844 done
10845fi
10846
10847if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10848 for ncn_progname in windres; do
c6b750e1
DJ
10849 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10850echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10851 if test -x $with_build_time_tools/${ncn_progname}; then
10852 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10853 echo "$as_me:$LINENO: result: yes" >&5
10854echo "${ECHO_T}yes" >&6
2429c060
PB
10855 break
10856 else
c6b750e1
DJ
10857 echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
2429c060
PB
10859 fi
10860 done
10861fi
10862
10863if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10864 for ncn_progname in windres; do
10865 if test -n "$ncn_target_tool_prefix"; then
10866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10867set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10868echo "$as_me:$LINENO: checking for $ac_word" >&5
10869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10870if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10872else
55db4b87
PB
10873 if test -n "$WINDRES_FOR_TARGET"; then
10874 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10875else
c6b750e1
DJ
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10886 fi
10887done
10888done
10889
859789af
AC
10890fi
10891fi
c6b750e1 10892WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10893if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10894 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10895echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10896else
c6b750e1
DJ
10897 echo "$as_me:$LINENO: result: no" >&5
10898echo "${ECHO_T}no" >&6
859789af
AC
10899fi
10900
2429c060
PB
10901 fi
10902 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10904set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10905echo "$as_me:$LINENO: checking for $ac_word" >&5
10906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10907if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10909else
05cbd757
PB
10910 if test -n "$WINDRES_FOR_TARGET"; then
10911 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10912else
c6b750e1
DJ
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10920 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925done
10926
859789af
AC
10927fi
10928fi
c6b750e1 10929WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10930if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10931 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10932echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10933else
c6b750e1
DJ
10934 echo "$as_me:$LINENO: result: no" >&5
10935echo "${ECHO_T}no" >&6
859789af 10936fi
c6b750e1 10937
2429c060
PB
10938 fi
10939 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10940 done
10941fi
c6b750e1 10942
05cbd757
PB
10943if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10944 set dummy windres
10945 if test $build = $target ; then
10946 WINDRES_FOR_TARGET="$2"
859789af 10947 else
05cbd757 10948 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10949 fi
d3f5afc4
MS
10950else
10951 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10952fi
10953
3a35eeb3
PB
10954else
10955 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10956fi
10957
852e5f18 10958
0c24b341
NC
10959
10960
10961if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10962 if test -n "$with_build_time_tools"; then
10963 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10964echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10965 if test -x $with_build_time_tools/windmc; then
10966 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10967 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10968 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10969echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10970 else
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
10973 fi
10974 elif test $build != $host && test $have_gcc_for_target = yes; then
10975 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10976 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10977 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10978 fi
10979fi
10980if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10981 # Extract the first word of "windmc", so it can be a program name with args.
10982set dummy windmc; ac_word=$2
10983echo "$as_me:$LINENO: checking for $ac_word" >&5
10984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10985if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988 case $WINDMC_FOR_TARGET in
10989 [\\/]* | ?:[\\/]*)
10990 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10991 ;;
10992 *)
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $gcc_cv_tool_dirs
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004done
11005done
11006
11007 ;;
11008esac
11009fi
11010WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11011
11012if test -n "$WINDMC_FOR_TARGET"; then
11013 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11014echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11015else
11016 echo "$as_me:$LINENO: result: no" >&5
11017echo "${ECHO_T}no" >&6
11018fi
11019
11020fi
11021if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11022
11023
11024if test -n "$WINDMC_FOR_TARGET"; then
11025 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11026elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11027 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11028fi
11029
11030if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11031 for ncn_progname in windmc; do
11032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033set dummy ${ncn_progname}; ac_word=$2
11034echo "$as_me:$LINENO: checking for $ac_word" >&5
11035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11036if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038else
11039 if test -n "$WINDMC_FOR_TARGET"; then
11040 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11041else
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11052 fi
11053done
11054done
11055
11056fi
11057fi
11058WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11059if test -n "$WINDMC_FOR_TARGET"; then
11060 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11061echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11062else
11063 echo "$as_me:$LINENO: result: no" >&5
11064echo "${ECHO_T}no" >&6
11065fi
11066
11067 done
11068fi
11069
11070if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11071 for ncn_progname in windmc; do
11072 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11073echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11074 if test -x $with_build_time_tools/${ncn_progname}; then
11075 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11076 echo "$as_me:$LINENO: result: yes" >&5
11077echo "${ECHO_T}yes" >&6
11078 break
11079 else
11080 echo "$as_me:$LINENO: result: no" >&5
11081echo "${ECHO_T}no" >&6
11082 fi
11083 done
11084fi
11085
11086if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11087 for ncn_progname in windmc; do
11088 if test -n "$ncn_target_tool_prefix"; then
11089 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11090set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11091echo "$as_me:$LINENO: checking for $ac_word" >&5
11092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11093if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095else
11096 if test -n "$WINDMC_FOR_TARGET"; then
11097 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11098else
11099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11109 fi
11110done
11111done
11112
11113fi
11114fi
11115WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11116if test -n "$WINDMC_FOR_TARGET"; then
11117 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11118echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11119else
11120 echo "$as_me:$LINENO: result: no" >&5
11121echo "${ECHO_T}no" >&6
11122fi
11123
11124 fi
11125 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11127set dummy ${ncn_progname}; ac_word=$2
11128echo "$as_me:$LINENO: checking for $ac_word" >&5
11129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11130if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 if test -n "$WINDMC_FOR_TARGET"; then
11134 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11135else
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11146 fi
11147done
11148done
11149
11150fi
11151fi
11152WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11153if test -n "$WINDMC_FOR_TARGET"; then
11154 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11155echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11156else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159fi
11160
11161 fi
11162 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11163 done
11164fi
11165
11166if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11167 set dummy windmc
11168 if test $build = $target ; then
11169 WINDMC_FOR_TARGET="$2"
11170 else
11171 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11172 fi
11173else
11174 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11175fi
11176
11177else
11178 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11179fi
11180
11181
be01d343
PB
11182RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11183
c6b750e1
DJ
11184echo "$as_me:$LINENO: checking where to find the target ar" >&5
11185echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11186if test "x${build}" != "x${host}" ; then
2429c060
PB
11187 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11188 # We already found the complete path
b8025f34
AS
11189 ac_dir=`dirname $AR_FOR_TARGET`
11190 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11191echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11192 else
11193 # Canadian cross, just use what we found
c6b750e1
DJ
11194 echo "$as_me:$LINENO: result: pre-installed" >&5
11195echo "${ECHO_T}pre-installed" >&6
2429c060 11196 fi
be01d343
PB
11197else
11198 ok=yes
11199 case " ${configdirs} " in
11200 *" binutils "*) ;;
11201 *) ok=no ;;
11202 esac
c6b750e1 11203
be01d343
PB
11204 if test $ok = yes; then
11205 # An in-tree tool is available and we can use it
11206 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11207 echo "$as_me:$LINENO: result: just compiled" >&5
11208echo "${ECHO_T}just compiled" >&6
2429c060
PB
11209 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11210 # We already found the complete path
b8025f34
AS
11211 ac_dir=`dirname $AR_FOR_TARGET`
11212 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11213echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11214 elif test "x$target" = "x$host"; then
11215 # We can use an host tool
11216 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11217 echo "$as_me:$LINENO: result: host tool" >&5
11218echo "${ECHO_T}host tool" >&6
be01d343
PB
11219 else
11220 # We need a cross tool
c6b750e1
DJ
11221 echo "$as_me:$LINENO: result: pre-installed" >&5
11222echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11223 fi
11224fi
4b900473 11225
c6b750e1
DJ
11226echo "$as_me:$LINENO: checking where to find the target as" >&5
11227echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11228if test "x${build}" != "x${host}" ; then
2429c060
PB
11229 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11230 # We already found the complete path
b8025f34
AS
11231 ac_dir=`dirname $AS_FOR_TARGET`
11232 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11233echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11234 else
11235 # Canadian cross, just use what we found
c6b750e1
DJ
11236 echo "$as_me:$LINENO: result: pre-installed" >&5
11237echo "${ECHO_T}pre-installed" >&6
2429c060 11238 fi
be01d343
PB
11239else
11240 ok=yes
11241 case " ${configdirs} " in
11242 *" gas "*) ;;
11243 *) ok=no ;;
11244 esac
c6b750e1 11245
be01d343
PB
11246 if test $ok = yes; then
11247 # An in-tree tool is available and we can use it
11248 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11249 echo "$as_me:$LINENO: result: just compiled" >&5
11250echo "${ECHO_T}just compiled" >&6
2429c060
PB
11251 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11252 # We already found the complete path
b8025f34
AS
11253 ac_dir=`dirname $AS_FOR_TARGET`
11254 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11255echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11256 elif test "x$target" = "x$host"; then
11257 # We can use an host tool
11258 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11259 echo "$as_me:$LINENO: result: host tool" >&5
11260echo "${ECHO_T}host tool" >&6
be01d343
PB
11261 else
11262 # We need a cross tool
c6b750e1
DJ
11263 echo "$as_me:$LINENO: result: pre-installed" >&5
11264echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11265 fi
11266fi
4b900473 11267
c6b750e1
DJ
11268echo "$as_me:$LINENO: checking where to find the target cc" >&5
11269echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11270if test "x${build}" != "x${host}" ; then
2429c060
PB
11271 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11272 # We already found the complete path
b8025f34
AS
11273 ac_dir=`dirname $CC_FOR_TARGET`
11274 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11275echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11276 else
11277 # Canadian cross, just use what we found
c6b750e1
DJ
11278 echo "$as_me:$LINENO: result: pre-installed" >&5
11279echo "${ECHO_T}pre-installed" >&6
2429c060 11280 fi
be01d343
PB
11281else
11282 ok=yes
11283 case " ${configdirs} " in
11284 *" gcc "*) ;;
11285 *) ok=no ;;
11286 esac
c6b750e1 11287
be01d343
PB
11288 if test $ok = yes; then
11289 # An in-tree tool is available and we can use it
11290 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11291 echo "$as_me:$LINENO: result: just compiled" >&5
11292echo "${ECHO_T}just compiled" >&6
2429c060
PB
11293 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11294 # We already found the complete path
b8025f34
AS
11295 ac_dir=`dirname $CC_FOR_TARGET`
11296 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11297echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11298 elif test "x$target" = "x$host"; then
11299 # We can use an host tool
11300 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11301 echo "$as_me:$LINENO: result: host tool" >&5
11302echo "${ECHO_T}host tool" >&6
be01d343
PB
11303 else
11304 # We need a cross tool
c6b750e1
DJ
11305 echo "$as_me:$LINENO: result: pre-installed" >&5
11306echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11307 fi
11308fi
4b900473 11309
c6b750e1
DJ
11310echo "$as_me:$LINENO: checking where to find the target c++" >&5
11311echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11312if test "x${build}" != "x${host}" ; then
2429c060
PB
11313 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11314 # We already found the complete path
b8025f34
AS
11315 ac_dir=`dirname $CXX_FOR_TARGET`
11316 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11317echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11318 else
11319 # Canadian cross, just use what we found
c6b750e1
DJ
11320 echo "$as_me:$LINENO: result: pre-installed" >&5
11321echo "${ECHO_T}pre-installed" >&6
2429c060 11322 fi
be01d343
PB
11323else
11324 ok=yes
11325 case " ${configdirs} " in
11326 *" gcc "*) ;;
11327 *) ok=no ;;
11328 esac
11329 case ,${enable_languages}, in
11330 *,c++,*) ;;
11331 *) ok=no ;;
11332 esac
11333 if test $ok = yes; then
11334 # An in-tree tool is available and we can use it
11335 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
11336 echo "$as_me:$LINENO: result: just compiled" >&5
11337echo "${ECHO_T}just compiled" >&6
2429c060
PB
11338 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11339 # We already found the complete path
b8025f34
AS
11340 ac_dir=`dirname $CXX_FOR_TARGET`
11341 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11342echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11343 elif test "x$target" = "x$host"; then
11344 # We can use an host tool
11345 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11346 echo "$as_me:$LINENO: result: host tool" >&5
11347echo "${ECHO_T}host tool" >&6
be01d343
PB
11348 else
11349 # We need a cross tool
c6b750e1
DJ
11350 echo "$as_me:$LINENO: result: pre-installed" >&5
11351echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11352 fi
11353fi
4b900473 11354
c6b750e1
DJ
11355echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11356echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11357if test "x${build}" != "x${host}" ; then
2429c060
PB
11358 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11359 # We already found the complete path
b8025f34
AS
11360 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11361 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11362echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11363 else
11364 # Canadian cross, just use what we found
c6b750e1
DJ
11365 echo "$as_me:$LINENO: result: pre-installed" >&5
11366echo "${ECHO_T}pre-installed" >&6
2429c060 11367 fi
be01d343
PB
11368else
11369 ok=yes
11370 case " ${configdirs} " in
11371 *" gcc "*) ;;
11372 *) ok=no ;;
11373 esac
11374 case ,${enable_languages}, in
11375 *,c++,*) ;;
11376 *) ok=no ;;
11377 esac
11378 if test $ok = yes; then
11379 # An in-tree tool is available and we can use it
11380 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
11381 echo "$as_me:$LINENO: result: just compiled" >&5
11382echo "${ECHO_T}just compiled" >&6
2429c060
PB
11383 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11384 # We already found the complete path
b8025f34
AS
11385 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11386 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11387echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11388 elif test "x$target" = "x$host"; then
11389 # We can use an host tool
11390 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11391 echo "$as_me:$LINENO: result: host tool" >&5
11392echo "${ECHO_T}host tool" >&6
be01d343
PB
11393 else
11394 # We need a cross tool
c6b750e1
DJ
11395 echo "$as_me:$LINENO: result: pre-installed" >&5
11396echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11397 fi
11398fi
4b900473 11399
c6b750e1
DJ
11400echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11401echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11402if test "x${build}" != "x${host}" ; then
2429c060
PB
11403 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11404 # We already found the complete path
b8025f34
AS
11405 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11406 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11407echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11408 else
11409 # Canadian cross, just use what we found
c6b750e1
DJ
11410 echo "$as_me:$LINENO: result: pre-installed" >&5
11411echo "${ECHO_T}pre-installed" >&6
2429c060 11412 fi
be01d343
PB
11413else
11414 ok=yes
11415 case " ${configdirs} " in
11416 *" binutils "*) ;;
11417 *) ok=no ;;
11418 esac
c6b750e1 11419
be01d343
PB
11420 if test $ok = yes; then
11421 # An in-tree tool is available and we can use it
11422 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11423 echo "$as_me:$LINENO: result: just compiled" >&5
11424echo "${ECHO_T}just compiled" >&6
2429c060
PB
11425 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11426 # We already found the complete path
b8025f34
AS
11427 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11428 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11429echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11430 elif test "x$target" = "x$host"; then
11431 # We can use an host tool
11432 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11433 echo "$as_me:$LINENO: result: host tool" >&5
11434echo "${ECHO_T}host tool" >&6
be01d343
PB
11435 else
11436 # We need a cross tool
c6b750e1
DJ
11437 echo "$as_me:$LINENO: result: pre-installed" >&5
11438echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11439 fi
11440fi
4b900473 11441
c6b750e1
DJ
11442echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11443echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11444if test "x${build}" != "x${host}" ; then
2429c060
PB
11445 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11446 # We already found the complete path
b8025f34
AS
11447 ac_dir=`dirname $GCC_FOR_TARGET`
11448 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11449echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11450 else
11451 # Canadian cross, just use what we found
c6b750e1
DJ
11452 echo "$as_me:$LINENO: result: pre-installed" >&5
11453echo "${ECHO_T}pre-installed" >&6
2429c060 11454 fi
be01d343
PB
11455else
11456 ok=yes
11457 case " ${configdirs} " in
11458 *" gcc "*) ;;
11459 *) ok=no ;;
11460 esac
c6b750e1 11461
be01d343
PB
11462 if test $ok = yes; then
11463 # An in-tree tool is available and we can use it
11464 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11465 echo "$as_me:$LINENO: result: just compiled" >&5
11466echo "${ECHO_T}just compiled" >&6
2429c060
PB
11467 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11468 # We already found the complete path
b8025f34
AS
11469 ac_dir=`dirname $GCC_FOR_TARGET`
11470 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11471echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11472 elif test "x$target" = "x$host"; then
11473 # We can use an host tool
11474 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11475 echo "$as_me:$LINENO: result: host tool" >&5
11476echo "${ECHO_T}host tool" >&6
be01d343
PB
11477 else
11478 # We need a cross tool
c6b750e1
DJ
11479 echo "$as_me:$LINENO: result: pre-installed" >&5
11480echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11481 fi
11482fi
4b900473 11483
c6b750e1
DJ
11484echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11485echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11486if test "x${build}" != "x${host}" ; then
2429c060
PB
11487 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11488 # We already found the complete path
b8025f34
AS
11489 ac_dir=`dirname $GCJ_FOR_TARGET`
11490 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11491echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11492 else
11493 # Canadian cross, just use what we found
c6b750e1
DJ
11494 echo "$as_me:$LINENO: result: pre-installed" >&5
11495echo "${ECHO_T}pre-installed" >&6
2429c060 11496 fi
be01d343
PB
11497else
11498 ok=yes
11499 case " ${configdirs} " in
11500 *" gcc "*) ;;
11501 *) ok=no ;;
11502 esac
11503 case ,${enable_languages}, in
11504 *,java,*) ;;
11505 *) ok=no ;;
11506 esac
11507 if test $ok = yes; then
11508 # An in-tree tool is available and we can use it
11509 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11510 echo "$as_me:$LINENO: result: just compiled" >&5
11511echo "${ECHO_T}just compiled" >&6
2429c060
PB
11512 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11513 # We already found the complete path
b8025f34
AS
11514 ac_dir=`dirname $GCJ_FOR_TARGET`
11515 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11516echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11517 elif test "x$target" = "x$host"; then
11518 # We can use an host tool
11519 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11520 echo "$as_me:$LINENO: result: host tool" >&5
11521echo "${ECHO_T}host tool" >&6
be01d343
PB
11522 else
11523 # We need a cross tool
c6b750e1
DJ
11524 echo "$as_me:$LINENO: result: pre-installed" >&5
11525echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11526 fi
11527fi
4b900473 11528
c6b750e1
DJ
11529echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11530echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11531if test "x${build}" != "x${host}" ; then
2429c060
PB
11532 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11533 # We already found the complete path
b8025f34
AS
11534 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11535 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11536echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11537 else
11538 # Canadian cross, just use what we found
c6b750e1
DJ
11539 echo "$as_me:$LINENO: result: pre-installed" >&5
11540echo "${ECHO_T}pre-installed" >&6
2429c060 11541 fi
be01d343
PB
11542else
11543 ok=yes
11544 case " ${configdirs} " in
11545 *" gcc "*) ;;
11546 *) ok=no ;;
11547 esac
11548 case ,${enable_languages}, in
11549 *,fortran,*) ;;
11550 *) ok=no ;;
11551 esac
11552 if test $ok = yes; then
11553 # An in-tree tool is available and we can use it
11554 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11555 echo "$as_me:$LINENO: result: just compiled" >&5
11556echo "${ECHO_T}just compiled" >&6
2429c060
PB
11557 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11558 # We already found the complete path
b8025f34
AS
11559 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11560 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11561echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11562 elif test "x$target" = "x$host"; then
11563 # We can use an host tool
11564 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11565 echo "$as_me:$LINENO: result: host tool" >&5
11566echo "${ECHO_T}host tool" >&6
be01d343
PB
11567 else
11568 # We need a cross tool
c6b750e1
DJ
11569 echo "$as_me:$LINENO: result: pre-installed" >&5
11570echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11571 fi
11572fi
4b900473 11573
c6b750e1
DJ
11574echo "$as_me:$LINENO: checking where to find the target ld" >&5
11575echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11576if test "x${build}" != "x${host}" ; then
2429c060
PB
11577 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11578 # We already found the complete path
b8025f34
AS
11579 ac_dir=`dirname $LD_FOR_TARGET`
11580 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11581echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11582 else
11583 # Canadian cross, just use what we found
c6b750e1
DJ
11584 echo "$as_me:$LINENO: result: pre-installed" >&5
11585echo "${ECHO_T}pre-installed" >&6
2429c060 11586 fi
be01d343
PB
11587else
11588 ok=yes
11589 case " ${configdirs} " in
11590 *" ld "*) ;;
11591 *) ok=no ;;
11592 esac
c6b750e1 11593
be01d343
PB
11594 if test $ok = yes; then
11595 # An in-tree tool is available and we can use it
11596 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11597 echo "$as_me:$LINENO: result: just compiled" >&5
11598echo "${ECHO_T}just compiled" >&6
2429c060
PB
11599 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11600 # We already found the complete path
b8025f34
AS
11601 ac_dir=`dirname $LD_FOR_TARGET`
11602 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11603echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11604 elif test "x$target" = "x$host"; then
11605 # We can use an host tool
11606 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11607 echo "$as_me:$LINENO: result: host tool" >&5
11608echo "${ECHO_T}host tool" >&6
be01d343
PB
11609 else
11610 # We need a cross tool
c6b750e1
DJ
11611 echo "$as_me:$LINENO: result: pre-installed" >&5
11612echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11613 fi
11614fi
4b900473 11615
c6b750e1
DJ
11616echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11617echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11618if test "x${build}" != "x${host}" ; then
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
PB
11624 else
11625 # Canadian cross, just use what we found
c6b750e1
DJ
11626 echo "$as_me:$LINENO: result: pre-installed" >&5
11627echo "${ECHO_T}pre-installed" >&6
2429c060 11628 fi
be01d343 11629else
2429c060
PB
11630 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11631 # We already found the complete path
b8025f34
AS
11632 ac_dir=`dirname $LIPO_FOR_TARGET`
11633 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11634echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11635 elif test "x$target" = "x$host"; then
be01d343
PB
11636 # We can use an host tool
11637 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11638 echo "$as_me:$LINENO: result: host tool" >&5
11639echo "${ECHO_T}host tool" >&6
be01d343
PB
11640 else
11641 # We need a cross tool
c6b750e1
DJ
11642 echo "$as_me:$LINENO: result: pre-installed" >&5
11643echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11644 fi
11645fi
4b900473 11646
c6b750e1
DJ
11647echo "$as_me:$LINENO: checking where to find the target nm" >&5
11648echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11649if test "x${build}" != "x${host}" ; then
2429c060
PB
11650 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11651 # We already found the complete path
b8025f34
AS
11652 ac_dir=`dirname $NM_FOR_TARGET`
11653 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11654echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11655 else
11656 # Canadian cross, just use what we found
c6b750e1
DJ
11657 echo "$as_me:$LINENO: result: pre-installed" >&5
11658echo "${ECHO_T}pre-installed" >&6
2429c060 11659 fi
be01d343
PB
11660else
11661 ok=yes
11662 case " ${configdirs} " in
11663 *" binutils "*) ;;
11664 *) ok=no ;;
11665 esac
c6b750e1 11666
be01d343
PB
11667 if test $ok = yes; then
11668 # An in-tree tool is available and we can use it
11669 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11670 echo "$as_me:$LINENO: result: just compiled" >&5
11671echo "${ECHO_T}just compiled" >&6
2429c060
PB
11672 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11673 # We already found the complete path
b8025f34
AS
11674 ac_dir=`dirname $NM_FOR_TARGET`
11675 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11676echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11677 elif test "x$target" = "x$host"; then
11678 # We can use an host tool
11679 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11680 echo "$as_me:$LINENO: result: host tool" >&5
11681echo "${ECHO_T}host tool" >&6
be01d343
PB
11682 else
11683 # We need a cross tool
c6b750e1
DJ
11684 echo "$as_me:$LINENO: result: pre-installed" >&5
11685echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11686 fi
11687fi
4b900473 11688
c6b750e1
DJ
11689echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11690echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11691if test "x${build}" != "x${host}" ; then
2429c060
PB
11692 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11693 # We already found the complete path
b8025f34
AS
11694 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11695 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11696echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11697 else
11698 # Canadian cross, just use what we found
c6b750e1
DJ
11699 echo "$as_me:$LINENO: result: pre-installed" >&5
11700echo "${ECHO_T}pre-installed" >&6
2429c060 11701 fi
be01d343
PB
11702else
11703 ok=yes
11704 case " ${configdirs} " in
11705 *" binutils "*) ;;
11706 *) ok=no ;;
11707 esac
c6b750e1 11708
be01d343
PB
11709 if test $ok = yes; then
11710 # An in-tree tool is available and we can use it
11711 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11712 echo "$as_me:$LINENO: result: just compiled" >&5
11713echo "${ECHO_T}just compiled" >&6
2429c060
PB
11714 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11715 # We already found the complete path
b8025f34
AS
11716 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11717 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11718echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11719 elif test "x$target" = "x$host"; then
11720 # We can use an host tool
11721 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11722 echo "$as_me:$LINENO: result: host tool" >&5
11723echo "${ECHO_T}host tool" >&6
be01d343
PB
11724 else
11725 # We need a cross tool
c6b750e1
DJ
11726 echo "$as_me:$LINENO: result: pre-installed" >&5
11727echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11728 fi
11729fi
4b900473 11730
c6b750e1
DJ
11731echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11732echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11733if test "x${build}" != "x${host}" ; then
2429c060
PB
11734 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11735 # We already found the complete path
b8025f34
AS
11736 ac_dir=`dirname $RANLIB_FOR_TARGET`
11737 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11738echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11739 else
11740 # Canadian cross, just use what we found
c6b750e1
DJ
11741 echo "$as_me:$LINENO: result: pre-installed" >&5
11742echo "${ECHO_T}pre-installed" >&6
2429c060 11743 fi
be01d343
PB
11744else
11745 ok=yes
11746 case " ${configdirs} " in
11747 *" binutils "*) ;;
11748 *) ok=no ;;
11749 esac
c6b750e1 11750
be01d343
PB
11751 if test $ok = yes; then
11752 # An in-tree tool is available and we can use it
11753 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11754 echo "$as_me:$LINENO: result: just compiled" >&5
11755echo "${ECHO_T}just compiled" >&6
2429c060
PB
11756 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11757 # We already found the complete path
b8025f34
AS
11758 ac_dir=`dirname $RANLIB_FOR_TARGET`
11759 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11760echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11761 elif test "x$target" = "x$host"; then
11762 # We can use an host tool
11763 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11764 echo "$as_me:$LINENO: result: host tool" >&5
11765echo "${ECHO_T}host tool" >&6
be01d343
PB
11766 else
11767 # We need a cross tool
c6b750e1
DJ
11768 echo "$as_me:$LINENO: result: pre-installed" >&5
11769echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11770 fi
11771fi
4b900473 11772
c6b750e1
DJ
11773echo "$as_me:$LINENO: checking where to find the target strip" >&5
11774echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11775if test "x${build}" != "x${host}" ; then
2429c060
PB
11776 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11777 # We already found the complete path
b8025f34
AS
11778 ac_dir=`dirname $STRIP_FOR_TARGET`
11779 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11780echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11781 else
11782 # Canadian cross, just use what we found
c6b750e1
DJ
11783 echo "$as_me:$LINENO: result: pre-installed" >&5
11784echo "${ECHO_T}pre-installed" >&6
2429c060 11785 fi
be01d343
PB
11786else
11787 ok=yes
11788 case " ${configdirs} " in
11789 *" binutils "*) ;;
11790 *) ok=no ;;
11791 esac
c6b750e1 11792
be01d343
PB
11793 if test $ok = yes; then
11794 # An in-tree tool is available and we can use it
11795 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11796 echo "$as_me:$LINENO: result: just compiled" >&5
11797echo "${ECHO_T}just compiled" >&6
2429c060
PB
11798 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11799 # We already found the complete path
b8025f34
AS
11800 ac_dir=`dirname $STRIP_FOR_TARGET`
11801 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11802echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11803 elif test "x$target" = "x$host"; then
11804 # We can use an host tool
11805 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11806 echo "$as_me:$LINENO: result: host tool" >&5
11807echo "${ECHO_T}host tool" >&6
be01d343
PB
11808 else
11809 # We need a cross tool
c6b750e1
DJ
11810 echo "$as_me:$LINENO: result: pre-installed" >&5
11811echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11812 fi
11813fi
4b900473 11814
c6b750e1
DJ
11815echo "$as_me:$LINENO: checking where to find the target windres" >&5
11816echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11817if test "x${build}" != "x${host}" ; then
2429c060
PB
11818 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11819 # We already found the complete path
b8025f34
AS
11820 ac_dir=`dirname $WINDRES_FOR_TARGET`
11821 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11822echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11823 else
11824 # Canadian cross, just use what we found
c6b750e1
DJ
11825 echo "$as_me:$LINENO: result: pre-installed" >&5
11826echo "${ECHO_T}pre-installed" >&6
2429c060 11827 fi
be01d343
PB
11828else
11829 ok=yes
11830 case " ${configdirs} " in
11831 *" binutils "*) ;;
11832 *) ok=no ;;
11833 esac
c6b750e1 11834
be01d343
PB
11835 if test $ok = yes; then
11836 # An in-tree tool is available and we can use it
11837 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11838 echo "$as_me:$LINENO: result: just compiled" >&5
11839echo "${ECHO_T}just compiled" >&6
2429c060
PB
11840 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11841 # We already found the complete path
b8025f34
AS
11842 ac_dir=`dirname $WINDRES_FOR_TARGET`
11843 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11844echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11845 elif test "x$target" = "x$host"; then
11846 # We can use an host tool
11847 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11848 echo "$as_me:$LINENO: result: host tool" >&5
11849echo "${ECHO_T}host tool" >&6
be01d343
PB
11850 else
11851 # We need a cross tool
c6b750e1
DJ
11852 echo "$as_me:$LINENO: result: pre-installed" >&5
11853echo "${ECHO_T}pre-installed" >&6
be01d343 11854 fi
a0da8069 11855fi
54752a6b 11856
0c24b341
NC
11857echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11858echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11859if test "x${build}" != "x${host}" ; then
11860 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11861 # We already found the complete path
11862 ac_dir=`dirname $WINDMC_FOR_TARGET`
11863 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11864echo "${ECHO_T}pre-installed in $ac_dir" >&6
11865 else
11866 # Canadian cross, just use what we found
11867 echo "$as_me:$LINENO: result: pre-installed" >&5
11868echo "${ECHO_T}pre-installed" >&6
11869 fi
11870else
11871 ok=yes
11872 case " ${configdirs} " in
11873 *" binutils "*) ;;
11874 *) ok=no ;;
11875 esac
11876
11877 if test $ok = yes; then
11878 # An in-tree tool is available and we can use it
11879 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11880 echo "$as_me:$LINENO: result: just compiled" >&5
11881echo "${ECHO_T}just compiled" >&6
11882 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11883 # We already found the complete path
11884 ac_dir=`dirname $WINDMC_FOR_TARGET`
11885 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11886echo "${ECHO_T}pre-installed in $ac_dir" >&6
11887 elif test "x$target" = "x$host"; then
11888 # We can use an host tool
11889 WINDMC_FOR_TARGET='$(WINDMC)'
11890 echo "$as_me:$LINENO: result: host tool" >&5
11891echo "${ECHO_T}host tool" >&6
11892 else
11893 # We need a cross tool
11894 echo "$as_me:$LINENO: result: pre-installed" >&5
11895echo "${ECHO_T}pre-installed" >&6
11896 fi
11897fi
11898
54752a6b
NN
11899
11900
be01d343 11901
4b900473 11902
a0da8069
NN
11903# Certain tools may need extra flags.
11904AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11905RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11906NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11907
be01d343
PB
11908# When building target libraries, except in a Canadian cross, we use
11909# the same toolchain as the compiler we just built.
11910COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11911COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11912COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11913if test $host = $build; then
11914 case " $configdirs " in
11915 *" gcc "*)
11916 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11917 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11918 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11919 ;;
11920 esac
11921fi
11922
11923
11924
11925
11926
c6b750e1
DJ
11927echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11928echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11929# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11930if test "${enable_maintainer_mode+set}" = set; then
11931 enableval="$enable_maintainer_mode"
11932 USE_MAINTAINER_MODE=$enableval
11933else
11934 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11935fi;
11936echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11937echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11938
11939
11940if test "$USE_MAINTAINER_MODE" = yes; then
11941 MAINTAINER_MODE_TRUE=
11942 MAINTAINER_MODE_FALSE='#'
11943else
11944 MAINTAINER_MODE_TRUE='#'
11945 MAINTAINER_MODE_FALSE=
c6b750e1 11946fi
3d5e36ae
AO
11947MAINT=$MAINTAINER_MODE_TRUE
11948
1d39f329
NN
11949# ---------------------
11950# GCC bootstrap support
11951# ---------------------
11952
11953# Stage specific cflags for build.
11954stage1_cflags="-g"
11955case $build in
11956 vax-*-*)
11957 case ${GCC} in
11958 yes) stage1_cflags="-g -Wa,-J" ;;
11959 *) stage1_cflags="-g -J" ;;
11960 esac ;;
1d39f329
NN
11961esac
11962
1d89b610
PB
11963# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11964if test "$GCC" = yes; then
11965 saved_CFLAGS="$CFLAGS"
11966
11967 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11968 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11969 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11970echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11971 cat >conftest.$ac_ext <<_ACEOF
11972/* confdefs.h. */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h. */
11977
2038f525
PB
11978#if (__GNUC__ < 3) \
11979 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11980 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11981#error http://gcc.gnu.org/PR29382
11982#endif
11983
c6b750e1
DJ
11984int
11985main ()
11986{
11987
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext
11993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 echo "$as_me:$LINENO: result: yes" >&5
12015echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12016else
12017 echo "$as_me: failed program was:" >&5
12018sed 's/^/| /' conftest.$ac_ext >&5
12019
12020echo "$as_me:$LINENO: result: no" >&5
12021echo "${ECHO_T}no" >&6
12022fi
12023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12024
12025 CFLAGS="$saved_CFLAGS"
12026fi
12027
12028
1d39f329 12029
8a0d8a5c
PB
12030# Enable --enable-checking in stage1 of the compiler.
12031# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12032if test "${enable_stage1_checking+set}" = set; then
12033 enableval="$enable_stage1_checking"
12034 stage1_checking=--enable-checking=${enable_stage1_checking}
12035else
5566c1fa 12036 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12037 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12038else
5566c1fa 12039 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12040fi
c6b750e1 12041fi;
8a0d8a5c
PB
12042
12043
1d39f329 12044# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12045# Check whether --enable-werror or --disable-werror was given.
12046if test "${enable_werror+set}" = set; then
12047 enableval="$enable_werror"
c6b750e1 12048
1d39f329 12049else
a0323144 12050 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12051 enable_werror=yes
79fcd0ec
PB
12052else
12053 enable_werror=no
12054fi
c6b750e1 12055fi;
1a6f2dc7
NN
12056case ${enable_werror} in
12057 yes) stage2_werror_flag="--enable-werror-always" ;;
12058 *) stage2_werror_flag="" ;;
1d39f329
NN
12059esac
12060
12061
108a6f8e 12062# Flags needed to enable html installing and building
c6b750e1 12063
108a6f8e
CD
12064# Check whether --with-datarootdir or --without-datarootdir was given.
12065if test "${with_datarootdir+set}" = set; then
12066 withval="$with_datarootdir"
12067 datarootdir="\${prefix}/${withval}"
12068else
12069 datarootdir="\${prefix}/share"
c6b750e1 12070fi;
108a6f8e
CD
12071
12072
12073# Check whether --with-docdir or --without-docdir was given.
12074if test "${with_docdir+set}" = set; then
12075 withval="$with_docdir"
12076 docdir="\${prefix}/${withval}"
12077else
12078 docdir="\${datarootdir}/doc"
c6b750e1 12079fi;
108a6f8e
CD
12080
12081
a3ca38d2
DD
12082# Check whether --with-pdfdir or --without-pdfdir was given.
12083if test "${with_pdfdir+set}" = set; then
12084 withval="$with_pdfdir"
12085 pdfdir="\${prefix}/${withval}"
12086else
12087 pdfdir="\${docdir}"
12088fi;
12089
12090
108a6f8e
CD
12091# Check whether --with-htmldir or --without-htmldir was given.
12092if test "${with_htmldir+set}" = set; then
12093 withval="$with_htmldir"
12094 htmldir="\${prefix}/${withval}"
12095else
12096 htmldir="\${docdir}"
c6b750e1 12097fi;
108a6f8e
CD
12098
12099
12100
12101
12102
b8025f34 12103
c6b750e1
DJ
12104 ac_config_files="$ac_config_files Makefile"
12105cat >confcache <<\_ACEOF
a0da8069
NN
12106# This file is a shell script that caches the results of configure
12107# tests run on this system so they can be shared between configure
c6b750e1
DJ
12108# scripts and configure runs, see configure's option --config-cache.
12109# It is not useful on other systems. If it contains results you don't
12110# want to keep, you may remove or edit it.
a0da8069 12111#
c6b750e1
DJ
12112# config.status only pays attention to the cache file if you give it
12113# the --recheck option to rerun configure.
a0da8069 12114#
c6b750e1
DJ
12115# `ac_cv_env_foo' variables (set or unset) will be overridden when
12116# loading this file, other *unset* `ac_cv_foo' will be assigned the
12117# following values.
12118
12119_ACEOF
12120
a0da8069
NN
12121# The following way of writing the cache mishandles newlines in values,
12122# but we know of no workaround that is simple, portable, and efficient.
12123# So, don't put newlines in cache variables' values.
12124# Ultrix sh set writes to stderr and can't be redirected directly,
12125# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12126{
12127 (set) 2>&1 |
12128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12129 *ac_space=\ *)
12130 # `set' does not quote correctly, so add quotes (double-quote
12131 # substitution turns \\\\ into \\, and sed turns \\ into \).
12132 sed -n \
12133 "s/'/'\\\\''/g;
12134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12135 ;;
12136 *)
12137 # `set' quotes correctly as required by POSIX, so do not add quotes.
12138 sed -n \
12139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12140 ;;
12141 esac;
12142} |
12143 sed '
12144 t clear
12145 : clear
12146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12147 t end
12148 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12149 : end' >>confcache
12150if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12151 if test -w $cache_file; then
c6b750e1
DJ
12152 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12153 cat confcache >$cache_file
a0da8069
NN
12154 else
12155 echo "not updating unwritable cache $cache_file"
12156 fi
852e5f18 12157fi
a0da8069 12158rm -f confcache
852e5f18 12159
a0da8069
NN
12160test "x$prefix" = xNONE && prefix=$ac_default_prefix
12161# Let make expand exec_prefix.
12162test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12163
c6b750e1
DJ
12164# VPATH may cause trouble with some makes, so we remove $(srcdir),
12165# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12166# trailing colons and then remove the whole line if VPATH becomes empty
12167# (actually we leave an empty line to preserve line numbers).
a0da8069 12168if test "x$srcdir" = x.; then
c6b750e1
DJ
12169 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12170s/:*\$(srcdir):*/:/;
12171s/:*\${srcdir}:*/:/;
12172s/:*@srcdir@:*/:/;
12173s/^\([^=]*=[ ]*\):*/\1/;
12174s/:*$//;
12175s/^[^=]*=[ ]*$//;
12176}'
a0da8069 12177fi
252b5132 12178
a0da8069
NN
12179# Transform confdefs.h into DEFS.
12180# Protect against shell expansion while executing Makefile rules.
12181# Protect against Makefile macro expansion.
c6b750e1
DJ
12182#
12183# If the first sed substitution is executed (which looks for macros that
12184# take arguments), then we branch to the quote section. Otherwise,
12185# look for a macro that doesn't take arguments.
12186cat >confdef2opt.sed <<\_ACEOF
12187t clear
12188: clear
12189s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12190t quote
12191s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12192t quote
12193d
12194: quote
12195s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12196s,\[,\\&,g
12197s,\],\\&,g
12198s,\$,$$,g
12199p
12200_ACEOF
12201# We use echo to avoid assuming a particular line-breaking character.
12202# The extra dot is to prevent the shell from consuming trailing
12203# line-breaks from the sub-command output. A line-break within
12204# single-quotes doesn't work because, if this script is created in a
12205# platform that uses two characters for line-breaks (e.g., DOS), tr
12206# would break.
12207ac_LF_and_DOT=`echo; echo .`
12208DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12209rm -f confdef2opt.sed
12210
12211
12212ac_libobjs=
12213ac_ltlibobjs=
12214for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12215 # 1. Remove the extension, and $U if already installed.
12216 ac_i=`echo "$ac_i" |
12217 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12218 # 2. Add them.
12219 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12220 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12221done
12222LIBOBJS=$ac_libobjs
852e5f18 12223
c6b750e1 12224LTLIBOBJS=$ac_ltlibobjs
376a0e54 12225
cac3d6c4 12226
c6b750e1
DJ
12227
12228: ${CONFIG_STATUS=./config.status}
12229ac_clean_files_save=$ac_clean_files
12230ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12231{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12232echo "$as_me: creating $CONFIG_STATUS" >&6;}
12233cat >$CONFIG_STATUS <<_ACEOF
12234#! $SHELL
12235# Generated by $as_me.
a0da8069 12236# Run this file to recreate the current configuration.
a0da8069 12237# Compiler output produced by configure, useful for debugging
c6b750e1 12238# configure, is in config.log if it exists.
376a0e54 12239
c6b750e1
DJ
12240debug=false
12241ac_cs_recheck=false
12242ac_cs_silent=false
12243SHELL=\${CONFIG_SHELL-$SHELL}
12244_ACEOF
12245
12246cat >>$CONFIG_STATUS <<\_ACEOF
12247## --------------------- ##
12248## M4sh Initialization. ##
12249## --------------------- ##
12250
12251# Be Bourne compatible
12252if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12253 emulate sh
12254 NULLCMD=:
12255 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12256 # is contrary to our usage. Disable this feature.
12257 alias -g '${1+"$@"}'='"$@"'
12258elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12259 set -o posix
12260fi
12261DUALCASE=1; export DUALCASE # for MKS sh
12262
12263# Support unset when possible.
12264if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12265 as_unset=unset
12266else
12267 as_unset=false
12268fi
12269
12270
12271# Work around bugs in pre-3.0 UWIN ksh.
12272$as_unset ENV MAIL MAILPATH
12273PS1='$ '
12274PS2='> '
12275PS4='+ '
12276
12277# NLS nuisances.
12278for as_var in \
12279 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12280 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12281 LC_TELEPHONE LC_TIME
12282do
12283 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12284 eval $as_var=C; export $as_var
12285 else
12286 $as_unset $as_var
12287 fi
12288done
12289
12290# Required to use basename.
12291if expr a : '\(a\)' >/dev/null 2>&1; then
12292 as_expr=expr
12293else
12294 as_expr=false
12295fi
12296
12297if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12298 as_basename=basename
12299else
12300 as_basename=false
12301fi
12302
12303
12304# Name of the executable.
12305as_me=`$as_basename "$0" ||
12306$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12307 X"$0" : 'X\(//\)$' \| \
12308 X"$0" : 'X\(/\)$' \| \
12309 . : '\(.\)' 2>/dev/null ||
12310echo X/"$0" |
12311 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12312 /^X\/\(\/\/\)$/{ s//\1/; q; }
12313 /^X\/\(\/\).*/{ s//\1/; q; }
12314 s/.*/./; q'`
12315
12316
12317# PATH needs CR, and LINENO needs CR and PATH.
12318# Avoid depending upon Character Ranges.
12319as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12320as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12321as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12322as_cr_digits='0123456789'
12323as_cr_alnum=$as_cr_Letters$as_cr_digits
12324
12325# The user is always right.
12326if test "${PATH_SEPARATOR+set}" != set; then
12327 echo "#! /bin/sh" >conf$$.sh
12328 echo "exit 0" >>conf$$.sh
12329 chmod +x conf$$.sh
12330 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12331 PATH_SEPARATOR=';'
12332 else
12333 PATH_SEPARATOR=:
12334 fi
12335 rm -f conf$$.sh
12336fi
12337
12338
12339 as_lineno_1=$LINENO
12340 as_lineno_2=$LINENO
12341 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12342 test "x$as_lineno_1" != "x$as_lineno_2" &&
12343 test "x$as_lineno_3" = "x$as_lineno_2" || {
12344 # Find who we are. Look in the path if we contain no path at all
12345 # relative or not.
12346 case $0 in
12347 *[\\/]* ) as_myself=$0 ;;
12348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349for as_dir in $PATH
12350do
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12354done
12355
12356 ;;
12357 esac
12358 # We did not find ourselves, most probably we were run as `sh COMMAND'
12359 # in which case we are not to be found in the path.
12360 if test "x$as_myself" = x; then
12361 as_myself=$0
12362 fi
12363 if test ! -f "$as_myself"; then
12364 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12365echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12366 { (exit 1); exit 1; }; }
12367 fi
12368 case $CONFIG_SHELL in
12369 '')
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12372do
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
12375 for as_base in sh bash ksh sh5; do
12376 case $as_dir in
12377 /*)
12378 if ("$as_dir/$as_base" -c '
12379 as_lineno_1=$LINENO
12380 as_lineno_2=$LINENO
12381 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12382 test "x$as_lineno_1" != "x$as_lineno_2" &&
12383 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12384 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12385 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12386 CONFIG_SHELL=$as_dir/$as_base
12387 export CONFIG_SHELL
12388 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12389 fi;;
12390 esac
12391 done
12392done
12393;;
12394 esac
12395
12396 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12397 # uniformly replaced by the line number. The first 'sed' inserts a
12398 # line-number line before each line; the second 'sed' does the real
12399 # work. The second script uses 'N' to pair each line-number line
12400 # with the numbered line, and appends trailing '-' during
12401 # substitution so that $LINENO is not a special case at line end.
12402 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12403 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12404 sed '=' <$as_myself |
12405 sed '
12406 N
12407 s,$,-,
12408 : loop
12409 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12410 t loop
12411 s,-$,,
12412 s,^['$as_cr_digits']*\n,,
12413 ' >$as_me.lineno &&
12414 chmod +x $as_me.lineno ||
12415 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12416echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12417 { (exit 1); exit 1; }; }
12418
12419 # Don't try to exec as it changes $[0], causing all sort of problems
12420 # (the dirname of $[0] is not the place where we might find the
12421 # original and so on. Autoconf is especially sensible to this).
12422 . ./$as_me.lineno
12423 # Exit status is that of the last command.
12424 exit
12425}
12426
12427
12428case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12429 *c*,-n*) ECHO_N= ECHO_C='
12430' ECHO_T=' ' ;;
12431 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12432 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12433esac
12434
12435if expr a : '\(a\)' >/dev/null 2>&1; then
12436 as_expr=expr
12437else
12438 as_expr=false
12439fi
12440
12441rm -f conf$$ conf$$.exe conf$$.file
12442echo >conf$$.file
12443if ln -s conf$$.file conf$$ 2>/dev/null; then
12444 # We could just check for DJGPP; but this test a) works b) is more generic
12445 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12446 if test -f conf$$.exe; then
12447 # Don't use ln at all; we don't have any links
12448 as_ln_s='cp -p'
12449 else
12450 as_ln_s='ln -s'
12451 fi
12452elif ln conf$$.file conf$$ 2>/dev/null; then
12453 as_ln_s=ln
12454else
12455 as_ln_s='cp -p'
12456fi
12457rm -f conf$$ conf$$.exe conf$$.file
12458
12459if mkdir -p . 2>/dev/null; then
12460 as_mkdir_p=:
12461else
12462 test -d ./-p && rmdir ./-p
12463 as_mkdir_p=false
12464fi
12465
12466as_executable_p="test -f"
12467
12468# Sed expression to map a string onto a valid CPP name.
12469as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12470
12471# Sed expression to map a string onto a valid variable name.
12472as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12473
12474
12475# IFS
12476# We need space, tab and new line, in precisely that order.
12477as_nl='
12478'
12479IFS=" $as_nl"
12480
12481# CDPATH.
12482$as_unset CDPATH
12483
12484exec 6>&1
12485
12486# Open the log real soon, to keep \$[0] and so on meaningful, and to
12487# report actual input values of CONFIG_FILES etc. instead of their
12488# values after options handling. Logging --version etc. is OK.
12489exec 5>>config.log
12490{
12491 echo
12492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12493## Running $as_me. ##
12494_ASBOX
12495} >&5
12496cat >&5 <<_CSEOF
12497
12498This file was extended by $as_me, which was
12499generated by GNU Autoconf 2.59. Invocation command line was
12500
12501 CONFIG_FILES = $CONFIG_FILES
12502 CONFIG_HEADERS = $CONFIG_HEADERS
12503 CONFIG_LINKS = $CONFIG_LINKS
12504 CONFIG_COMMANDS = $CONFIG_COMMANDS
12505 $ $0 $@
12506
12507_CSEOF
12508echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12509echo >&5
12510_ACEOF
12511
12512# Files that config.status was made for.
12513if test -n "$ac_config_files"; then
12514 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12515fi
12516
12517if test -n "$ac_config_headers"; then
12518 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12519fi
12520
12521if test -n "$ac_config_links"; then
12522 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12523fi
12524
12525if test -n "$ac_config_commands"; then
12526 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12527fi
12528
12529cat >>$CONFIG_STATUS <<\_ACEOF
12530
12531ac_cs_usage="\
12532\`$as_me' instantiates files from templates according to the
12533current configuration.
12534
12535Usage: $0 [OPTIONS] [FILE]...
12536
12537 -h, --help print this help, then exit
12538 -V, --version print version number, then exit
12539 -q, --quiet do not print progress messages
12540 -d, --debug don't remove temporary files
12541 --recheck update $as_me by reconfiguring in the same conditions
12542 --file=FILE[:TEMPLATE]
12543 instantiate the configuration file FILE
12544
12545Configuration files:
12546$config_files
12547
12548Report bugs to <bug-autoconf@gnu.org>."
12549_ACEOF
12550
12551cat >>$CONFIG_STATUS <<_ACEOF
12552ac_cs_version="\\
12553config.status
12554configured by $0, generated by GNU Autoconf 2.59,
12555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12556
12557Copyright (C) 2003 Free Software Foundation, Inc.
12558This config.status script is free software; the Free Software Foundation
12559gives unlimited permission to copy, distribute and modify it."
12560srcdir=$srcdir
12561INSTALL="$INSTALL"
12562_ACEOF
12563
12564cat >>$CONFIG_STATUS <<\_ACEOF
12565# If no file are specified by the user, then we need to provide default
12566# value. By we need to know if files were specified by the user.
12567ac_need_defaults=:
12568while test $# != 0
a0da8069 12569do
c6b750e1
DJ
12570 case $1 in
12571 --*=*)
12572 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12573 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12574 ac_shift=:
12575 ;;
12576 -*)
12577 ac_option=$1
12578 ac_optarg=$2
12579 ac_shift=shift
12580 ;;
12581 *) # This is not an option, so the user has probably given explicit
12582 # arguments.
12583 ac_option=$1
12584 ac_need_defaults=false;;
12585 esac
12586
12587 case $ac_option in
12588 # Handling of the options.
12589_ACEOF
12590cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12592 ac_cs_recheck=: ;;
12593 --version | --vers* | -V )
12594 echo "$ac_cs_version"; exit 0 ;;
12595 --he | --h)
12596 # Conflict between --help and --header
12597 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12598Try \`$0 --help' for more information." >&5
12599echo "$as_me: error: ambiguous option: $1
12600Try \`$0 --help' for more information." >&2;}
12601 { (exit 1); exit 1; }; };;
12602 --help | --hel | -h )
12603 echo "$ac_cs_usage"; exit 0 ;;
12604 --debug | --d* | -d )
12605 debug=: ;;
12606 --file | --fil | --fi | --f )
12607 $ac_shift
12608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12609 ac_need_defaults=false;;
12610 --header | --heade | --head | --hea )
12611 $ac_shift
12612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12613 ac_need_defaults=false;;
12614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12616 ac_cs_silent=: ;;
12617
12618 # This is an error.
12619 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12620Try \`$0 --help' for more information." >&5
12621echo "$as_me: error: unrecognized option: $1
12622Try \`$0 --help' for more information." >&2;}
12623 { (exit 1); exit 1; }; } ;;
12624
12625 *) ac_config_targets="$ac_config_targets $1" ;;
12626
376a0e54 12627 esac
c6b750e1 12628 shift
376a0e54
CM
12629done
12630
c6b750e1 12631ac_configure_extra_args=
376a0e54 12632
c6b750e1
DJ
12633if $ac_cs_silent; then
12634 exec 6>/dev/null
12635 ac_configure_extra_args="$ac_configure_extra_args --silent"
12636fi
376a0e54 12637
c6b750e1
DJ
12638_ACEOF
12639cat >>$CONFIG_STATUS <<_ACEOF
12640if \$ac_cs_recheck; then
12641 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12642 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12643fi
12644
12645_ACEOF
12646
12647
12648
12649
12650
12651cat >>$CONFIG_STATUS <<\_ACEOF
12652for ac_config_target in $ac_config_targets
12653do
12654 case "$ac_config_target" in
12655 # Handling of arguments.
12656 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12657 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12658echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12659 { (exit 1); exit 1; }; };;
12660 esac
12661done
12662
12663# If the user did not use the arguments to specify the items to instantiate,
12664# then the envvar interface is used. Set only those that are not.
12665# We use the long form for the default assignment because of an extremely
12666# bizarre bug on SunOS 4.1.3.
12667if $ac_need_defaults; then
12668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12669fi
12670
12671# Have a temporary directory for convenience. Make it in the build tree
12672# simply because there is no reason to put it here, and in addition,
12673# creating and moving files from /tmp can sometimes cause problems.
12674# Create a temporary directory, and hook for its removal unless debugging.
12675$debug ||
12676{
12677 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12678 trap '{ (exit 1); exit 1; }' 1 2 13 15
12679}
12680
12681# Create a (secure) tmp directory for tmp files.
12682
12683{
12684 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12685 test -n "$tmp" && test -d "$tmp"
12686} ||
12687{
12688 tmp=./confstat$$-$RANDOM
12689 (umask 077 && mkdir $tmp)
12690} ||
12691{
12692 echo "$me: cannot create a temporary directory in ." >&2
12693 { (exit 1); exit 1; }
12694}
12695
12696_ACEOF
12697
12698cat >>$CONFIG_STATUS <<_ACEOF
12699
12700#
12701# CONFIG_FILES section.
12702#
12703
12704# No need to generate the scripts if there are no CONFIG_FILES.
12705# This happens for instance when ./config.status config.h
12706if test -n "\$CONFIG_FILES"; then
12707 # Protect against being on the right side of a sed subst in config.status.
12708 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12709 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12710s,@SHELL@,$SHELL,;t t
12711s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12712s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12713s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12714s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12715s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12716s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12717s,@exec_prefix@,$exec_prefix,;t t
12718s,@prefix@,$prefix,;t t
12719s,@program_transform_name@,$program_transform_name,;t t
12720s,@bindir@,$bindir,;t t
12721s,@sbindir@,$sbindir,;t t
12722s,@libexecdir@,$libexecdir,;t t
12723s,@datadir@,$datadir,;t t
12724s,@sysconfdir@,$sysconfdir,;t t
12725s,@sharedstatedir@,$sharedstatedir,;t t
12726s,@localstatedir@,$localstatedir,;t t
12727s,@libdir@,$libdir,;t t
12728s,@includedir@,$includedir,;t t
12729s,@oldincludedir@,$oldincludedir,;t t
12730s,@infodir@,$infodir,;t t
12731s,@mandir@,$mandir,;t t
12732s,@build_alias@,$build_alias,;t t
12733s,@host_alias@,$host_alias,;t t
12734s,@target_alias@,$target_alias,;t t
12735s,@DEFS@,$DEFS,;t t
12736s,@ECHO_C@,$ECHO_C,;t t
12737s,@ECHO_N@,$ECHO_N,;t t
12738s,@ECHO_T@,$ECHO_T,;t t
12739s,@LIBS@,$LIBS,;t t
12740s,@build@,$build,;t t
12741s,@build_cpu@,$build_cpu,;t t
12742s,@build_vendor@,$build_vendor,;t t
12743s,@build_os@,$build_os,;t t
12744s,@build_noncanonical@,$build_noncanonical,;t t
12745s,@host_noncanonical@,$host_noncanonical,;t t
12746s,@target_noncanonical@,$target_noncanonical,;t t
12747s,@host@,$host,;t t
12748s,@host_cpu@,$host_cpu,;t t
12749s,@host_vendor@,$host_vendor,;t t
12750s,@host_os@,$host_os,;t t
12751s,@target@,$target,;t t
12752s,@target_cpu@,$target_cpu,;t t
12753s,@target_vendor@,$target_vendor,;t t
12754s,@target_os@,$target_os,;t t
12755s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12756s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12757s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12758s,@LN@,$LN,;t t
12759s,@LN_S@,$LN_S,;t t
12760s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12761s,@build_libsubdir@,$build_libsubdir,;t t
12762s,@build_subdir@,$build_subdir,;t t
12763s,@host_subdir@,$host_subdir,;t t
12764s,@target_subdir@,$target_subdir,;t t
12765s,@CC@,$CC,;t t
12766s,@CFLAGS@,$CFLAGS,;t t
12767s,@LDFLAGS@,$LDFLAGS,;t t
12768s,@CPPFLAGS@,$CPPFLAGS,;t t
12769s,@ac_ct_CC@,$ac_ct_CC,;t t
12770s,@EXEEXT@,$EXEEXT,;t t
12771s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12772s,@CXX@,$CXX,;t t
12773s,@CXXFLAGS@,$CXXFLAGS,;t t
12774s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12775s,@GNATBIND@,$GNATBIND,;t t
12776s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12777s,@GNATMAKE@,$GNATMAKE,;t t
12778s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12779s,@do_compare@,$do_compare,;t t
12780s,@gmplibs@,$gmplibs,;t t
12781s,@gmpinc@,$gmpinc,;t t
12782s,@stage1_languages@,$stage1_languages,;t t
12783s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12784s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12785s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12786s,@tooldir@,$tooldir,;t t
12787s,@build_tooldir@,$build_tooldir,;t t
12788s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12789s,@GDB_TK@,$GDB_TK,;t t
12790s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12791s,@build_configargs@,$build_configargs,;t t
12792s,@build_configdirs@,$build_configdirs,;t t
12793s,@host_configargs@,$host_configargs,;t t
12794s,@configdirs@,$configdirs,;t t
12795s,@target_configargs@,$target_configargs,;t t
12796s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12797s,@config_shell@,$config_shell,;t t
12798s,@YACC@,$YACC,;t t
12799s,@BISON@,$BISON,;t t
12800s,@M4@,$M4,;t t
12801s,@LEX@,$LEX,;t t
12802s,@FLEX@,$FLEX,;t t
12803s,@MAKEINFO@,$MAKEINFO,;t t
12804s,@EXPECT@,$EXPECT,;t t
12805s,@RUNTEST@,$RUNTEST,;t t
12806s,@AR@,$AR,;t t
12807s,@AS@,$AS,;t t
12808s,@DLLTOOL@,$DLLTOOL,;t t
12809s,@LD@,$LD,;t t
12810s,@LIPO@,$LIPO,;t t
12811s,@NM@,$NM,;t t
12812s,@RANLIB@,$RANLIB,;t t
12813s,@STRIP@,$STRIP,;t t
12814s,@WINDRES@,$WINDRES,;t t
0c24b341 12815s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12816s,@OBJCOPY@,$OBJCOPY,;t t
12817s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12818s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12819s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12820s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12821s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12822s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12823s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12824s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12825s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12826s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12827s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12828s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12829s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12830s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12831s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12832s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12833s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12834s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12835s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12836s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12837s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12838s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12839s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12840s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12841s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12842s,@MAINT@,$MAINT,;t t
12843s,@stage1_cflags@,$stage1_cflags,;t t
12844s,@stage1_checking@,$stage1_checking,;t t
12845s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12846s,@datarootdir@,$datarootdir,;t t
12847s,@docdir@,$docdir,;t t
a3ca38d2 12848s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12849s,@htmldir@,$htmldir,;t t
12850s,@LIBOBJS@,$LIBOBJS,;t t
12851s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12852/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12853s,@serialization_dependencies@,,;t t
a0da8069 12854/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12855s,@host_makefile_frag@,,;t t
a0da8069 12856/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12857s,@target_makefile_frag@,,;t t
a0da8069 12858/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12859s,@alphaieee_frag@,,;t t
a0da8069 12860/@ospace_frag@/r $ospace_frag
c6b750e1 12861s,@ospace_frag@,,;t t
a0da8069 12862CEOF
252b5132 12863
c6b750e1
DJ
12864_ACEOF
12865
12866 cat >>$CONFIG_STATUS <<\_ACEOF
12867 # Split the substitutions into bite-sized pieces for seds with
12868 # small command number limits, like on Digital OSF/1 and HP-UX.
12869 ac_max_sed_lines=48
12870 ac_sed_frag=1 # Number of current file.
12871 ac_beg=1 # First line for current file.
12872 ac_end=$ac_max_sed_lines # Line after last line for current file.
12873 ac_more_lines=:
12874 ac_sed_cmds=
12875 while $ac_more_lines; do
12876 if test $ac_beg -gt 1; then
12877 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12878 else
12879 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12880 fi
12881 if test ! -s $tmp/subs.frag; then
12882 ac_more_lines=false
a0da8069 12883 else
c6b750e1
DJ
12884 # The purpose of the label and of the branching condition is to
12885 # speed up the sed processing (if there are no `@' at all, there
12886 # is no need to browse any of the substitutions).
12887 # These are the two extra sed commands mentioned above.
12888 (echo ':t
12889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12890 if test -z "$ac_sed_cmds"; then
12891 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12892 else
12893 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12894 fi
12895 ac_sed_frag=`expr $ac_sed_frag + 1`
12896 ac_beg=$ac_end
12897 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12898 fi
c6b750e1
DJ
12899 done
12900 if test -z "$ac_sed_cmds"; then
12901 ac_sed_cmds=cat
852e5f18 12902 fi
c6b750e1 12903fi # test -n "$CONFIG_FILES"
cac3d6c4 12904
c6b750e1
DJ
12905_ACEOF
12906cat >>$CONFIG_STATUS <<\_ACEOF
12907for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12909 case $ac_file in
12910 - | *:- | *:-:* ) # input from stdin
12911 cat >$tmp/stdin
12912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12916 * ) ac_file_in=$ac_file.in ;;
a0da8069 12917 esac
252b5132 12918
c6b750e1
DJ
12919 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12920 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12921$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12922 X"$ac_file" : 'X\(//\)[^/]' \| \
12923 X"$ac_file" : 'X\(//\)$' \| \
12924 X"$ac_file" : 'X\(/\)' \| \
12925 . : '\(.\)' 2>/dev/null ||
12926echo X"$ac_file" |
12927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12929 /^X\(\/\/\)$/{ s//\1/; q; }
12930 /^X\(\/\).*/{ s//\1/; q; }
12931 s/.*/./; q'`
12932 { if $as_mkdir_p; then
12933 mkdir -p "$ac_dir"
cac3d6c4 12934 else
c6b750e1
DJ
12935 as_dir="$ac_dir"
12936 as_dirs=
12937 while test ! -d "$as_dir"; do
12938 as_dirs="$as_dir $as_dirs"
12939 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941 X"$as_dir" : 'X\(//\)[^/]' \| \
12942 X"$as_dir" : 'X\(//\)$' \| \
12943 X"$as_dir" : 'X\(/\)' \| \
12944 . : '\(.\)' 2>/dev/null ||
12945echo X"$as_dir" |
12946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12948 /^X\(\/\/\)$/{ s//\1/; q; }
12949 /^X\(\/\).*/{ s//\1/; q; }
12950 s/.*/./; q'`
12951 done
12952 test ! -n "$as_dirs" || mkdir $as_dirs
12953 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12954echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12955 { (exit 1); exit 1; }; }; }
12956
12957 ac_builddir=.
252b5132 12958
c6b750e1
DJ
12959if test "$ac_dir" != .; then
12960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12961 # A "../" for each directory in $ac_dir_suffix.
12962 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12963else
12964 ac_dir_suffix= ac_top_builddir=
12965fi
12966
12967case $srcdir in
12968 .) # No --srcdir option. We are building in place.
12969 ac_srcdir=.
12970 if test -z "$ac_top_builddir"; then
12971 ac_top_srcdir=.
12972 else
12973 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12974 fi ;;
12975 [\\/]* | ?:[\\/]* ) # Absolute path.
12976 ac_srcdir=$srcdir$ac_dir_suffix;
12977 ac_top_srcdir=$srcdir ;;
a0da8069 12978 *) # Relative path.
c6b750e1
DJ
12979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12981esac
252b5132 12982
c6b750e1
DJ
12983# Do not use `cd foo && pwd` to compute absolute paths, because
12984# the directories may not exist.
12985case `pwd` in
12986.) ac_abs_builddir="$ac_dir";;
12987*)
12988 case "$ac_dir" in
12989 .) ac_abs_builddir=`pwd`;;
12990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12991 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12992 esac;;
12993esac
12994case $ac_abs_builddir in
12995.) ac_abs_top_builddir=${ac_top_builddir}.;;
12996*)
12997 case ${ac_top_builddir}. in
12998 .) ac_abs_top_builddir=$ac_abs_builddir;;
12999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13001 esac;;
13002esac
13003case $ac_abs_builddir in
13004.) ac_abs_srcdir=$ac_srcdir;;
13005*)
13006 case $ac_srcdir in
13007 .) ac_abs_srcdir=$ac_abs_builddir;;
13008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13010 esac;;
13011esac
13012case $ac_abs_builddir in
13013.) ac_abs_top_srcdir=$ac_top_srcdir;;
13014*)
13015 case $ac_top_srcdir in
13016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13019 esac;;
13020esac
252b5132 13021
c6b750e1
DJ
13022
13023 case $INSTALL in
13024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13025 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13026 esac
252b5132 13027
c6b750e1
DJ
13028 if test x"$ac_file" != x-; then
13029 { echo "$as_me:$LINENO: creating $ac_file" >&5
13030echo "$as_me: creating $ac_file" >&6;}
13031 rm -f "$ac_file"
13032 fi
13033 # Let's still pretend it is `configure' which instantiates (i.e., don't
13034 # use $as_me), people would be surprised to read:
13035 # /* config.h. Generated by config.status. */
13036 if test x"$ac_file" = x-; then
13037 configure_input=
13038 else
13039 configure_input="$ac_file. "
13040 fi
13041 configure_input=$configure_input"Generated from `echo $ac_file_in |
13042 sed 's,.*/,,'` by configure."
13043
13044 # First look for the input files in the build tree, otherwise in the
13045 # src tree.
13046 ac_file_inputs=`IFS=:
13047 for f in $ac_file_in; do
13048 case $f in
13049 -) echo $tmp/stdin ;;
13050 [\\/$]*)
13051 # Absolute (can't be DOS-style, as IFS=:)
13052 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13053echo "$as_me: error: cannot find input file: $f" >&2;}
13054 { (exit 1); exit 1; }; }
13055 echo "$f";;
13056 *) # Relative
13057 if test -f "$f"; then
13058 # Build tree
13059 echo "$f"
13060 elif test -f "$srcdir/$f"; then
13061 # Source tree
13062 echo "$srcdir/$f"
13063 else
13064 # /dev/null tree
13065 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13066echo "$as_me: error: cannot find input file: $f" >&2;}
13067 { (exit 1); exit 1; }; }
13068 fi;;
13069 esac
13070 done` || { (exit 1); exit 1; }
13071_ACEOF
13072cat >>$CONFIG_STATUS <<_ACEOF
13073 sed "$ac_vpsub
13074$extrasub
13075_ACEOF
13076cat >>$CONFIG_STATUS <<\_ACEOF
13077:t
13078/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13079s,@configure_input@,$configure_input,;t t
13080s,@srcdir@,$ac_srcdir,;t t
13081s,@abs_srcdir@,$ac_abs_srcdir,;t t
13082s,@top_srcdir@,$ac_top_srcdir,;t t
13083s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13084s,@builddir@,$ac_builddir,;t t
13085s,@abs_builddir@,$ac_abs_builddir,;t t
13086s,@top_builddir@,$ac_top_builddir,;t t
13087s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13088s,@INSTALL@,$ac_INSTALL,;t t
13089" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13090 rm -f $tmp/stdin
13091 if test x"$ac_file" != x-; then
13092 mv $tmp/out $ac_file
13093 else
13094 cat $tmp/out
13095 rm -f $tmp/out
13096 fi
c148b4cb 13097
c6b750e1
DJ
13098done
13099_ACEOF
c148b4cb 13100
c6b750e1 13101cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13102
c6b750e1
DJ
13103{ (exit 0); exit 0; }
13104_ACEOF
c148b4cb 13105chmod +x $CONFIG_STATUS
c6b750e1
DJ
13106ac_clean_files=$ac_clean_files_save
13107
13108
13109# configure is writing to config.log, and then calls config.status.
13110# config.status does its own redirection, appending to config.log.
13111# Unfortunately, on DOS this fails, as config.log is still kept open
13112# by configure, so config.status won't be able to write to it; its
13113# output is simply discarded. So we exec the FD to /dev/null,
13114# effectively closing config.log, so it can be properly (re)opened and
13115# appended to by config.status. When coming back to configure, we
13116# need to make the FD available again.
13117if test "$no_create" != yes; then
13118 ac_cs_success=:
13119 ac_config_status_args=
13120 test "$silent" = yes &&
13121 ac_config_status_args="$ac_config_status_args --quiet"
13122 exec 5>/dev/null
13123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13124 exec 5>>config.log
13125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13126 # would make configure fail if this is the last instruction.
13127 $ac_cs_success || { (exit 1); exit 1; }
13128fi
c148b4cb 13129
This page took 1.056376 seconds and 4 git commands to generate.