2007-07-06 H.J. Lu <hongjiu.lu@intel.com>
[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"
0c24b341 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 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]
932 --enable-libada Builds libada directory
933 --enable-libssp Builds libssp directory
934 --enable-stage1-languages=all choose additional languages to build during
935 stage1. Mostly useful for compiler development.
936 --enable-objc-gc enable the use of Boehm's garbage collector with
937 the 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
941 sub-packages for the host, target or build
942 machine, or all sub-packages
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
945 --enable-stage1-checking=all choose additional checking for stage1
946 of the compiler.
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
953 --with-mpfr-dir=PATH This option has been REMOVED
954 --with-mpfr=PATH Specify prefix directory for installed MPFR package
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
958 Specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH Specify the 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
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
964 --with-gmp-include=PATH Specify directory for installed GMP include files
965 --with-gmp-lib=PATH Specify the directory for the installed GMP library
966 --with-build-sysroot=sysroot
967 use sysroot as the system root during the build
968 --with-build-time-tools=path
969 use given path to find target tools during the build
970 --with-datarootdir Use datarootdir as the data root directory.
971 --with-docdir Install documentation in this directory.
a3ca38d2 972 --with-pdfdir Install pdf in this directory.
c6b750e1
DJ
973 --with-htmldir Install html in this directory.
974
975Some influential environment variables:
976 CC C compiler command
977 CFLAGS C compiler flags
978 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
979 nonstandard directory <lib dir>
980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
18f6b6ee
PB
982 CXX C++ compiler command
983 CXXFLAGS C++ compiler flags
9a819804
AO
984 AR AR for the host
985 AS AS for the host
986 DLLTOOL DLLTOOL for the host
987 LD LD for the host
988 LIPO LIPO for the host
989 NM NM for the host
990 RANLIB RANLIB for the host
991 STRIP STRIP for the host
992 WINDRES WINDRES for the host
0c24b341 993 WINDMC WINDMC for the host
9a819804
AO
994 OBJCOPY OBJCOPY for the host
995 OBJDUMP OBJDUMP for the host
996 CC_FOR_TARGET
997 CC for the target
998 CXX_FOR_TARGET
999 CXX for the target
1000 GCC_FOR_TARGET
1001 GCC for the target
1002 GCJ_FOR_TARGET
1003 GCJ for the target
1004 GFORTRAN_FOR_TARGET
1005 GFORTRAN for the target
1006 AR_FOR_TARGET
1007 AR for the target
1008 AS_FOR_TARGET
1009 AS for the target
1010 DLLTOOL_FOR_TARGET
1011 DLLTOOL for the target
1012 LD_FOR_TARGET
1013 LD for the target
1014 LIPO_FOR_TARGET
1015 LIPO for the target
1016 NM_FOR_TARGET
1017 NM for the target
1018 OBJDUMP_FOR_TARGET
1019 OBJDUMP for the target
1020 RANLIB_FOR_TARGET
1021 RANLIB for the target
1022 STRIP_FOR_TARGET
1023 STRIP for the target
1024 WINDRES_FOR_TARGET
1025 WINDRES for the target
0c24b341
NC
1026 WINDMC_FOR_TARGET
1027 WINDMC for the target
c6b750e1
DJ
1028
1029Use these variables to override the choices made by `configure' or to help
1030it to find libraries and programs with nonstandard names/locations.
1031
1032_ACEOF
1033fi
1034
1035if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
1037 ac_popdir=`pwd`
1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1039 test -d $ac_dir || continue
1040 ac_builddir=.
1041
1042if test "$ac_dir" != .; then
1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046else
1047 ac_dir_suffix= ac_top_builddir=
1048fi
1049
1050case $srcdir in
1051 .) # No --srcdir option. We are building in place.
1052 ac_srcdir=.
1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
1059 ac_srcdir=$srcdir$ac_dir_suffix;
1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064esac
1065
1066# Do not use `cd foo && pwd` to compute absolute paths, because
1067# the directories may not exist.
1068case `pwd` in
1069.) ac_abs_builddir="$ac_dir";;
1070*)
1071 case "$ac_dir" in
1072 .) ac_abs_builddir=`pwd`;;
1073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1075 esac;;
1076esac
1077case $ac_abs_builddir in
1078.) ac_abs_top_builddir=${ac_top_builddir}.;;
1079*)
1080 case ${ac_top_builddir}. in
1081 .) ac_abs_top_builddir=$ac_abs_builddir;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1084 esac;;
1085esac
1086case $ac_abs_builddir in
1087.) ac_abs_srcdir=$ac_srcdir;;
1088*)
1089 case $ac_srcdir in
1090 .) ac_abs_srcdir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_srcdir=$ac_top_srcdir;;
1097*)
1098 case $ac_top_srcdir in
1099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1102 esac;;
1103esac
1104
1105 cd $ac_dir
1106 # Check for guested configure; otherwise get Cygnus style configure.
1107 if test -f $ac_srcdir/configure.gnu; then
1108 echo
1109 $SHELL $ac_srcdir/configure.gnu --help=recursive
1110 elif test -f $ac_srcdir/configure; then
1111 echo
1112 $SHELL $ac_srcdir/configure --help=recursive
1113 elif test -f $ac_srcdir/configure.ac ||
1114 test -f $ac_srcdir/configure.in; then
1115 echo
1116 $ac_configure --help
1117 else
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1119 fi
1120 cd $ac_popdir
1121 done
1122fi
1123
1124test -n "$ac_init_help" && exit 0
1125if $ac_init_version; then
1126 cat <<\_ACEOF
1127
1128Copyright (C) 2003 Free Software Foundation, Inc.
1129This configure script is free software; the Free Software Foundation
1130gives unlimited permission to copy, distribute and modify it.
1131_ACEOF
1132 exit 0
1133fi
1134exec 5>config.log
1135cat >&5 <<_ACEOF
1136This file contains any messages produced by compilers while
1137running configure, to aid debugging if configure makes a mistake.
1138
1139It was created by $as_me, which was
1140generated by GNU Autoconf 2.59. Invocation command line was
1141
1142 $ $0 $@
1143
1144_ACEOF
1145{
1146cat <<_ASUNAME
1147## --------- ##
1148## Platform. ##
1149## --------- ##
1150
1151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1152uname -m = `(uname -m) 2>/dev/null || echo unknown`
1153uname -r = `(uname -r) 2>/dev/null || echo unknown`
1154uname -s = `(uname -s) 2>/dev/null || echo unknown`
1155uname -v = `(uname -v) 2>/dev/null || echo unknown`
1156
1157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1158/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1159
1160/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1161/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1163hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1164/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1165/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1166/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1167
1168_ASUNAME
1169
1170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1171for as_dir in $PATH
1172do
1173 IFS=$as_save_IFS
1174 test -z "$as_dir" && as_dir=.
1175 echo "PATH: $as_dir"
1176done
1177
1178} >&5
1179
1180cat >&5 <<_ACEOF
1181
1182
1183## ----------- ##
1184## Core tests. ##
1185## ----------- ##
1186
1187_ACEOF
1188
1189
1190# Keep a trace of the command line.
1191# Strip out --no-create and --no-recursion so they do not pile up.
1192# Strip out --silent because we don't want to record it for future runs.
1193# Also quote any args containing shell meta-characters.
1194# Make two passes to allow for proper duplicate-argument suppression.
1195ac_configure_args=
1196ac_configure_args0=
1197ac_configure_args1=
1198ac_sep=
1199ac_must_keep_next=false
1200for ac_pass in 1 2
1201do
1202 for ac_arg
1203 do
1204 case $ac_arg in
1205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 continue ;;
1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211 esac
1212 case $ac_pass in
1213 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1214 2)
1215 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1216 if test $ac_must_keep_next = true; then
1217 ac_must_keep_next=false # Got value, back to normal.
1218 else
1219 case $ac_arg in
1220 *=* | --config-cache | -C | -disable-* | --disable-* \
1221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1223 | -with-* | --with-* | -without-* | --without-* | --x)
1224 case "$ac_configure_args0 " in
1225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1226 esac
1227 ;;
1228 -* ) ac_must_keep_next=true ;;
1229 esac
1230 fi
1231 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1232 # Get rid of the leading space.
1233 ac_sep=" "
1234 ;;
1235 esac
1236 done
1237done
1238$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1239$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1240
1241# When interrupted or exit'd, cleanup temporary files, and complete
1242# config.log. We remove comments because anyway the quotes in there
1243# would cause problems or look ugly.
1244# WARNING: Be sure not to use single quotes in there, as some shells,
1245# such as our DU 5.0 friend, will then `close' the trap.
1246trap 'exit_status=$?
1247 # Save into config.log some information that might help in debugging.
1248 {
1249 echo
1250
1251 cat <<\_ASBOX
1252## ---------------- ##
1253## Cache variables. ##
1254## ---------------- ##
1255_ASBOX
1256 echo
1257 # The following way of writing the cache mishandles newlines in values,
1258{
1259 (set) 2>&1 |
1260 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1261 *ac_space=\ *)
1262 sed -n \
1263 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1265 ;;
1266 *)
1267 sed -n \
1268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1269 ;;
1270 esac;
1271}
1272 echo
1273
1274 cat <<\_ASBOX
1275## ----------------- ##
1276## Output variables. ##
1277## ----------------- ##
1278_ASBOX
1279 echo
1280 for ac_var in $ac_subst_vars
1281 do
1282 eval ac_val=$`echo $ac_var`
1283 echo "$ac_var='"'"'$ac_val'"'"'"
1284 done | sort
1285 echo
1286
1287 if test -n "$ac_subst_files"; then
1288 cat <<\_ASBOX
1289## ------------- ##
1290## Output files. ##
1291## ------------- ##
1292_ASBOX
1293 echo
1294 for ac_var in $ac_subst_files
1295 do
1296 eval ac_val=$`echo $ac_var`
1297 echo "$ac_var='"'"'$ac_val'"'"'"
1298 done | sort
1299 echo
1300 fi
1301
1302 if test -s confdefs.h; then
1303 cat <<\_ASBOX
1304## ----------- ##
1305## confdefs.h. ##
1306## ----------- ##
1307_ASBOX
1308 echo
1309 sed "/^$/d" confdefs.h | sort
1310 echo
1311 fi
1312 test "$ac_signal" != 0 &&
1313 echo "$as_me: caught signal $ac_signal"
1314 echo "$as_me: exit $exit_status"
1315 } >&5
1316 rm -f core *.core &&
1317 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1318 exit $exit_status
1319 ' 0
1320for ac_signal in 1 2 13 15; do
1321 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1322done
1323ac_signal=0
1324
1325# confdefs.h avoids OS command line length limits that DEFS can exceed.
1326rm -rf conftest* confdefs.h
1327# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1328echo >confdefs.h
1329
1330# Predefined preprocessor variables.
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_NAME "$PACKAGE_NAME"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_VERSION "$PACKAGE_VERSION"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_STRING "$PACKAGE_STRING"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1354_ACEOF
1355
1356
1357# Let the site file select an alternate cache file if it wants to.
a0da8069 1358# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1359if test -z "$CONFIG_SITE"; then
1360 if test "x$prefix" != xNONE; then
1361 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1362 else
1363 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1364 fi
1365fi
1366for ac_site_file in $CONFIG_SITE; do
1367 if test -r "$ac_site_file"; then
c6b750e1
DJ
1368 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1369echo "$as_me: loading site script $ac_site_file" >&6;}
1370 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1371 . "$ac_site_file"
1372 fi
1373done
1374
1375if test -r "$cache_file"; then
c6b750e1
DJ
1376 # Some versions of bash will fail to source /dev/null (special
1377 # files actually), so we avoid doing that.
1378 if test -f "$cache_file"; then
1379 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1380echo "$as_me: loading cache $cache_file" >&6;}
1381 case $cache_file in
1382 [\\/]* | ?:[\\/]* ) . $cache_file;;
1383 *) . ./$cache_file;;
1384 esac
1385 fi
a0da8069 1386else
c6b750e1
DJ
1387 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1388echo "$as_me: creating cache $cache_file" >&6;}
1389 >$cache_file
1390fi
1391
1392# Check that the precious variables saved in the cache have kept the same
1393# value.
1394ac_cache_corrupted=false
1395for ac_var in `(set) 2>&1 |
1396 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1398 eval ac_new_set=\$ac_env_${ac_var}_set
1399 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1400 eval ac_new_val="\$ac_env_${ac_var}_value"
1401 case $ac_old_set,$ac_new_set in
1402 set,)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1404echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,set)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,);;
1411 *)
1412 if test "x$ac_old_val" != "x$ac_new_val"; then
1413 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1414echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1416echo "$as_me: former value: $ac_old_val" >&2;}
1417 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1418echo "$as_me: current value: $ac_new_val" >&2;}
1419 ac_cache_corrupted=:
1420 fi;;
1421 esac
1422 # Pass precious variables to config.status.
1423 if test "$ac_new_set" = set; then
1424 case $ac_new_val in
1425 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1427 *) ac_arg=$ac_var=$ac_new_val ;;
1428 esac
1429 case " $ac_configure_args " in
1430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1431 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1432 esac
1433 fi
1434done
1435if $ac_cache_corrupted; then
1436 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1437echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1438 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1439echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1440 { (exit 1); exit 1; }; }
a0da8069
NN
1441fi
1442
1443ac_ext=c
a0da8069 1444ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1447ac_compiler_gnu=$ac_cv_c_compiler_gnu
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
a0da8069
NN
1461
1462
75778ec4 1463
c6b750e1
DJ
1464
1465
1466
1467
1468
1469# Find the build, host, and target systems.
a0da8069 1470ac_aux_dir=
315b3b02 1471for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1472 if test -f $ac_dir/install-sh; then
1473 ac_aux_dir=$ac_dir
1474 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 break
1476 elif test -f $ac_dir/install.sh; then
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 break
c6b750e1
DJ
1480 elif test -f $ac_dir/shtool; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/shtool install -c"
1483 break
a0da8069
NN
1484 fi
1485done
1486if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1487 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1488echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1489 { (exit 1); exit 1; }; }
a0da8069 1490fi
c6b750e1
DJ
1491ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1492ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1493ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1494
c6b750e1
DJ
1495# Make sure we can run config.sub.
1496$ac_config_sub sun4 >/dev/null 2>&1 ||
1497 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499 { (exit 1); exit 1; }; }
1500
1501echo "$as_me:$LINENO: checking build system type" >&5
1502echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
1506 ac_cv_build_alias=$build_alias
1507test -z "$ac_cv_build_alias" &&
1508 ac_cv_build_alias=`$ac_config_guess`
1509test -z "$ac_cv_build_alias" &&
1510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512 { (exit 1); exit 1; }; }
1513ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1517
1518fi
1519echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520echo "${ECHO_T}$ac_cv_build" >&6
1521build=$ac_cv_build
1522build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1525
a0da8069 1526
c6b750e1
DJ
1527 case ${build_alias} in
1528 "") build_noncanonical=${build} ;;
1529 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1530esac
1531
1532
cac3d6c4 1533
c6b750e1
DJ
1534 case ${host_alias} in
1535 "") host_noncanonical=${build_noncanonical} ;;
1536 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1537esac
1538
cac3d6c4 1539
c6b750e1
DJ
1540
1541 case ${target_alias} in
1542 "") target_noncanonical=${host_noncanonical} ;;
1543 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1544esac
1545
cac3d6c4 1546
c6b750e1
DJ
1547
1548
1549test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1550 test "$program_prefix$program_suffix$program_transform_name" = \
1551 NONENONEs,x,x, &&
c6b750e1 1552 program_transform_name=s,y,y,
cac3d6c4 1553
c6b750e1
DJ
1554echo "$as_me:$LINENO: checking host system type" >&5
1555echo $ECHO_N "checking host system type... $ECHO_C" >&6
1556if test "${ac_cv_host+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1558else
c6b750e1
DJ
1559 ac_cv_host_alias=$host_alias
1560test -z "$ac_cv_host_alias" &&
1561 ac_cv_host_alias=$ac_cv_build_alias
1562ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1566
1567fi
1568echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1569echo "${ECHO_T}$ac_cv_host" >&6
1570host=$ac_cv_host
1571host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576echo "$as_me:$LINENO: checking target system type" >&5
1577echo $ECHO_N "checking target system type... $ECHO_C" >&6
1578if test "${ac_cv_target+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581 ac_cv_target_alias=$target_alias
1582test "x$ac_cv_target_alias" = "x" &&
1583 ac_cv_target_alias=$ac_cv_host_alias
1584ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1586echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1588
cac3d6c4 1589fi
c6b750e1
DJ
1590echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1591echo "${ECHO_T}$ac_cv_target" >&6
1592target=$ac_cv_target
1593target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596
1597
1598# The aliases save the names the user supplied, while $host etc.
1599# will get canonicalized.
1600test -n "$target_alias" &&
1601 test "$program_prefix$program_suffix$program_transform_name" = \
1602 NONENONEs,x,x, &&
1603 program_prefix=${target_alias}-
a0da8069 1604test "$program_prefix" != NONE &&
c6b750e1 1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1606# Use a double $ so make ignores it.
1607test "$program_suffix" != NONE &&
c6b750e1
DJ
1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609# Double any \ or $. echo might interpret backslashes.
1610# By default was `s,x,x', remove it if useless.
1611cat <<\_ACEOF >conftest.sed
1612s/[\\$]/&&/g;s/;s,x,x,$//
1613_ACEOF
1614program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1615rm conftest.sed
cac3d6c4 1616
a0da8069
NN
1617
1618
e5c3f801
NN
1619# Get 'install' or 'install-sh' and its variants.
1620# Find a good install program. We prefer a C program (faster),
1621# so one script is as good as another. But avoid the broken or
1622# incompatible versions:
1623# SysV /etc/install, /usr/sbin/install
1624# SunOS /usr/etc/install
1625# IRIX /sbin/install
1626# AIX /bin/install
c6b750e1 1627# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1628# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1629# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1630# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1631# OS/2's system install, which has a completely different semantic
e5c3f801 1632# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1633echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1634echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1635if test -z "$INSTALL"; then
c6b750e1
DJ
1636if test "${ac_cv_path_install+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 # Account for people who put trailing slashes in PATH elements.
1645case $as_dir/ in
1646 ./ | .// | /cC/* | \
1647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1648 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1649 /usr/ucb/* ) ;;
1650 *)
1651 # OSF1 and SCO ODT 3.0 have their own names for install.
1652 # Don't use installbsd from OSF since it installs stuff as root
1653 # by default.
1654 for ac_prog in ginstall scoinst install; do
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1657 if test $ac_prog = install &&
c6b750e1 1658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1659 # AIX install. It has an incompatible calling convention.
1660 :
c6b750e1
DJ
1661 elif test $ac_prog = install &&
1662 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1663 # program-specific install script used by HP pwplus--don't use.
1664 :
e5c3f801 1665 else
c6b750e1
DJ
1666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1667 break 3
e5c3f801
NN
1668 fi
1669 fi
1670 done
c6b750e1
DJ
1671 done
1672 ;;
1673esac
1674done
1675
e5c3f801
NN
1676
1677fi
1678 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1679 INSTALL=$ac_cv_path_install
e5c3f801
NN
1680 else
1681 # As a last resort, use the slow shell script. We don't cache a
1682 # path for INSTALL within a source directory, because that will
1683 # break other packages using the cache if that directory is
1684 # removed, or if the path is relative.
c6b750e1 1685 INSTALL=$ac_install_sh
e5c3f801
NN
1686 fi
1687fi
c6b750e1
DJ
1688echo "$as_me:$LINENO: result: $INSTALL" >&5
1689echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1690
1691# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1692# It thinks the first close brace ends the variable substitution.
1693test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1694
c6b750e1 1695test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1696
1697test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1698
c6b750e1
DJ
1699echo "$as_me:$LINENO: checking whether ln works" >&5
1700echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1701if test "${acx_cv_prog_LN+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1703else
1704 rm -f conftestdata_t
1705echo >conftestdata_f
1706if ln conftestdata_f conftestdata_t 2>/dev/null
1707then
1708 acx_cv_prog_LN=ln
1709else
1710 acx_cv_prog_LN=no
1711fi
1712rm -f conftestdata_f conftestdata_t
1713
1714fi
1715if test $acx_cv_prog_LN = no; then
1716 LN="cp"
c6b750e1
DJ
1717 echo "$as_me:$LINENO: result: no, using $LN" >&5
1718echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1719else
1720 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1721 echo "$as_me:$LINENO: result: yes" >&5
1722echo "${ECHO_T}yes" >&6
656fdd47
PB
1723fi
1724
c6b750e1
DJ
1725echo "$as_me:$LINENO: checking whether ln -s works" >&5
1726echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1727LN_S=$as_ln_s
1728if test "$LN_S" = "ln -s"; then
1729 echo "$as_me:$LINENO: result: yes" >&5
1730echo "${ECHO_T}yes" >&6
cac3d6c4 1731else
c6b750e1
DJ
1732 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1733echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1734fi
1735
e5c3f801 1736
252b5132 1737### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1738### If we are on Windows, search for the shell. This will permit people
1739### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1740### without also having to set CONFIG_SHELL. This code will work when
1741### using bash, which sets OSTYPE.
1742case "${OSTYPE}" in
1743*win32*)
a0da8069
NN
1744 if test x${CONFIG_SHELL} = x ; then
1745 if test ! -f /bin/sh ; then
1746 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1747 CONFIG_SHELL=${SHELL}
1748 export CONFIG_SHELL
1749 else
1750 for prog in sh sh.exe bash bash.exe; do
1751 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1752 for dir in $PATH; do
1753 test -z "$dir" && dir=.
1754 if test -f $dir/$prog; then
1755 CONFIG_SHELL=$dir/$prog
1756 export CONFIG_SHELL
1757 break
1758 fi
1759 done
1760 IFS="$save_ifs"
1761 test -n "${CONFIG_SHELL}" && break
1762 done
1763 fi
1764 fi
1765 fi
1766 ;;
1767esac
1768
1769config_shell=${CONFIG_SHELL-/bin/sh}
1770
252b5132
RH
1771progname=$0
1772# if PWD already has a value, it is probably wrong.
a0da8069 1773if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1774
92f01d61
JM
1775# Export original configure arguments for use by sub-configures.
1776# Quote arguments with shell meta charatcers.
1777TOPLEVEL_CONFIGURE_ARGUMENTS=
1778set -- "$progname" "$@"
a4708fba
JM
1779for ac_arg
1780do
92f01d61 1781 case "$ac_arg" in
ffa8bd48 1782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1784 # if the argument is of the form -foo=baz, quote the baz part only
1785 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1786 *) ;;
1787 esac
1788 # Add the quoted argument to the list.
1789 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1790done
1791# Remove the initial space we just introduced and, as these will be
1792# expanded by make, quote '$'.
1793TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1794
75205f78 1795
a0da8069 1796moveifchange=${srcdir}/move-if-change
252b5132 1797
0fdbe983
DJ
1798srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1799
1800# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1801# a relative path.
1802if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1803 INSTALL="${srcpwd}/install-sh -c"
1804fi
1805
a0da8069
NN
1806# Set srcdir to "." if that's what it is.
1807# This is important for multilib support.
1808pwd=`${PWDCMD-pwd}`
a0da8069
NN
1809if test "${pwd}" = "${srcpwd}" ; then
1810 srcdir=.
252b5132
RH
1811fi
1812
a0da8069 1813topsrcdir=$srcpwd
252b5132 1814
a0da8069 1815extra_host_args=
afefada0 1816
a0da8069
NN
1817### To add a new directory to the tree, first choose whether it is a target
1818### or a host dependent tool. Then put it into the appropriate list
1819### (library or tools, host or target), doing a dependency sort.
252b5132 1820
c6b750e1 1821# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1822# configdirs, or target_configdirs; see the serialization section below.
252b5132 1823
c6b750e1
DJ
1824# Dependency sorting is only needed when *configuration* must be done in
1825# a particular order. In all cases a dependency should be specified in
a0da8069 1826# the Makefile, whether or not it's implicitly specified here.
252b5132 1827
a0da8069
NN
1828# Double entries in build_configdirs, configdirs, or target_configdirs may
1829# cause circular dependencies and break everything horribly.
252b5132 1830
6a9cf61e
PB
1831# these library is used by various programs built for the build
1832# environment
1833#
1834build_libs="build-libiberty"
1835
1836# these tools are built for the build environment
ee025550 1837build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1838
a0da8069
NN
1839# these libraries are used by various programs built for the host environment
1840#
4b900473 1841host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1842
a0da8069
NN
1843# these tools are built for the host environment
1844# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1845# know that we are building the simulator.
1846# binutils, gas and ld appear in that order because it makes sense to run
1847# "make check" in that particular order.
b00612cc 1848host_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
1849
1850# libgcj represents the runtime libraries only used by gcj.
1851libgcj="target-libffi \
a0da8069
NN
1852 target-zlib \
1853 target-qthreads \
1854 target-libjava"
1855
1856# these libraries are built for the target environment, and are built after
1857# the host libraries and the host tools (which may be a cross compiler)
1858#
b1299c4e
DJ
1859target_libraries="target-libgcc \
1860 target-libiberty \
a0da8069
NN
1861 target-libgloss \
1862 target-newlib \
b9459e83 1863 target-libstdc++-v3 \
4b1cb4fe 1864 target-libmudflap \
bb780410 1865 target-libssp \
4b1cb4fe 1866 target-libgfortran \
4f0ef2d8 1867 target-boehm-gc \
83326456 1868 ${libgcj} \
a2592b1b 1869 target-libobjc \
b3ded179
PB
1870 target-libada \
1871 target-libgomp"
a0da8069 1872
9c14acb8
NN
1873# these tools are built using the target libraries, and are intended to
1874# run only in the target environment
a0da8069 1875#
9c14acb8 1876# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1877# list belongs in this list. those programs are also very likely
1878# candidates for the "native_only" list which follows
1879#
a3dd767d 1880target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1881
a0da8069 1882################################################################################
252b5132 1883
a0da8069
NN
1884## All tools belong in one of the four categories, and are assigned above
1885## We assign ${configdirs} this way to remove all embedded newlines. This
1886## is important because configure will choke if they ever get through.
1887## ${configdirs} is directories we build using the host tools.
1888## ${target_configdirs} is directories we build using the target tools.
a0da8069 1889configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1890target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1891build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1892
a0da8069 1893################################################################################
252b5132 1894
a0da8069 1895srcname="gnu development package"
252b5132 1896
a0da8069
NN
1897# This gets set non-empty for some net releases of packages.
1898appdirs=""
252b5132 1899
a0da8069
NN
1900# Define is_cross_compiler to save on calls to 'test'.
1901is_cross_compiler=
1902if test x"${host}" = x"${target}" ; then
1903 is_cross_compiler=no
252b5132 1904else
a0da8069 1905 is_cross_compiler=yes
c6b750e1 1906fi
252b5132 1907
9175bfc0 1908# Find the build and target subdir names.
dd12c3a8 1909
66a79c16
DJ
1910# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1911# have matching libraries, they should use host libraries: Makefile.tpl
1912# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1913# However, they still use the build modules, because the corresponding
1914# host modules (e.g. bison) are only built for the host when bootstrap
1915# finishes. So:
1916# - build_subdir is where we find build modules, and never changes.
1917# - build_libsubdir is where we find build libraries, and can be overridden.
1918
1919# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1920build_subdir="build-${build_noncanonical}"
c6b750e1 1921
66a79c16
DJ
1922# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1923if test "${with_build_libsubdir+set}" = set; then
1924 withval="$with_build_libsubdir"
1925 build_libsubdir="$withval"
1926else
1927 build_libsubdir="$build_subdir"
c6b750e1 1928fi;
b00612cc
PB
1929# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1930if ( test $srcdir = . && test -d gcc ) \
1931 || test -d $srcdir/../host-${host_noncanonical}; then
1932 host_subdir="host-${host_noncanonical}"
1933else
1934 host_subdir=.
1935fi
dd12c3a8
NN
1936# No prefix.
1937target_subdir=${target_noncanonical}
c6b750e1 1938
252b5132 1939
a0da8069
NN
1940# Skipdirs are removed silently.
1941skipdirs=
1942# Noconfigdirs are removed loudly.
1943noconfigdirs=""
252b5132 1944
a0da8069
NN
1945use_gnu_ld=
1946# Make sure we don't let GNU ld be added if we didn't want it.
1947if test x$with_gnu_ld = xno ; then
1948 use_gnu_ld=no
1949 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1950fi
1951
a0da8069
NN
1952use_gnu_as=
1953# Make sure we don't let GNU as be added if we didn't want it.
1954if test x$with_gnu_as = xno ; then
1955 use_gnu_as=no
1956 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1957fi
1958
c6b750e1 1959# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1960# it's not even worth trying to configure, much less build, that tool.
252b5132 1961
a0da8069
NN
1962case ${with_x} in
1963 yes | "") ;; # the default value for this tree is that X11 is available
1964 no)
675c6968 1965 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1966 # We won't be able to build gdbtk without X.
c6b750e1 1967 enable_gdbtk=no
a0da8069
NN
1968 ;;
1969 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1970esac
252b5132 1971
a0da8069 1972# Some tools are only suitable for building in a "native" situation.
c6b750e1 1973# Remove these if host!=target.
701628f5 1974native_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 1975
a0da8069
NN
1976# Similarly, some are only suitable for cross toolchains.
1977# Remove these if host=target.
1978cross_only="target-libgloss target-newlib target-opcodes"
1979
1980case $is_cross_compiler in
1981 no) skipdirs="${skipdirs} ${cross_only}" ;;
1982 yes) skipdirs="${skipdirs} ${native_only}" ;;
1983esac
252b5132 1984
a0da8069
NN
1985# If both --with-headers and --with-libs are specified, default to
1986# --without-newlib.
32be62b5
RS
1987if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1988 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1989 if test x"${with_newlib}" = x ; then
1990 with_newlib=no
1991 fi
252b5132
RH
1992fi
1993
a0da8069
NN
1994# Recognize --with-newlib/--without-newlib.
1995case ${with_newlib} in
1996 no) skipdirs="${skipdirs} target-newlib" ;;
1997 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1998esac
252b5132 1999
a0da8069 2000# Configure extra directories which are host specific
252b5132 2001
a0da8069
NN
2002case "${host}" in
2003 *-cygwin*)
2004 configdirs="$configdirs libtermcap" ;;
2005esac
252b5132 2006
59f7ec45
HPN
2007# A target can indicate whether a language isn't supported for some reason.
2008# Only spaces may be used in this macro; not newlines or tabs.
2009unsupported_languages=
2010
c6b750e1 2011# Remove more programs from consideration, based on the host or
a0da8069
NN
2012# target this usually means that a port of the program doesn't
2013# exist yet.
252b5132 2014
a0da8069
NN
2015case "${host}" in
2016 hppa*64*-*-*)
2017 noconfigdirs="$noconfigdirs byacc"
2018 ;;
ec11bdc6 2019 i[3456789]86-*-vsta)
675c6968 2020 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2021 ;;
ec11bdc6 2022 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2023 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2024 ;;
2d1e8239
NC
2025 x86_64-*-mingw*)
2026 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2027 ;;
ec11bdc6 2028 i[3456789]86-*-mingw32*)
675c6968 2029 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2030 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2031 ;;
ec11bdc6 2032 i[3456789]86-*-beos*)
675c6968 2033 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2034 ;;
a0da8069 2035 *-*-cygwin*)
a92834c8 2036 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2037 ;;
2038 *-*-netbsd*)
a92834c8 2039 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2040 ;;
2041 ppc*-*-pe)
675c6968 2042 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2043 ;;
2044 powerpc-*-beos*)
675c6968 2045 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2046 ;;
a0da8069 2047esac
252b5132 2048
4b1cb4fe 2049
a2592b1b
DD
2050# Check whether --enable-libada or --disable-libada was given.
2051if test "${enable_libada+set}" = set; then
2052 enableval="$enable_libada"
2053 ENABLE_LIBADA=$enableval
2054else
2055 ENABLE_LIBADA=yes
c6b750e1 2056fi;
a2592b1b 2057if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2058 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2059fi
2060
5f128533
KH
2061# Check whether --enable-libssp or --disable-libssp was given.
2062if test "${enable_libssp+set}" = set; then
2063 enableval="$enable_libssp"
2064 ENABLE_LIBSSP=$enableval
2065else
2066 ENABLE_LIBSSP=yes
c6b750e1 2067fi;
5f128533 2068
a0da8069
NN
2069# Save it here so that, even in case of --enable-libgcj, if the Java
2070# front-end isn't enabled, we still get libgcj disabled.
2071libgcj_saved=$libgcj
2072case $enable_libgcj in
2073yes)
2074 # If we reset it here, it won't get added to noconfigdirs in the
2075 # target-specific build rules, so it will be forcibly enabled
2076 # (unless the Java language itself isn't enabled).
2077 libgcj=
2078 ;;
2079no)
2080 # Make sure we get it printed in the list of not supported target libs.
2081 noconfigdirs="$noconfigdirs ${libgcj}"
2082 ;;
2083esac
252b5132 2084
4b1cb4fe 2085
a6df5a19
PB
2086# Disable libmudflap on some systems.
2087if test x$enable_libmudflap = x ; then
3e707e94 2088 case "${target}" in
7c3e1d12 2089 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc* | *-*-uclinux*)
3d6dfe0f 2090 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2091 ;;
2092 *-*-freebsd*)
2093 # Enable libmudflap by default in FreeBSD.
2094 ;;
2095 *)
2096 # Disable it by default everywhere else.
2097 noconfigdirs="$noconfigdirs target-libmudflap"
2098 ;;
2099 esac
a6df5a19 2100fi
4b1cb4fe 2101
a6df5a19
PB
2102# Disable libgomp on non POSIX hosted systems.
2103if test x$enable_libgomp = x ; then
b3ded179
PB
2104 # Enable libgomp by default on hosted POSIX systems.
2105 case "${target}" in
2106 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2107 ;;
2108 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2109 ;;
64ce424c 2110 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2111 ;;
2112 *-*-darwin* | *-*-aix*)
2113 ;;
2114 *)
2115 noconfigdirs="$noconfigdirs target-libgomp"
2116 ;;
2117 esac
a6df5a19 2118fi
b3ded179 2119
4b1cb4fe 2120
a0da8069
NN
2121case "${target}" in
2122 *-*-chorusos)
54d1c879 2123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2124 ;;
790c0838 2125 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2126 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2127 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2128 ;;
04d1ab34 2129 *-*-darwin*)
d320aacb 2130 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2131 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2132 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2133 ;;
a0da8069 2134 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2135 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2136 ;;
de0b4a87 2137 *-*-freebsd*)
4b1cb4fe
DD
2138 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2139 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2140 && test -f /usr/local/include/gmp.h; then
2141 with_gmp=/usr/local
2142 fi
2143
2144 # Skip some stuff that's unsupported on some FreeBSD configurations.
2145 case "${target}" in
2146 i*86-*-*) ;;
2147 alpha*-*-*) ;;
2148 *)
54d1c879 2149 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2150 ;;
2151 esac
2152 ;;
f8a495c8
NC
2153 *-*-kaos*)
2154 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2155 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2156 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2157 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2158 noconfigdirs="$noconfigdirs target-libgloss"
2159 ;;
a0da8069
NN
2160 *-*-netbsd*)
2161 # Skip some stuff on all NetBSD configurations.
2162 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2163
2164 # Skip some stuff that's unsupported on some NetBSD configurations.
2165 case "${target}" in
2166 i*86-*-netbsdelf*) ;;
5b474aa8 2167 arm*-*-netbsdelf*) ;;
a0da8069 2168 *)
54d1c879 2169 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2170 ;;
2171 esac
2172 ;;
2a3124ca 2173 *-*-netware*)
54d1c879 2174 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2175 ;;
2176 *-*-rtems*)
54d1c879 2177 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2178 ;;
1587117a
EC
2179 # The tpf target doesn't support gdb yet.
2180 *-*-tpf*)
54d1c879 2181 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2182 ;;
c1968181 2183 *-*-uclinux*)
54d1c879 2184 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2185 ;;
a0da8069 2186 *-*-vxworks*)
54d1c879 2187 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2188 ;;
2189 alpha*-dec-osf*)
2190 # ld works, but does not support shared libraries.
2191 # newlib is not 64 bit ready. I'm not sure about fileutils.
2192 # gas doesn't generate exception information.
2193 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2194 ;;
2195 alpha*-*-*vms*)
54d1c879 2196 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2197 ;;
2198 alpha*-*-linux*)
2199 # newlib is not 64 bit ready
2200 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2201 ;;
a0da8069
NN
2202 alpha*-*-*)
2203 # newlib is not 64 bit ready
54d1c879 2204 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2205 ;;
4a18bd6b 2206 am33_2.0-*-linux*)
54d1c879 2207 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2208 ;;
a0da8069 2209 sh-*-linux*)
54d1c879 2210 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2211 ;;
a0da8069 2212 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2213 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2214 noconfigdirs="$noconfigdirs target-examples"
2215 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2216 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2217 noconfigdirs="$noconfigdirs expect dejagnu"
2218 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2219 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2220 noconfigdirs="$noconfigdirs target-newlib"
2221 case "${host}" in
2222 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2223 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2224 ;;
2225 esac
2226 ;;
2227 arc-*-*)
54d1c879 2228 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2229 ;;
caeba88f 2230 arm-semi-aof )
caeba88f 2231 ;;
a0da8069 2232 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2233 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2234 ;;
11b04d1f 2235 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2236 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2237 ;;
bd70a46f
KH
2238 arm*-*-linux-gnueabi)
2239 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2240 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
a5b3b4dd
DD
2241 case ${with_newlib} in
2242 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2243 esac
bd70a46f 2244 ;;
df4a6958 2245 arm*-*-symbianelf*)
54d1c879 2246 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2247 ;;
a0da8069 2248 arm-*-pe*)
54d1c879 2249 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2250 ;;
a0da8069 2251 thumb-*-coff)
54d1c879 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2253 ;;
2254 thumb-*-elf)
54d1c879 2255 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2256 ;;
a0da8069 2257 thumb-*-pe)
54d1c879 2258 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2259 ;;
2260 arm-*-riscix*)
54d1c879 2261 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2262 ;;
2263 avr-*-*)
54d1c879 2264 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2265 ;;
376a0e54 2266 bfin-*-*)
00d89675 2267 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2268 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2269 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2270 fi
2271 ;;
a0da8069 2272 c4x-*-* | tic4x-*-*)
54d1c879 2273 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2274 ;;
2275 c54x*-*-* | tic54x-*-*)
54d1c879 2276 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2277 ;;
c7e66c6d 2278 cris-*-* | crisv32-*-*)
59f7ec45 2279 unsupported_languages="$unsupported_languages java"
c7e66c6d 2280 case "${target}" in
2faa2958 2281 *-*-aout)
096f7d00 2282 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2283 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2284 *-*-elf)
096f7d00 2285 unsupported_languages="$unsupported_languages fortran"
5e818318 2286 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2287 *-*-linux*)
5e818318 2288 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2289 *)
096f7d00 2290 unsupported_languages="$unsupported_languages fortran"
54d1c879 2291 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2292 esac
a0da8069 2293 ;;
3e707e94 2294 crx-*-*)
54d1c879 2295 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2296 ;;
a0da8069 2297 d10v-*-*)
54d1c879 2298 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2299 ;;
2300 d30v-*-*)
54d1c879 2301 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2302 ;;
2303 fr30-*-elf*)
54d1c879 2304 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2305 ;;
2306 frv-*-*)
54d1c879 2307 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2308 ;;
2309 h8300*-*-*)
54d1c879 2310 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2311 ;;
2312 h8500-*-*)
54d1c879 2313 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2314 ;;
caeba88f 2315 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2316 ;;
a0da8069
NN
2317 hppa*64*-*-linux* | parisc*64*-*-linux*)
2318 # In this case, it's because the hppa64-linux target is for
2319 # the kernel only at this point and has no libc, and thus no
2320 # headers, crt*.o, etc., all of which are needed by these.
2321 noconfigdirs="$noconfigdirs target-zlib"
2322 ;;
5dcac624
DA
2323 parisc*-*-linux* | hppa*-*-linux*)
2324 ;;
a0da8069 2325 hppa*-*-*elf* | \
a0da8069
NN
2326 hppa*-*-lites* | \
2327 hppa*-*-openbsd* | \
2328 hppa*64*-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2330 ;;
2331 hppa*-hp-hpux11*)
2332 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2333 ;;
2334 hppa*-*-*)
2335 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2336 # build on HP-UX 10.20.
54d1c879 2337 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2338 ;;
b07c2aad 2339 i960-*-*)
54d1c879 2340 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2341 ;;
a0da8069
NN
2342 ia64*-*-elf*)
2343 # No gdb support yet.
675c6968 2344 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2345 ;;
2346 ia64*-**-hpux*)
2347 # No gdb or ld support yet.
54d1c879 2348 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2349 ;;
caeba88f 2350 i370-*-opened*)
caeba88f 2351 ;;
ec11bdc6 2352 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2353 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2354 ;;
ec11bdc6 2355 i[3456789]86-*-linux*)
a0da8069
NN
2356 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2357 # not build java stuff by default.
2358 case "${target}" in
2359 *-*-*libc1*)
54d1c879 2360 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2361 esac
2362
2363 # This section makes it possible to build newlib natively on linux.
2364 # If we are using a cross compiler then don't configure newlib.
2365 if test x${is_cross_compiler} != xno ; then
bba45b8b 2366 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2367 fi
2368 noconfigdirs="$noconfigdirs target-libgloss"
2369 # If we are not using a cross compiler, do configure newlib.
2370 # Note however, that newlib will only be configured in this situation
2371 # if the --with-newlib option has been given, because otherwise
2372 # 'target-newlib' will appear in skipdirs.
2373 ;;
ec11bdc6 2374 i[3456789]86-*-mingw32*)
45055374
CV
2375 target_configdirs="$target_configdirs target-winsup"
2376 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2377 ;;
2d1e8239
NC
2378 x86_64-*-mingw*)
2379 target_configdirs="$target_configdirs target-winsup"
2380 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2381 ;;
a0da8069
NN
2382 *-*-cygwin*)
2383 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2384 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2385 # always build newlib if winsup directory is present.
45055374 2386 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2387 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2388 elif test -d "$srcdir/newlib"; then
45055374 2389 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2390 fi
c6b750e1 2391 ;;
caeba88f
AL
2392 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2393 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2394 ;;
ec11bdc6 2395 i[3456789]86-*-pe)
54d1c879 2396 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2397 ;;
ec11bdc6 2398 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2399 # The linker does not yet know about weak symbols in COFF,
2400 # and is not configured to handle mixed ELF and COFF.
54d1c879 2401 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2402 ;;
ec11bdc6 2403 i[3456789]86-*-sco*)
54d1c879 2404 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2405 ;;
ec11bdc6 2406 i[3456789]86-*-solaris2*)
a0da8069
NN
2407 noconfigdirs="$noconfigdirs target-libgloss"
2408 ;;
ec11bdc6 2409 i[3456789]86-*-sysv4*)
54d1c879 2410 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2411 ;;
ec11bdc6 2412 i[3456789]86-*-beos*)
54d1c879 2413 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2414 ;;
b59bea8a 2415 i[3456789]86-*-rdos*)
2429c060
PB
2416 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2417 ;;
b07c2aad 2418 m32r-*-*)
54d1c879 2419 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2420 ;;
a0da8069 2421 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2422 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2423 ;;
2424 m68k-*-elf*)
54d1c879 2425 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2426 ;;
2427 m68k-*-coff*)
54d1c879 2428 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2429 ;;
2430 mcore-*-pe*)
2431 # The EPOC C++ environment does not support exceptions or rtti,
2432 # and so building libstdc++-v3 tends not to always work.
2433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2434 ;;
2435 mmix-*-*)
59f7ec45 2436 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2437 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2438 ;;
2439 mn10200-*-*)
54d1c879 2440 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2441 ;;
2442 mn10300-*-*)
54d1c879 2443 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2444 ;;
4970f871 2445 mt-*-*)
cdb9b172
AH
2446 noconfigdirs="$noconfigdirs sim"
2447 ;;
a0da8069
NN
2448 powerpc-*-aix*)
2449 # copied from rs6000-*-* entry
54d1c879 2450 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2451 ;;
2452 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2453 target_configdirs="$target_configdirs target-winsup"
54d1c879 2454 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2455 # always build newlib.
2456 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2457 ;;
2458 # This is temporary until we can link against shared libraries
2459 powerpcle-*-solaris*)
54d1c879 2460 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2461 ;;
2462 powerpc-*-beos*)
54d1c879 2463 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2464 ;;
a0da8069 2465 powerpc-*-eabi)
54d1c879 2466 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2467 ;;
2468 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2469 ;;
a0da8069 2470 rs6000-*-lynxos*)
54d1c879 2471 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2472 ;;
2473 rs6000-*-aix*)
54d1c879 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2475 ;;
2476 rs6000-*-*)
54d1c879 2477 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2478 ;;
2479 m68k-apollo-*)
54d1c879 2480 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2481 ;;
2482 mips*-*-irix5*)
54d1c879 2483 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2484 ;;
2485 mips*-*-irix6*)
a0da8069
NN
2486 # Linking libjava exceeds command-line length limits on at least
2487 # IRIX 6.2, but not on IRIX 6.5.
2488 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2489 # <oldham@codesourcery.com>
54d1c879 2490 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2491 ;;
a0da8069 2492 mips*-*-bsd*)
54d1c879 2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2494 ;;
1712ab83 2495 mips64*-*-linux*)
f3529cf1 2496 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2497 ;;
a0da8069
NN
2498 mips*-*-linux*)
2499 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2500 ;;
2501 mips*-*-*)
54d1c879 2502 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2503 ;;
2504 romp-*-*)
54d1c879 2505 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2506 ;;
dbf85af7 2507 sh-*-* | sh64-*-*)
a0da8069 2508 case "${host}" in
ec11bdc6
DD
2509 i[3456789]86-*-vsta) ;; # don't add gprof back in
2510 i[3456789]86-*-go32*) ;; # don't add gprof back in
2511 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2512 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2513 esac
54d1c879 2514 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2515 ;;
a0da8069 2516 sparc-*-elf*)
54d1c879 2517 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2518 ;;
2519 sparc64-*-elf*)
54d1c879 2520 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2521 ;;
2522 sparclite-*-*)
54d1c879 2523 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2524 ;;
2525 sparc-*-sunos4*)
54d1c879 2526 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2527 if test x${is_cross_compiler} != xno ; then
2528 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2529 else
2530 use_gnu_ld=no
2531 fi
2532 ;;
e3c770b1 2533 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2534 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2535 ;;
a0da8069
NN
2536 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2537 ;;
2839fe5d
BE
2538 spu-*-*)
2539 skipdirs="target-libssp"
2540 ;;
a0da8069 2541 v810-*-*)
54d1c879 2542 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2543 ;;
2544 v850-*-*)
54d1c879 2545 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2546 ;;
2547 v850e-*-*)
54d1c879 2548 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2549 ;;
2550 v850ea-*-*)
54d1c879 2551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2552 ;;
2553 vax-*-vms)
54d1c879 2554 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2555 ;;
2556 vax-*-*)
54d1c879 2557 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2558 ;;
fbd1054d 2559 xtensa-*-*)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2561 ;;
a0da8069 2562 ip2k-*-*)
54d1c879 2563 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2564 ;;
de0b4a87 2565 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2566 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2567 ;;
2568 *-*-lynxos*)
54d1c879 2569 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2570 ;;
a0da8069 2571 *-*-*)
54d1c879 2572 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2573 ;;
2574esac
252b5132 2575
a0da8069
NN
2576# If we aren't building newlib, then don't build libgloss, since libgloss
2577# depends upon some newlib header files.
2578case "${noconfigdirs}" in
2579 *target-libgloss*) ;;
2580 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2581esac
2582
a0da8069
NN
2583# Work in distributions that contain no compiler tools, like Autoconf.
2584tentative_cc=""
2585host_makefile_frag=/dev/null
2586if test -d ${srcdir}/config ; then
2587case "${host}" in
2588 m68k-hp-hpux*)
2589 # Avoid "too much defining" errors from HPUX compiler.
2590 tentative_cc="cc -Wp,-H256000"
2591 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2592 # If it's HP/UX ar, this should be harmless.
2593 RANLIB="ar ts"
2594 ;;
2595 m68k-apollo-sysv*)
2596 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2597 ;;
2598 m68k-apollo-bsd*)
2599 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2600 # chokes on bfd, the compiler won't let you assign integers to enums, and
2601 # other problems. Defining CC to gcc is a questionable way to say "don't use
2602 # the apollo compiler" (the preferred version of GCC could be called cc,
2603 # or whatever), but I'm not sure leaving CC as cc is any better...
2604 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2605 # Used to have BISON=yacc.
2606 tentative_cc=gcc
2607 ;;
2608 m88k-dg-dgux*)
2609 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2610 ;;
2611 m88k-harris-cxux*)
2612 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2613 tentative_cc="cc -Xa"
2614 host_makefile_frag="config/mh-cxux"
2615 ;;
2616 m88k-motorola-sysv*)
2617 ;;
2618 mips*-dec-ultrix*)
2619 tentative_cc="cc -Wf,-XNg1000"
2620 host_makefile_frag="config/mh-decstation"
2621 ;;
2622 mips*-nec-sysv4*)
2623 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2624 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2625 host_makefile_frag="config/mh-necv4"
2626 ;;
2627 mips*-sgi-irix4*)
2628 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2629 # environment. Also bump switch table size so that cp-parse will
2630 # compile. Bump string length limit so linker builds.
2631 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2632 ;;
2633 mips*-*-sysv4*)
2634 host_makefile_frag="config/mh-sysv4"
2635 ;;
2636 mips*-*-sysv*)
2637 # This is for a MIPS running RISC/os 4.52C.
2638
2639 # This is needed for GDB, but needs to be in the top-level make because
2640 # if a library is compiled with the bsd headers and gets linked with the
2641 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2642 # a different size).
2643 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2644 # known except to select the sysv environment. Could we use /proc instead?
2645 # These "sysv environments" and "bsd environments" often end up being a pain.
2646 #
2647 # This is not part of CFLAGS because perhaps not all C compilers have this
2648 # option.
2649 tentative_cc="cc -systype sysv"
2650 ;;
2651 i370-ibm-opened*)
2652 tentative_cc="c89"
2653 ;;
ec11bdc6 2654 i[3456789]86-*-sysv5*)
a0da8069
NN
2655 host_makefile_frag="config/mh-sysv5"
2656 ;;
ec11bdc6 2657 i[3456789]86-*-dgux*)
a0da8069
NN
2658 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2659 host_makefile_frag="config/mh-dgux386"
2660 ;;
ec11bdc6 2661 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2662 # The MetaWare compiler will generate a copyright message unless you
2663 # turn it off by adding the -Hnocopyr flag.
2664 tentative_cc="cc -Hnocopyr"
2665 ;;
ec11bdc6 2666 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2667 # for an NCR 3000 (i486/SVR4) system.
2668 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2669 # This compiler not only emits obnoxious copyright messages every time
2670 # you run it, but it chokes and dies on a whole bunch of GNU source
2671 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2672 tentative_cc="/usr/ccs/ATT/cc"
2673 host_makefile_frag="config/mh-ncr3000"
2674 ;;
ec11bdc6 2675 i[3456789]86-*-sco3.2v5*)
a0da8069 2676 ;;
ec11bdc6 2677 i[3456789]86-*-sco*)
a0da8069
NN
2678 # The native C compiler botches some simple uses of const. Unfortunately,
2679 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2680 tentative_cc="cc -Dconst="
2681 host_makefile_frag="config/mh-sco"
2682 ;;
ec11bdc6 2683 i[3456789]86-*-udk*)
a0da8069
NN
2684 host_makefile_frag="config/mh-sysv5"
2685 ;;
ec11bdc6 2686 i[3456789]86-*-solaris2*)
a0da8069
NN
2687 host_makefile_frag="config/mh-sysv4"
2688 ;;
ec11bdc6 2689 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2690 host_makefile_frag="config/mh-djgpp"
2691 ;;
2692 *-cygwin*)
2693 host_makefile_frag="config/mh-cygwin"
2694 ;;
2695 *-mingw32*)
a0da8069 2696 ;;
2d1e8239
NC
2697 *-mingw64*)
2698 ;;
a0da8069
NN
2699 *-interix*)
2700 host_makefile_frag="config/mh-interix"
2701 ;;
2702 vax-*-ultrix2*)
2703 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2704 tentative_cc=gcc
2705 ;;
2706 *-*-solaris2*)
2707 host_makefile_frag="config/mh-solaris"
2708 ;;
2709 m68k-sun-sunos*)
2710 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2711 # without overflowing the jump tables (-J says to use a 32 bit table)
2712 tentative_cc="cc -J"
2713 ;;
2714 *-hp-hpux*)
2715 tentative_cc="cc -Wp,-H256000"
2716 ;;
2717 *-*-hiux*)
2718 tentative_cc="cc -Wp,-H256000"
2719 ;;
2720 rs6000-*-lynxos*)
2721 # /bin/cc is less than useful for our purposes. Always use GCC
2722 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2723 host_makefile_frag="config/mh-lynxrs6k"
2724 ;;
0df3d27f
PB
2725 powerpc-*-darwin*)
2726 host_makefile_frag="config/mh-ppc-darwin"
2727 ;;
f6d183c0
PB
2728 powerpc-*-aix*)
2729 host_makefile_frag="config/mh-ppc-aix"
2730 ;;
2731 rs6000-*-aix*)
2732 host_makefile_frag="config/mh-ppc-aix"
2733 ;;
a0da8069
NN
2734 *-*-lynxos*)
2735 # /bin/cc is less than useful for our purposes. Always use GCC
2736 tentative_cc="/bin/gcc"
2737 ;;
2738 *-*-sysv4*)
2739 host_makefile_frag="config/mh-sysv4"
2740 ;;
fe69863c
DD
2741 # This is placed last to prevent interfering with the cases above.
2742 i[3456789]86-*-*)
2743 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2744 host_makefile_frag="config/mh-x86omitfp"
2745 ;;
a0da8069
NN
2746esac
2747fi
2748
9e07f89d
NN
2749# If we aren't going to be using gcc, see if we can extract a definition
2750# of CC from the fragment.
2751# Actually, use the 'pre-extracted' version above.
2752if test -z "${CC}" && test "${build}" = "${host}" ; then
2753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2754 found=
2755 for dir in $PATH; do
2756 test -z "$dir" && dir=.
2757 if test -f $dir/gcc; then
2758 found=yes
2759 break
2760 fi
2761 done
2762 IFS="$save_ifs"
2763 if test -z "${found}" && test -n "${tentative_cc}" ; then
2764 CC=$tentative_cc
2765 fi
2766fi
2767
2768if test "${build}" != "${host}" ; then
9e07f89d 2769 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2770else
512b7dfb 2771 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2772fi
2773
2774ac_ext=c
c6b750e1
DJ
2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}gcc; ac_word=$2
2782echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802done
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809echo "${ECHO_T}$CC" >&6
2810else
2811 echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
2813fi
2814
2815fi
2816if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
6a9cf61e 2818 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2819set dummy gcc; ac_word=$2
c6b750e1
DJ
2820echo "$as_me:$LINENO: checking for $ac_word" >&5
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="gcc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840done
2841
2842fi
2843fi
2844ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845if test -n "$ac_ct_CC"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847echo "${ECHO_T}$ac_ct_CC" >&6
2848else
2849 echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
2851fi
2852
2853 CC=$ac_ct_CC
2854else
2855 CC="$ac_cv_prog_CC"
2856fi
2857
2858if test -z "$CC"; then
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2861set dummy ${ac_tool_prefix}cc; ac_word=$2
2862echo "$as_me:$LINENO: checking for $ac_word" >&5
2863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2866else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869else
c6b750e1
DJ
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877 ac_cv_prog_CC="${ac_tool_prefix}cc"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881done
2882done
2883
9e07f89d
NN
2884fi
2885fi
c6b750e1 2886CC=$ac_cv_prog_CC
9e07f89d 2887if test -n "$CC"; then
c6b750e1
DJ
2888 echo "$as_me:$LINENO: result: $CC" >&5
2889echo "${ECHO_T}$CC" >&6
9e07f89d 2890else
c6b750e1
DJ
2891 echo "$as_me:$LINENO: result: no" >&5
2892echo "${ECHO_T}no" >&6
9e07f89d
NN
2893fi
2894
c6b750e1
DJ
2895fi
2896if test -z "$ac_cv_prog_CC"; then
2897 ac_ct_CC=$CC
2898 # Extract the first word of "cc", so it can be a program name with args.
2899set dummy cc; ac_word=$2
2900echo "$as_me:$LINENO: checking for $ac_word" >&5
2901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2902if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2904else
2905 if test -n "$ac_ct_CC"; then
2906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_CC="cc"
2916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919done
2920done
2921
2922fi
2923fi
2924ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925if test -n "$ac_ct_CC"; then
2926 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2927echo "${ECHO_T}$ac_ct_CC" >&6
2928else
2929 echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
2931fi
2932
2933 CC=$ac_ct_CC
2934else
2935 CC="$ac_cv_prog_CC"
2936fi
2937
2938fi
9e07f89d
NN
2939if test -z "$CC"; then
2940 # Extract the first word of "cc", so it can be a program name with args.
2941set dummy cc; ac_word=$2
c6b750e1
DJ
2942echo "$as_me:$LINENO: checking for $ac_word" >&5
2943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2946else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949else
9e07f89d 2950 ac_prog_rejected=no
c6b750e1
DJ
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2959 ac_prog_rejected=yes
2960 continue
2961 fi
2962 ac_cv_prog_CC="cc"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966done
2967done
2968
9e07f89d
NN
2969if test $ac_prog_rejected = yes; then
2970 # We found a bogon in the path, so make sure we never use it.
2971 set dummy $ac_cv_prog_CC
2972 shift
c6b750e1 2973 if test $# != 0; then
9e07f89d
NN
2974 # We chose a different compiler from the bogus one.
2975 # However, it has the same basename, so the bogon will be chosen
2976 # first if we set CC to just the basename; use the full file name.
2977 shift
c6b750e1 2978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2979 fi
2980fi
2981fi
2982fi
c6b750e1 2983CC=$ac_cv_prog_CC
9e07f89d 2984if test -n "$CC"; then
c6b750e1
DJ
2985 echo "$as_me:$LINENO: result: $CC" >&5
2986echo "${ECHO_T}$CC" >&6
9e07f89d 2987else
c6b750e1
DJ
2988 echo "$as_me:$LINENO: result: no" >&5
2989echo "${ECHO_T}no" >&6
9e07f89d
NN
2990fi
2991
c6b750e1
DJ
2992fi
2993if test -z "$CC"; then
2994 if test -n "$ac_tool_prefix"; then
2995 for ac_prog in cl
2996 do
2997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2999echo "$as_me:$LINENO: checking for $ac_word" >&5
3000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3001if test "${ac_cv_prog_CC+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3003else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006else
c6b750e1
DJ
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
376a0e54 3017 fi
c6b750e1
DJ
3018done
3019done
cac3d6c4 3020
c6b750e1
DJ
3021fi
3022fi
3023CC=$ac_cv_prog_CC
3024if test -n "$CC"; then
3025 echo "$as_me:$LINENO: result: $CC" >&5
3026echo "${ECHO_T}$CC" >&6
cac3d6c4 3027else
c6b750e1
DJ
3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
9e07f89d 3030fi
cac3d6c4 3031
c6b750e1
DJ
3032 test -n "$CC" && break
3033 done
cac3d6c4 3034fi
c6b750e1
DJ
3035if test -z "$CC"; then
3036 ac_ct_CC=$CC
3037 for ac_prog in cl
3038do
3039 # Extract the first word of "$ac_prog", so it can be a program name with args.
3040set dummy $ac_prog; ac_word=$2
3041echo "$as_me:$LINENO: checking for $ac_word" >&5
3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3045else
c6b750e1
DJ
3046 if test -n "$ac_ct_CC"; then
3047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3048else
c6b750e1
DJ
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_ac_ct_CC="$ac_prog"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060done
3061done
3062
cac3d6c4
CM
3063fi
3064fi
c6b750e1
DJ
3065ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066if test -n "$ac_ct_CC"; then
3067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3068echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3069else
c6b750e1
DJ
3070 echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6
cac3d6c4 3072fi
376a0e54 3073
c6b750e1
DJ
3074 test -n "$ac_ct_CC" && break
3075done
3076
3077 CC=$ac_ct_CC
3078fi
3079
3080fi
3081
3082
3083test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3084See \`config.log' for more details." >&5
3085echo "$as_me: error: no acceptable C compiler found in \$PATH
3086See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3088
3089# Provide some information about the compiler.
3090echo "$as_me:$LINENO:" \
3091 "checking for C compiler version" >&5
3092ac_compiler=`set X $ac_compile; echo $2`
3093{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3094 (eval $ac_compiler --version </dev/null >&5) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
3098{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3099 (eval $ac_compiler -v </dev/null >&5) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }
3103{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3104 (eval $ac_compiler -V </dev/null >&5) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }
3108
3109cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124ac_clean_files_save=$ac_clean_files
3125ac_clean_files="$ac_clean_files a.out a.exe b.out"
3126# Try to create an executable without -o first, disregard a.out.
3127# It will help us diagnose broken compilers, and finding out an intuition
3128# of exeext.
3129echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3133 (eval $ac_link_default) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; then
3137 # Find the output, starting from the most likely. This scheme is
3138# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3139# resort.
3140
3141# Be careful to initialize this variable, since it used to be cached.
3142# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3143ac_cv_exeext=
3144# b.out is created by i960 compilers.
3145for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3146do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3150 ;;
3151 conftest.$ac_ext )
3152 # This is the source file.
3153 ;;
3154 [ab].out )
3155 # We found the default executable, but exeext='' is most
3156 # certainly right.
3157 break;;
3158 *.* )
3159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 # FIXME: I believe we export ac_cv_exeext for Libtool,
3161 # but it would be cool to find out if it's true. Does anybody
3162 # maintain Libtool? --akim.
3163 export ac_cv_exeext
3164 break;;
3165 * )
3166 break;;
3167 esac
3168done
3169else
3170 echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3174See \`config.log' for more details." >&5
3175echo "$as_me: error: C compiler cannot create executables
3176See \`config.log' for more details." >&2;}
3177 { (exit 77); exit 77; }; }
3178fi
3179
3180ac_exeext=$ac_cv_exeext
3181echo "$as_me:$LINENO: result: $ac_file" >&5
3182echo "${ECHO_T}$ac_file" >&6
3183
3184# Check the compiler produces executables we can run. If not, either
3185# the compiler is broken, or we cross compile.
3186echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3187echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3188# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3189# If not cross compiling, check that we can run a simple program.
3190if test "$cross_compiling" != yes; then
3191 if { ac_try='./$ac_file'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 cross_compiling=no
3198 else
3199 if test "$cross_compiling" = maybe; then
3200 cross_compiling=yes
3201 else
3202 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3203If you meant to cross compile, use \`--host'.
3204See \`config.log' for more details." >&5
3205echo "$as_me: error: cannot run C compiled programs.
3206If you meant to cross compile, use \`--host'.
3207See \`config.log' for more details." >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210 fi
3211fi
3212echo "$as_me:$LINENO: result: yes" >&5
3213echo "${ECHO_T}yes" >&6
3214
3215rm -f a.out a.exe conftest$ac_cv_exeext b.out
3216ac_clean_files=$ac_clean_files_save
3217# Check the compiler produces executables we can run. If not, either
3218# the compiler is broken, or we cross compile.
3219echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3220echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3221echo "$as_me:$LINENO: result: $cross_compiling" >&5
3222echo "${ECHO_T}$cross_compiling" >&6
3223
3224echo "$as_me:$LINENO: checking for suffix of executables" >&5
3225echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3227 (eval $ac_link) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; then
3231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3232# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3233# work properly (i.e., refer to `conftest.exe'), while it won't with
3234# `rm'.
3235for ac_file in conftest.exe conftest conftest.*; do
3236 test -f "$ac_file" || continue
3237 case $ac_file in
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240 export ac_cv_exeext
3241 break;;
3242 * ) break;;
3243 esac
3244done
3245else
3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3247See \`config.log' for more details." >&5
3248echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3249See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3251fi
3252
3253rm -f conftest$ac_cv_exeext
3254echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3255echo "${ECHO_T}$ac_cv_exeext" >&6
3256
3257rm -f conftest.$ac_ext
3258EXEEXT=$ac_cv_exeext
3259ac_exeext=$EXEEXT
3260echo "$as_me:$LINENO: checking for suffix of object files" >&5
3261echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3262if test "${ac_cv_objext+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265 cat >conftest.$ac_ext <<_ACEOF
3266/* confdefs.h. */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h. */
3271
3272int
3273main ()
3274{
3275
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280rm -f conftest.o conftest.obj
3281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; then
3286 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3290 break;;
3291 esac
3292done
cac3d6c4 3293else
c6b750e1
DJ
3294 echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3298See \`config.log' for more details." >&5
3299echo "$as_me: error: cannot compute suffix of object files: cannot compile
3300See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }
3302fi
3303
3304rm -f conftest.$ac_cv_objext conftest.$ac_ext
3305fi
3306echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3307echo "${ECHO_T}$ac_cv_objext" >&6
3308OBJEXT=$ac_cv_objext
3309ac_objext=$OBJEXT
3310echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3311echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3312if test "${ac_cv_c_compiler_gnu+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315 cat >conftest.$ac_ext <<_ACEOF
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
3321
3322int
3323main ()
3324{
3325#ifndef __GNUC__
3326 choke me
3327#endif
3328
3329 ;
3330 return 0;
3331}
3332_ACEOF
3333rm -f conftest.$ac_objext
3334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag"
3343 || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_compiler_gnu=yes
3356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360ac_compiler_gnu=no
3361fi
3362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364
3365fi
3366echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3367echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3368GCC=`test $ac_compiler_gnu = yes && echo yes`
3369ac_test_CFLAGS=${CFLAGS+set}
3370ac_save_CFLAGS=$CFLAGS
3371CFLAGS="-g"
3372echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3373echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3374if test "${ac_cv_prog_cc_g+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387
3388 ;
3389 return 0;
3390}
3391_ACEOF
3392rm -f conftest.$ac_objext
3393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -z "$ac_c_werror_flag"
3402 || test ! -s conftest.err'
3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; } &&
3408 { ac_try='test -s conftest.$ac_objext'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
9e07f89d
NN
3414 ac_cv_prog_cc_g=yes
3415else
c6b750e1
DJ
3416 echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3418
c6b750e1 3419ac_cv_prog_cc_g=no
376a0e54 3420fi
c6b750e1
DJ
3421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3422fi
3423echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3424echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3425if test "$ac_test_CFLAGS" = set; then
c6b750e1 3426 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3427elif test $ac_cv_prog_cc_g = yes; then
3428 if test "$GCC" = yes; then
3429 CFLAGS="-g -O2"
3430 else
3431 CFLAGS="-g"
3432 fi
3433else
3434 if test "$GCC" = yes; then
3435 CFLAGS="-O2"
3436 else
3437 CFLAGS=
3438 fi
3439fi
c6b750e1
DJ
3440echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3441echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3442if test "${ac_cv_prog_cc_stdc+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445 ac_cv_prog_cc_stdc=no
3446ac_save_CC=$CC
3447cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h. */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h. */
3453#include <stdarg.h>
3454#include <stdio.h>
3455#include <sys/types.h>
3456#include <sys/stat.h>
3457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3458struct buf { int x; };
3459FILE * (*rcsopen) (struct buf *, struct stat *, int);
3460static char *e (p, i)
3461 char **p;
3462 int i;
3463{
3464 return p[i];
3465}
3466static char *f (char * (*g) (char **, int), char **p, ...)
3467{
3468 char *s;
3469 va_list v;
3470 va_start (v,p);
3471 s = g (p, va_arg (v,int));
3472 va_end (v);
3473 return s;
3474}
3475
3476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3477 function prototypes and stuff, but not '\xHH' hex character constants.
3478 These don't provoke an error unfortunately, instead are silently treated
3479 as 'x'. The following induces an error, until -std1 is added to get
3480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3481 array size at least. It's necessary to write '\x00'==0 to get something
3482 that's true only with -std1. */
3483int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3484
3485int test (int i, double x);
3486struct s1 {int (*f) (int a);};
3487struct s2 {int (*f) (double a);};
3488int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489int argc;
3490char **argv;
3491int
3492main ()
3493{
3494return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3495 ;
3496 return 0;
3497}
3498_ACEOF
3499# Don't try gcc -ansi; that turns off useful extensions and
3500# breaks some systems' header files.
3501# AIX -qlanglvl=ansi
3502# Ultrix and OSF/1 -std1
3503# HP-UX 10.20 and later -Ae
3504# HP-UX older versions -Aa -D_HPUX_SOURCE
3505# SVR4 -Xc -D__EXTENSIONS__
3506for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507do
3508 CC="$ac_save_CC $ac_arg"
3509 rm -f conftest.$ac_objext
3510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 ac_cv_prog_cc_stdc=$ac_arg
3532break
3533else
3534 echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537fi
3538rm -f conftest.err conftest.$ac_objext
3539done
3540rm -f conftest.$ac_ext conftest.$ac_objext
3541CC=$ac_save_CC
3542
3543fi
3544
3545case "x$ac_cv_prog_cc_stdc" in
3546 x|xno)
3547 echo "$as_me:$LINENO: result: none needed" >&5
3548echo "${ECHO_T}none needed" >&6 ;;
3549 *)
3550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3551echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3552 CC="$CC $ac_cv_prog_cc_stdc" ;;
3553esac
3554
3555# Some people use a C++ compiler to compile C. Since we use `exit',
3556# in C++ we need to declare it. In case someone uses the same compiler
3557# for both compiling C and C++ we need to have the C++ compiler decide
3558# the declaration of exit, since it's the most demanding environment.
3559cat >conftest.$ac_ext <<_ACEOF
3560#ifndef __cplusplus
3561 choke me
3562#endif
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 for ac_declaration in \
3587 '' \
3588 'extern "C" void std::exit (int) throw (); using std::exit;' \
3589 'extern "C" void std::exit (int); using std::exit;' \
3590 'extern "C" void exit (int) throw ();' \
3591 'extern "C" void exit (int);' \
3592 'void exit (int);'
3593do
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600$ac_declaration
3601#include <stdlib.h>
3602int
3603main ()
3604{
3605exit (42);
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610rm -f conftest.$ac_objext
3611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
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); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 :
3633else
3634 echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637continue
3638fi
3639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646$ac_declaration
3647int
3648main ()
3649{
3650exit (42);
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655rm -f conftest.$ac_objext
3656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 break
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682fi
3683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684done
3685rm -f conftest*
3686if test -n "$ac_declaration"; then
3687 echo '#ifdef __cplusplus' >>confdefs.h
3688 echo $ac_declaration >>confdefs.h
3689 echo '#endif' >>confdefs.h
3690fi
3691
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696fi
3697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698ac_ext=c
3699ac_cpp='$CPP $CPPFLAGS'
3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3703
18f6b6ee
PB
3704ac_ext=cc
3705ac_cpp='$CXXCPP $CPPFLAGS'
3706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3709if test -n "$ac_tool_prefix"; then
3710 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3711 do
3712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3713set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3714echo "$as_me:$LINENO: checking for $ac_word" >&5
3715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716if test "${ac_cv_prog_CXX+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719 if test -n "$CXX"; then
3720 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733done
3734done
512b7dfb 3735
18f6b6ee
PB
3736fi
3737fi
3738CXX=$ac_cv_prog_CXX
3739if test -n "$CXX"; then
3740 echo "$as_me:$LINENO: result: $CXX" >&5
3741echo "${ECHO_T}$CXX" >&6
3742else
3743 echo "$as_me:$LINENO: result: no" >&5
3744echo "${ECHO_T}no" >&6
3745fi
3746
3747 test -n "$CXX" && break
3748 done
3749fi
3750if test -z "$CXX"; then
3751 ac_ct_CXX=$CXX
3752 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3753do
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755set dummy $ac_prog; ac_word=$2
3756echo "$as_me:$LINENO: checking for $ac_word" >&5
3757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761 if test -n "$ac_ct_CXX"; then
3762 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_ac_ct_CXX="$ac_prog"
3772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
512b7dfb 3774 fi
18f6b6ee
PB
3775done
3776done
512b7dfb 3777
18f6b6ee
PB
3778fi
3779fi
3780ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3781if test -n "$ac_ct_CXX"; then
3782 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3783echo "${ECHO_T}$ac_ct_CXX" >&6
3784else
3785 echo "$as_me:$LINENO: result: no" >&5
3786echo "${ECHO_T}no" >&6
3787fi
3788
3789 test -n "$ac_ct_CXX" && break
3790done
3791test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3792
3793 CXX=$ac_ct_CXX
3794fi
3795
3796
3797# Provide some information about the compiler.
3798echo "$as_me:$LINENO:" \
3799 "checking for C++ compiler version" >&5
3800ac_compiler=`set X $ac_compile; echo $2`
3801{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3802 (eval $ac_compiler --version </dev/null >&5) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }
3806{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3807 (eval $ac_compiler -v </dev/null >&5) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }
3811{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3812 (eval $ac_compiler -V </dev/null >&5) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }
3816
3817echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3818echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3819if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
3822 cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h. */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h. */
3828
3829int
3830main ()
3831{
3832#ifndef __GNUC__
3833 choke me
3834#endif
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840rm -f conftest.$ac_objext
3841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_cxx_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_compiler_gnu=yes
3863else
3864 echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867ac_compiler_gnu=no
3868fi
3869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3870ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3871
3872fi
3873echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3874echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3875GXX=`test $ac_compiler_gnu = yes && echo yes`
3876ac_test_CXXFLAGS=${CXXFLAGS+set}
3877ac_save_CXXFLAGS=$CXXFLAGS
3878CXXFLAGS="-g"
3879echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3880echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3881if test "${ac_cv_prog_cxx_g+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext
3900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3901 (eval $ac_compile) 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
3908 { ac_try='test -z "$ac_cxx_werror_flag"
3909 || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest.$ac_objext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 ac_cv_prog_cxx_g=yes
3922else
3923 echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
3926ac_cv_prog_cxx_g=no
3927fi
3928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3929fi
3930echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3931echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3932if test "$ac_test_CXXFLAGS" = set; then
3933 CXXFLAGS=$ac_save_CXXFLAGS
3934elif test $ac_cv_prog_cxx_g = yes; then
3935 if test "$GXX" = yes; then
3936 CXXFLAGS="-g -O2"
3937 else
3938 CXXFLAGS="-g"
3939 fi
3940else
3941 if test "$GXX" = yes; then
3942 CXXFLAGS="-O2"
3943 else
3944 CXXFLAGS=
3945 fi
3946fi
3947for ac_declaration in \
3948 '' \
3949 'extern "C" void std::exit (int) throw (); using std::exit;' \
3950 'extern "C" void std::exit (int); using std::exit;' \
3951 'extern "C" void exit (int) throw ();' \
3952 'extern "C" void exit (int);' \
3953 'void exit (int);'
3954do
3955 cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h. */
3961$ac_declaration
3962#include <stdlib.h>
3963int
3964main ()
3965{
3966exit (42);
3967 ;
3968 return 0;
3969}
3970_ACEOF
3971rm -f conftest.$ac_objext
3972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
3974 ac_status=$?
3975 grep -v '^ *+' conftest.er1 >conftest.err
3976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_cxx_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 :
3994else
3995 echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998continue
3999fi
4000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
4007$ac_declaration
4008int
4009main ()
4010{
4011exit (42);
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_cxx_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 break
4039else
4040 echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043fi
4044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045done
4046rm -f conftest*
4047if test -n "$ac_declaration"; then
4048 echo '#ifdef __cplusplus' >>confdefs.h
4049 echo $ac_declaration >>confdefs.h
4050 echo '#endif' >>confdefs.h
4051fi
4052
4053ac_ext=c
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
4059
4060# We must set the default linker to the linker used by gcc for the correct
4061# operation of libtool. If LD is not defined and we are using gcc, try to
4062# set the LD default to the ld used by gcc.
4063if test -z "$LD"; then
4064 if test "$GCC" = yes; then
4065 case $build in
4066 *-*-mingw*)
4067 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4068 *)
4069 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4070 esac
4071 case $gcc_prog_ld in
4072 # Accept absolute paths.
4073 [\\/]* | [A-Za-z]:[\\/]*)
4074 LD="$gcc_prog_ld" ;;
4075 esac
4076 fi
512b7dfb
PB
4077fi
4078
4079
4080
4081
c6b750e1 4082if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4083 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4084set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4085echo "$as_me:$LINENO: checking for $ac_word" >&5
4086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4087if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4088 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4089else
512b7dfb
PB
4090 if test -n "$GNATBIND"; then
4091 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4092else
c6b750e1
DJ
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4100 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104done
4105done
4106
9e07f89d
NN
4107fi
4108fi
512b7dfb
PB
4109GNATBIND=$ac_cv_prog_GNATBIND
4110if test -n "$GNATBIND"; then
4111 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4112echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4113else
c6b750e1
DJ
4114 echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6
9e07f89d
NN
4116fi
4117
c6b750e1 4118fi
512b7dfb
PB
4119if test -z "$ac_cv_prog_GNATBIND"; then
4120 ac_ct_GNATBIND=$GNATBIND
4121 # Extract the first word of "gnatbind", so it can be a program name with args.
4122set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4123echo "$as_me:$LINENO: checking for $ac_word" >&5
4124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4125if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4126 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4127else
512b7dfb
PB
4128 if test -n "$ac_ct_GNATBIND"; then
4129 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4130else
c6b750e1
DJ
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4138 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4141 fi
4142done
4143done
4144
512b7dfb 4145 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4146fi
4147fi
512b7dfb
PB
4148ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4149if test -n "$ac_ct_GNATBIND"; then
4150 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4151echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4152else
c6b750e1
DJ
4153 echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
9e07f89d
NN
4155fi
4156
512b7dfb 4157 GNATBIND=$ac_ct_GNATBIND
24ff9987 4158else
512b7dfb 4159 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4160fi
4161
7df2cd5d 4162if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4163 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4164set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4167if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
512b7dfb
PB
4170 if test -n "$GNATMAKE"; then
4171 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4180 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184done
4185done
4186
4187fi
4188fi
512b7dfb
PB
4189GNATMAKE=$ac_cv_prog_GNATMAKE
4190if test -n "$GNATMAKE"; then
4191 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4192echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4193else
4194 echo "$as_me:$LINENO: result: no" >&5
4195echo "${ECHO_T}no" >&6
4196fi
4197
4198fi
512b7dfb
PB
4199if test -z "$ac_cv_prog_GNATMAKE"; then
4200 ac_ct_GNATMAKE=$GNATMAKE
4201 # Extract the first word of "gnatmake", so it can be a program name with args.
4202set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4203echo "$as_me:$LINENO: checking for $ac_word" >&5
4204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4205if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
512b7dfb
PB
4208 if test -n "$ac_ct_GNATMAKE"; then
4209 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4210else
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4218 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222done
4223done
4224
512b7dfb 4225 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4226fi
4227fi
512b7dfb
PB
4228ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4229if test -n "$ac_ct_GNATMAKE"; then
4230 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4231echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4232else
4233 echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
4235fi
4236
512b7dfb 4237 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4238else
512b7dfb 4239 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4240fi
4241
c6b750e1
DJ
4242echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4243echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4244if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4246else
4247 cat >conftest.adb <<EOF
4248procedure conftest is begin null; end conftest;
4249EOF
4250acx_cv_cc_gcc_supports_ada=no
4251# There is a bug in old released versions of GCC which causes the
4252# driver to exit successfully when the appropriate language module
4253# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4254# Therefore we must check for the error message as well as an
4255# unsuccessful exit.
b8908782
DD
4256# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4257# given a .adb file, but produce no object file. So we must check
4258# if an object file was really produced to guard against this.
9e07f89d 4259errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4260if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4261 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4262fi
4263rm -f conftest.*
4264fi
c6b750e1
DJ
4265echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4266echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4267
512b7dfb 4268if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4269 have_gnat=yes
4270else
4271 have_gnat=no
4272fi
4273
c6b750e1
DJ
4274echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4275echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4276if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4278else
4279 echo abfoo >t1
4280 echo cdfoo >t2
4281 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4282 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4283 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4284 :
4285 else
4286 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4287 fi
4288 fi
b8908782
DD
4289 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4290 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4291 :
b8908782
DD
4292 else
4293 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4294 fi
4295 fi
4296 rm t1 t2
4297
4298fi
c6b750e1
DJ
4299echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4300echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4301do_compare="$gcc_cv_prog_cmp_skip"
4302
4303
9e07f89d 4304
11b04d1f 4305# Check for GMP and MPFR
4b900473 4306gmplibs="-lmpfr -lgmp"
4b1cb4fe 4307gmpinc=
4b900473
PB
4308have_gmp=no
4309
11b04d1f
DD
4310# Specify a location for mpfr
4311# check for this first so it ends up on the link line before gmp.
c6b750e1 4312
11b04d1f
DD
4313# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4314if test "${with_mpfr_dir+set}" = set; then
4315 withval="$with_mpfr_dir"
c6b750e1
DJ
4316 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4317Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4318echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4319Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4320 { (exit 1); exit 1; }; }
4321fi;
11b04d1f
DD
4322
4323
11b04d1f
DD
4324# Check whether --with-mpfr or --without-mpfr was given.
4325if test "${with_mpfr+set}" = set; then
4326 withval="$with_mpfr"
c6b750e1
DJ
4327
4328fi;
11b04d1f 4329
8a0d8a5c
PB
4330# Check whether --with-mpfr_include or --without-mpfr_include was given.
4331if test "${with_mpfr_include+set}" = set; then
4332 withval="$with_mpfr_include"
c6b750e1
DJ
4333
4334fi;
8a0d8a5c
PB
4335
4336# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4337if test "${with_mpfr_lib+set}" = set; then
4338 withval="$with_mpfr_lib"
8a0d8a5c 4339
c6b750e1 4340fi;
11b04d1f
DD
4341
4342if test "x$with_mpfr" != x; then
4343 gmplibs="-L$with_mpfr/lib $gmplibs"
4344 gmpinc="-I$with_mpfr/include"
4345fi
8a0d8a5c
PB
4346if test "x$with_mpfr_include" != x; then
4347 gmpinc="-I$with_mpfr_include"
4348fi
4349if test "x$with_mpfr_lib" != x; then
4350 gmplibs="-L$with_mpfr_lib $gmplibs"
4351fi
4b900473
PB
4352if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4353 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4354 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4355 # Do not test the mpfr version. Assume that it is sufficient, since
4356 # it is in the source tree, and the library has not been built yet
4357 # but it would be included on the link line in the version check below
4358 # hence making the test fail.
4359 have_gmp=yes
4360fi
11b04d1f 4361
4b1cb4fe 4362# Specify a location for gmp
c6b750e1 4363
4b1cb4fe
DD
4364# Check whether --with-gmp-dir or --without-gmp-dir was given.
4365if test "${with_gmp_dir+set}" = set; then
4366 withval="$with_gmp_dir"
c6b750e1
DJ
4367 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4368Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4369echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4370Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4371 { (exit 1); exit 1; }; }
4372fi;
4b1cb4fe
DD
4373
4374
4b1cb4fe
DD
4375# Check whether --with-gmp or --without-gmp was given.
4376if test "${with_gmp+set}" = set; then
4377 withval="$with_gmp"
c6b750e1
DJ
4378
4379fi;
4b1cb4fe 4380
8a0d8a5c
PB
4381# Check whether --with-gmp_include or --without-gmp_include was given.
4382if test "${with_gmp_include+set}" = set; then
4383 withval="$with_gmp_include"
c6b750e1
DJ
4384
4385fi;
8a0d8a5c
PB
4386
4387# Check whether --with-gmp_lib or --without-gmp_lib was given.
4388if test "${with_gmp_lib+set}" = set; then
4389 withval="$with_gmp_lib"
8a0d8a5c 4390
c6b750e1 4391fi;
8a0d8a5c 4392
4b1cb4fe 4393
11b04d1f
DD
4394if test "x$with_gmp" != x; then
4395 gmplibs="-L$with_gmp/lib $gmplibs"
4396 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4397fi
8a0d8a5c
PB
4398if test "x$with_gmp_include" != x; then
4399 gmpinc="-I$with_gmp_include $gmpinc"
4400fi
4401if test "x$with_gmp_lib" != x; then
4402 gmplibs="-L$with_gmp_lib $gmplibs"
4403fi
4b900473
PB
4404if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4405 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4406 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4407 # Do not test the gmp version. Assume that it is sufficient, since
4408 # it is in the source tree, and the library has not been built yet
4409 # but it would be included on the link line in the version check below
4410 # hence making the test fail.
4411 have_gmp=yes
4412fi
4b1cb4fe 4413
ceb92e78 4414if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4415 have_gmp=yes
4416 saved_CFLAGS="$CFLAGS"
4417 CFLAGS="$CFLAGS $gmpinc"
4418 # Check GMP actually works
c6b750e1
DJ
4419 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4420echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4421
4422cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
4b1cb4fe 4428#include "gmp.h"
c6b750e1
DJ
4429int
4430main ()
4431{
4b1cb4fe 4432
4b900473
PB
4433 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4434 choke me
4435 #endif
c6b750e1
DJ
4436
4437 ;
4438 return 0;
4439}
4440_ACEOF
4441rm -f conftest.$ac_objext
4442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 echo "$as_me:$LINENO: result: yes" >&5
4464echo "${ECHO_T}yes" >&6
4465else
4466 echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469echo "$as_me:$LINENO: result: no" >&5
4470echo "${ECHO_T}no" >&6; have_gmp=no
4471fi
4472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4473
4b900473
PB
4474 if test x"$have_gmp" = xyes; then
4475 saved_LIBS="$LIBS"
4476 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4477 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4478echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
9b134994 4485#include <gmp.h>
4b900473 4486 #include <mpfr.h>
c6b750e1
DJ
4487int
4488main ()
4489{
9b134994 4490
4b900473
PB
4491 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4492 choke me
4493 #endif
a3ca38d2
DD
4494 mpfr_t n;
4495 mpfr_t x;
4b900473 4496 int t;
a3ca38d2
DD
4497 mpfr_init (n);
4498 mpfr_init (x);
4b900473
PB
4499 mpfr_atan2 (n, n, x, GMP_RNDN);
4500 mpfr_erfc (n, x, GMP_RNDN);
4501 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4502
4503 ;
4504 return 0;
4505}
4506_ACEOF
4507rm -f conftest.$ac_objext conftest$ac_exeext
4508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest$ac_exeext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h. */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h. */
4b1cb4fe 4535#include <gmp.h>
4b900473 4536 #include <mpfr.h>
c6b750e1
DJ
4537int
4538main ()
4539{
9dbaa842 4540
4b900473
PB
4541 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4542 choke me
4543 #endif
4544 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4545
4546 ;
4547 return 0;
4548}
4549_ACEOF
4550rm -f conftest.$ac_objext conftest$ac_exeext
4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try='test -z "$ac_c_werror_flag"
4560 || test ! -s conftest.err'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest$ac_exeext'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 echo "$as_me:$LINENO: result: yes" >&5
4573echo "${ECHO_T}yes" >&6
4574else
4575 echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4579echo "${ECHO_T}buggy but acceptable" >&6
4580fi
4581rm -f conftest.err conftest.$ac_objext \
4582 conftest$ac_exeext conftest.$ac_ext
4583else
4584 echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587echo "$as_me:$LINENO: result: no" >&5
4588echo "${ECHO_T}no" >&6; have_gmp=no
4589fi
4590rm -f conftest.err conftest.$ac_objext \
4591 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4592 LIBS="$saved_LIBS"
4593 fi
4594 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4595
4b900473 4596 if test x$have_gmp != xyes; then
c6b750e1
DJ
4597 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4598Try the --with-gmp and/or --with-mpfr options to specify their locations.
4599Copies of these libraries' source code can be found at their respective
4600hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4601See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4602If you obtained GMP and/or MPFR from a vendor distribution package, make
4603sure that you have installed both the libraries and the header files.
4604They may be located in separate packages." >&5
4605echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4606Try the --with-gmp and/or --with-mpfr options to specify their locations.
4607Copies of these libraries' source code can be found at their respective
4608hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4609See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4610If you obtained GMP and/or MPFR from a vendor distribution package, make
4611sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4612They may be located in separate packages." >&2;}
4613 { (exit 1); exit 1; }; }
4b900473 4614 fi
9dbaa842
DD
4615fi
4616
11b04d1f 4617# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4618
4619
4620
947f426e 4621# By default, C is the only stage 1 language.
9b134994 4622stage1_languages=,c,
1d39f329 4623
9e07f89d
NN
4624# Figure out what language subdirectories are present.
4625# Look if the user specified --enable-languages="..."; if not, use
4626# the environment variable $LANGUAGES if defined. $LANGUAGES might
4627# go away some day.
4628# NB: embedded tabs in this IF block -- do not untabify
4629if test -d ${srcdir}/gcc; then
4630 if test x"${enable_languages+set}" != xset; then
4631 if test x"${LANGUAGES+set}" = xset; then
4632 enable_languages="${LANGUAGES}"
4633 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4634 else
4635 enable_languages=all
4636 fi
4637 else
4638 if test x"${enable_languages}" = x ||
4639 test x"${enable_languages}" = xyes;
4640 then
4641 echo configure.in: --enable-languages needs at least one language argument 1>&2
4642 exit 1
4643 fi
4644 fi
4645 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4646
096f7d00
DE
4647 # 'f95' is the old name for the 'fortran' language. We issue a warning
4648 # and make the substitution.
4649 case ,${enable_languages}, in
4650 *,f95,*)
4651 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4652 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4653 ;;
4654 esac
4655
9e07f89d
NN
4656 # First scan to see if an enabled language requires some other language.
4657 # We assume that a given config-lang.in will list all the language
4658 # front ends it requires, even if some are required indirectly.
4659 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4660 case ${lang_frag} in
4661 ..) ;;
4662 # The odd quoting in the next line works around
4663 # an apparent bug in bash 1.12 on linux.
4664 ${srcdir}/gcc/[*]/config-lang.in) ;;
4665 *)
4666 # From the config-lang.in, get $language, $lang_requires
4667 language=
4668 lang_requires=
4669 . ${lang_frag}
4670 for other in ${lang_requires} ; do
4671 case ,${enable_languages}, in
4672 *,$other,*) ;;
4673 *,all,*) ;;
4674 *,$language,*)
4675 echo " \`$other' language required by \`$language'; enabling" 1>&2
4676 enable_languages="${enable_languages},${other}"
4677 ;;
4678 esac
4679 done
4680 ;;
4681 esac
4682 done
4683
9b134994 4684 new_enable_languages=,c,
9e07f89d 4685 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4686 potential_languages=,c,
9e07f89d
NN
4687
4688 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4689 case ${lang_frag} in
4690 ..) ;;
4691 # The odd quoting in the next line works around
4692 # an apparent bug in bash 1.12 on linux.
4693 ${srcdir}/gcc/[*]/config-lang.in) ;;
4694 *)
c6b750e1 4695 # From the config-lang.in, get $language, $target_libs,
1d39f329 4696 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4697 language=
4698 target_libs=
4699 lang_dirs=
64ce424c 4700 subdir_requires=
9b134994
PB
4701 boot_language=no
4702 build_by_default=yes
9e07f89d 4703 . ${lang_frag}
9b134994
PB
4704 if test x${language} = x; then
4705 echo "${lang_frag} doesn't set \$language." 1>&2
4706 exit 1
4707 fi
4708
4709 case ,${enable_languages}, in
4710 *,${language},*)
9e07f89d
NN
4711 # Language was explicitly selected; include it.
4712 add_this_lang=yes
4713 ;;
9b134994
PB
4714 *,all,*)
4715 # 'all' was selected, select it if it is a default language
4716 add_this_lang=${build_by_default}
9e07f89d
NN
4717 ;;
4718 *)
4719 add_this_lang=no
4720 ;;
4721 esac
4b1cb4fe 4722
64ce424c 4723 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4724 for i in $subdir_requires; do
3d3adb43 4725 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4726 case ,${enable_languages}, in
4727 *,${language},*)
4728 # Specifically requested language; tell them.
c6b750e1
DJ
4729 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4730echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4731 { (exit 1); exit 1; }; }
64ce424c
PB
4732 ;;
4733 *)
4734 # Silently disable.
9b134994 4735 add_this_lang=unsupported
64ce424c
PB
4736 ;;
4737 esac
4738 done
4739
9b134994
PB
4740 # Disable Ada if no preexisting GNAT is available.
4741 case ,${enable_languages},:${language}:${have_gnat} in
4742 *,${language},*:ada:no)
4743 # Specifically requested language; tell them.
c6b750e1
DJ
4744 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4745echo "$as_me: error: GNAT is required to build $language" >&2;}
4746 { (exit 1); exit 1; }; }
9b134994
PB
4747 ;;
4748 *:ada:no)
4749 # Silently disable.
4750 add_this_lang=unsupported
4751 ;;
4752 esac
4753
59f7ec45
HPN
4754 # Disable a language that is unsupported by the target.
4755 case " $unsupported_languages " in
4756 *" $language "*)
9b134994 4757 add_this_lang=unsupported
59f7ec45
HPN
4758 ;;
4759 esac
4760
4b1cb4fe 4761 case $add_this_lang in
9b134994 4762 unsupported)
9e07f89d 4763 # Remove language-dependent dirs.
1d39f329
NN
4764 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4765 ;;
9b134994
PB
4766 no)
4767 # Remove language-dependent dirs; still show language as supported.
4768 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4769 potential_languages="${potential_languages}${language},"
4770 ;;
4771 yes)
4772 new_enable_languages="${new_enable_languages}${language},"
4773 potential_languages="${potential_languages}${language},"
1d39f329
NN
4774 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4775 case ${boot_language} in
4776 yes)
4fa63067 4777 # Add to (comma-separated) list of stage 1 languages.
9b134994 4778 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4779 ;;
4780 esac
4781 ;;
9e07f89d
NN
4782 esac
4783 ;;
4784 esac
4785 done
4786
9b134994
PB
4787 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4788if test "${enable_stage1_languages+set}" = set; then
4789 enableval="$enable_stage1_languages"
4790 case ,${enable_stage1_languages}, in
4791 ,no,|,,)
4792 # Set it to something that will have no effect in the loop below
4793 enable_stage1_languages=c ;;
4794 ,yes,)
4795 enable_stage1_languages=`echo $new_enable_languages | \
4796 sed -e "s/^,//" -e "s/,$//" ` ;;
4797 *,all,*)
4798 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4799 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4800 esac
4801
4802 # Add "good" languages from enable_stage1_languages to stage1_languages,
4803 # while "bad" languages go in missing_languages. Leave no duplicates.
4804 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4805 case $potential_languages in
4806 *,$i,*)
4807 case $stage1_languages in
4808 *,$i,*) ;;
4809 *) stage1_languages="$stage1_languages$i," ;;
4810 esac ;;
4811 *)
4812 case $missing_languages in
4813 *,$i,*) ;;
4814 *) missing_languages="$missing_languages$i," ;;
4815 esac ;;
4816 esac
4817 done
c6b750e1 4818fi;
9b134994
PB
4819
4820 # Remove leading/trailing commas that were added for simplicity
4821 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4822 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4823 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4824 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4825
9e07f89d 4826 if test "x$missing_languages" != x; then
c6b750e1 4827 { { echo "$as_me:$LINENO: error:
27258dd4 4828The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4829Supported languages are: ${potential_languages}" >&5
4830echo "$as_me: error:
4831The following requested languages could not be built: ${missing_languages}
4832Supported languages are: ${potential_languages}" >&2;}
4833 { (exit 1); exit 1; }; }
9e07f89d 4834 fi
9e07f89d
NN
4835 if test "x$new_enable_languages" != "x$enable_languages"; then
4836 echo The following languages will be built: ${new_enable_languages}
9b134994 4837 enable_languages="$new_enable_languages"
9e07f89d 4838 fi
9b134994 4839
c6b750e1 4840
81ec575a 4841 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4842fi
4843
a6df5a19
PB
4844# Handle --disable-<component> generically.
4845for dir in $configdirs $build_configdirs $target_configdirs ; do
4846 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4847 if eval test x\${enable_${dirname}} "=" xno ; then
4848 noconfigdirs="$noconfigdirs $dir"
4849 fi
4850done
4851
4f0ef2d8
CD
4852# Check for Boehm's garbage collector
4853# Check whether --enable-objc-gc or --disable-objc-gc was given.
4854if test "${enable_objc_gc+set}" = set; then
4855 enableval="$enable_objc_gc"
4856 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4857 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4858 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4859echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4860 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4861 ;;
4862esac
c6b750e1 4863fi;
4f0ef2d8
CD
4864
4865# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4866case ,${enable_languages},:${enable_objc_gc} in
4867 *,objc,*:yes)
4f0ef2d8
CD
4868 # Keep target-boehm-gc if requested for Objective-C.
4869 ;;
4f0ef2d8 4870 *)
d42c4017
DA
4871 # Otherwise remove target-boehm-gc depending on target-libjava.
4872 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4873 noconfigdirs="$noconfigdirs target-boehm-gc"
4874 fi
4f0ef2d8
CD
4875 ;;
4876esac
4877
caeba88f
AL
4878# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4879# $build_configdirs and $target_configdirs.
9e07f89d
NN
4880# If we have the source for $noconfigdirs entries, add them to $notsupp.
4881
4882notsupp=""
4883for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4884 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4885 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4886 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4887 if test -r $srcdir/$dirname/configure ; then
4888 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4889 true
4890 else
4891 notsupp="$notsupp $dir"
4892 fi
4893 fi
4894 fi
caeba88f
AL
4895 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4896 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4897 if test -r $srcdir/$dirname/configure ; then
4898 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4899 true
4900 else
4901 notsupp="$notsupp $dir"
4902 fi
4903 fi
4904 fi
9e07f89d
NN
4905 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4906 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4907 if test -r $srcdir/$dirname/configure ; then
4908 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4909 true
4910 else
4911 notsupp="$notsupp $dir"
4912 fi
4913 fi
4914 fi
4915done
4916
4917# Sometimes the tools are distributed with libiberty but with no other
4918# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4919# Don't let libgcc imply libiberty either.
9e07f89d 4920if test -n "${target_configdirs}" ; then
f86e35b8 4921 libgcc=
9e07f89d
NN
4922 others=
4923 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4924 if test "$i" = "libgcc"; then
4925 libgcc=target-libgcc
4926 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4927 if test -r $srcdir/$i/configure ; then
4928 others=yes;
4929 break;
4930 fi
4931 fi
4932 done
4933 if test -z "${others}" ; then
f86e35b8 4934 target_configdirs=$libgcc
9e07f89d
NN
4935 fi
4936fi
4937
4938# Quietly strip out all directories which aren't configurable in this tree.
4939# This relies on all configurable subdirectories being autoconfiscated, which
4940# is now the case.
6a9cf61e
PB
4941build_configdirs_all="$build_configdirs"
4942build_configdirs=
4943for i in ${build_configdirs_all} ; do
c6b750e1 4944 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4945 if test -f ${srcdir}/$j/configure ; then
4946 build_configdirs="${build_configdirs} $i"
4947 fi
4948done
4949
9e07f89d
NN
4950configdirs_all="$configdirs"
4951configdirs=
4952for i in ${configdirs_all} ; do
4953 if test -f ${srcdir}/$i/configure ; then
4954 configdirs="${configdirs} $i"
4955 fi
4956done
6a9cf61e 4957
9e07f89d
NN
4958target_configdirs_all="$target_configdirs"
4959target_configdirs=
4960for i in ${target_configdirs_all} ; do
c6b750e1 4961 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4962 if test -f ${srcdir}/$j/configure ; then
4963 target_configdirs="${target_configdirs} $i"
4964 fi
4965done
4966
4967# Produce a warning message for the subdirs we can't configure.
4968# This isn't especially interesting in the Cygnus tree, but in the individual
4969# FSF releases, it's important to let people know when their machine isn't
4970# supported by the one or two programs in a package.
4971
4972if test -n "${notsupp}" && test -z "${norecursion}" ; then
4973 # If $appdirs is non-empty, at least one of those directories must still
4974 # be configured, or we error out. (E.g., if the gas release supports a
4975 # specified target in some subdirs but not the gas subdir, we shouldn't
4976 # pretend that all is well.)
4977 if test -n "$appdirs" ; then
4978 for dir in $appdirs ; do
4979 if test -r $dir/Makefile.in ; then
4980 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4981 appdirs=""
4982 break
4983 fi
6a9cf61e 4984 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4985 appdirs=""
4986 break
4987 fi
4988 fi
4989 done
4990 if test -n "$appdirs" ; then
4991 echo "*** This configuration is not supported by this package." 1>&2
4992 exit 1
4993 fi
4994 fi
4995 # Okay, some application will build, or we don't care to check. Still
4996 # notify of subdirs not getting built.
4997 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4998 echo " ${notsupp}" 1>&2
4999 echo " (Any other directories should still work fine.)" 1>&2
5000fi
5001
5002case "$host" in
5003 *msdosdjgpp*)
5004 enable_gdbtk=no ;;
5005esac
5006
18f6b6ee
PB
5007# To find our prefix, in gcc_cv_tool_prefix.
5008
5009# The user is always right.
5010if test "${PATH_SEPARATOR+set}" != set; then
5011 echo "#! /bin/sh" >conf$$.sh
5012 echo "exit 0" >>conf$$.sh
5013 chmod +x conf$$.sh
5014 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5015 PATH_SEPARATOR=';'
5016 else
5017 PATH_SEPARATOR=:
5018 fi
5019 rm -f conf$$.sh
5020fi
5021
5022
5023
5024if test "x$exec_prefix" = xNONE; then
5025 if test "x$prefix" = xNONE; then
5026 gcc_cv_tool_prefix=$ac_default_prefix
5027 else
5028 gcc_cv_tool_prefix=$prefix
5029 fi
5030else
5031 gcc_cv_tool_prefix=$exec_prefix
5032fi
5033
5034# If there is no compiler in the tree, use the PATH only. In any
5035# case, if there is no compiler in the tree nobody should use
5036# AS_FOR_TARGET and LD_FOR_TARGET.
5037if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5038 gcc_version=`cat $srcdir/gcc/BASE-VER`
5039 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5040 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5041 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5042 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5043 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5044 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5045else
5046 gcc_cv_tool_dirs=
5047fi
5048
5049if test x$build = x$target && test -n "$md_exec_prefix"; then
5050 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5051fi
5052
5053
5054
9e07f89d
NN
5055copy_dirs=
5056
c6b750e1 5057
a19b6204
MM
5058# Check whether --with-build-sysroot or --without-build-sysroot was given.
5059if test "${with_build_sysroot+set}" = set; then
5060 withval="$with_build_sysroot"
5061 if test x"$withval" != x ; then
5062 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5063 fi
5064else
5065 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5066fi;
a19b6204
MM
5067
5068
9e07f89d
NN
5069# Handle --with-headers=XXX. If the value is not "yes", the contents of
5070# the named directory are copied to $(tooldir)/sys-include.
5071if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5072 if test x${is_cross_compiler} = xno ; then
5073 echo 1>&2 '***' --with-headers is only supported when cross compiling
5074 exit 1
5075 fi
5076 if test x"${with_headers}" != xyes ; then
18f6b6ee 5077 x=${gcc_cv_tool_prefix}
c6b750e1 5078 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5079 fi
5080fi
5081
5082# Handle --with-libs=XXX. If the value is not "yes", the contents of
5083# the name directories are copied to $(tooldir)/lib. Multiple directories
5084# are permitted.
5085if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5086 if test x${is_cross_compiler} = xno ; then
5087 echo 1>&2 '***' --with-libs is only supported when cross compiling
5088 exit 1
5089 fi
5090 if test x"${with_libs}" != xyes ; then
5091 # Copy the libraries in reverse order, so that files in the first named
5092 # library override files in subsequent libraries.
18f6b6ee 5093 x=${gcc_cv_tool_prefix}
9e07f89d 5094 for l in ${with_libs}; do
c6b750e1 5095 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5096 done
5097 fi
5098fi
5099
2429c060
PB
5100# Set with_gnu_as and with_gnu_ld as appropriate.
5101#
5102# This is done by determining whether or not the appropriate directory
5103# is available, and by checking whether or not specific configurations
5104# have requested that this magic not happen.
c6b750e1
DJ
5105#
5106# The command line options always override the explicit settings in
2429c060
PB
5107# configure.in, and the settings in configure.in override this magic.
5108#
c6b750e1 5109# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5110# want to do that, then you should use the --without-gnu-as and
5111# --without-gnu-ld options for the configure script.
5112
5113if test x${use_gnu_as} = x &&
5114 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5115 with_gnu_as=yes
5116 extra_host_args="$extra_host_args --with-gnu-as"
5117fi
5118
5119if test x${use_gnu_ld} = x &&
5120 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5121 with_gnu_ld=yes
5122 extra_host_args="$extra_host_args --with-gnu-ld"
5123fi
5124
5125# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5126# can detect this case.
5127
5128if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5129 with_newlib=yes
5130 extra_host_args="$extra_host_args --with-newlib"
5131fi
5132
9e07f89d
NN
5133# Handle ${copy_dirs}
5134set fnord ${copy_dirs}
5135shift
5136while test $# != 0 ; do
5137 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5138 :
5139 else
5140 echo Copying $1 to $2
5141
5142 # Use the install script to create the directory and all required
5143 # parent directories.
5144 if test -d $2 ; then
5145 :
5146 else
5147 echo >config.temp
5148 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5149 fi
5150
5151 # Copy the directory, assuming we have tar.
5152 # FIXME: Should we use B in the second tar? Not all systems support it.
5153 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5154
5155 # It is the responsibility of the user to correctly adjust all
5156 # symlinks. If somebody can figure out how to handle them correctly
5157 # here, feel free to add the code.
5158
5159 echo $1 > $2/COPIED
5160 fi
5161 shift; shift
5162done
5163
2429c060
PB
5164# Determine a target-dependent exec_prefix that the installed
5165# gcc will search in. Keep this list sorted by triplet, with
5166# the *-*-osname triplets last.
5167md_exec_prefix=
5168case "${target}" in
5169 alpha*-*-*vms*)
5170 md_exec_prefix=/gnu/lib/gcc-lib
5171 ;;
5172 i3456786-pc-msdosdjgpp*)
5173 md_exec_prefix=/dev/env/DJDIR/bin
5174 ;;
5175 i3456786-*-sco3.2v5*)
5176 if test $with_gnu_as = yes; then
5177 md_exec_prefix=/usr/gnu/bin
5178 else
5179 md_exec_prefix=/usr/ccs/bin/elf
5180 fi
5181 ;;
5182
5183 mn10300-*-* | \
5184 powerpc-*-chorusos* | \
5185 powerpc*-*-eabi* | \
5186 powerpc*-*-sysv* | \
5187 powerpc*-*-kaos* | \
5188 s390x-ibm-tpf*)
5189 md_exec_prefix=/usr/ccs/bin
5190 ;;
5191 sparc64-*-elf*)
5192 ;;
5193 v850*-*-*)
5194 md_exec_prefix=/usr/ccs/bin
5195 ;;
5196 xtensa-*-elf*)
5197 ;;
5198
5199 *-*-beos* | \
5200 *-*-elf* | \
5201 *-*-hpux* | \
5202 *-*-netware* | \
5203 *-*-nto-qnx* | \
5204 *-*-rtems* | \
5205 *-*-solaris2* | \
5206 *-*-sysv45* | \
5207 *-*-vxworks* | \
5208 *-wrs-windiss)
5209 md_exec_prefix=/usr/ccs/bin
5210 ;;
5211esac
5212
a0da8069
NN
5213extra_arflags_for_target=
5214extra_nmflags_for_target=
5215extra_ranlibflags_for_target=
5216target_makefile_frag=/dev/null
5217case "${target}" in
4e206d7e
DB
5218 mep*-*-*)
5219 target_makefile_frag="config/mt-mep"
5220 ;;
77d7106f
AM
5221 spu-*-*)
5222 target_makefile_frag="config/mt-spu"
5223 ;;
2a3124ca 5224 *-*-netware*)
a0da8069
NN
5225 target_makefile_frag="config/mt-netware"
5226 ;;
3d6dfe0f
NN
5227 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5228 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5229 ;;
5230 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5231 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5232 # commands to handle both 32-bit and 64-bit objects. These flags are
5233 # harmless if we're using GNU nm or ar.
5234 extra_arflags_for_target=" -X32_64"
5235 extra_nmflags_for_target=" -B -X32_64"
5236 ;;
5237 *-*-darwin*)
5238 # ranlib from Darwin requires the -c flag to look at common symbols.
5239 extra_ranlibflags_for_target=" -c"
5240 ;;
5241 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5242 target_makefile_frag="config/mt-wince"
5243 ;;
5244esac
5245
5246alphaieee_frag=/dev/null
5247case $target in
5248 alpha*-*-*)
5249 # This just makes sure to use the -mieee option to build target libs.
5250 # This should probably be set individually by each library.
5251 alphaieee_frag="config/mt-alphaieee"
5252 ;;
5253esac
5254
5255# If --enable-target-optspace always use -Os instead of -O2 to build
5256# the target libraries, similarly if it is not specified, use -Os
5257# on selected platforms.
5258ospace_frag=/dev/null
5259case "${enable_target_optspace}:${target}" in
5260 yes:*)
5261 ospace_frag="config/mt-ospace"
5262 ;;
5263 :d30v-*)
5264 ospace_frag="config/mt-d30v"
5265 ;;
5266 :m32r-* | :d10v-* | :fr30-*)
5267 ospace_frag="config/mt-ospace"
5268 ;;
5269 no:* | :*)
5270 ;;
5271 *)
5272 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5273 ;;
5274esac
5275
a0da8069
NN
5276# Default to using --with-stabs for certain targets.
5277if test x${with_stabs} = x ; then
5278 case "${target}" in
e31d1ea3 5279 mips*-*-irix[56]*)
a0da8069
NN
5280 ;;
5281 mips*-*-* | alpha*-*-osf*)
5282 with_stabs=yes;
5283 extra_host_args="${extra_host_args} --with-stabs"
5284 ;;
5285 esac
5286fi
5287
5288# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5289# them automatically.
5290case "${host}" in
c6b750e1 5291 hppa*64*-*-hpux11*)
a0da8069
NN
5292 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5293 ;;
5294esac
5295
a0da8069
NN
5296# Some systems (e.g., one of the i386-aix systems the gas testers are
5297# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5298tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5299build_tooldir=${tooldir}
5300
a0da8069
NN
5301# Create a .gdbinit file which runs the one in srcdir
5302# and tells GDB to look there for source files.
5303
5304if test -r ${srcdir}/.gdbinit ; then
5305 case ${srcdir} in
5306 .) ;;
5307 *) cat > ./.gdbinit <<EOF
5308# ${NO_EDIT}
5309dir ${srcdir}
5310dir .
5311source ${srcdir}/.gdbinit
5312EOF
5313 ;;
5314 esac
5315fi
5316
a0da8069
NN
5317# Make sure that the compiler is able to generate an executable. If it
5318# can't, we are probably in trouble. We don't care whether we can run the
5319# executable--we might be using a cross compiler--we only care whether it
5320# can be created. At this point the main configure script has set CC.
5321we_are_ok=no
5322echo "int main () { return 0; }" > conftest.c
5323${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5324if test $? = 0 ; then
5325 if test -s conftest || test -s conftest.exe ; then
5326 we_are_ok=yes
5327 fi
c6b750e1 5328fi
a0da8069
NN
5329case $we_are_ok in
5330 no)
5331 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5332 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5333 rm -f conftest*
5334 exit 1
5335 ;;
5336esac
5337rm -f conftest*
5338
5339# The Solaris /usr/ucb/cc compiler does not appear to work.
5340case "${host}" in
5341 sparc-sun-solaris2*)
5342 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5343 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5344 could_use=
5345 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5346 if test -d /opt/cygnus/bin ; then
5347 if test "$could_use" = "" ; then
5348 could_use="/opt/cygnus/bin"
5349 else
5350 could_use="$could_use or /opt/cygnus/bin"
5351 fi
5352 fi
5353 if test "$could_use" = "" ; then
5354 echo "Warning: compilation may fail because you're using"
5355 echo "/usr/ucb/cc. You should change your PATH or CC "
5356 echo "variable and rerun configure."
5357 else
5358 echo "Warning: compilation may fail because you're using"
5359 echo "/usr/ucb/cc, when you should use the C compiler from"
5360 echo "$could_use. You should change your"
5361 echo "PATH or CC variable and rerun configure."
5362 fi
5363 fi
5364 ;;
5365esac
5366
a0da8069
NN
5367case "${host}" in
5368 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5369 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5370 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5371esac
5372
5373# Record target_configdirs and the configure arguments for target and
5374# build configuration in Makefile.
5375target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5376build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5377
a0da8069
NN
5378# Determine whether gdb needs tk/tcl or not.
5379# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5380# and in that case we want gdb to be built without tk. Ugh!
5381# In fact I believe gdb is the *only* package directly dependent on tk,
5382# so we should be able to put the 'maybe's in unconditionally and
5383# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5384# 100% sure that that's safe though.
c180f501 5385
675c6968 5386gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5387case "$enable_gdbtk" in
5388 no)
5389 GDB_TK="" ;;
c180f501
AC
5390 yes)
5391 GDB_TK="${gdb_tk}" ;;
a0da8069 5392 *)
c180f501
AC
5393 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5394 # distro. Eventually someone will fix this and move Insight, nee
5395 # gdbtk to a separate directory.
5396 if test -d ${srcdir}/gdb/gdbtk ; then
5397 GDB_TK="${gdb_tk}"
5398 else
5399 GDB_TK=""
5400 fi
5401 ;;
a0da8069 5402esac
907be67c
DJ
5403CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5404INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5405
6bd3dfaa 5406# Strip out unwanted targets.
dd12c3a8
NN
5407
5408# While at that, we remove Makefiles if we were started for recursive
5409# configuration, so that the top-level Makefile reconfigures them,
5410# like we used to do when configure itself was recursive.
dd12c3a8 5411
6bd3dfaa
PB
5412# Loop over modules. $extrasub must be used with care, limiting as
5413# much as possible the usage of range addresses. That's because autoconf
5414# splits the sed script to overcome limits in the number of commands,
5415# and relying on carefully-timed sed passes may turn out to be very hard
5416# to maintain later. In this particular case, you just have to be careful
5417# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5418
319cab08
PB
5419# Check whether --enable-bootstrap or --disable-bootstrap was given.
5420if test "${enable_bootstrap+set}" = set; then
5421 enableval="$enable_bootstrap"
c6b750e1 5422
319cab08 5423else
9cb3fa6f 5424 enable_bootstrap=default
c6b750e1 5425fi;
319cab08 5426
9cb3fa6f
PB
5427# Issue errors and warnings for invalid/strange bootstrap combinations.
5428case "$configdirs" in
5429 *gcc*) have_compiler=yes ;;
5430 *) have_compiler=no ;;
5431esac
5432
5433case "$have_compiler:$host:$target:$enable_bootstrap" in
5434 *:*:*:no) ;;
5435
0aed8855 5436 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5437 # and we are in a native configuration.
5438 yes:$build:$build:default)
0aed8855 5439 enable_bootstrap=yes ;;
9cb3fa6f
PB
5440
5441 *:*:*:default)
5442 enable_bootstrap=no ;;
5443
5444 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5445 yes:$build:$build:yes)
9cb3fa6f
PB
5446 ;;
5447
5448 # Other configurations, but we have a compiler. Assume the user knows
5449 # what he's doing.
80911fe1 5450 yes:*:*:yes)
c6b750e1
DJ
5451 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5452echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5453 ;;
5454
5455 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5456 no:*:*:yes)
c6b750e1
DJ
5457 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5458echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5459 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5460
5461 # Fail if wrong command line
5462 *)
c6b750e1
DJ
5463 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5464echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5465 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5466 ;;
5467esac
5468
5469# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5470case "$enable_bootstrap" in
5471 yes)
498d4a71 5472 bootstrap_suffix=bootstrap ;;
319cab08 5473 no)
498d4a71 5474 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5475esac
5476
6a9cf61e 5477for module in ${build_configdirs} ; do
498d4a71
CF
5478 if test -z "${no_recursion}" \
5479 && test -f ${build_subdir}/${module}/Makefile; then
5480 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5481 rm -f ${build_subdir}/${module}/Makefile
5482 fi
5483 extrasub="$extrasub
5484/^@if build-$module\$/d
5485/^@endif build-$module\$/d
5486/^@if build-$module-$bootstrap_suffix\$/d
5487/^@endif build-$module-$bootstrap_suffix\$/d"
5488done
5489for module in ${configdirs} ; do
80911fe1 5490 if test -z "${no_recursion}"; then
8cf39b1b 5491 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5492 if test -f ${file}; then
5493 echo 1>&2 "*** removing ${file} to force reconfigure"
5494 rm -f ${file}
5495 fi
5496 done
498d4a71
CF
5497 fi
5498 extrasub="$extrasub
5499/^@if $module\$/d
5500/^@endif $module\$/d
5501/^@if $module-$bootstrap_suffix\$/d
5502/^@endif $module-$bootstrap_suffix\$/d"
5503done
5504for module in ${target_configdirs} ; do
5505 if test -z "${no_recursion}" \
5506 && test -f ${target_subdir}/${module}/Makefile; then
5507 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5508 rm -f ${target_subdir}/${module}/Makefile
5509 fi
5510 extrasub="$extrasub
5511/^@if target-$module\$/d
5512/^@endif target-$module\$/d
5513/^@if target-$module-$bootstrap_suffix\$/d
5514/^@endif target-$module-$bootstrap_suffix\$/d"
5515done
5516
6bd3dfaa
PB
5517extrasub="$extrasub
5518/^@if /,/^@endif /d"
a0da8069
NN
5519
5520# Create the serialization dependencies. This uses a temporary file.
5521
e6bfb94a
AO
5522# Check whether --enable-serial-configure or --disable-serial-configure was given.
5523if test "${enable_serial_configure+set}" = set; then
5524 enableval="$enable_serial_configure"
e6bfb94a 5525
c6b750e1 5526fi;
e6bfb94a 5527
1047cb91
DD
5528case ${enable_serial_configure} in
5529 yes)
5530 enable_serial_build_configure=yes
5531 enable_serial_host_configure=yes
5532 enable_serial_target_configure=yes
5533 ;;
5534esac
5535
a0da8069
NN
5536# These force 'configure's to be done one at a time, to avoid problems
5537# with contention over a shared config.cache.
5538rm -f serdep.tmp
e6bfb94a 5539echo '# serdep.tmp' > serdep.tmp
a0da8069 5540olditem=
1047cb91 5541test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5542for item in ${build_configdirs} ; do
5543 case ${olditem} in
5544 "") ;;
e6bfb94a 5545 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5546 esac
5547 olditem=${item}
5548done
5549olditem=
1047cb91 5550test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5551for item in ${configdirs} ; do
5552 case ${olditem} in
5553 "") ;;
e6bfb94a 5554 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5555 esac
5556 olditem=${item}
5557done
5558olditem=
1047cb91 5559test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5560for item in ${target_configdirs} ; do
5561 case ${olditem} in
5562 "") ;;
e6bfb94a 5563 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5564 esac
5565 olditem=${item}
5566done
5567serialization_dependencies=serdep.tmp
5568
5569
e6bfb94a 5570# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5571# target, nonopt, and variable assignments. These are the ones we
5572# might not want to pass down to subconfigures. Also strip
5573# program-prefix, program-suffix, and program-transform-name, so that
5574# we can pass down a consistent program-transform-name.
5575baseargs=
5576keep_next=no
5577skip_next=no
5578eval "set -- $ac_configure_args"
18f6b6ee
PB
5579for ac_arg
5580do
c6b750e1
DJ
5581 if test X"$skip_next" = X"yes"; then
5582 skip_next=no
5583 continue
5584 fi
5585 if test X"$keep_next" = X"yes"; then
5586 case $ac_arg in
5587 *\'*)
5588 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5589 esac
5590 baseargs="$baseargs '$ac_arg'"
5591 keep_next=no
5592 continue
5593 fi
5594
5595 # Handle separated arguments. Based on the logic generated by
5596 # autoconf 2.59.
5597 case $ac_arg in
5598 *=* | --config-cache | -C | -disable-* | --disable-* \
5599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5601 | -with-* | --with-* | -without-* | --without-* | --x)
5602 separate_arg=no
5603 ;;
5604 -*)
5605 separate_arg=yes
5606 ;;
5607 *)
5608 separate_arg=no
5609 ;;
5610 esac
5611
5612 case "$ac_arg" in
5613 --no*)
5614 continue
5615 ;;
5616 --c* | \
5617 --sr* | \
5618 --ho* | \
5619 --bu* | \
5620 --t* | \
5621 --program-* | \
5622 -cache_file* | \
5623 -srcdir* | \
5624 -host* | \
5625 -build* | \
5626 -target* | \
5627 -program-prefix* | \
5628 -program-suffix* | \
5629 -program-transform-name* )
5630 skip_next=$separate_arg
5631 continue
5632 ;;
5633 -*)
5634 # An option. Add it.
5635 case $ac_arg in
5636 *\'*)
5637 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5638 esac
5639 baseargs="$baseargs '$ac_arg'"
5640 keep_next=$separate_arg
5641 ;;
5642 *)
5643 # Either a variable assignment, or a nonopt (triplet). Don't
5644 # pass it down; let the Makefile handle this.
5645 continue
5646 ;;
5647 esac
5648done
5649# Remove the initial space we just introduced and, as these will be
5650# expanded by make, quote '$'.
5651baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5652
f27d4f92
DJ
5653# Add in --program-transform-name, after --program-prefix and
5654# --program-suffix have been applied to it. Autoconf has already
5655# doubled dollar signs and backslashes in program_transform_name; we want
5656# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5657# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5658# Also, because we want to override the logic in subdir configure scripts to
5659# choose program_transform_name, replace any s,x,x, with s,y,y,.
5660sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5661${program_transform_name}
5662EOF_SED
5663gcc_transform_name=`cat conftestsed.out`
5664rm -f conftestsed.out
5665baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5666
a0da8069
NN
5667# For the build-side libraries, we just need to pretend we're native,
5668# and not use the same cache file. Multilibs are neither needed nor
5669# desired.
4b900473 5670build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5671
5672# For host modules, accept cache file option, or specification as blank.
5673case "${cache_file}" in
5674"") # empty
5675 cache_file_option="" ;;
5676/* | [A-Za-z]:[\\/]* ) # absolute path
5677 cache_file_option="--cache-file=${cache_file}" ;;
5678*) # relative path
5679 cache_file_option="--cache-file=../${cache_file}" ;;
5680esac
5681
82252c06
NN
5682# Host dirs don't like to share a cache file either, horribly enough.
5683# This seems to be due to autoconf 2.5x stupidity.
4b900473 5684host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5685
5686target_configargs=${baseargs}
5687
5688# Passing a --with-cross-host argument lets the target libraries know
5689# whether they are being built with a cross-compiler or being built
5690# native. However, it would be better to use other mechanisms to make the
5691# sorts of decisions they want to make on this basis. Please consider
5692# this option to be deprecated. FIXME.
5693if test x${is_cross_compiler} = xyes ; then
c6b750e1 5694 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5695fi
5696
5697# Default to --enable-multilib.
5698if test x${enable_multilib} = x ; then
5699 target_configargs="--enable-multilib ${target_configargs}"
5700fi
5701
5702# Pass --with-newlib if appropriate. Note that target_configdirs has
5703# changed from the earlier setting of with_newlib.
5704if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5705 target_configargs="--with-newlib ${target_configargs}"
5706fi
5707
95036d20
NN
5708# Different target subdirs use different values of certain variables
5709# (notably CXX). Worse, multilibs use *lots* of different values.
5710# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5711# it doesn't automatically accept command-line overrides of them.
5712# This means it's not safe for target subdirs to share a cache file,
5713# which is disgusting, but there you have it. Hopefully this can be
5714# fixed in future. It's still worthwhile to use a cache file for each
5715# directory. I think.
5716
ae380b45
MS
5717# Pass the appropriate --build, --host, --target and --cache-file arguments.
5718# We need to pass --target, as newer autoconf's requires consistency
5719# for target_alias and gcc doesn't manage it consistently.
4b900473 5720target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5721
a0da8069
NN
5722FLAGS_FOR_TARGET=
5723case " $target_configdirs " in
5724 *" newlib "*)
5725 case " $target_configargs " in
5726 *" --with-newlib "*)
5727 case "$target" in
5728 *-cygwin*)
564b43e5 5729 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
5730 esac
5731
5732 # If we're not building GCC, don't discard standard headers.
5733 if test -d ${srcdir}/gcc; then
5734 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5735
5736 if test "${build}" != "${host}"; then
5737 # On Canadian crosses, CC_FOR_TARGET will have already been set
5738 # by `configure', so we won't have an opportunity to add -Bgcc/
5739 # to it. This is right: we don't want to search that directory
5740 # for binaries, but we want the header files in there, so add
5741 # them explicitly.
b00612cc 5742 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5743
5744 # Someone might think of using the pre-installed headers on
5745 # Canadian crosses, in case the installed compiler is not fully
5746 # compatible with the compiler being built. In this case, it
5747 # would be better to flag an error than risking having
5748 # incompatible object files being constructed. We can't
5749 # guarantee that an error will be flagged, but let's hope the
5750 # compiler will do it, when presented with incompatible header
5751 # files.
5752 fi
5753 fi
5754
5755 case "${target}-${is_cross_compiler}" in
ec11bdc6 5756 i[3456789]86-*-linux*-no)
a0da8069
NN
5757 # Here host == target, so we don't need to build gcc,
5758 # so we don't want to discard standard headers.
5759 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5760 ;;
5761 *)
5762 # If we're building newlib, use its generic headers last, but search
5763 # for any libc-related directories first (so make it the last -B
5764 # switch).
5765 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5766 ;;
5767 esac
5768 ;;
5769 esac
5770 ;;
5771esac
45055374
CV
5772case "$target" in
5773*-mingw*)
5774 # Can't be handled as Cygwin above since Mingw does not use newlib.
5775 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' ;;
5776esac
a0da8069 5777
5fbad20a
DD
5778# Allow the user to override the flags for
5779# our build compiler if desired.
5780CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5781
a0da8069
NN
5782# On Canadian crosses, we'll be searching the right directories for
5783# the previously-installed cross compiler, so don't bother to add
5784# flags for directories within the install tree of the compiler
5785# being built; programs in there won't even run.
5786if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5787 # Search for pre-installed headers if nothing else fits.
bba45b8b 5788 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
5789fi
5790
5791if test "x${use_gnu_ld}" = x &&
5792 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5793 # Arrange for us to find uninstalled linker scripts.
b00612cc 5794 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5795fi
5796
a481dbb7
DD
5797# Search for other target-specific linker scripts and such.
5798case "${target}" in
5799 m32c-*-* )
5800 if test -d ${srcdir}/libgloss/m32c; then
5801 # This is for crt0.o
5802 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5803 # This is for r8c.ld
5804 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5805 # This is for libnosys.a
5806 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5807 fi
5808 ;;
4e206d7e
DB
5809 mep*)
5810 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5811 ;;
5812esac
5813
a0da8069 5814# Makefile fragments.
3e707e94
PB
5815for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5816do
5817 eval fragval=\$$frag
5818 if test $fragval != /dev/null; then
5819 eval $frag=${srcdir}/$fragval
5820 fi
5821done
a0da8069
NN
5822
5823
5824
5825
5826
5827# Miscellanea: directories, flags, etc.
5828
5829
5830
5831
5832
5833
5834
6a9cf61e 5835# Build module lists & subconfigure args.
a0da8069
NN
5836
5837
5838
be01d343
PB
5839# Host module lists & subconfigure args.
5840
5841
5842
5843# Target module lists & subconfigure args.
5844
5845
5846
5847# Build tools.
5848
5849
5850
5851# Generate default definitions for YACC, M4, LEX and other programs that run
5852# on the build machine. These are used if the Makefile can't locate these
5853# programs in objdir.
5854MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5855
5856for ac_prog in 'bison -y' byacc yacc
5857do
c6b750e1 5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5859set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862if test "${ac_cv_prog_YACC+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5864else
5865 if test -n "$YACC"; then
5866 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5867else
c6b750e1
DJ
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_YACC="$ac_prog"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879done
5880done
5881
be01d343
PB
5882fi
5883fi
c6b750e1 5884YACC=$ac_cv_prog_YACC
be01d343 5885if test -n "$YACC"; then
c6b750e1
DJ
5886 echo "$as_me:$LINENO: result: $YACC" >&5
5887echo "${ECHO_T}$YACC" >&6
be01d343 5888else
c6b750e1
DJ
5889 echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
be01d343
PB
5891fi
5892
c6b750e1 5893 test -n "$YACC" && break
be01d343
PB
5894done
5895test -n "$YACC" || YACC="$MISSING bison -y"
5896
5897case " $build_configdirs " in
5898 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5899 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5900esac
5901
5902for ac_prog in bison
5903do
c6b750e1 5904 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5905set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5906echo "$as_me:$LINENO: checking for $ac_word" >&5
5907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5908if test "${ac_cv_prog_BISON+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5910else
5911 if test -n "$BISON"; then
5912 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5913else
c6b750e1
DJ
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_BISON="$ac_prog"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925done
5926done
5927
be01d343
PB
5928fi
5929fi
c6b750e1 5930BISON=$ac_cv_prog_BISON
be01d343 5931if test -n "$BISON"; then
c6b750e1
DJ
5932 echo "$as_me:$LINENO: result: $BISON" >&5
5933echo "${ECHO_T}$BISON" >&6
be01d343 5934else
c6b750e1
DJ
5935 echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
be01d343
PB
5937fi
5938
c6b750e1 5939 test -n "$BISON" && break
be01d343
PB
5940done
5941test -n "$BISON" || BISON="$MISSING bison"
5942
5943case " $build_configdirs " in
5944 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5945esac
5946
5947for ac_prog in gm4 gnum4 m4
5948do
c6b750e1 5949 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5950set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5951echo "$as_me:$LINENO: checking for $ac_word" >&5
5952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953if test "${ac_cv_prog_M4+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5955else
5956 if test -n "$M4"; then
5957 ac_cv_prog_M4="$M4" # Let the user override the test.
5958else
c6b750e1
DJ
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_M4="$ac_prog"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971done
5972
be01d343
PB
5973fi
5974fi
c6b750e1 5975M4=$ac_cv_prog_M4
be01d343 5976if test -n "$M4"; then
c6b750e1
DJ
5977 echo "$as_me:$LINENO: result: $M4" >&5
5978echo "${ECHO_T}$M4" >&6
be01d343 5979else
c6b750e1
DJ
5980 echo "$as_me:$LINENO: result: no" >&5
5981echo "${ECHO_T}no" >&6
be01d343
PB
5982fi
5983
c6b750e1 5984 test -n "$M4" && break
be01d343
PB
5985done
5986test -n "$M4" || M4="$MISSING m4"
5987
5988case " $build_configdirs " in
5989 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5990esac
5991
5992for ac_prog in flex lex
5993do
c6b750e1 5994 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5995set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5996echo "$as_me:$LINENO: checking for $ac_word" >&5
5997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998if test "${ac_cv_prog_LEX+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6000else
6001 if test -n "$LEX"; then
6002 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6003else
c6b750e1
DJ
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_LEX="$ac_prog"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016done
6017
be01d343
PB
6018fi
6019fi
c6b750e1 6020LEX=$ac_cv_prog_LEX
be01d343 6021if test -n "$LEX"; then
c6b750e1
DJ
6022 echo "$as_me:$LINENO: result: $LEX" >&5
6023echo "${ECHO_T}$LEX" >&6
be01d343 6024else
c6b750e1
DJ
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
be01d343
PB
6027fi
6028
c6b750e1 6029 test -n "$LEX" && break
be01d343
PB
6030done
6031test -n "$LEX" || LEX="$MISSING flex"
6032
6033case " $build_configdirs " in
6034 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6035 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6036esac
6037
6038for ac_prog in flex
6039do
c6b750e1 6040 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6041set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6042echo "$as_me:$LINENO: checking for $ac_word" >&5
6043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6044if test "${ac_cv_prog_FLEX+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6046else
6047 if test -n "$FLEX"; then
6048 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6049else
c6b750e1
DJ
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057 ac_cv_prog_FLEX="$ac_prog"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6060 fi
6061done
6062done
6063
be01d343
PB
6064fi
6065fi
c6b750e1 6066FLEX=$ac_cv_prog_FLEX
be01d343 6067if test -n "$FLEX"; then
c6b750e1
DJ
6068 echo "$as_me:$LINENO: result: $FLEX" >&5
6069echo "${ECHO_T}$FLEX" >&6
be01d343 6070else
c6b750e1
DJ
6071 echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6
be01d343
PB
6073fi
6074
c6b750e1 6075 test -n "$FLEX" && break
be01d343
PB
6076done
6077test -n "$FLEX" || FLEX="$MISSING flex"
6078
6079case " $build_configdirs " in
6080 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6081esac
6082
6083for ac_prog in makeinfo
6084do
c6b750e1 6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6086set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6087echo "$as_me:$LINENO: checking for $ac_word" >&5
6088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6089if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6091else
6092 if test -n "$MAKEINFO"; then
6093 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6094else
c6b750e1
DJ
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_MAKEINFO="$ac_prog"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106done
6107done
6108
be01d343
PB
6109fi
6110fi
c6b750e1 6111MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6112if test -n "$MAKEINFO"; then
c6b750e1
DJ
6113 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6114echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6115else
c6b750e1
DJ
6116 echo "$as_me:$LINENO: result: no" >&5
6117echo "${ECHO_T}no" >&6
be01d343
PB
6118fi
6119
c6b750e1 6120 test -n "$MAKEINFO" && break
be01d343
PB
6121done
6122test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6123
6124case " $build_configdirs " in
6125 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6126 *)
6127
a4ef73e9 6128 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6129 # higher, else we use the "missing" dummy.
6130 if ${MAKEINFO} --version \
a4ef73e9 6131 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6132 :
6133 else
6134 MAKEINFO="$MISSING makeinfo"
6135 fi
6136 ;;
6137
6138esac
a0da8069 6139
be01d343 6140# FIXME: expect and dejagnu may become build tools?
a0da8069 6141
be01d343
PB
6142for ac_prog in expect
6143do
c6b750e1 6144 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6145set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6146echo "$as_me:$LINENO: checking for $ac_word" >&5
6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6148if test "${ac_cv_prog_EXPECT+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6150else
6151 if test -n "$EXPECT"; then
6152 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6153else
c6b750e1
DJ
6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_EXPECT="$ac_prog"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165done
6166done
6167
be01d343
PB
6168fi
6169fi
c6b750e1 6170EXPECT=$ac_cv_prog_EXPECT
be01d343 6171if test -n "$EXPECT"; then
c6b750e1
DJ
6172 echo "$as_me:$LINENO: result: $EXPECT" >&5
6173echo "${ECHO_T}$EXPECT" >&6
be01d343 6174else
c6b750e1
DJ
6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
be01d343 6177fi
a0da8069 6178
c6b750e1 6179 test -n "$EXPECT" && break
be01d343
PB
6180done
6181test -n "$EXPECT" || EXPECT="expect"
a0da8069 6182
be01d343
PB
6183case " $configdirs " in
6184 *" expect "*)
6185 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6186 ;;
6187esac
a0da8069 6188
be01d343
PB
6189for ac_prog in runtest
6190do
c6b750e1 6191 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6192set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6193echo "$as_me:$LINENO: checking for $ac_word" >&5
6194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6195if test "${ac_cv_prog_RUNTEST+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6197else
6198 if test -n "$RUNTEST"; then
6199 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6200else
c6b750e1
DJ
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_RUNTEST="$ac_prog"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212done
6213done
6214
be01d343
PB
6215fi
6216fi
c6b750e1 6217RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6218if test -n "$RUNTEST"; then
c6b750e1
DJ
6219 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6220echo "${ECHO_T}$RUNTEST" >&6
be01d343 6221else
c6b750e1
DJ
6222 echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6
be01d343 6224fi
a0da8069 6225
c6b750e1 6226 test -n "$RUNTEST" && break
be01d343
PB
6227done
6228test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6229
be01d343
PB
6230case " $configdirs " in
6231 *" dejagnu "*)
6b89cc21 6232 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6233 ;;
6234esac
a0da8069
NN
6235
6236
a0da8069 6237# Host tools.
859789af
AC
6238ncn_tool_prefix=
6239test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6240ncn_target_tool_prefix=
6241test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6242
9a819804
AO
6243
6244
6245if test -n "$AR"; then
6246 ac_cv_prog_AR=$AR
6247elif test -n "$ac_cv_prog_AR"; then
6248 AR=$ac_cv_prog_AR
6249fi
6250
6251if test -n "$ac_cv_prog_AR"; then
6252 for ncn_progname in ar; do
6253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6254set dummy ${ncn_progname}; ac_word=$2
6255echo "$as_me:$LINENO: checking for $ac_word" >&5
6256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6257if test "${ac_cv_prog_AR+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 if test -n "$AR"; then
6261 ac_cv_prog_AR="$AR" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_AR="${ncn_progname}"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274done
6275done
6276
6277fi
6278fi
6279AR=$ac_cv_prog_AR
6280if test -n "$AR"; then
6281 echo "$as_me:$LINENO: result: $AR" >&5
6282echo "${ECHO_T}$AR" >&6
6283else
6284 echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
6286fi
6287
6288 done
6289fi
6290
6291for ncn_progname in ar; do
05cbd757
PB
6292 if test -n "$ncn_tool_prefix"; then
6293 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6294set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6295echo "$as_me:$LINENO: checking for $ac_word" >&5
6296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6297if test "${ac_cv_prog_AR+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6299else
6300 if test -n "$AR"; then
6301 ac_cv_prog_AR="$AR" # Let the user override the test.
6302else
c6b750e1
DJ
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314done
6315done
6316
859789af
AC
6317fi
6318fi
c6b750e1 6319AR=$ac_cv_prog_AR
859789af 6320if test -n "$AR"; then
c6b750e1
DJ
6321 echo "$as_me:$LINENO: result: $AR" >&5
6322echo "${ECHO_T}$AR" >&6
859789af 6323else
c6b750e1
DJ
6324 echo "$as_me:$LINENO: result: no" >&5
6325echo "${ECHO_T}no" >&6
859789af
AC
6326fi
6327
05cbd757
PB
6328 fi
6329 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6331set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6332echo "$as_me:$LINENO: checking for $ac_word" >&5
6333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6334if test "${ac_cv_prog_AR+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6336else
05cbd757
PB
6337 if test -n "$AR"; then
6338 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6339else
c6b750e1
DJ
6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_AR="${ncn_progname}"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351done
6352done
6353
859789af
AC
6354fi
6355fi
c6b750e1 6356AR=$ac_cv_prog_AR
05cbd757 6357if test -n "$AR"; then
c6b750e1
DJ
6358 echo "$as_me:$LINENO: result: $AR" >&5
6359echo "${ECHO_T}$AR" >&6
859789af 6360else
c6b750e1
DJ
6361 echo "$as_me:$LINENO: result: no" >&5
6362echo "${ECHO_T}no" >&6
859789af 6363fi
c6b750e1 6364
05cbd757
PB
6365 fi
6366 test -n "$ac_cv_prog_AR" && break
6367done
6368
6369if test -z "$ac_cv_prog_AR" ; then
6370 set dummy ar
6371 if test $build = $host ; then
6372 AR="$2"
859789af 6373 else
05cbd757 6374 AR="${ncn_tool_prefix}$2"
859789af 6375 fi
859789af
AC
6376fi
6377
9a819804
AO
6378
6379
6380if test -n "$AS"; then
6381 ac_cv_prog_AS=$AS
6382elif test -n "$ac_cv_prog_AS"; then
6383 AS=$ac_cv_prog_AS
6384fi
6385
6386if test -n "$ac_cv_prog_AS"; then
6387 for ncn_progname in as; do
6388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6389set dummy ${ncn_progname}; ac_word=$2
6390echo "$as_me:$LINENO: checking for $ac_word" >&5
6391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6392if test "${ac_cv_prog_AS+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394else
6395 if test -n "$AS"; then
6396 ac_cv_prog_AS="$AS" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_AS="${ncn_progname}"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409done
6410done
6411
6412fi
6413fi
6414AS=$ac_cv_prog_AS
6415if test -n "$AS"; then
6416 echo "$as_me:$LINENO: result: $AS" >&5
6417echo "${ECHO_T}$AS" >&6
6418else
6419 echo "$as_me:$LINENO: result: no" >&5
6420echo "${ECHO_T}no" >&6
6421fi
6422
6423 done
6424fi
6425
6426for ncn_progname in as; do
05cbd757
PB
6427 if test -n "$ncn_tool_prefix"; then
6428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6429set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6430echo "$as_me:$LINENO: checking for $ac_word" >&5
6431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6432if test "${ac_cv_prog_AS+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6434else
6435 if test -n "$AS"; then
6436 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
6450done
6451
859789af
AC
6452fi
6453fi
c6b750e1 6454AS=$ac_cv_prog_AS
859789af 6455if test -n "$AS"; then
c6b750e1
DJ
6456 echo "$as_me:$LINENO: result: $AS" >&5
6457echo "${ECHO_T}$AS" >&6
859789af 6458else
c6b750e1
DJ
6459 echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
859789af
AC
6461fi
6462
05cbd757
PB
6463 fi
6464 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6466set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6467echo "$as_me:$LINENO: checking for $ac_word" >&5
6468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6469if test "${ac_cv_prog_AS+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6471else
05cbd757
PB
6472 if test -n "$AS"; then
6473 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6474else
c6b750e1
DJ
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482 ac_cv_prog_AS="${ncn_progname}"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486done
6487done
6488
859789af
AC
6489fi
6490fi
c6b750e1 6491AS=$ac_cv_prog_AS
05cbd757 6492if test -n "$AS"; then
c6b750e1
DJ
6493 echo "$as_me:$LINENO: result: $AS" >&5
6494echo "${ECHO_T}$AS" >&6
859789af 6495else
c6b750e1
DJ
6496 echo "$as_me:$LINENO: result: no" >&5
6497echo "${ECHO_T}no" >&6
859789af 6498fi
c6b750e1 6499
05cbd757
PB
6500 fi
6501 test -n "$ac_cv_prog_AS" && break
6502done
6503
6504if test -z "$ac_cv_prog_AS" ; then
6505 set dummy as
6506 if test $build = $host ; then
6507 AS="$2"
859789af 6508 else
05cbd757 6509 AS="${ncn_tool_prefix}$2"
859789af 6510 fi
859789af
AC
6511fi
6512
9a819804
AO
6513
6514
6515if test -n "$DLLTOOL"; then
6516 ac_cv_prog_DLLTOOL=$DLLTOOL
6517elif test -n "$ac_cv_prog_DLLTOOL"; then
6518 DLLTOOL=$ac_cv_prog_DLLTOOL
6519fi
6520
6521if test -n "$ac_cv_prog_DLLTOOL"; then
6522 for ncn_progname in dlltool; do
6523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6524set dummy ${ncn_progname}; ac_word=$2
6525echo "$as_me:$LINENO: checking for $ac_word" >&5
6526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6527if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530 if test -n "$DLLTOOL"; then
6531 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540 ac_cv_prog_DLLTOOL="${ncn_progname}"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544done
6545done
6546
6547fi
6548fi
6549DLLTOOL=$ac_cv_prog_DLLTOOL
6550if test -n "$DLLTOOL"; then
6551 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6552echo "${ECHO_T}$DLLTOOL" >&6
6553else
6554 echo "$as_me:$LINENO: result: no" >&5
6555echo "${ECHO_T}no" >&6
6556fi
6557
6558 done
6559fi
6560
6561for ncn_progname in dlltool; do
05cbd757
PB
6562 if test -n "$ncn_tool_prefix"; then
6563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6564set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6565echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6567if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6569else
6570 if test -n "$DLLTOOL"; then
6571 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6572else
c6b750e1
DJ
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584done
6585done
6586
859789af
AC
6587fi
6588fi
c6b750e1 6589DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6590if test -n "$DLLTOOL"; then
c6b750e1
DJ
6591 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6592echo "${ECHO_T}$DLLTOOL" >&6
859789af 6593else
c6b750e1
DJ
6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
859789af
AC
6596fi
6597
05cbd757
PB
6598 fi
6599 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6601set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6602echo "$as_me:$LINENO: checking for $ac_word" >&5
6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6604if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6606else
05cbd757
PB
6607 if test -n "$DLLTOOL"; then
6608 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6609else
c6b750e1
DJ
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_DLLTOOL="${ncn_progname}"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621done
6622done
6623
859789af
AC
6624fi
6625fi
c6b750e1 6626DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6627if test -n "$DLLTOOL"; then
c6b750e1
DJ
6628 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6629echo "${ECHO_T}$DLLTOOL" >&6
859789af 6630else
c6b750e1
DJ
6631 echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6
859789af 6633fi
c6b750e1 6634
05cbd757
PB
6635 fi
6636 test -n "$ac_cv_prog_DLLTOOL" && break
6637done
6638
6639if test -z "$ac_cv_prog_DLLTOOL" ; then
6640 set dummy dlltool
6641 if test $build = $host ; then
6642 DLLTOOL="$2"
859789af 6643 else
05cbd757 6644 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6645 fi
859789af
AC
6646fi
6647
9a819804
AO
6648
6649
6650if test -n "$LD"; then
6651 ac_cv_prog_LD=$LD
6652elif test -n "$ac_cv_prog_LD"; then
6653 LD=$ac_cv_prog_LD
6654fi
6655
6656if test -n "$ac_cv_prog_LD"; then
6657 for ncn_progname in ld; do
6658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6659set dummy ${ncn_progname}; ac_word=$2
6660echo "$as_me:$LINENO: checking for $ac_word" >&5
6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6662if test "${ac_cv_prog_LD+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665 if test -n "$LD"; then
6666 ac_cv_prog_LD="$LD" # Let the user override the test.
6667else
6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6675 ac_cv_prog_LD="${ncn_progname}"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6678 fi
6679done
6680done
6681
6682fi
6683fi
6684LD=$ac_cv_prog_LD
6685if test -n "$LD"; then
6686 echo "$as_me:$LINENO: result: $LD" >&5
6687echo "${ECHO_T}$LD" >&6
6688else
6689 echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6
6691fi
6692
6693 done
6694fi
6695
6696for ncn_progname in ld; do
05cbd757
PB
6697 if test -n "$ncn_tool_prefix"; then
6698 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6699set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6700echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6702if test "${ac_cv_prog_LD+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6704else
6705 if test -n "$LD"; then
6706 ac_cv_prog_LD="$LD" # Let the user override the test.
6707else
c6b750e1
DJ
6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720done
6721
859789af
AC
6722fi
6723fi
c6b750e1 6724LD=$ac_cv_prog_LD
859789af 6725if test -n "$LD"; then
c6b750e1
DJ
6726 echo "$as_me:$LINENO: result: $LD" >&5
6727echo "${ECHO_T}$LD" >&6
859789af 6728else
c6b750e1
DJ
6729 echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6
859789af
AC
6731fi
6732
05cbd757
PB
6733 fi
6734 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6736set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6737echo "$as_me:$LINENO: checking for $ac_word" >&5
6738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6739if test "${ac_cv_prog_LD+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6741else
05cbd757
PB
6742 if test -n "$LD"; then
6743 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6744else
c6b750e1
DJ
6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_LD="${ncn_progname}"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756done
6757done
6758
859789af
AC
6759fi
6760fi
c6b750e1 6761LD=$ac_cv_prog_LD
05cbd757 6762if test -n "$LD"; then
c6b750e1
DJ
6763 echo "$as_me:$LINENO: result: $LD" >&5
6764echo "${ECHO_T}$LD" >&6
859789af 6765else
c6b750e1
DJ
6766 echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
859789af 6768fi
c6b750e1 6769
05cbd757
PB
6770 fi
6771 test -n "$ac_cv_prog_LD" && break
6772done
6773
6774if test -z "$ac_cv_prog_LD" ; then
6775 set dummy ld
6776 if test $build = $host ; then
6777 LD="$2"
859789af 6778 else
05cbd757 6779 LD="${ncn_tool_prefix}$2"
859789af 6780 fi
859789af
AC
6781fi
6782
9a819804
AO
6783
6784
6785if test -n "$LIPO"; then
6786 ac_cv_prog_LIPO=$LIPO
6787elif test -n "$ac_cv_prog_LIPO"; then
6788 LIPO=$ac_cv_prog_LIPO
6789fi
6790
6791if test -n "$ac_cv_prog_LIPO"; then
6792 for ncn_progname in lipo; do
6793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6794set dummy ${ncn_progname}; ac_word=$2
6795echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6797if test "${ac_cv_prog_LIPO+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800 if test -n "$LIPO"; then
6801 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_LIPO="${ncn_progname}"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814done
6815done
6816
6817fi
6818fi
6819LIPO=$ac_cv_prog_LIPO
6820if test -n "$LIPO"; then
6821 echo "$as_me:$LINENO: result: $LIPO" >&5
6822echo "${ECHO_T}$LIPO" >&6
6823else
6824 echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6
6826fi
6827
6828 done
6829fi
6830
6831for ncn_progname in lipo; do
be01d343
PB
6832 if test -n "$ncn_tool_prefix"; then
6833 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6834set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6835echo "$as_me:$LINENO: checking for $ac_word" >&5
6836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6837if test "${ac_cv_prog_LIPO+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6839else
6840 if test -n "$LIPO"; then
6841 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6842else
c6b750e1
DJ
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854done
6855done
6856
be01d343
PB
6857fi
6858fi
c6b750e1 6859LIPO=$ac_cv_prog_LIPO
be01d343 6860if test -n "$LIPO"; then
c6b750e1
DJ
6861 echo "$as_me:$LINENO: result: $LIPO" >&5
6862echo "${ECHO_T}$LIPO" >&6
be01d343 6863else
c6b750e1
DJ
6864 echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6
be01d343
PB
6866fi
6867
6868 fi
6869 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6871set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6872echo "$as_me:$LINENO: checking for $ac_word" >&5
6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6874if test "${ac_cv_prog_LIPO+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6876else
6877 if test -n "$LIPO"; then
6878 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6879else
c6b750e1
DJ
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_LIPO="${ncn_progname}"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891done
6892done
6893
be01d343
PB
6894fi
6895fi
c6b750e1 6896LIPO=$ac_cv_prog_LIPO
be01d343 6897if test -n "$LIPO"; then
c6b750e1
DJ
6898 echo "$as_me:$LINENO: result: $LIPO" >&5
6899echo "${ECHO_T}$LIPO" >&6
be01d343 6900else
c6b750e1
DJ
6901 echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6
be01d343 6903fi
c6b750e1 6904
be01d343
PB
6905 fi
6906 test -n "$ac_cv_prog_LIPO" && break
6907done
6908
6909if test -z "$ac_cv_prog_LIPO" ; then
6910 set dummy lipo
6911 if test $build = $host ; then
6912 LIPO="$2"
6913 else
6914 LIPO="${ncn_tool_prefix}$2"
6915 fi
6916fi
6917
9a819804
AO
6918
6919
6920if test -n "$NM"; then
6921 ac_cv_prog_NM=$NM
6922elif test -n "$ac_cv_prog_NM"; then
6923 NM=$ac_cv_prog_NM
6924fi
6925
6926if test -n "$ac_cv_prog_NM"; then
6927 for ncn_progname in nm; do
6928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6929set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6930echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6932if test "${ac_cv_prog_NM+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6934else
6935 if test -n "$NM"; then
6936 ac_cv_prog_NM="$NM" # Let the user override the test.
6937else
c6b750e1
DJ
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6945 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950done
6951
859789af
AC
6952fi
6953fi
c6b750e1 6954NM=$ac_cv_prog_NM
859789af 6955if test -n "$NM"; then
c6b750e1
DJ
6956 echo "$as_me:$LINENO: result: $NM" >&5
6957echo "${ECHO_T}$NM" >&6
859789af 6958else
c6b750e1
DJ
6959 echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6
859789af
AC
6961fi
6962
9a819804
AO
6963 done
6964fi
6965
6966for ncn_progname in nm; do
6967 if test -n "$ncn_tool_prefix"; then
6968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6969set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6970echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6972if test "${ac_cv_prog_NM+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6974else
05cbd757
PB
6975 if test -n "$NM"; then
6976 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6977else
c6b750e1
DJ
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6985 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989done
6990done
6991
859789af
AC
6992fi
6993fi
c6b750e1 6994NM=$ac_cv_prog_NM
05cbd757 6995if test -n "$NM"; then
c6b750e1
DJ
6996 echo "$as_me:$LINENO: result: $NM" >&5
6997echo "${ECHO_T}$NM" >&6
859789af 6998else
c6b750e1
DJ
6999 echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6
859789af 7001fi
c6b750e1 7002
05cbd757 7003 fi
9a819804
AO
7004 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7006set dummy ${ncn_progname}; ac_word=$2
7007echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7009if test "${ac_cv_prog_NM+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 if test -n "$NM"; then
7013 ac_cv_prog_NM="$NM" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_NM="${ncn_progname}"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026done
7027done
7028
7029fi
7030fi
7031NM=$ac_cv_prog_NM
7032if test -n "$NM"; then
7033 echo "$as_me:$LINENO: result: $NM" >&5
7034echo "${ECHO_T}$NM" >&6
7035else
7036 echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6
7038fi
7039
7040 fi
7041 test -n "$ac_cv_prog_NM" && break
7042done
7043
7044if test -z "$ac_cv_prog_NM" ; then
7045 set dummy nm
7046 if test $build = $host ; then
7047 NM="$2"
7048 else
7049 NM="${ncn_tool_prefix}$2"
7050 fi
7051fi
7052
7053
7054
7055if test -n "$RANLIB"; then
7056 ac_cv_prog_RANLIB=$RANLIB
7057elif test -n "$ac_cv_prog_RANLIB"; then
7058 RANLIB=$ac_cv_prog_RANLIB
7059fi
7060
7061if test -n "$ac_cv_prog_RANLIB"; then
7062 for ncn_progname in ranlib; do
7063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7064set dummy ${ncn_progname}; ac_word=$2
7065echo "$as_me:$LINENO: checking for $ac_word" >&5
7066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7067if test "${ac_cv_prog_RANLIB+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070 if test -n "$RANLIB"; then
7071 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_RANLIB="${ncn_progname}"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084done
7085done
7086
7087fi
7088fi
7089RANLIB=$ac_cv_prog_RANLIB
7090if test -n "$RANLIB"; then
7091 echo "$as_me:$LINENO: result: $RANLIB" >&5
7092echo "${ECHO_T}$RANLIB" >&6
7093else
7094 echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6
7096fi
7097
7098 done
7099fi
859789af 7100
9a819804 7101for ncn_progname in ranlib; do
05cbd757
PB
7102 if test -n "$ncn_tool_prefix"; then
7103 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7104set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7105echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107if test "${ac_cv_prog_RANLIB+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7109else
7110 if test -n "$RANLIB"; then
7111 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7112else
c6b750e1
DJ
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126
859789af
AC
7127fi
7128fi
c6b750e1 7129RANLIB=$ac_cv_prog_RANLIB
859789af 7130if test -n "$RANLIB"; then
c6b750e1
DJ
7131 echo "$as_me:$LINENO: result: $RANLIB" >&5
7132echo "${ECHO_T}$RANLIB" >&6
859789af 7133else
c6b750e1
DJ
7134 echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6
859789af
AC
7136fi
7137
05cbd757
PB
7138 fi
7139 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7141set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7142echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7144if test "${ac_cv_prog_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7146else
05cbd757
PB
7147 if test -n "$RANLIB"; then
7148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7149else
c6b750e1
DJ
7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_RANLIB="${ncn_progname}"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161done
7162done
7163
859789af
AC
7164fi
7165fi
c6b750e1 7166RANLIB=$ac_cv_prog_RANLIB
05cbd757 7167if test -n "$RANLIB"; then
c6b750e1
DJ
7168 echo "$as_me:$LINENO: result: $RANLIB" >&5
7169echo "${ECHO_T}$RANLIB" >&6
859789af 7170else
c6b750e1
DJ
7171 echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6
859789af 7173fi
c6b750e1 7174
859789af 7175 fi
05cbd757
PB
7176 test -n "$ac_cv_prog_RANLIB" && break
7177done
7178
7179if test -z "$ac_cv_prog_RANLIB" ; then
7180 RANLIB=":"
859789af
AC
7181fi
7182
9a819804
AO
7183
7184
7185if test -n "$STRIP"; then
7186 ac_cv_prog_STRIP=$STRIP
7187elif test -n "$ac_cv_prog_STRIP"; then
7188 STRIP=$ac_cv_prog_STRIP
7189fi
7190
7191if test -n "$ac_cv_prog_STRIP"; then
7192 for ncn_progname in strip; do
7193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7194set dummy ${ncn_progname}; ac_word=$2
7195echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7197if test "${ac_cv_prog_STRIP+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 if test -n "$STRIP"; then
7201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_STRIP="${ncn_progname}"
7211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214done
7215done
7216
7217fi
7218fi
7219STRIP=$ac_cv_prog_STRIP
7220if test -n "$STRIP"; then
7221 echo "$as_me:$LINENO: result: $STRIP" >&5
7222echo "${ECHO_T}$STRIP" >&6
7223else
7224 echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6
7226fi
7227
7228 done
7229fi
7230
7231for ncn_progname in strip; do
be01d343
PB
7232 if test -n "$ncn_tool_prefix"; then
7233 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7234set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7235echo "$as_me:$LINENO: checking for $ac_word" >&5
7236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7237if test "${ac_cv_prog_STRIP+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7239else
7240 if test -n "$STRIP"; then
7241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7242else
c6b750e1
DJ
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254done
7255done
7256
be01d343
PB
7257fi
7258fi
c6b750e1 7259STRIP=$ac_cv_prog_STRIP
be01d343 7260if test -n "$STRIP"; then
c6b750e1
DJ
7261 echo "$as_me:$LINENO: result: $STRIP" >&5
7262echo "${ECHO_T}$STRIP" >&6
be01d343 7263else
c6b750e1
DJ
7264 echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6
be01d343
PB
7266fi
7267
7268 fi
7269 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7271set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7272echo "$as_me:$LINENO: checking for $ac_word" >&5
7273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7274if test "${ac_cv_prog_STRIP+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7276else
7277 if test -n "$STRIP"; then
7278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7279else
c6b750e1
DJ
7280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287 ac_cv_prog_STRIP="${ncn_progname}"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291done
7292done
7293
be01d343
PB
7294fi
7295fi
c6b750e1 7296STRIP=$ac_cv_prog_STRIP
be01d343 7297if test -n "$STRIP"; then
c6b750e1
DJ
7298 echo "$as_me:$LINENO: result: $STRIP" >&5
7299echo "${ECHO_T}$STRIP" >&6
be01d343 7300else
c6b750e1
DJ
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
be01d343 7303fi
c6b750e1 7304
be01d343
PB
7305 fi
7306 test -n "$ac_cv_prog_STRIP" && break
7307done
7308
7309if test -z "$ac_cv_prog_STRIP" ; then
7310 STRIP=":"
7311fi
7312
9a819804
AO
7313
7314
7315if test -n "$WINDRES"; then
7316 ac_cv_prog_WINDRES=$WINDRES
7317elif test -n "$ac_cv_prog_WINDRES"; then
7318 WINDRES=$ac_cv_prog_WINDRES
7319fi
7320
7321if test -n "$ac_cv_prog_WINDRES"; then
7322 for ncn_progname in windres; do
7323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7324set dummy ${ncn_progname}; ac_word=$2
7325echo "$as_me:$LINENO: checking for $ac_word" >&5
7326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7327if test "${ac_cv_prog_WINDRES+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330 if test -n "$WINDRES"; then
7331 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7332else
7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_WINDRES="${ncn_progname}"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344done
7345done
7346
7347fi
7348fi
7349WINDRES=$ac_cv_prog_WINDRES
7350if test -n "$WINDRES"; then
7351 echo "$as_me:$LINENO: result: $WINDRES" >&5
7352echo "${ECHO_T}$WINDRES" >&6
7353else
7354 echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
7356fi
7357
7358 done
7359fi
7360
7361for ncn_progname in windres; do
05cbd757
PB
7362 if test -n "$ncn_tool_prefix"; then
7363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7364set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7365echo "$as_me:$LINENO: checking for $ac_word" >&5
7366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7367if test "${ac_cv_prog_WINDRES+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7369else
7370 if test -n "$WINDRES"; then
7371 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7372else
c6b750e1
DJ
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384done
7385done
7386
859789af
AC
7387fi
7388fi
c6b750e1 7389WINDRES=$ac_cv_prog_WINDRES
859789af 7390if test -n "$WINDRES"; then
c6b750e1
DJ
7391 echo "$as_me:$LINENO: result: $WINDRES" >&5
7392echo "${ECHO_T}$WINDRES" >&6
859789af 7393else
c6b750e1
DJ
7394 echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
859789af
AC
7396fi
7397
05cbd757
PB
7398 fi
7399 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7401set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7402echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7404if test "${ac_cv_prog_WINDRES+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7406else
05cbd757
PB
7407 if test -n "$WINDRES"; then
7408 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7409else
c6b750e1
DJ
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_WINDRES="${ncn_progname}"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422done
7423
859789af
AC
7424fi
7425fi
c6b750e1 7426WINDRES=$ac_cv_prog_WINDRES
05cbd757 7427if test -n "$WINDRES"; then
c6b750e1
DJ
7428 echo "$as_me:$LINENO: result: $WINDRES" >&5
7429echo "${ECHO_T}$WINDRES" >&6
859789af 7430else
c6b750e1
DJ
7431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
859789af 7433fi
c6b750e1 7434
05cbd757
PB
7435 fi
7436 test -n "$ac_cv_prog_WINDRES" && break
7437done
7438
7439if test -z "$ac_cv_prog_WINDRES" ; then
7440 set dummy windres
7441 if test $build = $host ; then
7442 WINDRES="$2"
859789af 7443 else
05cbd757 7444 WINDRES="${ncn_tool_prefix}$2"
859789af 7445 fi
859789af
AC
7446fi
7447
9a819804
AO
7448
7449
0c24b341
NC
7450if test -n "$WINDMC"; then
7451 ac_cv_prog_WINDMC=$WINDMC
7452elif test -n "$ac_cv_prog_WINDMC"; then
7453 WINDMC=$ac_cv_prog_WINDMC
7454fi
7455
7456if test -n "$ac_cv_prog_WINDMC"; then
7457 for ncn_progname in windmc; do
7458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7459set dummy ${ncn_progname}; ac_word=$2
7460echo "$as_me:$LINENO: checking for $ac_word" >&5
7461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462if test "${ac_cv_prog_WINDMC+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465 if test -n "$WINDMC"; then
7466 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7467else
7468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_WINDMC="${ncn_progname}"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 break 2
7478 fi
7479done
7480done
7481
7482fi
7483fi
7484WINDMC=$ac_cv_prog_WINDMC
7485if test -n "$WINDMC"; then
7486 echo "$as_me:$LINENO: result: $WINDMC" >&5
7487echo "${ECHO_T}$WINDMC" >&6
7488else
7489 echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6
7491fi
7492
7493 done
7494fi
7495
7496for ncn_progname in windmc; do
7497 if test -n "$ncn_tool_prefix"; then
7498 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7499set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7500echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7502if test "${ac_cv_prog_WINDMC+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505 if test -n "$WINDMC"; then
7506 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519done
7520done
7521
7522fi
7523fi
7524WINDMC=$ac_cv_prog_WINDMC
7525if test -n "$WINDMC"; then
7526 echo "$as_me:$LINENO: result: $WINDMC" >&5
7527echo "${ECHO_T}$WINDMC" >&6
7528else
7529 echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6
7531fi
7532
7533 fi
7534 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7536set dummy ${ncn_progname}; ac_word=$2
7537echo "$as_me:$LINENO: checking for $ac_word" >&5
7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7539if test "${ac_cv_prog_WINDMC+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 if test -n "$WINDMC"; then
7543 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7544else
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_WINDMC="${ncn_progname}"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7555 fi
7556done
7557done
7558
7559fi
7560fi
7561WINDMC=$ac_cv_prog_WINDMC
7562if test -n "$WINDMC"; then
7563 echo "$as_me:$LINENO: result: $WINDMC" >&5
7564echo "${ECHO_T}$WINDMC" >&6
7565else
7566 echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6
7568fi
7569
7570 fi
7571 test -n "$ac_cv_prog_WINDMC" && break
7572done
7573
7574if test -z "$ac_cv_prog_WINDMC" ; then
7575 set dummy windmc
7576 if test $build = $host ; then
7577 WINDMC="$2"
7578 else
7579 WINDMC="${ncn_tool_prefix}$2"
7580 fi
7581fi
7582
7583
7584
9a819804
AO
7585if test -n "$OBJCOPY"; then
7586 ac_cv_prog_OBJCOPY=$OBJCOPY
7587elif test -n "$ac_cv_prog_OBJCOPY"; then
7588 OBJCOPY=$ac_cv_prog_OBJCOPY
7589fi
7590
7591if test -n "$ac_cv_prog_OBJCOPY"; then
7592 for ncn_progname in objcopy; do
7593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7594set dummy ${ncn_progname}; ac_word=$2
7595echo "$as_me:$LINENO: checking for $ac_word" >&5
7596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7597if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600 if test -n "$OBJCOPY"; then
7601 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_OBJCOPY="${ncn_progname}"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614done
7615done
7616
7617fi
7618fi
7619OBJCOPY=$ac_cv_prog_OBJCOPY
7620if test -n "$OBJCOPY"; then
7621 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7622echo "${ECHO_T}$OBJCOPY" >&6
7623else
7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626fi
7627
7628 done
7629fi
7630
7631for ncn_progname in objcopy; do
05cbd757
PB
7632 if test -n "$ncn_tool_prefix"; then
7633 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7634set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7635echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7637if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7639else
7640 if test -n "$OBJCOPY"; then
7641 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7642else
c6b750e1
DJ
7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654done
7655done
7656
859789af
AC
7657fi
7658fi
c6b750e1 7659OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7660if test -n "$OBJCOPY"; then
c6b750e1
DJ
7661 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7662echo "${ECHO_T}$OBJCOPY" >&6
859789af 7663else
c6b750e1
DJ
7664 echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
859789af
AC
7666fi
7667
05cbd757
PB
7668 fi
7669 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7671set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7672echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7674if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7676else
05cbd757
PB
7677 if test -n "$OBJCOPY"; then
7678 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7679else
c6b750e1
DJ
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_prog_OBJCOPY="${ncn_progname}"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691done
7692done
7693
859789af
AC
7694fi
7695fi
c6b750e1 7696OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7697if test -n "$OBJCOPY"; then
c6b750e1
DJ
7698 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7699echo "${ECHO_T}$OBJCOPY" >&6
859789af 7700else
c6b750e1
DJ
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
859789af 7703fi
c6b750e1 7704
05cbd757
PB
7705 fi
7706 test -n "$ac_cv_prog_OBJCOPY" && break
7707done
7708
7709if test -z "$ac_cv_prog_OBJCOPY" ; then
7710 set dummy objcopy
7711 if test $build = $host ; then
7712 OBJCOPY="$2"
859789af 7713 else
05cbd757 7714 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7715 fi
859789af
AC
7716fi
7717
9a819804
AO
7718
7719
7720if test -n "$OBJDUMP"; then
7721 ac_cv_prog_OBJDUMP=$OBJDUMP
7722elif test -n "$ac_cv_prog_OBJDUMP"; then
7723 OBJDUMP=$ac_cv_prog_OBJDUMP
7724fi
7725
7726if test -n "$ac_cv_prog_OBJDUMP"; then
7727 for ncn_progname in objdump; do
7728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7729set dummy ${ncn_progname}; ac_word=$2
7730echo "$as_me:$LINENO: checking for $ac_word" >&5
7731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7732if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735 if test -n "$OBJDUMP"; then
7736 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_OBJDUMP="${ncn_progname}"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750done
7751
7752fi
7753fi
7754OBJDUMP=$ac_cv_prog_OBJDUMP
7755if test -n "$OBJDUMP"; then
7756 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7757echo "${ECHO_T}$OBJDUMP" >&6
7758else
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761fi
7762
7763 done
7764fi
7765
7766for ncn_progname in objdump; do
05cbd757
PB
7767 if test -n "$ncn_tool_prefix"; then
7768 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7769set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7770echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7774else
7775 if test -n "$OBJDUMP"; then
7776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7777else
c6b750e1
DJ
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790done
7791
859789af
AC
7792fi
7793fi
c6b750e1 7794OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7795if test -n "$OBJDUMP"; then
c6b750e1
DJ
7796 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7797echo "${ECHO_T}$OBJDUMP" >&6
859789af 7798else
c6b750e1
DJ
7799 echo "$as_me:$LINENO: result: no" >&5
7800echo "${ECHO_T}no" >&6
859789af
AC
7801fi
7802
05cbd757
PB
7803 fi
7804 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7806set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7807echo "$as_me:$LINENO: checking for $ac_word" >&5
7808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7809if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7811else
05cbd757
PB
7812 if test -n "$OBJDUMP"; then
7813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7814else
c6b750e1
DJ
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_OBJDUMP="${ncn_progname}"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826done
7827done
7828
859789af
AC
7829fi
7830fi
c6b750e1 7831OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7832if test -n "$OBJDUMP"; then
c6b750e1
DJ
7833 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7834echo "${ECHO_T}$OBJDUMP" >&6
859789af 7835else
c6b750e1
DJ
7836 echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6
859789af 7838fi
c6b750e1 7839
05cbd757
PB
7840 fi
7841 test -n "$ac_cv_prog_OBJDUMP" && break
7842done
7843
7844if test -z "$ac_cv_prog_OBJDUMP" ; then
7845 set dummy objdump
7846 if test $build = $host ; then
7847 OBJDUMP="$2"
859789af 7848 else
05cbd757 7849 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7850 fi
859789af
AC
7851fi
7852
a0da8069
NN
7853
7854
7855
7856
7857
7858
be01d343 7859# Target tools.
c6b750e1 7860
2429c060
PB
7861# Check whether --with-build-time-tools or --without-build-time-tools was given.
7862if test "${with_build_time_tools+set}" = set; then
7863 withval="$with_build_time_tools"
7864 case x"$withval" in
7865 x/*) ;;
7866 *)
7867 with_build_time_tools=
c6b750e1
DJ
7868 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7869echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7870 ;;
7871 esac
859789af 7872else
2429c060 7873 with_build_time_tools=
c6b750e1 7874fi;
859789af 7875
9a819804
AO
7876
7877
7878if test -n "$CC_FOR_TARGET"; then
7879 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7880elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7881 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7882fi
7883
7884if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7885 for ncn_progname in cc gcc; do
7886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7887set dummy ${ncn_progname}; ac_word=$2
7888echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7890if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893 if test -n "$CC_FOR_TARGET"; then
7894 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907done
7908done
7909
7910fi
7911fi
7912CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7913if test -n "$CC_FOR_TARGET"; then
7914 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7915echo "${ECHO_T}$CC_FOR_TARGET" >&6
7916else
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919fi
7920
7921 done
7922fi
7923
7924if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7925 for ncn_progname in cc gcc; do
c6b750e1
DJ
7926 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7927echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7928 if test -x $with_build_time_tools/${ncn_progname}; then
7929 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7930 echo "$as_me:$LINENO: result: yes" >&5
7931echo "${ECHO_T}yes" >&6
cac3d6c4 7932 break
2429c060 7933 else
c6b750e1
DJ
7934 echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6
cac3d6c4
CM
7936 fi
7937 done
55db4b87
PB
7938fi
7939
2429c060
PB
7940if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7941 for ncn_progname in cc gcc; do
7942 if test -n "$ncn_target_tool_prefix"; then
7943 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7944set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7945echo "$as_me:$LINENO: checking for $ac_word" >&5
7946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7947if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7949else
7950 if test -n "$CC_FOR_TARGET"; then
7951 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7952else
c6b750e1
DJ
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964done
7965done
7966
55db4b87
PB
7967fi
7968fi
c6b750e1 7969CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7970if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7971 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7972echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7973else
c6b750e1
DJ
7974 echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6
55db4b87
PB
7976fi
7977
2429c060
PB
7978 fi
7979 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7981set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7982echo "$as_me:$LINENO: checking for $ac_word" >&5
7983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7984if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7986else
05cbd757
PB
7987 if test -n "$CC_FOR_TARGET"; then
7988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 7989else
c6b750e1
DJ
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001done
8002done
8003
55db4b87
PB
8004fi
8005fi
c6b750e1 8006CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8007if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8008 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8009echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8010else
c6b750e1
DJ
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
55db4b87 8013fi
c6b750e1 8014
2429c060
PB
8015 fi
8016 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8017 done
8018fi
c6b750e1 8019
05cbd757
PB
8020if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8021 set dummy cc gcc
8022 if test $build = $target ; then
8023 CC_FOR_TARGET="$2"
55db4b87 8024 else
05cbd757 8025 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8026 fi
d3f5afc4
MS
8027else
8028 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8029fi
8030
9a819804
AO
8031
8032
8033if test -n "$CXX_FOR_TARGET"; then
8034 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8035elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8036 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8037fi
8038
8039if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8040 for ncn_progname in c++ g++ cxx gxx; do
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042set dummy ${ncn_progname}; ac_word=$2
8043echo "$as_me:$LINENO: checking for $ac_word" >&5
8044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8045if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048 if test -n "$CXX_FOR_TARGET"; then
8049 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8050else
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062done
8063done
8064
8065fi
8066fi
8067CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8068if test -n "$CXX_FOR_TARGET"; then
8069 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8070echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8071else
8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
8074fi
8075
8076 done
8077fi
8078
8079if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8080 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8081 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8082echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8083 if test -x $with_build_time_tools/${ncn_progname}; then
8084 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8085 echo "$as_me:$LINENO: result: yes" >&5
8086echo "${ECHO_T}yes" >&6
2429c060
PB
8087 break
8088 else
c6b750e1
DJ
8089 echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6
2429c060
PB
8091 fi
8092 done
8093fi
8094
8095if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8096 for ncn_progname in c++ g++ cxx gxx; do
8097 if test -n "$ncn_target_tool_prefix"; then
8098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8099set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8100echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8102if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8104else
8105 if test -n "$CXX_FOR_TARGET"; then
8106 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8107else
c6b750e1
DJ
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119done
8120done
8121
55db4b87
PB
8122fi
8123fi
c6b750e1 8124CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8125if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8126 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8127echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8128else
c6b750e1
DJ
8129 echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6
55db4b87
PB
8131fi
8132
2429c060
PB
8133 fi
8134 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8136set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8137echo "$as_me:$LINENO: checking for $ac_word" >&5
8138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8139if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8141else
05cbd757
PB
8142 if test -n "$CXX_FOR_TARGET"; then
8143 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8144else
c6b750e1
DJ
8145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146for as_dir in $PATH
8147do
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8155 fi
8156done
8157done
8158
55db4b87
PB
8159fi
8160fi
c6b750e1 8161CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8162if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8163 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8164echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8165else
c6b750e1
DJ
8166 echo "$as_me:$LINENO: result: no" >&5
8167echo "${ECHO_T}no" >&6
55db4b87 8168fi
c6b750e1 8169
2429c060
PB
8170 fi
8171 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8172 done
8173fi
c6b750e1 8174
05cbd757
PB
8175if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8176 set dummy c++ g++ cxx gxx
8177 if test $build = $target ; then
8178 CXX_FOR_TARGET="$2"
55db4b87 8179 else
05cbd757 8180 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8181 fi
d3f5afc4
MS
8182else
8183 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8184fi
8185
9a819804
AO
8186
8187
8188if test -n "$GCC_FOR_TARGET"; then
8189 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8190elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8191 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8192fi
8193
8194if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8195 for ncn_progname in gcc; do
8196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8197set dummy ${ncn_progname}; ac_word=$2
8198echo "$as_me:$LINENO: checking for $ac_word" >&5
8199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8200if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 if test -n "$GCC_FOR_TARGET"; then
8204 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8205else
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217done
8218done
8219
8220fi
8221fi
8222GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8223if test -n "$GCC_FOR_TARGET"; then
8224 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8225echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8226else
8227 echo "$as_me:$LINENO: result: no" >&5
8228echo "${ECHO_T}no" >&6
8229fi
8230
8231 done
8232fi
8233
8234if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8235 for ncn_progname in gcc; do
c6b750e1
DJ
8236 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8237echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8238 if test -x $with_build_time_tools/${ncn_progname}; then
8239 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8240 echo "$as_me:$LINENO: result: yes" >&5
8241echo "${ECHO_T}yes" >&6
2429c060
PB
8242 break
8243 else
c6b750e1
DJ
8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
2429c060
PB
8246 fi
8247 done
8248fi
8249
8250if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8251 for ncn_progname in gcc; do
8252 if test -n "$ncn_target_tool_prefix"; then
8253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8254set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8255echo "$as_me:$LINENO: checking for $ac_word" >&5
8256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8257if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8259else
2429c060
PB
8260 if test -n "$GCC_FOR_TARGET"; then
8261 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8262else
c6b750e1
DJ
8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264for as_dir in $PATH
8265do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274done
8275done
8276
55db4b87
PB
8277fi
8278fi
c6b750e1 8279GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8280if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8281 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8282echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8283else
c6b750e1
DJ
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
55db4b87
PB
8286fi
8287
2429c060
PB
8288 fi
8289 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8291set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8292echo "$as_me:$LINENO: checking for $ac_word" >&5
8293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8294if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8296else
05cbd757
PB
8297 if test -n "$GCC_FOR_TARGET"; then
8298 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8299else
c6b750e1
DJ
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311done
8312done
8313
55db4b87
PB
8314fi
8315fi
c6b750e1 8316GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8317if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8318 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8319echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8320else
c6b750e1
DJ
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
55db4b87 8323fi
c6b750e1 8324
2429c060
PB
8325 fi
8326 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8327 done
8328fi
c6b750e1 8329
05cbd757
PB
8330if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8331 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8332else
8333 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8334fi
8335
9a819804
AO
8336
8337
8338if test -n "$GCJ_FOR_TARGET"; then
8339 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8340elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8341 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8342fi
8343
8344if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8345 for ncn_progname in gcj; do
8346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8347set dummy ${ncn_progname}; ac_word=$2
8348echo "$as_me:$LINENO: checking for $ac_word" >&5
8349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8350if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 if test -n "$GCJ_FOR_TARGET"; then
8354 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8355else
8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357for as_dir in $PATH
8358do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8363 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367done
8368done
8369
8370fi
8371fi
8372GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8373if test -n "$GCJ_FOR_TARGET"; then
8374 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8375echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8376else
8377 echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6
8379fi
8380
8381 done
8382fi
8383
8384if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8385 for ncn_progname in gcj; do
c6b750e1
DJ
8386 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8387echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8388 if test -x $with_build_time_tools/${ncn_progname}; then
8389 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8390 echo "$as_me:$LINENO: result: yes" >&5
8391echo "${ECHO_T}yes" >&6
2429c060
PB
8392 break
8393 else
c6b750e1
DJ
8394 echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6
2429c060
PB
8396 fi
8397 done
8398fi
8399
8400if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8401 for ncn_progname in gcj; do
8402 if test -n "$ncn_target_tool_prefix"; then
8403 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8404set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8405echo "$as_me:$LINENO: checking for $ac_word" >&5
8406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8407if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8409else
8410 if test -n "$GCJ_FOR_TARGET"; then
8411 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8412else
c6b750e1
DJ
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424done
8425done
8426
55db4b87
PB
8427fi
8428fi
9a819804
AO
8429GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8430if test -n "$GCJ_FOR_TARGET"; then
8431 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8432echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8433else
8434 echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6
8436fi
8437
8438 fi
8439 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8441set dummy ${ncn_progname}; ac_word=$2
8442echo "$as_me:$LINENO: checking for $ac_word" >&5
8443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8444if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447 if test -n "$GCJ_FOR_TARGET"; then
8448 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8449else
8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8457 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461done
8462done
8463
8464fi
8465fi
8466GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8467if test -n "$GCJ_FOR_TARGET"; then
8468 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8469echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8470else
8471 echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6
8473fi
8474
8475 fi
8476 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8477 done
8478fi
8479
8480if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8481 set dummy gcj
8482 if test $build = $target ; then
8483 GCJ_FOR_TARGET="$2"
8484 else
8485 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8486 fi
d3f5afc4
MS
8487else
8488 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8489fi
8490
8491
8492
8493if test -n "$GFORTRAN_FOR_TARGET"; then
8494 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8495elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8496 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8497fi
8498
9a819804
AO
8499if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8500 for ncn_progname in gfortran; do
8501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8502set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8503echo "$as_me:$LINENO: checking for $ac_word" >&5
8504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8505if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8506 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8507else
9a819804
AO
8508 if test -n "$GFORTRAN_FOR_TARGET"; then
8509 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8510else
c6b750e1
DJ
8511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512for as_dir in $PATH
8513do
8514 IFS=$as_save_IFS
8515 test -z "$as_dir" && as_dir=.
8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8518 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 break 2
8521 fi
8522done
8523done
8524
55db4b87
PB
8525fi
8526fi
9a819804
AO
8527GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8528if test -n "$GFORTRAN_FOR_TARGET"; then
8529 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8530echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8531else
c6b750e1
DJ
8532 echo "$as_me:$LINENO: result: no" >&5
8533echo "${ECHO_T}no" >&6
55db4b87 8534fi
c6b750e1 8535
2429c060
PB
8536 done
8537fi
c6b750e1 8538
9a819804 8539if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8540 for ncn_progname in gfortran; do
c6b750e1
DJ
8541 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8542echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8543 if test -x $with_build_time_tools/${ncn_progname}; then
8544 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8545 echo "$as_me:$LINENO: result: yes" >&5
8546echo "${ECHO_T}yes" >&6
2429c060
PB
8547 break
8548 else
c6b750e1
DJ
8549 echo "$as_me:$LINENO: result: no" >&5
8550echo "${ECHO_T}no" >&6
2429c060
PB
8551 fi
8552 done
8553fi
8554
8555if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8556 for ncn_progname in gfortran; do
8557 if test -n "$ncn_target_tool_prefix"; then
8558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8559set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8560echo "$as_me:$LINENO: checking for $ac_word" >&5
8561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8562if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8564else
8565 if test -n "$GFORTRAN_FOR_TARGET"; then
8566 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8567else
c6b750e1
DJ
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8578 fi
8579done
8580done
8581
55db4b87
PB
8582fi
8583fi
c6b750e1 8584GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8585if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8586 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8587echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8588else
c6b750e1
DJ
8589 echo "$as_me:$LINENO: result: no" >&5
8590echo "${ECHO_T}no" >&6
55db4b87
PB
8591fi
8592
2429c060
PB
8593 fi
8594 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8596set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8597echo "$as_me:$LINENO: checking for $ac_word" >&5
8598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8599if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8601else
05cbd757 8602 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8603 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8604else
8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8612 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8615 fi
8616done
8617done
8618
55db4b87
PB
8619fi
8620fi
c6b750e1 8621GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8622if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8623 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8624echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8625else
c6b750e1
DJ
8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
55db4b87 8628fi
c6b750e1 8629
2429c060
PB
8630 fi
8631 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8632 done
8633fi
c6b750e1 8634
05cbd757
PB
8635if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8636 set dummy gfortran
8637 if test $build = $target ; then
8638 GFORTRAN_FOR_TARGET="$2"
55db4b87 8639 else
05cbd757 8640 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8641 fi
d3f5afc4
MS
8642else
8643 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8644fi
8645
2429c060
PB
8646
8647
2429c060
PB
8648cat > conftest.c << \EOF
8649#ifdef __GNUC__
8650 gcc_yay;
8651#endif
8652EOF
8653if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8654 have_gcc_for_target=yes
859789af 8655else
2429c060
PB
8656 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8657 have_gcc_for_target=no
859789af 8658fi
2429c060
PB
8659rm conftest.c
8660
8661
8662
859789af 8663
2429c060
PB
8664if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8665 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8666 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8667echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8668 if test -x $with_build_time_tools/ar; then
8669 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8670 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8671 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8672echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8673 else
c6b750e1
DJ
8674 echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
3a35eeb3 8676 fi
2429c060
PB
8677 elif test $build != $host && test $have_gcc_for_target = yes; then
8678 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8679 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8680 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8681 fi
2429c060 8682fi
c6b750e1 8683if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8684 # Extract the first word of "ar", so it can be a program name with args.
8685set dummy ar; ac_word=$2
c6b750e1
DJ
8686echo "$as_me:$LINENO: checking for $ac_word" >&5
8687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8688if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8690else
c6b750e1
DJ
8691 case $AR_FOR_TARGET in
8692 [\\/]* | ?:[\\/]*)
2429c060
PB
8693 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8694 ;;
2429c060 8695 *)
c6b750e1
DJ
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697for as_dir in $gcc_cv_tool_dirs
8698do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8706 fi
8707done
8708done
8709
2429c060
PB
8710 ;;
8711esac
859789af 8712fi
c6b750e1
DJ
8713AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8714
2429c060 8715if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8716 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8717echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8718else
c6b750e1
DJ
8719 echo "$as_me:$LINENO: result: no" >&5
8720echo "${ECHO_T}no" >&6
859789af 8721fi
05cbd757 8722
2429c060
PB
8723fi
8724if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8725
8726
8727if test -n "$AR_FOR_TARGET"; then
8728 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8729elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8730 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8731fi
8732
8733if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8734 for ncn_progname in ar; do
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736set dummy ${ncn_progname}; ac_word=$2
8737echo "$as_me:$LINENO: checking for $ac_word" >&5
8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8739if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742 if test -n "$AR_FOR_TARGET"; then
8743 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757done
8758
8759fi
8760fi
8761AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8762if test -n "$AR_FOR_TARGET"; then
8763 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8764echo "${ECHO_T}$AR_FOR_TARGET" >&6
8765else
8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768fi
8769
8770 done
8771fi
8772
8773if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8774 for ncn_progname in ar; do
c6b750e1
DJ
8775 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8776echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8777 if test -x $with_build_time_tools/${ncn_progname}; then
8778 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8779 echo "$as_me:$LINENO: result: yes" >&5
8780echo "${ECHO_T}yes" >&6
2429c060
PB
8781 break
8782 else
c6b750e1
DJ
8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
2429c060
PB
8785 fi
8786 done
859789af
AC
8787fi
8788
2429c060
PB
8789if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8790 for ncn_progname in ar; do
8791 if test -n "$ncn_target_tool_prefix"; then
8792 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8793set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8794echo "$as_me:$LINENO: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8796if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8798else
2429c060
PB
8799 if test -n "$AR_FOR_TARGET"; then
8800 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8801else
c6b750e1
DJ
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
7e0f7140
GK
8816fi
8817fi
c6b750e1 8818AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8819if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8820 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8821echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8822else
c6b750e1
DJ
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
7e0f7140
GK
8825fi
8826
2429c060
PB
8827 fi
8828 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8830set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8831echo "$as_me:$LINENO: checking for $ac_word" >&5
8832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8833if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8835else
2429c060
PB
8836 if test -n "$AR_FOR_TARGET"; then
8837 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8838else
c6b750e1
DJ
8839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840for as_dir in $PATH
8841do
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2
8849 fi
8850done
8851done
8852
7e0f7140
GK
8853fi
8854fi
c6b750e1 8855AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8856if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8857 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8858echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8859else
c6b750e1
DJ
8860 echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6
7e0f7140 8862fi
c6b750e1 8863
2429c060
PB
8864 fi
8865 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8866 done
8867fi
c6b750e1 8868
2429c060
PB
8869if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8870 set dummy ar
7e0f7140 8871 if test $build = $target ; then
2429c060 8872 AR_FOR_TARGET="$2"
7e0f7140 8873 else
2429c060 8874 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8875 fi
d3f5afc4
MS
8876else
8877 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8878fi
8879
3a35eeb3
PB
8880else
8881 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8882fi
8883
8884
8885
8886
8887if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8888 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8889 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8890echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8891 if test -x $with_build_time_tools/as; then
8892 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8893 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8894 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8895echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8896 else
c6b750e1
DJ
8897 echo "$as_me:$LINENO: result: no" >&5
8898echo "${ECHO_T}no" >&6
3a35eeb3 8899 fi
2429c060
PB
8900 elif test $build != $host && test $have_gcc_for_target = yes; then
8901 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8902 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8903 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8904 fi
8905fi
c6b750e1 8906if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8907 # Extract the first word of "as", so it can be a program name with args.
8908set dummy as; ac_word=$2
c6b750e1
DJ
8909echo "$as_me:$LINENO: checking for $ac_word" >&5
8910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8911if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8913else
c6b750e1
DJ
8914 case $AS_FOR_TARGET in
8915 [\\/]* | ?:[\\/]*)
2429c060
PB
8916 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8917 ;;
2429c060 8918 *)
c6b750e1
DJ
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920for as_dir in $gcc_cv_tool_dirs
8921do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8929 fi
8930done
8931done
8932
2429c060
PB
8933 ;;
8934esac
8935fi
c6b750e1
DJ
8936AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8937
2429c060 8938if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8939 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8940echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8941else
c6b750e1
DJ
8942 echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6
2429c060
PB
8944fi
8945
8946fi
8947if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
8948
8949
8950if test -n "$AS_FOR_TARGET"; then
8951 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8952elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8953 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8954fi
8955
8956if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8957 for ncn_progname in as; do
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959set dummy ${ncn_progname}; ac_word=$2
8960echo "$as_me:$LINENO: checking for $ac_word" >&5
8961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8962if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965 if test -n "$AS_FOR_TARGET"; then
8966 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8967else
8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969for as_dir in $PATH
8970do
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8978 fi
8979done
8980done
8981
8982fi
8983fi
8984AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8985if test -n "$AS_FOR_TARGET"; then
8986 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8987echo "${ECHO_T}$AS_FOR_TARGET" >&6
8988else
8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
8991fi
8992
8993 done
8994fi
8995
8996if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8997 for ncn_progname in as; do
c6b750e1
DJ
8998 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8999echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9000 if test -x $with_build_time_tools/${ncn_progname}; then
9001 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9002 echo "$as_me:$LINENO: result: yes" >&5
9003echo "${ECHO_T}yes" >&6
2429c060
PB
9004 break
9005 else
c6b750e1
DJ
9006 echo "$as_me:$LINENO: result: no" >&5
9007echo "${ECHO_T}no" >&6
2429c060
PB
9008 fi
9009 done
9010fi
9011
9012if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9013 for ncn_progname in as; do
9014 if test -n "$ncn_target_tool_prefix"; then
9015 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9016set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9017echo "$as_me:$LINENO: checking for $ac_word" >&5
9018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9019if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9021else
9022 if test -n "$AS_FOR_TARGET"; then
9023 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9024else
c6b750e1
DJ
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
2429c060
PB
9039fi
9040fi
c6b750e1 9041AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9042if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9043 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9044echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9045else
c6b750e1
DJ
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
2429c060
PB
9048fi
9049
9050 fi
9051 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9053set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9054echo "$as_me:$LINENO: checking for $ac_word" >&5
9055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9056if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9058else
9059 if test -n "$AS_FOR_TARGET"; then
9060 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9061else
c6b750e1
DJ
9062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063for as_dir in $PATH
9064do
9065 IFS=$as_save_IFS
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 break 2
9072 fi
9073done
9074done
9075
2429c060
PB
9076fi
9077fi
c6b750e1 9078AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9079if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9080 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9081echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9082else
c6b750e1
DJ
9083 echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
2429c060 9085fi
c6b750e1 9086
2429c060
PB
9087 fi
9088 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9089 done
9090fi
c6b750e1 9091
2429c060
PB
9092if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9093 set dummy as
9094 if test $build = $target ; then
9095 AS_FOR_TARGET="$2"
9096 else
9097 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9098 fi
d3f5afc4
MS
9099else
9100 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9101fi
9102
3a35eeb3
PB
9103else
9104 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9105fi
9106
9107
9108
9109
9110if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9111 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9112 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9113echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9114 if test -x $with_build_time_tools/dlltool; then
9115 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9116 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9117 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9118echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9119 else
c6b750e1
DJ
9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
3a35eeb3 9122 fi
2429c060
PB
9123 elif test $build != $host && test $have_gcc_for_target = yes; then
9124 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9125 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9126 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9127 fi
9128fi
c6b750e1 9129if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9130 # Extract the first word of "dlltool", so it can be a program name with args.
9131set dummy dlltool; ac_word=$2
c6b750e1
DJ
9132echo "$as_me:$LINENO: checking for $ac_word" >&5
9133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9134if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9136else
c6b750e1
DJ
9137 case $DLLTOOL_FOR_TARGET in
9138 [\\/]* | ?:[\\/]*)
2429c060
PB
9139 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9140 ;;
2429c060 9141 *)
c6b750e1
DJ
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143for as_dir in $gcc_cv_tool_dirs
9144do
9145 IFS=$as_save_IFS
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9149 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 break 2
9152 fi
9153done
9154done
9155
2429c060
PB
9156 ;;
9157esac
9158fi
c6b750e1
DJ
9159DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9160
2429c060 9161if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9162 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9163echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9164else
c6b750e1
DJ
9165 echo "$as_me:$LINENO: result: no" >&5
9166echo "${ECHO_T}no" >&6
2429c060
PB
9167fi
9168
9169fi
9170if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9171
9172
9173if test -n "$DLLTOOL_FOR_TARGET"; then
9174 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9175elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9176 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9177fi
9178
9179if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9180 for ncn_progname in dlltool; do
9181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9182set dummy ${ncn_progname}; ac_word=$2
9183echo "$as_me:$LINENO: checking for $ac_word" >&5
9184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9185if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188 if test -n "$DLLTOOL_FOR_TARGET"; then
9189 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9190else
9191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192for as_dir in $PATH
9193do
9194 IFS=$as_save_IFS
9195 test -z "$as_dir" && as_dir=.
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9198 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9200 break 2
9201 fi
9202done
9203done
9204
9205fi
9206fi
9207DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9208if test -n "$DLLTOOL_FOR_TARGET"; then
9209 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9210echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9211else
9212 echo "$as_me:$LINENO: result: no" >&5
9213echo "${ECHO_T}no" >&6
9214fi
9215
9216 done
9217fi
9218
9219if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9220 for ncn_progname in dlltool; do
c6b750e1
DJ
9221 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9222echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9223 if test -x $with_build_time_tools/${ncn_progname}; then
9224 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9225 echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6
2429c060
PB
9227 break
9228 else
c6b750e1
DJ
9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
2429c060
PB
9231 fi
9232 done
9233fi
9234
9235if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9236 for ncn_progname in dlltool; do
9237 if test -n "$ncn_target_tool_prefix"; then
9238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9240echo "$as_me:$LINENO: checking for $ac_word" >&5
9241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9242if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9244else
9245 if test -n "$DLLTOOL_FOR_TARGET"; then
9246 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9247else
c6b750e1
DJ
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260done
9261
2429c060
PB
9262fi
9263fi
c6b750e1 9264DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9265if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9266 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9267echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9268else
c6b750e1
DJ
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
2429c060
PB
9271fi
9272
9273 fi
9274 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9276set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9277echo "$as_me:$LINENO: checking for $ac_word" >&5
9278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9279if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9281else
9282 if test -n "$DLLTOOL_FOR_TARGET"; then
9283 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9284else
c6b750e1
DJ
9285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286for as_dir in $PATH
9287do
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9292 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 break 2
9295 fi
9296done
9297done
9298
2429c060
PB
9299fi
9300fi
c6b750e1 9301DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9302if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9303 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9304echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9305else
c6b750e1
DJ
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
2429c060 9308fi
c6b750e1 9309
2429c060
PB
9310 fi
9311 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9312 done
9313fi
c6b750e1 9314
2429c060
PB
9315if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9316 set dummy dlltool
9317 if test $build = $target ; then
9318 DLLTOOL_FOR_TARGET="$2"
9319 else
9320 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9321 fi
d3f5afc4
MS
9322else
9323 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9324fi
9325
3a35eeb3
PB
9326else
9327 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9328fi
9329
9330
9331
9332
9333if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9334 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9335 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9336echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9337 if test -x $with_build_time_tools/ld; then
9338 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9339 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9340 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9341echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9342 else
c6b750e1
DJ
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
3a35eeb3 9345 fi
2429c060
PB
9346 elif test $build != $host && test $have_gcc_for_target = yes; then
9347 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9348 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9349 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9350 fi
9351fi
c6b750e1 9352if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9353 # Extract the first word of "ld", so it can be a program name with args.
9354set dummy ld; ac_word=$2
c6b750e1
DJ
9355echo "$as_me:$LINENO: checking for $ac_word" >&5
9356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9357if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9359else
c6b750e1
DJ
9360 case $LD_FOR_TARGET in
9361 [\\/]* | ?:[\\/]*)
2429c060
PB
9362 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9363 ;;
2429c060 9364 *)
c6b750e1
DJ
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $gcc_cv_tool_dirs
9367do
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9372 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9375 fi
9376done
9377done
9378
2429c060
PB
9379 ;;
9380esac
9381fi
c6b750e1
DJ
9382LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9383
2429c060 9384if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9385 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9386echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9387else
c6b750e1
DJ
9388 echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
2429c060
PB
9390fi
9391
9392fi
9393if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9394
9395
9396if test -n "$LD_FOR_TARGET"; then
9397 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9398elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9399 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9400fi
9401
9402if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9403 for ncn_progname in ld; do
9404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405set dummy ${ncn_progname}; ac_word=$2
9406echo "$as_me:$LINENO: checking for $ac_word" >&5
9407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9408if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411 if test -n "$LD_FOR_TARGET"; then
9412 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9413else
9414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415for as_dir in $PATH
9416do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9421 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9424 fi
9425done
9426done
9427
9428fi
9429fi
9430LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9431if test -n "$LD_FOR_TARGET"; then
9432 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9433echo "${ECHO_T}$LD_FOR_TARGET" >&6
9434else
9435 echo "$as_me:$LINENO: result: no" >&5
9436echo "${ECHO_T}no" >&6
9437fi
9438
9439 done
9440fi
9441
9442if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9443 for ncn_progname in ld; do
c6b750e1
DJ
9444 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9445echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9446 if test -x $with_build_time_tools/${ncn_progname}; then
9447 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9448 echo "$as_me:$LINENO: result: yes" >&5
9449echo "${ECHO_T}yes" >&6
2429c060
PB
9450 break
9451 else
c6b750e1
DJ
9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
2429c060
PB
9454 fi
9455 done
9456fi
9457
9458if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9459 for ncn_progname in ld; do
9460 if test -n "$ncn_target_tool_prefix"; then
9461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9462set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9463echo "$as_me:$LINENO: checking for $ac_word" >&5
9464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9465if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9467else
9468 if test -n "$LD_FOR_TARGET"; then
9469 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9470else
c6b750e1
DJ
9471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $PATH
9473do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482done
9483done
9484
2429c060
PB
9485fi
9486fi
c6b750e1 9487LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9488if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9489 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9490echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9491else
c6b750e1
DJ
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
2429c060
PB
9494fi
9495
9496 fi
9497 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9499set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9500echo "$as_me:$LINENO: checking for $ac_word" >&5
9501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9502if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9504else
9505 if test -n "$LD_FOR_TARGET"; then
9506 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9507else
c6b750e1
DJ
9508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509for as_dir in $PATH
9510do
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9515 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 break 2
9518 fi
9519done
9520done
9521
2429c060
PB
9522fi
9523fi
c6b750e1 9524LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9525if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9526 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9527echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9528else
c6b750e1
DJ
9529 echo "$as_me:$LINENO: result: no" >&5
9530echo "${ECHO_T}no" >&6
2429c060 9531fi
c6b750e1 9532
2429c060
PB
9533 fi
9534 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9535 done
9536fi
c6b750e1 9537
2429c060
PB
9538if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9539 set dummy ld
9540 if test $build = $target ; then
9541 LD_FOR_TARGET="$2"
9542 else
9543 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9544 fi
d3f5afc4
MS
9545else
9546 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9547fi
9548
3a35eeb3
PB
9549else
9550 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9551fi
9552
9553
9554
9555
9556if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9557 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9558 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9559echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9560 if test -x $with_build_time_tools/lipo; then
9561 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9562 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9563 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9564echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9565 else
c6b750e1
DJ
9566 echo "$as_me:$LINENO: result: no" >&5
9567echo "${ECHO_T}no" >&6
3a35eeb3 9568 fi
2429c060
PB
9569 elif test $build != $host && test $have_gcc_for_target = yes; then
9570 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9571 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9572 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9573 fi
9574fi
9a819804
AO
9575if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9576 # Extract the first word of "lipo", so it can be a program name with args.
9577set dummy lipo; ac_word=$2
9578echo "$as_me:$LINENO: checking for $ac_word" >&5
9579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9580if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583 case $LIPO_FOR_TARGET in
9584 [\\/]* | ?:[\\/]*)
9585 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9586 ;;
9587 *)
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $gcc_cv_tool_dirs
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599done
9600done
9601
9602 ;;
9603esac
9604fi
9605LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9606
9607if test -n "$LIPO_FOR_TARGET"; then
9608 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9609echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9610else
9611 echo "$as_me:$LINENO: result: no" >&5
9612echo "${ECHO_T}no" >&6
9613fi
9614
9615fi
9616if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9617
9618
9619if test -n "$LIPO_FOR_TARGET"; then
9620 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9621elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9622 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9623fi
9624
9625if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9626 for ncn_progname in lipo; do
9627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9628set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9629echo "$as_me:$LINENO: checking for $ac_word" >&5
9630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9631if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9632 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9633else
9a819804
AO
9634 if test -n "$LIPO_FOR_TARGET"; then
9635 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9636else
9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638for as_dir in $PATH
c6b750e1
DJ
9639do
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9644 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9647 fi
9648done
9649done
9650
2429c060 9651fi
9a819804
AO
9652fi
9653LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9654if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9655 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9656echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9657else
c6b750e1
DJ
9658 echo "$as_me:$LINENO: result: no" >&5
9659echo "${ECHO_T}no" >&6
2429c060
PB
9660fi
9661
9a819804 9662 done
2429c060 9663fi
9a819804
AO
9664
9665if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9666 for ncn_progname in lipo; do
c6b750e1
DJ
9667 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9668echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9669 if test -x $with_build_time_tools/${ncn_progname}; then
9670 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
2429c060
PB
9673 break
9674 else
c6b750e1
DJ
9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
2429c060
PB
9677 fi
9678 done
9679fi
9680
9681if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9682 for ncn_progname in lipo; do
9683 if test -n "$ncn_target_tool_prefix"; then
9684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9685set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9686echo "$as_me:$LINENO: checking for $ac_word" >&5
9687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9688if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9690else
9691 if test -n "$LIPO_FOR_TARGET"; then
9692 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9693else
c6b750e1
DJ
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706done
9707
2429c060
PB
9708fi
9709fi
c6b750e1 9710LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9711if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9712 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9713echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9714else
c6b750e1
DJ
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
2429c060
PB
9717fi
9718
9719 fi
9720 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9722set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9723echo "$as_me:$LINENO: checking for $ac_word" >&5
9724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9725if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9727else
9728 if test -n "$LIPO_FOR_TARGET"; then
9729 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9730else
c6b750e1
DJ
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742done
9743done
9744
2429c060
PB
9745fi
9746fi
c6b750e1 9747LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9748if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9749 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9750echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9751else
c6b750e1
DJ
9752 echo "$as_me:$LINENO: result: no" >&5
9753echo "${ECHO_T}no" >&6
2429c060 9754fi
c6b750e1 9755
2429c060
PB
9756 fi
9757 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9758 done
9759fi
c6b750e1 9760
2429c060
PB
9761if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9762 set dummy lipo
9763 if test $build = $target ; then
9764 LIPO_FOR_TARGET="$2"
9765 else
9766 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9767 fi
d3f5afc4
MS
9768else
9769 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9770fi
9771
3a35eeb3
PB
9772else
9773 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9774fi
9775
9776
9777
9778
9779if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9780 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9781 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9782echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9783 if test -x $with_build_time_tools/nm; then
9784 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9785 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9786 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9787echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9788 else
c6b750e1
DJ
9789 echo "$as_me:$LINENO: result: no" >&5
9790echo "${ECHO_T}no" >&6
3a35eeb3 9791 fi
2429c060
PB
9792 elif test $build != $host && test $have_gcc_for_target = yes; then
9793 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9794 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9795 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9796 fi
9797fi
c6b750e1 9798if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9799 # Extract the first word of "nm", so it can be a program name with args.
9800set dummy nm; ac_word=$2
c6b750e1
DJ
9801echo "$as_me:$LINENO: checking for $ac_word" >&5
9802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9803if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9805else
c6b750e1
DJ
9806 case $NM_FOR_TARGET in
9807 [\\/]* | ?:[\\/]*)
2429c060
PB
9808 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9809 ;;
2429c060 9810 *)
c6b750e1
DJ
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $gcc_cv_tool_dirs
9813do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9818 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9821 fi
9822done
9823done
9824
2429c060
PB
9825 ;;
9826esac
9827fi
c6b750e1
DJ
9828NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9829
2429c060 9830if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9831 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9832echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9833else
c6b750e1
DJ
9834 echo "$as_me:$LINENO: result: no" >&5
9835echo "${ECHO_T}no" >&6
2429c060
PB
9836fi
9837
9838fi
9839if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9840
9841
9842if test -n "$NM_FOR_TARGET"; then
9843 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9844elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9845 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9846fi
9847
9848if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9849 for ncn_progname in nm; do
9850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9851set dummy ${ncn_progname}; ac_word=$2
9852echo "$as_me:$LINENO: checking for $ac_word" >&5
9853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9854if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857 if test -n "$NM_FOR_TARGET"; then
9858 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9859else
9860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9867 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871done
9872done
9873
9874fi
9875fi
9876NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9877if test -n "$NM_FOR_TARGET"; then
9878 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9879echo "${ECHO_T}$NM_FOR_TARGET" >&6
9880else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883fi
9884
9885 done
9886fi
9887
9888if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9889 for ncn_progname in nm; do
c6b750e1
DJ
9890 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9891echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9892 if test -x $with_build_time_tools/${ncn_progname}; then
9893 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9894 echo "$as_me:$LINENO: result: yes" >&5
9895echo "${ECHO_T}yes" >&6
2429c060
PB
9896 break
9897 else
c6b750e1
DJ
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
2429c060
PB
9900 fi
9901 done
9902fi
9903
9904if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9905 for ncn_progname in nm; do
9906 if test -n "$ncn_target_tool_prefix"; then
9907 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9908set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9909echo "$as_me:$LINENO: checking for $ac_word" >&5
9910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9911if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9913else
55db4b87
PB
9914 if test -n "$NM_FOR_TARGET"; then
9915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9916else
c6b750e1
DJ
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929done
9930
859789af
AC
9931fi
9932fi
c6b750e1 9933NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9934if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9935 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9936echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9937else
c6b750e1
DJ
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
859789af
AC
9940fi
9941
2429c060
PB
9942 fi
9943 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9945set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9946echo "$as_me:$LINENO: checking for $ac_word" >&5
9947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9948if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9950else
05cbd757
PB
9951 if test -n "$NM_FOR_TARGET"; then
9952 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9953else
c6b750e1
DJ
9954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955for as_dir in $PATH
9956do
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9961 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 break 2
9964 fi
9965done
9966done
9967
859789af
AC
9968fi
9969fi
c6b750e1 9970NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 9971if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9972 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9973echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9974else
c6b750e1
DJ
9975 echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6
859789af 9977fi
c6b750e1 9978
2429c060
PB
9979 fi
9980 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9981 done
9982fi
c6b750e1 9983
05cbd757
PB
9984if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9985 set dummy nm
9986 if test $build = $target ; then
9987 NM_FOR_TARGET="$2"
859789af 9988 else
05cbd757 9989 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 9990 fi
d3f5afc4
MS
9991else
9992 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
9993fi
9994
3a35eeb3
PB
9995else
9996 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
9997fi
9998
9999
10000
10001
10002if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10003 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10004 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10005echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10006 if test -x $with_build_time_tools/objdump; then
10007 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10008 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10009 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10010echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10011 else
c6b750e1
DJ
10012 echo "$as_me:$LINENO: result: no" >&5
10013echo "${ECHO_T}no" >&6
3a35eeb3 10014 fi
2429c060
PB
10015 elif test $build != $host && test $have_gcc_for_target = yes; then
10016 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10017 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10018 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10019 fi
10020fi
c6b750e1 10021if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10022 # Extract the first word of "objdump", so it can be a program name with args.
10023set dummy objdump; ac_word=$2
c6b750e1
DJ
10024echo "$as_me:$LINENO: checking for $ac_word" >&5
10025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10026if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10028else
c6b750e1
DJ
10029 case $OBJDUMP_FOR_TARGET in
10030 [\\/]* | ?:[\\/]*)
2429c060
PB
10031 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10032 ;;
2429c060 10033 *)
c6b750e1
DJ
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $gcc_cv_tool_dirs
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045done
10046done
10047
2429c060
PB
10048 ;;
10049esac
10050fi
c6b750e1
DJ
10051OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10052
2429c060 10053if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10054 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10055echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10056else
c6b750e1
DJ
10057 echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
2429c060
PB
10059fi
10060
10061fi
10062if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10063
10064
10065if test -n "$OBJDUMP_FOR_TARGET"; then
10066 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10067elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10068 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10069fi
10070
10071if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10072 for ncn_progname in objdump; do
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074set dummy ${ncn_progname}; ac_word=$2
10075echo "$as_me:$LINENO: checking for $ac_word" >&5
10076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10077if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10079else
10080 if test -n "$OBJDUMP_FOR_TARGET"; then
10081 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095done
10096
10097fi
10098fi
10099OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10100if test -n "$OBJDUMP_FOR_TARGET"; then
10101 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10102echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10103else
10104 echo "$as_me:$LINENO: result: no" >&5
10105echo "${ECHO_T}no" >&6
10106fi
10107
10108 done
10109fi
10110
10111if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10112 for ncn_progname in objdump; do
c6b750e1
DJ
10113 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10114echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10115 if test -x $with_build_time_tools/${ncn_progname}; then
10116 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10117 echo "$as_me:$LINENO: result: yes" >&5
10118echo "${ECHO_T}yes" >&6
2429c060
PB
10119 break
10120 else
c6b750e1
DJ
10121 echo "$as_me:$LINENO: result: no" >&5
10122echo "${ECHO_T}no" >&6
2429c060
PB
10123 fi
10124 done
10125fi
10126
10127if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10128 for ncn_progname in objdump; do
10129 if test -n "$ncn_target_tool_prefix"; then
10130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10131set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10132echo "$as_me:$LINENO: checking for $ac_word" >&5
10133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10134if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10136else
10137 if test -n "$OBJDUMP_FOR_TARGET"; then
10138 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10139else
c6b750e1
DJ
10140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $PATH
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10147 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10150 fi
10151done
10152done
10153
5ae72758
DJ
10154fi
10155fi
c6b750e1 10156OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10157if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10158 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10159echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10160else
c6b750e1
DJ
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
5ae72758
DJ
10163fi
10164
2429c060
PB
10165 fi
10166 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10168set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10169echo "$as_me:$LINENO: checking for $ac_word" >&5
10170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10171if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10173else
10174 if test -n "$OBJDUMP_FOR_TARGET"; then
10175 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10176else
c6b750e1
DJ
10177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178for as_dir in $PATH
10179do
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10184 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10187 fi
10188done
10189done
10190
5ae72758
DJ
10191fi
10192fi
c6b750e1 10193OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10194if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10195 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10196echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10197else
c6b750e1
DJ
10198 echo "$as_me:$LINENO: result: no" >&5
10199echo "${ECHO_T}no" >&6
5ae72758 10200fi
c6b750e1 10201
2429c060
PB
10202 fi
10203 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10204 done
10205fi
c6b750e1 10206
5ae72758
DJ
10207if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10208 set dummy objdump
10209 if test $build = $target ; then
10210 OBJDUMP_FOR_TARGET="$2"
10211 else
10212 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10213 fi
d3f5afc4
MS
10214else
10215 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10216fi
10217
3a35eeb3
PB
10218else
10219 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10220fi
10221
10222
10223
10224
10225if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10226 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10227 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10228echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10229 if test -x $with_build_time_tools/ranlib; then
10230 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10231 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10232 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10233echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10234 else
c6b750e1
DJ
10235 echo "$as_me:$LINENO: result: no" >&5
10236echo "${ECHO_T}no" >&6
3a35eeb3 10237 fi
2429c060
PB
10238 elif test $build != $host && test $have_gcc_for_target = yes; then
10239 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10240 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10241 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10242 fi
10243fi
c6b750e1 10244if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10245 # Extract the first word of "ranlib", so it can be a program name with args.
10246set dummy ranlib; ac_word=$2
c6b750e1
DJ
10247echo "$as_me:$LINENO: checking for $ac_word" >&5
10248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10249if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10251else
c6b750e1
DJ
10252 case $RANLIB_FOR_TARGET in
10253 [\\/]* | ?:[\\/]*)
2429c060
PB
10254 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10255 ;;
2429c060 10256 *)
c6b750e1
DJ
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $gcc_cv_tool_dirs
10259do
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10264 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 break 2
10267 fi
10268done
10269done
10270
2429c060
PB
10271 ;;
10272esac
10273fi
c6b750e1
DJ
10274RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10275
2429c060 10276if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10277 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10278echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10279else
c6b750e1
DJ
10280 echo "$as_me:$LINENO: result: no" >&5
10281echo "${ECHO_T}no" >&6
2429c060
PB
10282fi
10283
10284fi
10285if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10286
10287
10288if test -n "$RANLIB_FOR_TARGET"; then
10289 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10290elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10291 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10292fi
10293
10294if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10295 for ncn_progname in ranlib; do
10296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297set dummy ${ncn_progname}; ac_word=$2
10298echo "$as_me:$LINENO: checking for $ac_word" >&5
10299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10300if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 if test -n "$RANLIB_FOR_TARGET"; then
10304 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10305else
10306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307for as_dir in $PATH
10308do
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10316 fi
10317done
10318done
10319
10320fi
10321fi
10322RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10323if test -n "$RANLIB_FOR_TARGET"; then
10324 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10325echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10326else
10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
10329fi
10330
10331 done
10332fi
10333
10334if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10335 for ncn_progname in ranlib; do
c6b750e1
DJ
10336 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10337echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10338 if test -x $with_build_time_tools/${ncn_progname}; then
10339 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10340 echo "$as_me:$LINENO: result: yes" >&5
10341echo "${ECHO_T}yes" >&6
2429c060
PB
10342 break
10343 else
c6b750e1
DJ
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
2429c060
PB
10346 fi
10347 done
10348fi
10349
10350if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10351 for ncn_progname in ranlib; do
10352 if test -n "$ncn_target_tool_prefix"; then
10353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10354set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10355echo "$as_me:$LINENO: checking for $ac_word" >&5
10356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10357if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10359else
55db4b87
PB
10360 if test -n "$RANLIB_FOR_TARGET"; then
10361 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10362else
c6b750e1
DJ
10363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $PATH
10365do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374done
10375done
10376
859789af
AC
10377fi
10378fi
c6b750e1 10379RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10380if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10381 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10382echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10383else
c6b750e1
DJ
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
859789af
AC
10386fi
10387
2429c060
PB
10388 fi
10389 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10391set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10392echo "$as_me:$LINENO: checking for $ac_word" >&5
10393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10394if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10396else
05cbd757
PB
10397 if test -n "$RANLIB_FOR_TARGET"; then
10398 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10399else
c6b750e1
DJ
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
10405 for ac_exec_ext in '' $ac_executable_extensions; do
10406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10407 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 break 2
10410 fi
10411done
10412done
10413
859789af
AC
10414fi
10415fi
c6b750e1 10416RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10417if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10418 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10419echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10420else
c6b750e1
DJ
10421 echo "$as_me:$LINENO: result: no" >&5
10422echo "${ECHO_T}no" >&6
859789af 10423fi
c6b750e1 10424
2429c060
PB
10425 fi
10426 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10427 done
10428fi
c6b750e1 10429
2429c060
PB
10430if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10431 set dummy ranlib
10432 if test $build = $target ; then
10433 RANLIB_FOR_TARGET="$2"
10434 else
10435 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10436 fi
d3f5afc4
MS
10437else
10438 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10439fi
05cbd757 10440
3a35eeb3
PB
10441else
10442 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10443fi
10444
2429c060
PB
10445
10446
10447
10448if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10449 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10450 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10451echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10452 if test -x $with_build_time_tools/strip; then
10453 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10454 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10455 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10456echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10457 else
c6b750e1
DJ
10458 echo "$as_me:$LINENO: result: no" >&5
10459echo "${ECHO_T}no" >&6
3a35eeb3 10460 fi
2429c060
PB
10461 elif test $build != $host && test $have_gcc_for_target = yes; then
10462 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10463 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10464 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10465 fi
10466fi
c6b750e1 10467if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10468 # Extract the first word of "strip", so it can be a program name with args.
10469set dummy strip; ac_word=$2
c6b750e1
DJ
10470echo "$as_me:$LINENO: checking for $ac_word" >&5
10471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10472if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10474else
c6b750e1
DJ
10475 case $STRIP_FOR_TARGET in
10476 [\\/]* | ?:[\\/]*)
2429c060
PB
10477 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10478 ;;
2429c060 10479 *)
c6b750e1
DJ
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $gcc_cv_tool_dirs
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10487 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10490 fi
10491done
10492done
10493
2429c060
PB
10494 ;;
10495esac
10496fi
c6b750e1
DJ
10497STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10498
2429c060 10499if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10500 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10501echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10502else
c6b750e1
DJ
10503 echo "$as_me:$LINENO: result: no" >&5
10504echo "${ECHO_T}no" >&6
2429c060
PB
10505fi
10506
10507fi
10508if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10509
10510
10511if test -n "$STRIP_FOR_TARGET"; then
10512 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10513elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10514 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10515fi
10516
10517if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10518 for ncn_progname in strip; do
10519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10520set dummy ${ncn_progname}; ac_word=$2
10521echo "$as_me:$LINENO: checking for $ac_word" >&5
10522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10523if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525else
10526 if test -n "$STRIP_FOR_TARGET"; then
10527 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10528else
10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $PATH
10531do
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10539 fi
10540done
10541done
10542
10543fi
10544fi
10545STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10546if test -n "$STRIP_FOR_TARGET"; then
10547 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10548echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10549else
10550 echo "$as_me:$LINENO: result: no" >&5
10551echo "${ECHO_T}no" >&6
10552fi
10553
10554 done
10555fi
10556
10557if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10558 for ncn_progname in strip; do
c6b750e1
DJ
10559 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10560echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10561 if test -x $with_build_time_tools/${ncn_progname}; then
10562 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10563 echo "$as_me:$LINENO: result: yes" >&5
10564echo "${ECHO_T}yes" >&6
2429c060
PB
10565 break
10566 else
c6b750e1
DJ
10567 echo "$as_me:$LINENO: result: no" >&5
10568echo "${ECHO_T}no" >&6
2429c060
PB
10569 fi
10570 done
10571fi
10572
10573if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10574 for ncn_progname in strip; do
10575 if test -n "$ncn_target_tool_prefix"; then
10576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10577set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10578echo "$as_me:$LINENO: checking for $ac_word" >&5
10579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10580if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10582else
10583 if test -n "$STRIP_FOR_TARGET"; then
10584 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10585else
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597done
10598done
10599
7e0f7140
GK
10600fi
10601fi
c6b750e1 10602STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10603if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10604 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10605echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10606else
c6b750e1
DJ
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
7e0f7140
GK
10609fi
10610
2429c060
PB
10611 fi
10612 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10614set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10615echo "$as_me:$LINENO: checking for $ac_word" >&5
10616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10617if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10619else
10620 if test -n "$STRIP_FOR_TARGET"; then
10621 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10622else
c6b750e1
DJ
10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634done
10635done
10636
7e0f7140
GK
10637fi
10638fi
c6b750e1 10639STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10640if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10641 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10642echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10643else
c6b750e1
DJ
10644 echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6
7e0f7140 10646fi
c6b750e1 10647
2429c060
PB
10648 fi
10649 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10650 done
10651fi
c6b750e1 10652
7e0f7140
GK
10653if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10654 set dummy strip
10655 if test $build = $target ; then
10656 STRIP_FOR_TARGET="$2"
10657 else
10658 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10659 fi
d3f5afc4
MS
10660else
10661 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10662fi
10663
3a35eeb3
PB
10664else
10665 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10666fi
10667
10668
10669
10670
10671if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10672 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10673 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10674echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10675 if test -x $with_build_time_tools/windres; then
10676 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10677 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10678 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10679echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10680 else
c6b750e1
DJ
10681 echo "$as_me:$LINENO: result: no" >&5
10682echo "${ECHO_T}no" >&6
3a35eeb3 10683 fi
2429c060
PB
10684 elif test $build != $host && test $have_gcc_for_target = yes; then
10685 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10686 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10687 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10688 fi
10689fi
c6b750e1 10690if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10691 # Extract the first word of "windres", so it can be a program name with args.
10692set dummy windres; ac_word=$2
c6b750e1
DJ
10693echo "$as_me:$LINENO: checking for $ac_word" >&5
10694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10695if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10697else
c6b750e1
DJ
10698 case $WINDRES_FOR_TARGET in
10699 [\\/]* | ?:[\\/]*)
2429c060
PB
10700 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10701 ;;
2429c060 10702 *)
c6b750e1
DJ
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704for as_dir in $gcc_cv_tool_dirs
10705do
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10710 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10713 fi
10714done
10715done
10716
2429c060
PB
10717 ;;
10718esac
10719fi
c6b750e1
DJ
10720WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10721
2429c060 10722if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10723 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10724echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10725else
c6b750e1
DJ
10726 echo "$as_me:$LINENO: result: no" >&5
10727echo "${ECHO_T}no" >&6
2429c060
PB
10728fi
10729
10730fi
10731if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10732
10733
10734if test -n "$WINDRES_FOR_TARGET"; then
10735 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10736elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10737 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10738fi
10739
10740if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10741 for ncn_progname in windres; do
10742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10743set dummy ${ncn_progname}; ac_word=$2
10744echo "$as_me:$LINENO: checking for $ac_word" >&5
10745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10746if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749 if test -n "$WINDRES_FOR_TARGET"; then
10750 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10751else
10752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753for as_dir in $PATH
10754do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10762 fi
10763done
10764done
10765
10766fi
10767fi
10768WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10769if test -n "$WINDRES_FOR_TARGET"; then
10770 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10771echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10772else
10773 echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6
10775fi
10776
10777 done
10778fi
10779
10780if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10781 for ncn_progname in windres; do
c6b750e1
DJ
10782 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10783echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10784 if test -x $with_build_time_tools/${ncn_progname}; then
10785 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10786 echo "$as_me:$LINENO: result: yes" >&5
10787echo "${ECHO_T}yes" >&6
2429c060
PB
10788 break
10789 else
c6b750e1
DJ
10790 echo "$as_me:$LINENO: result: no" >&5
10791echo "${ECHO_T}no" >&6
2429c060
PB
10792 fi
10793 done
10794fi
10795
10796if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10797 for ncn_progname in windres; do
10798 if test -n "$ncn_target_tool_prefix"; then
10799 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10800set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10801echo "$as_me:$LINENO: checking for $ac_word" >&5
10802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10803if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10805else
55db4b87
PB
10806 if test -n "$WINDRES_FOR_TARGET"; then
10807 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10808else
c6b750e1
DJ
10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10816 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821done
10822
859789af
AC
10823fi
10824fi
c6b750e1 10825WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10826if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10827 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10828echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10829else
c6b750e1
DJ
10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
859789af
AC
10832fi
10833
2429c060
PB
10834 fi
10835 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10837set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10838echo "$as_me:$LINENO: checking for $ac_word" >&5
10839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10840if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10842else
05cbd757
PB
10843 if test -n "$WINDRES_FOR_TARGET"; then
10844 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10845else
c6b750e1
DJ
10846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $PATH
10848do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10853 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857done
10858done
10859
859789af
AC
10860fi
10861fi
c6b750e1 10862WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10863if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10864 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10865echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10866else
c6b750e1
DJ
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
859789af 10869fi
c6b750e1 10870
2429c060
PB
10871 fi
10872 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10873 done
10874fi
c6b750e1 10875
05cbd757
PB
10876if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10877 set dummy windres
10878 if test $build = $target ; then
10879 WINDRES_FOR_TARGET="$2"
859789af 10880 else
05cbd757 10881 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10882 fi
d3f5afc4
MS
10883else
10884 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10885fi
10886
3a35eeb3
PB
10887else
10888 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10889fi
10890
852e5f18 10891
0c24b341
NC
10892
10893
10894if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10895 if test -n "$with_build_time_tools"; then
10896 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10897echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10898 if test -x $with_build_time_tools/windmc; then
10899 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10900 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10901 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10902echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10903 else
10904 echo "$as_me:$LINENO: result: no" >&5
10905echo "${ECHO_T}no" >&6
10906 fi
10907 elif test $build != $host && test $have_gcc_for_target = yes; then
10908 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10909 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10910 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10911 fi
10912fi
10913if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10914 # Extract the first word of "windmc", so it can be a program name with args.
10915set dummy windmc; ac_word=$2
10916echo "$as_me:$LINENO: checking for $ac_word" >&5
10917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10918if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 case $WINDMC_FOR_TARGET in
10922 [\\/]* | ?:[\\/]*)
10923 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10924 ;;
10925 *)
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $gcc_cv_tool_dirs
10928do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10936 fi
10937done
10938done
10939
10940 ;;
10941esac
10942fi
10943WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10944
10945if test -n "$WINDMC_FOR_TARGET"; then
10946 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10947echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10948else
10949 echo "$as_me:$LINENO: result: no" >&5
10950echo "${ECHO_T}no" >&6
10951fi
10952
10953fi
10954if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10955
10956
10957if test -n "$WINDMC_FOR_TARGET"; then
10958 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10959elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10960 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10961fi
10962
10963if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10964 for ncn_progname in windmc; do
10965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10966set dummy ${ncn_progname}; ac_word=$2
10967echo "$as_me:$LINENO: checking for $ac_word" >&5
10968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 if test -n "$WINDMC_FOR_TARGET"; then
10973 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987done
10988
10989fi
10990fi
10991WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10992if test -n "$WINDMC_FOR_TARGET"; then
10993 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10994echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10995else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998fi
10999
11000 done
11001fi
11002
11003if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11004 for ncn_progname in windmc; do
11005 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11006echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11007 if test -x $with_build_time_tools/${ncn_progname}; then
11008 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11009 echo "$as_me:$LINENO: result: yes" >&5
11010echo "${ECHO_T}yes" >&6
11011 break
11012 else
11013 echo "$as_me:$LINENO: result: no" >&5
11014echo "${ECHO_T}no" >&6
11015 fi
11016 done
11017fi
11018
11019if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11020 for ncn_progname in windmc; do
11021 if test -n "$ncn_target_tool_prefix"; then
11022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11023set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11024echo "$as_me:$LINENO: checking for $ac_word" >&5
11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 if test -n "$WINDMC_FOR_TARGET"; then
11030 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044done
11045
11046fi
11047fi
11048WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11049if test -n "$WINDMC_FOR_TARGET"; then
11050 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11051echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11052else
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
11055fi
11056
11057 fi
11058 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11060set dummy ${ncn_progname}; ac_word=$2
11061echo "$as_me:$LINENO: checking for $ac_word" >&5
11062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11063if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065else
11066 if test -n "$WINDMC_FOR_TARGET"; then
11067 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11068else
11069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070for as_dir in $PATH
11071do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11079 fi
11080done
11081done
11082
11083fi
11084fi
11085WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11086if test -n "$WINDMC_FOR_TARGET"; then
11087 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11088echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11089else
11090 echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6
11092fi
11093
11094 fi
11095 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11096 done
11097fi
11098
11099if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11100 set dummy windmc
11101 if test $build = $target ; then
11102 WINDMC_FOR_TARGET="$2"
11103 else
11104 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11105 fi
11106else
11107 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11108fi
11109
11110else
11111 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11112fi
11113
11114
be01d343
PB
11115RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11116
c6b750e1
DJ
11117echo "$as_me:$LINENO: checking where to find the target ar" >&5
11118echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11119if test "x${build}" != "x${host}" ; then
2429c060
PB
11120 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11121 # We already found the complete path
b8025f34
AS
11122 ac_dir=`dirname $AR_FOR_TARGET`
11123 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11124echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11125 else
11126 # Canadian cross, just use what we found
c6b750e1
DJ
11127 echo "$as_me:$LINENO: result: pre-installed" >&5
11128echo "${ECHO_T}pre-installed" >&6
2429c060 11129 fi
be01d343
PB
11130else
11131 ok=yes
11132 case " ${configdirs} " in
11133 *" binutils "*) ;;
11134 *) ok=no ;;
11135 esac
c6b750e1 11136
be01d343
PB
11137 if test $ok = yes; then
11138 # An in-tree tool is available and we can use it
11139 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11140 echo "$as_me:$LINENO: result: just compiled" >&5
11141echo "${ECHO_T}just compiled" >&6
2429c060
PB
11142 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11143 # We already found the complete path
b8025f34
AS
11144 ac_dir=`dirname $AR_FOR_TARGET`
11145 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11146echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11147 elif test "x$target" = "x$host"; then
11148 # We can use an host tool
11149 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11150 echo "$as_me:$LINENO: result: host tool" >&5
11151echo "${ECHO_T}host tool" >&6
be01d343
PB
11152 else
11153 # We need a cross tool
c6b750e1
DJ
11154 echo "$as_me:$LINENO: result: pre-installed" >&5
11155echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11156 fi
11157fi
4b900473 11158
c6b750e1
DJ
11159echo "$as_me:$LINENO: checking where to find the target as" >&5
11160echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11161if test "x${build}" != "x${host}" ; then
2429c060
PB
11162 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11163 # We already found the complete path
b8025f34
AS
11164 ac_dir=`dirname $AS_FOR_TARGET`
11165 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11166echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11167 else
11168 # Canadian cross, just use what we found
c6b750e1
DJ
11169 echo "$as_me:$LINENO: result: pre-installed" >&5
11170echo "${ECHO_T}pre-installed" >&6
2429c060 11171 fi
be01d343
PB
11172else
11173 ok=yes
11174 case " ${configdirs} " in
11175 *" gas "*) ;;
11176 *) ok=no ;;
11177 esac
c6b750e1 11178
be01d343
PB
11179 if test $ok = yes; then
11180 # An in-tree tool is available and we can use it
11181 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11182 echo "$as_me:$LINENO: result: just compiled" >&5
11183echo "${ECHO_T}just compiled" >&6
2429c060
PB
11184 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11185 # We already found the complete path
b8025f34
AS
11186 ac_dir=`dirname $AS_FOR_TARGET`
11187 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11188echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11189 elif test "x$target" = "x$host"; then
11190 # We can use an host tool
11191 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11192 echo "$as_me:$LINENO: result: host tool" >&5
11193echo "${ECHO_T}host tool" >&6
be01d343
PB
11194 else
11195 # We need a cross tool
c6b750e1
DJ
11196 echo "$as_me:$LINENO: result: pre-installed" >&5
11197echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11198 fi
11199fi
4b900473 11200
c6b750e1
DJ
11201echo "$as_me:$LINENO: checking where to find the target cc" >&5
11202echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11203if test "x${build}" != "x${host}" ; then
2429c060
PB
11204 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11205 # We already found the complete path
b8025f34
AS
11206 ac_dir=`dirname $CC_FOR_TARGET`
11207 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11208echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11209 else
11210 # Canadian cross, just use what we found
c6b750e1
DJ
11211 echo "$as_me:$LINENO: result: pre-installed" >&5
11212echo "${ECHO_T}pre-installed" >&6
2429c060 11213 fi
be01d343
PB
11214else
11215 ok=yes
11216 case " ${configdirs} " in
11217 *" gcc "*) ;;
11218 *) ok=no ;;
11219 esac
c6b750e1 11220
be01d343
PB
11221 if test $ok = yes; then
11222 # An in-tree tool is available and we can use it
11223 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11224 echo "$as_me:$LINENO: result: just compiled" >&5
11225echo "${ECHO_T}just compiled" >&6
2429c060
PB
11226 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
b8025f34
AS
11228 ac_dir=`dirname $CC_FOR_TARGET`
11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11231 elif test "x$target" = "x$host"; then
11232 # We can use an host tool
11233 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11234 echo "$as_me:$LINENO: result: host tool" >&5
11235echo "${ECHO_T}host tool" >&6
be01d343
PB
11236 else
11237 # We need a cross tool
c6b750e1
DJ
11238 echo "$as_me:$LINENO: result: pre-installed" >&5
11239echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11240 fi
11241fi
4b900473 11242
c6b750e1
DJ
11243echo "$as_me:$LINENO: checking where to find the target c++" >&5
11244echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11245if test "x${build}" != "x${host}" ; then
2429c060
PB
11246 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11247 # We already found the complete path
b8025f34
AS
11248 ac_dir=`dirname $CXX_FOR_TARGET`
11249 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11250echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11251 else
11252 # Canadian cross, just use what we found
c6b750e1
DJ
11253 echo "$as_me:$LINENO: result: pre-installed" >&5
11254echo "${ECHO_T}pre-installed" >&6
2429c060 11255 fi
be01d343
PB
11256else
11257 ok=yes
11258 case " ${configdirs} " in
11259 *" gcc "*) ;;
11260 *) ok=no ;;
11261 esac
11262 case ,${enable_languages}, in
11263 *,c++,*) ;;
11264 *) ok=no ;;
11265 esac
11266 if test $ok = yes; then
11267 # An in-tree tool is available and we can use it
11268 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
11269 echo "$as_me:$LINENO: result: just compiled" >&5
11270echo "${ECHO_T}just compiled" >&6
2429c060
PB
11271 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11272 # We already found the complete path
b8025f34
AS
11273 ac_dir=`dirname $CXX_FOR_TARGET`
11274 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11275echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11276 elif test "x$target" = "x$host"; then
11277 # We can use an host tool
11278 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11279 echo "$as_me:$LINENO: result: host tool" >&5
11280echo "${ECHO_T}host tool" >&6
be01d343
PB
11281 else
11282 # We need a cross tool
c6b750e1
DJ
11283 echo "$as_me:$LINENO: result: pre-installed" >&5
11284echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11285 fi
11286fi
4b900473 11287
c6b750e1
DJ
11288echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11289echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11290if test "x${build}" != "x${host}" ; then
2429c060
PB
11291 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11292 # We already found the complete path
b8025f34
AS
11293 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11294 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11295echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11296 else
11297 # Canadian cross, just use what we found
c6b750e1
DJ
11298 echo "$as_me:$LINENO: result: pre-installed" >&5
11299echo "${ECHO_T}pre-installed" >&6
2429c060 11300 fi
be01d343
PB
11301else
11302 ok=yes
11303 case " ${configdirs} " in
11304 *" gcc "*) ;;
11305 *) ok=no ;;
11306 esac
11307 case ,${enable_languages}, in
11308 *,c++,*) ;;
11309 *) ok=no ;;
11310 esac
11311 if test $ok = yes; then
11312 # An in-tree tool is available and we can use it
11313 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
11314 echo "$as_me:$LINENO: result: just compiled" >&5
11315echo "${ECHO_T}just compiled" >&6
2429c060
PB
11316 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11317 # We already found the complete path
b8025f34
AS
11318 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11319 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11320echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11321 elif test "x$target" = "x$host"; then
11322 # We can use an host tool
11323 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11324 echo "$as_me:$LINENO: result: host tool" >&5
11325echo "${ECHO_T}host tool" >&6
be01d343
PB
11326 else
11327 # We need a cross tool
c6b750e1
DJ
11328 echo "$as_me:$LINENO: result: pre-installed" >&5
11329echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11330 fi
11331fi
4b900473 11332
c6b750e1
DJ
11333echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11334echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11335if test "x${build}" != "x${host}" ; then
2429c060
PB
11336 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11337 # We already found the complete path
b8025f34
AS
11338 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11339 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11340echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11341 else
11342 # Canadian cross, just use what we found
c6b750e1
DJ
11343 echo "$as_me:$LINENO: result: pre-installed" >&5
11344echo "${ECHO_T}pre-installed" >&6
2429c060 11345 fi
be01d343
PB
11346else
11347 ok=yes
11348 case " ${configdirs} " in
11349 *" binutils "*) ;;
11350 *) ok=no ;;
11351 esac
c6b750e1 11352
be01d343
PB
11353 if test $ok = yes; then
11354 # An in-tree tool is available and we can use it
11355 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11356 echo "$as_me:$LINENO: result: just compiled" >&5
11357echo "${ECHO_T}just compiled" >&6
2429c060
PB
11358 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11359 # We already found the complete path
b8025f34
AS
11360 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11361 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11362echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11363 elif test "x$target" = "x$host"; then
11364 # We can use an host tool
11365 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11366 echo "$as_me:$LINENO: result: host tool" >&5
11367echo "${ECHO_T}host tool" >&6
be01d343
PB
11368 else
11369 # We need a cross tool
c6b750e1
DJ
11370 echo "$as_me:$LINENO: result: pre-installed" >&5
11371echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11372 fi
11373fi
4b900473 11374
c6b750e1
DJ
11375echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11376echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11377if test "x${build}" != "x${host}" ; then
2429c060
PB
11378 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11379 # We already found the complete path
b8025f34
AS
11380 ac_dir=`dirname $GCC_FOR_TARGET`
11381 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11382echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11383 else
11384 # Canadian cross, just use what we found
c6b750e1
DJ
11385 echo "$as_me:$LINENO: result: pre-installed" >&5
11386echo "${ECHO_T}pre-installed" >&6
2429c060 11387 fi
be01d343
PB
11388else
11389 ok=yes
11390 case " ${configdirs} " in
11391 *" gcc "*) ;;
11392 *) ok=no ;;
11393 esac
c6b750e1 11394
be01d343
PB
11395 if test $ok = yes; then
11396 # An in-tree tool is available and we can use it
11397 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11398 echo "$as_me:$LINENO: result: just compiled" >&5
11399echo "${ECHO_T}just compiled" >&6
2429c060
PB
11400 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11401 # We already found the complete path
b8025f34
AS
11402 ac_dir=`dirname $GCC_FOR_TARGET`
11403 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11404echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11405 elif test "x$target" = "x$host"; then
11406 # We can use an host tool
11407 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11408 echo "$as_me:$LINENO: result: host tool" >&5
11409echo "${ECHO_T}host tool" >&6
be01d343
PB
11410 else
11411 # We need a cross tool
c6b750e1
DJ
11412 echo "$as_me:$LINENO: result: pre-installed" >&5
11413echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11414 fi
11415fi
4b900473 11416
c6b750e1
DJ
11417echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11418echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11419if test "x${build}" != "x${host}" ; then
2429c060
PB
11420 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11421 # We already found the complete path
b8025f34
AS
11422 ac_dir=`dirname $GCJ_FOR_TARGET`
11423 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11424echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11425 else
11426 # Canadian cross, just use what we found
c6b750e1
DJ
11427 echo "$as_me:$LINENO: result: pre-installed" >&5
11428echo "${ECHO_T}pre-installed" >&6
2429c060 11429 fi
be01d343
PB
11430else
11431 ok=yes
11432 case " ${configdirs} " in
11433 *" gcc "*) ;;
11434 *) ok=no ;;
11435 esac
11436 case ,${enable_languages}, in
11437 *,java,*) ;;
11438 *) ok=no ;;
11439 esac
11440 if test $ok = yes; then
11441 # An in-tree tool is available and we can use it
11442 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11443 echo "$as_me:$LINENO: result: just compiled" >&5
11444echo "${ECHO_T}just compiled" >&6
2429c060
PB
11445 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11446 # We already found the complete path
b8025f34
AS
11447 ac_dir=`dirname $GCJ_FOR_TARGET`
11448 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11449echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11450 elif test "x$target" = "x$host"; then
11451 # We can use an host tool
11452 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11453 echo "$as_me:$LINENO: result: host tool" >&5
11454echo "${ECHO_T}host tool" >&6
be01d343
PB
11455 else
11456 # We need a cross tool
c6b750e1
DJ
11457 echo "$as_me:$LINENO: result: pre-installed" >&5
11458echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11459 fi
11460fi
4b900473 11461
c6b750e1
DJ
11462echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11463echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11464if test "x${build}" != "x${host}" ; then
2429c060
PB
11465 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11466 # We already found the complete path
b8025f34
AS
11467 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11468 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11469echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11470 else
11471 # Canadian cross, just use what we found
c6b750e1
DJ
11472 echo "$as_me:$LINENO: result: pre-installed" >&5
11473echo "${ECHO_T}pre-installed" >&6
2429c060 11474 fi
be01d343
PB
11475else
11476 ok=yes
11477 case " ${configdirs} " in
11478 *" gcc "*) ;;
11479 *) ok=no ;;
11480 esac
11481 case ,${enable_languages}, in
11482 *,fortran,*) ;;
11483 *) ok=no ;;
11484 esac
11485 if test $ok = yes; then
11486 # An in-tree tool is available and we can use it
11487 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11488 echo "$as_me:$LINENO: result: just compiled" >&5
11489echo "${ECHO_T}just compiled" >&6
2429c060
PB
11490 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11491 # We already found the complete path
b8025f34
AS
11492 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11493 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11494echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11495 elif test "x$target" = "x$host"; then
11496 # We can use an host tool
11497 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11498 echo "$as_me:$LINENO: result: host tool" >&5
11499echo "${ECHO_T}host tool" >&6
be01d343
PB
11500 else
11501 # We need a cross tool
c6b750e1
DJ
11502 echo "$as_me:$LINENO: result: pre-installed" >&5
11503echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11504 fi
11505fi
4b900473 11506
c6b750e1
DJ
11507echo "$as_me:$LINENO: checking where to find the target ld" >&5
11508echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11509if test "x${build}" != "x${host}" ; then
2429c060
PB
11510 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11511 # We already found the complete path
b8025f34
AS
11512 ac_dir=`dirname $LD_FOR_TARGET`
11513 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11514echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11515 else
11516 # Canadian cross, just use what we found
c6b750e1
DJ
11517 echo "$as_me:$LINENO: result: pre-installed" >&5
11518echo "${ECHO_T}pre-installed" >&6
2429c060 11519 fi
be01d343
PB
11520else
11521 ok=yes
11522 case " ${configdirs} " in
11523 *" ld "*) ;;
11524 *) ok=no ;;
11525 esac
c6b750e1 11526
be01d343
PB
11527 if test $ok = yes; then
11528 # An in-tree tool is available and we can use it
11529 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11530 echo "$as_me:$LINENO: result: just compiled" >&5
11531echo "${ECHO_T}just compiled" >&6
2429c060
PB
11532 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11533 # We already found the complete path
b8025f34
AS
11534 ac_dir=`dirname $LD_FOR_TARGET`
11535 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11536echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11537 elif test "x$target" = "x$host"; then
11538 # We can use an host tool
11539 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11540 echo "$as_me:$LINENO: result: host tool" >&5
11541echo "${ECHO_T}host tool" >&6
be01d343
PB
11542 else
11543 # We need a cross tool
c6b750e1
DJ
11544 echo "$as_me:$LINENO: result: pre-installed" >&5
11545echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11546 fi
11547fi
4b900473 11548
c6b750e1
DJ
11549echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11550echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11551if test "x${build}" != "x${host}" ; then
2429c060
PB
11552 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11553 # We already found the complete path
b8025f34
AS
11554 ac_dir=`dirname $LIPO_FOR_TARGET`
11555 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11556echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11557 else
11558 # Canadian cross, just use what we found
c6b750e1
DJ
11559 echo "$as_me:$LINENO: result: pre-installed" >&5
11560echo "${ECHO_T}pre-installed" >&6
2429c060 11561 fi
be01d343 11562else
2429c060
PB
11563 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11564 # We already found the complete path
b8025f34
AS
11565 ac_dir=`dirname $LIPO_FOR_TARGET`
11566 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11567echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11568 elif test "x$target" = "x$host"; then
be01d343
PB
11569 # We can use an host tool
11570 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11571 echo "$as_me:$LINENO: result: host tool" >&5
11572echo "${ECHO_T}host tool" >&6
be01d343
PB
11573 else
11574 # We need a cross tool
c6b750e1
DJ
11575 echo "$as_me:$LINENO: result: pre-installed" >&5
11576echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11577 fi
11578fi
4b900473 11579
c6b750e1
DJ
11580echo "$as_me:$LINENO: checking where to find the target nm" >&5
11581echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11582if test "x${build}" != "x${host}" ; then
2429c060
PB
11583 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11584 # We already found the complete path
b8025f34
AS
11585 ac_dir=`dirname $NM_FOR_TARGET`
11586 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11587echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11588 else
11589 # Canadian cross, just use what we found
c6b750e1
DJ
11590 echo "$as_me:$LINENO: result: pre-installed" >&5
11591echo "${ECHO_T}pre-installed" >&6
2429c060 11592 fi
be01d343
PB
11593else
11594 ok=yes
11595 case " ${configdirs} " in
11596 *" binutils "*) ;;
11597 *) ok=no ;;
11598 esac
c6b750e1 11599
be01d343
PB
11600 if test $ok = yes; then
11601 # An in-tree tool is available and we can use it
11602 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11603 echo "$as_me:$LINENO: result: just compiled" >&5
11604echo "${ECHO_T}just compiled" >&6
2429c060
PB
11605 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11606 # We already found the complete path
b8025f34
AS
11607 ac_dir=`dirname $NM_FOR_TARGET`
11608 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11609echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11610 elif test "x$target" = "x$host"; then
11611 # We can use an host tool
11612 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11613 echo "$as_me:$LINENO: result: host tool" >&5
11614echo "${ECHO_T}host tool" >&6
be01d343
PB
11615 else
11616 # We need a cross tool
c6b750e1
DJ
11617 echo "$as_me:$LINENO: result: pre-installed" >&5
11618echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11619 fi
11620fi
4b900473 11621
c6b750e1
DJ
11622echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11623echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11624if test "x${build}" != "x${host}" ; then
2429c060
PB
11625 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11626 # We already found the complete path
b8025f34
AS
11627 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11628 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11629echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11630 else
11631 # Canadian cross, just use what we found
c6b750e1
DJ
11632 echo "$as_me:$LINENO: result: pre-installed" >&5
11633echo "${ECHO_T}pre-installed" >&6
2429c060 11634 fi
be01d343
PB
11635else
11636 ok=yes
11637 case " ${configdirs} " in
11638 *" binutils "*) ;;
11639 *) ok=no ;;
11640 esac
c6b750e1 11641
be01d343
PB
11642 if test $ok = yes; then
11643 # An in-tree tool is available and we can use it
11644 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11645 echo "$as_me:$LINENO: result: just compiled" >&5
11646echo "${ECHO_T}just compiled" >&6
2429c060
PB
11647 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11648 # We already found the complete path
b8025f34
AS
11649 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11650 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11651echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11652 elif test "x$target" = "x$host"; then
11653 # We can use an host tool
11654 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11655 echo "$as_me:$LINENO: result: host tool" >&5
11656echo "${ECHO_T}host tool" >&6
be01d343
PB
11657 else
11658 # We need a cross tool
c6b750e1
DJ
11659 echo "$as_me:$LINENO: result: pre-installed" >&5
11660echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11661 fi
11662fi
4b900473 11663
c6b750e1
DJ
11664echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11665echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11666if test "x${build}" != "x${host}" ; then
2429c060
PB
11667 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11668 # We already found the complete path
b8025f34
AS
11669 ac_dir=`dirname $RANLIB_FOR_TARGET`
11670 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11671echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11672 else
11673 # Canadian cross, just use what we found
c6b750e1
DJ
11674 echo "$as_me:$LINENO: result: pre-installed" >&5
11675echo "${ECHO_T}pre-installed" >&6
2429c060 11676 fi
be01d343
PB
11677else
11678 ok=yes
11679 case " ${configdirs} " in
11680 *" binutils "*) ;;
11681 *) ok=no ;;
11682 esac
c6b750e1 11683
be01d343
PB
11684 if test $ok = yes; then
11685 # An in-tree tool is available and we can use it
11686 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11687 echo "$as_me:$LINENO: result: just compiled" >&5
11688echo "${ECHO_T}just compiled" >&6
2429c060
PB
11689 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
b8025f34
AS
11691 ac_dir=`dirname $RANLIB_FOR_TARGET`
11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11694 elif test "x$target" = "x$host"; then
11695 # We can use an host tool
11696 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11697 echo "$as_me:$LINENO: result: host tool" >&5
11698echo "${ECHO_T}host tool" >&6
be01d343
PB
11699 else
11700 # We need a cross tool
c6b750e1
DJ
11701 echo "$as_me:$LINENO: result: pre-installed" >&5
11702echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11703 fi
11704fi
4b900473 11705
c6b750e1
DJ
11706echo "$as_me:$LINENO: checking where to find the target strip" >&5
11707echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11708if test "x${build}" != "x${host}" ; then
2429c060
PB
11709 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11710 # We already found the complete path
b8025f34
AS
11711 ac_dir=`dirname $STRIP_FOR_TARGET`
11712 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11713echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11714 else
11715 # Canadian cross, just use what we found
c6b750e1
DJ
11716 echo "$as_me:$LINENO: result: pre-installed" >&5
11717echo "${ECHO_T}pre-installed" >&6
2429c060 11718 fi
be01d343
PB
11719else
11720 ok=yes
11721 case " ${configdirs} " in
11722 *" binutils "*) ;;
11723 *) ok=no ;;
11724 esac
c6b750e1 11725
be01d343
PB
11726 if test $ok = yes; then
11727 # An in-tree tool is available and we can use it
11728 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11729 echo "$as_me:$LINENO: result: just compiled" >&5
11730echo "${ECHO_T}just compiled" >&6
2429c060
PB
11731 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
b8025f34
AS
11733 ac_dir=`dirname $STRIP_FOR_TARGET`
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11736 elif test "x$target" = "x$host"; then
11737 # We can use an host tool
11738 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11739 echo "$as_me:$LINENO: result: host tool" >&5
11740echo "${ECHO_T}host tool" >&6
be01d343
PB
11741 else
11742 # We need a cross tool
c6b750e1
DJ
11743 echo "$as_me:$LINENO: result: pre-installed" >&5
11744echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11745 fi
11746fi
4b900473 11747
c6b750e1
DJ
11748echo "$as_me:$LINENO: checking where to find the target windres" >&5
11749echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11750if test "x${build}" != "x${host}" ; then
2429c060
PB
11751 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11752 # We already found the complete path
b8025f34
AS
11753 ac_dir=`dirname $WINDRES_FOR_TARGET`
11754 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11755echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11756 else
11757 # Canadian cross, just use what we found
c6b750e1
DJ
11758 echo "$as_me:$LINENO: result: pre-installed" >&5
11759echo "${ECHO_T}pre-installed" >&6
2429c060 11760 fi
be01d343
PB
11761else
11762 ok=yes
11763 case " ${configdirs} " in
11764 *" binutils "*) ;;
11765 *) ok=no ;;
11766 esac
c6b750e1 11767
be01d343
PB
11768 if test $ok = yes; then
11769 # An in-tree tool is available and we can use it
11770 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11771 echo "$as_me:$LINENO: result: just compiled" >&5
11772echo "${ECHO_T}just compiled" >&6
2429c060
PB
11773 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
b8025f34
AS
11775 ac_dir=`dirname $WINDRES_FOR_TARGET`
11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11778 elif test "x$target" = "x$host"; then
11779 # We can use an host tool
11780 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11781 echo "$as_me:$LINENO: result: host tool" >&5
11782echo "${ECHO_T}host tool" >&6
be01d343
PB
11783 else
11784 # We need a cross tool
c6b750e1
DJ
11785 echo "$as_me:$LINENO: result: pre-installed" >&5
11786echo "${ECHO_T}pre-installed" >&6
be01d343 11787 fi
a0da8069 11788fi
54752a6b 11789
0c24b341
NC
11790echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11791echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11792if test "x${build}" != "x${host}" ; then
11793 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11794 # We already found the complete path
11795 ac_dir=`dirname $WINDMC_FOR_TARGET`
11796 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11797echo "${ECHO_T}pre-installed in $ac_dir" >&6
11798 else
11799 # Canadian cross, just use what we found
11800 echo "$as_me:$LINENO: result: pre-installed" >&5
11801echo "${ECHO_T}pre-installed" >&6
11802 fi
11803else
11804 ok=yes
11805 case " ${configdirs} " in
11806 *" binutils "*) ;;
11807 *) ok=no ;;
11808 esac
11809
11810 if test $ok = yes; then
11811 # An in-tree tool is available and we can use it
11812 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11813 echo "$as_me:$LINENO: result: just compiled" >&5
11814echo "${ECHO_T}just compiled" >&6
11815 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
11817 ac_dir=`dirname $WINDMC_FOR_TARGET`
11818 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819echo "${ECHO_T}pre-installed in $ac_dir" >&6
11820 elif test "x$target" = "x$host"; then
11821 # We can use an host tool
11822 WINDMC_FOR_TARGET='$(WINDMC)'
11823 echo "$as_me:$LINENO: result: host tool" >&5
11824echo "${ECHO_T}host tool" >&6
11825 else
11826 # We need a cross tool
11827 echo "$as_me:$LINENO: result: pre-installed" >&5
11828echo "${ECHO_T}pre-installed" >&6
11829 fi
11830fi
11831
54752a6b
NN
11832
11833
be01d343 11834
4b900473 11835
a0da8069
NN
11836# Certain tools may need extra flags.
11837AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11838RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11839NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11840
be01d343
PB
11841# When building target libraries, except in a Canadian cross, we use
11842# the same toolchain as the compiler we just built.
11843COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11844COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11845COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11846if test $host = $build; then
11847 case " $configdirs " in
11848 *" gcc "*)
11849 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11850 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11851 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11852 ;;
11853 esac
11854fi
11855
11856
11857
11858
11859
c6b750e1
DJ
11860echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11861echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11862# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11863if test "${enable_maintainer_mode+set}" = set; then
11864 enableval="$enable_maintainer_mode"
11865 USE_MAINTAINER_MODE=$enableval
11866else
11867 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11868fi;
11869echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11870echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11871
11872
11873if test "$USE_MAINTAINER_MODE" = yes; then
11874 MAINTAINER_MODE_TRUE=
11875 MAINTAINER_MODE_FALSE='#'
11876else
11877 MAINTAINER_MODE_TRUE='#'
11878 MAINTAINER_MODE_FALSE=
c6b750e1 11879fi
3d5e36ae
AO
11880MAINT=$MAINTAINER_MODE_TRUE
11881
1d39f329
NN
11882# ---------------------
11883# GCC bootstrap support
11884# ---------------------
11885
11886# Stage specific cflags for build.
11887stage1_cflags="-g"
11888case $build in
11889 vax-*-*)
11890 case ${GCC} in
11891 yes) stage1_cflags="-g -Wa,-J" ;;
11892 *) stage1_cflags="-g -J" ;;
11893 esac ;;
1d39f329
NN
11894esac
11895
1d89b610
PB
11896# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11897if test "$GCC" = yes; then
11898 saved_CFLAGS="$CFLAGS"
11899
11900 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11901 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11902 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11903echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11904 cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
11910
2038f525
PB
11911#if (__GNUC__ < 3) \
11912 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11913 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11914#error http://gcc.gnu.org/PR29382
11915#endif
11916
c6b750e1
DJ
11917int
11918main ()
11919{
11920
11921 ;
11922 return 0;
11923}
11924_ACEOF
11925rm -f conftest.$ac_objext
11926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927 (eval $ac_compile) 2>conftest.er1
11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag"
11935 || test ! -s conftest.err'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 echo "$as_me:$LINENO: result: yes" >&5
11948echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11949else
11950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953echo "$as_me:$LINENO: result: no" >&5
11954echo "${ECHO_T}no" >&6
11955fi
11956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
11957
11958 CFLAGS="$saved_CFLAGS"
11959fi
11960
11961
1d39f329 11962
8a0d8a5c
PB
11963# Enable --enable-checking in stage1 of the compiler.
11964# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11965if test "${enable_stage1_checking+set}" = set; then
11966 enableval="$enable_stage1_checking"
11967 stage1_checking=--enable-checking=${enable_stage1_checking}
11968else
11969 if test "x$enable_checking" = xno; then
11970 stage1_checking=--enable-checking
11971else
11972 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11973fi
c6b750e1 11974fi;
8a0d8a5c
PB
11975
11976
1d39f329 11977# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
11978# Check whether --enable-werror or --disable-werror was given.
11979if test "${enable_werror+set}" = set; then
11980 enableval="$enable_werror"
c6b750e1 11981
1d39f329 11982else
a0323144 11983 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 11984 enable_werror=yes
79fcd0ec
PB
11985else
11986 enable_werror=no
11987fi
c6b750e1 11988fi;
1a6f2dc7
NN
11989case ${enable_werror} in
11990 yes) stage2_werror_flag="--enable-werror-always" ;;
11991 *) stage2_werror_flag="" ;;
1d39f329
NN
11992esac
11993
11994
108a6f8e 11995# Flags needed to enable html installing and building
c6b750e1 11996
108a6f8e
CD
11997# Check whether --with-datarootdir or --without-datarootdir was given.
11998if test "${with_datarootdir+set}" = set; then
11999 withval="$with_datarootdir"
12000 datarootdir="\${prefix}/${withval}"
12001else
12002 datarootdir="\${prefix}/share"
c6b750e1 12003fi;
108a6f8e
CD
12004
12005
12006# Check whether --with-docdir or --without-docdir was given.
12007if test "${with_docdir+set}" = set; then
12008 withval="$with_docdir"
12009 docdir="\${prefix}/${withval}"
12010else
12011 docdir="\${datarootdir}/doc"
c6b750e1 12012fi;
108a6f8e
CD
12013
12014
a3ca38d2
DD
12015# Check whether --with-pdfdir or --without-pdfdir was given.
12016if test "${with_pdfdir+set}" = set; then
12017 withval="$with_pdfdir"
12018 pdfdir="\${prefix}/${withval}"
12019else
12020 pdfdir="\${docdir}"
12021fi;
12022
12023
108a6f8e
CD
12024# Check whether --with-htmldir or --without-htmldir was given.
12025if test "${with_htmldir+set}" = set; then
12026 withval="$with_htmldir"
12027 htmldir="\${prefix}/${withval}"
12028else
12029 htmldir="\${docdir}"
c6b750e1 12030fi;
108a6f8e
CD
12031
12032
12033
12034
12035
b8025f34 12036
c6b750e1
DJ
12037 ac_config_files="$ac_config_files Makefile"
12038cat >confcache <<\_ACEOF
a0da8069
NN
12039# This file is a shell script that caches the results of configure
12040# tests run on this system so they can be shared between configure
c6b750e1
DJ
12041# scripts and configure runs, see configure's option --config-cache.
12042# It is not useful on other systems. If it contains results you don't
12043# want to keep, you may remove or edit it.
a0da8069 12044#
c6b750e1
DJ
12045# config.status only pays attention to the cache file if you give it
12046# the --recheck option to rerun configure.
a0da8069 12047#
c6b750e1
DJ
12048# `ac_cv_env_foo' variables (set or unset) will be overridden when
12049# loading this file, other *unset* `ac_cv_foo' will be assigned the
12050# following values.
12051
12052_ACEOF
12053
a0da8069
NN
12054# The following way of writing the cache mishandles newlines in values,
12055# but we know of no workaround that is simple, portable, and efficient.
12056# So, don't put newlines in cache variables' values.
12057# Ultrix sh set writes to stderr and can't be redirected directly,
12058# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12059{
12060 (set) 2>&1 |
12061 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12062 *ac_space=\ *)
12063 # `set' does not quote correctly, so add quotes (double-quote
12064 # substitution turns \\\\ into \\, and sed turns \\ into \).
12065 sed -n \
12066 "s/'/'\\\\''/g;
12067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12068 ;;
12069 *)
12070 # `set' quotes correctly as required by POSIX, so do not add quotes.
12071 sed -n \
12072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12073 ;;
12074 esac;
12075} |
12076 sed '
12077 t clear
12078 : clear
12079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12080 t end
12081 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12082 : end' >>confcache
12083if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12084 if test -w $cache_file; then
c6b750e1
DJ
12085 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12086 cat confcache >$cache_file
a0da8069
NN
12087 else
12088 echo "not updating unwritable cache $cache_file"
12089 fi
852e5f18 12090fi
a0da8069 12091rm -f confcache
852e5f18 12092
a0da8069
NN
12093test "x$prefix" = xNONE && prefix=$ac_default_prefix
12094# Let make expand exec_prefix.
12095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12096
c6b750e1
DJ
12097# VPATH may cause trouble with some makes, so we remove $(srcdir),
12098# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12099# trailing colons and then remove the whole line if VPATH becomes empty
12100# (actually we leave an empty line to preserve line numbers).
a0da8069 12101if test "x$srcdir" = x.; then
c6b750e1
DJ
12102 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12103s/:*\$(srcdir):*/:/;
12104s/:*\${srcdir}:*/:/;
12105s/:*@srcdir@:*/:/;
12106s/^\([^=]*=[ ]*\):*/\1/;
12107s/:*$//;
12108s/^[^=]*=[ ]*$//;
12109}'
a0da8069 12110fi
252b5132 12111
a0da8069
NN
12112# Transform confdefs.h into DEFS.
12113# Protect against shell expansion while executing Makefile rules.
12114# Protect against Makefile macro expansion.
c6b750e1
DJ
12115#
12116# If the first sed substitution is executed (which looks for macros that
12117# take arguments), then we branch to the quote section. Otherwise,
12118# look for a macro that doesn't take arguments.
12119cat >confdef2opt.sed <<\_ACEOF
12120t clear
12121: clear
12122s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12123t quote
12124s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12125t quote
12126d
12127: quote
12128s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12129s,\[,\\&,g
12130s,\],\\&,g
12131s,\$,$$,g
12132p
12133_ACEOF
12134# We use echo to avoid assuming a particular line-breaking character.
12135# The extra dot is to prevent the shell from consuming trailing
12136# line-breaks from the sub-command output. A line-break within
12137# single-quotes doesn't work because, if this script is created in a
12138# platform that uses two characters for line-breaks (e.g., DOS), tr
12139# would break.
12140ac_LF_and_DOT=`echo; echo .`
12141DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12142rm -f confdef2opt.sed
12143
12144
12145ac_libobjs=
12146ac_ltlibobjs=
12147for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12148 # 1. Remove the extension, and $U if already installed.
12149 ac_i=`echo "$ac_i" |
12150 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12151 # 2. Add them.
12152 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12153 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12154done
12155LIBOBJS=$ac_libobjs
852e5f18 12156
c6b750e1 12157LTLIBOBJS=$ac_ltlibobjs
376a0e54 12158
cac3d6c4 12159
c6b750e1
DJ
12160
12161: ${CONFIG_STATUS=./config.status}
12162ac_clean_files_save=$ac_clean_files
12163ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12164{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12165echo "$as_me: creating $CONFIG_STATUS" >&6;}
12166cat >$CONFIG_STATUS <<_ACEOF
12167#! $SHELL
12168# Generated by $as_me.
a0da8069 12169# Run this file to recreate the current configuration.
a0da8069 12170# Compiler output produced by configure, useful for debugging
c6b750e1 12171# configure, is in config.log if it exists.
376a0e54 12172
c6b750e1
DJ
12173debug=false
12174ac_cs_recheck=false
12175ac_cs_silent=false
12176SHELL=\${CONFIG_SHELL-$SHELL}
12177_ACEOF
12178
12179cat >>$CONFIG_STATUS <<\_ACEOF
12180## --------------------- ##
12181## M4sh Initialization. ##
12182## --------------------- ##
12183
12184# Be Bourne compatible
12185if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12186 emulate sh
12187 NULLCMD=:
12188 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12189 # is contrary to our usage. Disable this feature.
12190 alias -g '${1+"$@"}'='"$@"'
12191elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12192 set -o posix
12193fi
12194DUALCASE=1; export DUALCASE # for MKS sh
12195
12196# Support unset when possible.
12197if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12198 as_unset=unset
12199else
12200 as_unset=false
12201fi
12202
12203
12204# Work around bugs in pre-3.0 UWIN ksh.
12205$as_unset ENV MAIL MAILPATH
12206PS1='$ '
12207PS2='> '
12208PS4='+ '
12209
12210# NLS nuisances.
12211for as_var in \
12212 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12213 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12214 LC_TELEPHONE LC_TIME
12215do
12216 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12217 eval $as_var=C; export $as_var
12218 else
12219 $as_unset $as_var
12220 fi
12221done
12222
12223# Required to use basename.
12224if expr a : '\(a\)' >/dev/null 2>&1; then
12225 as_expr=expr
12226else
12227 as_expr=false
12228fi
12229
12230if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12231 as_basename=basename
12232else
12233 as_basename=false
12234fi
12235
12236
12237# Name of the executable.
12238as_me=`$as_basename "$0" ||
12239$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12240 X"$0" : 'X\(//\)$' \| \
12241 X"$0" : 'X\(/\)$' \| \
12242 . : '\(.\)' 2>/dev/null ||
12243echo X/"$0" |
12244 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12245 /^X\/\(\/\/\)$/{ s//\1/; q; }
12246 /^X\/\(\/\).*/{ s//\1/; q; }
12247 s/.*/./; q'`
12248
12249
12250# PATH needs CR, and LINENO needs CR and PATH.
12251# Avoid depending upon Character Ranges.
12252as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12253as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12254as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12255as_cr_digits='0123456789'
12256as_cr_alnum=$as_cr_Letters$as_cr_digits
12257
12258# The user is always right.
12259if test "${PATH_SEPARATOR+set}" != set; then
12260 echo "#! /bin/sh" >conf$$.sh
12261 echo "exit 0" >>conf$$.sh
12262 chmod +x conf$$.sh
12263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12264 PATH_SEPARATOR=';'
12265 else
12266 PATH_SEPARATOR=:
12267 fi
12268 rm -f conf$$.sh
12269fi
12270
12271
12272 as_lineno_1=$LINENO
12273 as_lineno_2=$LINENO
12274 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12275 test "x$as_lineno_1" != "x$as_lineno_2" &&
12276 test "x$as_lineno_3" = "x$as_lineno_2" || {
12277 # Find who we are. Look in the path if we contain no path at all
12278 # relative or not.
12279 case $0 in
12280 *[\\/]* ) as_myself=$0 ;;
12281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12287done
12288
12289 ;;
12290 esac
12291 # We did not find ourselves, most probably we were run as `sh COMMAND'
12292 # in which case we are not to be found in the path.
12293 if test "x$as_myself" = x; then
12294 as_myself=$0
12295 fi
12296 if test ! -f "$as_myself"; then
12297 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12298echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12299 { (exit 1); exit 1; }; }
12300 fi
12301 case $CONFIG_SHELL in
12302 '')
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12305do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for as_base in sh bash ksh sh5; do
12309 case $as_dir in
12310 /*)
12311 if ("$as_dir/$as_base" -c '
12312 as_lineno_1=$LINENO
12313 as_lineno_2=$LINENO
12314 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12315 test "x$as_lineno_1" != "x$as_lineno_2" &&
12316 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12317 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12318 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12319 CONFIG_SHELL=$as_dir/$as_base
12320 export CONFIG_SHELL
12321 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12322 fi;;
12323 esac
12324 done
12325done
12326;;
12327 esac
12328
12329 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12330 # uniformly replaced by the line number. The first 'sed' inserts a
12331 # line-number line before each line; the second 'sed' does the real
12332 # work. The second script uses 'N' to pair each line-number line
12333 # with the numbered line, and appends trailing '-' during
12334 # substitution so that $LINENO is not a special case at line end.
12335 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12336 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12337 sed '=' <$as_myself |
12338 sed '
12339 N
12340 s,$,-,
12341 : loop
12342 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12343 t loop
12344 s,-$,,
12345 s,^['$as_cr_digits']*\n,,
12346 ' >$as_me.lineno &&
12347 chmod +x $as_me.lineno ||
12348 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12349echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12350 { (exit 1); exit 1; }; }
12351
12352 # Don't try to exec as it changes $[0], causing all sort of problems
12353 # (the dirname of $[0] is not the place where we might find the
12354 # original and so on. Autoconf is especially sensible to this).
12355 . ./$as_me.lineno
12356 # Exit status is that of the last command.
12357 exit
12358}
12359
12360
12361case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12362 *c*,-n*) ECHO_N= ECHO_C='
12363' ECHO_T=' ' ;;
12364 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12365 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12366esac
12367
12368if expr a : '\(a\)' >/dev/null 2>&1; then
12369 as_expr=expr
12370else
12371 as_expr=false
12372fi
12373
12374rm -f conf$$ conf$$.exe conf$$.file
12375echo >conf$$.file
12376if ln -s conf$$.file conf$$ 2>/dev/null; then
12377 # We could just check for DJGPP; but this test a) works b) is more generic
12378 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12379 if test -f conf$$.exe; then
12380 # Don't use ln at all; we don't have any links
12381 as_ln_s='cp -p'
12382 else
12383 as_ln_s='ln -s'
12384 fi
12385elif ln conf$$.file conf$$ 2>/dev/null; then
12386 as_ln_s=ln
12387else
12388 as_ln_s='cp -p'
12389fi
12390rm -f conf$$ conf$$.exe conf$$.file
12391
12392if mkdir -p . 2>/dev/null; then
12393 as_mkdir_p=:
12394else
12395 test -d ./-p && rmdir ./-p
12396 as_mkdir_p=false
12397fi
12398
12399as_executable_p="test -f"
12400
12401# Sed expression to map a string onto a valid CPP name.
12402as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12403
12404# Sed expression to map a string onto a valid variable name.
12405as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12406
12407
12408# IFS
12409# We need space, tab and new line, in precisely that order.
12410as_nl='
12411'
12412IFS=" $as_nl"
12413
12414# CDPATH.
12415$as_unset CDPATH
12416
12417exec 6>&1
12418
12419# Open the log real soon, to keep \$[0] and so on meaningful, and to
12420# report actual input values of CONFIG_FILES etc. instead of their
12421# values after options handling. Logging --version etc. is OK.
12422exec 5>>config.log
12423{
12424 echo
12425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12426## Running $as_me. ##
12427_ASBOX
12428} >&5
12429cat >&5 <<_CSEOF
12430
12431This file was extended by $as_me, which was
12432generated by GNU Autoconf 2.59. Invocation command line was
12433
12434 CONFIG_FILES = $CONFIG_FILES
12435 CONFIG_HEADERS = $CONFIG_HEADERS
12436 CONFIG_LINKS = $CONFIG_LINKS
12437 CONFIG_COMMANDS = $CONFIG_COMMANDS
12438 $ $0 $@
12439
12440_CSEOF
12441echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12442echo >&5
12443_ACEOF
12444
12445# Files that config.status was made for.
12446if test -n "$ac_config_files"; then
12447 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12448fi
12449
12450if test -n "$ac_config_headers"; then
12451 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12452fi
12453
12454if test -n "$ac_config_links"; then
12455 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12456fi
12457
12458if test -n "$ac_config_commands"; then
12459 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12460fi
12461
12462cat >>$CONFIG_STATUS <<\_ACEOF
12463
12464ac_cs_usage="\
12465\`$as_me' instantiates files from templates according to the
12466current configuration.
12467
12468Usage: $0 [OPTIONS] [FILE]...
12469
12470 -h, --help print this help, then exit
12471 -V, --version print version number, then exit
12472 -q, --quiet do not print progress messages
12473 -d, --debug don't remove temporary files
12474 --recheck update $as_me by reconfiguring in the same conditions
12475 --file=FILE[:TEMPLATE]
12476 instantiate the configuration file FILE
12477
12478Configuration files:
12479$config_files
12480
12481Report bugs to <bug-autoconf@gnu.org>."
12482_ACEOF
12483
12484cat >>$CONFIG_STATUS <<_ACEOF
12485ac_cs_version="\\
12486config.status
12487configured by $0, generated by GNU Autoconf 2.59,
12488 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12489
12490Copyright (C) 2003 Free Software Foundation, Inc.
12491This config.status script is free software; the Free Software Foundation
12492gives unlimited permission to copy, distribute and modify it."
12493srcdir=$srcdir
12494INSTALL="$INSTALL"
12495_ACEOF
12496
12497cat >>$CONFIG_STATUS <<\_ACEOF
12498# If no file are specified by the user, then we need to provide default
12499# value. By we need to know if files were specified by the user.
12500ac_need_defaults=:
12501while test $# != 0
a0da8069 12502do
c6b750e1
DJ
12503 case $1 in
12504 --*=*)
12505 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12506 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12507 ac_shift=:
12508 ;;
12509 -*)
12510 ac_option=$1
12511 ac_optarg=$2
12512 ac_shift=shift
12513 ;;
12514 *) # This is not an option, so the user has probably given explicit
12515 # arguments.
12516 ac_option=$1
12517 ac_need_defaults=false;;
12518 esac
12519
12520 case $ac_option in
12521 # Handling of the options.
12522_ACEOF
12523cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12525 ac_cs_recheck=: ;;
12526 --version | --vers* | -V )
12527 echo "$ac_cs_version"; exit 0 ;;
12528 --he | --h)
12529 # Conflict between --help and --header
12530 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12531Try \`$0 --help' for more information." >&5
12532echo "$as_me: error: ambiguous option: $1
12533Try \`$0 --help' for more information." >&2;}
12534 { (exit 1); exit 1; }; };;
12535 --help | --hel | -h )
12536 echo "$ac_cs_usage"; exit 0 ;;
12537 --debug | --d* | -d )
12538 debug=: ;;
12539 --file | --fil | --fi | --f )
12540 $ac_shift
12541 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12542 ac_need_defaults=false;;
12543 --header | --heade | --head | --hea )
12544 $ac_shift
12545 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12546 ac_need_defaults=false;;
12547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12549 ac_cs_silent=: ;;
12550
12551 # This is an error.
12552 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12553Try \`$0 --help' for more information." >&5
12554echo "$as_me: error: unrecognized option: $1
12555Try \`$0 --help' for more information." >&2;}
12556 { (exit 1); exit 1; }; } ;;
12557
12558 *) ac_config_targets="$ac_config_targets $1" ;;
12559
376a0e54 12560 esac
c6b750e1 12561 shift
376a0e54
CM
12562done
12563
c6b750e1 12564ac_configure_extra_args=
376a0e54 12565
c6b750e1
DJ
12566if $ac_cs_silent; then
12567 exec 6>/dev/null
12568 ac_configure_extra_args="$ac_configure_extra_args --silent"
12569fi
376a0e54 12570
c6b750e1
DJ
12571_ACEOF
12572cat >>$CONFIG_STATUS <<_ACEOF
12573if \$ac_cs_recheck; then
12574 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12575 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12576fi
12577
12578_ACEOF
12579
12580
12581
12582
12583
12584cat >>$CONFIG_STATUS <<\_ACEOF
12585for ac_config_target in $ac_config_targets
12586do
12587 case "$ac_config_target" in
12588 # Handling of arguments.
12589 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12590 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12591echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12592 { (exit 1); exit 1; }; };;
12593 esac
12594done
12595
12596# If the user did not use the arguments to specify the items to instantiate,
12597# then the envvar interface is used. Set only those that are not.
12598# We use the long form for the default assignment because of an extremely
12599# bizarre bug on SunOS 4.1.3.
12600if $ac_need_defaults; then
12601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12602fi
12603
12604# Have a temporary directory for convenience. Make it in the build tree
12605# simply because there is no reason to put it here, and in addition,
12606# creating and moving files from /tmp can sometimes cause problems.
12607# Create a temporary directory, and hook for its removal unless debugging.
12608$debug ||
12609{
12610 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12611 trap '{ (exit 1); exit 1; }' 1 2 13 15
12612}
12613
12614# Create a (secure) tmp directory for tmp files.
12615
12616{
12617 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12618 test -n "$tmp" && test -d "$tmp"
12619} ||
12620{
12621 tmp=./confstat$$-$RANDOM
12622 (umask 077 && mkdir $tmp)
12623} ||
12624{
12625 echo "$me: cannot create a temporary directory in ." >&2
12626 { (exit 1); exit 1; }
12627}
12628
12629_ACEOF
12630
12631cat >>$CONFIG_STATUS <<_ACEOF
12632
12633#
12634# CONFIG_FILES section.
12635#
12636
12637# No need to generate the scripts if there are no CONFIG_FILES.
12638# This happens for instance when ./config.status config.h
12639if test -n "\$CONFIG_FILES"; then
12640 # Protect against being on the right side of a sed subst in config.status.
12641 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12642 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12643s,@SHELL@,$SHELL,;t t
12644s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12645s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12646s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12647s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12648s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12649s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12650s,@exec_prefix@,$exec_prefix,;t t
12651s,@prefix@,$prefix,;t t
12652s,@program_transform_name@,$program_transform_name,;t t
12653s,@bindir@,$bindir,;t t
12654s,@sbindir@,$sbindir,;t t
12655s,@libexecdir@,$libexecdir,;t t
12656s,@datadir@,$datadir,;t t
12657s,@sysconfdir@,$sysconfdir,;t t
12658s,@sharedstatedir@,$sharedstatedir,;t t
12659s,@localstatedir@,$localstatedir,;t t
12660s,@libdir@,$libdir,;t t
12661s,@includedir@,$includedir,;t t
12662s,@oldincludedir@,$oldincludedir,;t t
12663s,@infodir@,$infodir,;t t
12664s,@mandir@,$mandir,;t t
12665s,@build_alias@,$build_alias,;t t
12666s,@host_alias@,$host_alias,;t t
12667s,@target_alias@,$target_alias,;t t
12668s,@DEFS@,$DEFS,;t t
12669s,@ECHO_C@,$ECHO_C,;t t
12670s,@ECHO_N@,$ECHO_N,;t t
12671s,@ECHO_T@,$ECHO_T,;t t
12672s,@LIBS@,$LIBS,;t t
12673s,@build@,$build,;t t
12674s,@build_cpu@,$build_cpu,;t t
12675s,@build_vendor@,$build_vendor,;t t
12676s,@build_os@,$build_os,;t t
12677s,@build_noncanonical@,$build_noncanonical,;t t
12678s,@host_noncanonical@,$host_noncanonical,;t t
12679s,@target_noncanonical@,$target_noncanonical,;t t
12680s,@host@,$host,;t t
12681s,@host_cpu@,$host_cpu,;t t
12682s,@host_vendor@,$host_vendor,;t t
12683s,@host_os@,$host_os,;t t
12684s,@target@,$target,;t t
12685s,@target_cpu@,$target_cpu,;t t
12686s,@target_vendor@,$target_vendor,;t t
12687s,@target_os@,$target_os,;t t
12688s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12689s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12690s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12691s,@LN@,$LN,;t t
12692s,@LN_S@,$LN_S,;t t
12693s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12694s,@build_libsubdir@,$build_libsubdir,;t t
12695s,@build_subdir@,$build_subdir,;t t
12696s,@host_subdir@,$host_subdir,;t t
12697s,@target_subdir@,$target_subdir,;t t
12698s,@CC@,$CC,;t t
12699s,@CFLAGS@,$CFLAGS,;t t
12700s,@LDFLAGS@,$LDFLAGS,;t t
12701s,@CPPFLAGS@,$CPPFLAGS,;t t
12702s,@ac_ct_CC@,$ac_ct_CC,;t t
12703s,@EXEEXT@,$EXEEXT,;t t
12704s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12705s,@CXX@,$CXX,;t t
12706s,@CXXFLAGS@,$CXXFLAGS,;t t
12707s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12708s,@GNATBIND@,$GNATBIND,;t t
12709s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12710s,@GNATMAKE@,$GNATMAKE,;t t
12711s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12712s,@do_compare@,$do_compare,;t t
12713s,@gmplibs@,$gmplibs,;t t
12714s,@gmpinc@,$gmpinc,;t t
12715s,@stage1_languages@,$stage1_languages,;t t
12716s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12717s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12718s,@tooldir@,$tooldir,;t t
12719s,@build_tooldir@,$build_tooldir,;t t
12720s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12721s,@GDB_TK@,$GDB_TK,;t t
12722s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12723s,@build_configargs@,$build_configargs,;t t
12724s,@build_configdirs@,$build_configdirs,;t t
12725s,@host_configargs@,$host_configargs,;t t
12726s,@configdirs@,$configdirs,;t t
12727s,@target_configargs@,$target_configargs,;t t
12728s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12729s,@config_shell@,$config_shell,;t t
12730s,@YACC@,$YACC,;t t
12731s,@BISON@,$BISON,;t t
12732s,@M4@,$M4,;t t
12733s,@LEX@,$LEX,;t t
12734s,@FLEX@,$FLEX,;t t
12735s,@MAKEINFO@,$MAKEINFO,;t t
12736s,@EXPECT@,$EXPECT,;t t
12737s,@RUNTEST@,$RUNTEST,;t t
12738s,@AR@,$AR,;t t
12739s,@AS@,$AS,;t t
12740s,@DLLTOOL@,$DLLTOOL,;t t
12741s,@LD@,$LD,;t t
12742s,@LIPO@,$LIPO,;t t
12743s,@NM@,$NM,;t t
12744s,@RANLIB@,$RANLIB,;t t
12745s,@STRIP@,$STRIP,;t t
12746s,@WINDRES@,$WINDRES,;t t
0c24b341 12747s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12748s,@OBJCOPY@,$OBJCOPY,;t t
12749s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12750s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12751s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12752s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12753s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12754s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12755s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12756s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12757s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12758s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12759s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12760s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12761s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12762s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12763s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12764s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12765s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12766s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12767s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12768s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12769s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12770s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12771s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12772s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12773s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12774s,@MAINT@,$MAINT,;t t
12775s,@stage1_cflags@,$stage1_cflags,;t t
12776s,@stage1_checking@,$stage1_checking,;t t
12777s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12778s,@datarootdir@,$datarootdir,;t t
12779s,@docdir@,$docdir,;t t
a3ca38d2 12780s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12781s,@htmldir@,$htmldir,;t t
12782s,@LIBOBJS@,$LIBOBJS,;t t
12783s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12784/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12785s,@serialization_dependencies@,,;t t
a0da8069 12786/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12787s,@host_makefile_frag@,,;t t
a0da8069 12788/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12789s,@target_makefile_frag@,,;t t
a0da8069 12790/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12791s,@alphaieee_frag@,,;t t
a0da8069 12792/@ospace_frag@/r $ospace_frag
c6b750e1 12793s,@ospace_frag@,,;t t
a0da8069 12794CEOF
252b5132 12795
c6b750e1
DJ
12796_ACEOF
12797
12798 cat >>$CONFIG_STATUS <<\_ACEOF
12799 # Split the substitutions into bite-sized pieces for seds with
12800 # small command number limits, like on Digital OSF/1 and HP-UX.
12801 ac_max_sed_lines=48
12802 ac_sed_frag=1 # Number of current file.
12803 ac_beg=1 # First line for current file.
12804 ac_end=$ac_max_sed_lines # Line after last line for current file.
12805 ac_more_lines=:
12806 ac_sed_cmds=
12807 while $ac_more_lines; do
12808 if test $ac_beg -gt 1; then
12809 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12810 else
12811 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12812 fi
12813 if test ! -s $tmp/subs.frag; then
12814 ac_more_lines=false
a0da8069 12815 else
c6b750e1
DJ
12816 # The purpose of the label and of the branching condition is to
12817 # speed up the sed processing (if there are no `@' at all, there
12818 # is no need to browse any of the substitutions).
12819 # These are the two extra sed commands mentioned above.
12820 (echo ':t
12821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12822 if test -z "$ac_sed_cmds"; then
12823 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12824 else
12825 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12826 fi
12827 ac_sed_frag=`expr $ac_sed_frag + 1`
12828 ac_beg=$ac_end
12829 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12830 fi
c6b750e1
DJ
12831 done
12832 if test -z "$ac_sed_cmds"; then
12833 ac_sed_cmds=cat
852e5f18 12834 fi
c6b750e1 12835fi # test -n "$CONFIG_FILES"
cac3d6c4 12836
c6b750e1
DJ
12837_ACEOF
12838cat >>$CONFIG_STATUS <<\_ACEOF
12839for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12841 case $ac_file in
12842 - | *:- | *:-:* ) # input from stdin
12843 cat >$tmp/stdin
12844 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12846 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12848 * ) ac_file_in=$ac_file.in ;;
a0da8069 12849 esac
252b5132 12850
c6b750e1
DJ
12851 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12852 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12853$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12854 X"$ac_file" : 'X\(//\)[^/]' \| \
12855 X"$ac_file" : 'X\(//\)$' \| \
12856 X"$ac_file" : 'X\(/\)' \| \
12857 . : '\(.\)' 2>/dev/null ||
12858echo X"$ac_file" |
12859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12861 /^X\(\/\/\)$/{ s//\1/; q; }
12862 /^X\(\/\).*/{ s//\1/; q; }
12863 s/.*/./; q'`
12864 { if $as_mkdir_p; then
12865 mkdir -p "$ac_dir"
cac3d6c4 12866 else
c6b750e1
DJ
12867 as_dir="$ac_dir"
12868 as_dirs=
12869 while test ! -d "$as_dir"; do
12870 as_dirs="$as_dir $as_dirs"
12871 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12872$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12873 X"$as_dir" : 'X\(//\)[^/]' \| \
12874 X"$as_dir" : 'X\(//\)$' \| \
12875 X"$as_dir" : 'X\(/\)' \| \
12876 . : '\(.\)' 2>/dev/null ||
12877echo X"$as_dir" |
12878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12880 /^X\(\/\/\)$/{ s//\1/; q; }
12881 /^X\(\/\).*/{ s//\1/; q; }
12882 s/.*/./; q'`
12883 done
12884 test ! -n "$as_dirs" || mkdir $as_dirs
12885 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12886echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12887 { (exit 1); exit 1; }; }; }
12888
12889 ac_builddir=.
252b5132 12890
c6b750e1
DJ
12891if test "$ac_dir" != .; then
12892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12893 # A "../" for each directory in $ac_dir_suffix.
12894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12895else
12896 ac_dir_suffix= ac_top_builddir=
12897fi
12898
12899case $srcdir in
12900 .) # No --srcdir option. We are building in place.
12901 ac_srcdir=.
12902 if test -z "$ac_top_builddir"; then
12903 ac_top_srcdir=.
12904 else
12905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12906 fi ;;
12907 [\\/]* | ?:[\\/]* ) # Absolute path.
12908 ac_srcdir=$srcdir$ac_dir_suffix;
12909 ac_top_srcdir=$srcdir ;;
a0da8069 12910 *) # Relative path.
c6b750e1
DJ
12911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12913esac
252b5132 12914
c6b750e1
DJ
12915# Do not use `cd foo && pwd` to compute absolute paths, because
12916# the directories may not exist.
12917case `pwd` in
12918.) ac_abs_builddir="$ac_dir";;
12919*)
12920 case "$ac_dir" in
12921 .) ac_abs_builddir=`pwd`;;
12922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12924 esac;;
12925esac
12926case $ac_abs_builddir in
12927.) ac_abs_top_builddir=${ac_top_builddir}.;;
12928*)
12929 case ${ac_top_builddir}. in
12930 .) ac_abs_top_builddir=$ac_abs_builddir;;
12931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12933 esac;;
12934esac
12935case $ac_abs_builddir in
12936.) ac_abs_srcdir=$ac_srcdir;;
12937*)
12938 case $ac_srcdir in
12939 .) ac_abs_srcdir=$ac_abs_builddir;;
12940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12942 esac;;
12943esac
12944case $ac_abs_builddir in
12945.) ac_abs_top_srcdir=$ac_top_srcdir;;
12946*)
12947 case $ac_top_srcdir in
12948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12951 esac;;
12952esac
252b5132 12953
c6b750e1
DJ
12954
12955 case $INSTALL in
12956 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12957 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 12958 esac
252b5132 12959
c6b750e1
DJ
12960 if test x"$ac_file" != x-; then
12961 { echo "$as_me:$LINENO: creating $ac_file" >&5
12962echo "$as_me: creating $ac_file" >&6;}
12963 rm -f "$ac_file"
12964 fi
12965 # Let's still pretend it is `configure' which instantiates (i.e., don't
12966 # use $as_me), people would be surprised to read:
12967 # /* config.h. Generated by config.status. */
12968 if test x"$ac_file" = x-; then
12969 configure_input=
12970 else
12971 configure_input="$ac_file. "
12972 fi
12973 configure_input=$configure_input"Generated from `echo $ac_file_in |
12974 sed 's,.*/,,'` by configure."
12975
12976 # First look for the input files in the build tree, otherwise in the
12977 # src tree.
12978 ac_file_inputs=`IFS=:
12979 for f in $ac_file_in; do
12980 case $f in
12981 -) echo $tmp/stdin ;;
12982 [\\/$]*)
12983 # Absolute (can't be DOS-style, as IFS=:)
12984 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12985echo "$as_me: error: cannot find input file: $f" >&2;}
12986 { (exit 1); exit 1; }; }
12987 echo "$f";;
12988 *) # Relative
12989 if test -f "$f"; then
12990 # Build tree
12991 echo "$f"
12992 elif test -f "$srcdir/$f"; then
12993 # Source tree
12994 echo "$srcdir/$f"
12995 else
12996 # /dev/null tree
12997 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12998echo "$as_me: error: cannot find input file: $f" >&2;}
12999 { (exit 1); exit 1; }; }
13000 fi;;
13001 esac
13002 done` || { (exit 1); exit 1; }
13003_ACEOF
13004cat >>$CONFIG_STATUS <<_ACEOF
13005 sed "$ac_vpsub
13006$extrasub
13007_ACEOF
13008cat >>$CONFIG_STATUS <<\_ACEOF
13009:t
13010/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13011s,@configure_input@,$configure_input,;t t
13012s,@srcdir@,$ac_srcdir,;t t
13013s,@abs_srcdir@,$ac_abs_srcdir,;t t
13014s,@top_srcdir@,$ac_top_srcdir,;t t
13015s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13016s,@builddir@,$ac_builddir,;t t
13017s,@abs_builddir@,$ac_abs_builddir,;t t
13018s,@top_builddir@,$ac_top_builddir,;t t
13019s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13020s,@INSTALL@,$ac_INSTALL,;t t
13021" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13022 rm -f $tmp/stdin
13023 if test x"$ac_file" != x-; then
13024 mv $tmp/out $ac_file
13025 else
13026 cat $tmp/out
13027 rm -f $tmp/out
13028 fi
c148b4cb 13029
c6b750e1
DJ
13030done
13031_ACEOF
c148b4cb 13032
c6b750e1 13033cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13034
c6b750e1
DJ
13035{ (exit 0); exit 0; }
13036_ACEOF
c148b4cb 13037chmod +x $CONFIG_STATUS
c6b750e1
DJ
13038ac_clean_files=$ac_clean_files_save
13039
13040
13041# configure is writing to config.log, and then calls config.status.
13042# config.status does its own redirection, appending to config.log.
13043# Unfortunately, on DOS this fails, as config.log is still kept open
13044# by configure, so config.status won't be able to write to it; its
13045# output is simply discarded. So we exec the FD to /dev/null,
13046# effectively closing config.log, so it can be properly (re)opened and
13047# appended to by config.status. When coming back to configure, we
13048# need to make the FD available again.
13049if test "$no_create" != yes; then
13050 ac_cs_success=:
13051 ac_config_status_args=
13052 test "$silent" = yes &&
13053 ac_config_status_args="$ac_config_status_args --quiet"
13054 exec 5>/dev/null
13055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13056 exec 5>>config.log
13057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13058 # would make configure fail if this is the last instruction.
13059 $ac_cs_success || { (exit 1); exit 1; }
13060fi
c148b4cb 13061
This page took 1.056511 seconds and 4 git commands to generate.