]> gcc.gnu.org Git - gcc.git/blame - configure
Makefile.in: Add install-pdf target as copied from automake v1.10 rules.
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
1c710c3c 3# Generated by GNU Autoconf 2.59.
671aa708 4#
1c710c3c 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
1c710c3c
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"
0b0dc272 226
1c710c3c
DJ
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
243
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#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
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"
c3a86da9 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 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 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 htmldir LIBOBJS LTLIBOBJS'
1c710c3c 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
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.
671aa708
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'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
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
79c06341 325
1c710c3c 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
1c710c3c 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
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=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
1c710c3c
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" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
1c710c3c
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"`;;
671aa708
NN
376 *) ac_optarg=yes ;;
377 esac
1c710c3c 378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
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=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
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 ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
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=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
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 \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
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=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
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=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
1c710c3c
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; }; }
671aa708 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
1c710c3c
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
671aa708
NN
558 *) ac_optarg=yes ;;
559 esac
1c710c3c 560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
1c710c3c
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" ;;
671aa708
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=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
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=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
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
671aa708 604 *)
1c710c3c
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}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
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; }; }
af71363e 619fi
af71363e 620
1c710c3c
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
fb0103e5 631
1c710c3c
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
671aa708 635do
1c710c3c
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; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
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
0b0dc272 650
1c710c3c
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
671aa708 666
671aa708
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.
1c710c3c
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'`
671aa708
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
1c710c3c
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
671aa708 695 else
1c710c3c
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
c3a86da9
DJ
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
278a7a38
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
776ac_env_OBJCOPY_set=${OBJCOPY+set}
777ac_env_OBJCOPY_value=$OBJCOPY
778ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
779ac_cv_env_OBJCOPY_value=$OBJCOPY
780ac_env_OBJDUMP_set=${OBJDUMP+set}
781ac_env_OBJDUMP_value=$OBJDUMP
782ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
783ac_cv_env_OBJDUMP_value=$OBJDUMP
784ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
785ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
786ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
787ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
788ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
789ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
790ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
791ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
792ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
793ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
794ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
795ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
796ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
797ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
798ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
799ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
800ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
801ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
802ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
803ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
804ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
805ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
806ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
807ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
808ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
809ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
810ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
811ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
812ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
813ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
814ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
815ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
816ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
817ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
818ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
819ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
820ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
821ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
822ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
823ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
824ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
825ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
826ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
827ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
828ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
829ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
830ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
831ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
832ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
833ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
834ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
835ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
836ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
837ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
838ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
839ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
840ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
841ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
842ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
843ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
1c710c3c
DJ
844
845#
846# Report the --help message.
847#
848if test "$ac_init_help" = "long"; then
849 # Omit some internal or obsolete options to make the list less imposing.
850 # This message is too long to be a string in the A/UX 3.1 sh.
851 cat <<_ACEOF
852\`configure' configures this package to adapt to many kinds of systems.
853
854Usage: $0 [OPTION]... [VAR=VALUE]...
855
856To assign environment variables (e.g., CC, CFLAGS...), specify them as
857VAR=VALUE. See below for descriptions of some of the useful variables.
858
859Defaults for the options are specified in brackets.
860
861Configuration:
862 -h, --help display this help and exit
863 --help=short display options specific to this package
864 --help=recursive display the short help of all the included packages
865 -V, --version display version information and exit
866 -q, --quiet, --silent do not print \`checking...' messages
867 --cache-file=FILE cache test results in FILE [disabled]
868 -C, --config-cache alias for \`--cache-file=config.cache'
869 -n, --no-create do not create output files
870 --srcdir=DIR find the sources in DIR [configure dir or \`..']
871
872_ACEOF
873
874 cat <<_ACEOF
875Installation directories:
876 --prefix=PREFIX install architecture-independent files in PREFIX
877 [$ac_default_prefix]
878 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
879 [PREFIX]
880
881By default, \`make install' will install all the files in
882\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
883an installation prefix other than \`$ac_default_prefix' using \`--prefix',
884for instance \`--prefix=\$HOME'.
885
886For better control, use the options below.
887
888Fine tuning of the installation directories:
889 --bindir=DIR user executables [EPREFIX/bin]
890 --sbindir=DIR system admin executables [EPREFIX/sbin]
891 --libexecdir=DIR program executables [EPREFIX/libexec]
892 --datadir=DIR read-only architecture-independent data [PREFIX/share]
893 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
894 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
895 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
896 --libdir=DIR object code libraries [EPREFIX/lib]
897 --includedir=DIR C header files [PREFIX/include]
898 --oldincludedir=DIR C header files for non-gcc [/usr/include]
899 --infodir=DIR info documentation [PREFIX/info]
900 --mandir=DIR man documentation [PREFIX/man]
901_ACEOF
902
903 cat <<\_ACEOF
904
905Program names:
906 --program-prefix=PREFIX prepend PREFIX to installed program names
907 --program-suffix=SUFFIX append SUFFIX to installed program names
908 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
909
910System types:
911 --build=BUILD configure for building on BUILD [guessed]
912 --host=HOST cross-compile to build programs to run on HOST [BUILD]
913 --target=TARGET configure for building compilers for TARGET [HOST]
914_ACEOF
915fi
916
917if test -n "$ac_init_help"; then
918
919 cat <<\_ACEOF
920
921Optional Features:
922 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
923 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
924 --enable-libada Builds libada directory
925 --enable-libssp Builds libssp directory
926 --enable-stage1-languages=all choose additional languages to build during
927 stage1. Mostly useful for compiler development.
928 --enable-objc-gc enable the use of Boehm's garbage collector with
929 the GNU Objective-C runtime.
930 --enable-bootstrap Enable bootstrapping yes if native build
931 --enable-serial-{host,target,build}-configure
932 Force sequential configuration of
933 sub-packages for the host, target or build
934 machine, or all sub-packages
935 --enable-maintainer-mode enable make rules and dependencies not useful
936 (and sometimes confusing) to the casual installer
937 --enable-stage1-checking=all choose additional checking for stage1
938 of the compiler.
939 --enable-werror enable -Werror in bootstrap stage2 and later
940
941Optional Packages:
942 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
943 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
944 --with-build-libsubdir=DIR Directory where to find libraries for build system
945 --with-mpfr-dir=PATH This option has been REMOVED
946 --with-mpfr=PATH Specify prefix directory for installed MPFR package
947 Equivalent to --with-mpfr-include=PATH/include
948 plus --with-mpfr-lib=PATH/lib
949 --with-mpfr-include=PATH
950 Specify directory for installed MPFR include files
951 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
952 --with-gmp-dir=PATH This option has been REMOVED
953 --with-gmp=PATH Specify prefix directory for the installed GMP package
954 Equivalent to --with-gmp-include=PATH/include
955 plus --with-gmp-lib=PATH/lib
956 --with-gmp-include=PATH Specify directory for installed GMP include files
957 --with-gmp-lib=PATH Specify the directory for the installed GMP library
958 --with-build-sysroot=sysroot
959 use sysroot as the system root during the build
960 --with-build-time-tools=path
961 use given path to find target tools during the build
962 --with-datarootdir Use datarootdir as the data root directory.
963 --with-docdir Install documentation in this directory.
964 --with-htmldir Install html in this directory.
965
966Some influential environment variables:
967 CC C compiler command
968 CFLAGS C compiler flags
969 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
970 nonstandard directory <lib dir>
971 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
972 headers in a nonstandard directory <include dir>
c3a86da9
DJ
973 CXX C++ compiler command
974 CXXFLAGS C++ compiler flags
278a7a38
AO
975 AR AR for the host
976 AS AS for the host
977 DLLTOOL DLLTOOL for the host
978 LD LD for the host
979 LIPO LIPO for the host
980 NM NM for the host
981 RANLIB RANLIB for the host
982 STRIP STRIP for the host
983 WINDRES WINDRES for the host
984 OBJCOPY OBJCOPY for the host
985 OBJDUMP OBJDUMP for the host
986 CC_FOR_TARGET
987 CC for the target
988 CXX_FOR_TARGET
989 CXX for the target
990 GCC_FOR_TARGET
991 GCC for the target
992 GCJ_FOR_TARGET
993 GCJ for the target
994 GFORTRAN_FOR_TARGET
995 GFORTRAN for the target
996 AR_FOR_TARGET
997 AR for the target
998 AS_FOR_TARGET
999 AS for the target
1000 DLLTOOL_FOR_TARGET
1001 DLLTOOL for the target
1002 LD_FOR_TARGET
1003 LD for the target
1004 LIPO_FOR_TARGET
1005 LIPO for the target
1006 NM_FOR_TARGET
1007 NM for the target
1008 OBJDUMP_FOR_TARGET
1009 OBJDUMP for the target
1010 RANLIB_FOR_TARGET
1011 RANLIB for the target
1012 STRIP_FOR_TARGET
1013 STRIP for the target
1014 WINDRES_FOR_TARGET
1015 WINDRES for the target
1c710c3c
DJ
1016
1017Use these variables to override the choices made by `configure' or to help
1018it to find libraries and programs with nonstandard names/locations.
1019
1020_ACEOF
1021fi
1022
1023if test "$ac_init_help" = "recursive"; then
1024 # If there are subdirs, report their specific --help.
1025 ac_popdir=`pwd`
1026 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1027 test -d $ac_dir || continue
1028 ac_builddir=.
1029
1030if test "$ac_dir" != .; then
1031 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1032 # A "../" for each directory in $ac_dir_suffix.
1033 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1034else
1035 ac_dir_suffix= ac_top_builddir=
1036fi
1037
1038case $srcdir in
1039 .) # No --srcdir option. We are building in place.
1040 ac_srcdir=.
1041 if test -z "$ac_top_builddir"; then
1042 ac_top_srcdir=.
1043 else
1044 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1045 fi ;;
1046 [\\/]* | ?:[\\/]* ) # Absolute path.
1047 ac_srcdir=$srcdir$ac_dir_suffix;
1048 ac_top_srcdir=$srcdir ;;
1049 *) # Relative path.
1050 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1051 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1052esac
1053
1054# Do not use `cd foo && pwd` to compute absolute paths, because
1055# the directories may not exist.
1056case `pwd` in
1057.) ac_abs_builddir="$ac_dir";;
1058*)
1059 case "$ac_dir" in
1060 .) ac_abs_builddir=`pwd`;;
1061 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1062 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1063 esac;;
1064esac
1065case $ac_abs_builddir in
1066.) ac_abs_top_builddir=${ac_top_builddir}.;;
1067*)
1068 case ${ac_top_builddir}. in
1069 .) ac_abs_top_builddir=$ac_abs_builddir;;
1070 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1071 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1072 esac;;
1073esac
1074case $ac_abs_builddir in
1075.) ac_abs_srcdir=$ac_srcdir;;
1076*)
1077 case $ac_srcdir in
1078 .) ac_abs_srcdir=$ac_abs_builddir;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1080 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1081 esac;;
1082esac
1083case $ac_abs_builddir in
1084.) ac_abs_top_srcdir=$ac_top_srcdir;;
1085*)
1086 case $ac_top_srcdir in
1087 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1089 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1090 esac;;
1091esac
1092
1093 cd $ac_dir
1094 # Check for guested configure; otherwise get Cygnus style configure.
1095 if test -f $ac_srcdir/configure.gnu; then
1096 echo
1097 $SHELL $ac_srcdir/configure.gnu --help=recursive
1098 elif test -f $ac_srcdir/configure; then
1099 echo
1100 $SHELL $ac_srcdir/configure --help=recursive
1101 elif test -f $ac_srcdir/configure.ac ||
1102 test -f $ac_srcdir/configure.in; then
1103 echo
1104 $ac_configure --help
1105 else
1106 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1107 fi
1108 cd $ac_popdir
1109 done
1110fi
1111
1112test -n "$ac_init_help" && exit 0
1113if $ac_init_version; then
1114 cat <<\_ACEOF
1115
1116Copyright (C) 2003 Free Software Foundation, Inc.
1117This configure script is free software; the Free Software Foundation
1118gives unlimited permission to copy, distribute and modify it.
1119_ACEOF
1120 exit 0
0b0dc272 1121fi
1c710c3c
DJ
1122exec 5>config.log
1123cat >&5 <<_ACEOF
1124This file contains any messages produced by compilers while
1125running configure, to aid debugging if configure makes a mistake.
1126
1127It was created by $as_me, which was
1128generated by GNU Autoconf 2.59. Invocation command line was
1129
1130 $ $0 $@
1131
1132_ACEOF
1133{
1134cat <<_ASUNAME
1135## --------- ##
1136## Platform. ##
1137## --------- ##
1138
1139hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1140uname -m = `(uname -m) 2>/dev/null || echo unknown`
1141uname -r = `(uname -r) 2>/dev/null || echo unknown`
1142uname -s = `(uname -s) 2>/dev/null || echo unknown`
1143uname -v = `(uname -v) 2>/dev/null || echo unknown`
1144
1145/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1146/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1147
1148/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1149/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1150/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1151hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1152/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1153/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1154/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1155
1156_ASUNAME
1157
1158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1159for as_dir in $PATH
1160do
1161 IFS=$as_save_IFS
1162 test -z "$as_dir" && as_dir=.
1163 echo "PATH: $as_dir"
1164done
1165
1166} >&5
1167
1168cat >&5 <<_ACEOF
1169
1170
1171## ----------- ##
1172## Core tests. ##
1173## ----------- ##
1174
1175_ACEOF
1176
1177
1178# Keep a trace of the command line.
1179# Strip out --no-create and --no-recursion so they do not pile up.
1180# Strip out --silent because we don't want to record it for future runs.
1181# Also quote any args containing shell meta-characters.
1182# Make two passes to allow for proper duplicate-argument suppression.
1183ac_configure_args=
1184ac_configure_args0=
1185ac_configure_args1=
1186ac_sep=
1187ac_must_keep_next=false
1188for ac_pass in 1 2
1189do
1190 for ac_arg
1191 do
1192 case $ac_arg in
1193 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 continue ;;
1197 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1199 esac
1200 case $ac_pass in
1201 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1202 2)
1203 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1204 if test $ac_must_keep_next = true; then
1205 ac_must_keep_next=false # Got value, back to normal.
1206 else
1207 case $ac_arg in
1208 *=* | --config-cache | -C | -disable-* | --disable-* \
1209 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1210 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1211 | -with-* | --with-* | -without-* | --without-* | --x)
1212 case "$ac_configure_args0 " in
1213 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1214 esac
1215 ;;
1216 -* ) ac_must_keep_next=true ;;
1217 esac
1218 fi
1219 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1220 # Get rid of the leading space.
1221 ac_sep=" "
1222 ;;
1223 esac
1224 done
1225done
1226$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1227$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1228
1229# When interrupted or exit'd, cleanup temporary files, and complete
1230# config.log. We remove comments because anyway the quotes in there
1231# would cause problems or look ugly.
1232# WARNING: Be sure not to use single quotes in there, as some shells,
1233# such as our DU 5.0 friend, will then `close' the trap.
1234trap 'exit_status=$?
1235 # Save into config.log some information that might help in debugging.
1236 {
1237 echo
1238
1239 cat <<\_ASBOX
1240## ---------------- ##
1241## Cache variables. ##
1242## ---------------- ##
1243_ASBOX
1244 echo
1245 # The following way of writing the cache mishandles newlines in values,
1246{
1247 (set) 2>&1 |
1248 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1249 *ac_space=\ *)
1250 sed -n \
1251 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1253 ;;
1254 *)
1255 sed -n \
1256 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1257 ;;
1258 esac;
1259}
1260 echo
1261
1262 cat <<\_ASBOX
1263## ----------------- ##
1264## Output variables. ##
1265## ----------------- ##
1266_ASBOX
1267 echo
1268 for ac_var in $ac_subst_vars
1269 do
1270 eval ac_val=$`echo $ac_var`
1271 echo "$ac_var='"'"'$ac_val'"'"'"
1272 done | sort
1273 echo
1274
1275 if test -n "$ac_subst_files"; then
1276 cat <<\_ASBOX
1277## ------------- ##
1278## Output files. ##
1279## ------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_files
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288 fi
1289
1290 if test -s confdefs.h; then
1291 cat <<\_ASBOX
1292## ----------- ##
1293## confdefs.h. ##
1294## ----------- ##
1295_ASBOX
1296 echo
1297 sed "/^$/d" confdefs.h | sort
1298 echo
1299 fi
1300 test "$ac_signal" != 0 &&
1301 echo "$as_me: caught signal $ac_signal"
1302 echo "$as_me: exit $exit_status"
1303 } >&5
1304 rm -f core *.core &&
1305 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1306 exit $exit_status
1307 ' 0
1308for ac_signal in 1 2 13 15; do
1309 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1310done
1311ac_signal=0
1312
1313# confdefs.h avoids OS command line length limits that DEFS can exceed.
1314rm -rf conftest* confdefs.h
1315# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1316echo >confdefs.h
1317
1318# Predefined preprocessor variables.
1319
1320cat >>confdefs.h <<_ACEOF
1321#define PACKAGE_NAME "$PACKAGE_NAME"
1322_ACEOF
1323
1324
1325cat >>confdefs.h <<_ACEOF
1326#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1327_ACEOF
1328
1329
1330cat >>confdefs.h <<_ACEOF
1331#define PACKAGE_VERSION "$PACKAGE_VERSION"
1332_ACEOF
0b0dc272 1333
1c710c3c
DJ
1334
1335cat >>confdefs.h <<_ACEOF
1336#define PACKAGE_STRING "$PACKAGE_STRING"
1337_ACEOF
1338
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1342_ACEOF
1343
1344
1345# Let the site file select an alternate cache file if it wants to.
671aa708 1346# Prefer explicitly selected file to automatically selected ones.
bba5e0ca
EB
1347if test -z "$CONFIG_SITE"; then
1348 if test "x$prefix" != xNONE; then
1349 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1350 else
1351 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
671aa708
NN
1352 fi
1353fi
1354for ac_site_file in $CONFIG_SITE; do
1355 if test -r "$ac_site_file"; then
1c710c3c
DJ
1356 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1357echo "$as_me: loading site script $ac_site_file" >&6;}
1358 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1359 . "$ac_site_file"
1360 fi
1361done
1362
1363if test -r "$cache_file"; then
1c710c3c
DJ
1364 # Some versions of bash will fail to source /dev/null (special
1365 # files actually), so we avoid doing that.
1366 if test -f "$cache_file"; then
1367 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1368echo "$as_me: loading cache $cache_file" >&6;}
1369 case $cache_file in
1370 [\\/]* | ?:[\\/]* ) . $cache_file;;
1371 *) . ./$cache_file;;
1372 esac
1373 fi
671aa708 1374else
1c710c3c
DJ
1375 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1376echo "$as_me: creating cache $cache_file" >&6;}
1377 >$cache_file
1378fi
1379
1380# Check that the precious variables saved in the cache have kept the same
1381# value.
1382ac_cache_corrupted=false
1383for ac_var in `(set) 2>&1 |
1384 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1386 eval ac_new_set=\$ac_env_${ac_var}_set
1387 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1388 eval ac_new_val="\$ac_env_${ac_var}_value"
1389 case $ac_old_set,$ac_new_set in
1390 set,)
1391 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1392echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1393 ac_cache_corrupted=: ;;
1394 ,set)
1395 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1396echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1397 ac_cache_corrupted=: ;;
1398 ,);;
1399 *)
1400 if test "x$ac_old_val" != "x$ac_new_val"; then
1401 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1402echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1403 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1404echo "$as_me: former value: $ac_old_val" >&2;}
1405 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1406echo "$as_me: current value: $ac_new_val" >&2;}
1407 ac_cache_corrupted=:
1408 fi;;
1409 esac
1410 # Pass precious variables to config.status.
1411 if test "$ac_new_set" = set; then
1412 case $ac_new_val in
1413 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1414 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1415 *) ac_arg=$ac_var=$ac_new_val ;;
1416 esac
1417 case " $ac_configure_args " in
1418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1419 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1420 esac
1421 fi
1422done
1423if $ac_cache_corrupted; then
1424 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1425echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1426 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1427echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1428 { (exit 1); exit 1; }; }
671aa708
NN
1429fi
1430
1431ac_ext=c
671aa708 1432ac_cpp='$CPP $CPPFLAGS'
1c710c3c
DJ
1433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436
1437
1438
1439
1440
671aa708
NN
1441
1442
d02c69be 1443
1c710c3c
DJ
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457# Find the build, host, and target systems.
671aa708 1458ac_aux_dir=
4c4a5bbc 1459for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
671aa708
NN
1460 if test -f $ac_dir/install-sh; then
1461 ac_aux_dir=$ac_dir
1462 ac_install_sh="$ac_aux_dir/install-sh -c"
1463 break
1464 elif test -f $ac_dir/install.sh; then
1465 ac_aux_dir=$ac_dir
1466 ac_install_sh="$ac_aux_dir/install.sh -c"
1467 break
1c710c3c
DJ
1468 elif test -f $ac_dir/shtool; then
1469 ac_aux_dir=$ac_dir
1470 ac_install_sh="$ac_aux_dir/shtool install -c"
1471 break
671aa708
NN
1472 fi
1473done
1474if test -z "$ac_aux_dir"; then
1c710c3c
DJ
1475 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1476echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1477 { (exit 1); exit 1; }; }
671aa708 1478fi
1c710c3c
DJ
1479ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1480ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1481ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1482
1c710c3c
DJ
1483# Make sure we can run config.sub.
1484$ac_config_sub sun4 >/dev/null 2>&1 ||
1485 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1486echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1487 { (exit 1); exit 1; }; }
1488
1489echo "$as_me:$LINENO: checking build system type" >&5
1490echo $ECHO_N "checking build system type... $ECHO_C" >&6
1491if test "${ac_cv_build+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1493else
1494 ac_cv_build_alias=$build_alias
1495test -z "$ac_cv_build_alias" &&
1496 ac_cv_build_alias=`$ac_config_guess`
1497test -z "$ac_cv_build_alias" &&
1498 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1499echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1500 { (exit 1); exit 1; }; }
1501ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1502 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1503echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1504 { (exit 1); exit 1; }; }
1505
1506fi
1507echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1508echo "${ECHO_T}$ac_cv_build" >&6
1509build=$ac_cv_build
1510build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1511build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1512build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1513
671aa708 1514
1c710c3c
DJ
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1518esac
1519
1520
af71363e 1521
1c710c3c
DJ
1522 case ${host_alias} in
1523 "") host_noncanonical=${build_noncanonical} ;;
1524 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1525esac
1526
af71363e 1527
1c710c3c
DJ
1528
1529 case ${target_alias} in
1530 "") target_noncanonical=${host_noncanonical} ;;
1531 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1532esac
1533
af71363e 1534
1c710c3c
DJ
1535
1536
1537test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1538 test "$program_prefix$program_suffix$program_transform_name" = \
1539 NONENONEs,x,x, &&
1c710c3c 1540 program_transform_name=s,y,y,
af71363e 1541
1c710c3c
DJ
1542echo "$as_me:$LINENO: checking host system type" >&5
1543echo $ECHO_N "checking host system type... $ECHO_C" >&6
1544if test "${ac_cv_host+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1546else
1c710c3c
DJ
1547 ac_cv_host_alias=$host_alias
1548test -z "$ac_cv_host_alias" &&
1549 ac_cv_host_alias=$ac_cv_build_alias
1550ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553 { (exit 1); exit 1; }; }
1554
af71363e 1555fi
1c710c3c
DJ
1556echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1557echo "${ECHO_T}$ac_cv_host" >&6
1558host=$ac_cv_host
1559host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562
1563
1564echo "$as_me:$LINENO: checking target system type" >&5
1565echo $ECHO_N "checking target system type... $ECHO_C" >&6
1566if test "${ac_cv_target+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569 ac_cv_target_alias=$target_alias
1570test "x$ac_cv_target_alias" = "x" &&
1571 ac_cv_target_alias=$ac_cv_host_alias
1572ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577fi
1578echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1579echo "${ECHO_T}$ac_cv_target" >&6
1580target=$ac_cv_target
1581target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586# The aliases save the names the user supplied, while $host etc.
1587# will get canonicalized.
1588test -n "$target_alias" &&
1589 test "$program_prefix$program_suffix$program_transform_name" = \
1590 NONENONEs,x,x, &&
1591 program_prefix=${target_alias}-
671aa708 1592test "$program_prefix" != NONE &&
1c710c3c 1593 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1594# Use a double $ so make ignores it.
1595test "$program_suffix" != NONE &&
1c710c3c
DJ
1596 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1597# Double any \ or $. echo might interpret backslashes.
1598# By default was `s,x,x', remove it if useless.
1599cat <<\_ACEOF >conftest.sed
1600s/[\\$]/&&/g;s/;s,x,x,$//
1601_ACEOF
1602program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1603rm conftest.sed
af71363e 1604
671aa708
NN
1605
1606
775956d0
NN
1607# Get 'install' or 'install-sh' and its variants.
1608# Find a good install program. We prefer a C program (faster),
1609# so one script is as good as another. But avoid the broken or
1610# incompatible versions:
1611# SysV /etc/install, /usr/sbin/install
1612# SunOS /usr/etc/install
1613# IRIX /sbin/install
1614# AIX /bin/install
1c710c3c 1615# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1616# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1617# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1618# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1619# OS/2's system install, which has a completely different semantic
775956d0 1620# ./install, which can be erroneously created by make from ./install.sh.
1c710c3c
DJ
1621echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1622echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1623if test -z "$INSTALL"; then
1c710c3c
DJ
1624if test "${ac_cv_path_install+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 # Account for people who put trailing slashes in PATH elements.
1633case $as_dir/ in
1634 ./ | .// | /cC/* | \
1635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1636 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1637 /usr/ucb/* ) ;;
1638 *)
1639 # OSF1 and SCO ODT 3.0 have their own names for install.
1640 # Don't use installbsd from OSF since it installs stuff as root
1641 # by default.
1642 for ac_prog in ginstall scoinst install; do
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1645 if test $ac_prog = install &&
1c710c3c 1646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1647 # AIX install. It has an incompatible calling convention.
1648 :
1c710c3c
DJ
1649 elif test $ac_prog = install &&
1650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651 # program-specific install script used by HP pwplus--don't use.
1652 :
775956d0 1653 else
1c710c3c
DJ
1654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1655 break 3
775956d0
NN
1656 fi
1657 fi
1658 done
1c710c3c
DJ
1659 done
1660 ;;
1661esac
1662done
1663
775956d0
NN
1664
1665fi
1666 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1667 INSTALL=$ac_cv_path_install
775956d0
NN
1668 else
1669 # As a last resort, use the slow shell script. We don't cache a
1670 # path for INSTALL within a source directory, because that will
1671 # break other packages using the cache if that directory is
1672 # removed, or if the path is relative.
1c710c3c 1673 INSTALL=$ac_install_sh
775956d0
NN
1674 fi
1675fi
1c710c3c
DJ
1676echo "$as_me:$LINENO: result: $INSTALL" >&5
1677echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1678
1679# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1680# It thinks the first close brace ends the variable substitution.
1681test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1682
1c710c3c 1683test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1684
1685test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1686
1c710c3c
DJ
1687echo "$as_me:$LINENO: checking whether ln works" >&5
1688echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1689if test "${acx_cv_prog_LN+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1691else
1692 rm -f conftestdata_t
1693echo >conftestdata_f
1694if ln conftestdata_f conftestdata_t 2>/dev/null
1695then
1696 acx_cv_prog_LN=ln
1697else
1698 acx_cv_prog_LN=no
1699fi
1700rm -f conftestdata_f conftestdata_t
1701
1702fi
1703if test $acx_cv_prog_LN = no; then
1704 LN="cp"
1c710c3c
DJ
1705 echo "$as_me:$LINENO: result: no, using $LN" >&5
1706echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1707else
1708 LN="$acx_cv_prog_LN"
1c710c3c
DJ
1709 echo "$as_me:$LINENO: result: yes" >&5
1710echo "${ECHO_T}yes" >&6
ad6717df
PB
1711fi
1712
1c710c3c
DJ
1713echo "$as_me:$LINENO: checking whether ln -s works" >&5
1714echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1715LN_S=$as_ln_s
1716if test "$LN_S" = "ln -s"; then
1717 echo "$as_me:$LINENO: result: yes" >&5
1718echo "${ECHO_T}yes" >&6
fb0103e5 1719else
1c710c3c
DJ
1720 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1721echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1722fi
1723
775956d0 1724
79c06341 1725### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1726### If we are on Windows, search for the shell. This will permit people
1727### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1728### without also having to set CONFIG_SHELL. This code will work when
1729### using bash, which sets OSTYPE.
1730case "${OSTYPE}" in
1731*win32*)
671aa708
NN
1732 if test x${CONFIG_SHELL} = x ; then
1733 if test ! -f /bin/sh ; then
1734 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1735 CONFIG_SHELL=${SHELL}
1736 export CONFIG_SHELL
1737 else
1738 for prog in sh sh.exe bash bash.exe; do
1739 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1740 for dir in $PATH; do
1741 test -z "$dir" && dir=.
1742 if test -f $dir/$prog; then
1743 CONFIG_SHELL=$dir/$prog
1744 export CONFIG_SHELL
1745 break
1746 fi
1747 done
1748 IFS="$save_ifs"
1749 test -n "${CONFIG_SHELL}" && break
1750 done
1751 fi
1752 fi
1753 fi
1754 ;;
1755esac
1756
1757config_shell=${CONFIG_SHELL-/bin/sh}
1758
79c06341
JL
1759progname=$0
1760# if PWD already has a value, it is probably wrong.
671aa708 1761if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1762
beeaf216
MM
1763# Export original configure arguments for use by sub-configures.
1764# Quote arguments with shell meta charatcers.
1765TOPLEVEL_CONFIGURE_ARGUMENTS=
1766set -- "$progname" "$@"
9f8c6739
JM
1767for ac_arg
1768do
beeaf216
MM
1769 case "$ac_arg" in
1770 *" "*|*" "*|*\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
1771 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1772 # if the argument is of the form -foo=baz, quote the baz part only
1773 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1774 *) ;;
1775 esac
1776 # Add the quoted argument to the list.
1777 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1778done
1779# Remove the initial space we just introduced and, as these will be
1780# expanded by make, quote '$'.
1781TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1782
cc1e60ea 1783
671aa708 1784moveifchange=${srcdir}/move-if-change
79c06341 1785
ee6a22df
L
1786srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1787
1788# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1789# a relative path.
1790if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1791 INSTALL="${srcpwd}/install-sh -c"
1792fi
1793
671aa708
NN
1794# Set srcdir to "." if that's what it is.
1795# This is important for multilib support.
1796pwd=`${PWDCMD-pwd}`
671aa708
NN
1797if test "${pwd}" = "${srcpwd}" ; then
1798 srcdir=.
79c06341
JL
1799fi
1800
671aa708 1801topsrcdir=$srcpwd
5d4a5ee6 1802
671aa708 1803extra_host_args=
afabd8e6 1804
671aa708
NN
1805### To add a new directory to the tree, first choose whether it is a target
1806### or a host dependent tool. Then put it into the appropriate list
1807### (library or tools, host or target), doing a dependency sort.
79c06341 1808
1c710c3c 1809# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1810# configdirs, or target_configdirs; see the serialization section below.
79c06341 1811
1c710c3c
DJ
1812# Dependency sorting is only needed when *configuration* must be done in
1813# a particular order. In all cases a dependency should be specified in
671aa708 1814# the Makefile, whether or not it's implicitly specified here.
79c06341 1815
671aa708
NN
1816# Double entries in build_configdirs, configdirs, or target_configdirs may
1817# cause circular dependencies and break everything horribly.
79c06341 1818
23f6b2f9
PB
1819# these library is used by various programs built for the build
1820# environment
1821#
1822build_libs="build-libiberty"
1823
1824# these tools are built for the build environment
71b5d516 1825build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1826
671aa708
NN
1827# these libraries are used by various programs built for the host environment
1828#
e69bf64b 1829host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1830
671aa708
NN
1831# these tools are built for the host environment
1832# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1833# know that we are building the simulator.
1834# binutils, gas and ld appear in that order because it makes sense to run
1835# "make check" in that particular order.
5395b47b 1836host_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"
671aa708
NN
1837
1838# libgcj represents the runtime libraries only used by gcj.
1839libgcj="target-libffi \
671aa708
NN
1840 target-zlib \
1841 target-qthreads \
1842 target-libjava"
1843
1844# these libraries are built for the target environment, and are built after
1845# the host libraries and the host tools (which may be a cross compiler)
1846#
291f172e
DJ
1847target_libraries="target-libgcc \
1848 target-libiberty \
671aa708
NN
1849 target-libgloss \
1850 target-newlib \
cb543528 1851 target-libstdc++-v3 \
6de9cd9a 1852 target-libmudflap \
77008252 1853 target-libssp \
6de9cd9a 1854 target-libgfortran \
7cd0cf9c 1855 target-boehm-gc \
77d187bc 1856 ${libgcj} \
d9cdb878 1857 target-libobjc \
953ff289
DN
1858 target-libada \
1859 target-libgomp"
671aa708 1860
4dbda6f0
NN
1861# these tools are built using the target libraries, and are intended to
1862# run only in the target environment
671aa708 1863#
4dbda6f0 1864# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1865# list belongs in this list. those programs are also very likely
1866# candidates for the "native_only" list which follows
1867#
97286f7f 1868target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1869
671aa708 1870################################################################################
79c06341 1871
671aa708
NN
1872## All tools belong in one of the four categories, and are assigned above
1873## We assign ${configdirs} this way to remove all embedded newlines. This
1874## is important because configure will choke if they ever get through.
1875## ${configdirs} is directories we build using the host tools.
1876## ${target_configdirs} is directories we build using the target tools.
671aa708 1877configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1878target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1879build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1880
671aa708 1881################################################################################
79c06341 1882
671aa708 1883srcname="gnu development package"
79c06341 1884
671aa708
NN
1885# This gets set non-empty for some net releases of packages.
1886appdirs=""
79c06341 1887
671aa708
NN
1888# Define is_cross_compiler to save on calls to 'test'.
1889is_cross_compiler=
1890if test x"${host}" = x"${target}" ; then
1891 is_cross_compiler=no
79c06341 1892else
671aa708 1893 is_cross_compiler=yes
1c710c3c 1894fi
79c06341 1895
b4acb5ef 1896# Find the build and target subdir names.
8b87bb96 1897
2e9e6f68
DJ
1898# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1899# have matching libraries, they should use host libraries: Makefile.tpl
1900# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1901# However, they still use the build modules, because the corresponding
1902# host modules (e.g. bison) are only built for the host when bootstrap
1903# finishes. So:
1904# - build_subdir is where we find build modules, and never changes.
1905# - build_libsubdir is where we find build libraries, and can be overridden.
1906
1907# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1908build_subdir="build-${build_noncanonical}"
1c710c3c 1909
2e9e6f68
DJ
1910# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1911if test "${with_build_libsubdir+set}" = set; then
1912 withval="$with_build_libsubdir"
1913 build_libsubdir="$withval"
1914else
1915 build_libsubdir="$build_subdir"
1c710c3c 1916fi;
215c351a
PB
1917# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1918if ( test $srcdir = . && test -d gcc ) \
1919 || test -d $srcdir/../host-${host_noncanonical}; then
1920 host_subdir="host-${host_noncanonical}"
1921else
1922 host_subdir=.
1923fi
8b87bb96
NN
1924# No prefix.
1925target_subdir=${target_noncanonical}
1c710c3c 1926
79c06341 1927
671aa708
NN
1928# Skipdirs are removed silently.
1929skipdirs=
1930# Noconfigdirs are removed loudly.
1931noconfigdirs=""
79c06341 1932
671aa708
NN
1933use_gnu_ld=
1934# Make sure we don't let GNU ld be added if we didn't want it.
1935if test x$with_gnu_ld = xno ; then
1936 use_gnu_ld=no
1937 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1938fi
1939
671aa708
NN
1940use_gnu_as=
1941# Make sure we don't let GNU as be added if we didn't want it.
1942if test x$with_gnu_as = xno ; then
1943 use_gnu_as=no
1944 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1945fi
1946
1c710c3c 1947# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1948# it's not even worth trying to configure, much less build, that tool.
79c06341 1949
671aa708
NN
1950case ${with_x} in
1951 yes | "") ;; # the default value for this tree is that X11 is available
1952 no)
b4f96efe 1953 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1954 # We won't be able to build gdbtk without X.
1c710c3c 1955 enable_gdbtk=no
671aa708
NN
1956 ;;
1957 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1958esac
79c06341 1959
671aa708 1960# Some tools are only suitable for building in a "native" situation.
1c710c3c 1961# Remove these if host!=target.
9e299237 1962native_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"
79c06341 1963
671aa708
NN
1964# Similarly, some are only suitable for cross toolchains.
1965# Remove these if host=target.
1966cross_only="target-libgloss target-newlib target-opcodes"
1967
1968case $is_cross_compiler in
1969 no) skipdirs="${skipdirs} ${cross_only}" ;;
1970 yes) skipdirs="${skipdirs} ${native_only}" ;;
1971esac
79c06341 1972
671aa708
NN
1973# If both --with-headers and --with-libs are specified, default to
1974# --without-newlib.
ee6a22df
L
1975if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1976 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1977 if test x"${with_newlib}" = x ; then
1978 with_newlib=no
1979 fi
79c06341
JL
1980fi
1981
671aa708
NN
1982# Recognize --with-newlib/--without-newlib.
1983case ${with_newlib} in
1984 no) skipdirs="${skipdirs} target-newlib" ;;
1985 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1986esac
79c06341 1987
671aa708 1988# Configure extra directories which are host specific
79c06341 1989
671aa708
NN
1990case "${host}" in
1991 *-cygwin*)
1992 configdirs="$configdirs libtermcap" ;;
1993esac
79c06341 1994
4fab7234
HPN
1995# A target can indicate whether a language isn't supported for some reason.
1996# Only spaces may be used in this macro; not newlines or tabs.
1997unsupported_languages=
1998
1c710c3c 1999# Remove more programs from consideration, based on the host or
671aa708
NN
2000# target this usually means that a port of the program doesn't
2001# exist yet.
ec8d6ddc 2002
671aa708
NN
2003case "${host}" in
2004 hppa*64*-*-*)
2005 noconfigdirs="$noconfigdirs byacc"
2006 ;;
f2a0e225 2007 i[3456789]86-*-vsta)
b4f96efe 2008 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2009 ;;
f2a0e225 2010 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2011 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2012 ;;
95af8923
KT
2013 x86_64-*-mingw*)
2014 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2015 ;;
f2a0e225 2016 i[3456789]86-*-mingw32*)
b4f96efe 2017 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2018 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2019 ;;
f2a0e225 2020 i[3456789]86-*-beos*)
b4f96efe 2021 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2022 ;;
671aa708 2023 *-*-cygwin*)
a22c2d8d 2024 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2025 ;;
2026 *-*-netbsd*)
a22c2d8d 2027 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2028 ;;
2029 ppc*-*-pe)
b4f96efe 2030 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2031 ;;
2032 powerpc-*-beos*)
b4f96efe 2033 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2034 ;;
671aa708 2035esac
ec8d6ddc 2036
6de9cd9a 2037
d9cdb878
AC
2038# Check whether --enable-libada or --disable-libada was given.
2039if test "${enable_libada+set}" = set; then
2040 enableval="$enable_libada"
2041 ENABLE_LIBADA=$enableval
2042else
2043 ENABLE_LIBADA=yes
1c710c3c 2044fi;
d9cdb878 2045if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2046 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2047fi
2048
ef0087a7
KH
2049# Check whether --enable-libssp or --disable-libssp was given.
2050if test "${enable_libssp+set}" = set; then
2051 enableval="$enable_libssp"
2052 ENABLE_LIBSSP=$enableval
2053else
2054 ENABLE_LIBSSP=yes
1c710c3c 2055fi;
ef0087a7 2056
671aa708
NN
2057# Save it here so that, even in case of --enable-libgcj, if the Java
2058# front-end isn't enabled, we still get libgcj disabled.
2059libgcj_saved=$libgcj
2060case $enable_libgcj in
2061yes)
2062 # If we reset it here, it won't get added to noconfigdirs in the
2063 # target-specific build rules, so it will be forcibly enabled
2064 # (unless the Java language itself isn't enabled).
2065 libgcj=
2066 ;;
2067no)
2068 # Make sure we get it printed in the list of not supported target libs.
2069 noconfigdirs="$noconfigdirs ${libgcj}"
2070 ;;
2071esac
ec8d6ddc 2072
6de9cd9a 2073
27079765
AH
2074# Disable libmudflap on some systems.
2075if test x$enable_libmudflap = x ; then
dfcada9a 2076 case "${target}" in
670cbfcf 2077 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
98a5bb3b 2078 # Enable libmudflap by default in GNU and friends.
dfcada9a 2079 ;;
a3e8d8b4
LR
2080 *-*-freebsd*)
2081 # Enable libmudflap by default in FreeBSD.
2082 ;;
dfcada9a
MM
2083 *)
2084 # Disable it by default everywhere else.
2085 noconfigdirs="$noconfigdirs target-libmudflap"
2086 ;;
2087 esac
27079765 2088fi
6de9cd9a 2089
27079765
AH
2090# Disable libgomp on non POSIX hosted systems.
2091if test x$enable_libgomp = x ; then
953ff289
DN
2092 # Enable libgomp by default on hosted POSIX systems.
2093 case "${target}" in
670cbfcf 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2095 ;;
2096 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2097 ;;
04879af3 2098 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2099 ;;
cac90078 2100 *-*-darwin* | *-*-aix*)
953ff289
DN
2101 ;;
2102 *)
2103 noconfigdirs="$noconfigdirs target-libgomp"
2104 ;;
2105 esac
27079765 2106fi
953ff289 2107
6de9cd9a 2108
671aa708
NN
2109case "${target}" in
2110 *-*-chorusos)
cb253473 2111 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2112 ;;
42c1cd8a 2113 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2114 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2115 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2116 ;;
42c1cd8a
AT
2117 *-*-darwin*)
2118 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2119 noconfigdirs="$noconfigdirs sim target-rda"
2120 noconfigdirs="$noconfigdirs ${libgcj}"
2121 ;;
671aa708 2122 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2124 ;;
c3f84f61 2125 *-*-freebsd*)
6de9cd9a
DN
2126 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2127 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2128 && test -f /usr/local/include/gmp.h; then
2129 with_gmp=/usr/local
2130 fi
2131
2132 # Skip some stuff that's unsupported on some FreeBSD configurations.
2133 case "${target}" in
2134 i*86-*-*) ;;
2135 alpha*-*-*) ;;
2136 *)
cb253473 2137 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2138 ;;
2139 esac
2140 ;;
ef4e7569
US
2141 *-*-kaos*)
2142 # Remove unsupported stuff on all kaOS configurations.
cb253473 2143 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2144 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2145 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2146 noconfigdirs="$noconfigdirs target-libgloss"
2147 ;;
671aa708
NN
2148 *-*-netbsd*)
2149 # Skip some stuff on all NetBSD configurations.
2150 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2151
2152 # Skip some stuff that's unsupported on some NetBSD configurations.
2153 case "${target}" in
2154 i*86-*-netbsdelf*) ;;
0590b963 2155 arm*-*-netbsdelf*) ;;
671aa708 2156 *)
cb253473 2157 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2158 ;;
2159 esac
2160 ;;
61fec9ff 2161 *-*-netware*)
cb253473 2162 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2163 ;;
2164 *-*-rtems*)
cb253473 2165 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2166 ;;
a8ba31f2
EC
2167 # The tpf target doesn't support gdb yet.
2168 *-*-tpf*)
cb253473 2169 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2170 ;;
5785c0ed 2171 *-*-uclinux*)
cb253473 2172 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2173 ;;
671aa708 2174 *-*-vxworks*)
cb253473 2175 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2176 ;;
2177 alpha*-dec-osf*)
2178 # ld works, but does not support shared libraries.
2179 # newlib is not 64 bit ready. I'm not sure about fileutils.
2180 # gas doesn't generate exception information.
2181 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2182 ;;
2183 alpha*-*-*vms*)
cb253473 2184 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2185 ;;
2186 alpha*-*-linux*)
2187 # newlib is not 64 bit ready
2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2189 ;;
671aa708
NN
2190 alpha*-*-*)
2191 # newlib is not 64 bit ready
cb253473 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2193 ;;
33952f6f 2194 am33_2.0-*-linux*)
cb253473 2195 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2196 ;;
671aa708 2197 sh-*-linux*)
cb253473 2198 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2199 ;;
671aa708 2200 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2201 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2202 noconfigdirs="$noconfigdirs target-examples"
2203 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2204 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2205 noconfigdirs="$noconfigdirs expect dejagnu"
2206 # the C++ libraries don't build on top of CE's C libraries
cb543528 2207 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2208 noconfigdirs="$noconfigdirs target-newlib"
2209 case "${host}" in
2210 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2211 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2212 ;;
2213 esac
2214 ;;
2215 arc-*-*)
cb253473 2216 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2217 ;;
ee6a22df 2218 arm-semi-aof )
ee6a22df 2219 ;;
671aa708 2220 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2221 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2222 ;;
b3f8d95d 2223 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2224 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2225 ;;
077fc835
KH
2226 arm*-*-linux-gnueabi)
2227 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2228 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2229 ;;
972974fc 2230 arm*-*-symbianelf*)
cb253473 2231 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2232 ;;
671aa708 2233 arm-*-pe*)
cb253473 2234 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2235 ;;
671aa708 2236 thumb-*-coff)
cb253473 2237 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2238 ;;
2239 thumb-*-elf)
cb253473 2240 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2241 ;;
671aa708 2242 thumb-*-pe)
cb253473 2243 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2244 ;;
2245 arm-*-riscix*)
cb253473 2246 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2247 ;;
2248 avr-*-*)
cb253473 2249 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2250 ;;
6b65a26d 2251 bfin-*-*)
8b3c6c5a 2252 noconfigdirs="$noconfigdirs gdb"
61efc800 2253 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2254 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2255 fi
2256 ;;
671aa708 2257 c4x-*-* | tic4x-*-*)
cb253473 2258 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2259 ;;
2260 c54x*-*-* | tic54x-*-*)
cb253473 2261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2262 ;;
40d64b5a 2263 cris-*-* | crisv32-*-*)
4fab7234 2264 unsupported_languages="$unsupported_languages java"
40d64b5a 2265 case "${target}" in
c2e0d3a9 2266 *-*-aout)
7f26dfa3 2267 unsupported_languages="$unsupported_languages fortran"
4fab7234 2268 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2269 *-*-elf)
7f26dfa3 2270 unsupported_languages="$unsupported_languages fortran"
789ec619 2271 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2272 *-*-linux*)
789ec619 2273 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2274 *)
7f26dfa3 2275 unsupported_languages="$unsupported_languages fortran"
cb253473 2276 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2277 esac
671aa708 2278 ;;
25b656e7 2279 crx-*-*)
cb253473 2280 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2281 ;;
671aa708 2282 d10v-*-*)
cb253473 2283 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2284 ;;
2285 d30v-*-*)
cb253473 2286 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2287 ;;
2288 fr30-*-elf*)
cb253473 2289 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2290 ;;
2291 frv-*-*)
cb253473 2292 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2293 ;;
2294 h8300*-*-*)
cb253473 2295 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2296 ;;
2297 h8500-*-*)
cb253473 2298 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2299 ;;
ee6a22df 2300 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2301 ;;
671aa708
NN
2302 hppa*64*-*-linux* | parisc*64*-*-linux*)
2303 # In this case, it's because the hppa64-linux target is for
2304 # the kernel only at this point and has no libc, and thus no
2305 # headers, crt*.o, etc., all of which are needed by these.
2306 noconfigdirs="$noconfigdirs target-zlib"
2307 ;;
3e732ba0
JDA
2308 parisc*-*-linux* | hppa*-*-linux*)
2309 ;;
671aa708 2310 hppa*-*-*elf* | \
671aa708
NN
2311 hppa*-*-lites* | \
2312 hppa*-*-openbsd* | \
2313 hppa*64*-*-*)
cb253473 2314 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2315 ;;
2a332582
JDA
2316 hppa*-hp-hpux11*)
2317 noconfigdirs="$noconfigdirs ld shellutils"
2318 ;;
671aa708
NN
2319 hppa*-*-*)
2320 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2321 # build on HP-UX 10.20.
cb253473 2322 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2323 ;;
fb87ad5d 2324 i960-*-*)
cb253473 2325 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2326 ;;
671aa708
NN
2327 ia64*-*-elf*)
2328 # No gdb support yet.
b4f96efe 2329 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2330 ;;
2331 ia64*-**-hpux*)
2332 # No gdb or ld support yet.
cb253473 2333 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2334 ;;
ee6a22df 2335 i370-*-opened*)
ee6a22df 2336 ;;
f2a0e225 2337 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2338 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2339 ;;
f2a0e225 2340 i[3456789]86-*-linux*)
671aa708
NN
2341 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2342 # not build java stuff by default.
2343 case "${target}" in
2344 *-*-*libc1*)
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2346 esac
2347
2348 # This section makes it possible to build newlib natively on linux.
2349 # If we are using a cross compiler then don't configure newlib.
2350 if test x${is_cross_compiler} != xno ; then
3aa83176 2351 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2352 fi
2353 noconfigdirs="$noconfigdirs target-libgloss"
2354 # If we are not using a cross compiler, do configure newlib.
2355 # Note however, that newlib will only be configured in this situation
2356 # if the --with-newlib option has been given, because otherwise
2357 # 'target-newlib' will appear in skipdirs.
2358 ;;
f2a0e225 2359 i[3456789]86-*-mingw32*)
b91f0a41
CV
2360 target_configdirs="$target_configdirs target-winsup"
2361 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2362 ;;
95af8923
KT
2363 x86_64-*-mingw*)
2364 target_configdirs="$target_configdirs target-winsup"
2365 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2366 ;;
671aa708
NN
2367 *-*-cygwin*)
2368 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2369 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2370 # always build newlib if winsup directory is present.
b91f0a41 2371 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2372 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2373 elif test -d "$srcdir/newlib"; then
b91f0a41 2374 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2375 fi
1c710c3c 2376 ;;
ee6a22df
L
2377 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2378 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2379 ;;
f2a0e225 2380 i[3456789]86-*-pe)
cb253473 2381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2382 ;;
f2a0e225 2383 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2384 # The linker does not yet know about weak symbols in COFF,
2385 # and is not configured to handle mixed ELF and COFF.
cb253473 2386 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2387 ;;
f2a0e225 2388 i[3456789]86-*-sco*)
cb253473 2389 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2390 ;;
f2a0e225 2391 i[3456789]86-*-solaris2*)
671aa708
NN
2392 noconfigdirs="$noconfigdirs target-libgloss"
2393 ;;
f2a0e225 2394 i[3456789]86-*-sysv4*)
cb253473 2395 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2396 ;;
f2a0e225 2397 i[3456789]86-*-beos*)
cb253473 2398 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2399 ;;
d1f8db0c
PB
2400 i[3456789]86-*-rdos*)
2401 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2402 ;;
fb87ad5d 2403 m32r-*-*)
cb253473 2404 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2405 ;;
671aa708 2406 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2407 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2408 ;;
2409 m68k-*-elf*)
cb253473 2410 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2411 ;;
2412 m68k-*-coff*)
cb253473 2413 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2414 ;;
2415 mcore-*-pe*)
2416 # The EPOC C++ environment does not support exceptions or rtti,
2417 # and so building libstdc++-v3 tends not to always work.
2418 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2419 ;;
2420 mmix-*-*)
4fab7234 2421 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2422 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2423 ;;
2424 mn10200-*-*)
cb253473 2425 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2426 ;;
2427 mn10300-*-*)
cb253473 2428 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2429 ;;
ab34901f 2430 mt-*-*)
79dd769c
AH
2431 noconfigdirs="$noconfigdirs sim"
2432 ;;
671aa708
NN
2433 powerpc-*-aix*)
2434 # copied from rs6000-*-* entry
cb253473 2435 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2436 ;;
2437 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2438 target_configdirs="$target_configdirs target-winsup"
cb253473 2439 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2440 # always build newlib.
2441 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2442 ;;
2443 # This is temporary until we can link against shared libraries
2444 powerpcle-*-solaris*)
cb253473 2445 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2446 ;;
2447 powerpc-*-beos*)
cb253473 2448 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2449 ;;
671aa708 2450 powerpc-*-eabi)
cb253473 2451 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2452 ;;
2453 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2454 ;;
671aa708 2455 rs6000-*-lynxos*)
cb253473 2456 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2457 ;;
2458 rs6000-*-aix*)
cb253473 2459 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2460 ;;
2461 rs6000-*-*)
cb253473 2462 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2463 ;;
2464 m68k-apollo-*)
cb253473 2465 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2466 ;;
2467 mips*-*-irix5*)
cb253473 2468 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2469 ;;
2470 mips*-*-irix6*)
671aa708
NN
2471 # Linking libjava exceeds command-line length limits on at least
2472 # IRIX 6.2, but not on IRIX 6.5.
2473 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2474 # <oldham@codesourcery.com>
cb253473 2475 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2476 ;;
671aa708 2477 mips*-*-bsd*)
cb253473 2478 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2479 ;;
d0fe5ad3 2480 mips64*-*-linux*)
1ee4c5a0 2481 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2482 ;;
671aa708
NN
2483 mips*-*-linux*)
2484 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2485 ;;
2486 mips*-*-*)
cb253473 2487 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2488 ;;
2489 romp-*-*)
cb253473 2490 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2491 ;;
669f01d8 2492 sh-*-* | sh64-*-*)
671aa708 2493 case "${host}" in
f2a0e225
KC
2494 i[3456789]86-*-vsta) ;; # don't add gprof back in
2495 i[3456789]86-*-go32*) ;; # don't add gprof back in
2496 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2497 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2498 esac
cb253473 2499 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2500 ;;
671aa708 2501 sparc-*-elf*)
cb253473 2502 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2503 ;;
2504 sparc64-*-elf*)
cb253473 2505 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2506 ;;
2507 sparclite-*-*)
cb253473 2508 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2509 ;;
2510 sparc-*-sunos4*)
cb253473 2511 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2512 if test x${is_cross_compiler} != xno ; then
2513 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2514 else
2515 use_gnu_ld=no
2516 fi
2517 ;;
bba5e0ca 2518 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2519 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2520 ;;
671aa708
NN
2521 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2522 ;;
85d9c13c 2523 spu-*-*)
ea6f5c57 2524 skipdirs="target-libssp"
85d9c13c 2525 ;;
671aa708 2526 v810-*-*)
cb253473 2527 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2528 ;;
2529 v850-*-*)
cb253473 2530 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2531 ;;
2532 v850e-*-*)
cb253473 2533 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2534 ;;
2535 v850ea-*-*)
cb253473 2536 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2537 ;;
2538 vax-*-vms)
cb253473 2539 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2540 ;;
2541 vax-*-*)
cb253473 2542 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2543 ;;
0d4f1b4e 2544 xtensa-*-*)
cb253473 2545 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2546 ;;
671aa708 2547 ip2k-*-*)
cb253473 2548 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2549 ;;
c3f84f61 2550 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2551 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2552 ;;
2553 *-*-lynxos*)
cb253473 2554 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2555 ;;
671aa708 2556 *-*-*)
cb253473 2557 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2558 ;;
2559esac
79c06341 2560
671aa708
NN
2561# If we aren't building newlib, then don't build libgloss, since libgloss
2562# depends upon some newlib header files.
2563case "${noconfigdirs}" in
2564 *target-libgloss*) ;;
2565 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2566esac
2567
671aa708
NN
2568# Work in distributions that contain no compiler tools, like Autoconf.
2569tentative_cc=""
2570host_makefile_frag=/dev/null
2571if test -d ${srcdir}/config ; then
2572case "${host}" in
2573 m68k-hp-hpux*)
2574 # Avoid "too much defining" errors from HPUX compiler.
2575 tentative_cc="cc -Wp,-H256000"
2576 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2577 # If it's HP/UX ar, this should be harmless.
2578 RANLIB="ar ts"
2579 ;;
2580 m68k-apollo-sysv*)
2581 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2582 ;;
2583 m68k-apollo-bsd*)
2584 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2585 # chokes on bfd, the compiler won't let you assign integers to enums, and
2586 # other problems. Defining CC to gcc is a questionable way to say "don't use
2587 # the apollo compiler" (the preferred version of GCC could be called cc,
2588 # or whatever), but I'm not sure leaving CC as cc is any better...
2589 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2590 # Used to have BISON=yacc.
2591 tentative_cc=gcc
2592 ;;
2593 m88k-dg-dgux*)
2594 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2595 ;;
2596 m88k-harris-cxux*)
2597 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2598 tentative_cc="cc -Xa"
2599 host_makefile_frag="config/mh-cxux"
2600 ;;
2601 m88k-motorola-sysv*)
2602 ;;
2603 mips*-dec-ultrix*)
2604 tentative_cc="cc -Wf,-XNg1000"
2605 host_makefile_frag="config/mh-decstation"
2606 ;;
2607 mips*-nec-sysv4*)
2608 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2609 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2610 host_makefile_frag="config/mh-necv4"
2611 ;;
2612 mips*-sgi-irix4*)
2613 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2614 # environment. Also bump switch table size so that cp-parse will
2615 # compile. Bump string length limit so linker builds.
2616 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2617 ;;
2618 mips*-*-sysv4*)
2619 host_makefile_frag="config/mh-sysv4"
2620 ;;
2621 mips*-*-sysv*)
2622 # This is for a MIPS running RISC/os 4.52C.
2623
2624 # This is needed for GDB, but needs to be in the top-level make because
2625 # if a library is compiled with the bsd headers and gets linked with the
2626 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2627 # a different size).
2628 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2629 # known except to select the sysv environment. Could we use /proc instead?
2630 # These "sysv environments" and "bsd environments" often end up being a pain.
2631 #
2632 # This is not part of CFLAGS because perhaps not all C compilers have this
2633 # option.
2634 tentative_cc="cc -systype sysv"
2635 ;;
2636 i370-ibm-opened*)
2637 tentative_cc="c89"
2638 ;;
f2a0e225 2639 i[3456789]86-*-sysv5*)
671aa708
NN
2640 host_makefile_frag="config/mh-sysv5"
2641 ;;
f2a0e225 2642 i[3456789]86-*-dgux*)
671aa708
NN
2643 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2644 host_makefile_frag="config/mh-dgux386"
2645 ;;
f2a0e225 2646 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2647 # The MetaWare compiler will generate a copyright message unless you
2648 # turn it off by adding the -Hnocopyr flag.
2649 tentative_cc="cc -Hnocopyr"
2650 ;;
f2a0e225 2651 i[3456789]86-ncr-sysv4*)
671aa708
NN
2652 # for an NCR 3000 (i486/SVR4) system.
2653 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2654 # This compiler not only emits obnoxious copyright messages every time
2655 # you run it, but it chokes and dies on a whole bunch of GNU source
2656 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2657 tentative_cc="/usr/ccs/ATT/cc"
2658 host_makefile_frag="config/mh-ncr3000"
2659 ;;
f2a0e225 2660 i[3456789]86-*-sco3.2v5*)
671aa708 2661 ;;
f2a0e225 2662 i[3456789]86-*-sco*)
671aa708
NN
2663 # The native C compiler botches some simple uses of const. Unfortunately,
2664 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2665 tentative_cc="cc -Dconst="
2666 host_makefile_frag="config/mh-sco"
2667 ;;
f2a0e225 2668 i[3456789]86-*-udk*)
671aa708
NN
2669 host_makefile_frag="config/mh-sysv5"
2670 ;;
f2a0e225 2671 i[3456789]86-*-solaris2*)
671aa708
NN
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
f2a0e225 2674 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2675 host_makefile_frag="config/mh-djgpp"
2676 ;;
2677 *-cygwin*)
2678 host_makefile_frag="config/mh-cygwin"
2679 ;;
2680 *-mingw32*)
671aa708 2681 ;;
95af8923
KT
2682 *-mingw64*)
2683 ;;
671aa708
NN
2684 *-interix*)
2685 host_makefile_frag="config/mh-interix"
2686 ;;
2687 vax-*-ultrix2*)
2688 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2689 tentative_cc=gcc
2690 ;;
2691 *-*-solaris2*)
2692 host_makefile_frag="config/mh-solaris"
2693 ;;
2694 m68k-sun-sunos*)
2695 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2696 # without overflowing the jump tables (-J says to use a 32 bit table)
2697 tentative_cc="cc -J"
2698 ;;
2699 *-hp-hpux*)
2700 tentative_cc="cc -Wp,-H256000"
2701 ;;
2702 *-*-hiux*)
2703 tentative_cc="cc -Wp,-H256000"
2704 ;;
2705 rs6000-*-lynxos*)
2706 # /bin/cc is less than useful for our purposes. Always use GCC
2707 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2708 host_makefile_frag="config/mh-lynxrs6k"
2709 ;;
45f366ab 2710 powerpc-*-darwin*)
be8fff81
RB
2711 host_makefile_frag="config/mh-ppc-darwin"
2712 ;;
d19bca38
PB
2713 powerpc-*-aix*)
2714 host_makefile_frag="config/mh-ppc-aix"
2715 ;;
2716 rs6000-*-aix*)
2717 host_makefile_frag="config/mh-ppc-aix"
2718 ;;
671aa708
NN
2719 *-*-lynxos*)
2720 # /bin/cc is less than useful for our purposes. Always use GCC
2721 tentative_cc="/bin/gcc"
2722 ;;
2723 *-*-sysv4*)
2724 host_makefile_frag="config/mh-sysv4"
2725 ;;
95c53c62
RS
2726 # This is placed last to prevent interfering with the cases above.
2727 i[3456789]86-*-*)
2728 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2729 host_makefile_frag="config/mh-x86omitfp"
2730 ;;
671aa708
NN
2731esac
2732fi
2733
55ffb5ed
NN
2734# If we aren't going to be using gcc, see if we can extract a definition
2735# of CC from the fragment.
2736# Actually, use the 'pre-extracted' version above.
2737if test -z "${CC}" && test "${build}" = "${host}" ; then
2738 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2739 found=
2740 for dir in $PATH; do
2741 test -z "$dir" && dir=.
2742 if test -f $dir/gcc; then
2743 found=yes
2744 break
2745 fi
2746 done
2747 IFS="$save_ifs"
2748 if test -z "${found}" && test -n "${tentative_cc}" ; then
2749 CC=$tentative_cc
2750 fi
2751fi
2752
2753if test "${build}" != "${host}" ; then
55ffb5ed 2754 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2755else
fb0103e5 2756 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2757fi
2758
2759ac_ext=c
1c710c3c
DJ
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2766set dummy ${ac_tool_prefix}gcc; ac_word=$2
2767echo "$as_me:$LINENO: checking for $ac_word" >&5
2768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2769if test "${ac_cv_prog_CC+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786done
2787done
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793 echo "$as_me:$LINENO: result: $CC" >&5
2794echo "${ECHO_T}$CC" >&6
2795else
2796 echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6
2798fi
2799
2800fi
2801if test -z "$ac_cv_prog_CC"; then
2802 ac_ct_CC=$CC
fb0103e5
RG
2803 # Extract the first word of "gcc", so it can be a program name with args.
2804set dummy gcc; ac_word=$2
1c710c3c
DJ
2805echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_CC="gcc"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824done
2825done
2826
2827fi
2828fi
2829ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830if test -n "$ac_ct_CC"; then
2831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832echo "${ECHO_T}$ac_ct_CC" >&6
2833else
2834 echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6
2836fi
2837
2838 CC=$ac_ct_CC
2839else
2840 CC="$ac_cv_prog_CC"
2841fi
2842
2843if test -z "$CC"; then
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}cc; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_prog_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2851else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
1c710c3c
DJ
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_CC="${ac_tool_prefix}cc"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866done
2867done
2868
0b0dc272 2869fi
0b0dc272 2870fi
1c710c3c 2871CC=$ac_cv_prog_CC
af71363e 2872if test -n "$CC"; then
1c710c3c
DJ
2873 echo "$as_me:$LINENO: result: $CC" >&5
2874echo "${ECHO_T}$CC" >&6
2875else
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
2878fi
2879
2880fi
2881if test -z "$ac_cv_prog_CC"; then
2882 ac_ct_CC=$CC
2883 # Extract the first word of "cc", so it can be a program name with args.
2884set dummy cc; ac_word=$2
2885echo "$as_me:$LINENO: checking for $ac_word" >&5
2886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 if test -n "$ac_ct_CC"; then
2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_ac_ct_CC="cc"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904done
2905done
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2912echo "${ECHO_T}$ac_ct_CC" >&6
0b0dc272 2913else
1c710c3c
DJ
2914 echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6
0b0dc272
AM
2916fi
2917
1c710c3c
DJ
2918 CC=$ac_ct_CC
2919else
2920 CC="$ac_cv_prog_CC"
2921fi
2922
2923fi
55ffb5ed
NN
2924if test -z "$CC"; then
2925 # Extract the first word of "cc", so it can be a program name with args.
2926set dummy cc; ac_word=$2
1c710c3c
DJ
2927echo "$as_me:$LINENO: checking for $ac_word" >&5
2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929if test "${ac_cv_prog_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2931else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
0b0dc272 2935 ac_prog_rejected=no
1c710c3c
DJ
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2944 ac_prog_rejected=yes
2945 continue
2946 fi
2947 ac_cv_prog_CC="cc"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951done
2952done
2953
55ffb5ed
NN
2954if test $ac_prog_rejected = yes; then
2955 # We found a bogon in the path, so make sure we never use it.
2956 set dummy $ac_cv_prog_CC
2957 shift
1c710c3c 2958 if test $# != 0; then
55ffb5ed
NN
2959 # We chose a different compiler from the bogus one.
2960 # However, it has the same basename, so the bogon will be chosen
2961 # first if we set CC to just the basename; use the full file name.
2962 shift
1c710c3c 2963 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2964 fi
2965fi
2966fi
2967fi
1c710c3c 2968CC=$ac_cv_prog_CC
55ffb5ed 2969if test -n "$CC"; then
1c710c3c
DJ
2970 echo "$as_me:$LINENO: result: $CC" >&5
2971echo "${ECHO_T}$CC" >&6
55ffb5ed 2972else
1c710c3c
DJ
2973 echo "$as_me:$LINENO: result: no" >&5
2974echo "${ECHO_T}no" >&6
55ffb5ed
NN
2975fi
2976
1c710c3c
DJ
2977fi
2978if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 for ac_prog in cl
2981 do
2982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2984echo "$as_me:$LINENO: checking for $ac_word" >&5
2985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986if test "${ac_cv_prog_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2988else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
1c710c3c
DJ
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003done
3004done
3005
55ffb5ed
NN
3006fi
3007fi
1c710c3c 3008CC=$ac_cv_prog_CC
55ffb5ed 3009if test -n "$CC"; then
1c710c3c
DJ
3010 echo "$as_me:$LINENO: result: $CC" >&5
3011echo "${ECHO_T}$CC" >&6
a4b9e93e 3012else
1c710c3c
DJ
3013 echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
fb0103e5 3015fi
af71363e 3016
1c710c3c
DJ
3017 test -n "$CC" && break
3018 done
af71363e 3019fi
1c710c3c
DJ
3020if test -z "$CC"; then
3021 ac_ct_CC=$CC
3022 for ac_prog in cl
3023do
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025set dummy $ac_prog; ac_word=$2
3026echo "$as_me:$LINENO: checking for $ac_word" >&5
3027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3030else
1c710c3c
DJ
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3033else
1c710c3c
DJ
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_ac_ct_CC="$ac_prog"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045done
3046done
3047
af71363e
AS
3048fi
3049fi
1c710c3c
DJ
3050ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051if test -n "$ac_ct_CC"; then
3052 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3053echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3054else
1c710c3c
DJ
3055 echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
af71363e 3057fi
0b0dc272 3058
1c710c3c
DJ
3059 test -n "$ac_ct_CC" && break
3060done
3061
3062 CC=$ac_ct_CC
3063fi
3064
3065fi
3066
3067
3068test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3069See \`config.log' for more details." >&5
3070echo "$as_me: error: no acceptable C compiler found in \$PATH
3071See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3073
3074# Provide some information about the compiler.
3075echo "$as_me:$LINENO:" \
3076 "checking for C compiler version" >&5
3077ac_compiler=`set X $ac_compile; echo $2`
3078{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3079 (eval $ac_compiler --version </dev/null >&5) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }
3083{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3084 (eval $ac_compiler -v </dev/null >&5) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3089 (eval $ac_compiler -V </dev/null >&5) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }
3093
3094cat >conftest.$ac_ext <<_ACEOF
3095/* confdefs.h. */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h. */
3100
3101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109ac_clean_files_save=$ac_clean_files
3110ac_clean_files="$ac_clean_files a.out a.exe b.out"
3111# Try to create an executable without -o first, disregard a.out.
3112# It will help us diagnose broken compilers, and finding out an intuition
3113# of exeext.
3114echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3115echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3116ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3118 (eval $ac_link_default) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 # Find the output, starting from the most likely. This scheme is
3123# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3124# resort.
3125
3126# Be careful to initialize this variable, since it used to be cached.
3127# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3128ac_cv_exeext=
3129# b.out is created by i960 compilers.
3130for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3131do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3135 ;;
3136 conftest.$ac_ext )
3137 # This is the source file.
3138 ;;
3139 [ab].out )
3140 # We found the default executable, but exeext='' is most
3141 # certainly right.
3142 break;;
3143 *.* )
3144 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 # FIXME: I believe we export ac_cv_exeext for Libtool,
3146 # but it would be cool to find out if it's true. Does anybody
3147 # maintain Libtool? --akim.
3148 export ac_cv_exeext
3149 break;;
3150 * )
3151 break;;
3152 esac
3153done
3154else
3155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3159See \`config.log' for more details." >&5
3160echo "$as_me: error: C compiler cannot create executables
3161See \`config.log' for more details." >&2;}
3162 { (exit 77); exit 77; }; }
3163fi
3164
3165ac_exeext=$ac_cv_exeext
3166echo "$as_me:$LINENO: result: $ac_file" >&5
3167echo "${ECHO_T}$ac_file" >&6
3168
3169# Check the compiler produces executables we can run. If not, either
3170# the compiler is broken, or we cross compile.
3171echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3172echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3173# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3174# If not cross compiling, check that we can run a simple program.
3175if test "$cross_compiling" != yes; then
3176 if { ac_try='./$ac_file'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
3187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3188If you meant to cross compile, use \`--host'.
3189See \`config.log' for more details." >&5
3190echo "$as_me: error: cannot run C compiled programs.
3191If you meant to cross compile, use \`--host'.
3192See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3194 fi
3195 fi
3196fi
3197echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199
3200rm -f a.out a.exe conftest$ac_cv_exeext b.out
3201ac_clean_files=$ac_clean_files_save
3202# Check the compiler produces executables we can run. If not, either
3203# the compiler is broken, or we cross compile.
3204echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3205echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3206echo "$as_me:$LINENO: result: $cross_compiling" >&5
3207echo "${ECHO_T}$cross_compiling" >&6
3208
3209echo "$as_me:$LINENO: checking for suffix of executables" >&5
3210echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3212 (eval $ac_link) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; then
3216 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3217# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3218# work properly (i.e., refer to `conftest.exe'), while it won't with
3219# `rm'.
3220for ac_file in conftest.exe conftest conftest.*; do
3221 test -f "$ac_file" || continue
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3224 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 export ac_cv_exeext
3226 break;;
3227 * ) break;;
3228 esac
3229done
af71363e 3230else
1c710c3c
DJ
3231 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3232See \`config.log' for more details." >&5
3233echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3234See \`config.log' for more details." >&2;}
3235 { (exit 1); exit 1; }; }
3236fi
3237
3238rm -f conftest$ac_cv_exeext
3239echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3240echo "${ECHO_T}$ac_cv_exeext" >&6
3241
3242rm -f conftest.$ac_ext
3243EXEEXT=$ac_cv_exeext
3244ac_exeext=$EXEEXT
3245echo "$as_me:$LINENO: checking for suffix of object files" >&5
3246echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3247if test "${ac_cv_objext+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.o conftest.obj
3266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3272 case $ac_file in
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3275 break;;
3276 esac
3277done
3278else
3279 echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3283See \`config.log' for more details." >&5
3284echo "$as_me: error: cannot compute suffix of object files: cannot compile
3285See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
3287fi
3288
3289rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3292echo "${ECHO_T}$ac_cv_objext" >&6
3293OBJEXT=$ac_cv_objext
3294ac_objext=$OBJEXT
3295echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3296echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3297if test "${ac_cv_c_compiler_gnu+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300 cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310#ifndef __GNUC__
3311 choke me
3312#endif
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -z "$ac_c_werror_flag"
3328 || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_compiler_gnu=yes
3341else
3342 echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345ac_compiler_gnu=no
3346fi
3347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3348ac_cv_c_compiler_gnu=$ac_compiler_gnu
3349
3350fi
3351echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3352echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3353GCC=`test $ac_compiler_gnu = yes && echo yes`
3354ac_test_CFLAGS=${CFLAGS+set}
3355ac_save_CFLAGS=$CFLAGS
3356CFLAGS="-g"
3357echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3358echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3359if test "${ac_cv_prog_cc_g+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368
3369int
3370main ()
3371{
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag"
3387 || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try='test -s conftest.$ac_objext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
55ffb5ed
NN
3399 ac_cv_prog_cc_g=yes
3400else
1c710c3c
DJ
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3403
1c710c3c 3404ac_cv_prog_cc_g=no
0b0dc272 3405fi
1c710c3c
DJ
3406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407fi
3408echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3409echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3410if test "$ac_test_CFLAGS" = set; then
1c710c3c 3411 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3412elif test $ac_cv_prog_cc_g = yes; then
3413 if test "$GCC" = yes; then
3414 CFLAGS="-g -O2"
3415 else
3416 CFLAGS="-g"
3417 fi
3418else
3419 if test "$GCC" = yes; then
3420 CFLAGS="-O2"
3421 else
3422 CFLAGS=
3423 fi
3424fi
1c710c3c
DJ
3425echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3426echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3427if test "${ac_cv_prog_cc_stdc+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 ac_cv_prog_cc_stdc=no
3431ac_save_CC=$CC
3432cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */
3438#include <stdarg.h>
3439#include <stdio.h>
3440#include <sys/types.h>
3441#include <sys/stat.h>
3442/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3443struct buf { int x; };
3444FILE * (*rcsopen) (struct buf *, struct stat *, int);
3445static char *e (p, i)
3446 char **p;
3447 int i;
3448{
3449 return p[i];
3450}
3451static char *f (char * (*g) (char **, int), char **p, ...)
3452{
3453 char *s;
3454 va_list v;
3455 va_start (v,p);
3456 s = g (p, va_arg (v,int));
3457 va_end (v);
3458 return s;
3459}
3460
3461/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3462 function prototypes and stuff, but not '\xHH' hex character constants.
3463 These don't provoke an error unfortunately, instead are silently treated
3464 as 'x'. The following induces an error, until -std1 is added to get
3465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3466 array size at least. It's necessary to write '\x00'==0 to get something
3467 that's true only with -std1. */
3468int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469
3470int test (int i, double x);
3471struct s1 {int (*f) (int a);};
3472struct s2 {int (*f) (double a);};
3473int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3474int argc;
3475char **argv;
3476int
3477main ()
3478{
3479return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484# Don't try gcc -ansi; that turns off useful extensions and
3485# breaks some systems' header files.
3486# AIX -qlanglvl=ansi
3487# Ultrix and OSF/1 -std1
3488# HP-UX 10.20 and later -Ae
3489# HP-UX older versions -Aa -D_HPUX_SOURCE
3490# SVR4 -Xc -D__EXTENSIONS__
3491for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3492do
3493 CC="$ac_save_CC $ac_arg"
3494 rm -f conftest.$ac_objext
3495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_prog_cc_stdc=$ac_arg
3517break
3518else
3519 echo "$as_me: failed program was:" >&5
3520sed 's/^/| /' conftest.$ac_ext >&5
3521
3522fi
3523rm -f conftest.err conftest.$ac_objext
3524done
3525rm -f conftest.$ac_ext conftest.$ac_objext
3526CC=$ac_save_CC
3527
3528fi
3529
3530case "x$ac_cv_prog_cc_stdc" in
3531 x|xno)
3532 echo "$as_me:$LINENO: result: none needed" >&5
3533echo "${ECHO_T}none needed" >&6 ;;
3534 *)
3535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3536echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3537 CC="$CC $ac_cv_prog_cc_stdc" ;;
3538esac
3539
3540# Some people use a C++ compiler to compile C. Since we use `exit',
3541# in C++ we need to declare it. In case someone uses the same compiler
3542# for both compiling C and C++ we need to have the C++ compiler decide
3543# the declaration of exit, since it's the most demanding environment.
3544cat >conftest.$ac_ext <<_ACEOF
3545#ifndef __cplusplus
3546 choke me
3547#endif
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 for ac_declaration in \
3572 '' \
3573 'extern "C" void std::exit (int) throw (); using std::exit;' \
3574 'extern "C" void std::exit (int); using std::exit;' \
3575 'extern "C" void exit (int) throw ();' \
3576 'extern "C" void exit (int);' \
3577 'void exit (int);'
3578do
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585$ac_declaration
3586#include <stdlib.h>
3587int
3588main ()
3589{
3590exit (42);
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595rm -f conftest.$ac_objext
3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 :
3618else
3619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622continue
3623fi
3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631$ac_declaration
3632int
3633main ()
3634{
3635exit (42);
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640rm -f conftest.$ac_objext
3641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 break
3663else
3664 echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667fi
3668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3669done
3670rm -f conftest*
3671if test -n "$ac_declaration"; then
3672 echo '#ifdef __cplusplus' >>confdefs.h
3673 echo $ac_declaration >>confdefs.h
3674 echo '#endif' >>confdefs.h
3675fi
3676
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681fi
3682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3683ac_ext=c
3684ac_cpp='$CPP $CPPFLAGS'
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
55ffb5ed 3688
c3a86da9
DJ
3689ac_ext=cc
3690ac_cpp='$CXXCPP $CPPFLAGS'
3691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3694if test -n "$ac_tool_prefix"; then
3695 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3696 do
3697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3699echo "$as_me:$LINENO: checking for $ac_word" >&5
3700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701if test "${ac_cv_prog_CXX+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704 if test -n "$CXX"; then
3705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3706else
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718done
3719done
55ffb5ed 3720
c3a86da9
DJ
3721fi
3722fi
3723CXX=$ac_cv_prog_CXX
3724if test -n "$CXX"; then
3725 echo "$as_me:$LINENO: result: $CXX" >&5
3726echo "${ECHO_T}$CXX" >&6
3727else
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730fi
3731
3732 test -n "$CXX" && break
3733 done
3734fi
3735if test -z "$CXX"; then
3736 ac_ct_CXX=$CXX
3737 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3738do
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740set dummy $ac_prog; ac_word=$2
3741echo "$as_me:$LINENO: checking for $ac_word" >&5
3742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 if test -n "$ac_ct_CXX"; then
3747 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_CXX="$ac_prog"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760done
3761done
3762
3763fi
3764fi
3765ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3766if test -n "$ac_ct_CXX"; then
3767 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3768echo "${ECHO_T}$ac_ct_CXX" >&6
3769else
3770 echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
3772fi
3773
3774 test -n "$ac_ct_CXX" && break
3775done
3776test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3777
3778 CXX=$ac_ct_CXX
3779fi
3780
3781
3782# Provide some information about the compiler.
3783echo "$as_me:$LINENO:" \
3784 "checking for C++ compiler version" >&5
3785ac_compiler=`set X $ac_compile; echo $2`
3786{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3787 (eval $ac_compiler --version </dev/null >&5) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3792 (eval $ac_compiler -v </dev/null >&5) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }
3796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3797 (eval $ac_compiler -V </dev/null >&5) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }
3801
3802echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3803echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3804if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h. */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h. */
3813
3814int
3815main ()
3816{
3817#ifndef __GNUC__
3818 choke me
3819#endif
3820
3821 ;
3822 return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext
3826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_cxx_werror_flag"
3835 || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 ac_compiler_gnu=yes
3848else
3849 echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852ac_compiler_gnu=no
3853fi
3854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3856
3857fi
3858echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3859echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3860GXX=`test $ac_compiler_gnu = yes && echo yes`
3861ac_test_CXXFLAGS=${CXXFLAGS+set}
3862ac_save_CXXFLAGS=$CXXFLAGS
3863CXXFLAGS="-g"
3864echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3865echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3866if test "${ac_cv_prog_cxx_g+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869 cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
3875
3876int
3877main ()
3878{
3879
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884rm -f conftest.$ac_objext
3885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -z "$ac_cxx_werror_flag"
3894 || test ! -s conftest.err'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_prog_cxx_g=yes
3907else
3908 echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911ac_cv_prog_cxx_g=no
3912fi
3913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914fi
3915echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3916echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3917if test "$ac_test_CXXFLAGS" = set; then
3918 CXXFLAGS=$ac_save_CXXFLAGS
3919elif test $ac_cv_prog_cxx_g = yes; then
3920 if test "$GXX" = yes; then
3921 CXXFLAGS="-g -O2"
3922 else
3923 CXXFLAGS="-g"
3924 fi
3925else
3926 if test "$GXX" = yes; then
3927 CXXFLAGS="-O2"
3928 else
3929 CXXFLAGS=
23f6b2f9 3930 fi
c3a86da9
DJ
3931fi
3932for ac_declaration in \
3933 '' \
3934 'extern "C" void std::exit (int) throw (); using std::exit;' \
3935 'extern "C" void std::exit (int); using std::exit;' \
3936 'extern "C" void exit (int) throw ();' \
3937 'extern "C" void exit (int);' \
3938 'void exit (int);'
3939do
3940 cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h. */
3946$ac_declaration
3947#include <stdlib.h>
3948int
3949main ()
3950{
3951exit (42);
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956rm -f conftest.$ac_objext
3957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958 (eval $ac_compile) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } &&
3965 { ac_try='test -z "$ac_cxx_werror_flag"
3966 || test ! -s conftest.err'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 :
3979else
3980 echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 3982
c3a86da9
DJ
3983continue
3984fi
3985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986 cat >conftest.$ac_ext <<_ACEOF
3987/* confdefs.h. */
3988_ACEOF
3989cat confdefs.h >>conftest.$ac_ext
3990cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h. */
3992$ac_declaration
3993int
3994main ()
3995{
3996exit (42);
3997 ;
3998 return 0;
3999}
4000_ACEOF
4001rm -f conftest.$ac_objext
4002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003 (eval $ac_compile) 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_cxx_werror_flag"
4011 || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 break
4024else
4025 echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028fi
4029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4030done
4031rm -f conftest*
4032if test -n "$ac_declaration"; then
4033 echo '#ifdef __cplusplus' >>confdefs.h
4034 echo $ac_declaration >>confdefs.h
4035 echo '#endif' >>confdefs.h
4036fi
4037
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044
4045# We must set the default linker to the linker used by gcc for the correct
4046# operation of libtool. If LD is not defined and we are using gcc, try to
4047# set the LD default to the ld used by gcc.
4048if test -z "$LD"; then
4049 if test "$GCC" = yes; then
4050 case $build in
4051 *-*-mingw*)
4052 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4053 *)
4054 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4055 esac
4056 case $gcc_prog_ld in
4057 # Accept absolute paths.
4058 [\\/]* | [A-Za-z]:[\\/]*)
4059 LD="$gcc_prog_ld" ;;
4060 esac
4061 fi
23f6b2f9
PB
4062fi
4063
23f6b2f9
PB
4064
4065
55ffb5ed 4066
1c710c3c
DJ
4067if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4069set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
1c710c3c
DJ
4070echo "$as_me:$LINENO: checking for $ac_word" >&5
4071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4072if test "${ac_cv_prog_GNATBIND+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4074else
4075 if test -n "$GNATBIND"; then
4076 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4077else
1c710c3c
DJ
4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089done
4090done
4091
55ffb5ed
NN
4092fi
4093fi
1c710c3c 4094GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4095if test -n "$GNATBIND"; then
1c710c3c
DJ
4096 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4097echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4098else
1c710c3c
DJ
4099 echo "$as_me:$LINENO: result: no" >&5
4100echo "${ECHO_T}no" >&6
55ffb5ed
NN
4101fi
4102
1c710c3c 4103fi
55ffb5ed 4104if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4105 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4106 # Extract the first word of "gnatbind", so it can be a program name with args.
4107set dummy gnatbind; ac_word=$2
1c710c3c
DJ
4108echo "$as_me:$LINENO: checking for $ac_word" >&5
4109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4112else
1c710c3c
DJ
4113 if test -n "$ac_ct_GNATBIND"; then
4114 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4115else
1c710c3c
DJ
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127done
4128done
4129
4130 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4131fi
4132fi
1c710c3c
DJ
4133ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4134if test -n "$ac_ct_GNATBIND"; then
4135 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4136echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4137else
1c710c3c
DJ
4138 echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
55ffb5ed
NN
4140fi
4141
1c710c3c 4142 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4143else
1c710c3c 4144 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4145fi
4146
1c710c3c
DJ
4147if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4149set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
1c710c3c
DJ
4150echo "$as_me:$LINENO: checking for $ac_word" >&5
4151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4154else
4155 if test -n "$GNATMAKE"; then
4156 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4157else
1c710c3c
DJ
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170done
4171
5305be7e
RG
4172fi
4173fi
1c710c3c 4174GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4175if test -n "$GNATMAKE"; then
1c710c3c
DJ
4176 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4177echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4178else
1c710c3c
DJ
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
5305be7e
RG
4181fi
4182
1c710c3c 4183fi
5305be7e 4184if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4185 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4186 # Extract the first word of "gnatmake", so it can be a program name with args.
4187set dummy gnatmake; ac_word=$2
1c710c3c
DJ
4188echo "$as_me:$LINENO: checking for $ac_word" >&5
4189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4192else
1c710c3c
DJ
4193 if test -n "$ac_ct_GNATMAKE"; then
4194 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4195else
1c710c3c
DJ
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207done
4208done
4209
4210 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4211fi
4212fi
1c710c3c
DJ
4213ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4214if test -n "$ac_ct_GNATMAKE"; then
4215 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4216echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4217else
1c710c3c
DJ
4218 echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
5305be7e
RG
4220fi
4221
1c710c3c 4222 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4223else
1c710c3c 4224 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4225fi
4226
1c710c3c
DJ
4227echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4228echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4229if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4231else
4232 cat >conftest.adb <<EOF
4233procedure conftest is begin null; end conftest;
4234EOF
4235acx_cv_cc_gcc_supports_ada=no
4236# There is a bug in old released versions of GCC which causes the
4237# driver to exit successfully when the appropriate language module
4238# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4239# Therefore we must check for the error message as well as an
4240# unsuccessful exit.
1db673ca
RO
4241# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4242# given a .adb file, but produce no object file. So we must check
4243# if an object file was really produced to guard against this.
55ffb5ed 4244errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4245if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4246 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4247fi
4248rm -f conftest.*
4249fi
1c710c3c
DJ
4250echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4251echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4252
5305be7e 4253if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4254 have_gnat=yes
4255else
4256 have_gnat=no
4257fi
4258
1c710c3c
DJ
4259echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4260echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4261if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4263else
4264 echo abfoo >t1
4265 echo cdfoo >t2
4266 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4267 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4268 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4269 :
4270 else
4271 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4272 fi
4273 fi
a76494aa
PB
4274 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4275 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4276 :
a76494aa
PB
4277 else
4278 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4279 fi
4280 fi
4281 rm t1 t2
4282
4283fi
1c710c3c
DJ
4284echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4285echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4286do_compare="$gcc_cv_prog_cmp_skip"
4287
4288
55ffb5ed 4289
bebf829d 4290# Check for GMP and MPFR
e69bf64b 4291gmplibs="-lmpfr -lgmp"
6de9cd9a 4292gmpinc=
e69bf64b
PB
4293have_gmp=no
4294
bebf829d
PB
4295# Specify a location for mpfr
4296# check for this first so it ends up on the link line before gmp.
1c710c3c 4297
bebf829d
PB
4298# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4299if test "${with_mpfr_dir+set}" = set; then
4300 withval="$with_mpfr_dir"
1c710c3c
DJ
4301 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4302Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4303echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4304Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4305 { (exit 1); exit 1; }; }
4306fi;
bebf829d
PB
4307
4308
bebf829d
PB
4309# Check whether --with-mpfr or --without-mpfr was given.
4310if test "${with_mpfr+set}" = set; then
4311 withval="$with_mpfr"
1c710c3c
DJ
4312
4313fi;
bebf829d 4314
8a877c9c
KG
4315# Check whether --with-mpfr_include or --without-mpfr_include was given.
4316if test "${with_mpfr_include+set}" = set; then
4317 withval="$with_mpfr_include"
1c710c3c
DJ
4318
4319fi;
8a877c9c
KG
4320
4321# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4322if test "${with_mpfr_lib+set}" = set; then
4323 withval="$with_mpfr_lib"
8a877c9c 4324
1c710c3c 4325fi;
bebf829d
PB
4326
4327if test "x$with_mpfr" != x; then
4328 gmplibs="-L$with_mpfr/lib $gmplibs"
4329 gmpinc="-I$with_mpfr/include"
4330fi
8a877c9c
KG
4331if test "x$with_mpfr_include" != x; then
4332 gmpinc="-I$with_mpfr_include"
4333fi
4334if test "x$with_mpfr_lib" != x; then
4335 gmplibs="-L$with_mpfr_lib $gmplibs"
4336fi
e69bf64b
PB
4337if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4338 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4339 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4340 # Do not test the mpfr version. Assume that it is sufficient, since
4341 # it is in the source tree, and the library has not been built yet
4342 # but it would be included on the link line in the version check below
4343 # hence making the test fail.
4344 have_gmp=yes
4345fi
bebf829d 4346
6de9cd9a 4347# Specify a location for gmp
1c710c3c 4348
6de9cd9a
DN
4349# Check whether --with-gmp-dir or --without-gmp-dir was given.
4350if test "${with_gmp_dir+set}" = set; then
4351 withval="$with_gmp_dir"
1c710c3c
DJ
4352 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4353Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4354echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4355Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4356 { (exit 1); exit 1; }; }
4357fi;
6de9cd9a 4358
6de9cd9a
DN
4359
4360# Check whether --with-gmp or --without-gmp was given.
4361if test "${with_gmp+set}" = set; then
4362 withval="$with_gmp"
1c710c3c
DJ
4363
4364fi;
6de9cd9a 4365
8a877c9c
KG
4366# Check whether --with-gmp_include or --without-gmp_include was given.
4367if test "${with_gmp_include+set}" = set; then
4368 withval="$with_gmp_include"
1c710c3c
DJ
4369
4370fi;
8a877c9c
KG
4371
4372# Check whether --with-gmp_lib or --without-gmp_lib was given.
4373if test "${with_gmp_lib+set}" = set; then
4374 withval="$with_gmp_lib"
8a877c9c 4375
1c710c3c 4376fi;
8a877c9c 4377
6de9cd9a 4378
bebf829d
PB
4379if test "x$with_gmp" != x; then
4380 gmplibs="-L$with_gmp/lib $gmplibs"
4381 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4382fi
8a877c9c
KG
4383if test "x$with_gmp_include" != x; then
4384 gmpinc="-I$with_gmp_include $gmpinc"
4385fi
4386if test "x$with_gmp_lib" != x; then
4387 gmplibs="-L$with_gmp_lib $gmplibs"
4388fi
e69bf64b
PB
4389if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4390 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4391 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4392 # Do not test the gmp version. Assume that it is sufficient, since
4393 # it is in the source tree, and the library has not been built yet
4394 # but it would be included on the link line in the version check below
4395 # hence making the test fail.
4396 have_gmp=yes
4397fi
6de9cd9a 4398
d943d7c4 4399if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4400 have_gmp=yes
4401 saved_CFLAGS="$CFLAGS"
4402 CFLAGS="$CFLAGS $gmpinc"
4403 # Check GMP actually works
1c710c3c
DJ
4404 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4405echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4406
4407cat >conftest.$ac_ext <<_ACEOF
4408/* confdefs.h. */
4409_ACEOF
4410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
4412/* end confdefs.h. */
6de9cd9a 4413#include "gmp.h"
1c710c3c
DJ
4414int
4415main ()
4416{
6de9cd9a 4417
e69bf64b
PB
4418 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4419 choke me
4420 #endif
1c710c3c
DJ
4421
4422 ;
4423 return 0;
4424}
4425_ACEOF
4426rm -f conftest.$ac_objext
4427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>conftest.er1
4429 ac_status=$?
4430 grep -v '^ *+' conftest.er1 >conftest.err
4431 rm -f conftest.er1
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -z "$ac_c_werror_flag"
4436 || test ! -s conftest.err'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 echo "$as_me:$LINENO: result: yes" >&5
4449echo "${ECHO_T}yes" >&6
4450else
4451 echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; have_gmp=no
4456fi
4457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4458
e69bf64b
PB
4459 if test x"$have_gmp" = xyes; then
4460 saved_LIBS="$LIBS"
4461 LIBS="$LIBS $gmplibs"
1c710c3c
DJ
4462 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4463echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4464 cat >conftest.$ac_ext <<_ACEOF
4465/* confdefs.h. */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h. */
70ec446f 4470#include <gmp.h>
e69bf64b 4471 #include <mpfr.h>
1c710c3c
DJ
4472int
4473main ()
4474{
e48d66a9 4475
e69bf64b
PB
4476 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4477 choke me
4478 #endif
54e433bc
MK
4479 mpfr_t n;
4480 mpfr_t x;
e69bf64b 4481 int t;
54e433bc
MK
4482 mpfr_init (n);
4483 mpfr_init (x);
e69bf64b
PB
4484 mpfr_atan2 (n, n, x, GMP_RNDN);
4485 mpfr_erfc (n, x, GMP_RNDN);
4486 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4487
4488 ;
4489 return 0;
4490}
4491_ACEOF
4492rm -f conftest.$ac_objext conftest$ac_exeext
4493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4494 (eval $ac_link) 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag"
4502 || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try='test -s conftest$ac_exeext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
a3993f33 4520#include <gmp.h>
e69bf64b 4521 #include <mpfr.h>
1c710c3c
DJ
4522int
4523main ()
4524{
a3993f33 4525
e69bf64b
PB
4526 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4527 choke me
4528 #endif
4529 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4530
4531 ;
4532 return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext conftest$ac_exeext
4536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4537 (eval $ac_link) 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest$ac_exeext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 echo "$as_me:$LINENO: result: yes" >&5
4558echo "${ECHO_T}yes" >&6
4559else
4560 echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4564echo "${ECHO_T}buggy but acceptable" >&6
4565fi
4566rm -f conftest.err conftest.$ac_objext \
4567 conftest$ac_exeext conftest.$ac_ext
4568else
4569 echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6; have_gmp=no
4574fi
4575rm -f conftest.err conftest.$ac_objext \
4576 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4577 LIBS="$saved_LIBS"
4578 fi
4579 CFLAGS="$saved_CFLAGS"
6de9cd9a 4580
e69bf64b 4581 if test x$have_gmp != xyes; then
1c710c3c
DJ
4582 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4583Try the --with-gmp and/or --with-mpfr options to specify their locations.
4584Copies of these libraries' source code can be found at their respective
4585hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4586See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4587If you obtained GMP and/or MPFR from a vendor distribution package, make
4588sure that you have installed both the libraries and the header files.
4589They may be located in separate packages." >&5
4590echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4591Try the --with-gmp and/or --with-mpfr options to specify their locations.
4592Copies of these libraries' source code can be found at their respective
4593hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4594See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4595If you obtained GMP and/or MPFR from a vendor distribution package, make
4596sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4597They may be located in separate packages." >&2;}
4598 { (exit 1); exit 1; }; }
e69bf64b 4599 fi
70ec446f
KG
4600fi
4601
bebf829d 4602# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4603
4604
4605
1e0f07d3 4606# By default, C is the only stage 1 language.
e1888513 4607stage1_languages=,c,
2805b53a 4608
55ffb5ed
NN
4609# Figure out what language subdirectories are present.
4610# Look if the user specified --enable-languages="..."; if not, use
4611# the environment variable $LANGUAGES if defined. $LANGUAGES might
4612# go away some day.
4613# NB: embedded tabs in this IF block -- do not untabify
4614if test -d ${srcdir}/gcc; then
4615 if test x"${enable_languages+set}" != xset; then
4616 if test x"${LANGUAGES+set}" = xset; then
4617 enable_languages="${LANGUAGES}"
4618 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4619 else
4620 enable_languages=all
4621 fi
4622 else
4623 if test x"${enable_languages}" = x ||
4624 test x"${enable_languages}" = xyes;
4625 then
4626 echo configure.in: --enable-languages needs at least one language argument 1>&2
4627 exit 1
4628 fi
4629 fi
4630 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4631
7f26dfa3
FXC
4632 # 'f95' is the old name for the 'fortran' language. We issue a warning
4633 # and make the substitution.
4634 case ,${enable_languages}, in
4635 *,f95,*)
4636 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4637 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4638 ;;
4639 esac
4640
55ffb5ed
NN
4641 # First scan to see if an enabled language requires some other language.
4642 # We assume that a given config-lang.in will list all the language
4643 # front ends it requires, even if some are required indirectly.
4644 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4645 case ${lang_frag} in
4646 ..) ;;
4647 # The odd quoting in the next line works around
4648 # an apparent bug in bash 1.12 on linux.
4649 ${srcdir}/gcc/[*]/config-lang.in) ;;
4650 *)
4651 # From the config-lang.in, get $language, $lang_requires
4652 language=
4653 lang_requires=
4654 . ${lang_frag}
4655 for other in ${lang_requires} ; do
4656 case ,${enable_languages}, in
4657 *,$other,*) ;;
4658 *,all,*) ;;
4659 *,$language,*)
4660 echo " \`$other' language required by \`$language'; enabling" 1>&2
4661 enable_languages="${enable_languages},${other}"
4662 ;;
4663 esac
4664 done
4665 ;;
4666 esac
4667 done
4668
e1888513 4669 new_enable_languages=,c,
55ffb5ed 4670 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4671 potential_languages=,c,
55ffb5ed
NN
4672
4673 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4674 case ${lang_frag} in
4675 ..) ;;
4676 # The odd quoting in the next line works around
4677 # an apparent bug in bash 1.12 on linux.
4678 ${srcdir}/gcc/[*]/config-lang.in) ;;
4679 *)
1c710c3c 4680 # From the config-lang.in, get $language, $target_libs,
2805b53a 4681 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4682 language=
4683 target_libs=
4684 lang_dirs=
1546bb64 4685 subdir_requires=
e1888513
PB
4686 boot_language=no
4687 build_by_default=yes
55ffb5ed 4688 . ${lang_frag}
e1888513
PB
4689 if test x${language} = x; then
4690 echo "${lang_frag} doesn't set \$language." 1>&2
4691 exit 1
4692 fi
4693
4694 case ,${enable_languages}, in
4695 *,${language},*)
55ffb5ed
NN
4696 # Language was explicitly selected; include it.
4697 add_this_lang=yes
4698 ;;
e1888513
PB
4699 *,all,*)
4700 # 'all' was selected, select it if it is a default language
4701 add_this_lang=${build_by_default}
55ffb5ed
NN
4702 ;;
4703 *)
4704 add_this_lang=no
4705 ;;
4706 esac
6de9cd9a 4707
1546bb64 4708 # Disable languages that need other directories if these aren't available.
95695ad3 4709 for i in $subdir_requires; do
b6348cb3 4710 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4711 case ,${enable_languages}, in
4712 *,${language},*)
4713 # Specifically requested language; tell them.
1c710c3c
DJ
4714 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4715echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4716 { (exit 1); exit 1; }; }
1546bb64
PB
4717 ;;
4718 *)
4719 # Silently disable.
e1888513 4720 add_this_lang=unsupported
1546bb64
PB
4721 ;;
4722 esac
4723 done
4724
e1888513
PB
4725 # Disable Ada if no preexisting GNAT is available.
4726 case ,${enable_languages},:${language}:${have_gnat} in
4727 *,${language},*:ada:no)
4728 # Specifically requested language; tell them.
1c710c3c
DJ
4729 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4730echo "$as_me: error: GNAT is required to build $language" >&2;}
4731 { (exit 1); exit 1; }; }
e1888513
PB
4732 ;;
4733 *:ada:no)
4734 # Silently disable.
4735 add_this_lang=unsupported
4736 ;;
4737 esac
4738
4fab7234
HPN
4739 # Disable a language that is unsupported by the target.
4740 case " $unsupported_languages " in
4741 *" $language "*)
e1888513 4742 add_this_lang=unsupported
4fab7234
HPN
4743 ;;
4744 esac
4745
6de9cd9a 4746 case $add_this_lang in
e1888513 4747 unsupported)
55ffb5ed 4748 # Remove language-dependent dirs.
2805b53a
NN
4749 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4750 ;;
e1888513
PB
4751 no)
4752 # Remove language-dependent dirs; still show language as supported.
4753 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4754 potential_languages="${potential_languages}${language},"
4755 ;;
4756 yes)
4757 new_enable_languages="${new_enable_languages}${language},"
4758 potential_languages="${potential_languages}${language},"
2805b53a
NN
4759 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4760 case ${boot_language} in
4761 yes)
340de83f 4762 # Add to (comma-separated) list of stage 1 languages.
e1888513 4763 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4764 ;;
4765 esac
4766 ;;
55ffb5ed
NN
4767 esac
4768 ;;
4769 esac
4770 done
4771
e1888513
PB
4772 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4773if test "${enable_stage1_languages+set}" = set; then
4774 enableval="$enable_stage1_languages"
4775 case ,${enable_stage1_languages}, in
4776 ,no,|,,)
4777 # Set it to something that will have no effect in the loop below
4778 enable_stage1_languages=c ;;
4779 ,yes,)
4780 enable_stage1_languages=`echo $new_enable_languages | \
4781 sed -e "s/^,//" -e "s/,$//" ` ;;
4782 *,all,*)
4783 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4784 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4785 esac
4786
4787 # Add "good" languages from enable_stage1_languages to stage1_languages,
4788 # while "bad" languages go in missing_languages. Leave no duplicates.
4789 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4790 case $potential_languages in
4791 *,$i,*)
4792 case $stage1_languages in
4793 *,$i,*) ;;
4794 *) stage1_languages="$stage1_languages$i," ;;
4795 esac ;;
4796 *)
4797 case $missing_languages in
4798 *,$i,*) ;;
4799 *) missing_languages="$missing_languages$i," ;;
4800 esac ;;
4801 esac
4802 done
1c710c3c 4803fi;
e1888513
PB
4804
4805 # Remove leading/trailing commas that were added for simplicity
4806 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4807 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4808 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4809 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4810
55ffb5ed 4811 if test "x$missing_languages" != x; then
1c710c3c 4812 { { echo "$as_me:$LINENO: error:
0cf085e4 4813The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4814Supported languages are: ${potential_languages}" >&5
4815echo "$as_me: error:
4816The following requested languages could not be built: ${missing_languages}
4817Supported languages are: ${potential_languages}" >&2;}
4818 { (exit 1); exit 1; }; }
55ffb5ed 4819 fi
55ffb5ed
NN
4820 if test "x$new_enable_languages" != "x$enable_languages"; then
4821 echo The following languages will be built: ${new_enable_languages}
e1888513 4822 enable_languages="$new_enable_languages"
55ffb5ed 4823 fi
e1888513 4824
1c710c3c 4825
b2eaac4a 4826 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4827fi
4828
27079765
AH
4829# Handle --disable-<component> generically.
4830for dir in $configdirs $build_configdirs $target_configdirs ; do
4831 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4832 if eval test x\${enable_${dirname}} "=" xno ; then
4833 noconfigdirs="$noconfigdirs $dir"
4834 fi
4835done
4836
7cd0cf9c
DA
4837# Check for Boehm's garbage collector
4838# Check whether --enable-objc-gc or --disable-objc-gc was given.
4839if test "${enable_objc_gc+set}" = set; then
4840 enableval="$enable_objc_gc"
4841 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4842 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4843 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4844echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4845 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4846 ;;
4847esac
1c710c3c 4848fi;
7cd0cf9c
DA
4849
4850# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4851case ,${enable_languages},:${enable_objc_gc} in
4852 *,objc,*:yes)
7cd0cf9c
DA
4853 # Keep target-boehm-gc if requested for Objective-C.
4854 ;;
7cd0cf9c 4855 *)
2a79fd67
DA
4856 # Otherwise remove target-boehm-gc depending on target-libjava.
4857 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4858 noconfigdirs="$noconfigdirs target-boehm-gc"
4859 fi
7cd0cf9c
DA
4860 ;;
4861esac
4862
ee6a22df
L
4863# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4864# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4865# If we have the source for $noconfigdirs entries, add them to $notsupp.
4866
4867notsupp=""
4868for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4869 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4870 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4871 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4872 if test -r $srcdir/$dirname/configure ; then
4873 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4874 true
4875 else
4876 notsupp="$notsupp $dir"
4877 fi
4878 fi
4879 fi
ee6a22df
L
4880 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4881 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4882 if test -r $srcdir/$dirname/configure ; then
4883 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4884 true
4885 else
4886 notsupp="$notsupp $dir"
4887 fi
4888 fi
4889 fi
55ffb5ed
NN
4890 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4891 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4892 if test -r $srcdir/$dirname/configure ; then
4893 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4894 true
4895 else
4896 notsupp="$notsupp $dir"
4897 fi
4898 fi
4899 fi
4900done
4901
4902# Sometimes the tools are distributed with libiberty but with no other
4903# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4904# Don't let libgcc imply libiberty either.
55ffb5ed 4905if test -n "${target_configdirs}" ; then
54fdc474 4906 libgcc=
55ffb5ed
NN
4907 others=
4908 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4909 if test "$i" = "libgcc"; then
4910 libgcc=target-libgcc
4911 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4912 if test -r $srcdir/$i/configure ; then
4913 others=yes;
4914 break;
4915 fi
4916 fi
4917 done
4918 if test -z "${others}" ; then
54fdc474 4919 target_configdirs=$libgcc
55ffb5ed
NN
4920 fi
4921fi
4922
4923# Quietly strip out all directories which aren't configurable in this tree.
4924# This relies on all configurable subdirectories being autoconfiscated, which
4925# is now the case.
23f6b2f9
PB
4926build_configdirs_all="$build_configdirs"
4927build_configdirs=
4928for i in ${build_configdirs_all} ; do
1c710c3c 4929 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4930 if test -f ${srcdir}/$j/configure ; then
4931 build_configdirs="${build_configdirs} $i"
4932 fi
4933done
4934
55ffb5ed
NN
4935configdirs_all="$configdirs"
4936configdirs=
4937for i in ${configdirs_all} ; do
4938 if test -f ${srcdir}/$i/configure ; then
4939 configdirs="${configdirs} $i"
4940 fi
4941done
23f6b2f9 4942
55ffb5ed
NN
4943target_configdirs_all="$target_configdirs"
4944target_configdirs=
4945for i in ${target_configdirs_all} ; do
1c710c3c 4946 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4947 if test -f ${srcdir}/$j/configure ; then
4948 target_configdirs="${target_configdirs} $i"
4949 fi
4950done
4951
4952# Produce a warning message for the subdirs we can't configure.
4953# This isn't especially interesting in the Cygnus tree, but in the individual
4954# FSF releases, it's important to let people know when their machine isn't
4955# supported by the one or two programs in a package.
4956
4957if test -n "${notsupp}" && test -z "${norecursion}" ; then
4958 # If $appdirs is non-empty, at least one of those directories must still
4959 # be configured, or we error out. (E.g., if the gas release supports a
4960 # specified target in some subdirs but not the gas subdir, we shouldn't
4961 # pretend that all is well.)
4962 if test -n "$appdirs" ; then
4963 for dir in $appdirs ; do
4964 if test -r $dir/Makefile.in ; then
4965 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4966 appdirs=""
4967 break
4968 fi
23f6b2f9 4969 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4970 appdirs=""
4971 break
4972 fi
4973 fi
4974 done
4975 if test -n "$appdirs" ; then
4976 echo "*** This configuration is not supported by this package." 1>&2
4977 exit 1
4978 fi
4979 fi
4980 # Okay, some application will build, or we don't care to check. Still
4981 # notify of subdirs not getting built.
4982 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4983 echo " ${notsupp}" 1>&2
4984 echo " (Any other directories should still work fine.)" 1>&2
4985fi
4986
4987case "$host" in
4988 *msdosdjgpp*)
4989 enable_gdbtk=no ;;
4990esac
4991
c3a86da9
DJ
4992# To find our prefix, in gcc_cv_tool_prefix.
4993
4994# The user is always right.
4995if test "${PATH_SEPARATOR+set}" != set; then
4996 echo "#! /bin/sh" >conf$$.sh
4997 echo "exit 0" >>conf$$.sh
4998 chmod +x conf$$.sh
4999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5000 PATH_SEPARATOR=';'
5001 else
5002 PATH_SEPARATOR=:
5003 fi
5004 rm -f conf$$.sh
5005fi
5006
5007
5008
5009if test "x$exec_prefix" = xNONE; then
5010 if test "x$prefix" = xNONE; then
5011 gcc_cv_tool_prefix=$ac_default_prefix
5012 else
5013 gcc_cv_tool_prefix=$prefix
5014 fi
5015else
5016 gcc_cv_tool_prefix=$exec_prefix
5017fi
5018
5019# If there is no compiler in the tree, use the PATH only. In any
5020# case, if there is no compiler in the tree nobody should use
5021# AS_FOR_TARGET and LD_FOR_TARGET.
5022if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5023 gcc_version=`cat $srcdir/gcc/BASE-VER`
5024 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5025 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5026 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5027 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5028 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5029 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5030else
5031 gcc_cv_tool_dirs=
5032fi
5033
5034if test x$build = x$target && test -n "$md_exec_prefix"; then
5035 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5036fi
5037
5038
5039
55ffb5ed
NN
5040copy_dirs=
5041
1c710c3c 5042
526635cb
MM
5043# Check whether --with-build-sysroot or --without-build-sysroot was given.
5044if test "${with_build_sysroot+set}" = set; then
5045 withval="$with_build_sysroot"
5046 if test x"$withval" != x ; then
5047 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5048 fi
5049else
5050 SYSROOT_CFLAGS_FOR_TARGET=
1c710c3c 5051fi;
526635cb
MM
5052
5053
55ffb5ed
NN
5054# Handle --with-headers=XXX. If the value is not "yes", the contents of
5055# the named directory are copied to $(tooldir)/sys-include.
5056if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5057 if test x${is_cross_compiler} = xno ; then
5058 echo 1>&2 '***' --with-headers is only supported when cross compiling
5059 exit 1
5060 fi
5061 if test x"${with_headers}" != xyes ; then
c3a86da9 5062 x=${gcc_cv_tool_prefix}
1c710c3c 5063 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5064 fi
5065fi
5066
5067# Handle --with-libs=XXX. If the value is not "yes", the contents of
5068# the name directories are copied to $(tooldir)/lib. Multiple directories
5069# are permitted.
5070if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5071 if test x${is_cross_compiler} = xno ; then
5072 echo 1>&2 '***' --with-libs is only supported when cross compiling
5073 exit 1
5074 fi
5075 if test x"${with_libs}" != xyes ; then
5076 # Copy the libraries in reverse order, so that files in the first named
5077 # library override files in subsequent libraries.
c3a86da9 5078 x=${gcc_cv_tool_prefix}
55ffb5ed 5079 for l in ${with_libs}; do
1c710c3c 5080 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5081 done
5082 fi
5083fi
5084
e8b05380
PB
5085# Set with_gnu_as and with_gnu_ld as appropriate.
5086#
5087# This is done by determining whether or not the appropriate directory
5088# is available, and by checking whether or not specific configurations
5089# have requested that this magic not happen.
1c710c3c
DJ
5090#
5091# The command line options always override the explicit settings in
e8b05380
PB
5092# configure.in, and the settings in configure.in override this magic.
5093#
1c710c3c 5094# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5095# want to do that, then you should use the --without-gnu-as and
5096# --without-gnu-ld options for the configure script.
5097
5098if test x${use_gnu_as} = x &&
5099 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5100 with_gnu_as=yes
5101 extra_host_args="$extra_host_args --with-gnu-as"
5102fi
5103
5104if test x${use_gnu_ld} = x &&
5105 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5106 with_gnu_ld=yes
5107 extra_host_args="$extra_host_args --with-gnu-ld"
5108fi
5109
5110# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5111# can detect this case.
5112
5113if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5114 with_newlib=yes
5115 extra_host_args="$extra_host_args --with-newlib"
5116fi
5117
55ffb5ed
NN
5118# Handle ${copy_dirs}
5119set fnord ${copy_dirs}
5120shift
5121while test $# != 0 ; do
5122 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5123 :
5124 else
5125 echo Copying $1 to $2
5126
5127 # Use the install script to create the directory and all required
5128 # parent directories.
5129 if test -d $2 ; then
5130 :
5131 else
5132 echo >config.temp
5133 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5134 fi
5135
5136 # Copy the directory, assuming we have tar.
5137 # FIXME: Should we use B in the second tar? Not all systems support it.
5138 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5139
5140 # It is the responsibility of the user to correctly adjust all
5141 # symlinks. If somebody can figure out how to handle them correctly
5142 # here, feel free to add the code.
5143
5144 echo $1 > $2/COPIED
5145 fi
5146 shift; shift
5147done
5148
e8b05380
PB
5149# Determine a target-dependent exec_prefix that the installed
5150# gcc will search in. Keep this list sorted by triplet, with
5151# the *-*-osname triplets last.
5152md_exec_prefix=
5153case "${target}" in
5154 alpha*-*-*vms*)
5155 md_exec_prefix=/gnu/lib/gcc-lib
5156 ;;
5157 i3456786-pc-msdosdjgpp*)
5158 md_exec_prefix=/dev/env/DJDIR/bin
5159 ;;
5160 i3456786-*-sco3.2v5*)
5161 if test $with_gnu_as = yes; then
5162 md_exec_prefix=/usr/gnu/bin
5163 else
5164 md_exec_prefix=/usr/ccs/bin/elf
5165 fi
5166 ;;
5167
5168 mn10300-*-* | \
5169 powerpc-*-chorusos* | \
5170 powerpc*-*-eabi* | \
5171 powerpc*-*-sysv* | \
5172 powerpc*-*-kaos* | \
5173 s390x-ibm-tpf*)
5174 md_exec_prefix=/usr/ccs/bin
5175 ;;
5176 sparc64-*-elf*)
5177 ;;
5178 v850*-*-*)
5179 md_exec_prefix=/usr/ccs/bin
5180 ;;
5181 xtensa-*-elf*)
5182 ;;
5183
5184 *-*-beos* | \
5185 *-*-elf* | \
5186 *-*-hpux* | \
5187 *-*-netware* | \
5188 *-*-nto-qnx* | \
5189 *-*-rtems* | \
5190 *-*-solaris2* | \
5191 *-*-sysv45* | \
5192 *-*-vxworks* | \
5193 *-wrs-windiss)
5194 md_exec_prefix=/usr/ccs/bin
5195 ;;
5196esac
5197
671aa708
NN
5198extra_arflags_for_target=
5199extra_nmflags_for_target=
5200extra_ranlibflags_for_target=
5201target_makefile_frag=/dev/null
5202case "${target}" in
3e19841a
PB
5203 mep*-*-*)
5204 target_makefile_frag="config/mt-mep"
5205 ;;
58e24147
AM
5206 spu-*-*)
5207 target_makefile_frag="config/mt-spu"
5208 ;;
61fec9ff 5209 *-*-netware*)
671aa708
NN
5210 target_makefile_frag="config/mt-netware"
5211 ;;
98a5bb3b
RM
5212 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5213 target_makefile_frag="config/mt-gnu"
671aa708
NN
5214 ;;
5215 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5216 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5217 # commands to handle both 32-bit and 64-bit objects. These flags are
5218 # harmless if we're using GNU nm or ar.
5219 extra_arflags_for_target=" -X32_64"
5220 extra_nmflags_for_target=" -B -X32_64"
5221 ;;
5222 *-*-darwin*)
5223 # ranlib from Darwin requires the -c flag to look at common symbols.
5224 extra_ranlibflags_for_target=" -c"
5225 ;;
5226 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5227 target_makefile_frag="config/mt-wince"
5228 ;;
5229esac
5230
5231alphaieee_frag=/dev/null
5232case $target in
5233 alpha*-*-*)
5234 # This just makes sure to use the -mieee option to build target libs.
5235 # This should probably be set individually by each library.
5236 alphaieee_frag="config/mt-alphaieee"
5237 ;;
5238esac
5239
5240# If --enable-target-optspace always use -Os instead of -O2 to build
5241# the target libraries, similarly if it is not specified, use -Os
5242# on selected platforms.
5243ospace_frag=/dev/null
5244case "${enable_target_optspace}:${target}" in
5245 yes:*)
5246 ospace_frag="config/mt-ospace"
5247 ;;
5248 :d30v-*)
5249 ospace_frag="config/mt-d30v"
5250 ;;
5251 :m32r-* | :d10v-* | :fr30-*)
5252 ospace_frag="config/mt-ospace"
5253 ;;
5254 no:* | :*)
5255 ;;
5256 *)
5257 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5258 ;;
5259esac
5260
671aa708
NN
5261# Default to using --with-stabs for certain targets.
5262if test x${with_stabs} = x ; then
5263 case "${target}" in
89a95129 5264 mips*-*-irix[56]*)
671aa708
NN
5265 ;;
5266 mips*-*-* | alpha*-*-osf*)
5267 with_stabs=yes;
5268 extra_host_args="${extra_host_args} --with-stabs"
5269 ;;
5270 esac
5271fi
5272
5273# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5274# them automatically.
5275case "${host}" in
1c710c3c 5276 hppa*64*-*-hpux11*)
671aa708
NN
5277 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5278 ;;
5279esac
5280
671aa708
NN
5281# Some systems (e.g., one of the i386-aix systems the gas testers are
5282# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5283tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5284build_tooldir=${tooldir}
5285
671aa708
NN
5286# Create a .gdbinit file which runs the one in srcdir
5287# and tells GDB to look there for source files.
5288
5289if test -r ${srcdir}/.gdbinit ; then
5290 case ${srcdir} in
5291 .) ;;
5292 *) cat > ./.gdbinit <<EOF
5293# ${NO_EDIT}
5294dir ${srcdir}
5295dir .
5296source ${srcdir}/.gdbinit
5297EOF
5298 ;;
5299 esac
5300fi
5301
671aa708
NN
5302# Make sure that the compiler is able to generate an executable. If it
5303# can't, we are probably in trouble. We don't care whether we can run the
5304# executable--we might be using a cross compiler--we only care whether it
5305# can be created. At this point the main configure script has set CC.
5306we_are_ok=no
5307echo "int main () { return 0; }" > conftest.c
5308${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5309if test $? = 0 ; then
5310 if test -s conftest || test -s conftest.exe ; then
5311 we_are_ok=yes
5312 fi
1c710c3c 5313fi
671aa708
NN
5314case $we_are_ok in
5315 no)
5316 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5317 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5318 rm -f conftest*
5319 exit 1
5320 ;;
5321esac
5322rm -f conftest*
5323
5324# The Solaris /usr/ucb/cc compiler does not appear to work.
5325case "${host}" in
5326 sparc-sun-solaris2*)
5327 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5328 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5329 could_use=
5330 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5331 if test -d /opt/cygnus/bin ; then
5332 if test "$could_use" = "" ; then
5333 could_use="/opt/cygnus/bin"
5334 else
5335 could_use="$could_use or /opt/cygnus/bin"
5336 fi
5337 fi
5338 if test "$could_use" = "" ; then
5339 echo "Warning: compilation may fail because you're using"
5340 echo "/usr/ucb/cc. You should change your PATH or CC "
5341 echo "variable and rerun configure."
5342 else
5343 echo "Warning: compilation may fail because you're using"
5344 echo "/usr/ucb/cc, when you should use the C compiler from"
5345 echo "$could_use. You should change your"
5346 echo "PATH or CC variable and rerun configure."
5347 fi
5348 fi
5349 ;;
5350esac
5351
671aa708
NN
5352case "${host}" in
5353 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5354 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5355 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5356esac
5357
5358# Record target_configdirs and the configure arguments for target and
5359# build configuration in Makefile.
5360target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5361build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5362
671aa708
NN
5363# Determine whether gdb needs tk/tcl or not.
5364# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5365# and in that case we want gdb to be built without tk. Ugh!
5366# In fact I believe gdb is the *only* package directly dependent on tk,
5367# so we should be able to put the 'maybe's in unconditionally and
5368# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5369# 100% sure that that's safe though.
e914a571 5370
b4f96efe 5371gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5372case "$enable_gdbtk" in
5373 no)
5374 GDB_TK="" ;;
e914a571
AC
5375 yes)
5376 GDB_TK="${gdb_tk}" ;;
671aa708 5377 *)
e914a571
AC
5378 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5379 # distro. Eventually someone will fix this and move Insight, nee
5380 # gdbtk to a separate directory.
5381 if test -d ${srcdir}/gdb/gdbtk ; then
5382 GDB_TK="${gdb_tk}"
5383 else
5384 GDB_TK=""
5385 fi
5386 ;;
671aa708 5387esac
ef9db8d5
DJ
5388CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5389INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5390
60975492 5391# Strip out unwanted targets.
8b87bb96
NN
5392
5393# While at that, we remove Makefiles if we were started for recursive
5394# configuration, so that the top-level Makefile reconfigures them,
5395# like we used to do when configure itself was recursive.
8b87bb96 5396
60975492
PB
5397# Loop over modules. $extrasub must be used with care, limiting as
5398# much as possible the usage of range addresses. That's because autoconf
5399# splits the sed script to overcome limits in the number of commands,
5400# and relying on carefully-timed sed passes may turn out to be very hard
5401# to maintain later. In this particular case, you just have to be careful
5402# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5403
f516a7da
PB
5404# Check whether --enable-bootstrap or --disable-bootstrap was given.
5405if test "${enable_bootstrap+set}" = set; then
5406 enableval="$enable_bootstrap"
1c710c3c 5407
f516a7da 5408else
ce521a9c 5409 enable_bootstrap=default
1c710c3c 5410fi;
f516a7da 5411
ce521a9c
PB
5412# Issue errors and warnings for invalid/strange bootstrap combinations.
5413case "$configdirs" in
5414 *gcc*) have_compiler=yes ;;
5415 *) have_compiler=no ;;
5416esac
5417
5418case "$have_compiler:$host:$target:$enable_bootstrap" in
5419 *:*:*:no) ;;
5420
1ca26cd2 5421 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5422 # and we are in a native configuration.
5423 yes:$build:$build:default)
1ca26cd2 5424 enable_bootstrap=yes ;;
ce521a9c
PB
5425
5426 *:*:*:default)
5427 enable_bootstrap=no ;;
5428
5429 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5430 yes:$build:$build:yes)
ce521a9c
PB
5431 ;;
5432
5433 # Other configurations, but we have a compiler. Assume the user knows
5434 # what he's doing.
2d309510 5435 yes:*:*:yes)
1c710c3c
DJ
5436 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5437echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5438 ;;
5439
5440 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5441 no:*:*:yes)
1c710c3c
DJ
5442 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5443echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5444 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5445
5446 # Fail if wrong command line
5447 *)
1c710c3c
DJ
5448 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5449echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5450 { (exit 1); exit 1; }; }
ce521a9c
PB
5451 ;;
5452esac
5453
5454# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5455case "$enable_bootstrap" in
5456 yes)
5607edfd 5457 bootstrap_suffix=bootstrap ;;
f516a7da 5458 no)
5607edfd 5459 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5460esac
5461
23f6b2f9 5462for module in ${build_configdirs} ; do
5607edfd
PB
5463 if test -z "${no_recursion}" \
5464 && test -f ${build_subdir}/${module}/Makefile; then
5465 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5466 rm -f ${build_subdir}/${module}/Makefile
5467 fi
5468 extrasub="$extrasub
5469/^@if build-$module\$/d
5470/^@endif build-$module\$/d
5471/^@if build-$module-$bootstrap_suffix\$/d
5472/^@endif build-$module-$bootstrap_suffix\$/d"
5473done
5474for module in ${configdirs} ; do
a6fbc1e2 5475 if test -z "${no_recursion}"; then
f063a9ed 5476 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5477 if test -f ${file}; then
5478 echo 1>&2 "*** removing ${file} to force reconfigure"
5479 rm -f ${file}
5480 fi
5481 done
5607edfd
PB
5482 fi
5483 extrasub="$extrasub
5484/^@if $module\$/d
5485/^@endif $module\$/d
5486/^@if $module-$bootstrap_suffix\$/d
5487/^@endif $module-$bootstrap_suffix\$/d"
5488done
5489for module in ${target_configdirs} ; do
5490 if test -z "${no_recursion}" \
5491 && test -f ${target_subdir}/${module}/Makefile; then
5492 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5493 rm -f ${target_subdir}/${module}/Makefile
5494 fi
5495 extrasub="$extrasub
5496/^@if target-$module\$/d
5497/^@endif target-$module\$/d
5498/^@if target-$module-$bootstrap_suffix\$/d
5499/^@endif target-$module-$bootstrap_suffix\$/d"
5500done
5501
60975492
PB
5502extrasub="$extrasub
5503/^@if /,/^@endif /d"
671aa708
NN
5504
5505# Create the serialization dependencies. This uses a temporary file.
5506
ade82b16
AO
5507# Check whether --enable-serial-configure or --disable-serial-configure was given.
5508if test "${enable_serial_configure+set}" = set; then
5509 enableval="$enable_serial_configure"
ade82b16 5510
1c710c3c 5511fi;
ade82b16 5512
bf1d3e81
NN
5513case ${enable_serial_configure} in
5514 yes)
5515 enable_serial_build_configure=yes
5516 enable_serial_host_configure=yes
5517 enable_serial_target_configure=yes
5518 ;;
5519esac
5520
671aa708
NN
5521# These force 'configure's to be done one at a time, to avoid problems
5522# with contention over a shared config.cache.
5523rm -f serdep.tmp
ade82b16 5524echo '# serdep.tmp' > serdep.tmp
671aa708 5525olditem=
bf1d3e81 5526test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5527for item in ${build_configdirs} ; do
5528 case ${olditem} in
5529 "") ;;
ade82b16 5530 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5531 esac
5532 olditem=${item}
5533done
5534olditem=
bf1d3e81 5535test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5536for item in ${configdirs} ; do
5537 case ${olditem} in
5538 "") ;;
ade82b16 5539 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5540 esac
5541 olditem=${item}
5542done
5543olditem=
bf1d3e81 5544test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5545for item in ${target_configdirs} ; do
5546 case ${olditem} in
5547 "") ;;
ade82b16 5548 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5549 esac
5550 olditem=${item}
5551done
5552serialization_dependencies=serdep.tmp
5553
5554
ade82b16 5555# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5556# target, nonopt, and variable assignments. These are the ones we
5557# might not want to pass down to subconfigures. Also strip
5558# program-prefix, program-suffix, and program-transform-name, so that
5559# we can pass down a consistent program-transform-name.
5560baseargs=
5561keep_next=no
5562skip_next=no
5563eval "set -- $ac_configure_args"
44bfc3ac
DJ
5564for ac_arg
5565do
1c710c3c
DJ
5566 if test X"$skip_next" = X"yes"; then
5567 skip_next=no
5568 continue
5569 fi
5570 if test X"$keep_next" = X"yes"; then
5571 case $ac_arg in
5572 *\'*)
5573 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5574 esac
5575 baseargs="$baseargs '$ac_arg'"
5576 keep_next=no
5577 continue
5578 fi
5579
5580 # Handle separated arguments. Based on the logic generated by
5581 # autoconf 2.59.
5582 case $ac_arg in
5583 *=* | --config-cache | -C | -disable-* | --disable-* \
5584 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5585 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5586 | -with-* | --with-* | -without-* | --without-* | --x)
5587 separate_arg=no
5588 ;;
5589 -*)
5590 separate_arg=yes
5591 ;;
5592 *)
5593 separate_arg=no
5594 ;;
5595 esac
5596
5597 case "$ac_arg" in
5598 --no*)
5599 continue
5600 ;;
5601 --c* | \
5602 --sr* | \
5603 --ho* | \
5604 --bu* | \
5605 --t* | \
5606 --program-* | \
5607 -cache_file* | \
5608 -srcdir* | \
5609 -host* | \
5610 -build* | \
5611 -target* | \
5612 -program-prefix* | \
5613 -program-suffix* | \
5614 -program-transform-name* )
5615 skip_next=$separate_arg
5616 continue
5617 ;;
5618 -*)
5619 # An option. Add it.
5620 case $ac_arg in
5621 *\'*)
5622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5623 esac
5624 baseargs="$baseargs '$ac_arg'"
5625 keep_next=$separate_arg
5626 ;;
5627 *)
5628 # Either a variable assignment, or a nonopt (triplet). Don't
5629 # pass it down; let the Makefile handle this.
5630 continue
5631 ;;
5632 esac
5633done
5634# Remove the initial space we just introduced and, as these will be
5635# expanded by make, quote '$'.
5636baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5637
43bb47c2
DJ
5638# Add in --program-transform-name, after --program-prefix and
5639# --program-suffix have been applied to it. Autoconf has already
5640# doubled dollar signs and backslashes in program_transform_name; we want
5641# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5642# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5643# Also, because we want to override the logic in subdir configure scripts to
5644# choose program_transform_name, replace any s,x,x, with s,y,y,.
5645sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5646${program_transform_name}
5647EOF_SED
5648gcc_transform_name=`cat conftestsed.out`
5649rm -f conftestsed.out
5650baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5651
671aa708
NN
5652# For the build-side libraries, we just need to pretend we're native,
5653# and not use the same cache file. Multilibs are neither needed nor
5654# desired.
e69bf64b 5655build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5656
5657# For host modules, accept cache file option, or specification as blank.
5658case "${cache_file}" in
5659"") # empty
5660 cache_file_option="" ;;
5661/* | [A-Za-z]:[\\/]* ) # absolute path
5662 cache_file_option="--cache-file=${cache_file}" ;;
5663*) # relative path
5664 cache_file_option="--cache-file=../${cache_file}" ;;
5665esac
5666
09438bde
NN
5667# Host dirs don't like to share a cache file either, horribly enough.
5668# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5669host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5670
5671target_configargs=${baseargs}
5672
5673# Passing a --with-cross-host argument lets the target libraries know
5674# whether they are being built with a cross-compiler or being built
5675# native. However, it would be better to use other mechanisms to make the
5676# sorts of decisions they want to make on this basis. Please consider
5677# this option to be deprecated. FIXME.
5678if test x${is_cross_compiler} = xyes ; then
1c710c3c 5679 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5680fi
5681
5682# Default to --enable-multilib.
5683if test x${enable_multilib} = x ; then
5684 target_configargs="--enable-multilib ${target_configargs}"
5685fi
5686
5687# Pass --with-newlib if appropriate. Note that target_configdirs has
5688# changed from the earlier setting of with_newlib.
5689if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5690 target_configargs="--with-newlib ${target_configargs}"
5691fi
5692
6b9eb62c
NN
5693# Different target subdirs use different values of certain variables
5694# (notably CXX). Worse, multilibs use *lots* of different values.
5695# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5696# it doesn't automatically accept command-line overrides of them.
5697# This means it's not safe for target subdirs to share a cache file,
5698# which is disgusting, but there you have it. Hopefully this can be
5699# fixed in future. It's still worthwhile to use a cache file for each
5700# directory. I think.
5701
bebcd931
MS
5702# Pass the appropriate --build, --host, --target and --cache-file arguments.
5703# We need to pass --target, as newer autoconf's requires consistency
5704# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5705target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5706
671aa708
NN
5707FLAGS_FOR_TARGET=
5708case " $target_configdirs " in
5709 *" newlib "*)
5710 case " $target_configargs " in
5711 *" --with-newlib "*)
5712 case "$target" in
5713 *-cygwin*)
aa8f1f57 5714 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' ;;
671aa708
NN
5715 esac
5716
5717 # If we're not building GCC, don't discard standard headers.
5718 if test -d ${srcdir}/gcc; then
5719 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5720
5721 if test "${build}" != "${host}"; then
5722 # On Canadian crosses, CC_FOR_TARGET will have already been set
5723 # by `configure', so we won't have an opportunity to add -Bgcc/
5724 # to it. This is right: we don't want to search that directory
5725 # for binaries, but we want the header files in there, so add
5726 # them explicitly.
215c351a 5727 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5728
5729 # Someone might think of using the pre-installed headers on
5730 # Canadian crosses, in case the installed compiler is not fully
5731 # compatible with the compiler being built. In this case, it
5732 # would be better to flag an error than risking having
5733 # incompatible object files being constructed. We can't
5734 # guarantee that an error will be flagged, but let's hope the
5735 # compiler will do it, when presented with incompatible header
5736 # files.
5737 fi
5738 fi
5739
5740 case "${target}-${is_cross_compiler}" in
f2a0e225 5741 i[3456789]86-*-linux*-no)
671aa708
NN
5742 # Here host == target, so we don't need to build gcc,
5743 # so we don't want to discard standard headers.
5744 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5745 ;;
5746 *)
5747 # If we're building newlib, use its generic headers last, but search
5748 # for any libc-related directories first (so make it the last -B
5749 # switch).
5750 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5751 ;;
5752 esac
5753 ;;
5754 esac
5755 ;;
5756esac
b91f0a41
CV
5757case "$target" in
5758*-mingw*)
5759 # Can't be handled as Cygwin above since Mingw does not use newlib.
5760 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' ;;
5761esac
671aa708 5762
6691a79e
ME
5763# Allow the user to override the flags for
5764# our build compiler if desired.
5765CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5766
671aa708
NN
5767# On Canadian crosses, we'll be searching the right directories for
5768# the previously-installed cross compiler, so don't bother to add
5769# flags for directories within the install tree of the compiler
5770# being built; programs in there won't even run.
5771if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5772 # Search for pre-installed headers if nothing else fits.
9124bc53 5773 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
5774fi
5775
5776if test "x${use_gnu_ld}" = x &&
5777 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5778 # Arrange for us to find uninstalled linker scripts.
215c351a 5779 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5780fi
5781
e88a2c09
DD
5782# Search for other target-specific linker scripts and such.
5783case "${target}" in
5784 m32c-*-* )
5785 if test -d ${srcdir}/libgloss/m32c; then
5786 # This is for crt0.o
5787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5788 # This is for r8c.ld
5789 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5790 # This is for libnosys.a
5791 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5792 fi
5793 ;;
3e19841a
PB
5794 mep*)
5795 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5796 ;;
e88a2c09
DD
5797esac
5798
671aa708 5799# Makefile fragments.
7b61653a
PE
5800for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5801do
5802 eval fragval=\$$frag
5803 if test $fragval != /dev/null; then
5804 eval $frag=${srcdir}/$fragval
5805 fi
5806done
671aa708
NN
5807
5808
5809
5810
5811
5812# Miscellanea: directories, flags, etc.
5813
5814
5815
5816
5817
5818
5819
23f6b2f9 5820# Build module lists & subconfigure args.
671aa708
NN
5821
5822
5823
2abefe3d
PB
5824# Host module lists & subconfigure args.
5825
5826
5827
5828# Target module lists & subconfigure args.
5829
5830
5831
5832# Build tools.
5833
5834
5835
5836# Generate default definitions for YACC, M4, LEX and other programs that run
5837# on the build machine. These are used if the Makefile can't locate these
5838# programs in objdir.
5839MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5840
5841for ac_prog in 'bison -y' byacc yacc
5842do
1c710c3c 5843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5844set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5845echo "$as_me:$LINENO: checking for $ac_word" >&5
5846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847if test "${ac_cv_prog_YACC+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5849else
5850 if test -n "$YACC"; then
5851 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5852else
1c710c3c
DJ
5853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854for as_dir in $PATH
5855do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_YACC="$ac_prog"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864done
5865done
5866
2abefe3d
PB
5867fi
5868fi
1c710c3c 5869YACC=$ac_cv_prog_YACC
2abefe3d 5870if test -n "$YACC"; then
1c710c3c
DJ
5871 echo "$as_me:$LINENO: result: $YACC" >&5
5872echo "${ECHO_T}$YACC" >&6
2abefe3d 5873else
1c710c3c
DJ
5874 echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6
2abefe3d
PB
5876fi
5877
1c710c3c 5878 test -n "$YACC" && break
2abefe3d
PB
5879done
5880test -n "$YACC" || YACC="$MISSING bison -y"
5881
5882case " $build_configdirs " in
5883 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5884 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5885esac
5886
5887for ac_prog in bison
5888do
1c710c3c 5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5890set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5891echo "$as_me:$LINENO: checking for $ac_word" >&5
5892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893if test "${ac_cv_prog_BISON+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5895else
5896 if test -n "$BISON"; then
5897 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5898else
1c710c3c
DJ
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_BISON="$ac_prog"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910done
5911done
5912
2abefe3d
PB
5913fi
5914fi
1c710c3c 5915BISON=$ac_cv_prog_BISON
2abefe3d 5916if test -n "$BISON"; then
1c710c3c
DJ
5917 echo "$as_me:$LINENO: result: $BISON" >&5
5918echo "${ECHO_T}$BISON" >&6
2abefe3d 5919else
1c710c3c
DJ
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
2abefe3d
PB
5922fi
5923
1c710c3c 5924 test -n "$BISON" && break
2abefe3d
PB
5925done
5926test -n "$BISON" || BISON="$MISSING bison"
5927
5928case " $build_configdirs " in
5929 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5930esac
5931
5932for ac_prog in gm4 gnum4 m4
5933do
1c710c3c 5934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5935set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5936echo "$as_me:$LINENO: checking for $ac_word" >&5
5937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938if test "${ac_cv_prog_M4+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5940else
5941 if test -n "$M4"; then
5942 ac_cv_prog_M4="$M4" # Let the user override the test.
5943else
1c710c3c
DJ
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_M4="$ac_prog"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955done
5956done
5957
2abefe3d
PB
5958fi
5959fi
1c710c3c 5960M4=$ac_cv_prog_M4
2abefe3d 5961if test -n "$M4"; then
1c710c3c
DJ
5962 echo "$as_me:$LINENO: result: $M4" >&5
5963echo "${ECHO_T}$M4" >&6
2abefe3d 5964else
1c710c3c
DJ
5965 echo "$as_me:$LINENO: result: no" >&5
5966echo "${ECHO_T}no" >&6
2abefe3d
PB
5967fi
5968
1c710c3c 5969 test -n "$M4" && break
2abefe3d
PB
5970done
5971test -n "$M4" || M4="$MISSING m4"
5972
5973case " $build_configdirs " in
5974 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5975esac
5976
5977for ac_prog in flex lex
5978do
1c710c3c 5979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5980set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5981echo "$as_me:$LINENO: checking for $ac_word" >&5
5982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983if test "${ac_cv_prog_LEX+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5985else
5986 if test -n "$LEX"; then
5987 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5988else
1c710c3c
DJ
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_LEX="$ac_prog"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
5999 fi
6000done
6001done
6002
2abefe3d
PB
6003fi
6004fi
1c710c3c 6005LEX=$ac_cv_prog_LEX
2abefe3d 6006if test -n "$LEX"; then
1c710c3c
DJ
6007 echo "$as_me:$LINENO: result: $LEX" >&5
6008echo "${ECHO_T}$LEX" >&6
2abefe3d 6009else
1c710c3c
DJ
6010 echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6
2abefe3d
PB
6012fi
6013
1c710c3c 6014 test -n "$LEX" && break
2abefe3d
PB
6015done
6016test -n "$LEX" || LEX="$MISSING flex"
6017
6018case " $build_configdirs " in
6019 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6020 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6021esac
6022
6023for ac_prog in flex
6024do
1c710c3c 6025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6026set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6027echo "$as_me:$LINENO: checking for $ac_word" >&5
6028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6029if test "${ac_cv_prog_FLEX+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6031else
6032 if test -n "$FLEX"; then
6033 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6034else
1c710c3c
DJ
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042 ac_cv_prog_FLEX="$ac_prog"
6043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046done
6047done
6048
2abefe3d
PB
6049fi
6050fi
1c710c3c 6051FLEX=$ac_cv_prog_FLEX
2abefe3d 6052if test -n "$FLEX"; then
1c710c3c
DJ
6053 echo "$as_me:$LINENO: result: $FLEX" >&5
6054echo "${ECHO_T}$FLEX" >&6
2abefe3d 6055else
1c710c3c
DJ
6056 echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
2abefe3d
PB
6058fi
6059
1c710c3c 6060 test -n "$FLEX" && break
2abefe3d
PB
6061done
6062test -n "$FLEX" || FLEX="$MISSING flex"
6063
6064case " $build_configdirs " in
6065 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6066esac
6067
6068for ac_prog in makeinfo
6069do
1c710c3c 6070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6071set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6072echo "$as_me:$LINENO: checking for $ac_word" >&5
6073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6074if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6076else
6077 if test -n "$MAKEINFO"; then
6078 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6079else
1c710c3c
DJ
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_MAKEINFO="$ac_prog"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
6091done
6092done
6093
2abefe3d
PB
6094fi
6095fi
1c710c3c 6096MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6097if test -n "$MAKEINFO"; then
1c710c3c
DJ
6098 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6099echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6100else
1c710c3c
DJ
6101 echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6
2abefe3d
PB
6103fi
6104
1c710c3c 6105 test -n "$MAKEINFO" && break
2abefe3d
PB
6106done
6107test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6108
6109case " $build_configdirs " in
6110 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6111 *)
6112
27b6c940 6113 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
6114 # higher, else we use the "missing" dummy.
6115 if ${MAKEINFO} --version \
27b6c940 6116 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
6117 :
6118 else
6119 MAKEINFO="$MISSING makeinfo"
6120 fi
6121 ;;
6122
6123esac
671aa708 6124
2abefe3d 6125# FIXME: expect and dejagnu may become build tools?
671aa708 6126
2abefe3d
PB
6127for ac_prog in expect
6128do
1c710c3c 6129 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6130set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6131echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6133if test "${ac_cv_prog_EXPECT+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6135else
6136 if test -n "$EXPECT"; then
6137 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6138else
1c710c3c
DJ
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_EXPECT="$ac_prog"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150done
6151done
6152
2abefe3d
PB
6153fi
6154fi
1c710c3c 6155EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6156if test -n "$EXPECT"; then
1c710c3c
DJ
6157 echo "$as_me:$LINENO: result: $EXPECT" >&5
6158echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6159else
1c710c3c
DJ
6160 echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
2abefe3d 6162fi
671aa708 6163
1c710c3c 6164 test -n "$EXPECT" && break
2abefe3d
PB
6165done
6166test -n "$EXPECT" || EXPECT="expect"
671aa708 6167
2abefe3d
PB
6168case " $configdirs " in
6169 *" expect "*)
6170 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6171 ;;
6172esac
671aa708 6173
2abefe3d
PB
6174for ac_prog in runtest
6175do
1c710c3c 6176 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6177set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6178echo "$as_me:$LINENO: checking for $ac_word" >&5
6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6180if test "${ac_cv_prog_RUNTEST+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6182else
6183 if test -n "$RUNTEST"; then
6184 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6185else
1c710c3c
DJ
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193 ac_cv_prog_RUNTEST="$ac_prog"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197done
6198done
6199
2abefe3d
PB
6200fi
6201fi
1c710c3c 6202RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6203if test -n "$RUNTEST"; then
1c710c3c
DJ
6204 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6205echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6206else
1c710c3c
DJ
6207 echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6
2abefe3d 6209fi
671aa708 6210
1c710c3c 6211 test -n "$RUNTEST" && break
2abefe3d
PB
6212done
6213test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6214
2abefe3d
PB
6215case " $configdirs " in
6216 *" dejagnu "*)
c394e891 6217 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6218 ;;
6219esac
671aa708
NN
6220
6221
671aa708 6222# Host tools.
ca9f4b81
AO
6223ncn_tool_prefix=
6224test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6225ncn_target_tool_prefix=
6226test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6227
278a7a38
AO
6228
6229
6230if test -n "$AR"; then
6231 ac_cv_prog_AR=$AR
6232elif test -n "$ac_cv_prog_AR"; then
6233 AR=$ac_cv_prog_AR
6234fi
6235
6236if test -n "$ac_cv_prog_AR"; then
6237 for ncn_progname in ar; do
6238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6239set dummy ${ncn_progname}; ac_word=$2
6240echo "$as_me:$LINENO: checking for $ac_word" >&5
6241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6242if test "${ac_cv_prog_AR+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245 if test -n "$AR"; then
6246 ac_cv_prog_AR="$AR" # Let the user override the test.
6247else
6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_AR="${ncn_progname}"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259done
6260done
6261
6262fi
6263fi
6264AR=$ac_cv_prog_AR
6265if test -n "$AR"; then
6266 echo "$as_me:$LINENO: result: $AR" >&5
6267echo "${ECHO_T}$AR" >&6
6268else
6269 echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271fi
6272
6273 done
6274fi
6275
6276for ncn_progname in ar; do
2693c0b0
PB
6277 if test -n "$ncn_tool_prefix"; then
6278 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6279set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6280echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6282if test "${ac_cv_prog_AR+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6284else
6285 if test -n "$AR"; then
6286 ac_cv_prog_AR="$AR" # Let the user override the test.
6287else
1c710c3c
DJ
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299done
6300done
6301
ca9f4b81
AO
6302fi
6303fi
1c710c3c 6304AR=$ac_cv_prog_AR
ca9f4b81 6305if test -n "$AR"; then
1c710c3c
DJ
6306 echo "$as_me:$LINENO: result: $AR" >&5
6307echo "${ECHO_T}$AR" >&6
ca9f4b81 6308else
1c710c3c
DJ
6309 echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
ca9f4b81
AO
6311fi
6312
2693c0b0
PB
6313 fi
6314 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6316set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6317echo "$as_me:$LINENO: checking for $ac_word" >&5
6318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6319if test "${ac_cv_prog_AR+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6321else
2693c0b0 6322 if test -n "$AR"; then
af71363e
AS
6323 ac_cv_prog_AR="$AR" # Let the user override the test.
6324else
1c710c3c
DJ
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_AR="${ncn_progname}"
6333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6335 fi
6336done
6337done
6338
ca9f4b81
AO
6339fi
6340fi
1c710c3c 6341AR=$ac_cv_prog_AR
2693c0b0 6342if test -n "$AR"; then
1c710c3c
DJ
6343 echo "$as_me:$LINENO: result: $AR" >&5
6344echo "${ECHO_T}$AR" >&6
ca9f4b81 6345else
1c710c3c
DJ
6346 echo "$as_me:$LINENO: result: no" >&5
6347echo "${ECHO_T}no" >&6
ca9f4b81 6348fi
1c710c3c 6349
2693c0b0
PB
6350 fi
6351 test -n "$ac_cv_prog_AR" && break
6352done
6353
6354if test -z "$ac_cv_prog_AR" ; then
6355 set dummy ar
6356 if test $build = $host ; then
6357 AR="$2"
ca9f4b81 6358 else
2693c0b0 6359 AR="${ncn_tool_prefix}$2"
ca9f4b81 6360 fi
ca9f4b81
AO
6361fi
6362
278a7a38
AO
6363
6364
6365if test -n "$AS"; then
6366 ac_cv_prog_AS=$AS
6367elif test -n "$ac_cv_prog_AS"; then
6368 AS=$ac_cv_prog_AS
6369fi
6370
6371if test -n "$ac_cv_prog_AS"; then
6372 for ncn_progname in as; do
6373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6374set dummy ${ncn_progname}; ac_word=$2
6375echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377if test "${ac_cv_prog_AS+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380 if test -n "$AS"; then
6381 ac_cv_prog_AS="$AS" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_AS="${ncn_progname}"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395done
6396
6397fi
6398fi
6399AS=$ac_cv_prog_AS
6400if test -n "$AS"; then
6401 echo "$as_me:$LINENO: result: $AS" >&5
6402echo "${ECHO_T}$AS" >&6
6403else
6404 echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406fi
6407
6408 done
6409fi
6410
6411for ncn_progname in as; do
2693c0b0
PB
6412 if test -n "$ncn_tool_prefix"; then
6413 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6414set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6415echo "$as_me:$LINENO: checking for $ac_word" >&5
6416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6417if test "${ac_cv_prog_AS+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6419else
6420 if test -n "$AS"; then
6421 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6422else
1c710c3c
DJ
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434done
6435done
6436
ca9f4b81
AO
6437fi
6438fi
1c710c3c 6439AS=$ac_cv_prog_AS
ca9f4b81 6440if test -n "$AS"; then
1c710c3c
DJ
6441 echo "$as_me:$LINENO: result: $AS" >&5
6442echo "${ECHO_T}$AS" >&6
ca9f4b81 6443else
1c710c3c
DJ
6444 echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6
ca9f4b81
AO
6446fi
6447
2693c0b0
PB
6448 fi
6449 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6451set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6452echo "$as_me:$LINENO: checking for $ac_word" >&5
6453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6454if test "${ac_cv_prog_AS+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6456else
2693c0b0
PB
6457 if test -n "$AS"; then
6458 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6459else
1c710c3c
DJ
6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467 ac_cv_prog_AS="${ncn_progname}"
6468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471done
6472done
6473
ca9f4b81
AO
6474fi
6475fi
1c710c3c 6476AS=$ac_cv_prog_AS
2693c0b0 6477if test -n "$AS"; then
1c710c3c
DJ
6478 echo "$as_me:$LINENO: result: $AS" >&5
6479echo "${ECHO_T}$AS" >&6
ca9f4b81 6480else
1c710c3c
DJ
6481 echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6
ca9f4b81 6483fi
1c710c3c 6484
2693c0b0
PB
6485 fi
6486 test -n "$ac_cv_prog_AS" && break
6487done
6488
6489if test -z "$ac_cv_prog_AS" ; then
6490 set dummy as
6491 if test $build = $host ; then
6492 AS="$2"
ca9f4b81 6493 else
2693c0b0 6494 AS="${ncn_tool_prefix}$2"
ca9f4b81 6495 fi
ca9f4b81
AO
6496fi
6497
278a7a38
AO
6498
6499
6500if test -n "$DLLTOOL"; then
6501 ac_cv_prog_DLLTOOL=$DLLTOOL
6502elif test -n "$ac_cv_prog_DLLTOOL"; then
6503 DLLTOOL=$ac_cv_prog_DLLTOOL
6504fi
6505
6506if test -n "$ac_cv_prog_DLLTOOL"; then
6507 for ncn_progname in dlltool; do
6508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6509set dummy ${ncn_progname}; ac_word=$2
6510echo "$as_me:$LINENO: checking for $ac_word" >&5
6511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6512if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515 if test -n "$DLLTOOL"; then
6516 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_DLLTOOL="${ncn_progname}"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530done
6531
6532fi
6533fi
6534DLLTOOL=$ac_cv_prog_DLLTOOL
6535if test -n "$DLLTOOL"; then
6536 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6537echo "${ECHO_T}$DLLTOOL" >&6
6538else
6539 echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541fi
6542
6543 done
6544fi
6545
6546for ncn_progname in dlltool; do
2693c0b0
PB
6547 if test -n "$ncn_tool_prefix"; then
6548 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6549set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6550echo "$as_me:$LINENO: checking for $ac_word" >&5
6551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6552if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6554else
6555 if test -n "$DLLTOOL"; then
6556 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6557else
1c710c3c
DJ
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569done
6570done
6571
ca9f4b81
AO
6572fi
6573fi
1c710c3c 6574DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6575if test -n "$DLLTOOL"; then
1c710c3c
DJ
6576 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6577echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6578else
1c710c3c
DJ
6579 echo "$as_me:$LINENO: result: no" >&5
6580echo "${ECHO_T}no" >&6
ca9f4b81
AO
6581fi
6582
2693c0b0
PB
6583 fi
6584 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6586set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6587echo "$as_me:$LINENO: checking for $ac_word" >&5
6588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6589if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6591else
2693c0b0
PB
6592 if test -n "$DLLTOOL"; then
6593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6594else
1c710c3c
DJ
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_DLLTOOL="${ncn_progname}"
6603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606done
6607done
6608
ca9f4b81
AO
6609fi
6610fi
1c710c3c 6611DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6612if test -n "$DLLTOOL"; then
1c710c3c
DJ
6613 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6614echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6615else
1c710c3c
DJ
6616 echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6
ca9f4b81 6618fi
1c710c3c 6619
2693c0b0
PB
6620 fi
6621 test -n "$ac_cv_prog_DLLTOOL" && break
6622done
6623
6624if test -z "$ac_cv_prog_DLLTOOL" ; then
6625 set dummy dlltool
6626 if test $build = $host ; then
6627 DLLTOOL="$2"
ca9f4b81 6628 else
2693c0b0 6629 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6630 fi
ca9f4b81
AO
6631fi
6632
278a7a38
AO
6633
6634
6635if test -n "$LD"; then
6636 ac_cv_prog_LD=$LD
6637elif test -n "$ac_cv_prog_LD"; then
6638 LD=$ac_cv_prog_LD
6639fi
6640
6641if test -n "$ac_cv_prog_LD"; then
6642 for ncn_progname in ld; do
6643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6644set dummy ${ncn_progname}; ac_word=$2
6645echo "$as_me:$LINENO: checking for $ac_word" >&5
6646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6647if test "${ac_cv_prog_LD+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650 if test -n "$LD"; then
6651 ac_cv_prog_LD="$LD" # Let the user override the test.
6652else
6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_LD="${ncn_progname}"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664done
6665done
6666
6667fi
6668fi
6669LD=$ac_cv_prog_LD
6670if test -n "$LD"; then
6671 echo "$as_me:$LINENO: result: $LD" >&5
6672echo "${ECHO_T}$LD" >&6
6673else
6674 echo "$as_me:$LINENO: result: no" >&5
6675echo "${ECHO_T}no" >&6
6676fi
6677
6678 done
6679fi
6680
6681for ncn_progname in ld; do
2693c0b0
PB
6682 if test -n "$ncn_tool_prefix"; then
6683 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6684set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6685echo "$as_me:$LINENO: checking for $ac_word" >&5
6686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6687if test "${ac_cv_prog_LD+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6689else
6690 if test -n "$LD"; then
6691 ac_cv_prog_LD="$LD" # Let the user override the test.
6692else
1c710c3c
DJ
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704done
6705done
6706
ca9f4b81
AO
6707fi
6708fi
1c710c3c 6709LD=$ac_cv_prog_LD
ca9f4b81 6710if test -n "$LD"; then
1c710c3c
DJ
6711 echo "$as_me:$LINENO: result: $LD" >&5
6712echo "${ECHO_T}$LD" >&6
ca9f4b81 6713else
1c710c3c
DJ
6714 echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6
ca9f4b81
AO
6716fi
6717
2693c0b0
PB
6718 fi
6719 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6721set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6722echo "$as_me:$LINENO: checking for $ac_word" >&5
6723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6724if test "${ac_cv_prog_LD+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6726else
2693c0b0
PB
6727 if test -n "$LD"; then
6728 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6729else
1c710c3c
DJ
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_LD="${ncn_progname}"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741done
6742done
6743
ca9f4b81
AO
6744fi
6745fi
1c710c3c 6746LD=$ac_cv_prog_LD
2693c0b0 6747if test -n "$LD"; then
1c710c3c
DJ
6748 echo "$as_me:$LINENO: result: $LD" >&5
6749echo "${ECHO_T}$LD" >&6
ca9f4b81 6750else
1c710c3c
DJ
6751 echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
ca9f4b81 6753fi
1c710c3c 6754
2693c0b0
PB
6755 fi
6756 test -n "$ac_cv_prog_LD" && break
6757done
6758
6759if test -z "$ac_cv_prog_LD" ; then
6760 set dummy ld
6761 if test $build = $host ; then
6762 LD="$2"
ca9f4b81 6763 else
2693c0b0 6764 LD="${ncn_tool_prefix}$2"
ca9f4b81 6765 fi
ca9f4b81
AO
6766fi
6767
278a7a38
AO
6768
6769
6770if test -n "$LIPO"; then
6771 ac_cv_prog_LIPO=$LIPO
6772elif test -n "$ac_cv_prog_LIPO"; then
6773 LIPO=$ac_cv_prog_LIPO
6774fi
6775
6776if test -n "$ac_cv_prog_LIPO"; then
6777 for ncn_progname in lipo; do
6778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6779set dummy ${ncn_progname}; ac_word=$2
6780echo "$as_me:$LINENO: checking for $ac_word" >&5
6781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6782if test "${ac_cv_prog_LIPO+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785 if test -n "$LIPO"; then
6786 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_prog_LIPO="${ncn_progname}"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799done
6800done
6801
6802fi
6803fi
6804LIPO=$ac_cv_prog_LIPO
6805if test -n "$LIPO"; then
6806 echo "$as_me:$LINENO: result: $LIPO" >&5
6807echo "${ECHO_T}$LIPO" >&6
6808else
6809 echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6
6811fi
6812
6813 done
6814fi
6815
6816for ncn_progname in lipo; do
2abefe3d
PB
6817 if test -n "$ncn_tool_prefix"; then
6818 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6819set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6820echo "$as_me:$LINENO: checking for $ac_word" >&5
6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6822if test "${ac_cv_prog_LIPO+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6824else
6825 if test -n "$LIPO"; then
6826 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6827else
1c710c3c
DJ
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840done
6841
2abefe3d
PB
6842fi
6843fi
1c710c3c 6844LIPO=$ac_cv_prog_LIPO
2abefe3d 6845if test -n "$LIPO"; then
1c710c3c
DJ
6846 echo "$as_me:$LINENO: result: $LIPO" >&5
6847echo "${ECHO_T}$LIPO" >&6
2abefe3d 6848else
1c710c3c
DJ
6849 echo "$as_me:$LINENO: result: no" >&5
6850echo "${ECHO_T}no" >&6
2abefe3d
PB
6851fi
6852
6853 fi
6854 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6856set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6857echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6859if test "${ac_cv_prog_LIPO+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6861else
6862 if test -n "$LIPO"; then
6863 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6864else
1c710c3c
DJ
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_LIPO="${ncn_progname}"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877done
6878
2abefe3d
PB
6879fi
6880fi
1c710c3c 6881LIPO=$ac_cv_prog_LIPO
2abefe3d 6882if test -n "$LIPO"; then
1c710c3c
DJ
6883 echo "$as_me:$LINENO: result: $LIPO" >&5
6884echo "${ECHO_T}$LIPO" >&6
2abefe3d 6885else
1c710c3c
DJ
6886 echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6
2abefe3d 6888fi
1c710c3c 6889
2abefe3d
PB
6890 fi
6891 test -n "$ac_cv_prog_LIPO" && break
6892done
6893
6894if test -z "$ac_cv_prog_LIPO" ; then
6895 set dummy lipo
6896 if test $build = $host ; then
6897 LIPO="$2"
6898 else
6899 LIPO="${ncn_tool_prefix}$2"
6900 fi
6901fi
6902
278a7a38
AO
6903
6904
6905if test -n "$NM"; then
6906 ac_cv_prog_NM=$NM
6907elif test -n "$ac_cv_prog_NM"; then
6908 NM=$ac_cv_prog_NM
6909fi
6910
6911if test -n "$ac_cv_prog_NM"; then
6912 for ncn_progname in nm; do
6913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6914set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6915echo "$as_me:$LINENO: checking for $ac_word" >&5
6916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6917if test "${ac_cv_prog_NM+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6919else
6920 if test -n "$NM"; then
6921 ac_cv_prog_NM="$NM" # Let the user override the test.
6922else
1c710c3c
DJ
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6930 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934done
6935done
6936
ca9f4b81
AO
6937fi
6938fi
1c710c3c 6939NM=$ac_cv_prog_NM
ca9f4b81 6940if test -n "$NM"; then
1c710c3c
DJ
6941 echo "$as_me:$LINENO: result: $NM" >&5
6942echo "${ECHO_T}$NM" >&6
ca9f4b81 6943else
1c710c3c
DJ
6944 echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6
ca9f4b81
AO
6946fi
6947
278a7a38
AO
6948 done
6949fi
6950
6951for ncn_progname in nm; do
6952 if test -n "$ncn_tool_prefix"; then
6953 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6954set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6955echo "$as_me:$LINENO: checking for $ac_word" >&5
6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6957if test "${ac_cv_prog_NM+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6959else
2693c0b0
PB
6960 if test -n "$NM"; then
6961 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 6962else
1c710c3c
DJ
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6970 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974done
6975done
6976
ca9f4b81
AO
6977fi
6978fi
1c710c3c 6979NM=$ac_cv_prog_NM
2693c0b0 6980if test -n "$NM"; then
1c710c3c
DJ
6981 echo "$as_me:$LINENO: result: $NM" >&5
6982echo "${ECHO_T}$NM" >&6
ca9f4b81 6983else
1c710c3c
DJ
6984 echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6
ca9f4b81 6986fi
1c710c3c 6987
2693c0b0 6988 fi
278a7a38
AO
6989 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6991set dummy ${ncn_progname}; ac_word=$2
6992echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6994if test "${ac_cv_prog_NM+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 if test -n "$NM"; then
6998 ac_cv_prog_NM="$NM" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_NM="${ncn_progname}"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011done
7012done
7013
7014fi
7015fi
7016NM=$ac_cv_prog_NM
7017if test -n "$NM"; then
7018 echo "$as_me:$LINENO: result: $NM" >&5
7019echo "${ECHO_T}$NM" >&6
7020else
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
7023fi
7024
7025 fi
7026 test -n "$ac_cv_prog_NM" && break
7027done
7028
7029if test -z "$ac_cv_prog_NM" ; then
7030 set dummy nm
7031 if test $build = $host ; then
7032 NM="$2"
7033 else
7034 NM="${ncn_tool_prefix}$2"
7035 fi
7036fi
7037
7038
7039
7040if test -n "$RANLIB"; then
7041 ac_cv_prog_RANLIB=$RANLIB
7042elif test -n "$ac_cv_prog_RANLIB"; then
7043 RANLIB=$ac_cv_prog_RANLIB
7044fi
7045
7046if test -n "$ac_cv_prog_RANLIB"; then
7047 for ncn_progname in ranlib; do
7048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7049set dummy ${ncn_progname}; ac_word=$2
7050echo "$as_me:$LINENO: checking for $ac_word" >&5
7051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7052if test "${ac_cv_prog_RANLIB+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055 if test -n "$RANLIB"; then
7056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_RANLIB="${ncn_progname}"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070done
7071
7072fi
7073fi
7074RANLIB=$ac_cv_prog_RANLIB
7075if test -n "$RANLIB"; then
7076 echo "$as_me:$LINENO: result: $RANLIB" >&5
7077echo "${ECHO_T}$RANLIB" >&6
7078else
7079 echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6
7081fi
7082
7083 done
7084fi
ca9f4b81 7085
278a7a38 7086for ncn_progname in ranlib; do
2693c0b0
PB
7087 if test -n "$ncn_tool_prefix"; then
7088 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7089set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7090echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7092if test "${ac_cv_prog_RANLIB+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7094else
7095 if test -n "$RANLIB"; then
7096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7097else
1c710c3c
DJ
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109done
7110done
7111
ca9f4b81
AO
7112fi
7113fi
1c710c3c 7114RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7115if test -n "$RANLIB"; then
1c710c3c
DJ
7116 echo "$as_me:$LINENO: result: $RANLIB" >&5
7117echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7118else
1c710c3c
DJ
7119 echo "$as_me:$LINENO: result: no" >&5
7120echo "${ECHO_T}no" >&6
ca9f4b81
AO
7121fi
7122
2693c0b0
PB
7123 fi
7124 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7126set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7127echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129if test "${ac_cv_prog_RANLIB+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7131else
2693c0b0
PB
7132 if test -n "$RANLIB"; then
7133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7134else
1c710c3c
DJ
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_RANLIB="${ncn_progname}"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146done
7147done
7148
ca9f4b81
AO
7149fi
7150fi
1c710c3c 7151RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7152if test -n "$RANLIB"; then
1c710c3c
DJ
7153 echo "$as_me:$LINENO: result: $RANLIB" >&5
7154echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7155else
1c710c3c
DJ
7156 echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6
ca9f4b81 7158fi
1c710c3c 7159
ca9f4b81 7160 fi
2693c0b0
PB
7161 test -n "$ac_cv_prog_RANLIB" && break
7162done
7163
7164if test -z "$ac_cv_prog_RANLIB" ; then
7165 RANLIB=":"
ca9f4b81
AO
7166fi
7167
278a7a38
AO
7168
7169
7170if test -n "$STRIP"; then
7171 ac_cv_prog_STRIP=$STRIP
7172elif test -n "$ac_cv_prog_STRIP"; then
7173 STRIP=$ac_cv_prog_STRIP
7174fi
7175
7176if test -n "$ac_cv_prog_STRIP"; then
7177 for ncn_progname in strip; do
7178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7179set dummy ${ncn_progname}; ac_word=$2
7180echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7182if test "${ac_cv_prog_STRIP+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185 if test -n "$STRIP"; then
7186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7187else
7188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_STRIP="${ncn_progname}"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199done
7200done
7201
7202fi
7203fi
7204STRIP=$ac_cv_prog_STRIP
7205if test -n "$STRIP"; then
7206 echo "$as_me:$LINENO: result: $STRIP" >&5
7207echo "${ECHO_T}$STRIP" >&6
7208else
7209 echo "$as_me:$LINENO: result: no" >&5
7210echo "${ECHO_T}no" >&6
7211fi
7212
7213 done
7214fi
7215
7216for ncn_progname in strip; do
2abefe3d
PB
7217 if test -n "$ncn_tool_prefix"; then
7218 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7219set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7220echo "$as_me:$LINENO: checking for $ac_word" >&5
7221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7222if test "${ac_cv_prog_STRIP+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7224else
7225 if test -n "$STRIP"; then
7226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7227else
1c710c3c
DJ
7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239done
7240done
7241
2abefe3d
PB
7242fi
7243fi
1c710c3c 7244STRIP=$ac_cv_prog_STRIP
2abefe3d 7245if test -n "$STRIP"; then
1c710c3c
DJ
7246 echo "$as_me:$LINENO: result: $STRIP" >&5
7247echo "${ECHO_T}$STRIP" >&6
2abefe3d 7248else
1c710c3c
DJ
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
2abefe3d
PB
7251fi
7252
7253 fi
7254 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7256set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7257echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7259if test "${ac_cv_prog_STRIP+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7261else
7262 if test -n "$STRIP"; then
7263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7264else
1c710c3c
DJ
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_STRIP="${ncn_progname}"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
7276done
7277done
7278
2abefe3d
PB
7279fi
7280fi
1c710c3c 7281STRIP=$ac_cv_prog_STRIP
2abefe3d 7282if test -n "$STRIP"; then
1c710c3c
DJ
7283 echo "$as_me:$LINENO: result: $STRIP" >&5
7284echo "${ECHO_T}$STRIP" >&6
2abefe3d 7285else
1c710c3c
DJ
7286 echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
2abefe3d 7288fi
1c710c3c 7289
2abefe3d
PB
7290 fi
7291 test -n "$ac_cv_prog_STRIP" && break
7292done
7293
7294if test -z "$ac_cv_prog_STRIP" ; then
7295 STRIP=":"
7296fi
7297
278a7a38
AO
7298
7299
7300if test -n "$WINDRES"; then
7301 ac_cv_prog_WINDRES=$WINDRES
7302elif test -n "$ac_cv_prog_WINDRES"; then
7303 WINDRES=$ac_cv_prog_WINDRES
7304fi
7305
7306if test -n "$ac_cv_prog_WINDRES"; then
7307 for ncn_progname in windres; do
7308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7309set dummy ${ncn_progname}; ac_word=$2
7310echo "$as_me:$LINENO: checking for $ac_word" >&5
7311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7312if test "${ac_cv_prog_WINDRES+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315 if test -n "$WINDRES"; then
7316 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7317else
7318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_WINDRES="${ncn_progname}"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329done
7330done
7331
7332fi
7333fi
7334WINDRES=$ac_cv_prog_WINDRES
7335if test -n "$WINDRES"; then
7336 echo "$as_me:$LINENO: result: $WINDRES" >&5
7337echo "${ECHO_T}$WINDRES" >&6
7338else
7339 echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
7341fi
7342
7343 done
7344fi
7345
7346for ncn_progname in windres; do
2693c0b0
PB
7347 if test -n "$ncn_tool_prefix"; then
7348 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7349set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7350echo "$as_me:$LINENO: checking for $ac_word" >&5
7351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352if test "${ac_cv_prog_WINDRES+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7354else
7355 if test -n "$WINDRES"; then
7356 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7357else
1c710c3c
DJ
7358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359for as_dir in $PATH
7360do
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7368 fi
7369done
7370done
7371
ca9f4b81
AO
7372fi
7373fi
1c710c3c 7374WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7375if test -n "$WINDRES"; then
1c710c3c
DJ
7376 echo "$as_me:$LINENO: result: $WINDRES" >&5
7377echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7378else
1c710c3c
DJ
7379 echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6
ca9f4b81
AO
7381fi
7382
2693c0b0
PB
7383 fi
7384 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7386set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7387echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389if test "${ac_cv_prog_WINDRES+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7391else
2693c0b0
PB
7392 if test -n "$WINDRES"; then
7393 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7394else
1c710c3c
DJ
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_WINDRES="${ncn_progname}"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406done
7407done
7408
ca9f4b81
AO
7409fi
7410fi
1c710c3c 7411WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7412if test -n "$WINDRES"; then
1c710c3c
DJ
7413 echo "$as_me:$LINENO: result: $WINDRES" >&5
7414echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7415else
1c710c3c
DJ
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
ca9f4b81 7418fi
1c710c3c 7419
2693c0b0
PB
7420 fi
7421 test -n "$ac_cv_prog_WINDRES" && break
7422done
7423
7424if test -z "$ac_cv_prog_WINDRES" ; then
7425 set dummy windres
7426 if test $build = $host ; then
7427 WINDRES="$2"
ca9f4b81 7428 else
2693c0b0 7429 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7430 fi
ca9f4b81
AO
7431fi
7432
278a7a38
AO
7433
7434
7435if test -n "$OBJCOPY"; then
7436 ac_cv_prog_OBJCOPY=$OBJCOPY
7437elif test -n "$ac_cv_prog_OBJCOPY"; then
7438 OBJCOPY=$ac_cv_prog_OBJCOPY
7439fi
7440
7441if test -n "$ac_cv_prog_OBJCOPY"; then
7442 for ncn_progname in objcopy; do
7443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7444set dummy ${ncn_progname}; ac_word=$2
7445echo "$as_me:$LINENO: checking for $ac_word" >&5
7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449else
7450 if test -n "$OBJCOPY"; then
7451 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7452else
7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_OBJCOPY="${ncn_progname}"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464done
7465done
7466
7467fi
7468fi
7469OBJCOPY=$ac_cv_prog_OBJCOPY
7470if test -n "$OBJCOPY"; then
7471 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7472echo "${ECHO_T}$OBJCOPY" >&6
7473else
7474 echo "$as_me:$LINENO: result: no" >&5
7475echo "${ECHO_T}no" >&6
7476fi
7477
7478 done
7479fi
7480
7481for ncn_progname in objcopy; do
2693c0b0
PB
7482 if test -n "$ncn_tool_prefix"; then
7483 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7484set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7485echo "$as_me:$LINENO: checking for $ac_word" >&5
7486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7489else
7490 if test -n "$OBJCOPY"; then
7491 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7492else
1c710c3c
DJ
7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7503 fi
7504done
7505done
7506
ca9f4b81
AO
7507fi
7508fi
1c710c3c 7509OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7510if test -n "$OBJCOPY"; then
1c710c3c
DJ
7511 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7512echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7513else
1c710c3c
DJ
7514 echo "$as_me:$LINENO: result: no" >&5
7515echo "${ECHO_T}no" >&6
ca9f4b81
AO
7516fi
7517
2693c0b0
PB
7518 fi
7519 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7521set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7522echo "$as_me:$LINENO: checking for $ac_word" >&5
7523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7524if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7526else
2693c0b0
PB
7527 if test -n "$OBJCOPY"; then
7528 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7529else
1c710c3c
DJ
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537 ac_cv_prog_OBJCOPY="${ncn_progname}"
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7540 fi
7541done
7542done
7543
ca9f4b81
AO
7544fi
7545fi
1c710c3c 7546OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7547if test -n "$OBJCOPY"; then
1c710c3c
DJ
7548 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7549echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7550else
1c710c3c
DJ
7551 echo "$as_me:$LINENO: result: no" >&5
7552echo "${ECHO_T}no" >&6
ca9f4b81 7553fi
1c710c3c 7554
2693c0b0
PB
7555 fi
7556 test -n "$ac_cv_prog_OBJCOPY" && break
7557done
7558
7559if test -z "$ac_cv_prog_OBJCOPY" ; then
7560 set dummy objcopy
7561 if test $build = $host ; then
7562 OBJCOPY="$2"
ca9f4b81 7563 else
2693c0b0 7564 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7565 fi
ca9f4b81
AO
7566fi
7567
278a7a38
AO
7568
7569
7570if test -n "$OBJDUMP"; then
7571 ac_cv_prog_OBJDUMP=$OBJDUMP
7572elif test -n "$ac_cv_prog_OBJDUMP"; then
7573 OBJDUMP=$ac_cv_prog_OBJDUMP
7574fi
7575
7576if test -n "$ac_cv_prog_OBJDUMP"; then
7577 for ncn_progname in objdump; do
7578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7579set dummy ${ncn_progname}; ac_word=$2
7580echo "$as_me:$LINENO: checking for $ac_word" >&5
7581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7582if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585 if test -n "$OBJDUMP"; then
7586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7587else
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_OBJDUMP="${ncn_progname}"
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599done
7600done
7601
7602fi
7603fi
7604OBJDUMP=$ac_cv_prog_OBJDUMP
7605if test -n "$OBJDUMP"; then
7606 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7607echo "${ECHO_T}$OBJDUMP" >&6
7608else
7609 echo "$as_me:$LINENO: result: no" >&5
7610echo "${ECHO_T}no" >&6
7611fi
7612
7613 done
7614fi
7615
7616for ncn_progname in objdump; do
2693c0b0
PB
7617 if test -n "$ncn_tool_prefix"; then
7618 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7619set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7620echo "$as_me:$LINENO: checking for $ac_word" >&5
7621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7622if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7624else
7625 if test -n "$OBJDUMP"; then
7626 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7627else
1c710c3c
DJ
7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7638 fi
7639done
7640done
7641
ca9f4b81
AO
7642fi
7643fi
1c710c3c 7644OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7645if test -n "$OBJDUMP"; then
1c710c3c
DJ
7646 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7647echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7648else
1c710c3c
DJ
7649 echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6
ca9f4b81
AO
7651fi
7652
2693c0b0
PB
7653 fi
7654 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7656set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7657echo "$as_me:$LINENO: checking for $ac_word" >&5
7658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7659if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7661else
2693c0b0
PB
7662 if test -n "$OBJDUMP"; then
7663 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7664else
1c710c3c
DJ
7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672 ac_cv_prog_OBJDUMP="${ncn_progname}"
7673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7675 fi
7676done
7677done
7678
ca9f4b81
AO
7679fi
7680fi
1c710c3c 7681OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7682if test -n "$OBJDUMP"; then
1c710c3c
DJ
7683 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7684echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7685else
1c710c3c
DJ
7686 echo "$as_me:$LINENO: result: no" >&5
7687echo "${ECHO_T}no" >&6
ca9f4b81 7688fi
1c710c3c 7689
2693c0b0
PB
7690 fi
7691 test -n "$ac_cv_prog_OBJDUMP" && break
7692done
7693
7694if test -z "$ac_cv_prog_OBJDUMP" ; then
7695 set dummy objdump
7696 if test $build = $host ; then
7697 OBJDUMP="$2"
ca9f4b81 7698 else
2693c0b0 7699 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7700 fi
ca9f4b81
AO
7701fi
7702
671aa708
NN
7703
7704
7705
7706
7707
7708
2abefe3d 7709# Target tools.
1c710c3c 7710
e8b05380
PB
7711# Check whether --with-build-time-tools or --without-build-time-tools was given.
7712if test "${with_build_time_tools+set}" = set; then
7713 withval="$with_build_time_tools"
7714 case x"$withval" in
7715 x/*) ;;
7716 *)
7717 with_build_time_tools=
1c710c3c
DJ
7718 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7719echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7720 ;;
7721 esac
ca9f4b81 7722else
e8b05380 7723 with_build_time_tools=
1c710c3c 7724fi;
ca9f4b81 7725
278a7a38
AO
7726
7727
7728if test -n "$CC_FOR_TARGET"; then
7729 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7730elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7731 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7732fi
7733
7734if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7735 for ncn_progname in cc gcc; do
7736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7737set dummy ${ncn_progname}; ac_word=$2
7738echo "$as_me:$LINENO: checking for $ac_word" >&5
7739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7740if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743 if test -n "$CC_FOR_TARGET"; then
7744 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757done
7758done
7759
7760fi
7761fi
7762CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7763if test -n "$CC_FOR_TARGET"; then
7764 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7765echo "${ECHO_T}$CC_FOR_TARGET" >&6
7766else
7767 echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6
7769fi
7770
7771 done
7772fi
7773
7774if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7775 for ncn_progname in cc gcc; do
1c710c3c
DJ
7776 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7777echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7778 if test -x $with_build_time_tools/${ncn_progname}; then
7779 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
72a7ab82 7782 break
e8b05380 7783 else
1c710c3c
DJ
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
72a7ab82
AP
7786 fi
7787 done
4de997d1
PB
7788fi
7789
e8b05380
PB
7790if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7791 for ncn_progname in cc gcc; do
7792 if test -n "$ncn_target_tool_prefix"; then
7793 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7794set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7795echo "$as_me:$LINENO: checking for $ac_word" >&5
7796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7797if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7799else
7800 if test -n "$CC_FOR_TARGET"; then
7801 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7802else
1c710c3c
DJ
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814done
7815done
7816
4de997d1
PB
7817fi
7818fi
1c710c3c 7819CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 7820if test -n "$CC_FOR_TARGET"; then
1c710c3c
DJ
7821 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7822echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 7823else
1c710c3c
DJ
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
4de997d1
PB
7826fi
7827
e8b05380
PB
7828 fi
7829 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7831set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7832echo "$as_me:$LINENO: checking for $ac_word" >&5
7833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7834if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7836else
2693c0b0
PB
7837 if test -n "$CC_FOR_TARGET"; then
7838 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 7839else
1c710c3c
DJ
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7850 fi
7851done
7852done
7853
4de997d1
PB
7854fi
7855fi
1c710c3c 7856CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 7857if test -n "$CC_FOR_TARGET"; then
1c710c3c
DJ
7858 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7859echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 7860else
1c710c3c
DJ
7861 echo "$as_me:$LINENO: result: no" >&5
7862echo "${ECHO_T}no" >&6
4de997d1 7863fi
1c710c3c 7864
e8b05380
PB
7865 fi
7866 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7867 done
7868fi
1c710c3c 7869
2693c0b0
PB
7870if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7871 set dummy cc gcc
7872 if test $build = $target ; then
7873 CC_FOR_TARGET="$2"
4de997d1 7874 else
2693c0b0 7875 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 7876 fi
4de997d1
PB
7877fi
7878
278a7a38
AO
7879
7880
7881if test -n "$CXX_FOR_TARGET"; then
7882 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
7883elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7884 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7885fi
7886
7887if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7888 for ncn_progname in c++ g++ cxx gxx; do
7889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7890set dummy ${ncn_progname}; ac_word=$2
7891echo "$as_me:$LINENO: checking for $ac_word" >&5
7892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7893if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7895else
7896 if test -n "$CXX_FOR_TARGET"; then
7897 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911done
7912
7913fi
7914fi
7915CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7916if test -n "$CXX_FOR_TARGET"; then
7917 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7918echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7919else
7920 echo "$as_me:$LINENO: result: no" >&5
7921echo "${ECHO_T}no" >&6
7922fi
7923
7924 done
7925fi
7926
7927if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7928 for ncn_progname in c++ g++ cxx gxx; do
1c710c3c
DJ
7929 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7930echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7931 if test -x $with_build_time_tools/${ncn_progname}; then
7932 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7933 echo "$as_me:$LINENO: result: yes" >&5
7934echo "${ECHO_T}yes" >&6
e8b05380
PB
7935 break
7936 else
1c710c3c
DJ
7937 echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6
e8b05380
PB
7939 fi
7940 done
7941fi
7942
7943if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7944 for ncn_progname in c++ g++ cxx gxx; do
7945 if test -n "$ncn_target_tool_prefix"; then
7946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7947set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7948echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7952else
7953 if test -n "$CXX_FOR_TARGET"; then
7954 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7955else
1c710c3c
DJ
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
7968done
7969
4de997d1
PB
7970fi
7971fi
1c710c3c 7972CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 7973if test -n "$CXX_FOR_TARGET"; then
1c710c3c
DJ
7974 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7975echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 7976else
1c710c3c
DJ
7977 echo "$as_me:$LINENO: result: no" >&5
7978echo "${ECHO_T}no" >&6
4de997d1
PB
7979fi
7980
e8b05380
PB
7981 fi
7982 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7984set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7985echo "$as_me:$LINENO: checking for $ac_word" >&5
7986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7987if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7989else
2693c0b0
PB
7990 if test -n "$CXX_FOR_TARGET"; then
7991 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 7992else
1c710c3c
DJ
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004done
8005done
8006
4de997d1
PB
8007fi
8008fi
1c710c3c 8009CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8010if test -n "$CXX_FOR_TARGET"; then
1c710c3c
DJ
8011 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8012echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8013else
1c710c3c
DJ
8014 echo "$as_me:$LINENO: result: no" >&5
8015echo "${ECHO_T}no" >&6
4de997d1 8016fi
1c710c3c 8017
e8b05380
PB
8018 fi
8019 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8020 done
8021fi
1c710c3c 8022
2693c0b0
PB
8023if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8024 set dummy c++ g++ cxx gxx
8025 if test $build = $target ; then
8026 CXX_FOR_TARGET="$2"
4de997d1 8027 else
2693c0b0 8028 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8029 fi
ca9f4b81
AO
8030fi
8031
278a7a38
AO
8032
8033
8034if test -n "$GCC_FOR_TARGET"; then
8035 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8036elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8037 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8038fi
8039
8040if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8041 for ncn_progname in gcc; do
8042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8043set dummy ${ncn_progname}; ac_word=$2
8044echo "$as_me:$LINENO: checking for $ac_word" >&5
8045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8046if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048else
8049 if test -n "$GCC_FOR_TARGET"; then
8050 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 break 2
8062 fi
8063done
8064done
8065
8066fi
8067fi
8068GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8069if test -n "$GCC_FOR_TARGET"; then
8070 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8071echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8072else
8073 echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075fi
8076
8077 done
8078fi
8079
8080if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8081 for ncn_progname in gcc; do
1c710c3c
DJ
8082 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8083echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8084 if test -x $with_build_time_tools/${ncn_progname}; then
8085 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8086 echo "$as_me:$LINENO: result: yes" >&5
8087echo "${ECHO_T}yes" >&6
e8b05380
PB
8088 break
8089 else
1c710c3c
DJ
8090 echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6
e8b05380
PB
8092 fi
8093 done
8094fi
8095
8096if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8097 for ncn_progname in gcc; do
8098 if test -n "$ncn_target_tool_prefix"; then
8099 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8100set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8101echo "$as_me:$LINENO: checking for $ac_word" >&5
8102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8103if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8105else
e8b05380
PB
8106 if test -n "$GCC_FOR_TARGET"; then
8107 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8108else
1c710c3c
DJ
8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8119 fi
8120done
8121done
8122
ca9f4b81
AO
8123fi
8124fi
1c710c3c 8125GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8126if test -n "$GCC_FOR_TARGET"; then
1c710c3c
DJ
8127 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8128echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8129else
1c710c3c
DJ
8130 echo "$as_me:$LINENO: result: no" >&5
8131echo "${ECHO_T}no" >&6
ca9f4b81
AO
8132fi
8133
e8b05380
PB
8134 fi
8135 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8137set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8138echo "$as_me:$LINENO: checking for $ac_word" >&5
8139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8140if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8142else
e8b05380
PB
8143 if test -n "$GCC_FOR_TARGET"; then
8144 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8145else
1c710c3c
DJ
8146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157done
8158done
8159
ca9f4b81
AO
8160fi
8161fi
1c710c3c 8162GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8163if test -n "$GCC_FOR_TARGET"; then
1c710c3c
DJ
8164 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8165echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8166else
1c710c3c
DJ
8167 echo "$as_me:$LINENO: result: no" >&5
8168echo "${ECHO_T}no" >&6
ca9f4b81 8169fi
1c710c3c 8170
e8b05380
PB
8171 fi
8172 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8173 done
8174fi
1c710c3c 8175
e8b05380
PB
8176if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8177 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8178fi
8179
278a7a38
AO
8180
8181
8182if test -n "$GCJ_FOR_TARGET"; then
8183 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8184elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8185 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8186fi
8187
8188if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8189 for ncn_progname in gcj; do
8190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191set dummy ${ncn_progname}; ac_word=$2
8192echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197 if test -n "$GCJ_FOR_TARGET"; then
8198 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211done
8212done
8213
8214fi
8215fi
8216GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8217if test -n "$GCJ_FOR_TARGET"; then
8218 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8219echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8220else
8221 echo "$as_me:$LINENO: result: no" >&5
8222echo "${ECHO_T}no" >&6
8223fi
8224
8225 done
8226fi
8227
8228if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8229 for ncn_progname in gcj; do
1c710c3c
DJ
8230 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8231echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8232 if test -x $with_build_time_tools/${ncn_progname}; then
8233 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8234 echo "$as_me:$LINENO: result: yes" >&5
8235echo "${ECHO_T}yes" >&6
e8b05380
PB
8236 break
8237 else
1c710c3c
DJ
8238 echo "$as_me:$LINENO: result: no" >&5
8239echo "${ECHO_T}no" >&6
e8b05380
PB
8240 fi
8241 done
8242fi
8243
8244if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8245 for ncn_progname in gcj; do
8246 if test -n "$ncn_target_tool_prefix"; then
8247 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8248set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8249echo "$as_me:$LINENO: checking for $ac_word" >&5
8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8251if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8253else
fb0103e5
RG
8254 if test -n "$GCJ_FOR_TARGET"; then
8255 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8256else
1c710c3c
DJ
8257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258for as_dir in $PATH
8259do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268done
8269done
8270
e8b05380
PB
8271fi
8272fi
278a7a38
AO
8273GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8274if test -n "$GCJ_FOR_TARGET"; then
8275 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8276echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8277else
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280fi
8281
8282 fi
8283 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8285set dummy ${ncn_progname}; ac_word=$2
8286echo "$as_me:$LINENO: checking for $ac_word" >&5
8287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8288if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290else
8291 if test -n "$GCJ_FOR_TARGET"; then
8292 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8293else
8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295for as_dir in $PATH
8296do
8297 IFS=$as_save_IFS
8298 test -z "$as_dir" && as_dir=.
8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8301 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8303 break 2
8304 fi
8305done
8306done
8307
8308fi
8309fi
8310GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8311if test -n "$GCJ_FOR_TARGET"; then
8312 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8313echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8314else
8315 echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
8317fi
8318
8319 fi
8320 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8321 done
8322fi
8323
8324if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8325 set dummy gcj
8326 if test $build = $target ; then
8327 GCJ_FOR_TARGET="$2"
8328 else
8329 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8330 fi
8331fi
8332
8333
8334
8335if test -n "$GFORTRAN_FOR_TARGET"; then
8336 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8337elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8338 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8339fi
8340
278a7a38
AO
8341if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8342 for ncn_progname in gfortran; do
8343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8344set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8345echo "$as_me:$LINENO: checking for $ac_word" >&5
8346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8347if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8348 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8349else
278a7a38
AO
8350 if test -n "$GFORTRAN_FOR_TARGET"; then
8351 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8352else
1c710c3c
DJ
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8360 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364done
8365done
8366
e8b05380
PB
8367fi
8368fi
278a7a38
AO
8369GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8370if test -n "$GFORTRAN_FOR_TARGET"; then
8371 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8372echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8373else
1c710c3c
DJ
8374 echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
e8b05380 8376fi
1c710c3c 8377
e8b05380
PB
8378 done
8379fi
1c710c3c 8380
278a7a38 8381if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8382 for ncn_progname in gfortran; do
1c710c3c
DJ
8383 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8384echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8385 if test -x $with_build_time_tools/${ncn_progname}; then
8386 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8387 echo "$as_me:$LINENO: result: yes" >&5
8388echo "${ECHO_T}yes" >&6
e8b05380
PB
8389 break
8390 else
1c710c3c
DJ
8391 echo "$as_me:$LINENO: result: no" >&5
8392echo "${ECHO_T}no" >&6
e8b05380
PB
8393 fi
8394 done
8395fi
8396
8397if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8398 for ncn_progname in gfortran; do
8399 if test -n "$ncn_target_tool_prefix"; then
8400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8401set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8402echo "$as_me:$LINENO: checking for $ac_word" >&5
8403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8404if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8406else
8407 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8408 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8409else
8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421done
8422done
8423
e8b05380
PB
8424fi
8425fi
1c710c3c 8426GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8427if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8428 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8429echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8430else
1c710c3c
DJ
8431 echo "$as_me:$LINENO: result: no" >&5
8432echo "${ECHO_T}no" >&6
e8b05380
PB
8433fi
8434
8435 fi
8436 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8438set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8439echo "$as_me:$LINENO: checking for $ac_word" >&5
8440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8441if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8443else
8444 if test -n "$GFORTRAN_FOR_TARGET"; then
8445 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8446else
1c710c3c
DJ
8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8457 fi
8458done
8459done
8460
e8b05380
PB
8461fi
8462fi
1c710c3c 8463GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8464if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8465 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8466echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8467else
1c710c3c
DJ
8468 echo "$as_me:$LINENO: result: no" >&5
8469echo "${ECHO_T}no" >&6
e8b05380 8470fi
1c710c3c 8471
e8b05380
PB
8472 fi
8473 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8474 done
8475fi
1c710c3c 8476
e8b05380
PB
8477if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8478 set dummy gfortran
2693c0b0 8479 if test $build = $target ; then
e8b05380 8480 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8481 else
e8b05380
PB
8482 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8483 fi
8484fi
8485
8486
8487
e8b05380
PB
8488cat > conftest.c << \EOF
8489#ifdef __GNUC__
8490 gcc_yay;
8491#endif
8492EOF
8493if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8494 have_gcc_for_target=yes
8495else
8496 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8497 have_gcc_for_target=no
8498fi
8499rm conftest.c
8500
8501
8502
8503
8504if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8505 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8506 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8507echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8508 if test -x $with_build_time_tools/ar; then
8509 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8510 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
1c710c3c
DJ
8511 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8512echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8513 else
1c710c3c
DJ
8514 echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6
d1f8db0c 8516 fi
e8b05380
PB
8517 elif test $build != $host && test $have_gcc_for_target = yes; then
8518 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8519 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
8520 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8521 fi
8522fi
3e19841a 8523if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8524 # Extract the first word of "ar", so it can be a program name with args.
8525set dummy ar; ac_word=$2
1c710c3c
DJ
8526echo "$as_me:$LINENO: checking for $ac_word" >&5
8527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8528if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8530else
1c710c3c
DJ
8531 case $AR_FOR_TARGET in
8532 [\\/]* | ?:[\\/]*)
e8b05380
PB
8533 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8534 ;;
e8b05380 8535 *)
1c710c3c
DJ
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $gcc_cv_tool_dirs
8538do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547done
8548done
8549
e8b05380
PB
8550 ;;
8551esac
8552fi
1c710c3c
DJ
8553AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8554
e8b05380 8555if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
8556 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8557echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8558else
1c710c3c
DJ
8559 echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6
4de997d1
PB
8561fi
8562
e8b05380
PB
8563fi
8564if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8565
8566
8567if test -n "$AR_FOR_TARGET"; then
8568 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8569elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8570 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8571fi
8572
8573if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8574 for ncn_progname in ar; do
8575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8576set dummy ${ncn_progname}; ac_word=$2
8577echo "$as_me:$LINENO: checking for $ac_word" >&5
8578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8579if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582 if test -n "$AR_FOR_TARGET"; then
8583 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8584else
8585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586for as_dir in $PATH
8587do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596done
8597done
8598
8599fi
8600fi
8601AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8602if test -n "$AR_FOR_TARGET"; then
8603 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8604echo "${ECHO_T}$AR_FOR_TARGET" >&6
8605else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608fi
8609
8610 done
8611fi
8612
8613if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8614 for ncn_progname in ar; do
1c710c3c
DJ
8615 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8616echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8617 if test -x $with_build_time_tools/${ncn_progname}; then
8618 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8619 echo "$as_me:$LINENO: result: yes" >&5
8620echo "${ECHO_T}yes" >&6
e8b05380
PB
8621 break
8622 else
1c710c3c
DJ
8623 echo "$as_me:$LINENO: result: no" >&5
8624echo "${ECHO_T}no" >&6
e8b05380
PB
8625 fi
8626 done
8627fi
8628
8629if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8630 for ncn_progname in ar; do
8631 if test -n "$ncn_target_tool_prefix"; then
8632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8633set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8634echo "$as_me:$LINENO: checking for $ac_word" >&5
8635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8636if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8638else
e8b05380
PB
8639 if test -n "$AR_FOR_TARGET"; then
8640 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8641else
1c710c3c
DJ
8642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643for as_dir in $PATH
8644do
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8652 fi
8653done
8654done
8655
4de997d1
PB
8656fi
8657fi
1c710c3c 8658AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8659if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
8660 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8661echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8662else
1c710c3c
DJ
8663 echo "$as_me:$LINENO: result: no" >&5
8664echo "${ECHO_T}no" >&6
4de997d1
PB
8665fi
8666
e8b05380
PB
8667 fi
8668 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8670set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8671echo "$as_me:$LINENO: checking for $ac_word" >&5
8672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8673if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8675else
8676 if test -n "$AR_FOR_TARGET"; then
8677 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8678else
1c710c3c
DJ
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690done
8691done
8692
e8b05380
PB
8693fi
8694fi
1c710c3c 8695AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8696if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
8697 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8698echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8699else
1c710c3c
DJ
8700 echo "$as_me:$LINENO: result: no" >&5
8701echo "${ECHO_T}no" >&6
e8b05380 8702fi
1c710c3c 8703
e8b05380
PB
8704 fi
8705 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8706 done
8707fi
1c710c3c 8708
e8b05380
PB
8709if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8710 set dummy ar
8711 if test $build = $target ; then
8712 AR_FOR_TARGET="$2"
8713 else
8714 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8715 fi
e8b05380
PB
8716fi
8717
d1f8db0c
PB
8718else
8719 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8720fi
8721
8722
8723
8724
8725if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8726 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8727 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8728echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8729 if test -x $with_build_time_tools/as; then
8730 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8731 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
1c710c3c
DJ
8732 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8733echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 8734 else
1c710c3c
DJ
8735 echo "$as_me:$LINENO: result: no" >&5
8736echo "${ECHO_T}no" >&6
d1f8db0c 8737 fi
e8b05380
PB
8738 elif test $build != $host && test $have_gcc_for_target = yes; then
8739 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8740 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
8741 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8742 fi
8743fi
3e19841a 8744if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8745 # Extract the first word of "as", so it can be a program name with args.
8746set dummy as; ac_word=$2
1c710c3c
DJ
8747echo "$as_me:$LINENO: checking for $ac_word" >&5
8748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8749if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8751else
1c710c3c
DJ
8752 case $AS_FOR_TARGET in
8753 [\\/]* | ?:[\\/]*)
e8b05380
PB
8754 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8755 ;;
e8b05380 8756 *)
1c710c3c
DJ
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $gcc_cv_tool_dirs
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8767 fi
8768done
8769done
8770
e8b05380
PB
8771 ;;
8772esac
8773fi
1c710c3c
DJ
8774AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8775
e8b05380 8776if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
8777 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8778echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 8779else
1c710c3c
DJ
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
e8b05380
PB
8782fi
8783
8784fi
8785if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
8786
8787
8788if test -n "$AS_FOR_TARGET"; then
8789 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8790elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8791 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8792fi
8793
8794if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8795 for ncn_progname in as; do
8796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8797set dummy ${ncn_progname}; ac_word=$2
8798echo "$as_me:$LINENO: checking for $ac_word" >&5
8799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8800if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803 if test -n "$AS_FOR_TARGET"; then
8804 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8816 fi
8817done
8818done
8819
8820fi
8821fi
8822AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8823if test -n "$AS_FOR_TARGET"; then
8824 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8825echo "${ECHO_T}$AS_FOR_TARGET" >&6
8826else
8827 echo "$as_me:$LINENO: result: no" >&5
8828echo "${ECHO_T}no" >&6
8829fi
8830
8831 done
8832fi
8833
8834if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8835 for ncn_progname in as; do
1c710c3c
DJ
8836 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8837echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8838 if test -x $with_build_time_tools/${ncn_progname}; then
8839 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8840 echo "$as_me:$LINENO: result: yes" >&5
8841echo "${ECHO_T}yes" >&6
e8b05380
PB
8842 break
8843 else
1c710c3c
DJ
8844 echo "$as_me:$LINENO: result: no" >&5
8845echo "${ECHO_T}no" >&6
e8b05380
PB
8846 fi
8847 done
8848fi
8849
8850if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8851 for ncn_progname in as; do
8852 if test -n "$ncn_target_tool_prefix"; then
8853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8854set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8855echo "$as_me:$LINENO: checking for $ac_word" >&5
8856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8857if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8859else
8860 if test -n "$AS_FOR_TARGET"; then
8861 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8862else
1c710c3c
DJ
8863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864for as_dir in $PATH
8865do
8866 IFS=$as_save_IFS
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8872 break 2
8873 fi
8874done
8875done
8876
e8b05380
PB
8877fi
8878fi
1c710c3c 8879AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 8880if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
8881 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8882echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 8883else
1c710c3c
DJ
8884 echo "$as_me:$LINENO: result: no" >&5
8885echo "${ECHO_T}no" >&6
e8b05380
PB
8886fi
8887
8888 fi
8889 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
8890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8891set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8892echo "$as_me:$LINENO: checking for $ac_word" >&5
8893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8894if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8896else
e8b05380
PB
8897 if test -n "$AS_FOR_TARGET"; then
8898 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 8899else
1c710c3c
DJ
8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901for as_dir in $PATH
8902do
8903 IFS=$as_save_IFS
8904 test -z "$as_dir" && as_dir=.
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 break 2
8910 fi
8911done
8912done
8913
4de997d1
PB
8914fi
8915fi
1c710c3c 8916AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 8917if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
8918 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8919echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 8920else
1c710c3c
DJ
8921 echo "$as_me:$LINENO: result: no" >&5
8922echo "${ECHO_T}no" >&6
4de997d1 8923fi
1c710c3c 8924
e8b05380
PB
8925 fi
8926 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
8927 done
8928fi
1c710c3c 8929
e8b05380
PB
8930if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
8931 set dummy as
8932 if test $build = $target ; then
8933 AS_FOR_TARGET="$2"
8934 else
8935 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8936 fi
e8b05380 8937fi
2693c0b0 8938
d1f8db0c
PB
8939else
8940 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
8941fi
8942
e8b05380
PB
8943
8944
8945
8946if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
8947 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8948 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
8949echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8950 if test -x $with_build_time_tools/dlltool; then
8951 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
8952 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
1c710c3c
DJ
8953 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
8954echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 8955 else
1c710c3c
DJ
8956 echo "$as_me:$LINENO: result: no" >&5
8957echo "${ECHO_T}no" >&6
d1f8db0c 8958 fi
e8b05380
PB
8959 elif test $build != $host && test $have_gcc_for_target = yes; then
8960 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
8961 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
8962 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8963 fi
8964fi
3e19841a 8965if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8966 # Extract the first word of "dlltool", so it can be a program name with args.
8967set dummy dlltool; ac_word=$2
1c710c3c
DJ
8968echo "$as_me:$LINENO: checking for $ac_word" >&5
8969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8970if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8972else
1c710c3c
DJ
8973 case $DLLTOOL_FOR_TARGET in
8974 [\\/]* | ?:[\\/]*)
e8b05380
PB
8975 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
8976 ;;
e8b05380 8977 *)
1c710c3c
DJ
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $gcc_cv_tool_dirs
8980do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 break 2
8988 fi
8989done
8990done
8991
e8b05380
PB
8992 ;;
8993esac
4de997d1 8994fi
1c710c3c
DJ
8995DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8996
e8b05380 8997if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
8998 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8999echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9000else
1c710c3c
DJ
9001 echo "$as_me:$LINENO: result: no" >&5
9002echo "${ECHO_T}no" >&6
4de997d1
PB
9003fi
9004
e8b05380
PB
9005fi
9006if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9007
9008
9009if test -n "$DLLTOOL_FOR_TARGET"; then
9010 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9011elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9012 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9013fi
9014
9015if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9016 for ncn_progname in dlltool; do
9017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9018set dummy ${ncn_progname}; ac_word=$2
9019echo "$as_me:$LINENO: checking for $ac_word" >&5
9020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024 if test -n "$DLLTOOL_FOR_TARGET"; then
9025 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9026else
9027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028for as_dir in $PATH
9029do
9030 IFS=$as_save_IFS
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 break 2
9037 fi
9038done
9039done
9040
9041fi
9042fi
9043DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9044if test -n "$DLLTOOL_FOR_TARGET"; then
9045 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9046echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9047else
9048 echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
9050fi
9051
9052 done
9053fi
9054
9055if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9056 for ncn_progname in dlltool; do
1c710c3c
DJ
9057 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9058echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9059 if test -x $with_build_time_tools/${ncn_progname}; then
9060 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9061 echo "$as_me:$LINENO: result: yes" >&5
9062echo "${ECHO_T}yes" >&6
e8b05380
PB
9063 break
9064 else
1c710c3c
DJ
9065 echo "$as_me:$LINENO: result: no" >&5
9066echo "${ECHO_T}no" >&6
e8b05380
PB
9067 fi
9068 done
9069fi
9070
9071if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9072 for ncn_progname in dlltool; do
9073 if test -n "$ncn_target_tool_prefix"; then
9074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9075set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9076echo "$as_me:$LINENO: checking for $ac_word" >&5
9077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9078if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9080else
e8b05380
PB
9081 if test -n "$DLLTOOL_FOR_TARGET"; then
9082 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9083else
1c710c3c
DJ
9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9091 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 break 2
9094 fi
9095done
9096done
9097
4de997d1
PB
9098fi
9099fi
1c710c3c 9100DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9101if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
9102 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9103echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9104else
1c710c3c
DJ
9105 echo "$as_me:$LINENO: result: no" >&5
9106echo "${ECHO_T}no" >&6
4de997d1 9107fi
4de997d1 9108
e8b05380
PB
9109 fi
9110 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9112set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9113echo "$as_me:$LINENO: checking for $ac_word" >&5
9114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9115if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9117else
e8b05380
PB
9118 if test -n "$DLLTOOL_FOR_TARGET"; then
9119 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9120else
1c710c3c
DJ
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9131 fi
9132done
9133done
9134
4de997d1
PB
9135fi
9136fi
1c710c3c 9137DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9138if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
9139 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9140echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9141else
1c710c3c
DJ
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
4de997d1 9144fi
1c710c3c 9145
e8b05380
PB
9146 fi
9147 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9148 done
9149fi
1c710c3c 9150
e8b05380
PB
9151if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9152 set dummy dlltool
9153 if test $build = $target ; then
9154 DLLTOOL_FOR_TARGET="$2"
9155 else
9156 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9157 fi
9158fi
9159
d1f8db0c
PB
9160else
9161 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9162fi
9163
4de997d1 9164
e8b05380
PB
9165
9166
9167if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9168 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9169 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9170echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9171 if test -x $with_build_time_tools/ld; then
9172 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9173 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
1c710c3c
DJ
9174 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9175echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9176 else
1c710c3c
DJ
9177 echo "$as_me:$LINENO: result: no" >&5
9178echo "${ECHO_T}no" >&6
d1f8db0c 9179 fi
e8b05380
PB
9180 elif test $build != $host && test $have_gcc_for_target = yes; then
9181 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9182 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9183 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9184 fi
e8b05380 9185fi
3e19841a 9186if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9187 # Extract the first word of "ld", so it can be a program name with args.
9188set dummy ld; ac_word=$2
1c710c3c
DJ
9189echo "$as_me:$LINENO: checking for $ac_word" >&5
9190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9191if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9193else
1c710c3c
DJ
9194 case $LD_FOR_TARGET in
9195 [\\/]* | ?:[\\/]*)
e8b05380
PB
9196 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9197 ;;
e8b05380 9198 *)
1c710c3c
DJ
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200for as_dir in $gcc_cv_tool_dirs
9201do
9202 IFS=$as_save_IFS
9203 test -z "$as_dir" && as_dir=.
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9208 break 2
9209 fi
9210done
9211done
9212
e8b05380
PB
9213 ;;
9214esac
4de997d1 9215fi
1c710c3c
DJ
9216LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9217
e8b05380 9218if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
9219 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9220echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9221else
1c710c3c
DJ
9222 echo "$as_me:$LINENO: result: no" >&5
9223echo "${ECHO_T}no" >&6
4de997d1 9224fi
2693c0b0 9225
e8b05380
PB
9226fi
9227if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9228
9229
9230if test -n "$LD_FOR_TARGET"; then
9231 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9232elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9233 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9234fi
9235
9236if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9237 for ncn_progname in ld; do
9238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_progname}; ac_word=$2
9240echo "$as_me:$LINENO: checking for $ac_word" >&5
9241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9242if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245 if test -n "$LD_FOR_TARGET"; then
9246 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9247else
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_LD_FOR_TARGET="${ncn_progname}"
9256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260done
9261
9262fi
9263fi
9264LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9265if test -n "$LD_FOR_TARGET"; then
9266 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9267echo "${ECHO_T}$LD_FOR_TARGET" >&6
9268else
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
9271fi
9272
9273 done
9274fi
9275
9276if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9277 for ncn_progname in ld; do
1c710c3c
DJ
9278 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9279echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9280 if test -x $with_build_time_tools/${ncn_progname}; then
9281 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9282 echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6
e8b05380
PB
9284 break
9285 else
1c710c3c
DJ
9286 echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6
e8b05380
PB
9288 fi
9289 done
ca9f4b81
AO
9290fi
9291
e8b05380
PB
9292if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9293 for ncn_progname in ld; do
9294 if test -n "$ncn_target_tool_prefix"; then
9295 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9296set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9297echo "$as_me:$LINENO: checking for $ac_word" >&5
9298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9299if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9301else
4de997d1
PB
9302 if test -n "$LD_FOR_TARGET"; then
9303 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9304else
1c710c3c
DJ
9305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306for as_dir in $PATH
9307do
9308 IFS=$as_save_IFS
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
9311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9312 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9314 break 2
9315 fi
9316done
9317done
9318
ca9f4b81
AO
9319fi
9320fi
1c710c3c 9321LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9322if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
9323 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9324echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9325else
1c710c3c
DJ
9326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
ca9f4b81
AO
9328fi
9329
e8b05380
PB
9330 fi
9331 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9333set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9334echo "$as_me:$LINENO: checking for $ac_word" >&5
9335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9336if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9338else
2693c0b0
PB
9339 if test -n "$LD_FOR_TARGET"; then
9340 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9341else
1c710c3c
DJ
9342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343for as_dir in $PATH
9344do
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9349 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353done
9354done
9355
ca9f4b81
AO
9356fi
9357fi
1c710c3c 9358LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9359if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
9360 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9361echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9362else
1c710c3c
DJ
9363 echo "$as_me:$LINENO: result: no" >&5
9364echo "${ECHO_T}no" >&6
ca9f4b81 9365fi
1c710c3c 9366
e8b05380
PB
9367 fi
9368 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9369 done
9370fi
1c710c3c 9371
2693c0b0
PB
9372if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9373 set dummy ld
9374 if test $build = $target ; then
9375 LD_FOR_TARGET="$2"
ca9f4b81 9376 else
2693c0b0 9377 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9378 fi
ca9f4b81
AO
9379fi
9380
d1f8db0c
PB
9381else
9382 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9383fi
9384
9385
9386
9387
9388if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9389 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9390 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9391echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9392 if test -x $with_build_time_tools/lipo; then
9393 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9394 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
1c710c3c
DJ
9395 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9396echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9397 else
1c710c3c
DJ
9398 echo "$as_me:$LINENO: result: no" >&5
9399echo "${ECHO_T}no" >&6
d1f8db0c 9400 fi
e8b05380
PB
9401 elif test $build != $host && test $have_gcc_for_target = yes; then
9402 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9403 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
9404 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9405 fi
9406fi
278a7a38
AO
9407if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9408 # Extract the first word of "lipo", so it can be a program name with args.
9409set dummy lipo; ac_word=$2
9410echo "$as_me:$LINENO: checking for $ac_word" >&5
9411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9412if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414else
9415 case $LIPO_FOR_TARGET in
9416 [\\/]* | ?:[\\/]*)
9417 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9418 ;;
9419 *)
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421for as_dir in $gcc_cv_tool_dirs
9422do
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9430 fi
9431done
9432done
9433
9434 ;;
9435esac
9436fi
9437LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9438
9439if test -n "$LIPO_FOR_TARGET"; then
9440 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9441echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9442else
9443 echo "$as_me:$LINENO: result: no" >&5
9444echo "${ECHO_T}no" >&6
9445fi
9446
9447fi
9448if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9449
9450
9451if test -n "$LIPO_FOR_TARGET"; then
9452 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9453elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9454 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9455fi
9456
9457if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9458 for ncn_progname in lipo; do
9459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9460set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9461echo "$as_me:$LINENO: checking for $ac_word" >&5
9462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9463if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9464 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9465else
278a7a38
AO
9466 if test -n "$LIPO_FOR_TARGET"; then
9467 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9468else
9469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470for as_dir in $PATH
1c710c3c
DJ
9471do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9476 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9479 fi
9480done
9481done
9482
e8b05380 9483fi
278a7a38
AO
9484fi
9485LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9486if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
9487 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9488echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9489else
1c710c3c
DJ
9490 echo "$as_me:$LINENO: result: no" >&5
9491echo "${ECHO_T}no" >&6
e8b05380
PB
9492fi
9493
278a7a38 9494 done
e8b05380 9495fi
278a7a38
AO
9496
9497if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9498 for ncn_progname in lipo; do
1c710c3c
DJ
9499 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9500echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9501 if test -x $with_build_time_tools/${ncn_progname}; then
9502 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9503 echo "$as_me:$LINENO: result: yes" >&5
9504echo "${ECHO_T}yes" >&6
e8b05380
PB
9505 break
9506 else
1c710c3c
DJ
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
e8b05380
PB
9509 fi
9510 done
9511fi
9512
9513if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9514 for ncn_progname in lipo; do
9515 if test -n "$ncn_target_tool_prefix"; then
9516 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9517set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9518echo "$as_me:$LINENO: checking for $ac_word" >&5
9519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9520if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9522else
9523 if test -n "$LIPO_FOR_TARGET"; then
9524 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9525else
1c710c3c
DJ
9526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527for as_dir in $PATH
9528do
9529 IFS=$as_save_IFS
9530 test -z "$as_dir" && as_dir=.
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9533 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9535 break 2
9536 fi
9537done
9538done
9539
040b1c5a
GK
9540fi
9541fi
1c710c3c 9542LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9543if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
9544 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9545echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9546else
1c710c3c
DJ
9547 echo "$as_me:$LINENO: result: no" >&5
9548echo "${ECHO_T}no" >&6
040b1c5a
GK
9549fi
9550
e8b05380
PB
9551 fi
9552 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9554set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9555echo "$as_me:$LINENO: checking for $ac_word" >&5
9556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9557if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9559else
9560 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9561 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9562else
1c710c3c
DJ
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9570 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 break 2
9573 fi
9574done
9575done
9576
040b1c5a
GK
9577fi
9578fi
1c710c3c 9579LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9580if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
9581 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9582echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9583else
1c710c3c
DJ
9584 echo "$as_me:$LINENO: result: no" >&5
9585echo "${ECHO_T}no" >&6
040b1c5a 9586fi
1c710c3c 9587
e8b05380
PB
9588 fi
9589 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9590 done
9591fi
1c710c3c 9592
040b1c5a
GK
9593if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9594 set dummy lipo
9595 if test $build = $target ; then
9596 LIPO_FOR_TARGET="$2"
9597 else
9598 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9599 fi
9600fi
9601
d1f8db0c
PB
9602else
9603 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9604fi
9605
9606
9607
9608
9609if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9610 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9611 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9612echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9613 if test -x $with_build_time_tools/nm; then
9614 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9615 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
1c710c3c
DJ
9616 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9617echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9618 else
1c710c3c
DJ
9619 echo "$as_me:$LINENO: result: no" >&5
9620echo "${ECHO_T}no" >&6
d1f8db0c 9621 fi
e8b05380
PB
9622 elif test $build != $host && test $have_gcc_for_target = yes; then
9623 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9624 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
9625 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9626 fi
9627fi
3e19841a 9628if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9629 # Extract the first word of "nm", so it can be a program name with args.
9630set dummy nm; ac_word=$2
1c710c3c
DJ
9631echo "$as_me:$LINENO: checking for $ac_word" >&5
9632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9633if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9635else
1c710c3c
DJ
9636 case $NM_FOR_TARGET in
9637 [\\/]* | ?:[\\/]*)
e8b05380
PB
9638 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9639 ;;
e8b05380 9640 *)
1c710c3c
DJ
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $gcc_cv_tool_dirs
9643do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652done
9653done
9654
e8b05380
PB
9655 ;;
9656esac
9657fi
1c710c3c
DJ
9658NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9659
e8b05380 9660if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
9661 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9662echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9663else
1c710c3c
DJ
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
e8b05380
PB
9666fi
9667
9668fi
9669if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9670
9671
9672if test -n "$NM_FOR_TARGET"; then
9673 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9674elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9675 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9676fi
9677
9678if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9679 for ncn_progname in nm; do
9680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9681set dummy ${ncn_progname}; ac_word=$2
9682echo "$as_me:$LINENO: checking for $ac_word" >&5
9683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9684if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687 if test -n "$NM_FOR_TARGET"; then
9688 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9689else
9690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691for as_dir in $PATH
9692do
9693 IFS=$as_save_IFS
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9697 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9699 break 2
9700 fi
9701done
9702done
9703
9704fi
9705fi
9706NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9707if test -n "$NM_FOR_TARGET"; then
9708 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9709echo "${ECHO_T}$NM_FOR_TARGET" >&6
9710else
9711 echo "$as_me:$LINENO: result: no" >&5
9712echo "${ECHO_T}no" >&6
9713fi
9714
9715 done
9716fi
9717
9718if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9719 for ncn_progname in nm; do
1c710c3c
DJ
9720 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9721echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9722 if test -x $with_build_time_tools/${ncn_progname}; then
9723 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9724 echo "$as_me:$LINENO: result: yes" >&5
9725echo "${ECHO_T}yes" >&6
e8b05380
PB
9726 break
9727 else
1c710c3c
DJ
9728 echo "$as_me:$LINENO: result: no" >&5
9729echo "${ECHO_T}no" >&6
e8b05380
PB
9730 fi
9731 done
9732fi
9733
9734if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9735 for ncn_progname in nm; do
9736 if test -n "$ncn_target_tool_prefix"; then
9737 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9738set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9739echo "$as_me:$LINENO: checking for $ac_word" >&5
9740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9741if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9743else
4de997d1
PB
9744 if test -n "$NM_FOR_TARGET"; then
9745 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9746else
1c710c3c
DJ
9747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748for as_dir in $PATH
9749do
9750 IFS=$as_save_IFS
9751 test -z "$as_dir" && as_dir=.
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9754 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 break 2
9757 fi
9758done
9759done
9760
ca9f4b81
AO
9761fi
9762fi
1c710c3c 9763NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 9764if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
9765 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9766echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9767else
1c710c3c
DJ
9768 echo "$as_me:$LINENO: result: no" >&5
9769echo "${ECHO_T}no" >&6
ca9f4b81
AO
9770fi
9771
e8b05380
PB
9772 fi
9773 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9775set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9776echo "$as_me:$LINENO: checking for $ac_word" >&5
9777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9778if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9780else
2693c0b0
PB
9781 if test -n "$NM_FOR_TARGET"; then
9782 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9783else
1c710c3c
DJ
9784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785for as_dir in $PATH
9786do
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9791 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 break 2
9794 fi
9795done
9796done
9797
ca9f4b81
AO
9798fi
9799fi
1c710c3c 9800NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 9801if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
9802 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9803echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9804else
1c710c3c
DJ
9805 echo "$as_me:$LINENO: result: no" >&5
9806echo "${ECHO_T}no" >&6
ca9f4b81 9807fi
1c710c3c 9808
e8b05380
PB
9809 fi
9810 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9811 done
9812fi
1c710c3c 9813
2693c0b0
PB
9814if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9815 set dummy nm
9816 if test $build = $target ; then
9817 NM_FOR_TARGET="$2"
ca9f4b81 9818 else
2693c0b0 9819 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9820 fi
ca9f4b81
AO
9821fi
9822
d1f8db0c
PB
9823else
9824 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
9825fi
9826
9827
9828
9829
9830if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9831 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9832 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9833echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9834 if test -x $with_build_time_tools/objdump; then
9835 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9836 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
1c710c3c
DJ
9837 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9838echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 9839 else
1c710c3c
DJ
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
d1f8db0c 9842 fi
e8b05380
PB
9843 elif test $build != $host && test $have_gcc_for_target = yes; then
9844 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
9845 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
9846 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9847 fi
9848fi
3e19841a 9849if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9850 # Extract the first word of "objdump", so it can be a program name with args.
9851set dummy objdump; ac_word=$2
1c710c3c
DJ
9852echo "$as_me:$LINENO: checking for $ac_word" >&5
9853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9854if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9856else
1c710c3c
DJ
9857 case $OBJDUMP_FOR_TARGET in
9858 [\\/]* | ?:[\\/]*)
e8b05380
PB
9859 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
9860 ;;
e8b05380 9861 *)
1c710c3c
DJ
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863for as_dir in $gcc_cv_tool_dirs
9864do
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9869 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 break 2
9872 fi
9873done
9874done
9875
e8b05380
PB
9876 ;;
9877esac
9878fi
1c710c3c
DJ
9879OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
9880
e8b05380 9881if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
9882 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9883echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 9884else
1c710c3c
DJ
9885 echo "$as_me:$LINENO: result: no" >&5
9886echo "${ECHO_T}no" >&6
e8b05380
PB
9887fi
9888
9889fi
9890if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
9891
9892
9893if test -n "$OBJDUMP_FOR_TARGET"; then
9894 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9895elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9896 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9897fi
9898
9899if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9900 for ncn_progname in objdump; do
9901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9902set dummy ${ncn_progname}; ac_word=$2
9903echo "$as_me:$LINENO: checking for $ac_word" >&5
9904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9905if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907else
9908 if test -n "$OBJDUMP_FOR_TARGET"; then
9909 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9910else
9911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912for as_dir in $PATH
9913do
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
9919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9921 fi
9922done
9923done
9924
9925fi
9926fi
9927OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9928if test -n "$OBJDUMP_FOR_TARGET"; then
9929 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9930echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9931else
9932 echo "$as_me:$LINENO: result: no" >&5
9933echo "${ECHO_T}no" >&6
9934fi
9935
9936 done
9937fi
9938
9939if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9940 for ncn_progname in objdump; do
1c710c3c
DJ
9941 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9942echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9943 if test -x $with_build_time_tools/${ncn_progname}; then
9944 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9945 echo "$as_me:$LINENO: result: yes" >&5
9946echo "${ECHO_T}yes" >&6
e8b05380
PB
9947 break
9948 else
1c710c3c
DJ
9949 echo "$as_me:$LINENO: result: no" >&5
9950echo "${ECHO_T}no" >&6
e8b05380
PB
9951 fi
9952 done
9953fi
9954
9955if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9956 for ncn_progname in objdump; do
9957 if test -n "$ncn_target_tool_prefix"; then
9958 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9959set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9960echo "$as_me:$LINENO: checking for $ac_word" >&5
9961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9962if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
9964else
9965 if test -n "$OBJDUMP_FOR_TARGET"; then
9966 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9967else
1c710c3c
DJ
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 break 2
9978 fi
9979done
9980done
9981
d739199a
DJ
9982fi
9983fi
1c710c3c 9984OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 9985if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
9986 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9987echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 9988else
1c710c3c
DJ
9989 echo "$as_me:$LINENO: result: no" >&5
9990echo "${ECHO_T}no" >&6
d739199a
DJ
9991fi
9992
e8b05380
PB
9993 fi
9994 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
9995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 9996set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9997echo "$as_me:$LINENO: checking for $ac_word" >&5
9998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9999if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10001else
10002 if test -n "$OBJDUMP_FOR_TARGET"; then
10003 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10004else
1c710c3c
DJ
10005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006for as_dir in $PATH
10007do
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10015 fi
10016done
10017done
10018
d739199a
DJ
10019fi
10020fi
1c710c3c 10021OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10022if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
10023 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10024echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10025else
1c710c3c
DJ
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
d739199a 10028fi
1c710c3c 10029
e8b05380
PB
10030 fi
10031 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10032 done
10033fi
1c710c3c 10034
d739199a
DJ
10035if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10036 set dummy objdump
10037 if test $build = $target ; then
10038 OBJDUMP_FOR_TARGET="$2"
10039 else
10040 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10041 fi
10042fi
10043
d1f8db0c
PB
10044else
10045 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10046fi
10047
10048
10049
10050
10051if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10052 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
10053 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10054echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10055 if test -x $with_build_time_tools/ranlib; then
10056 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10057 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
1c710c3c
DJ
10058 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10059echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10060 else
1c710c3c
DJ
10061 echo "$as_me:$LINENO: result: no" >&5
10062echo "${ECHO_T}no" >&6
d1f8db0c 10063 fi
e8b05380
PB
10064 elif test $build != $host && test $have_gcc_for_target = yes; then
10065 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10066 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10067 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10068 fi
10069fi
3e19841a 10070if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10071 # Extract the first word of "ranlib", so it can be a program name with args.
10072set dummy ranlib; ac_word=$2
1c710c3c
DJ
10073echo "$as_me:$LINENO: checking for $ac_word" >&5
10074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10075if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10077else
1c710c3c
DJ
10078 case $RANLIB_FOR_TARGET in
10079 [\\/]* | ?:[\\/]*)
e8b05380
PB
10080 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10081 ;;
e8b05380 10082 *)
1c710c3c
DJ
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $gcc_cv_tool_dirs
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_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095done
10096
e8b05380
PB
10097 ;;
10098esac
10099fi
1c710c3c
DJ
10100RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10101
e8b05380 10102if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
10103 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10104echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10105else
1c710c3c
DJ
10106 echo "$as_me:$LINENO: result: no" >&5
10107echo "${ECHO_T}no" >&6
e8b05380
PB
10108fi
10109
10110fi
10111if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10112
10113
10114if test -n "$RANLIB_FOR_TARGET"; then
10115 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10116elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10117 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10118fi
10119
10120if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10121 for ncn_progname in ranlib; do
10122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10123set dummy ${ncn_progname}; ac_word=$2
10124echo "$as_me:$LINENO: checking for $ac_word" >&5
10125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10126if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128else
10129 if test -n "$RANLIB_FOR_TARGET"; then
10130 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10131else
10132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133for as_dir in $PATH
10134do
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10139 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10142 fi
10143done
10144done
10145
10146fi
10147fi
10148RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10149if test -n "$RANLIB_FOR_TARGET"; then
10150 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10151echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10152else
10153 echo "$as_me:$LINENO: result: no" >&5
10154echo "${ECHO_T}no" >&6
10155fi
10156
10157 done
10158fi
10159
10160if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10161 for ncn_progname in ranlib; do
1c710c3c
DJ
10162 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10163echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10164 if test -x $with_build_time_tools/${ncn_progname}; then
10165 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
10166 echo "$as_me:$LINENO: result: yes" >&5
10167echo "${ECHO_T}yes" >&6
e8b05380
PB
10168 break
10169 else
1c710c3c
DJ
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
e8b05380
PB
10172 fi
10173 done
10174fi
10175
10176if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10177 for ncn_progname in ranlib; do
10178 if test -n "$ncn_target_tool_prefix"; then
10179 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10180set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
10181echo "$as_me:$LINENO: checking for $ac_word" >&5
10182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10183if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10185else
4de997d1
PB
10186 if test -n "$RANLIB_FOR_TARGET"; then
10187 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10188else
1c710c3c
DJ
10189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10199 fi
10200done
10201done
10202
ca9f4b81
AO
10203fi
10204fi
1c710c3c 10205RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10206if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
10207 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10208echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10209else
1c710c3c
DJ
10210 echo "$as_me:$LINENO: result: no" >&5
10211echo "${ECHO_T}no" >&6
ca9f4b81
AO
10212fi
10213
e8b05380
PB
10214 fi
10215 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10217set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
10218echo "$as_me:$LINENO: checking for $ac_word" >&5
10219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10220if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10222else
2693c0b0
PB
10223 if test -n "$RANLIB_FOR_TARGET"; then
10224 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10225else
1c710c3c
DJ
10226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227for as_dir in $PATH
10228do
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10236 fi
10237done
10238done
10239
ca9f4b81
AO
10240fi
10241fi
1c710c3c 10242RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10243if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
10244 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10245echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10246else
1c710c3c
DJ
10247 echo "$as_me:$LINENO: result: no" >&5
10248echo "${ECHO_T}no" >&6
ca9f4b81 10249fi
1c710c3c 10250
e8b05380
PB
10251 fi
10252 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10253 done
10254fi
1c710c3c 10255
e8b05380
PB
10256if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10257 set dummy ranlib
10258 if test $build = $target ; then
10259 RANLIB_FOR_TARGET="$2"
10260 else
10261 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10262 fi
e8b05380 10263fi
2693c0b0 10264
d1f8db0c
PB
10265else
10266 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10267fi
10268
e8b05380
PB
10269
10270
10271
10272if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10273 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
10274 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10275echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10276 if test -x $with_build_time_tools/strip; then
10277 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10278 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
1c710c3c
DJ
10279 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10280echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10281 else
1c710c3c
DJ
10282 echo "$as_me:$LINENO: result: no" >&5
10283echo "${ECHO_T}no" >&6
d1f8db0c 10284 fi
e8b05380
PB
10285 elif test $build != $host && test $have_gcc_for_target = yes; then
10286 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10287 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10288 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10289 fi
10290fi
3e19841a 10291if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10292 # Extract the first word of "strip", so it can be a program name with args.
10293set dummy strip; ac_word=$2
1c710c3c
DJ
10294echo "$as_me:$LINENO: checking for $ac_word" >&5
10295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10296if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10298else
1c710c3c
DJ
10299 case $STRIP_FOR_TARGET in
10300 [\\/]* | ?:[\\/]*)
e8b05380
PB
10301 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10302 ;;
e8b05380 10303 *)
1c710c3c
DJ
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305for as_dir in $gcc_cv_tool_dirs
10306do
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10311 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10314 fi
10315done
10316done
10317
e8b05380
PB
10318 ;;
10319esac
10320fi
1c710c3c
DJ
10321STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10322
e8b05380 10323if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10324 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10325echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10326else
1c710c3c
DJ
10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
e8b05380
PB
10329fi
10330
10331fi
10332if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10333
10334
10335if test -n "$STRIP_FOR_TARGET"; then
10336 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10337elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10338 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10339fi
10340
10341if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10342 for ncn_progname in strip; do
10343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10344set dummy ${ncn_progname}; ac_word=$2
10345echo "$as_me:$LINENO: checking for $ac_word" >&5
10346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10347if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349else
10350 if test -n "$STRIP_FOR_TARGET"; then
10351 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10352else
10353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354for as_dir in $PATH
10355do
10356 IFS=$as_save_IFS
10357 test -z "$as_dir" && as_dir=.
10358 for ac_exec_ext in '' $ac_executable_extensions; do
10359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10360 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10362 break 2
10363 fi
10364done
10365done
10366
10367fi
10368fi
10369STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10370if test -n "$STRIP_FOR_TARGET"; then
10371 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10372echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10373else
10374 echo "$as_me:$LINENO: result: no" >&5
10375echo "${ECHO_T}no" >&6
10376fi
10377
10378 done
10379fi
10380
10381if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10382 for ncn_progname in strip; do
1c710c3c
DJ
10383 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10384echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10385 if test -x $with_build_time_tools/${ncn_progname}; then
10386 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
10387 echo "$as_me:$LINENO: result: yes" >&5
10388echo "${ECHO_T}yes" >&6
e8b05380
PB
10389 break
10390 else
1c710c3c
DJ
10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
e8b05380
PB
10393 fi
10394 done
10395fi
10396
10397if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10398 for ncn_progname in strip; do
10399 if test -n "$ncn_target_tool_prefix"; then
10400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10401set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
10402echo "$as_me:$LINENO: checking for $ac_word" >&5
10403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10404if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10406else
10407 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10408 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422done
10423
040b1c5a
GK
10424fi
10425fi
1c710c3c 10426STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10427if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10428 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10429echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10430else
1c710c3c
DJ
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
040b1c5a
GK
10433fi
10434
e8b05380
PB
10435 fi
10436 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10438set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
10439echo "$as_me:$LINENO: checking for $ac_word" >&5
10440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10441if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10443else
10444 if test -n "$STRIP_FOR_TARGET"; then
10445 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10446else
1c710c3c
DJ
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10457 fi
10458done
10459done
10460
040b1c5a
GK
10461fi
10462fi
1c710c3c 10463STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10464if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10465 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10466echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10467else
1c710c3c
DJ
10468 echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
040b1c5a 10470fi
1c710c3c 10471
e8b05380
PB
10472 fi
10473 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10474 done
10475fi
1c710c3c 10476
040b1c5a
GK
10477if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10478 set dummy strip
10479 if test $build = $target ; then
10480 STRIP_FOR_TARGET="$2"
10481 else
10482 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10483 fi
10484fi
10485
d1f8db0c
PB
10486else
10487 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10488fi
10489
10490
10491
10492
10493if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10494 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
10495 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10496echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10497 if test -x $with_build_time_tools/windres; then
10498 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10499 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
1c710c3c
DJ
10500 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10501echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10502 else
1c710c3c
DJ
10503 echo "$as_me:$LINENO: result: no" >&5
10504echo "${ECHO_T}no" >&6
d1f8db0c 10505 fi
e8b05380
PB
10506 elif test $build != $host && test $have_gcc_for_target = yes; then
10507 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10508 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
10509 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10510 fi
10511fi
3e19841a 10512if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10513 # Extract the first word of "windres", so it can be a program name with args.
10514set dummy windres; ac_word=$2
1c710c3c
DJ
10515echo "$as_me:$LINENO: checking for $ac_word" >&5
10516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10517if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10519else
1c710c3c
DJ
10520 case $WINDRES_FOR_TARGET in
10521 [\\/]* | ?:[\\/]*)
e8b05380
PB
10522 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10523 ;;
e8b05380 10524 *)
1c710c3c
DJ
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $gcc_cv_tool_dirs
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536done
10537done
10538
e8b05380
PB
10539 ;;
10540esac
10541fi
1c710c3c
DJ
10542WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10543
e8b05380 10544if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
10545 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10546echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10547else
1c710c3c
DJ
10548 echo "$as_me:$LINENO: result: no" >&5
10549echo "${ECHO_T}no" >&6
e8b05380
PB
10550fi
10551
10552fi
10553if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10554
10555
10556if test -n "$WINDRES_FOR_TARGET"; then
10557 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10558elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10559 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10560fi
10561
10562if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10563 for ncn_progname in windres; do
10564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10565set dummy ${ncn_progname}; ac_word=$2
10566echo "$as_me:$LINENO: checking for $ac_word" >&5
10567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10568if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570else
10571 if test -n "$WINDRES_FOR_TARGET"; then
10572 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10573else
10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10581 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585done
10586done
10587
10588fi
10589fi
10590WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10591if test -n "$WINDRES_FOR_TARGET"; then
10592 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10593echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10594else
10595 echo "$as_me:$LINENO: result: no" >&5
10596echo "${ECHO_T}no" >&6
10597fi
10598
10599 done
10600fi
10601
10602if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10603 for ncn_progname in windres; do
1c710c3c
DJ
10604 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10605echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10606 if test -x $with_build_time_tools/${ncn_progname}; then
10607 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
10608 echo "$as_me:$LINENO: result: yes" >&5
10609echo "${ECHO_T}yes" >&6
e8b05380
PB
10610 break
10611 else
1c710c3c
DJ
10612 echo "$as_me:$LINENO: result: no" >&5
10613echo "${ECHO_T}no" >&6
e8b05380
PB
10614 fi
10615 done
10616fi
10617
10618if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10619 for ncn_progname in windres; do
10620 if test -n "$ncn_target_tool_prefix"; then
10621 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10622set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
10623echo "$as_me:$LINENO: checking for $ac_word" >&5
10624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10625if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10627else
4de997d1
PB
10628 if test -n "$WINDRES_FOR_TARGET"; then
10629 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10630else
1c710c3c
DJ
10631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632for as_dir in $PATH
10633do
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10638 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10641 fi
10642done
10643done
10644
ca9f4b81
AO
10645fi
10646fi
1c710c3c 10647WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10648if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
10649 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10650echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10651else
1c710c3c
DJ
10652 echo "$as_me:$LINENO: result: no" >&5
10653echo "${ECHO_T}no" >&6
ca9f4b81
AO
10654fi
10655
e8b05380
PB
10656 fi
10657 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10659set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
10660echo "$as_me:$LINENO: checking for $ac_word" >&5
10661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10662if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10664else
2693c0b0
PB
10665 if test -n "$WINDRES_FOR_TARGET"; then
10666 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10667else
1c710c3c
DJ
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680done
10681
ca9f4b81
AO
10682fi
10683fi
1c710c3c 10684WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10685if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
10686 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10687echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10688else
1c710c3c
DJ
10689 echo "$as_me:$LINENO: result: no" >&5
10690echo "${ECHO_T}no" >&6
ca9f4b81 10691fi
1c710c3c 10692
e8b05380
PB
10693 fi
10694 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10695 done
10696fi
1c710c3c 10697
2693c0b0
PB
10698if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10699 set dummy windres
10700 if test $build = $target ; then
10701 WINDRES_FOR_TARGET="$2"
ca9f4b81 10702 else
2693c0b0 10703 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10704 fi
ca9f4b81
AO
10705fi
10706
d1f8db0c
PB
10707else
10708 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10709fi
10710
4977bab6 10711
2abefe3d
PB
10712RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
10713
1c710c3c
DJ
10714echo "$as_me:$LINENO: checking where to find the target ar" >&5
10715echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 10716if test "x${build}" != "x${host}" ; then
e8b05380
PB
10717 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10718 # We already found the complete path
1c710c3c
DJ
10719 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
10720echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
e8b05380
PB
10721 else
10722 # Canadian cross, just use what we found
1c710c3c
DJ
10723 echo "$as_me:$LINENO: result: pre-installed" >&5
10724echo "${ECHO_T}pre-installed" >&6
e8b05380 10725 fi
2abefe3d
PB
10726else
10727 ok=yes
10728 case " ${configdirs} " in
10729 *" binutils "*) ;;
10730 *) ok=no ;;
10731 esac
1c710c3c 10732
2abefe3d
PB
10733 if test $ok = yes; then
10734 # An in-tree tool is available and we can use it
10735 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
1c710c3c
DJ
10736 echo "$as_me:$LINENO: result: just compiled" >&5
10737echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10738 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10739 # We already found the complete path
1c710c3c
DJ
10740 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
10741echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2abefe3d
PB
10742 elif test "x$target" = "x$host"; then
10743 # We can use an host tool
10744 AR_FOR_TARGET='$(AR)'
1c710c3c
DJ
10745 echo "$as_me:$LINENO: result: host tool" >&5
10746echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10747 else
10748 # We need a cross tool
1c710c3c
DJ
10749 echo "$as_me:$LINENO: result: pre-installed" >&5
10750echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10751 fi
10752fi
0b0dc272 10753
1c710c3c
DJ
10754echo "$as_me:$LINENO: checking where to find the target as" >&5
10755echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 10756if test "x${build}" != "x${host}" ; then
e8b05380
PB
10757 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10758 # We already found the complete path
1c710c3c
DJ
10759 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
10760echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
e8b05380
PB
10761 else
10762 # Canadian cross, just use what we found
1c710c3c
DJ
10763 echo "$as_me:$LINENO: result: pre-installed" >&5
10764echo "${ECHO_T}pre-installed" >&6
e8b05380 10765 fi
2abefe3d
PB
10766else
10767 ok=yes
10768 case " ${configdirs} " in
10769 *" gas "*) ;;
10770 *) ok=no ;;
10771 esac
1c710c3c 10772
2abefe3d
PB
10773 if test $ok = yes; then
10774 # An in-tree tool is available and we can use it
10775 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
1c710c3c
DJ
10776 echo "$as_me:$LINENO: result: just compiled" >&5
10777echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10778 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10779 # We already found the complete path
1c710c3c
DJ
10780 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
10781echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2abefe3d
PB
10782 elif test "x$target" = "x$host"; then
10783 # We can use an host tool
10784 AS_FOR_TARGET='$(AS)'
1c710c3c
DJ
10785 echo "$as_me:$LINENO: result: host tool" >&5
10786echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10787 else
10788 # We need a cross tool
1c710c3c
DJ
10789 echo "$as_me:$LINENO: result: pre-installed" >&5
10790echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10791 fi
10792fi
0b0dc272 10793
1c710c3c
DJ
10794echo "$as_me:$LINENO: checking where to find the target cc" >&5
10795echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 10796if test "x${build}" != "x${host}" ; then
e8b05380
PB
10797 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10798 # We already found the complete path
1c710c3c
DJ
10799 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
10800echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
e8b05380
PB
10801 else
10802 # Canadian cross, just use what we found
1c710c3c
DJ
10803 echo "$as_me:$LINENO: result: pre-installed" >&5
10804echo "${ECHO_T}pre-installed" >&6
e8b05380 10805 fi
2abefe3d
PB
10806else
10807 ok=yes
10808 case " ${configdirs} " in
10809 *" gcc "*) ;;
10810 *) ok=no ;;
10811 esac
1c710c3c 10812
2abefe3d
PB
10813 if test $ok = yes; then
10814 # An in-tree tool is available and we can use it
10815 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
10816 echo "$as_me:$LINENO: result: just compiled" >&5
10817echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10818 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10819 # We already found the complete path
1c710c3c
DJ
10820 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
10821echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2abefe3d
PB
10822 elif test "x$target" = "x$host"; then
10823 # We can use an host tool
10824 CC_FOR_TARGET='$(CC)'
1c710c3c
DJ
10825 echo "$as_me:$LINENO: result: host tool" >&5
10826echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10827 else
10828 # We need a cross tool
1c710c3c
DJ
10829 echo "$as_me:$LINENO: result: pre-installed" >&5
10830echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10831 fi
10832fi
0b0dc272 10833
1c710c3c
DJ
10834echo "$as_me:$LINENO: checking where to find the target c++" >&5
10835echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 10836if test "x${build}" != "x${host}" ; then
e8b05380
PB
10837 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10838 # We already found the complete path
1c710c3c
DJ
10839 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
10840echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
e8b05380
PB
10841 else
10842 # Canadian cross, just use what we found
1c710c3c
DJ
10843 echo "$as_me:$LINENO: result: pre-installed" >&5
10844echo "${ECHO_T}pre-installed" >&6
e8b05380 10845 fi
2abefe3d
PB
10846else
10847 ok=yes
10848 case " ${configdirs} " in
10849 *" gcc "*) ;;
10850 *) ok=no ;;
10851 esac
10852 case ,${enable_languages}, in
10853 *,c++,*) ;;
10854 *) ok=no ;;
10855 esac
10856 if test $ok = yes; then
10857 # An in-tree tool is available and we can use it
10858 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'
1c710c3c
DJ
10859 echo "$as_me:$LINENO: result: just compiled" >&5
10860echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10861 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10862 # We already found the complete path
1c710c3c
DJ
10863 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
10864echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2abefe3d
PB
10865 elif test "x$target" = "x$host"; then
10866 # We can use an host tool
10867 CXX_FOR_TARGET='$(CXX)'
1c710c3c
DJ
10868 echo "$as_me:$LINENO: result: host tool" >&5
10869echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10870 else
10871 # We need a cross tool
1c710c3c
DJ
10872 echo "$as_me:$LINENO: result: pre-installed" >&5
10873echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10874 fi
10875fi
0b0dc272 10876
1c710c3c
DJ
10877echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
10878echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 10879if test "x${build}" != "x${host}" ; then
e8b05380
PB
10880 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10881 # We already found the complete path
1c710c3c
DJ
10882 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
10883echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
e8b05380
PB
10884 else
10885 # Canadian cross, just use what we found
1c710c3c
DJ
10886 echo "$as_me:$LINENO: result: pre-installed" >&5
10887echo "${ECHO_T}pre-installed" >&6
e8b05380 10888 fi
2abefe3d
PB
10889else
10890 ok=yes
10891 case " ${configdirs} " in
10892 *" gcc "*) ;;
10893 *) ok=no ;;
10894 esac
10895 case ,${enable_languages}, in
10896 *,c++,*) ;;
10897 *) ok=no ;;
10898 esac
10899 if test $ok = yes; then
10900 # An in-tree tool is available and we can use it
10901 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'
1c710c3c
DJ
10902 echo "$as_me:$LINENO: result: just compiled" >&5
10903echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10904 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10905 # We already found the complete path
1c710c3c
DJ
10906 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
10907echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2abefe3d
PB
10908 elif test "x$target" = "x$host"; then
10909 # We can use an host tool
10910 RAW_CXX_FOR_TARGET='$(CXX)'
1c710c3c
DJ
10911 echo "$as_me:$LINENO: result: host tool" >&5
10912echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10913 else
10914 # We need a cross tool
1c710c3c
DJ
10915 echo "$as_me:$LINENO: result: pre-installed" >&5
10916echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10917 fi
10918fi
0b0dc272 10919
1c710c3c
DJ
10920echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
10921echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 10922if test "x${build}" != "x${host}" ; then
e8b05380
PB
10923 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10924 # We already found the complete path
1c710c3c
DJ
10925 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
10926echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
e8b05380
PB
10927 else
10928 # Canadian cross, just use what we found
1c710c3c
DJ
10929 echo "$as_me:$LINENO: result: pre-installed" >&5
10930echo "${ECHO_T}pre-installed" >&6
e8b05380 10931 fi
2abefe3d
PB
10932else
10933 ok=yes
10934 case " ${configdirs} " in
10935 *" binutils "*) ;;
10936 *) ok=no ;;
10937 esac
1c710c3c 10938
2abefe3d
PB
10939 if test $ok = yes; then
10940 # An in-tree tool is available and we can use it
10941 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
1c710c3c
DJ
10942 echo "$as_me:$LINENO: result: just compiled" >&5
10943echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10944 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10945 # We already found the complete path
1c710c3c
DJ
10946 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
10947echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2abefe3d
PB
10948 elif test "x$target" = "x$host"; then
10949 # We can use an host tool
10950 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
1c710c3c
DJ
10951 echo "$as_me:$LINENO: result: host tool" >&5
10952echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10953 else
10954 # We need a cross tool
1c710c3c
DJ
10955 echo "$as_me:$LINENO: result: pre-installed" >&5
10956echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10957 fi
10958fi
0b0dc272 10959
1c710c3c
DJ
10960echo "$as_me:$LINENO: checking where to find the target gcc" >&5
10961echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 10962if test "x${build}" != "x${host}" ; then
e8b05380
PB
10963 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10964 # We already found the complete path
1c710c3c
DJ
10965 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
10966echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
e8b05380
PB
10967 else
10968 # Canadian cross, just use what we found
1c710c3c
DJ
10969 echo "$as_me:$LINENO: result: pre-installed" >&5
10970echo "${ECHO_T}pre-installed" >&6
e8b05380 10971 fi
2abefe3d
PB
10972else
10973 ok=yes
10974 case " ${configdirs} " in
10975 *" gcc "*) ;;
10976 *) ok=no ;;
10977 esac
1c710c3c 10978
2abefe3d
PB
10979 if test $ok = yes; then
10980 # An in-tree tool is available and we can use it
10981 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
10982 echo "$as_me:$LINENO: result: just compiled" >&5
10983echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10984 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10985 # We already found the complete path
1c710c3c
DJ
10986 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
10987echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2abefe3d
PB
10988 elif test "x$target" = "x$host"; then
10989 # We can use an host tool
10990 GCC_FOR_TARGET='$()'
1c710c3c
DJ
10991 echo "$as_me:$LINENO: result: host tool" >&5
10992echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10993 else
10994 # We need a cross tool
1c710c3c
DJ
10995 echo "$as_me:$LINENO: result: pre-installed" >&5
10996echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10997 fi
10998fi
0b0dc272 10999
1c710c3c
DJ
11000echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11001echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11002if test "x${build}" != "x${host}" ; then
e8b05380
PB
11003 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11004 # We already found the complete path
1c710c3c
DJ
11005 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
11006echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
e8b05380
PB
11007 else
11008 # Canadian cross, just use what we found
1c710c3c
DJ
11009 echo "$as_me:$LINENO: result: pre-installed" >&5
11010echo "${ECHO_T}pre-installed" >&6
e8b05380 11011 fi
2abefe3d
PB
11012else
11013 ok=yes
11014 case " ${configdirs} " in
11015 *" gcc "*) ;;
11016 *) ok=no ;;
11017 esac
11018 case ,${enable_languages}, in
11019 *,java,*) ;;
11020 *) ok=no ;;
11021 esac
11022 if test $ok = yes; then
11023 # An in-tree tool is available and we can use it
11024 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
11025 echo "$as_me:$LINENO: result: just compiled" >&5
11026echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11027 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11028 # We already found the complete path
1c710c3c
DJ
11029 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
11030echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2abefe3d
PB
11031 elif test "x$target" = "x$host"; then
11032 # We can use an host tool
11033 GCJ_FOR_TARGET='$(GCJ)'
1c710c3c
DJ
11034 echo "$as_me:$LINENO: result: host tool" >&5
11035echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11036 else
11037 # We need a cross tool
1c710c3c
DJ
11038 echo "$as_me:$LINENO: result: pre-installed" >&5
11039echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11040 fi
11041fi
0b0dc272 11042
1c710c3c
DJ
11043echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11044echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11045if test "x${build}" != "x${host}" ; then
e8b05380
PB
11046 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11047 # We already found the complete path
1c710c3c
DJ
11048 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
11049echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
e8b05380
PB
11050 else
11051 # Canadian cross, just use what we found
1c710c3c
DJ
11052 echo "$as_me:$LINENO: result: pre-installed" >&5
11053echo "${ECHO_T}pre-installed" >&6
e8b05380 11054 fi
2abefe3d
PB
11055else
11056 ok=yes
11057 case " ${configdirs} " in
11058 *" gcc "*) ;;
11059 *) ok=no ;;
11060 esac
11061 case ,${enable_languages}, in
11062 *,fortran,*) ;;
11063 *) ok=no ;;
11064 esac
11065 if test $ok = yes; then
11066 # An in-tree tool is available and we can use it
11067 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
11068 echo "$as_me:$LINENO: result: just compiled" >&5
11069echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11070 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11071 # We already found the complete path
1c710c3c
DJ
11072 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
11073echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2abefe3d
PB
11074 elif test "x$target" = "x$host"; then
11075 # We can use an host tool
11076 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
1c710c3c
DJ
11077 echo "$as_me:$LINENO: result: host tool" >&5
11078echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11079 else
11080 # We need a cross tool
1c710c3c
DJ
11081 echo "$as_me:$LINENO: result: pre-installed" >&5
11082echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11083 fi
11084fi
0b0dc272 11085
1c710c3c
DJ
11086echo "$as_me:$LINENO: checking where to find the target ld" >&5
11087echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11088if test "x${build}" != "x${host}" ; then
e8b05380
PB
11089 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11090 # We already found the complete path
1c710c3c
DJ
11091 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
11092echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
e8b05380
PB
11093 else
11094 # Canadian cross, just use what we found
1c710c3c
DJ
11095 echo "$as_me:$LINENO: result: pre-installed" >&5
11096echo "${ECHO_T}pre-installed" >&6
e8b05380 11097 fi
2abefe3d
PB
11098else
11099 ok=yes
11100 case " ${configdirs} " in
11101 *" ld "*) ;;
11102 *) ok=no ;;
11103 esac
1c710c3c 11104
2abefe3d
PB
11105 if test $ok = yes; then
11106 # An in-tree tool is available and we can use it
11107 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
1c710c3c
DJ
11108 echo "$as_me:$LINENO: result: just compiled" >&5
11109echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11110 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11111 # We already found the complete path
1c710c3c
DJ
11112 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
11113echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2abefe3d
PB
11114 elif test "x$target" = "x$host"; then
11115 # We can use an host tool
11116 LD_FOR_TARGET='$(LD)'
1c710c3c
DJ
11117 echo "$as_me:$LINENO: result: host tool" >&5
11118echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11119 else
11120 # We need a cross tool
1c710c3c
DJ
11121 echo "$as_me:$LINENO: result: pre-installed" >&5
11122echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11123 fi
11124fi
0b0dc272 11125
1c710c3c
DJ
11126echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11127echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11128if test "x${build}" != "x${host}" ; then
e8b05380
PB
11129 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11130 # We already found the complete path
1c710c3c
DJ
11131 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
11132echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
e8b05380
PB
11133 else
11134 # Canadian cross, just use what we found
1c710c3c
DJ
11135 echo "$as_me:$LINENO: result: pre-installed" >&5
11136echo "${ECHO_T}pre-installed" >&6
e8b05380 11137 fi
2abefe3d 11138else
e8b05380
PB
11139 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11140 # We already found the complete path
1c710c3c
DJ
11141 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
11142echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
e8b05380 11143 elif test "x$target" = "x$host"; then
2abefe3d
PB
11144 # We can use an host tool
11145 LIPO_FOR_TARGET='$(LIPO)'
1c710c3c
DJ
11146 echo "$as_me:$LINENO: result: host tool" >&5
11147echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11148 else
11149 # We need a cross tool
1c710c3c
DJ
11150 echo "$as_me:$LINENO: result: pre-installed" >&5
11151echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11152 fi
11153fi
0b0dc272 11154
1c710c3c
DJ
11155echo "$as_me:$LINENO: checking where to find the target nm" >&5
11156echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11157if test "x${build}" != "x${host}" ; then
e8b05380
PB
11158 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11159 # We already found the complete path
1c710c3c
DJ
11160 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
11161echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
e8b05380
PB
11162 else
11163 # Canadian cross, just use what we found
1c710c3c
DJ
11164 echo "$as_me:$LINENO: result: pre-installed" >&5
11165echo "${ECHO_T}pre-installed" >&6
e8b05380 11166 fi
2abefe3d
PB
11167else
11168 ok=yes
11169 case " ${configdirs} " in
11170 *" binutils "*) ;;
11171 *) ok=no ;;
11172 esac
1c710c3c 11173
2abefe3d
PB
11174 if test $ok = yes; then
11175 # An in-tree tool is available and we can use it
11176 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
1c710c3c
DJ
11177 echo "$as_me:$LINENO: result: just compiled" >&5
11178echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11179 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11180 # We already found the complete path
1c710c3c
DJ
11181 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
11182echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2abefe3d
PB
11183 elif test "x$target" = "x$host"; then
11184 # We can use an host tool
11185 NM_FOR_TARGET='$(NM)'
1c710c3c
DJ
11186 echo "$as_me:$LINENO: result: host tool" >&5
11187echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11188 else
11189 # We need a cross tool
1c710c3c
DJ
11190 echo "$as_me:$LINENO: result: pre-installed" >&5
11191echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11192 fi
11193fi
0b0dc272 11194
1c710c3c
DJ
11195echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11196echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11197if test "x${build}" != "x${host}" ; then
e8b05380
PB
11198 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11199 # We already found the complete path
1c710c3c
DJ
11200 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
11201echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
e8b05380
PB
11202 else
11203 # Canadian cross, just use what we found
1c710c3c
DJ
11204 echo "$as_me:$LINENO: result: pre-installed" >&5
11205echo "${ECHO_T}pre-installed" >&6
e8b05380 11206 fi
2abefe3d
PB
11207else
11208 ok=yes
11209 case " ${configdirs} " in
11210 *" binutils "*) ;;
11211 *) ok=no ;;
11212 esac
1c710c3c 11213
2abefe3d
PB
11214 if test $ok = yes; then
11215 # An in-tree tool is available and we can use it
11216 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
1c710c3c
DJ
11217 echo "$as_me:$LINENO: result: just compiled" >&5
11218echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11219 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11220 # We already found the complete path
1c710c3c
DJ
11221 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
11222echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2abefe3d
PB
11223 elif test "x$target" = "x$host"; then
11224 # We can use an host tool
11225 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
1c710c3c
DJ
11226 echo "$as_me:$LINENO: result: host tool" >&5
11227echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11228 else
11229 # We need a cross tool
1c710c3c
DJ
11230 echo "$as_me:$LINENO: result: pre-installed" >&5
11231echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11232 fi
11233fi
0b0dc272 11234
1c710c3c
DJ
11235echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11236echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11237if test "x${build}" != "x${host}" ; then
e8b05380
PB
11238 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11239 # We already found the complete path
1c710c3c
DJ
11240 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
11241echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
e8b05380
PB
11242 else
11243 # Canadian cross, just use what we found
1c710c3c
DJ
11244 echo "$as_me:$LINENO: result: pre-installed" >&5
11245echo "${ECHO_T}pre-installed" >&6
e8b05380 11246 fi
2abefe3d
PB
11247else
11248 ok=yes
11249 case " ${configdirs} " in
11250 *" binutils "*) ;;
11251 *) ok=no ;;
11252 esac
1c710c3c 11253
2abefe3d
PB
11254 if test $ok = yes; then
11255 # An in-tree tool is available and we can use it
11256 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
1c710c3c
DJ
11257 echo "$as_me:$LINENO: result: just compiled" >&5
11258echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11259 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11260 # We already found the complete path
1c710c3c
DJ
11261 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
11262echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2abefe3d
PB
11263 elif test "x$target" = "x$host"; then
11264 # We can use an host tool
11265 RANLIB_FOR_TARGET='$(RANLIB)'
1c710c3c
DJ
11266 echo "$as_me:$LINENO: result: host tool" >&5
11267echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11268 else
11269 # We need a cross tool
1c710c3c
DJ
11270 echo "$as_me:$LINENO: result: pre-installed" >&5
11271echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11272 fi
11273fi
0b0dc272 11274
1c710c3c
DJ
11275echo "$as_me:$LINENO: checking where to find the target strip" >&5
11276echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11277if test "x${build}" != "x${host}" ; then
e8b05380
PB
11278 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11279 # We already found the complete path
1c710c3c
DJ
11280 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
11281echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
e8b05380
PB
11282 else
11283 # Canadian cross, just use what we found
1c710c3c
DJ
11284 echo "$as_me:$LINENO: result: pre-installed" >&5
11285echo "${ECHO_T}pre-installed" >&6
e8b05380 11286 fi
2abefe3d
PB
11287else
11288 ok=yes
11289 case " ${configdirs} " in
11290 *" binutils "*) ;;
11291 *) ok=no ;;
11292 esac
1c710c3c 11293
2abefe3d
PB
11294 if test $ok = yes; then
11295 # An in-tree tool is available and we can use it
11296 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
1c710c3c
DJ
11297 echo "$as_me:$LINENO: result: just compiled" >&5
11298echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11299 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11300 # We already found the complete path
1c710c3c
DJ
11301 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
11302echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2abefe3d
PB
11303 elif test "x$target" = "x$host"; then
11304 # We can use an host tool
11305 STRIP_FOR_TARGET='$(STRIP)'
1c710c3c
DJ
11306 echo "$as_me:$LINENO: result: host tool" >&5
11307echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11308 else
11309 # We need a cross tool
1c710c3c
DJ
11310 echo "$as_me:$LINENO: result: pre-installed" >&5
11311echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11312 fi
11313fi
0b0dc272 11314
1c710c3c
DJ
11315echo "$as_me:$LINENO: checking where to find the target windres" >&5
11316echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11317if test "x${build}" != "x${host}" ; then
e8b05380
PB
11318 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11319 # We already found the complete path
1c710c3c
DJ
11320 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
11321echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
e8b05380
PB
11322 else
11323 # Canadian cross, just use what we found
1c710c3c
DJ
11324 echo "$as_me:$LINENO: result: pre-installed" >&5
11325echo "${ECHO_T}pre-installed" >&6
e8b05380 11326 fi
2abefe3d
PB
11327else
11328 ok=yes
11329 case " ${configdirs} " in
11330 *" binutils "*) ;;
11331 *) ok=no ;;
11332 esac
1c710c3c 11333
2abefe3d
PB
11334 if test $ok = yes; then
11335 # An in-tree tool is available and we can use it
11336 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
1c710c3c
DJ
11337 echo "$as_me:$LINENO: result: just compiled" >&5
11338echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11339 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11340 # We already found the complete path
1c710c3c
DJ
11341 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
11342echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2abefe3d
PB
11343 elif test "x$target" = "x$host"; then
11344 # We can use an host tool
11345 WINDRES_FOR_TARGET='$(WINDRES)'
1c710c3c
DJ
11346 echo "$as_me:$LINENO: result: host tool" >&5
11347echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11348 else
11349 # We need a cross tool
1c710c3c
DJ
11350 echo "$as_me:$LINENO: result: pre-installed" >&5
11351echo "${ECHO_T}pre-installed" >&6
2abefe3d 11352 fi
671aa708 11353fi
be912515
NN
11354
11355
11356
2abefe3d 11357
0b0dc272 11358
671aa708
NN
11359# Certain tools may need extra flags.
11360AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11361RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11362NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11363
2abefe3d
PB
11364# When building target libraries, except in a Canadian cross, we use
11365# the same toolchain as the compiler we just built.
11366COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11367COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11368COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11369if test $host = $build; then
11370 case " $configdirs " in
11371 *" gcc "*)
11372 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11373 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11374 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11375 ;;
11376 esac
11377fi
11378
11379
11380
11381
11382
1c710c3c
DJ
11383echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11384echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
ee03dc5e
AO
11385# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11386if test "${enable_maintainer_mode+set}" = set; then
11387 enableval="$enable_maintainer_mode"
11388 USE_MAINTAINER_MODE=$enableval
11389else
11390 USE_MAINTAINER_MODE=no
1c710c3c
DJ
11391fi;
11392echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11393echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11394
11395
11396if test "$USE_MAINTAINER_MODE" = yes; then
11397 MAINTAINER_MODE_TRUE=
11398 MAINTAINER_MODE_FALSE='#'
11399else
11400 MAINTAINER_MODE_TRUE='#'
11401 MAINTAINER_MODE_FALSE=
1c710c3c 11402fi
ee03dc5e
AO
11403MAINT=$MAINTAINER_MODE_TRUE
11404
2805b53a
NN
11405# ---------------------
11406# GCC bootstrap support
11407# ---------------------
11408
11409# Stage specific cflags for build.
11410stage1_cflags="-g"
11411case $build in
11412 vax-*-*)
11413 case ${GCC} in
11414 yes) stage1_cflags="-g -Wa,-J" ;;
11415 *) stage1_cflags="-g -J" ;;
11416 esac ;;
2805b53a
NN
11417esac
11418
0b50988a
EB
11419# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11420if test "$GCC" = yes; then
11421 saved_CFLAGS="$CFLAGS"
11422
11423 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11424 CFLAGS="$CFLAGS -fkeep-inline-functions"
1c710c3c
DJ
11425 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11426echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
11433
11434int
11435main ()
11436{
11437
11438 ;
11439 return 0;
11440}
11441_ACEOF
11442rm -f conftest.$ac_objext
11443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11444 (eval $ac_compile) 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -z "$ac_c_werror_flag"
11452 || test ! -s conftest.err'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try='test -s conftest.$ac_objext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 echo "$as_me:$LINENO: result: yes" >&5
11465echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11466else
11467 echo "$as_me: failed program was:" >&5
11468sed 's/^/| /' conftest.$ac_ext >&5
11469
11470echo "$as_me:$LINENO: result: no" >&5
11471echo "${ECHO_T}no" >&6
11472fi
11473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
11474
11475 CFLAGS="$saved_CFLAGS"
11476fi
11477
11478
2805b53a 11479
8efea775
PB
11480# Enable --enable-checking in stage1 of the compiler.
11481# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11482if test "${enable_stage1_checking+set}" = set; then
11483 enableval="$enable_stage1_checking"
11484 stage1_checking=--enable-checking=${enable_stage1_checking}
11485else
11486 if test "x$enable_checking" = xno; then
11487 stage1_checking=--enable-checking
11488else
11489 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11490fi
1c710c3c 11491fi;
8efea775
PB
11492
11493
2805b53a 11494# Enable -Werror in bootstrap stage2 and later.
2805b53a
NN
11495# Check whether --enable-werror or --disable-werror was given.
11496if test "${enable_werror+set}" = set; then
11497 enableval="$enable_werror"
1c710c3c 11498
2805b53a 11499else
416cfb5e 11500 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 11501 enable_werror=yes
88fceb68
PB
11502else
11503 enable_werror=no
11504fi
1c710c3c 11505fi;
09a9c095
NN
11506case ${enable_werror} in
11507 yes) stage2_werror_flag="--enable-werror-always" ;;
11508 *) stage2_werror_flag="" ;;
2805b53a
NN
11509esac
11510
11511
32845532 11512# Flags needed to enable html installing and building
1c710c3c 11513
32845532
CD
11514# Check whether --with-datarootdir or --without-datarootdir was given.
11515if test "${with_datarootdir+set}" = set; then
11516 withval="$with_datarootdir"
11517 datarootdir="\${prefix}/${withval}"
11518else
11519 datarootdir="\${prefix}/share"
1c710c3c 11520fi;
32845532
CD
11521
11522
11523# Check whether --with-docdir or --without-docdir was given.
11524if test "${with_docdir+set}" = set; then
11525 withval="$with_docdir"
11526 docdir="\${prefix}/${withval}"
11527else
11528 docdir="\${datarootdir}/doc"
1c710c3c 11529fi;
32845532
CD
11530
11531
11532# Check whether --with-htmldir or --without-htmldir was given.
11533if test "${with_htmldir+set}" = set; then
11534 withval="$with_htmldir"
11535 htmldir="\${prefix}/${withval}"
11536else
11537 htmldir="\${docdir}"
1c710c3c 11538fi;
32845532
CD
11539
11540
11541
11542
11543
1c710c3c
DJ
11544 ac_config_files="$ac_config_files Makefile"
11545cat >confcache <<\_ACEOF
671aa708
NN
11546# This file is a shell script that caches the results of configure
11547# tests run on this system so they can be shared between configure
1c710c3c
DJ
11548# scripts and configure runs, see configure's option --config-cache.
11549# It is not useful on other systems. If it contains results you don't
11550# want to keep, you may remove or edit it.
671aa708 11551#
1c710c3c
DJ
11552# config.status only pays attention to the cache file if you give it
11553# the --recheck option to rerun configure.
671aa708 11554#
1c710c3c
DJ
11555# `ac_cv_env_foo' variables (set or unset) will be overridden when
11556# loading this file, other *unset* `ac_cv_foo' will be assigned the
11557# following values.
11558
11559_ACEOF
11560
671aa708
NN
11561# The following way of writing the cache mishandles newlines in values,
11562# but we know of no workaround that is simple, portable, and efficient.
11563# So, don't put newlines in cache variables' values.
11564# Ultrix sh set writes to stderr and can't be redirected directly,
11565# and sets the high bit in the cache file unless we assign to the vars.
1c710c3c
DJ
11566{
11567 (set) 2>&1 |
11568 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11569 *ac_space=\ *)
11570 # `set' does not quote correctly, so add quotes (double-quote
11571 # substitution turns \\\\ into \\, and sed turns \\ into \).
11572 sed -n \
11573 "s/'/'\\\\''/g;
11574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11575 ;;
11576 *)
11577 # `set' quotes correctly as required by POSIX, so do not add quotes.
11578 sed -n \
11579 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11580 ;;
11581 esac;
11582} |
11583 sed '
11584 t clear
11585 : clear
11586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11587 t end
11588 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11589 : end' >>confcache
11590if diff $cache_file confcache >/dev/null 2>&1; then :; else
671aa708 11591 if test -w $cache_file; then
1c710c3c
DJ
11592 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11593 cat confcache >$cache_file
671aa708
NN
11594 else
11595 echo "not updating unwritable cache $cache_file"
11596 fi
4977bab6 11597fi
671aa708 11598rm -f confcache
79c06341 11599
671aa708
NN
11600test "x$prefix" = xNONE && prefix=$ac_default_prefix
11601# Let make expand exec_prefix.
11602test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 11603
1c710c3c
DJ
11604# VPATH may cause trouble with some makes, so we remove $(srcdir),
11605# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11606# trailing colons and then remove the whole line if VPATH becomes empty
11607# (actually we leave an empty line to preserve line numbers).
671aa708 11608if test "x$srcdir" = x.; then
1c710c3c
DJ
11609 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11610s/:*\$(srcdir):*/:/;
11611s/:*\${srcdir}:*/:/;
11612s/:*@srcdir@:*/:/;
11613s/^\([^=]*=[ ]*\):*/\1/;
11614s/:*$//;
11615s/^[^=]*=[ ]*$//;
11616}'
671aa708 11617fi
79c06341 11618
671aa708
NN
11619# Transform confdefs.h into DEFS.
11620# Protect against shell expansion while executing Makefile rules.
11621# Protect against Makefile macro expansion.
1c710c3c
DJ
11622#
11623# If the first sed substitution is executed (which looks for macros that
11624# take arguments), then we branch to the quote section. Otherwise,
11625# look for a macro that doesn't take arguments.
11626cat >confdef2opt.sed <<\_ACEOF
11627t clear
11628: clear
11629s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11630t quote
11631s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11632t quote
11633d
11634: quote
11635s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11636s,\[,\\&,g
11637s,\],\\&,g
11638s,\$,$$,g
11639p
11640_ACEOF
11641# We use echo to avoid assuming a particular line-breaking character.
11642# The extra dot is to prevent the shell from consuming trailing
11643# line-breaks from the sub-command output. A line-break within
11644# single-quotes doesn't work because, if this script is created in a
11645# platform that uses two characters for line-breaks (e.g., DOS), tr
11646# would break.
11647ac_LF_and_DOT=`echo; echo .`
11648DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11649rm -f confdef2opt.sed
11650
11651
11652ac_libobjs=
11653ac_ltlibobjs=
11654for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11655 # 1. Remove the extension, and $U if already installed.
11656 ac_i=`echo "$ac_i" |
11657 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11658 # 2. Add them.
11659 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11660 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11661done
11662LIBOBJS=$ac_libobjs
fb0103e5 11663
1c710c3c 11664LTLIBOBJS=$ac_ltlibobjs
0b0dc272 11665
af71363e 11666
1c710c3c
DJ
11667
11668: ${CONFIG_STATUS=./config.status}
11669ac_clean_files_save=$ac_clean_files
11670ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11671{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11672echo "$as_me: creating $CONFIG_STATUS" >&6;}
11673cat >$CONFIG_STATUS <<_ACEOF
11674#! $SHELL
11675# Generated by $as_me.
671aa708 11676# Run this file to recreate the current configuration.
671aa708 11677# Compiler output produced by configure, useful for debugging
1c710c3c 11678# configure, is in config.log if it exists.
0b0dc272 11679
1c710c3c
DJ
11680debug=false
11681ac_cs_recheck=false
11682ac_cs_silent=false
11683SHELL=\${CONFIG_SHELL-$SHELL}
11684_ACEOF
11685
11686cat >>$CONFIG_STATUS <<\_ACEOF
11687## --------------------- ##
11688## M4sh Initialization. ##
11689## --------------------- ##
11690
11691# Be Bourne compatible
11692if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11693 emulate sh
11694 NULLCMD=:
11695 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11696 # is contrary to our usage. Disable this feature.
11697 alias -g '${1+"$@"}'='"$@"'
11698elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11699 set -o posix
11700fi
11701DUALCASE=1; export DUALCASE # for MKS sh
11702
11703# Support unset when possible.
11704if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11705 as_unset=unset
11706else
11707 as_unset=false
11708fi
11709
11710
11711# Work around bugs in pre-3.0 UWIN ksh.
11712$as_unset ENV MAIL MAILPATH
11713PS1='$ '
11714PS2='> '
11715PS4='+ '
11716
11717# NLS nuisances.
11718for as_var in \
11719 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11720 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11721 LC_TELEPHONE LC_TIME
11722do
11723 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11724 eval $as_var=C; export $as_var
11725 else
11726 $as_unset $as_var
11727 fi
11728done
11729
11730# Required to use basename.
11731if expr a : '\(a\)' >/dev/null 2>&1; then
11732 as_expr=expr
11733else
11734 as_expr=false
11735fi
11736
11737if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11738 as_basename=basename
11739else
11740 as_basename=false
11741fi
11742
11743
11744# Name of the executable.
11745as_me=`$as_basename "$0" ||
11746$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11747 X"$0" : 'X\(//\)$' \| \
11748 X"$0" : 'X\(/\)$' \| \
11749 . : '\(.\)' 2>/dev/null ||
11750echo X/"$0" |
11751 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11752 /^X\/\(\/\/\)$/{ s//\1/; q; }
11753 /^X\/\(\/\).*/{ s//\1/; q; }
11754 s/.*/./; q'`
11755
11756
11757# PATH needs CR, and LINENO needs CR and PATH.
11758# Avoid depending upon Character Ranges.
11759as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11760as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11761as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11762as_cr_digits='0123456789'
11763as_cr_alnum=$as_cr_Letters$as_cr_digits
11764
11765# The user is always right.
11766if test "${PATH_SEPARATOR+set}" != set; then
11767 echo "#! /bin/sh" >conf$$.sh
11768 echo "exit 0" >>conf$$.sh
11769 chmod +x conf$$.sh
11770 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11771 PATH_SEPARATOR=';'
11772 else
11773 PATH_SEPARATOR=:
11774 fi
11775 rm -f conf$$.sh
11776fi
11777
11778
11779 as_lineno_1=$LINENO
11780 as_lineno_2=$LINENO
11781 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11782 test "x$as_lineno_1" != "x$as_lineno_2" &&
11783 test "x$as_lineno_3" = "x$as_lineno_2" || {
11784 # Find who we are. Look in the path if we contain no path at all
11785 # relative or not.
11786 case $0 in
11787 *[\\/]* ) as_myself=$0 ;;
11788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $PATH
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11794done
11795
11796 ;;
11797 esac
11798 # We did not find ourselves, most probably we were run as `sh COMMAND'
11799 # in which case we are not to be found in the path.
11800 if test "x$as_myself" = x; then
11801 as_myself=$0
11802 fi
11803 if test ! -f "$as_myself"; then
11804 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11805echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11806 { (exit 1); exit 1; }; }
11807 fi
11808 case $CONFIG_SHELL in
11809 '')
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11812do
11813 IFS=$as_save_IFS
11814 test -z "$as_dir" && as_dir=.
11815 for as_base in sh bash ksh sh5; do
11816 case $as_dir in
11817 /*)
11818 if ("$as_dir/$as_base" -c '
11819 as_lineno_1=$LINENO
11820 as_lineno_2=$LINENO
11821 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11822 test "x$as_lineno_1" != "x$as_lineno_2" &&
11823 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11824 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11825 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11826 CONFIG_SHELL=$as_dir/$as_base
11827 export CONFIG_SHELL
11828 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11829 fi;;
11830 esac
11831 done
11832done
11833;;
11834 esac
11835
11836 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11837 # uniformly replaced by the line number. The first 'sed' inserts a
11838 # line-number line before each line; the second 'sed' does the real
11839 # work. The second script uses 'N' to pair each line-number line
11840 # with the numbered line, and appends trailing '-' during
11841 # substitution so that $LINENO is not a special case at line end.
11842 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11843 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11844 sed '=' <$as_myself |
11845 sed '
11846 N
11847 s,$,-,
11848 : loop
11849 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11850 t loop
11851 s,-$,,
11852 s,^['$as_cr_digits']*\n,,
11853 ' >$as_me.lineno &&
11854 chmod +x $as_me.lineno ||
11855 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11856echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11857 { (exit 1); exit 1; }; }
11858
11859 # Don't try to exec as it changes $[0], causing all sort of problems
11860 # (the dirname of $[0] is not the place where we might find the
11861 # original and so on. Autoconf is especially sensible to this).
11862 . ./$as_me.lineno
11863 # Exit status is that of the last command.
11864 exit
11865}
11866
11867
11868case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11869 *c*,-n*) ECHO_N= ECHO_C='
11870' ECHO_T=' ' ;;
11871 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11872 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11873esac
11874
11875if expr a : '\(a\)' >/dev/null 2>&1; then
11876 as_expr=expr
11877else
11878 as_expr=false
11879fi
11880
11881rm -f conf$$ conf$$.exe conf$$.file
11882echo >conf$$.file
11883if ln -s conf$$.file conf$$ 2>/dev/null; then
11884 # We could just check for DJGPP; but this test a) works b) is more generic
11885 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11886 if test -f conf$$.exe; then
11887 # Don't use ln at all; we don't have any links
11888 as_ln_s='cp -p'
11889 else
11890 as_ln_s='ln -s'
11891 fi
11892elif ln conf$$.file conf$$ 2>/dev/null; then
11893 as_ln_s=ln
11894else
11895 as_ln_s='cp -p'
11896fi
11897rm -f conf$$ conf$$.exe conf$$.file
11898
11899if mkdir -p . 2>/dev/null; then
11900 as_mkdir_p=:
11901else
11902 test -d ./-p && rmdir ./-p
11903 as_mkdir_p=false
11904fi
11905
11906as_executable_p="test -f"
11907
11908# Sed expression to map a string onto a valid CPP name.
11909as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11910
11911# Sed expression to map a string onto a valid variable name.
11912as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11913
11914
11915# IFS
11916# We need space, tab and new line, in precisely that order.
11917as_nl='
11918'
11919IFS=" $as_nl"
11920
11921# CDPATH.
11922$as_unset CDPATH
11923
11924exec 6>&1
11925
11926# Open the log real soon, to keep \$[0] and so on meaningful, and to
11927# report actual input values of CONFIG_FILES etc. instead of their
11928# values after options handling. Logging --version etc. is OK.
11929exec 5>>config.log
11930{
11931 echo
11932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11933## Running $as_me. ##
11934_ASBOX
11935} >&5
11936cat >&5 <<_CSEOF
11937
11938This file was extended by $as_me, which was
11939generated by GNU Autoconf 2.59. Invocation command line was
11940
11941 CONFIG_FILES = $CONFIG_FILES
11942 CONFIG_HEADERS = $CONFIG_HEADERS
11943 CONFIG_LINKS = $CONFIG_LINKS
11944 CONFIG_COMMANDS = $CONFIG_COMMANDS
11945 $ $0 $@
11946
11947_CSEOF
11948echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11949echo >&5
11950_ACEOF
11951
11952# Files that config.status was made for.
11953if test -n "$ac_config_files"; then
11954 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11955fi
11956
11957if test -n "$ac_config_headers"; then
11958 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11959fi
11960
11961if test -n "$ac_config_links"; then
11962 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11963fi
11964
11965if test -n "$ac_config_commands"; then
11966 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11967fi
11968
11969cat >>$CONFIG_STATUS <<\_ACEOF
11970
11971ac_cs_usage="\
11972\`$as_me' instantiates files from templates according to the
11973current configuration.
11974
11975Usage: $0 [OPTIONS] [FILE]...
11976
11977 -h, --help print this help, then exit
11978 -V, --version print version number, then exit
11979 -q, --quiet do not print progress messages
11980 -d, --debug don't remove temporary files
11981 --recheck update $as_me by reconfiguring in the same conditions
11982 --file=FILE[:TEMPLATE]
11983 instantiate the configuration file FILE
11984
11985Configuration files:
11986$config_files
11987
11988Report bugs to <bug-autoconf@gnu.org>."
11989_ACEOF
11990
11991cat >>$CONFIG_STATUS <<_ACEOF
11992ac_cs_version="\\
11993config.status
11994configured by $0, generated by GNU Autoconf 2.59,
11995 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11996
11997Copyright (C) 2003 Free Software Foundation, Inc.
11998This config.status script is free software; the Free Software Foundation
11999gives unlimited permission to copy, distribute and modify it."
12000srcdir=$srcdir
12001INSTALL="$INSTALL"
12002_ACEOF
12003
12004cat >>$CONFIG_STATUS <<\_ACEOF
12005# If no file are specified by the user, then we need to provide default
12006# value. By we need to know if files were specified by the user.
12007ac_need_defaults=:
12008while test $# != 0
a4b9e93e 12009do
1c710c3c
DJ
12010 case $1 in
12011 --*=*)
12012 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12013 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12014 ac_shift=:
12015 ;;
12016 -*)
12017 ac_option=$1
12018 ac_optarg=$2
12019 ac_shift=shift
12020 ;;
12021 *) # This is not an option, so the user has probably given explicit
12022 # arguments.
12023 ac_option=$1
12024 ac_need_defaults=false;;
12025 esac
12026
12027 case $ac_option in
12028 # Handling of the options.
12029_ACEOF
12030cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c
DJ
12032 ac_cs_recheck=: ;;
12033 --version | --vers* | -V )
12034 echo "$ac_cs_version"; exit 0 ;;
12035 --he | --h)
12036 # Conflict between --help and --header
12037 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12038Try \`$0 --help' for more information." >&5
12039echo "$as_me: error: ambiguous option: $1
12040Try \`$0 --help' for more information." >&2;}
12041 { (exit 1); exit 1; }; };;
12042 --help | --hel | -h )
12043 echo "$ac_cs_usage"; exit 0 ;;
12044 --debug | --d* | -d )
12045 debug=: ;;
12046 --file | --fil | --fi | --f )
12047 $ac_shift
12048 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12049 ac_need_defaults=false;;
12050 --header | --heade | --head | --hea )
12051 $ac_shift
12052 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12053 ac_need_defaults=false;;
12054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12055 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12056 ac_cs_silent=: ;;
12057
12058 # This is an error.
12059 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12060Try \`$0 --help' for more information." >&5
12061echo "$as_me: error: unrecognized option: $1
12062Try \`$0 --help' for more information." >&2;}
12063 { (exit 1); exit 1; }; } ;;
12064
12065 *) ac_config_targets="$ac_config_targets $1" ;;
12066
0b0dc272 12067 esac
1c710c3c 12068 shift
0b0dc272
AM
12069done
12070
1c710c3c 12071ac_configure_extra_args=
0b0dc272 12072
1c710c3c
DJ
12073if $ac_cs_silent; then
12074 exec 6>/dev/null
12075 ac_configure_extra_args="$ac_configure_extra_args --silent"
12076fi
0b0dc272 12077
1c710c3c
DJ
12078_ACEOF
12079cat >>$CONFIG_STATUS <<_ACEOF
12080if \$ac_cs_recheck; then
12081 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12082 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12083fi
12084
12085_ACEOF
12086
12087
12088
12089
12090
12091cat >>$CONFIG_STATUS <<\_ACEOF
12092for ac_config_target in $ac_config_targets
12093do
12094 case "$ac_config_target" in
12095 # Handling of arguments.
12096 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12098echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12099 { (exit 1); exit 1; }; };;
12100 esac
12101done
12102
12103# If the user did not use the arguments to specify the items to instantiate,
12104# then the envvar interface is used. Set only those that are not.
12105# We use the long form for the default assignment because of an extremely
12106# bizarre bug on SunOS 4.1.3.
12107if $ac_need_defaults; then
12108 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12109fi
12110
12111# Have a temporary directory for convenience. Make it in the build tree
12112# simply because there is no reason to put it here, and in addition,
12113# creating and moving files from /tmp can sometimes cause problems.
12114# Create a temporary directory, and hook for its removal unless debugging.
12115$debug ||
12116{
12117 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12118 trap '{ (exit 1); exit 1; }' 1 2 13 15
12119}
12120
12121# Create a (secure) tmp directory for tmp files.
12122
12123{
12124 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12125 test -n "$tmp" && test -d "$tmp"
12126} ||
12127{
12128 tmp=./confstat$$-$RANDOM
12129 (umask 077 && mkdir $tmp)
12130} ||
12131{
12132 echo "$me: cannot create a temporary directory in ." >&2
12133 { (exit 1); exit 1; }
12134}
12135
12136_ACEOF
12137
12138cat >>$CONFIG_STATUS <<_ACEOF
12139
12140#
12141# CONFIG_FILES section.
12142#
12143
12144# No need to generate the scripts if there are no CONFIG_FILES.
12145# This happens for instance when ./config.status config.h
12146if test -n "\$CONFIG_FILES"; then
12147 # Protect against being on the right side of a sed subst in config.status.
12148 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12149 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12150s,@SHELL@,$SHELL,;t t
12151s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12152s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12153s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12154s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12155s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12156s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12157s,@exec_prefix@,$exec_prefix,;t t
12158s,@prefix@,$prefix,;t t
12159s,@program_transform_name@,$program_transform_name,;t t
12160s,@bindir@,$bindir,;t t
12161s,@sbindir@,$sbindir,;t t
12162s,@libexecdir@,$libexecdir,;t t
12163s,@datadir@,$datadir,;t t
12164s,@sysconfdir@,$sysconfdir,;t t
12165s,@sharedstatedir@,$sharedstatedir,;t t
12166s,@localstatedir@,$localstatedir,;t t
12167s,@libdir@,$libdir,;t t
12168s,@includedir@,$includedir,;t t
12169s,@oldincludedir@,$oldincludedir,;t t
12170s,@infodir@,$infodir,;t t
12171s,@mandir@,$mandir,;t t
12172s,@build_alias@,$build_alias,;t t
12173s,@host_alias@,$host_alias,;t t
12174s,@target_alias@,$target_alias,;t t
12175s,@DEFS@,$DEFS,;t t
12176s,@ECHO_C@,$ECHO_C,;t t
12177s,@ECHO_N@,$ECHO_N,;t t
12178s,@ECHO_T@,$ECHO_T,;t t
12179s,@LIBS@,$LIBS,;t t
12180s,@build@,$build,;t t
12181s,@build_cpu@,$build_cpu,;t t
12182s,@build_vendor@,$build_vendor,;t t
12183s,@build_os@,$build_os,;t t
12184s,@build_noncanonical@,$build_noncanonical,;t t
12185s,@host_noncanonical@,$host_noncanonical,;t t
12186s,@target_noncanonical@,$target_noncanonical,;t t
12187s,@host@,$host,;t t
12188s,@host_cpu@,$host_cpu,;t t
12189s,@host_vendor@,$host_vendor,;t t
12190s,@host_os@,$host_os,;t t
12191s,@target@,$target,;t t
12192s,@target_cpu@,$target_cpu,;t t
12193s,@target_vendor@,$target_vendor,;t t
12194s,@target_os@,$target_os,;t t
12195s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12196s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12197s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12198s,@LN@,$LN,;t t
12199s,@LN_S@,$LN_S,;t t
12200s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12201s,@build_libsubdir@,$build_libsubdir,;t t
12202s,@build_subdir@,$build_subdir,;t t
12203s,@host_subdir@,$host_subdir,;t t
12204s,@target_subdir@,$target_subdir,;t t
12205s,@CC@,$CC,;t t
12206s,@CFLAGS@,$CFLAGS,;t t
12207s,@LDFLAGS@,$LDFLAGS,;t t
12208s,@CPPFLAGS@,$CPPFLAGS,;t t
12209s,@ac_ct_CC@,$ac_ct_CC,;t t
12210s,@EXEEXT@,$EXEEXT,;t t
12211s,@OBJEXT@,$OBJEXT,;t t
c3a86da9
DJ
12212s,@CXX@,$CXX,;t t
12213s,@CXXFLAGS@,$CXXFLAGS,;t t
12214s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1c710c3c
DJ
12215s,@GNATBIND@,$GNATBIND,;t t
12216s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12217s,@GNATMAKE@,$GNATMAKE,;t t
12218s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12219s,@do_compare@,$do_compare,;t t
12220s,@gmplibs@,$gmplibs,;t t
12221s,@gmpinc@,$gmpinc,;t t
12222s,@stage1_languages@,$stage1_languages,;t t
12223s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12224s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12225s,@tooldir@,$tooldir,;t t
12226s,@build_tooldir@,$build_tooldir,;t t
12227s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12228s,@GDB_TK@,$GDB_TK,;t t
12229s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12230s,@build_configargs@,$build_configargs,;t t
12231s,@build_configdirs@,$build_configdirs,;t t
12232s,@host_configargs@,$host_configargs,;t t
12233s,@configdirs@,$configdirs,;t t
12234s,@target_configargs@,$target_configargs,;t t
12235s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12236s,@config_shell@,$config_shell,;t t
12237s,@YACC@,$YACC,;t t
12238s,@BISON@,$BISON,;t t
12239s,@M4@,$M4,;t t
12240s,@LEX@,$LEX,;t t
12241s,@FLEX@,$FLEX,;t t
12242s,@MAKEINFO@,$MAKEINFO,;t t
12243s,@EXPECT@,$EXPECT,;t t
12244s,@RUNTEST@,$RUNTEST,;t t
12245s,@AR@,$AR,;t t
12246s,@AS@,$AS,;t t
12247s,@DLLTOOL@,$DLLTOOL,;t t
12248s,@LD@,$LD,;t t
12249s,@LIPO@,$LIPO,;t t
12250s,@NM@,$NM,;t t
12251s,@RANLIB@,$RANLIB,;t t
12252s,@STRIP@,$STRIP,;t t
12253s,@WINDRES@,$WINDRES,;t t
12254s,@OBJCOPY@,$OBJCOPY,;t t
12255s,@OBJDUMP@,$OBJDUMP,;t t
1c710c3c 12256s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
1c710c3c
DJ
12257s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12258s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12259s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12260s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12261s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12262s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12263s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12264s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12265s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12266s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12267s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12268s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12269s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12270s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12271s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12272s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12273s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12274s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12275s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12276s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12277s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12278s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12279s,@MAINT@,$MAINT,;t t
12280s,@stage1_cflags@,$stage1_cflags,;t t
12281s,@stage1_checking@,$stage1_checking,;t t
12282s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12283s,@datarootdir@,$datarootdir,;t t
12284s,@docdir@,$docdir,;t t
12285s,@htmldir@,$htmldir,;t t
12286s,@LIBOBJS@,$LIBOBJS,;t t
12287s,@LTLIBOBJS@,$LTLIBOBJS,;t t
671aa708 12288/@serialization_dependencies@/r $serialization_dependencies
1c710c3c 12289s,@serialization_dependencies@,,;t t
671aa708 12290/@host_makefile_frag@/r $host_makefile_frag
1c710c3c 12291s,@host_makefile_frag@,,;t t
671aa708 12292/@target_makefile_frag@/r $target_makefile_frag
1c710c3c 12293s,@target_makefile_frag@,,;t t
671aa708 12294/@alphaieee_frag@/r $alphaieee_frag
1c710c3c 12295s,@alphaieee_frag@,,;t t
671aa708 12296/@ospace_frag@/r $ospace_frag
1c710c3c 12297s,@ospace_frag@,,;t t
671aa708 12298CEOF
79c06341 12299
1c710c3c
DJ
12300_ACEOF
12301
12302 cat >>$CONFIG_STATUS <<\_ACEOF
12303 # Split the substitutions into bite-sized pieces for seds with
12304 # small command number limits, like on Digital OSF/1 and HP-UX.
12305 ac_max_sed_lines=48
12306 ac_sed_frag=1 # Number of current file.
12307 ac_beg=1 # First line for current file.
12308 ac_end=$ac_max_sed_lines # Line after last line for current file.
12309 ac_more_lines=:
12310 ac_sed_cmds=
12311 while $ac_more_lines; do
12312 if test $ac_beg -gt 1; then
12313 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12314 else
12315 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12316 fi
12317 if test ! -s $tmp/subs.frag; then
12318 ac_more_lines=false
671aa708 12319 else
1c710c3c
DJ
12320 # The purpose of the label and of the branching condition is to
12321 # speed up the sed processing (if there are no `@' at all, there
12322 # is no need to browse any of the substitutions).
12323 # These are the two extra sed commands mentioned above.
12324 (echo ':t
12325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12326 if test -z "$ac_sed_cmds"; then
12327 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12328 else
12329 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12330 fi
12331 ac_sed_frag=`expr $ac_sed_frag + 1`
12332 ac_beg=$ac_end
12333 ac_end=`expr $ac_end + $ac_max_sed_lines`
671aa708 12334 fi
1c710c3c
DJ
12335 done
12336 if test -z "$ac_sed_cmds"; then
12337 ac_sed_cmds=cat
4977bab6 12338 fi
1c710c3c 12339fi # test -n "$CONFIG_FILES"
79c06341 12340
1c710c3c
DJ
12341_ACEOF
12342cat >>$CONFIG_STATUS <<\_ACEOF
12343for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
671aa708 12344 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1c710c3c
DJ
12345 case $ac_file in
12346 - | *:- | *:-:* ) # input from stdin
12347 cat >$tmp/stdin
12348 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12350 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12352 * ) ac_file_in=$ac_file.in ;;
671aa708 12353 esac
79c06341 12354
1c710c3c
DJ
12355 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12356 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12357$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12358 X"$ac_file" : 'X\(//\)[^/]' \| \
12359 X"$ac_file" : 'X\(//\)$' \| \
12360 X"$ac_file" : 'X\(/\)' \| \
12361 . : '\(.\)' 2>/dev/null ||
12362echo X"$ac_file" |
12363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12365 /^X\(\/\/\)$/{ s//\1/; q; }
12366 /^X\(\/\).*/{ s//\1/; q; }
12367 s/.*/./; q'`
12368 { if $as_mkdir_p; then
12369 mkdir -p "$ac_dir"
af71363e 12370 else
1c710c3c
DJ
12371 as_dir="$ac_dir"
12372 as_dirs=
12373 while test ! -d "$as_dir"; do
12374 as_dirs="$as_dir $as_dirs"
12375 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12376$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12377 X"$as_dir" : 'X\(//\)[^/]' \| \
12378 X"$as_dir" : 'X\(//\)$' \| \
12379 X"$as_dir" : 'X\(/\)' \| \
12380 . : '\(.\)' 2>/dev/null ||
12381echo X"$as_dir" |
12382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12384 /^X\(\/\/\)$/{ s//\1/; q; }
12385 /^X\(\/\).*/{ s//\1/; q; }
12386 s/.*/./; q'`
12387 done
12388 test ! -n "$as_dirs" || mkdir $as_dirs
12389 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12390echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12391 { (exit 1); exit 1; }; }; }
12392
12393 ac_builddir=.
0b0dc272 12394
1c710c3c
DJ
12395if test "$ac_dir" != .; then
12396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12397 # A "../" for each directory in $ac_dir_suffix.
12398 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12399else
12400 ac_dir_suffix= ac_top_builddir=
12401fi
12402
12403case $srcdir in
12404 .) # No --srcdir option. We are building in place.
12405 ac_srcdir=.
12406 if test -z "$ac_top_builddir"; then
12407 ac_top_srcdir=.
12408 else
12409 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12410 fi ;;
12411 [\\/]* | ?:[\\/]* ) # Absolute path.
12412 ac_srcdir=$srcdir$ac_dir_suffix;
12413 ac_top_srcdir=$srcdir ;;
671aa708 12414 *) # Relative path.
1c710c3c
DJ
12415 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12416 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12417esac
a4b9e93e 12418
1c710c3c
DJ
12419# Do not use `cd foo && pwd` to compute absolute paths, because
12420# the directories may not exist.
12421case `pwd` in
12422.) ac_abs_builddir="$ac_dir";;
12423*)
12424 case "$ac_dir" in
12425 .) ac_abs_builddir=`pwd`;;
12426 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12427 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12428 esac;;
12429esac
12430case $ac_abs_builddir in
12431.) ac_abs_top_builddir=${ac_top_builddir}.;;
12432*)
12433 case ${ac_top_builddir}. in
12434 .) ac_abs_top_builddir=$ac_abs_builddir;;
12435 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12436 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12437 esac;;
12438esac
12439case $ac_abs_builddir in
12440.) ac_abs_srcdir=$ac_srcdir;;
12441*)
12442 case $ac_srcdir in
12443 .) ac_abs_srcdir=$ac_abs_builddir;;
12444 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12445 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12446 esac;;
12447esac
12448case $ac_abs_builddir in
12449.) ac_abs_top_srcdir=$ac_top_srcdir;;
12450*)
12451 case $ac_top_srcdir in
12452 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12453 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12454 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12455 esac;;
12456esac
0b0dc272 12457
1c710c3c
DJ
12458
12459 case $INSTALL in
12460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12461 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 12462 esac
79c06341 12463
1c710c3c
DJ
12464 if test x"$ac_file" != x-; then
12465 { echo "$as_me:$LINENO: creating $ac_file" >&5
12466echo "$as_me: creating $ac_file" >&6;}
12467 rm -f "$ac_file"
12468 fi
12469 # Let's still pretend it is `configure' which instantiates (i.e., don't
12470 # use $as_me), people would be surprised to read:
12471 # /* config.h. Generated by config.status. */
12472 if test x"$ac_file" = x-; then
12473 configure_input=
12474 else
12475 configure_input="$ac_file. "
12476 fi
12477 configure_input=$configure_input"Generated from `echo $ac_file_in |
12478 sed 's,.*/,,'` by configure."
12479
12480 # First look for the input files in the build tree, otherwise in the
12481 # src tree.
12482 ac_file_inputs=`IFS=:
12483 for f in $ac_file_in; do
12484 case $f in
12485 -) echo $tmp/stdin ;;
12486 [\\/$]*)
12487 # Absolute (can't be DOS-style, as IFS=:)
12488 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12489echo "$as_me: error: cannot find input file: $f" >&2;}
12490 { (exit 1); exit 1; }; }
12491 echo "$f";;
12492 *) # Relative
12493 if test -f "$f"; then
12494 # Build tree
12495 echo "$f"
12496 elif test -f "$srcdir/$f"; then
12497 # Source tree
12498 echo "$srcdir/$f"
12499 else
12500 # /dev/null tree
12501 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12502echo "$as_me: error: cannot find input file: $f" >&2;}
12503 { (exit 1); exit 1; }; }
12504 fi;;
12505 esac
12506 done` || { (exit 1); exit 1; }
12507_ACEOF
12508cat >>$CONFIG_STATUS <<_ACEOF
12509 sed "$ac_vpsub
12510$extrasub
12511_ACEOF
12512cat >>$CONFIG_STATUS <<\_ACEOF
12513:t
12514/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12515s,@configure_input@,$configure_input,;t t
12516s,@srcdir@,$ac_srcdir,;t t
12517s,@abs_srcdir@,$ac_abs_srcdir,;t t
12518s,@top_srcdir@,$ac_top_srcdir,;t t
12519s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12520s,@builddir@,$ac_builddir,;t t
12521s,@abs_builddir@,$ac_abs_builddir,;t t
12522s,@top_builddir@,$ac_top_builddir,;t t
12523s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12524s,@INSTALL@,$ac_INSTALL,;t t
12525" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12526 rm -f $tmp/stdin
12527 if test x"$ac_file" != x-; then
12528 mv $tmp/out $ac_file
12529 else
12530 cat $tmp/out
12531 rm -f $tmp/out
12532 fi
79c06341 12533
1c710c3c
DJ
12534done
12535_ACEOF
79c06341 12536
1c710c3c 12537cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 12538
1c710c3c
DJ
12539{ (exit 0); exit 0; }
12540_ACEOF
671aa708 12541chmod +x $CONFIG_STATUS
1c710c3c
DJ
12542ac_clean_files=$ac_clean_files_save
12543
12544
12545# configure is writing to config.log, and then calls config.status.
12546# config.status does its own redirection, appending to config.log.
12547# Unfortunately, on DOS this fails, as config.log is still kept open
12548# by configure, so config.status won't be able to write to it; its
12549# output is simply discarded. So we exec the FD to /dev/null,
12550# effectively closing config.log, so it can be properly (re)opened and
12551# appended to by config.status. When coming back to configure, we
12552# need to make the FD available again.
12553if test "$no_create" != yes; then
12554 ac_cs_success=:
12555 ac_config_status_args=
12556 test "$silent" = yes &&
12557 ac_config_status_args="$ac_config_status_args --quiet"
12558 exec 5>/dev/null
12559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12560 exec 5>>config.log
12561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12562 # would make configure fail if this is the last instruction.
12563 $ac_cs_success || { (exit 1); exit 1; }
12564fi
79c06341 12565
This page took 2.260824 seconds and 5 git commands to generate.