]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
gengtype.h: Remove all type definitions to gengtype.c...
[thirdparty/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"
9c4d2493 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 pdfdir 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.
9c4d2493 964 --with-pdfdir Install pdf in this directory.
1c710c3c
DJ
965 --with-htmldir Install html in this directory.
966
967Some influential environment variables:
968 CC C compiler command
969 CFLAGS C compiler flags
970 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
971 nonstandard directory <lib dir>
972 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
973 headers in a nonstandard directory <include dir>
c3a86da9
DJ
974 CXX C++ compiler command
975 CXXFLAGS C++ compiler flags
278a7a38
AO
976 AR AR for the host
977 AS AS for the host
978 DLLTOOL DLLTOOL for the host
979 LD LD for the host
980 LIPO LIPO for the host
981 NM NM for the host
982 RANLIB RANLIB for the host
983 STRIP STRIP for the host
984 WINDRES WINDRES for the host
985 OBJCOPY OBJCOPY for the host
986 OBJDUMP OBJDUMP for the host
987 CC_FOR_TARGET
988 CC for the target
989 CXX_FOR_TARGET
990 CXX for the target
991 GCC_FOR_TARGET
992 GCC for the target
993 GCJ_FOR_TARGET
994 GCJ for the target
995 GFORTRAN_FOR_TARGET
996 GFORTRAN for the target
997 AR_FOR_TARGET
998 AR for the target
999 AS_FOR_TARGET
1000 AS for the target
1001 DLLTOOL_FOR_TARGET
1002 DLLTOOL for the target
1003 LD_FOR_TARGET
1004 LD for the target
1005 LIPO_FOR_TARGET
1006 LIPO for the target
1007 NM_FOR_TARGET
1008 NM for the target
1009 OBJDUMP_FOR_TARGET
1010 OBJDUMP for the target
1011 RANLIB_FOR_TARGET
1012 RANLIB for the target
1013 STRIP_FOR_TARGET
1014 STRIP for the target
1015 WINDRES_FOR_TARGET
1016 WINDRES for the target
1c710c3c
DJ
1017
1018Use these variables to override the choices made by `configure' or to help
1019it to find libraries and programs with nonstandard names/locations.
1020
1021_ACEOF
1022fi
1023
1024if test "$ac_init_help" = "recursive"; then
1025 # If there are subdirs, report their specific --help.
1026 ac_popdir=`pwd`
1027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1028 test -d $ac_dir || continue
1029 ac_builddir=.
1030
1031if test "$ac_dir" != .; then
1032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1033 # A "../" for each directory in $ac_dir_suffix.
1034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1035else
1036 ac_dir_suffix= ac_top_builddir=
1037fi
1038
1039case $srcdir in
1040 .) # No --srcdir option. We are building in place.
1041 ac_srcdir=.
1042 if test -z "$ac_top_builddir"; then
1043 ac_top_srcdir=.
1044 else
1045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1046 fi ;;
1047 [\\/]* | ?:[\\/]* ) # Absolute path.
1048 ac_srcdir=$srcdir$ac_dir_suffix;
1049 ac_top_srcdir=$srcdir ;;
1050 *) # Relative path.
1051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1053esac
1054
1055# Do not use `cd foo && pwd` to compute absolute paths, because
1056# the directories may not exist.
1057case `pwd` in
1058.) ac_abs_builddir="$ac_dir";;
1059*)
1060 case "$ac_dir" in
1061 .) ac_abs_builddir=`pwd`;;
1062 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1063 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1064 esac;;
1065esac
1066case $ac_abs_builddir in
1067.) ac_abs_top_builddir=${ac_top_builddir}.;;
1068*)
1069 case ${ac_top_builddir}. in
1070 .) ac_abs_top_builddir=$ac_abs_builddir;;
1071 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1073 esac;;
1074esac
1075case $ac_abs_builddir in
1076.) ac_abs_srcdir=$ac_srcdir;;
1077*)
1078 case $ac_srcdir in
1079 .) ac_abs_srcdir=$ac_abs_builddir;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1081 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1082 esac;;
1083esac
1084case $ac_abs_builddir in
1085.) ac_abs_top_srcdir=$ac_top_srcdir;;
1086*)
1087 case $ac_top_srcdir in
1088 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1091 esac;;
1092esac
1093
1094 cd $ac_dir
1095 # Check for guested configure; otherwise get Cygnus style configure.
1096 if test -f $ac_srcdir/configure.gnu; then
1097 echo
1098 $SHELL $ac_srcdir/configure.gnu --help=recursive
1099 elif test -f $ac_srcdir/configure; then
1100 echo
1101 $SHELL $ac_srcdir/configure --help=recursive
1102 elif test -f $ac_srcdir/configure.ac ||
1103 test -f $ac_srcdir/configure.in; then
1104 echo
1105 $ac_configure --help
1106 else
1107 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1108 fi
1109 cd $ac_popdir
1110 done
1111fi
1112
1113test -n "$ac_init_help" && exit 0
1114if $ac_init_version; then
1115 cat <<\_ACEOF
1116
1117Copyright (C) 2003 Free Software Foundation, Inc.
1118This configure script is free software; the Free Software Foundation
1119gives unlimited permission to copy, distribute and modify it.
1120_ACEOF
1121 exit 0
0b0dc272 1122fi
1c710c3c
DJ
1123exec 5>config.log
1124cat >&5 <<_ACEOF
1125This file contains any messages produced by compilers while
1126running configure, to aid debugging if configure makes a mistake.
1127
1128It was created by $as_me, which was
1129generated by GNU Autoconf 2.59. Invocation command line was
1130
1131 $ $0 $@
1132
1133_ACEOF
1134{
1135cat <<_ASUNAME
1136## --------- ##
1137## Platform. ##
1138## --------- ##
1139
1140hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1141uname -m = `(uname -m) 2>/dev/null || echo unknown`
1142uname -r = `(uname -r) 2>/dev/null || echo unknown`
1143uname -s = `(uname -s) 2>/dev/null || echo unknown`
1144uname -v = `(uname -v) 2>/dev/null || echo unknown`
1145
1146/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1147/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1148
1149/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1150/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1151/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1152hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1153/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1154/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1155/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1156
1157_ASUNAME
1158
1159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1160for as_dir in $PATH
1161do
1162 IFS=$as_save_IFS
1163 test -z "$as_dir" && as_dir=.
1164 echo "PATH: $as_dir"
1165done
1166
1167} >&5
1168
1169cat >&5 <<_ACEOF
1170
1171
1172## ----------- ##
1173## Core tests. ##
1174## ----------- ##
1175
1176_ACEOF
1177
1178
1179# Keep a trace of the command line.
1180# Strip out --no-create and --no-recursion so they do not pile up.
1181# Strip out --silent because we don't want to record it for future runs.
1182# Also quote any args containing shell meta-characters.
1183# Make two passes to allow for proper duplicate-argument suppression.
1184ac_configure_args=
1185ac_configure_args0=
1186ac_configure_args1=
1187ac_sep=
1188ac_must_keep_next=false
1189for ac_pass in 1 2
1190do
1191 for ac_arg
1192 do
1193 case $ac_arg in
1194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 continue ;;
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 esac
1201 case $ac_pass in
1202 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1203 2)
1204 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1205 if test $ac_must_keep_next = true; then
1206 ac_must_keep_next=false # Got value, back to normal.
1207 else
1208 case $ac_arg in
1209 *=* | --config-cache | -C | -disable-* | --disable-* \
1210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1212 | -with-* | --with-* | -without-* | --without-* | --x)
1213 case "$ac_configure_args0 " in
1214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1215 esac
1216 ;;
1217 -* ) ac_must_keep_next=true ;;
1218 esac
1219 fi
1220 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1221 # Get rid of the leading space.
1222 ac_sep=" "
1223 ;;
1224 esac
1225 done
1226done
1227$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1228$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1229
1230# When interrupted or exit'd, cleanup temporary files, and complete
1231# config.log. We remove comments because anyway the quotes in there
1232# would cause problems or look ugly.
1233# WARNING: Be sure not to use single quotes in there, as some shells,
1234# such as our DU 5.0 friend, will then `close' the trap.
1235trap 'exit_status=$?
1236 # Save into config.log some information that might help in debugging.
1237 {
1238 echo
1239
1240 cat <<\_ASBOX
1241## ---------------- ##
1242## Cache variables. ##
1243## ---------------- ##
1244_ASBOX
1245 echo
1246 # The following way of writing the cache mishandles newlines in values,
1247{
1248 (set) 2>&1 |
1249 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1250 *ac_space=\ *)
1251 sed -n \
1252 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1254 ;;
1255 *)
1256 sed -n \
1257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1258 ;;
1259 esac;
1260}
1261 echo
1262
1263 cat <<\_ASBOX
1264## ----------------- ##
1265## Output variables. ##
1266## ----------------- ##
1267_ASBOX
1268 echo
1269 for ac_var in $ac_subst_vars
1270 do
1271 eval ac_val=$`echo $ac_var`
1272 echo "$ac_var='"'"'$ac_val'"'"'"
1273 done | sort
1274 echo
1275
1276 if test -n "$ac_subst_files"; then
1277 cat <<\_ASBOX
1278## ------------- ##
1279## Output files. ##
1280## ------------- ##
1281_ASBOX
1282 echo
1283 for ac_var in $ac_subst_files
1284 do
1285 eval ac_val=$`echo $ac_var`
1286 echo "$ac_var='"'"'$ac_val'"'"'"
1287 done | sort
1288 echo
1289 fi
1290
1291 if test -s confdefs.h; then
1292 cat <<\_ASBOX
1293## ----------- ##
1294## confdefs.h. ##
1295## ----------- ##
1296_ASBOX
1297 echo
1298 sed "/^$/d" confdefs.h | sort
1299 echo
1300 fi
1301 test "$ac_signal" != 0 &&
1302 echo "$as_me: caught signal $ac_signal"
1303 echo "$as_me: exit $exit_status"
1304 } >&5
1305 rm -f core *.core &&
1306 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1307 exit $exit_status
1308 ' 0
1309for ac_signal in 1 2 13 15; do
1310 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1311done
1312ac_signal=0
1313
1314# confdefs.h avoids OS command line length limits that DEFS can exceed.
1315rm -rf conftest* confdefs.h
1316# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1317echo >confdefs.h
1318
1319# Predefined preprocessor variables.
1320
1321cat >>confdefs.h <<_ACEOF
1322#define PACKAGE_NAME "$PACKAGE_NAME"
1323_ACEOF
1324
1325
1326cat >>confdefs.h <<_ACEOF
1327#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1328_ACEOF
1329
1330
1331cat >>confdefs.h <<_ACEOF
1332#define PACKAGE_VERSION "$PACKAGE_VERSION"
1333_ACEOF
0b0dc272 1334
1c710c3c
DJ
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_STRING "$PACKAGE_STRING"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1343_ACEOF
1344
1345
1346# Let the site file select an alternate cache file if it wants to.
671aa708 1347# Prefer explicitly selected file to automatically selected ones.
bba5e0ca
EB
1348if test -z "$CONFIG_SITE"; then
1349 if test "x$prefix" != xNONE; then
1350 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1351 else
1352 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
671aa708
NN
1353 fi
1354fi
1355for ac_site_file in $CONFIG_SITE; do
1356 if test -r "$ac_site_file"; then
1c710c3c
DJ
1357 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1358echo "$as_me: loading site script $ac_site_file" >&6;}
1359 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1360 . "$ac_site_file"
1361 fi
1362done
1363
1364if test -r "$cache_file"; then
1c710c3c
DJ
1365 # Some versions of bash will fail to source /dev/null (special
1366 # files actually), so we avoid doing that.
1367 if test -f "$cache_file"; then
1368 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1369echo "$as_me: loading cache $cache_file" >&6;}
1370 case $cache_file in
1371 [\\/]* | ?:[\\/]* ) . $cache_file;;
1372 *) . ./$cache_file;;
1373 esac
1374 fi
671aa708 1375else
1c710c3c
DJ
1376 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1377echo "$as_me: creating cache $cache_file" >&6;}
1378 >$cache_file
1379fi
1380
1381# Check that the precious variables saved in the cache have kept the same
1382# value.
1383ac_cache_corrupted=false
1384for ac_var in `(set) 2>&1 |
1385 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1387 eval ac_new_set=\$ac_env_${ac_var}_set
1388 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1389 eval ac_new_val="\$ac_env_${ac_var}_value"
1390 case $ac_old_set,$ac_new_set in
1391 set,)
1392 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1393echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1394 ac_cache_corrupted=: ;;
1395 ,set)
1396 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1397echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1398 ac_cache_corrupted=: ;;
1399 ,);;
1400 *)
1401 if test "x$ac_old_val" != "x$ac_new_val"; then
1402 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1403echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1404 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1405echo "$as_me: former value: $ac_old_val" >&2;}
1406 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1407echo "$as_me: current value: $ac_new_val" >&2;}
1408 ac_cache_corrupted=:
1409 fi;;
1410 esac
1411 # Pass precious variables to config.status.
1412 if test "$ac_new_set" = set; then
1413 case $ac_new_val in
1414 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1415 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1416 *) ac_arg=$ac_var=$ac_new_val ;;
1417 esac
1418 case " $ac_configure_args " in
1419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1420 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1421 esac
1422 fi
1423done
1424if $ac_cache_corrupted; then
1425 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1426echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1427 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1428echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1429 { (exit 1); exit 1; }; }
671aa708
NN
1430fi
1431
1432ac_ext=c
671aa708 1433ac_cpp='$CPP $CPPFLAGS'
1c710c3c
DJ
1434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437
1438
1439
1440
1441
671aa708
NN
1442
1443
d02c69be 1444
1c710c3c
DJ
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458# Find the build, host, and target systems.
671aa708 1459ac_aux_dir=
4c4a5bbc 1460for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
671aa708
NN
1461 if test -f $ac_dir/install-sh; then
1462 ac_aux_dir=$ac_dir
1463 ac_install_sh="$ac_aux_dir/install-sh -c"
1464 break
1465 elif test -f $ac_dir/install.sh; then
1466 ac_aux_dir=$ac_dir
1467 ac_install_sh="$ac_aux_dir/install.sh -c"
1468 break
1c710c3c
DJ
1469 elif test -f $ac_dir/shtool; then
1470 ac_aux_dir=$ac_dir
1471 ac_install_sh="$ac_aux_dir/shtool install -c"
1472 break
671aa708
NN
1473 fi
1474done
1475if test -z "$ac_aux_dir"; then
1c710c3c
DJ
1476 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1477echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1478 { (exit 1); exit 1; }; }
671aa708 1479fi
1c710c3c
DJ
1480ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1481ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1482ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1483
1c710c3c
DJ
1484# Make sure we can run config.sub.
1485$ac_config_sub sun4 >/dev/null 2>&1 ||
1486 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1487echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1488 { (exit 1); exit 1; }; }
1489
1490echo "$as_me:$LINENO: checking build system type" >&5
1491echo $ECHO_N "checking build system type... $ECHO_C" >&6
1492if test "${ac_cv_build+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494else
1495 ac_cv_build_alias=$build_alias
1496test -z "$ac_cv_build_alias" &&
1497 ac_cv_build_alias=`$ac_config_guess`
1498test -z "$ac_cv_build_alias" &&
1499 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1500echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1501 { (exit 1); exit 1; }; }
1502ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1504echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507fi
1508echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1509echo "${ECHO_T}$ac_cv_build" >&6
1510build=$ac_cv_build
1511build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1514
671aa708 1515
1c710c3c
DJ
1516 case ${build_alias} in
1517 "") build_noncanonical=${build} ;;
1518 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1519esac
1520
1521
af71363e 1522
1c710c3c
DJ
1523 case ${host_alias} in
1524 "") host_noncanonical=${build_noncanonical} ;;
1525 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1526esac
1527
af71363e 1528
1c710c3c
DJ
1529
1530 case ${target_alias} in
1531 "") target_noncanonical=${host_noncanonical} ;;
1532 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1533esac
1534
af71363e 1535
1c710c3c
DJ
1536
1537
1538test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1539 test "$program_prefix$program_suffix$program_transform_name" = \
1540 NONENONEs,x,x, &&
1c710c3c 1541 program_transform_name=s,y,y,
af71363e 1542
1c710c3c
DJ
1543echo "$as_me:$LINENO: checking host system type" >&5
1544echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1547else
1c710c3c
DJ
1548 ac_cv_host_alias=$host_alias
1549test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1555
af71363e 1556fi
1c710c3c
DJ
1557echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558echo "${ECHO_T}$ac_cv_host" >&6
1559host=$ac_cv_host
1560host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565echo "$as_me:$LINENO: checking target system type" >&5
1566echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 ac_cv_target_alias=$target_alias
1571test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578fi
1579echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580echo "${ECHO_T}$ac_cv_target" >&6
1581target=$ac_cv_target
1582target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587# The aliases save the names the user supplied, while $host etc.
1588# will get canonicalized.
1589test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1591 NONENONEs,x,x, &&
1592 program_prefix=${target_alias}-
671aa708 1593test "$program_prefix" != NONE &&
1c710c3c 1594 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1595# Use a double $ so make ignores it.
1596test "$program_suffix" != NONE &&
1c710c3c
DJ
1597 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1598# Double any \ or $. echo might interpret backslashes.
1599# By default was `s,x,x', remove it if useless.
1600cat <<\_ACEOF >conftest.sed
1601s/[\\$]/&&/g;s/;s,x,x,$//
1602_ACEOF
1603program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1604rm conftest.sed
af71363e 1605
671aa708
NN
1606
1607
775956d0
NN
1608# Get 'install' or 'install-sh' and its variants.
1609# Find a good install program. We prefer a C program (faster),
1610# so one script is as good as another. But avoid the broken or
1611# incompatible versions:
1612# SysV /etc/install, /usr/sbin/install
1613# SunOS /usr/etc/install
1614# IRIX /sbin/install
1615# AIX /bin/install
1c710c3c 1616# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1617# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1618# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1619# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1620# OS/2's system install, which has a completely different semantic
775956d0 1621# ./install, which can be erroneously created by make from ./install.sh.
1c710c3c
DJ
1622echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1623echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1624if test -z "$INSTALL"; then
1c710c3c
DJ
1625if test "${ac_cv_path_install+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629for as_dir in $PATH
1630do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 # Account for people who put trailing slashes in PATH elements.
1634case $as_dir/ in
1635 ./ | .// | /cC/* | \
1636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1637 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1638 /usr/ucb/* ) ;;
1639 *)
1640 # OSF1 and SCO ODT 3.0 have their own names for install.
1641 # Don't use installbsd from OSF since it installs stuff as root
1642 # by default.
1643 for ac_prog in ginstall scoinst install; do
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1646 if test $ac_prog = install &&
1c710c3c 1647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1648 # AIX install. It has an incompatible calling convention.
1649 :
1c710c3c
DJ
1650 elif test $ac_prog = install &&
1651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652 # program-specific install script used by HP pwplus--don't use.
1653 :
775956d0 1654 else
1c710c3c
DJ
1655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1656 break 3
775956d0
NN
1657 fi
1658 fi
1659 done
1c710c3c
DJ
1660 done
1661 ;;
1662esac
1663done
1664
775956d0
NN
1665
1666fi
1667 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1668 INSTALL=$ac_cv_path_install
775956d0
NN
1669 else
1670 # As a last resort, use the slow shell script. We don't cache a
1671 # path for INSTALL within a source directory, because that will
1672 # break other packages using the cache if that directory is
1673 # removed, or if the path is relative.
1c710c3c 1674 INSTALL=$ac_install_sh
775956d0
NN
1675 fi
1676fi
1c710c3c
DJ
1677echo "$as_me:$LINENO: result: $INSTALL" >&5
1678echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1679
1680# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1681# It thinks the first close brace ends the variable substitution.
1682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1683
1c710c3c 1684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1685
1686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1687
1c710c3c
DJ
1688echo "$as_me:$LINENO: checking whether ln works" >&5
1689echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1690if test "${acx_cv_prog_LN+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1692else
1693 rm -f conftestdata_t
1694echo >conftestdata_f
1695if ln conftestdata_f conftestdata_t 2>/dev/null
1696then
1697 acx_cv_prog_LN=ln
1698else
1699 acx_cv_prog_LN=no
1700fi
1701rm -f conftestdata_f conftestdata_t
1702
1703fi
1704if test $acx_cv_prog_LN = no; then
1705 LN="cp"
1c710c3c
DJ
1706 echo "$as_me:$LINENO: result: no, using $LN" >&5
1707echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1708else
1709 LN="$acx_cv_prog_LN"
1c710c3c
DJ
1710 echo "$as_me:$LINENO: result: yes" >&5
1711echo "${ECHO_T}yes" >&6
ad6717df
PB
1712fi
1713
1c710c3c
DJ
1714echo "$as_me:$LINENO: checking whether ln -s works" >&5
1715echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1716LN_S=$as_ln_s
1717if test "$LN_S" = "ln -s"; then
1718 echo "$as_me:$LINENO: result: yes" >&5
1719echo "${ECHO_T}yes" >&6
fb0103e5 1720else
1c710c3c
DJ
1721 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1722echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1723fi
1724
775956d0 1725
79c06341 1726### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1727### If we are on Windows, search for the shell. This will permit people
1728### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1729### without also having to set CONFIG_SHELL. This code will work when
1730### using bash, which sets OSTYPE.
1731case "${OSTYPE}" in
1732*win32*)
671aa708
NN
1733 if test x${CONFIG_SHELL} = x ; then
1734 if test ! -f /bin/sh ; then
1735 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1736 CONFIG_SHELL=${SHELL}
1737 export CONFIG_SHELL
1738 else
1739 for prog in sh sh.exe bash bash.exe; do
1740 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1741 for dir in $PATH; do
1742 test -z "$dir" && dir=.
1743 if test -f $dir/$prog; then
1744 CONFIG_SHELL=$dir/$prog
1745 export CONFIG_SHELL
1746 break
1747 fi
1748 done
1749 IFS="$save_ifs"
1750 test -n "${CONFIG_SHELL}" && break
1751 done
1752 fi
1753 fi
1754 fi
1755 ;;
1756esac
1757
1758config_shell=${CONFIG_SHELL-/bin/sh}
1759
79c06341
JL
1760progname=$0
1761# if PWD already has a value, it is probably wrong.
671aa708 1762if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1763
beeaf216
MM
1764# Export original configure arguments for use by sub-configures.
1765# Quote arguments with shell meta charatcers.
1766TOPLEVEL_CONFIGURE_ARGUMENTS=
1767set -- "$progname" "$@"
9f8c6739
JM
1768for ac_arg
1769do
beeaf216 1770 case "$ac_arg" in
8c79f3c4 1771 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1773 # if the argument is of the form -foo=baz, quote the baz part only
1774 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1775 *) ;;
1776 esac
1777 # Add the quoted argument to the list.
1778 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1779done
1780# Remove the initial space we just introduced and, as these will be
1781# expanded by make, quote '$'.
1782TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1783
cc1e60ea 1784
671aa708 1785moveifchange=${srcdir}/move-if-change
79c06341 1786
ee6a22df
L
1787srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1788
1789# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1790# a relative path.
1791if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1792 INSTALL="${srcpwd}/install-sh -c"
1793fi
1794
671aa708
NN
1795# Set srcdir to "." if that's what it is.
1796# This is important for multilib support.
1797pwd=`${PWDCMD-pwd}`
671aa708
NN
1798if test "${pwd}" = "${srcpwd}" ; then
1799 srcdir=.
79c06341
JL
1800fi
1801
671aa708 1802topsrcdir=$srcpwd
5d4a5ee6 1803
671aa708 1804extra_host_args=
afabd8e6 1805
671aa708
NN
1806### To add a new directory to the tree, first choose whether it is a target
1807### or a host dependent tool. Then put it into the appropriate list
1808### (library or tools, host or target), doing a dependency sort.
79c06341 1809
1c710c3c 1810# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1811# configdirs, or target_configdirs; see the serialization section below.
79c06341 1812
1c710c3c
DJ
1813# Dependency sorting is only needed when *configuration* must be done in
1814# a particular order. In all cases a dependency should be specified in
671aa708 1815# the Makefile, whether or not it's implicitly specified here.
79c06341 1816
671aa708
NN
1817# Double entries in build_configdirs, configdirs, or target_configdirs may
1818# cause circular dependencies and break everything horribly.
79c06341 1819
23f6b2f9
PB
1820# these library is used by various programs built for the build
1821# environment
1822#
1823build_libs="build-libiberty"
1824
1825# these tools are built for the build environment
71b5d516 1826build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1827
671aa708
NN
1828# these libraries are used by various programs built for the host environment
1829#
e69bf64b 1830host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1831
671aa708
NN
1832# these tools are built for the host environment
1833# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1834# know that we are building the simulator.
1835# binutils, gas and ld appear in that order because it makes sense to run
1836# "make check" in that particular order.
5395b47b 1837host_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
1838
1839# libgcj represents the runtime libraries only used by gcj.
1840libgcj="target-libffi \
671aa708
NN
1841 target-zlib \
1842 target-qthreads \
1843 target-libjava"
1844
1845# these libraries are built for the target environment, and are built after
1846# the host libraries and the host tools (which may be a cross compiler)
1847#
291f172e
DJ
1848target_libraries="target-libgcc \
1849 target-libiberty \
671aa708
NN
1850 target-libgloss \
1851 target-newlib \
cb543528 1852 target-libstdc++-v3 \
6de9cd9a 1853 target-libmudflap \
77008252 1854 target-libssp \
6de9cd9a 1855 target-libgfortran \
7cd0cf9c 1856 target-boehm-gc \
77d187bc 1857 ${libgcj} \
d9cdb878 1858 target-libobjc \
953ff289
DN
1859 target-libada \
1860 target-libgomp"
671aa708 1861
4dbda6f0
NN
1862# these tools are built using the target libraries, and are intended to
1863# run only in the target environment
671aa708 1864#
4dbda6f0 1865# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1866# list belongs in this list. those programs are also very likely
1867# candidates for the "native_only" list which follows
1868#
97286f7f 1869target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1870
671aa708 1871################################################################################
79c06341 1872
671aa708
NN
1873## All tools belong in one of the four categories, and are assigned above
1874## We assign ${configdirs} this way to remove all embedded newlines. This
1875## is important because configure will choke if they ever get through.
1876## ${configdirs} is directories we build using the host tools.
1877## ${target_configdirs} is directories we build using the target tools.
671aa708 1878configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1879target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1880build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1881
671aa708 1882################################################################################
79c06341 1883
671aa708 1884srcname="gnu development package"
79c06341 1885
671aa708
NN
1886# This gets set non-empty for some net releases of packages.
1887appdirs=""
79c06341 1888
671aa708
NN
1889# Define is_cross_compiler to save on calls to 'test'.
1890is_cross_compiler=
1891if test x"${host}" = x"${target}" ; then
1892 is_cross_compiler=no
79c06341 1893else
671aa708 1894 is_cross_compiler=yes
1c710c3c 1895fi
79c06341 1896
b4acb5ef 1897# Find the build and target subdir names.
8b87bb96 1898
2e9e6f68
DJ
1899# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1900# have matching libraries, they should use host libraries: Makefile.tpl
1901# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1902# However, they still use the build modules, because the corresponding
1903# host modules (e.g. bison) are only built for the host when bootstrap
1904# finishes. So:
1905# - build_subdir is where we find build modules, and never changes.
1906# - build_libsubdir is where we find build libraries, and can be overridden.
1907
1908# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1909build_subdir="build-${build_noncanonical}"
1c710c3c 1910
2e9e6f68
DJ
1911# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1912if test "${with_build_libsubdir+set}" = set; then
1913 withval="$with_build_libsubdir"
1914 build_libsubdir="$withval"
1915else
1916 build_libsubdir="$build_subdir"
1c710c3c 1917fi;
215c351a
PB
1918# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1919if ( test $srcdir = . && test -d gcc ) \
1920 || test -d $srcdir/../host-${host_noncanonical}; then
1921 host_subdir="host-${host_noncanonical}"
1922else
1923 host_subdir=.
1924fi
8b87bb96
NN
1925# No prefix.
1926target_subdir=${target_noncanonical}
1c710c3c 1927
79c06341 1928
671aa708
NN
1929# Skipdirs are removed silently.
1930skipdirs=
1931# Noconfigdirs are removed loudly.
1932noconfigdirs=""
79c06341 1933
671aa708
NN
1934use_gnu_ld=
1935# Make sure we don't let GNU ld be added if we didn't want it.
1936if test x$with_gnu_ld = xno ; then
1937 use_gnu_ld=no
1938 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1939fi
1940
671aa708
NN
1941use_gnu_as=
1942# Make sure we don't let GNU as be added if we didn't want it.
1943if test x$with_gnu_as = xno ; then
1944 use_gnu_as=no
1945 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1946fi
1947
1c710c3c 1948# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1949# it's not even worth trying to configure, much less build, that tool.
79c06341 1950
671aa708
NN
1951case ${with_x} in
1952 yes | "") ;; # the default value for this tree is that X11 is available
1953 no)
b4f96efe 1954 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1955 # We won't be able to build gdbtk without X.
1c710c3c 1956 enable_gdbtk=no
671aa708
NN
1957 ;;
1958 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1959esac
79c06341 1960
671aa708 1961# Some tools are only suitable for building in a "native" situation.
1c710c3c 1962# Remove these if host!=target.
9e299237 1963native_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 1964
671aa708
NN
1965# Similarly, some are only suitable for cross toolchains.
1966# Remove these if host=target.
1967cross_only="target-libgloss target-newlib target-opcodes"
1968
1969case $is_cross_compiler in
1970 no) skipdirs="${skipdirs} ${cross_only}" ;;
1971 yes) skipdirs="${skipdirs} ${native_only}" ;;
1972esac
79c06341 1973
671aa708
NN
1974# If both --with-headers and --with-libs are specified, default to
1975# --without-newlib.
ee6a22df
L
1976if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1977 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1978 if test x"${with_newlib}" = x ; then
1979 with_newlib=no
1980 fi
79c06341
JL
1981fi
1982
671aa708
NN
1983# Recognize --with-newlib/--without-newlib.
1984case ${with_newlib} in
1985 no) skipdirs="${skipdirs} target-newlib" ;;
1986 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1987esac
79c06341 1988
671aa708 1989# Configure extra directories which are host specific
79c06341 1990
671aa708
NN
1991case "${host}" in
1992 *-cygwin*)
1993 configdirs="$configdirs libtermcap" ;;
1994esac
79c06341 1995
4fab7234
HPN
1996# A target can indicate whether a language isn't supported for some reason.
1997# Only spaces may be used in this macro; not newlines or tabs.
1998unsupported_languages=
1999
1c710c3c 2000# Remove more programs from consideration, based on the host or
671aa708
NN
2001# target this usually means that a port of the program doesn't
2002# exist yet.
ec8d6ddc 2003
671aa708
NN
2004case "${host}" in
2005 hppa*64*-*-*)
2006 noconfigdirs="$noconfigdirs byacc"
2007 ;;
f2a0e225 2008 i[3456789]86-*-vsta)
b4f96efe 2009 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2010 ;;
f2a0e225 2011 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2012 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2013 ;;
95af8923
KT
2014 x86_64-*-mingw*)
2015 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2016 ;;
f2a0e225 2017 i[3456789]86-*-mingw32*)
b4f96efe 2018 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2019 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2020 ;;
f2a0e225 2021 i[3456789]86-*-beos*)
b4f96efe 2022 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2023 ;;
671aa708 2024 *-*-cygwin*)
a22c2d8d 2025 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2026 ;;
2027 *-*-netbsd*)
a22c2d8d 2028 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2029 ;;
2030 ppc*-*-pe)
b4f96efe 2031 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2032 ;;
2033 powerpc-*-beos*)
b4f96efe 2034 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2035 ;;
671aa708 2036esac
ec8d6ddc 2037
6de9cd9a 2038
d9cdb878
AC
2039# Check whether --enable-libada or --disable-libada was given.
2040if test "${enable_libada+set}" = set; then
2041 enableval="$enable_libada"
2042 ENABLE_LIBADA=$enableval
2043else
2044 ENABLE_LIBADA=yes
1c710c3c 2045fi;
d9cdb878 2046if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2047 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2048fi
2049
ef0087a7
KH
2050# Check whether --enable-libssp or --disable-libssp was given.
2051if test "${enable_libssp+set}" = set; then
2052 enableval="$enable_libssp"
2053 ENABLE_LIBSSP=$enableval
2054else
2055 ENABLE_LIBSSP=yes
1c710c3c 2056fi;
ef0087a7 2057
671aa708
NN
2058# Save it here so that, even in case of --enable-libgcj, if the Java
2059# front-end isn't enabled, we still get libgcj disabled.
2060libgcj_saved=$libgcj
2061case $enable_libgcj in
2062yes)
2063 # If we reset it here, it won't get added to noconfigdirs in the
2064 # target-specific build rules, so it will be forcibly enabled
2065 # (unless the Java language itself isn't enabled).
2066 libgcj=
2067 ;;
2068no)
2069 # Make sure we get it printed in the list of not supported target libs.
2070 noconfigdirs="$noconfigdirs ${libgcj}"
2071 ;;
2072esac
ec8d6ddc 2073
6de9cd9a 2074
27079765
AH
2075# Disable libmudflap on some systems.
2076if test x$enable_libmudflap = x ; then
dfcada9a 2077 case "${target}" in
670cbfcf 2078 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
98a5bb3b 2079 # Enable libmudflap by default in GNU and friends.
dfcada9a 2080 ;;
a3e8d8b4
LR
2081 *-*-freebsd*)
2082 # Enable libmudflap by default in FreeBSD.
2083 ;;
dfcada9a
MM
2084 *)
2085 # Disable it by default everywhere else.
2086 noconfigdirs="$noconfigdirs target-libmudflap"
2087 ;;
2088 esac
27079765 2089fi
6de9cd9a 2090
27079765
AH
2091# Disable libgomp on non POSIX hosted systems.
2092if test x$enable_libgomp = x ; then
953ff289
DN
2093 # Enable libgomp by default on hosted POSIX systems.
2094 case "${target}" in
670cbfcf 2095 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2096 ;;
2097 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2098 ;;
04879af3 2099 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2100 ;;
cac90078 2101 *-*-darwin* | *-*-aix*)
953ff289
DN
2102 ;;
2103 *)
2104 noconfigdirs="$noconfigdirs target-libgomp"
2105 ;;
2106 esac
27079765 2107fi
953ff289 2108
6de9cd9a 2109
671aa708
NN
2110case "${target}" in
2111 *-*-chorusos)
cb253473 2112 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2113 ;;
42c1cd8a 2114 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2115 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2116 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2117 ;;
42c1cd8a
AT
2118 *-*-darwin*)
2119 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2120 noconfigdirs="$noconfigdirs sim target-rda"
2121 noconfigdirs="$noconfigdirs ${libgcj}"
2122 ;;
671aa708 2123 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2125 ;;
c3f84f61 2126 *-*-freebsd*)
6de9cd9a
DN
2127 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2128 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2129 && test -f /usr/local/include/gmp.h; then
2130 with_gmp=/usr/local
2131 fi
2132
2133 # Skip some stuff that's unsupported on some FreeBSD configurations.
2134 case "${target}" in
2135 i*86-*-*) ;;
2136 alpha*-*-*) ;;
2137 *)
cb253473 2138 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2139 ;;
2140 esac
2141 ;;
ef4e7569
US
2142 *-*-kaos*)
2143 # Remove unsupported stuff on all kaOS configurations.
cb253473 2144 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2145 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2146 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2147 noconfigdirs="$noconfigdirs target-libgloss"
2148 ;;
671aa708
NN
2149 *-*-netbsd*)
2150 # Skip some stuff on all NetBSD configurations.
2151 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2152
2153 # Skip some stuff that's unsupported on some NetBSD configurations.
2154 case "${target}" in
2155 i*86-*-netbsdelf*) ;;
0590b963 2156 arm*-*-netbsdelf*) ;;
671aa708 2157 *)
cb253473 2158 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2159 ;;
2160 esac
2161 ;;
61fec9ff 2162 *-*-netware*)
cb253473 2163 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2164 ;;
2165 *-*-rtems*)
cb253473 2166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2167 ;;
a8ba31f2
EC
2168 # The tpf target doesn't support gdb yet.
2169 *-*-tpf*)
cb253473 2170 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2171 ;;
5785c0ed 2172 *-*-uclinux*)
cb253473 2173 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2174 ;;
671aa708 2175 *-*-vxworks*)
cb253473 2176 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2177 ;;
2178 alpha*-dec-osf*)
2179 # ld works, but does not support shared libraries.
2180 # newlib is not 64 bit ready. I'm not sure about fileutils.
2181 # gas doesn't generate exception information.
2182 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2183 ;;
2184 alpha*-*-*vms*)
cb253473 2185 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2186 ;;
2187 alpha*-*-linux*)
2188 # newlib is not 64 bit ready
2189 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2190 ;;
671aa708
NN
2191 alpha*-*-*)
2192 # newlib is not 64 bit ready
cb253473 2193 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2194 ;;
33952f6f 2195 am33_2.0-*-linux*)
cb253473 2196 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2197 ;;
671aa708 2198 sh-*-linux*)
cb253473 2199 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2200 ;;
671aa708 2201 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2202 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2203 noconfigdirs="$noconfigdirs target-examples"
2204 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2205 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2206 noconfigdirs="$noconfigdirs expect dejagnu"
2207 # the C++ libraries don't build on top of CE's C libraries
cb543528 2208 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2209 noconfigdirs="$noconfigdirs target-newlib"
2210 case "${host}" in
2211 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2212 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2213 ;;
2214 esac
2215 ;;
2216 arc-*-*)
cb253473 2217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2218 ;;
ee6a22df 2219 arm-semi-aof )
ee6a22df 2220 ;;
671aa708 2221 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2222 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2223 ;;
b3f8d95d 2224 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2225 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2226 ;;
077fc835
KH
2227 arm*-*-linux-gnueabi)
2228 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2229 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2230 ;;
972974fc 2231 arm*-*-symbianelf*)
cb253473 2232 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2233 ;;
671aa708 2234 arm-*-pe*)
cb253473 2235 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2236 ;;
671aa708 2237 thumb-*-coff)
cb253473 2238 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2239 ;;
2240 thumb-*-elf)
cb253473 2241 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2242 ;;
671aa708 2243 thumb-*-pe)
cb253473 2244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2245 ;;
2246 arm-*-riscix*)
cb253473 2247 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2248 ;;
2249 avr-*-*)
cb253473 2250 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2251 ;;
6b65a26d 2252 bfin-*-*)
8b3c6c5a 2253 noconfigdirs="$noconfigdirs gdb"
61efc800 2254 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2255 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2256 fi
2257 ;;
671aa708 2258 c4x-*-* | tic4x-*-*)
cb253473 2259 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2260 ;;
2261 c54x*-*-* | tic54x-*-*)
cb253473 2262 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2263 ;;
40d64b5a 2264 cris-*-* | crisv32-*-*)
4fab7234 2265 unsupported_languages="$unsupported_languages java"
40d64b5a 2266 case "${target}" in
c2e0d3a9 2267 *-*-aout)
7f26dfa3 2268 unsupported_languages="$unsupported_languages fortran"
4fab7234 2269 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2270 *-*-elf)
7f26dfa3 2271 unsupported_languages="$unsupported_languages fortran"
789ec619 2272 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2273 *-*-linux*)
789ec619 2274 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2275 *)
7f26dfa3 2276 unsupported_languages="$unsupported_languages fortran"
cb253473 2277 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2278 esac
671aa708 2279 ;;
25b656e7 2280 crx-*-*)
cb253473 2281 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2282 ;;
671aa708 2283 d10v-*-*)
cb253473 2284 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2285 ;;
2286 d30v-*-*)
cb253473 2287 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2288 ;;
2289 fr30-*-elf*)
cb253473 2290 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2291 ;;
2292 frv-*-*)
cb253473 2293 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2294 ;;
2295 h8300*-*-*)
cb253473 2296 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2297 ;;
2298 h8500-*-*)
cb253473 2299 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2300 ;;
ee6a22df 2301 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2302 ;;
671aa708
NN
2303 hppa*64*-*-linux* | parisc*64*-*-linux*)
2304 # In this case, it's because the hppa64-linux target is for
2305 # the kernel only at this point and has no libc, and thus no
2306 # headers, crt*.o, etc., all of which are needed by these.
2307 noconfigdirs="$noconfigdirs target-zlib"
2308 ;;
3e732ba0
JDA
2309 parisc*-*-linux* | hppa*-*-linux*)
2310 ;;
671aa708 2311 hppa*-*-*elf* | \
671aa708
NN
2312 hppa*-*-lites* | \
2313 hppa*-*-openbsd* | \
2314 hppa*64*-*-*)
cb253473 2315 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2316 ;;
2a332582
JDA
2317 hppa*-hp-hpux11*)
2318 noconfigdirs="$noconfigdirs ld shellutils"
2319 ;;
671aa708
NN
2320 hppa*-*-*)
2321 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2322 # build on HP-UX 10.20.
cb253473 2323 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2324 ;;
fb87ad5d 2325 i960-*-*)
cb253473 2326 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2327 ;;
671aa708
NN
2328 ia64*-*-elf*)
2329 # No gdb support yet.
b4f96efe 2330 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2331 ;;
2332 ia64*-**-hpux*)
2333 # No gdb or ld support yet.
cb253473 2334 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2335 ;;
ee6a22df 2336 i370-*-opened*)
ee6a22df 2337 ;;
f2a0e225 2338 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2339 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2340 ;;
f2a0e225 2341 i[3456789]86-*-linux*)
671aa708
NN
2342 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2343 # not build java stuff by default.
2344 case "${target}" in
2345 *-*-*libc1*)
cb253473 2346 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2347 esac
2348
2349 # This section makes it possible to build newlib natively on linux.
2350 # If we are using a cross compiler then don't configure newlib.
2351 if test x${is_cross_compiler} != xno ; then
3aa83176 2352 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2353 fi
2354 noconfigdirs="$noconfigdirs target-libgloss"
2355 # If we are not using a cross compiler, do configure newlib.
2356 # Note however, that newlib will only be configured in this situation
2357 # if the --with-newlib option has been given, because otherwise
2358 # 'target-newlib' will appear in skipdirs.
2359 ;;
f2a0e225 2360 i[3456789]86-*-mingw32*)
b91f0a41
CV
2361 target_configdirs="$target_configdirs target-winsup"
2362 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2363 ;;
95af8923
KT
2364 x86_64-*-mingw*)
2365 target_configdirs="$target_configdirs target-winsup"
2366 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2367 ;;
671aa708
NN
2368 *-*-cygwin*)
2369 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2370 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2371 # always build newlib if winsup directory is present.
b91f0a41 2372 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2373 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2374 elif test -d "$srcdir/newlib"; then
b91f0a41 2375 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2376 fi
1c710c3c 2377 ;;
ee6a22df
L
2378 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2379 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2380 ;;
f2a0e225 2381 i[3456789]86-*-pe)
cb253473 2382 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2383 ;;
f2a0e225 2384 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2385 # The linker does not yet know about weak symbols in COFF,
2386 # and is not configured to handle mixed ELF and COFF.
cb253473 2387 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2388 ;;
f2a0e225 2389 i[3456789]86-*-sco*)
cb253473 2390 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2391 ;;
f2a0e225 2392 i[3456789]86-*-solaris2*)
671aa708
NN
2393 noconfigdirs="$noconfigdirs target-libgloss"
2394 ;;
f2a0e225 2395 i[3456789]86-*-sysv4*)
cb253473 2396 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2397 ;;
f2a0e225 2398 i[3456789]86-*-beos*)
cb253473 2399 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2400 ;;
d1f8db0c
PB
2401 i[3456789]86-*-rdos*)
2402 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2403 ;;
fb87ad5d 2404 m32r-*-*)
cb253473 2405 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2406 ;;
671aa708 2407 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2408 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2409 ;;
2410 m68k-*-elf*)
cb253473 2411 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2412 ;;
2413 m68k-*-coff*)
cb253473 2414 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2415 ;;
2416 mcore-*-pe*)
2417 # The EPOC C++ environment does not support exceptions or rtti,
2418 # and so building libstdc++-v3 tends not to always work.
2419 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2420 ;;
2421 mmix-*-*)
4fab7234 2422 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2423 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2424 ;;
2425 mn10200-*-*)
cb253473 2426 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2427 ;;
2428 mn10300-*-*)
cb253473 2429 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2430 ;;
ab34901f 2431 mt-*-*)
79dd769c
AH
2432 noconfigdirs="$noconfigdirs sim"
2433 ;;
671aa708
NN
2434 powerpc-*-aix*)
2435 # copied from rs6000-*-* entry
cb253473 2436 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2437 ;;
2438 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2439 target_configdirs="$target_configdirs target-winsup"
cb253473 2440 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2441 # always build newlib.
2442 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2443 ;;
2444 # This is temporary until we can link against shared libraries
2445 powerpcle-*-solaris*)
cb253473 2446 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2447 ;;
2448 powerpc-*-beos*)
cb253473 2449 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2450 ;;
671aa708 2451 powerpc-*-eabi)
cb253473 2452 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2453 ;;
2454 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2455 ;;
671aa708 2456 rs6000-*-lynxos*)
cb253473 2457 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2458 ;;
2459 rs6000-*-aix*)
cb253473 2460 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2461 ;;
2462 rs6000-*-*)
cb253473 2463 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2464 ;;
2465 m68k-apollo-*)
cb253473 2466 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2467 ;;
2468 mips*-*-irix5*)
cb253473 2469 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2470 ;;
2471 mips*-*-irix6*)
671aa708
NN
2472 # Linking libjava exceeds command-line length limits on at least
2473 # IRIX 6.2, but not on IRIX 6.5.
2474 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2475 # <oldham@codesourcery.com>
cb253473 2476 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2477 ;;
671aa708 2478 mips*-*-bsd*)
cb253473 2479 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2480 ;;
d0fe5ad3 2481 mips64*-*-linux*)
1ee4c5a0 2482 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2483 ;;
671aa708
NN
2484 mips*-*-linux*)
2485 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2486 ;;
2487 mips*-*-*)
cb253473 2488 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2489 ;;
2490 romp-*-*)
cb253473 2491 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2492 ;;
669f01d8 2493 sh-*-* | sh64-*-*)
671aa708 2494 case "${host}" in
f2a0e225
KC
2495 i[3456789]86-*-vsta) ;; # don't add gprof back in
2496 i[3456789]86-*-go32*) ;; # don't add gprof back in
2497 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2498 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2499 esac
cb253473 2500 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2501 ;;
671aa708 2502 sparc-*-elf*)
cb253473 2503 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2504 ;;
2505 sparc64-*-elf*)
cb253473 2506 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2507 ;;
2508 sparclite-*-*)
cb253473 2509 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2510 ;;
2511 sparc-*-sunos4*)
cb253473 2512 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2513 if test x${is_cross_compiler} != xno ; then
2514 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2515 else
2516 use_gnu_ld=no
2517 fi
2518 ;;
bba5e0ca 2519 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2520 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2521 ;;
671aa708
NN
2522 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2523 ;;
85d9c13c 2524 spu-*-*)
ea6f5c57 2525 skipdirs="target-libssp"
85d9c13c 2526 ;;
671aa708 2527 v810-*-*)
cb253473 2528 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2529 ;;
2530 v850-*-*)
cb253473 2531 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2532 ;;
2533 v850e-*-*)
cb253473 2534 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2535 ;;
2536 v850ea-*-*)
cb253473 2537 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2538 ;;
2539 vax-*-vms)
cb253473 2540 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2541 ;;
2542 vax-*-*)
cb253473 2543 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2544 ;;
0d4f1b4e 2545 xtensa-*-*)
cb253473 2546 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2547 ;;
671aa708 2548 ip2k-*-*)
cb253473 2549 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2550 ;;
c3f84f61 2551 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2553 ;;
2554 *-*-lynxos*)
cb253473 2555 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2556 ;;
671aa708 2557 *-*-*)
cb253473 2558 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2559 ;;
2560esac
79c06341 2561
671aa708
NN
2562# If we aren't building newlib, then don't build libgloss, since libgloss
2563# depends upon some newlib header files.
2564case "${noconfigdirs}" in
2565 *target-libgloss*) ;;
2566 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2567esac
2568
671aa708
NN
2569# Work in distributions that contain no compiler tools, like Autoconf.
2570tentative_cc=""
2571host_makefile_frag=/dev/null
2572if test -d ${srcdir}/config ; then
2573case "${host}" in
2574 m68k-hp-hpux*)
2575 # Avoid "too much defining" errors from HPUX compiler.
2576 tentative_cc="cc -Wp,-H256000"
2577 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2578 # If it's HP/UX ar, this should be harmless.
2579 RANLIB="ar ts"
2580 ;;
2581 m68k-apollo-sysv*)
2582 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2583 ;;
2584 m68k-apollo-bsd*)
2585 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2586 # chokes on bfd, the compiler won't let you assign integers to enums, and
2587 # other problems. Defining CC to gcc is a questionable way to say "don't use
2588 # the apollo compiler" (the preferred version of GCC could be called cc,
2589 # or whatever), but I'm not sure leaving CC as cc is any better...
2590 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2591 # Used to have BISON=yacc.
2592 tentative_cc=gcc
2593 ;;
2594 m88k-dg-dgux*)
2595 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2596 ;;
2597 m88k-harris-cxux*)
2598 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2599 tentative_cc="cc -Xa"
2600 host_makefile_frag="config/mh-cxux"
2601 ;;
2602 m88k-motorola-sysv*)
2603 ;;
2604 mips*-dec-ultrix*)
2605 tentative_cc="cc -Wf,-XNg1000"
2606 host_makefile_frag="config/mh-decstation"
2607 ;;
2608 mips*-nec-sysv4*)
2609 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2610 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2611 host_makefile_frag="config/mh-necv4"
2612 ;;
2613 mips*-sgi-irix4*)
2614 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2615 # environment. Also bump switch table size so that cp-parse will
2616 # compile. Bump string length limit so linker builds.
2617 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2618 ;;
2619 mips*-*-sysv4*)
2620 host_makefile_frag="config/mh-sysv4"
2621 ;;
2622 mips*-*-sysv*)
2623 # This is for a MIPS running RISC/os 4.52C.
2624
2625 # This is needed for GDB, but needs to be in the top-level make because
2626 # if a library is compiled with the bsd headers and gets linked with the
2627 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2628 # a different size).
2629 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2630 # known except to select the sysv environment. Could we use /proc instead?
2631 # These "sysv environments" and "bsd environments" often end up being a pain.
2632 #
2633 # This is not part of CFLAGS because perhaps not all C compilers have this
2634 # option.
2635 tentative_cc="cc -systype sysv"
2636 ;;
2637 i370-ibm-opened*)
2638 tentative_cc="c89"
2639 ;;
f2a0e225 2640 i[3456789]86-*-sysv5*)
671aa708
NN
2641 host_makefile_frag="config/mh-sysv5"
2642 ;;
f2a0e225 2643 i[3456789]86-*-dgux*)
671aa708
NN
2644 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2645 host_makefile_frag="config/mh-dgux386"
2646 ;;
f2a0e225 2647 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2648 # The MetaWare compiler will generate a copyright message unless you
2649 # turn it off by adding the -Hnocopyr flag.
2650 tentative_cc="cc -Hnocopyr"
2651 ;;
f2a0e225 2652 i[3456789]86-ncr-sysv4*)
671aa708
NN
2653 # for an NCR 3000 (i486/SVR4) system.
2654 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2655 # This compiler not only emits obnoxious copyright messages every time
2656 # you run it, but it chokes and dies on a whole bunch of GNU source
2657 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2658 tentative_cc="/usr/ccs/ATT/cc"
2659 host_makefile_frag="config/mh-ncr3000"
2660 ;;
f2a0e225 2661 i[3456789]86-*-sco3.2v5*)
671aa708 2662 ;;
f2a0e225 2663 i[3456789]86-*-sco*)
671aa708
NN
2664 # The native C compiler botches some simple uses of const. Unfortunately,
2665 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2666 tentative_cc="cc -Dconst="
2667 host_makefile_frag="config/mh-sco"
2668 ;;
f2a0e225 2669 i[3456789]86-*-udk*)
671aa708
NN
2670 host_makefile_frag="config/mh-sysv5"
2671 ;;
f2a0e225 2672 i[3456789]86-*-solaris2*)
671aa708
NN
2673 host_makefile_frag="config/mh-sysv4"
2674 ;;
f2a0e225 2675 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2676 host_makefile_frag="config/mh-djgpp"
2677 ;;
2678 *-cygwin*)
2679 host_makefile_frag="config/mh-cygwin"
2680 ;;
2681 *-mingw32*)
671aa708 2682 ;;
95af8923
KT
2683 *-mingw64*)
2684 ;;
671aa708
NN
2685 *-interix*)
2686 host_makefile_frag="config/mh-interix"
2687 ;;
2688 vax-*-ultrix2*)
2689 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2690 tentative_cc=gcc
2691 ;;
2692 *-*-solaris2*)
2693 host_makefile_frag="config/mh-solaris"
2694 ;;
2695 m68k-sun-sunos*)
2696 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2697 # without overflowing the jump tables (-J says to use a 32 bit table)
2698 tentative_cc="cc -J"
2699 ;;
2700 *-hp-hpux*)
2701 tentative_cc="cc -Wp,-H256000"
2702 ;;
2703 *-*-hiux*)
2704 tentative_cc="cc -Wp,-H256000"
2705 ;;
2706 rs6000-*-lynxos*)
2707 # /bin/cc is less than useful for our purposes. Always use GCC
2708 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2709 host_makefile_frag="config/mh-lynxrs6k"
2710 ;;
45f366ab 2711 powerpc-*-darwin*)
be8fff81
RB
2712 host_makefile_frag="config/mh-ppc-darwin"
2713 ;;
d19bca38
PB
2714 powerpc-*-aix*)
2715 host_makefile_frag="config/mh-ppc-aix"
2716 ;;
2717 rs6000-*-aix*)
2718 host_makefile_frag="config/mh-ppc-aix"
2719 ;;
671aa708
NN
2720 *-*-lynxos*)
2721 # /bin/cc is less than useful for our purposes. Always use GCC
2722 tentative_cc="/bin/gcc"
2723 ;;
2724 *-*-sysv4*)
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
95c53c62
RS
2727 # This is placed last to prevent interfering with the cases above.
2728 i[3456789]86-*-*)
2729 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2730 host_makefile_frag="config/mh-x86omitfp"
2731 ;;
671aa708
NN
2732esac
2733fi
2734
55ffb5ed
NN
2735# If we aren't going to be using gcc, see if we can extract a definition
2736# of CC from the fragment.
2737# Actually, use the 'pre-extracted' version above.
2738if test -z "${CC}" && test "${build}" = "${host}" ; then
2739 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2740 found=
2741 for dir in $PATH; do
2742 test -z "$dir" && dir=.
2743 if test -f $dir/gcc; then
2744 found=yes
2745 break
2746 fi
2747 done
2748 IFS="$save_ifs"
2749 if test -z "${found}" && test -n "${tentative_cc}" ; then
2750 CC=$tentative_cc
2751 fi
2752fi
2753
2754if test "${build}" != "${host}" ; then
55ffb5ed 2755 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2756else
fb0103e5 2757 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2758fi
2759
2760ac_ext=c
1c710c3c
DJ
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768echo "$as_me:$LINENO: checking for $ac_word" >&5
2769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770if test "${ac_cv_prog_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787done
2788done
2789
2790fi
2791fi
2792CC=$ac_cv_prog_CC
2793if test -n "$CC"; then
2794 echo "$as_me:$LINENO: result: $CC" >&5
2795echo "${ECHO_T}$CC" >&6
2796else
2797 echo "$as_me:$LINENO: result: no" >&5
2798echo "${ECHO_T}no" >&6
2799fi
2800
2801fi
2802if test -z "$ac_cv_prog_CC"; then
2803 ac_ct_CC=$CC
fb0103e5
RG
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805set dummy gcc; ac_word=$2
1c710c3c
DJ
2806echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_CC="gcc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826done
2827
2828fi
2829fi
2830ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831if test -n "$ac_ct_CC"; then
2832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2833echo "${ECHO_T}$ac_ct_CC" >&6
2834else
2835 echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6
2837fi
2838
2839 CC=$ac_ct_CC
2840else
2841 CC="$ac_cv_prog_CC"
2842fi
2843
2844if test -z "$CC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2847set dummy ${ac_tool_prefix}cc; ac_word=$2
2848echo "$as_me:$LINENO: checking for $ac_word" >&5
2849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2852else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855else
1c710c3c
DJ
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867done
2868done
2869
0b0dc272 2870fi
0b0dc272 2871fi
1c710c3c 2872CC=$ac_cv_prog_CC
af71363e 2873if test -n "$CC"; then
1c710c3c
DJ
2874 echo "$as_me:$LINENO: result: $CC" >&5
2875echo "${ECHO_T}$CC" >&6
2876else
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879fi
2880
2881fi
2882if test -z "$ac_cv_prog_CC"; then
2883 ac_ct_CC=$CC
2884 # Extract the first word of "cc", so it can be a program name with args.
2885set dummy cc; ac_word=$2
2886echo "$as_me:$LINENO: checking for $ac_word" >&5
2887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 if test -n "$ac_ct_CC"; then
2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CC="cc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905done
2906done
2907
2908fi
2909fi
2910ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911if test -n "$ac_ct_CC"; then
2912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913echo "${ECHO_T}$ac_ct_CC" >&6
0b0dc272 2914else
1c710c3c
DJ
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
0b0dc272
AM
2917fi
2918
1c710c3c
DJ
2919 CC=$ac_ct_CC
2920else
2921 CC="$ac_cv_prog_CC"
2922fi
2923
2924fi
55ffb5ed
NN
2925if test -z "$CC"; then
2926 # Extract the first word of "cc", so it can be a program name with args.
2927set dummy cc; ac_word=$2
1c710c3c
DJ
2928echo "$as_me:$LINENO: checking for $ac_word" >&5
2929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930if test "${ac_cv_prog_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2932else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
0b0dc272 2936 ac_prog_rejected=no
1c710c3c
DJ
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2945 ac_prog_rejected=yes
2946 continue
2947 fi
2948 ac_cv_prog_CC="cc"
2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952done
2953done
2954
55ffb5ed
NN
2955if test $ac_prog_rejected = yes; then
2956 # We found a bogon in the path, so make sure we never use it.
2957 set dummy $ac_cv_prog_CC
2958 shift
1c710c3c 2959 if test $# != 0; then
55ffb5ed
NN
2960 # We chose a different compiler from the bogus one.
2961 # However, it has the same basename, so the bogon will be chosen
2962 # first if we set CC to just the basename; use the full file name.
2963 shift
1c710c3c 2964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2965 fi
2966fi
2967fi
2968fi
1c710c3c 2969CC=$ac_cv_prog_CC
55ffb5ed 2970if test -n "$CC"; then
1c710c3c
DJ
2971 echo "$as_me:$LINENO: result: $CC" >&5
2972echo "${ECHO_T}$CC" >&6
55ffb5ed 2973else
1c710c3c
DJ
2974 echo "$as_me:$LINENO: result: no" >&5
2975echo "${ECHO_T}no" >&6
55ffb5ed
NN
2976fi
2977
1c710c3c
DJ
2978fi
2979if test -z "$CC"; then
2980 if test -n "$ac_tool_prefix"; then
2981 for ac_prog in cl
2982 do
2983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2985echo "$as_me:$LINENO: checking for $ac_word" >&5
2986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987if test "${ac_cv_prog_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2989else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
1c710c3c
DJ
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004done
3005done
3006
55ffb5ed
NN
3007fi
3008fi
1c710c3c 3009CC=$ac_cv_prog_CC
55ffb5ed 3010if test -n "$CC"; then
1c710c3c
DJ
3011 echo "$as_me:$LINENO: result: $CC" >&5
3012echo "${ECHO_T}$CC" >&6
a4b9e93e 3013else
1c710c3c
DJ
3014 echo "$as_me:$LINENO: result: no" >&5
3015echo "${ECHO_T}no" >&6
fb0103e5 3016fi
af71363e 3017
1c710c3c
DJ
3018 test -n "$CC" && break
3019 done
af71363e 3020fi
1c710c3c
DJ
3021if test -z "$CC"; then
3022 ac_ct_CC=$CC
3023 for ac_prog in cl
3024do
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026set dummy $ac_prog; ac_word=$2
3027echo "$as_me:$LINENO: checking for $ac_word" >&5
3028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3031else
1c710c3c
DJ
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3034else
1c710c3c
DJ
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_CC="$ac_prog"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046done
3047done
3048
af71363e
AS
3049fi
3050fi
1c710c3c
DJ
3051ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052if test -n "$ac_ct_CC"; then
3053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3054echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3055else
1c710c3c
DJ
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
af71363e 3058fi
0b0dc272 3059
1c710c3c
DJ
3060 test -n "$ac_ct_CC" && break
3061done
3062
3063 CC=$ac_ct_CC
3064fi
3065
3066fi
3067
3068
3069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3070See \`config.log' for more details." >&5
3071echo "$as_me: error: no acceptable C compiler found in \$PATH
3072See \`config.log' for more details." >&2;}
3073 { (exit 1); exit 1; }; }
3074
3075# Provide some information about the compiler.
3076echo "$as_me:$LINENO:" \
3077 "checking for C compiler version" >&5
3078ac_compiler=`set X $ac_compile; echo $2`
3079{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3080 (eval $ac_compiler --version </dev/null >&5) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }
3084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3085 (eval $ac_compiler -v </dev/null >&5) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }
3089{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3090 (eval $ac_compiler -V </dev/null >&5) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }
3094
3095cat >conftest.$ac_ext <<_ACEOF
3096/* confdefs.h. */
3097_ACEOF
3098cat confdefs.h >>conftest.$ac_ext
3099cat >>conftest.$ac_ext <<_ACEOF
3100/* end confdefs.h. */
3101
3102int
3103main ()
3104{
3105
3106 ;
3107 return 0;
3108}
3109_ACEOF
3110ac_clean_files_save=$ac_clean_files
3111ac_clean_files="$ac_clean_files a.out a.exe b.out"
3112# Try to create an executable without -o first, disregard a.out.
3113# It will help us diagnose broken compilers, and finding out an intuition
3114# of exeext.
3115echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3116echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3117ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3118if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3119 (eval $ac_link_default) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; then
3123 # Find the output, starting from the most likely. This scheme is
3124# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3125# resort.
3126
3127# Be careful to initialize this variable, since it used to be cached.
3128# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3129ac_cv_exeext=
3130# b.out is created by i960 compilers.
3131for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3132do
3133 test -f "$ac_file" || continue
3134 case $ac_file in
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3136 ;;
3137 conftest.$ac_ext )
3138 # This is the source file.
3139 ;;
3140 [ab].out )
3141 # We found the default executable, but exeext='' is most
3142 # certainly right.
3143 break;;
3144 *.* )
3145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146 # FIXME: I believe we export ac_cv_exeext for Libtool,
3147 # but it would be cool to find out if it's true. Does anybody
3148 # maintain Libtool? --akim.
3149 export ac_cv_exeext
3150 break;;
3151 * )
3152 break;;
3153 esac
3154done
3155else
3156 echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3160See \`config.log' for more details." >&5
3161echo "$as_me: error: C compiler cannot create executables
3162See \`config.log' for more details." >&2;}
3163 { (exit 77); exit 77; }; }
3164fi
3165
3166ac_exeext=$ac_cv_exeext
3167echo "$as_me:$LINENO: result: $ac_file" >&5
3168echo "${ECHO_T}$ac_file" >&6
3169
3170# Check the compiler produces executables we can run. If not, either
3171# the compiler is broken, or we cross compile.
3172echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3173echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3174# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3175# If not cross compiling, check that we can run a simple program.
3176if test "$cross_compiling" != yes; then
3177 if { ac_try='./$ac_file'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 cross_compiling=no
3184 else
3185 if test "$cross_compiling" = maybe; then
3186 cross_compiling=yes
3187 else
3188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3189If you meant to cross compile, use \`--host'.
3190See \`config.log' for more details." >&5
3191echo "$as_me: error: cannot run C compiled programs.
3192If you meant to cross compile, use \`--host'.
3193See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3195 fi
3196 fi
3197fi
3198echo "$as_me:$LINENO: result: yes" >&5
3199echo "${ECHO_T}yes" >&6
3200
3201rm -f a.out a.exe conftest$ac_cv_exeext b.out
3202ac_clean_files=$ac_clean_files_save
3203# Check the compiler produces executables we can run. If not, either
3204# the compiler is broken, or we cross compile.
3205echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3206echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3207echo "$as_me:$LINENO: result: $cross_compiling" >&5
3208echo "${ECHO_T}$cross_compiling" >&6
3209
3210echo "$as_me:$LINENO: checking for suffix of executables" >&5
3211echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3213 (eval $ac_link) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; then
3217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3218# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3219# work properly (i.e., refer to `conftest.exe'), while it won't with
3220# `rm'.
3221for ac_file in conftest.exe conftest conftest.*; do
3222 test -f "$ac_file" || continue
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 export ac_cv_exeext
3227 break;;
3228 * ) break;;
3229 esac
3230done
af71363e 3231else
1c710c3c
DJ
3232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3233See \`config.log' for more details." >&5
3234echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3235See \`config.log' for more details." >&2;}
3236 { (exit 1); exit 1; }; }
3237fi
3238
3239rm -f conftest$ac_cv_exeext
3240echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3241echo "${ECHO_T}$ac_cv_exeext" >&6
3242
3243rm -f conftest.$ac_ext
3244EXEEXT=$ac_cv_exeext
3245ac_exeext=$EXEEXT
3246echo "$as_me:$LINENO: checking for suffix of object files" >&5
3247echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3248if test "${ac_cv_objext+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251 cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
3257
3258int
3259main ()
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266rm -f conftest.o conftest.obj
3267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; then
3272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 break;;
3277 esac
3278done
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3284See \`config.log' for more details." >&5
3285echo "$as_me: error: cannot compute suffix of object files: cannot compile
3286See \`config.log' for more details." >&2;}
3287 { (exit 1); exit 1; }; }
3288fi
3289
3290rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291fi
3292echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3293echo "${ECHO_T}$ac_cv_objext" >&6
3294OBJEXT=$ac_cv_objext
3295ac_objext=$OBJEXT
3296echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3297echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3298if test "${ac_cv_c_compiler_gnu+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301 cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311#ifndef __GNUC__
3312 choke me
3313#endif
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319rm -f conftest.$ac_objext
3320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321 (eval $ac_compile) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag"
3329 || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 ac_compiler_gnu=yes
3342else
3343 echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346ac_compiler_gnu=no
3347fi
3348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3349ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350
3351fi
3352echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3353echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3354GCC=`test $ac_compiler_gnu = yes && echo yes`
3355ac_test_CFLAGS=${CFLAGS+set}
3356ac_save_CFLAGS=$CFLAGS
3357CFLAGS="-g"
3358echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3359echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3360if test "${ac_cv_prog_cc_g+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363 cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369
3370int
3371main ()
3372{
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378rm -f conftest.$ac_objext
3379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
55ffb5ed
NN
3400 ac_cv_prog_cc_g=yes
3401else
1c710c3c
DJ
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3404
1c710c3c 3405ac_cv_prog_cc_g=no
0b0dc272 3406fi
1c710c3c
DJ
3407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408fi
3409echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3410echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3411if test "$ac_test_CFLAGS" = set; then
1c710c3c 3412 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3413elif test $ac_cv_prog_cc_g = yes; then
3414 if test "$GCC" = yes; then
3415 CFLAGS="-g -O2"
3416 else
3417 CFLAGS="-g"
3418 fi
3419else
3420 if test "$GCC" = yes; then
3421 CFLAGS="-O2"
3422 else
3423 CFLAGS=
3424 fi
3425fi
1c710c3c
DJ
3426echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3427echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3428if test "${ac_cv_prog_cc_stdc+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431 ac_cv_prog_cc_stdc=no
3432ac_save_CC=$CC
3433cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#include <stdarg.h>
3440#include <stdio.h>
3441#include <sys/types.h>
3442#include <sys/stat.h>
3443/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444struct buf { int x; };
3445FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446static char *e (p, i)
3447 char **p;
3448 int i;
3449{
3450 return p[i];
3451}
3452static char *f (char * (*g) (char **, int), char **p, ...)
3453{
3454 char *s;
3455 va_list v;
3456 va_start (v,p);
3457 s = g (p, va_arg (v,int));
3458 va_end (v);
3459 return s;
3460}
3461
3462/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463 function prototypes and stuff, but not '\xHH' hex character constants.
3464 These don't provoke an error unfortunately, instead are silently treated
3465 as 'x'. The following induces an error, until -std1 is added to get
3466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467 array size at least. It's necessary to write '\x00'==0 to get something
3468 that's true only with -std1. */
3469int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3470
3471int test (int i, double x);
3472struct s1 {int (*f) (int a);};
3473struct s2 {int (*f) (double a);};
3474int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3475int argc;
3476char **argv;
3477int
3478main ()
3479{
3480return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3481 ;
3482 return 0;
3483}
3484_ACEOF
3485# Don't try gcc -ansi; that turns off useful extensions and
3486# breaks some systems' header files.
3487# AIX -qlanglvl=ansi
3488# Ultrix and OSF/1 -std1
3489# HP-UX 10.20 and later -Ae
3490# HP-UX older versions -Aa -D_HPUX_SOURCE
3491# SVR4 -Xc -D__EXTENSIONS__
3492for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3493do
3494 CC="$ac_save_CC $ac_arg"
3495 rm -f conftest.$ac_objext
3496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497 (eval $ac_compile) 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -z "$ac_c_werror_flag"
3505 || test ! -s conftest.err'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 (eval $ac_try) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; } &&
3511 { ac_try='test -s conftest.$ac_objext'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 (eval $ac_try) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3517 ac_cv_prog_cc_stdc=$ac_arg
3518break
3519else
3520 echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523fi
3524rm -f conftest.err conftest.$ac_objext
3525done
3526rm -f conftest.$ac_ext conftest.$ac_objext
3527CC=$ac_save_CC
3528
3529fi
3530
3531case "x$ac_cv_prog_cc_stdc" in
3532 x|xno)
3533 echo "$as_me:$LINENO: result: none needed" >&5
3534echo "${ECHO_T}none needed" >&6 ;;
3535 *)
3536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3537echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3538 CC="$CC $ac_cv_prog_cc_stdc" ;;
3539esac
3540
3541# Some people use a C++ compiler to compile C. Since we use `exit',
3542# in C++ we need to declare it. In case someone uses the same compiler
3543# for both compiling C and C++ we need to have the C++ compiler decide
3544# the declaration of exit, since it's the most demanding environment.
3545cat >conftest.$ac_ext <<_ACEOF
3546#ifndef __cplusplus
3547 choke me
3548#endif
3549_ACEOF
3550rm -f conftest.$ac_objext
3551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -z "$ac_c_werror_flag"
3560 || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 for ac_declaration in \
3573 '' \
3574 'extern "C" void std::exit (int) throw (); using std::exit;' \
3575 'extern "C" void std::exit (int); using std::exit;' \
3576 'extern "C" void exit (int) throw ();' \
3577 'extern "C" void exit (int);' \
3578 'void exit (int);'
3579do
3580 cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
3586$ac_declaration
3587#include <stdlib.h>
3588int
3589main ()
3590{
3591exit (42);
3592 ;
3593 return 0;
3594}
3595_ACEOF
3596rm -f conftest.$ac_objext
3597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 :
3619else
3620 echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623continue
3624fi
3625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632$ac_declaration
3633int
3634main ()
3635{
3636exit (42);
3637 ;
3638 return 0;
3639}
3640_ACEOF
3641rm -f conftest.$ac_objext
3642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 break
3664else
3665 echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668fi
3669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3670done
3671rm -f conftest*
3672if test -n "$ac_declaration"; then
3673 echo '#ifdef __cplusplus' >>confdefs.h
3674 echo $ac_declaration >>confdefs.h
3675 echo '#endif' >>confdefs.h
3676fi
3677
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682fi
3683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684ac_ext=c
3685ac_cpp='$CPP $CPPFLAGS'
3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688ac_compiler_gnu=$ac_cv_c_compiler_gnu
55ffb5ed 3689
c3a86da9
DJ
3690ac_ext=cc
3691ac_cpp='$CXXCPP $CPPFLAGS'
3692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3695if test -n "$ac_tool_prefix"; then
3696 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3697 do
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700echo "$as_me:$LINENO: checking for $ac_word" >&5
3701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702if test "${ac_cv_prog_CXX+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 if test -n "$CXX"; then
3706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719done
3720done
55ffb5ed 3721
c3a86da9
DJ
3722fi
3723fi
3724CXX=$ac_cv_prog_CXX
3725if test -n "$CXX"; then
3726 echo "$as_me:$LINENO: result: $CXX" >&5
3727echo "${ECHO_T}$CXX" >&6
3728else
3729 echo "$as_me:$LINENO: result: no" >&5
3730echo "${ECHO_T}no" >&6
3731fi
3732
3733 test -n "$CXX" && break
3734 done
3735fi
3736if test -z "$CXX"; then
3737 ac_ct_CXX=$CXX
3738 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3739do
3740 # Extract the first word of "$ac_prog", so it can be a program name with args.
3741set dummy $ac_prog; ac_word=$2
3742echo "$as_me:$LINENO: checking for $ac_word" >&5
3743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 if test -n "$ac_ct_CXX"; then
3748 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3749else
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_CXX="$ac_prog"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761done
3762done
3763
3764fi
3765fi
3766ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3767if test -n "$ac_ct_CXX"; then
3768 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3769echo "${ECHO_T}$ac_ct_CXX" >&6
3770else
3771 echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
3773fi
3774
3775 test -n "$ac_ct_CXX" && break
3776done
3777test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3778
3779 CXX=$ac_ct_CXX
3780fi
3781
3782
3783# Provide some information about the compiler.
3784echo "$as_me:$LINENO:" \
3785 "checking for C++ compiler version" >&5
3786ac_compiler=`set X $ac_compile; echo $2`
3787{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3788 (eval $ac_compiler --version </dev/null >&5) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3792{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3793 (eval $ac_compiler -v </dev/null >&5) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }
3797{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3798 (eval $ac_compiler -V </dev/null >&5) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }
3802
3803echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3804echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3805if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807else
3808 cat >conftest.$ac_ext <<_ACEOF
3809/* confdefs.h. */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h. */
3814
3815int
3816main ()
3817{
3818#ifndef __GNUC__
3819 choke me
3820#endif
3821
3822 ;
3823 return 0;
3824}
3825_ACEOF
3826rm -f conftest.$ac_objext
3827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_cxx_werror_flag"
3836 || test ! -s conftest.err'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 ac_compiler_gnu=yes
3849else
3850 echo "$as_me: failed program was:" >&5
3851sed 's/^/| /' conftest.$ac_ext >&5
3852
3853ac_compiler_gnu=no
3854fi
3855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3857
3858fi
3859echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3860echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3861GXX=`test $ac_compiler_gnu = yes && echo yes`
3862ac_test_CXXFLAGS=${CXXFLAGS+set}
3863ac_save_CXXFLAGS=$CXXFLAGS
3864CXXFLAGS="-g"
3865echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3866echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3867if test "${ac_cv_prog_cxx_g+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 cat >conftest.$ac_ext <<_ACEOF
3871/* confdefs.h. */
3872_ACEOF
3873cat confdefs.h >>conftest.$ac_ext
3874cat >>conftest.$ac_ext <<_ACEOF
3875/* end confdefs.h. */
3876
3877int
3878main ()
3879{
3880
3881 ;
3882 return 0;
3883}
3884_ACEOF
3885rm -f conftest.$ac_objext
3886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3887 (eval $ac_compile) 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_cxx_werror_flag"
3895 || test ! -s conftest.err'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; } &&
3901 { ac_try='test -s conftest.$ac_objext'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; }; then
3907 ac_cv_prog_cxx_g=yes
3908else
3909 echo "$as_me: failed program was:" >&5
3910sed 's/^/| /' conftest.$ac_ext >&5
3911
3912ac_cv_prog_cxx_g=no
3913fi
3914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3915fi
3916echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3917echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3918if test "$ac_test_CXXFLAGS" = set; then
3919 CXXFLAGS=$ac_save_CXXFLAGS
3920elif test $ac_cv_prog_cxx_g = yes; then
3921 if test "$GXX" = yes; then
3922 CXXFLAGS="-g -O2"
3923 else
3924 CXXFLAGS="-g"
3925 fi
3926else
3927 if test "$GXX" = yes; then
3928 CXXFLAGS="-O2"
3929 else
3930 CXXFLAGS=
23f6b2f9 3931 fi
c3a86da9
DJ
3932fi
3933for ac_declaration in \
3934 '' \
3935 'extern "C" void std::exit (int) throw (); using std::exit;' \
3936 'extern "C" void std::exit (int); using std::exit;' \
3937 'extern "C" void exit (int) throw ();' \
3938 'extern "C" void exit (int);' \
3939 'void exit (int);'
3940do
3941 cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h. */
3947$ac_declaration
3948#include <stdlib.h>
3949int
3950main ()
3951{
3952exit (42);
3953 ;
3954 return 0;
3955}
3956_ACEOF
3957rm -f conftest.$ac_objext
3958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959 (eval $ac_compile) 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } &&
3966 { ac_try='test -z "$ac_cxx_werror_flag"
3967 || test ! -s conftest.err'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; } &&
3973 { ac_try='test -s conftest.$ac_objext'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 (eval $ac_try) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 :
3980else
3981 echo "$as_me: failed program was:" >&5
3982sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 3983
c3a86da9
DJ
3984continue
3985fi
3986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3987 cat >conftest.$ac_ext <<_ACEOF
3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
3993$ac_declaration
3994int
3995main ()
3996{
3997exit (42);
3998 ;
3999 return 0;
4000}
4001_ACEOF
4002rm -f conftest.$ac_objext
4003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -z "$ac_cxx_werror_flag"
4012 || test ! -s conftest.err'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 (eval $ac_try) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 break
4025else
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029fi
4030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4031done
4032rm -f conftest*
4033if test -n "$ac_declaration"; then
4034 echo '#ifdef __cplusplus' >>confdefs.h
4035 echo $ac_declaration >>confdefs.h
4036 echo '#endif' >>confdefs.h
4037fi
4038
4039ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045
4046# We must set the default linker to the linker used by gcc for the correct
4047# operation of libtool. If LD is not defined and we are using gcc, try to
4048# set the LD default to the ld used by gcc.
4049if test -z "$LD"; then
4050 if test "$GCC" = yes; then
4051 case $build in
4052 *-*-mingw*)
4053 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4054 *)
4055 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4056 esac
4057 case $gcc_prog_ld in
4058 # Accept absolute paths.
4059 [\\/]* | [A-Za-z]:[\\/]*)
4060 LD="$gcc_prog_ld" ;;
4061 esac
4062 fi
23f6b2f9
PB
4063fi
4064
23f6b2f9
PB
4065
4066
55ffb5ed 4067
1c710c3c
DJ
4068if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4070set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
1c710c3c
DJ
4071echo "$as_me:$LINENO: checking for $ac_word" >&5
4072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073if test "${ac_cv_prog_GNATBIND+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4075else
4076 if test -n "$GNATBIND"; then
4077 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4078else
1c710c3c
DJ
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090done
4091done
4092
55ffb5ed
NN
4093fi
4094fi
1c710c3c 4095GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4096if test -n "$GNATBIND"; then
1c710c3c
DJ
4097 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4098echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4099else
1c710c3c
DJ
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
55ffb5ed
NN
4102fi
4103
1c710c3c 4104fi
55ffb5ed 4105if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4106 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4107 # Extract the first word of "gnatbind", so it can be a program name with args.
4108set dummy gnatbind; ac_word=$2
1c710c3c
DJ
4109echo "$as_me:$LINENO: checking for $ac_word" >&5
4110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4113else
1c710c3c
DJ
4114 if test -n "$ac_ct_GNATBIND"; then
4115 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4116else
1c710c3c
DJ
4117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH
4119do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4127 fi
4128done
4129done
4130
4131 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4132fi
4133fi
1c710c3c
DJ
4134ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4135if test -n "$ac_ct_GNATBIND"; then
4136 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4137echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4138else
1c710c3c
DJ
4139 echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
55ffb5ed
NN
4141fi
4142
1c710c3c 4143 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4144else
1c710c3c 4145 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4146fi
4147
1c710c3c
DJ
4148if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4150set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
1c710c3c
DJ
4151echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4155else
4156 if test -n "$GNATMAKE"; then
4157 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4158else
1c710c3c
DJ
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170done
4171done
4172
5305be7e
RG
4173fi
4174fi
1c710c3c 4175GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4176if test -n "$GNATMAKE"; then
1c710c3c
DJ
4177 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4178echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4179else
1c710c3c
DJ
4180 echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
5305be7e
RG
4182fi
4183
1c710c3c 4184fi
5305be7e 4185if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4186 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4187 # Extract the first word of "gnatmake", so it can be a program name with args.
4188set dummy gnatmake; ac_word=$2
1c710c3c
DJ
4189echo "$as_me:$LINENO: checking for $ac_word" >&5
4190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4193else
1c710c3c
DJ
4194 if test -n "$ac_ct_GNATMAKE"; then
4195 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4196else
1c710c3c
DJ
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208done
4209done
4210
4211 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4212fi
4213fi
1c710c3c
DJ
4214ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4215if test -n "$ac_ct_GNATMAKE"; then
4216 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4217echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4218else
1c710c3c
DJ
4219 echo "$as_me:$LINENO: result: no" >&5
4220echo "${ECHO_T}no" >&6
5305be7e
RG
4221fi
4222
1c710c3c 4223 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4224else
1c710c3c 4225 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4226fi
4227
1c710c3c
DJ
4228echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4229echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4230if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4232else
4233 cat >conftest.adb <<EOF
4234procedure conftest is begin null; end conftest;
4235EOF
4236acx_cv_cc_gcc_supports_ada=no
4237# There is a bug in old released versions of GCC which causes the
4238# driver to exit successfully when the appropriate language module
4239# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4240# Therefore we must check for the error message as well as an
4241# unsuccessful exit.
1db673ca
RO
4242# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4243# given a .adb file, but produce no object file. So we must check
4244# if an object file was really produced to guard against this.
55ffb5ed 4245errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4246if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4247 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4248fi
4249rm -f conftest.*
4250fi
1c710c3c
DJ
4251echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4252echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4253
5305be7e 4254if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4255 have_gnat=yes
4256else
4257 have_gnat=no
4258fi
4259
1c710c3c
DJ
4260echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4261echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4262if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4264else
4265 echo abfoo >t1
4266 echo cdfoo >t2
4267 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4268 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4269 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4270 :
4271 else
4272 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4273 fi
4274 fi
a76494aa
PB
4275 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4276 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4277 :
a76494aa
PB
4278 else
4279 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4280 fi
4281 fi
4282 rm t1 t2
4283
4284fi
1c710c3c
DJ
4285echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4286echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4287do_compare="$gcc_cv_prog_cmp_skip"
4288
4289
55ffb5ed 4290
bebf829d 4291# Check for GMP and MPFR
e69bf64b 4292gmplibs="-lmpfr -lgmp"
6de9cd9a 4293gmpinc=
e69bf64b
PB
4294have_gmp=no
4295
bebf829d
PB
4296# Specify a location for mpfr
4297# check for this first so it ends up on the link line before gmp.
1c710c3c 4298
bebf829d
PB
4299# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4300if test "${with_mpfr_dir+set}" = set; then
4301 withval="$with_mpfr_dir"
1c710c3c
DJ
4302 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4303Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4304echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4305Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4306 { (exit 1); exit 1; }; }
4307fi;
bebf829d
PB
4308
4309
bebf829d
PB
4310# Check whether --with-mpfr or --without-mpfr was given.
4311if test "${with_mpfr+set}" = set; then
4312 withval="$with_mpfr"
1c710c3c
DJ
4313
4314fi;
bebf829d 4315
8a877c9c
KG
4316# Check whether --with-mpfr_include or --without-mpfr_include was given.
4317if test "${with_mpfr_include+set}" = set; then
4318 withval="$with_mpfr_include"
1c710c3c
DJ
4319
4320fi;
8a877c9c
KG
4321
4322# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4323if test "${with_mpfr_lib+set}" = set; then
4324 withval="$with_mpfr_lib"
8a877c9c 4325
1c710c3c 4326fi;
bebf829d
PB
4327
4328if test "x$with_mpfr" != x; then
4329 gmplibs="-L$with_mpfr/lib $gmplibs"
4330 gmpinc="-I$with_mpfr/include"
4331fi
8a877c9c
KG
4332if test "x$with_mpfr_include" != x; then
4333 gmpinc="-I$with_mpfr_include"
4334fi
4335if test "x$with_mpfr_lib" != x; then
4336 gmplibs="-L$with_mpfr_lib $gmplibs"
4337fi
e69bf64b
PB
4338if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4339 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4340 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4341 # Do not test the mpfr version. Assume that it is sufficient, since
4342 # it is in the source tree, and the library has not been built yet
4343 # but it would be included on the link line in the version check below
4344 # hence making the test fail.
4345 have_gmp=yes
4346fi
bebf829d 4347
6de9cd9a 4348# Specify a location for gmp
1c710c3c 4349
6de9cd9a
DN
4350# Check whether --with-gmp-dir or --without-gmp-dir was given.
4351if test "${with_gmp_dir+set}" = set; then
4352 withval="$with_gmp_dir"
1c710c3c
DJ
4353 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4354Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4355echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4356Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4357 { (exit 1); exit 1; }; }
4358fi;
6de9cd9a 4359
6de9cd9a
DN
4360
4361# Check whether --with-gmp or --without-gmp was given.
4362if test "${with_gmp+set}" = set; then
4363 withval="$with_gmp"
1c710c3c
DJ
4364
4365fi;
6de9cd9a 4366
8a877c9c
KG
4367# Check whether --with-gmp_include or --without-gmp_include was given.
4368if test "${with_gmp_include+set}" = set; then
4369 withval="$with_gmp_include"
1c710c3c
DJ
4370
4371fi;
8a877c9c
KG
4372
4373# Check whether --with-gmp_lib or --without-gmp_lib was given.
4374if test "${with_gmp_lib+set}" = set; then
4375 withval="$with_gmp_lib"
8a877c9c 4376
1c710c3c 4377fi;
8a877c9c 4378
6de9cd9a 4379
bebf829d
PB
4380if test "x$with_gmp" != x; then
4381 gmplibs="-L$with_gmp/lib $gmplibs"
4382 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4383fi
8a877c9c
KG
4384if test "x$with_gmp_include" != x; then
4385 gmpinc="-I$with_gmp_include $gmpinc"
4386fi
4387if test "x$with_gmp_lib" != x; then
4388 gmplibs="-L$with_gmp_lib $gmplibs"
4389fi
e69bf64b
PB
4390if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4391 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4392 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4393 # Do not test the gmp version. Assume that it is sufficient, since
4394 # it is in the source tree, and the library has not been built yet
4395 # but it would be included on the link line in the version check below
4396 # hence making the test fail.
4397 have_gmp=yes
4398fi
6de9cd9a 4399
d943d7c4 4400if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4401 have_gmp=yes
4402 saved_CFLAGS="$CFLAGS"
4403 CFLAGS="$CFLAGS $gmpinc"
4404 # Check GMP actually works
1c710c3c
DJ
4405 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4406echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4407
4408cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
6de9cd9a 4414#include "gmp.h"
1c710c3c
DJ
4415int
4416main ()
4417{
6de9cd9a 4418
e69bf64b
PB
4419 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4420 choke me
4421 #endif
1c710c3c
DJ
4422
4423 ;
4424 return 0;
4425}
4426_ACEOF
4427rm -f conftest.$ac_objext
4428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 echo "$as_me:$LINENO: result: yes" >&5
4450echo "${ECHO_T}yes" >&6
4451else
4452 echo "$as_me: failed program was:" >&5
4453sed 's/^/| /' conftest.$ac_ext >&5
4454
4455echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; have_gmp=no
4457fi
4458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4459
e69bf64b
PB
4460 if test x"$have_gmp" = xyes; then
4461 saved_LIBS="$LIBS"
4462 LIBS="$LIBS $gmplibs"
1c710c3c
DJ
4463 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4464echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4465 cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
70ec446f 4471#include <gmp.h>
e69bf64b 4472 #include <mpfr.h>
1c710c3c
DJ
4473int
4474main ()
4475{
e48d66a9 4476
e69bf64b
PB
4477 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4478 choke me
4479 #endif
54e433bc
MK
4480 mpfr_t n;
4481 mpfr_t x;
e69bf64b 4482 int t;
54e433bc
MK
4483 mpfr_init (n);
4484 mpfr_init (x);
e69bf64b
PB
4485 mpfr_atan2 (n, n, x, GMP_RNDN);
4486 mpfr_erfc (n, x, GMP_RNDN);
4487 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4488
4489 ;
4490 return 0;
4491}
4492_ACEOF
4493rm -f conftest.$ac_objext conftest$ac_exeext
4494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>conftest.er1
4496 ac_status=$?
4497 grep -v '^ *+' conftest.er1 >conftest.err
4498 rm -f conftest.er1
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -z "$ac_c_werror_flag"
4503 || test ! -s conftest.err'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; } &&
4509 { ac_try='test -s conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 cat >conftest.$ac_ext <<_ACEOF
4516/* confdefs.h. */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h. */
a3993f33 4521#include <gmp.h>
e69bf64b 4522 #include <mpfr.h>
1c710c3c
DJ
4523int
4524main ()
4525{
a3993f33 4526
e69bf64b
PB
4527 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4528 choke me
4529 #endif
4530 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4531
4532 ;
4533 return 0;
4534}
4535_ACEOF
4536rm -f conftest.$ac_objext conftest$ac_exeext
4537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag"
4546 || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 echo "$as_me:$LINENO: result: yes" >&5
4559echo "${ECHO_T}yes" >&6
4560else
4561 echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4565echo "${ECHO_T}buggy but acceptable" >&6
4566fi
4567rm -f conftest.err conftest.$ac_objext \
4568 conftest$ac_exeext conftest.$ac_ext
4569else
4570 echo "$as_me: failed program was:" >&5
4571sed 's/^/| /' conftest.$ac_ext >&5
4572
4573echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6; have_gmp=no
4575fi
4576rm -f conftest.err conftest.$ac_objext \
4577 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4578 LIBS="$saved_LIBS"
4579 fi
4580 CFLAGS="$saved_CFLAGS"
6de9cd9a 4581
e69bf64b 4582 if test x$have_gmp != xyes; then
1c710c3c
DJ
4583 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4584Try the --with-gmp and/or --with-mpfr options to specify their locations.
4585Copies of these libraries' source code can be found at their respective
4586hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4587See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4588If you obtained GMP and/or MPFR from a vendor distribution package, make
4589sure that you have installed both the libraries and the header files.
4590They may be located in separate packages." >&5
4591echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4592Try the --with-gmp and/or --with-mpfr options to specify their locations.
4593Copies of these libraries' source code can be found at their respective
4594hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4595See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4596If you obtained GMP and/or MPFR from a vendor distribution package, make
4597sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4598They may be located in separate packages." >&2;}
4599 { (exit 1); exit 1; }; }
e69bf64b 4600 fi
70ec446f
KG
4601fi
4602
bebf829d 4603# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4604
4605
4606
1e0f07d3 4607# By default, C is the only stage 1 language.
e1888513 4608stage1_languages=,c,
2805b53a 4609
55ffb5ed
NN
4610# Figure out what language subdirectories are present.
4611# Look if the user specified --enable-languages="..."; if not, use
4612# the environment variable $LANGUAGES if defined. $LANGUAGES might
4613# go away some day.
4614# NB: embedded tabs in this IF block -- do not untabify
4615if test -d ${srcdir}/gcc; then
4616 if test x"${enable_languages+set}" != xset; then
4617 if test x"${LANGUAGES+set}" = xset; then
4618 enable_languages="${LANGUAGES}"
4619 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4620 else
4621 enable_languages=all
4622 fi
4623 else
4624 if test x"${enable_languages}" = x ||
4625 test x"${enable_languages}" = xyes;
4626 then
4627 echo configure.in: --enable-languages needs at least one language argument 1>&2
4628 exit 1
4629 fi
4630 fi
4631 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4632
7f26dfa3
FXC
4633 # 'f95' is the old name for the 'fortran' language. We issue a warning
4634 # and make the substitution.
4635 case ,${enable_languages}, in
4636 *,f95,*)
4637 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4638 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4639 ;;
4640 esac
4641
55ffb5ed
NN
4642 # First scan to see if an enabled language requires some other language.
4643 # We assume that a given config-lang.in will list all the language
4644 # front ends it requires, even if some are required indirectly.
4645 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4646 case ${lang_frag} in
4647 ..) ;;
4648 # The odd quoting in the next line works around
4649 # an apparent bug in bash 1.12 on linux.
4650 ${srcdir}/gcc/[*]/config-lang.in) ;;
4651 *)
4652 # From the config-lang.in, get $language, $lang_requires
4653 language=
4654 lang_requires=
4655 . ${lang_frag}
4656 for other in ${lang_requires} ; do
4657 case ,${enable_languages}, in
4658 *,$other,*) ;;
4659 *,all,*) ;;
4660 *,$language,*)
4661 echo " \`$other' language required by \`$language'; enabling" 1>&2
4662 enable_languages="${enable_languages},${other}"
4663 ;;
4664 esac
4665 done
4666 ;;
4667 esac
4668 done
4669
e1888513 4670 new_enable_languages=,c,
55ffb5ed 4671 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4672 potential_languages=,c,
55ffb5ed
NN
4673
4674 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4675 case ${lang_frag} in
4676 ..) ;;
4677 # The odd quoting in the next line works around
4678 # an apparent bug in bash 1.12 on linux.
4679 ${srcdir}/gcc/[*]/config-lang.in) ;;
4680 *)
1c710c3c 4681 # From the config-lang.in, get $language, $target_libs,
2805b53a 4682 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4683 language=
4684 target_libs=
4685 lang_dirs=
1546bb64 4686 subdir_requires=
e1888513
PB
4687 boot_language=no
4688 build_by_default=yes
55ffb5ed 4689 . ${lang_frag}
e1888513
PB
4690 if test x${language} = x; then
4691 echo "${lang_frag} doesn't set \$language." 1>&2
4692 exit 1
4693 fi
4694
4695 case ,${enable_languages}, in
4696 *,${language},*)
55ffb5ed
NN
4697 # Language was explicitly selected; include it.
4698 add_this_lang=yes
4699 ;;
e1888513
PB
4700 *,all,*)
4701 # 'all' was selected, select it if it is a default language
4702 add_this_lang=${build_by_default}
55ffb5ed
NN
4703 ;;
4704 *)
4705 add_this_lang=no
4706 ;;
4707 esac
6de9cd9a 4708
1546bb64 4709 # Disable languages that need other directories if these aren't available.
95695ad3 4710 for i in $subdir_requires; do
b6348cb3 4711 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4712 case ,${enable_languages}, in
4713 *,${language},*)
4714 # Specifically requested language; tell them.
1c710c3c
DJ
4715 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4716echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4717 { (exit 1); exit 1; }; }
1546bb64
PB
4718 ;;
4719 *)
4720 # Silently disable.
e1888513 4721 add_this_lang=unsupported
1546bb64
PB
4722 ;;
4723 esac
4724 done
4725
e1888513
PB
4726 # Disable Ada if no preexisting GNAT is available.
4727 case ,${enable_languages},:${language}:${have_gnat} in
4728 *,${language},*:ada:no)
4729 # Specifically requested language; tell them.
1c710c3c
DJ
4730 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4731echo "$as_me: error: GNAT is required to build $language" >&2;}
4732 { (exit 1); exit 1; }; }
e1888513
PB
4733 ;;
4734 *:ada:no)
4735 # Silently disable.
4736 add_this_lang=unsupported
4737 ;;
4738 esac
4739
4fab7234
HPN
4740 # Disable a language that is unsupported by the target.
4741 case " $unsupported_languages " in
4742 *" $language "*)
e1888513 4743 add_this_lang=unsupported
4fab7234
HPN
4744 ;;
4745 esac
4746
6de9cd9a 4747 case $add_this_lang in
e1888513 4748 unsupported)
55ffb5ed 4749 # Remove language-dependent dirs.
2805b53a
NN
4750 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4751 ;;
e1888513
PB
4752 no)
4753 # Remove language-dependent dirs; still show language as supported.
4754 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4755 potential_languages="${potential_languages}${language},"
4756 ;;
4757 yes)
4758 new_enable_languages="${new_enable_languages}${language},"
4759 potential_languages="${potential_languages}${language},"
2805b53a
NN
4760 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4761 case ${boot_language} in
4762 yes)
340de83f 4763 # Add to (comma-separated) list of stage 1 languages.
e1888513 4764 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4765 ;;
4766 esac
4767 ;;
55ffb5ed
NN
4768 esac
4769 ;;
4770 esac
4771 done
4772
e1888513
PB
4773 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4774if test "${enable_stage1_languages+set}" = set; then
4775 enableval="$enable_stage1_languages"
4776 case ,${enable_stage1_languages}, in
4777 ,no,|,,)
4778 # Set it to something that will have no effect in the loop below
4779 enable_stage1_languages=c ;;
4780 ,yes,)
4781 enable_stage1_languages=`echo $new_enable_languages | \
4782 sed -e "s/^,//" -e "s/,$//" ` ;;
4783 *,all,*)
4784 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4785 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4786 esac
4787
4788 # Add "good" languages from enable_stage1_languages to stage1_languages,
4789 # while "bad" languages go in missing_languages. Leave no duplicates.
4790 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4791 case $potential_languages in
4792 *,$i,*)
4793 case $stage1_languages in
4794 *,$i,*) ;;
4795 *) stage1_languages="$stage1_languages$i," ;;
4796 esac ;;
4797 *)
4798 case $missing_languages in
4799 *,$i,*) ;;
4800 *) missing_languages="$missing_languages$i," ;;
4801 esac ;;
4802 esac
4803 done
1c710c3c 4804fi;
e1888513
PB
4805
4806 # Remove leading/trailing commas that were added for simplicity
4807 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4808 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4809 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4810 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4811
55ffb5ed 4812 if test "x$missing_languages" != x; then
1c710c3c 4813 { { echo "$as_me:$LINENO: error:
0cf085e4 4814The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4815Supported languages are: ${potential_languages}" >&5
4816echo "$as_me: error:
4817The following requested languages could not be built: ${missing_languages}
4818Supported languages are: ${potential_languages}" >&2;}
4819 { (exit 1); exit 1; }; }
55ffb5ed 4820 fi
55ffb5ed
NN
4821 if test "x$new_enable_languages" != "x$enable_languages"; then
4822 echo The following languages will be built: ${new_enable_languages}
e1888513 4823 enable_languages="$new_enable_languages"
55ffb5ed 4824 fi
e1888513 4825
1c710c3c 4826
b2eaac4a 4827 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4828fi
4829
27079765
AH
4830# Handle --disable-<component> generically.
4831for dir in $configdirs $build_configdirs $target_configdirs ; do
4832 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4833 if eval test x\${enable_${dirname}} "=" xno ; then
4834 noconfigdirs="$noconfigdirs $dir"
4835 fi
4836done
4837
7cd0cf9c
DA
4838# Check for Boehm's garbage collector
4839# Check whether --enable-objc-gc or --disable-objc-gc was given.
4840if test "${enable_objc_gc+set}" = set; then
4841 enableval="$enable_objc_gc"
4842 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4843 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4844 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4845echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4846 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4847 ;;
4848esac
1c710c3c 4849fi;
7cd0cf9c
DA
4850
4851# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4852case ,${enable_languages},:${enable_objc_gc} in
4853 *,objc,*:yes)
7cd0cf9c
DA
4854 # Keep target-boehm-gc if requested for Objective-C.
4855 ;;
7cd0cf9c 4856 *)
2a79fd67
DA
4857 # Otherwise remove target-boehm-gc depending on target-libjava.
4858 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4859 noconfigdirs="$noconfigdirs target-boehm-gc"
4860 fi
7cd0cf9c
DA
4861 ;;
4862esac
4863
ee6a22df
L
4864# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4865# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4866# If we have the source for $noconfigdirs entries, add them to $notsupp.
4867
4868notsupp=""
4869for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4870 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4871 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4872 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4873 if test -r $srcdir/$dirname/configure ; then
4874 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4875 true
4876 else
4877 notsupp="$notsupp $dir"
4878 fi
4879 fi
4880 fi
ee6a22df
L
4881 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4882 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4883 if test -r $srcdir/$dirname/configure ; then
4884 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4885 true
4886 else
4887 notsupp="$notsupp $dir"
4888 fi
4889 fi
4890 fi
55ffb5ed
NN
4891 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4892 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4893 if test -r $srcdir/$dirname/configure ; then
4894 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4895 true
4896 else
4897 notsupp="$notsupp $dir"
4898 fi
4899 fi
4900 fi
4901done
4902
4903# Sometimes the tools are distributed with libiberty but with no other
4904# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4905# Don't let libgcc imply libiberty either.
55ffb5ed 4906if test -n "${target_configdirs}" ; then
54fdc474 4907 libgcc=
55ffb5ed
NN
4908 others=
4909 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4910 if test "$i" = "libgcc"; then
4911 libgcc=target-libgcc
4912 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4913 if test -r $srcdir/$i/configure ; then
4914 others=yes;
4915 break;
4916 fi
4917 fi
4918 done
4919 if test -z "${others}" ; then
54fdc474 4920 target_configdirs=$libgcc
55ffb5ed
NN
4921 fi
4922fi
4923
4924# Quietly strip out all directories which aren't configurable in this tree.
4925# This relies on all configurable subdirectories being autoconfiscated, which
4926# is now the case.
23f6b2f9
PB
4927build_configdirs_all="$build_configdirs"
4928build_configdirs=
4929for i in ${build_configdirs_all} ; do
1c710c3c 4930 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4931 if test -f ${srcdir}/$j/configure ; then
4932 build_configdirs="${build_configdirs} $i"
4933 fi
4934done
4935
55ffb5ed
NN
4936configdirs_all="$configdirs"
4937configdirs=
4938for i in ${configdirs_all} ; do
4939 if test -f ${srcdir}/$i/configure ; then
4940 configdirs="${configdirs} $i"
4941 fi
4942done
23f6b2f9 4943
55ffb5ed
NN
4944target_configdirs_all="$target_configdirs"
4945target_configdirs=
4946for i in ${target_configdirs_all} ; do
1c710c3c 4947 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4948 if test -f ${srcdir}/$j/configure ; then
4949 target_configdirs="${target_configdirs} $i"
4950 fi
4951done
4952
4953# Produce a warning message for the subdirs we can't configure.
4954# This isn't especially interesting in the Cygnus tree, but in the individual
4955# FSF releases, it's important to let people know when their machine isn't
4956# supported by the one or two programs in a package.
4957
4958if test -n "${notsupp}" && test -z "${norecursion}" ; then
4959 # If $appdirs is non-empty, at least one of those directories must still
4960 # be configured, or we error out. (E.g., if the gas release supports a
4961 # specified target in some subdirs but not the gas subdir, we shouldn't
4962 # pretend that all is well.)
4963 if test -n "$appdirs" ; then
4964 for dir in $appdirs ; do
4965 if test -r $dir/Makefile.in ; then
4966 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4967 appdirs=""
4968 break
4969 fi
23f6b2f9 4970 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4971 appdirs=""
4972 break
4973 fi
4974 fi
4975 done
4976 if test -n "$appdirs" ; then
4977 echo "*** This configuration is not supported by this package." 1>&2
4978 exit 1
4979 fi
4980 fi
4981 # Okay, some application will build, or we don't care to check. Still
4982 # notify of subdirs not getting built.
4983 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4984 echo " ${notsupp}" 1>&2
4985 echo " (Any other directories should still work fine.)" 1>&2
4986fi
4987
4988case "$host" in
4989 *msdosdjgpp*)
4990 enable_gdbtk=no ;;
4991esac
4992
c3a86da9
DJ
4993# To find our prefix, in gcc_cv_tool_prefix.
4994
4995# The user is always right.
4996if test "${PATH_SEPARATOR+set}" != set; then
4997 echo "#! /bin/sh" >conf$$.sh
4998 echo "exit 0" >>conf$$.sh
4999 chmod +x conf$$.sh
5000 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5001 PATH_SEPARATOR=';'
5002 else
5003 PATH_SEPARATOR=:
5004 fi
5005 rm -f conf$$.sh
5006fi
5007
5008
5009
5010if test "x$exec_prefix" = xNONE; then
5011 if test "x$prefix" = xNONE; then
5012 gcc_cv_tool_prefix=$ac_default_prefix
5013 else
5014 gcc_cv_tool_prefix=$prefix
5015 fi
5016else
5017 gcc_cv_tool_prefix=$exec_prefix
5018fi
5019
5020# If there is no compiler in the tree, use the PATH only. In any
5021# case, if there is no compiler in the tree nobody should use
5022# AS_FOR_TARGET and LD_FOR_TARGET.
5023if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5024 gcc_version=`cat $srcdir/gcc/BASE-VER`
5025 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5026 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5027 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5028 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5029 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5030 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5031else
5032 gcc_cv_tool_dirs=
5033fi
5034
5035if test x$build = x$target && test -n "$md_exec_prefix"; then
5036 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5037fi
5038
5039
5040
55ffb5ed
NN
5041copy_dirs=
5042
1c710c3c 5043
526635cb
MM
5044# Check whether --with-build-sysroot or --without-build-sysroot was given.
5045if test "${with_build_sysroot+set}" = set; then
5046 withval="$with_build_sysroot"
5047 if test x"$withval" != x ; then
5048 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5049 fi
5050else
5051 SYSROOT_CFLAGS_FOR_TARGET=
1c710c3c 5052fi;
526635cb
MM
5053
5054
55ffb5ed
NN
5055# Handle --with-headers=XXX. If the value is not "yes", the contents of
5056# the named directory are copied to $(tooldir)/sys-include.
5057if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5058 if test x${is_cross_compiler} = xno ; then
5059 echo 1>&2 '***' --with-headers is only supported when cross compiling
5060 exit 1
5061 fi
5062 if test x"${with_headers}" != xyes ; then
c3a86da9 5063 x=${gcc_cv_tool_prefix}
1c710c3c 5064 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5065 fi
5066fi
5067
5068# Handle --with-libs=XXX. If the value is not "yes", the contents of
5069# the name directories are copied to $(tooldir)/lib. Multiple directories
5070# are permitted.
5071if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5072 if test x${is_cross_compiler} = xno ; then
5073 echo 1>&2 '***' --with-libs is only supported when cross compiling
5074 exit 1
5075 fi
5076 if test x"${with_libs}" != xyes ; then
5077 # Copy the libraries in reverse order, so that files in the first named
5078 # library override files in subsequent libraries.
c3a86da9 5079 x=${gcc_cv_tool_prefix}
55ffb5ed 5080 for l in ${with_libs}; do
1c710c3c 5081 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5082 done
5083 fi
5084fi
5085
e8b05380
PB
5086# Set with_gnu_as and with_gnu_ld as appropriate.
5087#
5088# This is done by determining whether or not the appropriate directory
5089# is available, and by checking whether or not specific configurations
5090# have requested that this magic not happen.
1c710c3c
DJ
5091#
5092# The command line options always override the explicit settings in
e8b05380
PB
5093# configure.in, and the settings in configure.in override this magic.
5094#
1c710c3c 5095# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5096# want to do that, then you should use the --without-gnu-as and
5097# --without-gnu-ld options for the configure script.
5098
5099if test x${use_gnu_as} = x &&
5100 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5101 with_gnu_as=yes
5102 extra_host_args="$extra_host_args --with-gnu-as"
5103fi
5104
5105if test x${use_gnu_ld} = x &&
5106 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5107 with_gnu_ld=yes
5108 extra_host_args="$extra_host_args --with-gnu-ld"
5109fi
5110
5111# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5112# can detect this case.
5113
5114if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5115 with_newlib=yes
5116 extra_host_args="$extra_host_args --with-newlib"
5117fi
5118
55ffb5ed
NN
5119# Handle ${copy_dirs}
5120set fnord ${copy_dirs}
5121shift
5122while test $# != 0 ; do
5123 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5124 :
5125 else
5126 echo Copying $1 to $2
5127
5128 # Use the install script to create the directory and all required
5129 # parent directories.
5130 if test -d $2 ; then
5131 :
5132 else
5133 echo >config.temp
5134 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5135 fi
5136
5137 # Copy the directory, assuming we have tar.
5138 # FIXME: Should we use B in the second tar? Not all systems support it.
5139 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5140
5141 # It is the responsibility of the user to correctly adjust all
5142 # symlinks. If somebody can figure out how to handle them correctly
5143 # here, feel free to add the code.
5144
5145 echo $1 > $2/COPIED
5146 fi
5147 shift; shift
5148done
5149
e8b05380
PB
5150# Determine a target-dependent exec_prefix that the installed
5151# gcc will search in. Keep this list sorted by triplet, with
5152# the *-*-osname triplets last.
5153md_exec_prefix=
5154case "${target}" in
5155 alpha*-*-*vms*)
5156 md_exec_prefix=/gnu/lib/gcc-lib
5157 ;;
5158 i3456786-pc-msdosdjgpp*)
5159 md_exec_prefix=/dev/env/DJDIR/bin
5160 ;;
5161 i3456786-*-sco3.2v5*)
5162 if test $with_gnu_as = yes; then
5163 md_exec_prefix=/usr/gnu/bin
5164 else
5165 md_exec_prefix=/usr/ccs/bin/elf
5166 fi
5167 ;;
5168
5169 mn10300-*-* | \
5170 powerpc-*-chorusos* | \
5171 powerpc*-*-eabi* | \
5172 powerpc*-*-sysv* | \
5173 powerpc*-*-kaos* | \
5174 s390x-ibm-tpf*)
5175 md_exec_prefix=/usr/ccs/bin
5176 ;;
5177 sparc64-*-elf*)
5178 ;;
5179 v850*-*-*)
5180 md_exec_prefix=/usr/ccs/bin
5181 ;;
5182 xtensa-*-elf*)
5183 ;;
5184
5185 *-*-beos* | \
5186 *-*-elf* | \
5187 *-*-hpux* | \
5188 *-*-netware* | \
5189 *-*-nto-qnx* | \
5190 *-*-rtems* | \
5191 *-*-solaris2* | \
5192 *-*-sysv45* | \
5193 *-*-vxworks* | \
5194 *-wrs-windiss)
5195 md_exec_prefix=/usr/ccs/bin
5196 ;;
5197esac
5198
671aa708
NN
5199extra_arflags_for_target=
5200extra_nmflags_for_target=
5201extra_ranlibflags_for_target=
5202target_makefile_frag=/dev/null
5203case "${target}" in
3e19841a
PB
5204 mep*-*-*)
5205 target_makefile_frag="config/mt-mep"
5206 ;;
58e24147
AM
5207 spu-*-*)
5208 target_makefile_frag="config/mt-spu"
5209 ;;
61fec9ff 5210 *-*-netware*)
671aa708
NN
5211 target_makefile_frag="config/mt-netware"
5212 ;;
98a5bb3b
RM
5213 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5214 target_makefile_frag="config/mt-gnu"
671aa708
NN
5215 ;;
5216 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5217 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5218 # commands to handle both 32-bit and 64-bit objects. These flags are
5219 # harmless if we're using GNU nm or ar.
5220 extra_arflags_for_target=" -X32_64"
5221 extra_nmflags_for_target=" -B -X32_64"
5222 ;;
5223 *-*-darwin*)
5224 # ranlib from Darwin requires the -c flag to look at common symbols.
5225 extra_ranlibflags_for_target=" -c"
5226 ;;
5227 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5228 target_makefile_frag="config/mt-wince"
5229 ;;
5230esac
5231
5232alphaieee_frag=/dev/null
5233case $target in
5234 alpha*-*-*)
5235 # This just makes sure to use the -mieee option to build target libs.
5236 # This should probably be set individually by each library.
5237 alphaieee_frag="config/mt-alphaieee"
5238 ;;
5239esac
5240
5241# If --enable-target-optspace always use -Os instead of -O2 to build
5242# the target libraries, similarly if it is not specified, use -Os
5243# on selected platforms.
5244ospace_frag=/dev/null
5245case "${enable_target_optspace}:${target}" in
5246 yes:*)
5247 ospace_frag="config/mt-ospace"
5248 ;;
5249 :d30v-*)
5250 ospace_frag="config/mt-d30v"
5251 ;;
5252 :m32r-* | :d10v-* | :fr30-*)
5253 ospace_frag="config/mt-ospace"
5254 ;;
5255 no:* | :*)
5256 ;;
5257 *)
5258 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5259 ;;
5260esac
5261
671aa708
NN
5262# Default to using --with-stabs for certain targets.
5263if test x${with_stabs} = x ; then
5264 case "${target}" in
89a95129 5265 mips*-*-irix[56]*)
671aa708
NN
5266 ;;
5267 mips*-*-* | alpha*-*-osf*)
5268 with_stabs=yes;
5269 extra_host_args="${extra_host_args} --with-stabs"
5270 ;;
5271 esac
5272fi
5273
5274# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5275# them automatically.
5276case "${host}" in
1c710c3c 5277 hppa*64*-*-hpux11*)
671aa708
NN
5278 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5279 ;;
5280esac
5281
671aa708
NN
5282# Some systems (e.g., one of the i386-aix systems the gas testers are
5283# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5284tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5285build_tooldir=${tooldir}
5286
671aa708
NN
5287# Create a .gdbinit file which runs the one in srcdir
5288# and tells GDB to look there for source files.
5289
5290if test -r ${srcdir}/.gdbinit ; then
5291 case ${srcdir} in
5292 .) ;;
5293 *) cat > ./.gdbinit <<EOF
5294# ${NO_EDIT}
5295dir ${srcdir}
5296dir .
5297source ${srcdir}/.gdbinit
5298EOF
5299 ;;
5300 esac
5301fi
5302
671aa708
NN
5303# Make sure that the compiler is able to generate an executable. If it
5304# can't, we are probably in trouble. We don't care whether we can run the
5305# executable--we might be using a cross compiler--we only care whether it
5306# can be created. At this point the main configure script has set CC.
5307we_are_ok=no
5308echo "int main () { return 0; }" > conftest.c
5309${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5310if test $? = 0 ; then
5311 if test -s conftest || test -s conftest.exe ; then
5312 we_are_ok=yes
5313 fi
1c710c3c 5314fi
671aa708
NN
5315case $we_are_ok in
5316 no)
5317 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5318 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5319 rm -f conftest*
5320 exit 1
5321 ;;
5322esac
5323rm -f conftest*
5324
5325# The Solaris /usr/ucb/cc compiler does not appear to work.
5326case "${host}" in
5327 sparc-sun-solaris2*)
5328 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5329 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5330 could_use=
5331 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5332 if test -d /opt/cygnus/bin ; then
5333 if test "$could_use" = "" ; then
5334 could_use="/opt/cygnus/bin"
5335 else
5336 could_use="$could_use or /opt/cygnus/bin"
5337 fi
5338 fi
5339 if test "$could_use" = "" ; then
5340 echo "Warning: compilation may fail because you're using"
5341 echo "/usr/ucb/cc. You should change your PATH or CC "
5342 echo "variable and rerun configure."
5343 else
5344 echo "Warning: compilation may fail because you're using"
5345 echo "/usr/ucb/cc, when you should use the C compiler from"
5346 echo "$could_use. You should change your"
5347 echo "PATH or CC variable and rerun configure."
5348 fi
5349 fi
5350 ;;
5351esac
5352
671aa708
NN
5353case "${host}" in
5354 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5355 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5356 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5357esac
5358
5359# Record target_configdirs and the configure arguments for target and
5360# build configuration in Makefile.
5361target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5362build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5363
671aa708
NN
5364# Determine whether gdb needs tk/tcl or not.
5365# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5366# and in that case we want gdb to be built without tk. Ugh!
5367# In fact I believe gdb is the *only* package directly dependent on tk,
5368# so we should be able to put the 'maybe's in unconditionally and
5369# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5370# 100% sure that that's safe though.
e914a571 5371
b4f96efe 5372gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5373case "$enable_gdbtk" in
5374 no)
5375 GDB_TK="" ;;
e914a571
AC
5376 yes)
5377 GDB_TK="${gdb_tk}" ;;
671aa708 5378 *)
e914a571
AC
5379 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5380 # distro. Eventually someone will fix this and move Insight, nee
5381 # gdbtk to a separate directory.
5382 if test -d ${srcdir}/gdb/gdbtk ; then
5383 GDB_TK="${gdb_tk}"
5384 else
5385 GDB_TK=""
5386 fi
5387 ;;
671aa708 5388esac
ef9db8d5
DJ
5389CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5390INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5391
60975492 5392# Strip out unwanted targets.
8b87bb96
NN
5393
5394# While at that, we remove Makefiles if we were started for recursive
5395# configuration, so that the top-level Makefile reconfigures them,
5396# like we used to do when configure itself was recursive.
8b87bb96 5397
60975492
PB
5398# Loop over modules. $extrasub must be used with care, limiting as
5399# much as possible the usage of range addresses. That's because autoconf
5400# splits the sed script to overcome limits in the number of commands,
5401# and relying on carefully-timed sed passes may turn out to be very hard
5402# to maintain later. In this particular case, you just have to be careful
5403# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5404
f516a7da
PB
5405# Check whether --enable-bootstrap or --disable-bootstrap was given.
5406if test "${enable_bootstrap+set}" = set; then
5407 enableval="$enable_bootstrap"
1c710c3c 5408
f516a7da 5409else
ce521a9c 5410 enable_bootstrap=default
1c710c3c 5411fi;
f516a7da 5412
ce521a9c
PB
5413# Issue errors and warnings for invalid/strange bootstrap combinations.
5414case "$configdirs" in
5415 *gcc*) have_compiler=yes ;;
5416 *) have_compiler=no ;;
5417esac
5418
5419case "$have_compiler:$host:$target:$enable_bootstrap" in
5420 *:*:*:no) ;;
5421
1ca26cd2 5422 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5423 # and we are in a native configuration.
5424 yes:$build:$build:default)
1ca26cd2 5425 enable_bootstrap=yes ;;
ce521a9c
PB
5426
5427 *:*:*:default)
5428 enable_bootstrap=no ;;
5429
5430 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5431 yes:$build:$build:yes)
ce521a9c
PB
5432 ;;
5433
5434 # Other configurations, but we have a compiler. Assume the user knows
5435 # what he's doing.
2d309510 5436 yes:*:*:yes)
1c710c3c
DJ
5437 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5438echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5439 ;;
5440
5441 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5442 no:*:*:yes)
1c710c3c
DJ
5443 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5444echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5445 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5446
5447 # Fail if wrong command line
5448 *)
1c710c3c
DJ
5449 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5450echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5451 { (exit 1); exit 1; }; }
ce521a9c
PB
5452 ;;
5453esac
5454
5455# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5456case "$enable_bootstrap" in
5457 yes)
5607edfd 5458 bootstrap_suffix=bootstrap ;;
f516a7da 5459 no)
5607edfd 5460 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5461esac
5462
23f6b2f9 5463for module in ${build_configdirs} ; do
5607edfd
PB
5464 if test -z "${no_recursion}" \
5465 && test -f ${build_subdir}/${module}/Makefile; then
5466 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5467 rm -f ${build_subdir}/${module}/Makefile
5468 fi
5469 extrasub="$extrasub
5470/^@if build-$module\$/d
5471/^@endif build-$module\$/d
5472/^@if build-$module-$bootstrap_suffix\$/d
5473/^@endif build-$module-$bootstrap_suffix\$/d"
5474done
5475for module in ${configdirs} ; do
a6fbc1e2 5476 if test -z "${no_recursion}"; then
f063a9ed 5477 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5478 if test -f ${file}; then
5479 echo 1>&2 "*** removing ${file} to force reconfigure"
5480 rm -f ${file}
5481 fi
5482 done
5607edfd
PB
5483 fi
5484 extrasub="$extrasub
5485/^@if $module\$/d
5486/^@endif $module\$/d
5487/^@if $module-$bootstrap_suffix\$/d
5488/^@endif $module-$bootstrap_suffix\$/d"
5489done
5490for module in ${target_configdirs} ; do
5491 if test -z "${no_recursion}" \
5492 && test -f ${target_subdir}/${module}/Makefile; then
5493 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5494 rm -f ${target_subdir}/${module}/Makefile
5495 fi
5496 extrasub="$extrasub
5497/^@if target-$module\$/d
5498/^@endif target-$module\$/d
5499/^@if target-$module-$bootstrap_suffix\$/d
5500/^@endif target-$module-$bootstrap_suffix\$/d"
5501done
5502
60975492
PB
5503extrasub="$extrasub
5504/^@if /,/^@endif /d"
671aa708
NN
5505
5506# Create the serialization dependencies. This uses a temporary file.
5507
ade82b16
AO
5508# Check whether --enable-serial-configure or --disable-serial-configure was given.
5509if test "${enable_serial_configure+set}" = set; then
5510 enableval="$enable_serial_configure"
ade82b16 5511
1c710c3c 5512fi;
ade82b16 5513
bf1d3e81
NN
5514case ${enable_serial_configure} in
5515 yes)
5516 enable_serial_build_configure=yes
5517 enable_serial_host_configure=yes
5518 enable_serial_target_configure=yes
5519 ;;
5520esac
5521
671aa708
NN
5522# These force 'configure's to be done one at a time, to avoid problems
5523# with contention over a shared config.cache.
5524rm -f serdep.tmp
ade82b16 5525echo '# serdep.tmp' > serdep.tmp
671aa708 5526olditem=
bf1d3e81 5527test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5528for item in ${build_configdirs} ; do
5529 case ${olditem} in
5530 "") ;;
ade82b16 5531 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5532 esac
5533 olditem=${item}
5534done
5535olditem=
bf1d3e81 5536test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5537for item in ${configdirs} ; do
5538 case ${olditem} in
5539 "") ;;
ade82b16 5540 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5541 esac
5542 olditem=${item}
5543done
5544olditem=
bf1d3e81 5545test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5546for item in ${target_configdirs} ; do
5547 case ${olditem} in
5548 "") ;;
ade82b16 5549 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5550 esac
5551 olditem=${item}
5552done
5553serialization_dependencies=serdep.tmp
5554
5555
ade82b16 5556# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5557# target, nonopt, and variable assignments. These are the ones we
5558# might not want to pass down to subconfigures. Also strip
5559# program-prefix, program-suffix, and program-transform-name, so that
5560# we can pass down a consistent program-transform-name.
5561baseargs=
5562keep_next=no
5563skip_next=no
5564eval "set -- $ac_configure_args"
44bfc3ac
DJ
5565for ac_arg
5566do
1c710c3c
DJ
5567 if test X"$skip_next" = X"yes"; then
5568 skip_next=no
5569 continue
5570 fi
5571 if test X"$keep_next" = X"yes"; then
5572 case $ac_arg in
5573 *\'*)
5574 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5575 esac
5576 baseargs="$baseargs '$ac_arg'"
5577 keep_next=no
5578 continue
5579 fi
5580
5581 # Handle separated arguments. Based on the logic generated by
5582 # autoconf 2.59.
5583 case $ac_arg in
5584 *=* | --config-cache | -C | -disable-* | --disable-* \
5585 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5586 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5587 | -with-* | --with-* | -without-* | --without-* | --x)
5588 separate_arg=no
5589 ;;
5590 -*)
5591 separate_arg=yes
5592 ;;
5593 *)
5594 separate_arg=no
5595 ;;
5596 esac
5597
5598 case "$ac_arg" in
5599 --no*)
5600 continue
5601 ;;
5602 --c* | \
5603 --sr* | \
5604 --ho* | \
5605 --bu* | \
5606 --t* | \
5607 --program-* | \
5608 -cache_file* | \
5609 -srcdir* | \
5610 -host* | \
5611 -build* | \
5612 -target* | \
5613 -program-prefix* | \
5614 -program-suffix* | \
5615 -program-transform-name* )
5616 skip_next=$separate_arg
5617 continue
5618 ;;
5619 -*)
5620 # An option. Add it.
5621 case $ac_arg in
5622 *\'*)
5623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5624 esac
5625 baseargs="$baseargs '$ac_arg'"
5626 keep_next=$separate_arg
5627 ;;
5628 *)
5629 # Either a variable assignment, or a nonopt (triplet). Don't
5630 # pass it down; let the Makefile handle this.
5631 continue
5632 ;;
5633 esac
5634done
5635# Remove the initial space we just introduced and, as these will be
5636# expanded by make, quote '$'.
5637baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5638
43bb47c2
DJ
5639# Add in --program-transform-name, after --program-prefix and
5640# --program-suffix have been applied to it. Autoconf has already
5641# doubled dollar signs and backslashes in program_transform_name; we want
5642# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5643# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5644# Also, because we want to override the logic in subdir configure scripts to
5645# choose program_transform_name, replace any s,x,x, with s,y,y,.
5646sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5647${program_transform_name}
5648EOF_SED
5649gcc_transform_name=`cat conftestsed.out`
5650rm -f conftestsed.out
5651baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5652
671aa708
NN
5653# For the build-side libraries, we just need to pretend we're native,
5654# and not use the same cache file. Multilibs are neither needed nor
5655# desired.
e69bf64b 5656build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5657
5658# For host modules, accept cache file option, or specification as blank.
5659case "${cache_file}" in
5660"") # empty
5661 cache_file_option="" ;;
5662/* | [A-Za-z]:[\\/]* ) # absolute path
5663 cache_file_option="--cache-file=${cache_file}" ;;
5664*) # relative path
5665 cache_file_option="--cache-file=../${cache_file}" ;;
5666esac
5667
09438bde
NN
5668# Host dirs don't like to share a cache file either, horribly enough.
5669# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5670host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5671
5672target_configargs=${baseargs}
5673
5674# Passing a --with-cross-host argument lets the target libraries know
5675# whether they are being built with a cross-compiler or being built
5676# native. However, it would be better to use other mechanisms to make the
5677# sorts of decisions they want to make on this basis. Please consider
5678# this option to be deprecated. FIXME.
5679if test x${is_cross_compiler} = xyes ; then
1c710c3c 5680 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5681fi
5682
5683# Default to --enable-multilib.
5684if test x${enable_multilib} = x ; then
5685 target_configargs="--enable-multilib ${target_configargs}"
5686fi
5687
5688# Pass --with-newlib if appropriate. Note that target_configdirs has
5689# changed from the earlier setting of with_newlib.
5690if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5691 target_configargs="--with-newlib ${target_configargs}"
5692fi
5693
6b9eb62c
NN
5694# Different target subdirs use different values of certain variables
5695# (notably CXX). Worse, multilibs use *lots* of different values.
5696# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5697# it doesn't automatically accept command-line overrides of them.
5698# This means it's not safe for target subdirs to share a cache file,
5699# which is disgusting, but there you have it. Hopefully this can be
5700# fixed in future. It's still worthwhile to use a cache file for each
5701# directory. I think.
5702
bebcd931
MS
5703# Pass the appropriate --build, --host, --target and --cache-file arguments.
5704# We need to pass --target, as newer autoconf's requires consistency
5705# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5706target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5707
671aa708
NN
5708FLAGS_FOR_TARGET=
5709case " $target_configdirs " in
5710 *" newlib "*)
5711 case " $target_configargs " in
5712 *" --with-newlib "*)
5713 case "$target" in
5714 *-cygwin*)
aa8f1f57 5715 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
5716 esac
5717
5718 # If we're not building GCC, don't discard standard headers.
5719 if test -d ${srcdir}/gcc; then
5720 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5721
5722 if test "${build}" != "${host}"; then
5723 # On Canadian crosses, CC_FOR_TARGET will have already been set
5724 # by `configure', so we won't have an opportunity to add -Bgcc/
5725 # to it. This is right: we don't want to search that directory
5726 # for binaries, but we want the header files in there, so add
5727 # them explicitly.
215c351a 5728 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5729
5730 # Someone might think of using the pre-installed headers on
5731 # Canadian crosses, in case the installed compiler is not fully
5732 # compatible with the compiler being built. In this case, it
5733 # would be better to flag an error than risking having
5734 # incompatible object files being constructed. We can't
5735 # guarantee that an error will be flagged, but let's hope the
5736 # compiler will do it, when presented with incompatible header
5737 # files.
5738 fi
5739 fi
5740
5741 case "${target}-${is_cross_compiler}" in
f2a0e225 5742 i[3456789]86-*-linux*-no)
671aa708
NN
5743 # Here host == target, so we don't need to build gcc,
5744 # so we don't want to discard standard headers.
5745 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5746 ;;
5747 *)
5748 # If we're building newlib, use its generic headers last, but search
5749 # for any libc-related directories first (so make it the last -B
5750 # switch).
5751 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5752 ;;
5753 esac
5754 ;;
5755 esac
5756 ;;
5757esac
b91f0a41
CV
5758case "$target" in
5759*-mingw*)
5760 # Can't be handled as Cygwin above since Mingw does not use newlib.
5761 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' ;;
5762esac
671aa708 5763
6691a79e
ME
5764# Allow the user to override the flags for
5765# our build compiler if desired.
5766CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5767
671aa708
NN
5768# On Canadian crosses, we'll be searching the right directories for
5769# the previously-installed cross compiler, so don't bother to add
5770# flags for directories within the install tree of the compiler
5771# being built; programs in there won't even run.
5772if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5773 # Search for pre-installed headers if nothing else fits.
9124bc53 5774 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
5775fi
5776
5777if test "x${use_gnu_ld}" = x &&
5778 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5779 # Arrange for us to find uninstalled linker scripts.
215c351a 5780 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5781fi
5782
e88a2c09
DD
5783# Search for other target-specific linker scripts and such.
5784case "${target}" in
5785 m32c-*-* )
5786 if test -d ${srcdir}/libgloss/m32c; then
5787 # This is for crt0.o
5788 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5789 # This is for r8c.ld
5790 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5791 # This is for libnosys.a
5792 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5793 fi
5794 ;;
3e19841a
PB
5795 mep*)
5796 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5797 ;;
e88a2c09
DD
5798esac
5799
671aa708 5800# Makefile fragments.
7b61653a
PE
5801for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5802do
5803 eval fragval=\$$frag
5804 if test $fragval != /dev/null; then
5805 eval $frag=${srcdir}/$fragval
5806 fi
5807done
671aa708
NN
5808
5809
5810
5811
5812
5813# Miscellanea: directories, flags, etc.
5814
5815
5816
5817
5818
5819
5820
23f6b2f9 5821# Build module lists & subconfigure args.
671aa708
NN
5822
5823
5824
2abefe3d
PB
5825# Host module lists & subconfigure args.
5826
5827
5828
5829# Target module lists & subconfigure args.
5830
5831
5832
5833# Build tools.
5834
5835
5836
5837# Generate default definitions for YACC, M4, LEX and other programs that run
5838# on the build machine. These are used if the Makefile can't locate these
5839# programs in objdir.
5840MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5841
5842for ac_prog in 'bison -y' byacc yacc
5843do
1c710c3c 5844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5845set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5846echo "$as_me:$LINENO: checking for $ac_word" >&5
5847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848if test "${ac_cv_prog_YACC+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5850else
5851 if test -n "$YACC"; then
5852 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5853else
1c710c3c
DJ
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_YACC="$ac_prog"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865done
5866done
5867
2abefe3d
PB
5868fi
5869fi
1c710c3c 5870YACC=$ac_cv_prog_YACC
2abefe3d 5871if test -n "$YACC"; then
1c710c3c
DJ
5872 echo "$as_me:$LINENO: result: $YACC" >&5
5873echo "${ECHO_T}$YACC" >&6
2abefe3d 5874else
1c710c3c
DJ
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
2abefe3d
PB
5877fi
5878
1c710c3c 5879 test -n "$YACC" && break
2abefe3d
PB
5880done
5881test -n "$YACC" || YACC="$MISSING bison -y"
5882
5883case " $build_configdirs " in
5884 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5885 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5886esac
5887
5888for ac_prog in bison
5889do
1c710c3c 5890 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5891set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5892echo "$as_me:$LINENO: checking for $ac_word" >&5
5893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894if test "${ac_cv_prog_BISON+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5896else
5897 if test -n "$BISON"; then
5898 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5899else
1c710c3c
DJ
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_BISON="$ac_prog"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911done
5912done
5913
2abefe3d
PB
5914fi
5915fi
1c710c3c 5916BISON=$ac_cv_prog_BISON
2abefe3d 5917if test -n "$BISON"; then
1c710c3c
DJ
5918 echo "$as_me:$LINENO: result: $BISON" >&5
5919echo "${ECHO_T}$BISON" >&6
2abefe3d 5920else
1c710c3c
DJ
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
2abefe3d
PB
5923fi
5924
1c710c3c 5925 test -n "$BISON" && break
2abefe3d
PB
5926done
5927test -n "$BISON" || BISON="$MISSING bison"
5928
5929case " $build_configdirs " in
5930 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5931esac
5932
5933for ac_prog in gm4 gnum4 m4
5934do
1c710c3c 5935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5936set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5937echo "$as_me:$LINENO: checking for $ac_word" >&5
5938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939if test "${ac_cv_prog_M4+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5941else
5942 if test -n "$M4"; then
5943 ac_cv_prog_M4="$M4" # Let the user override the test.
5944else
1c710c3c
DJ
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_M4="$ac_prog"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956done
5957done
5958
2abefe3d
PB
5959fi
5960fi
1c710c3c 5961M4=$ac_cv_prog_M4
2abefe3d 5962if test -n "$M4"; then
1c710c3c
DJ
5963 echo "$as_me:$LINENO: result: $M4" >&5
5964echo "${ECHO_T}$M4" >&6
2abefe3d 5965else
1c710c3c
DJ
5966 echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6
2abefe3d
PB
5968fi
5969
1c710c3c 5970 test -n "$M4" && break
2abefe3d
PB
5971done
5972test -n "$M4" || M4="$MISSING m4"
5973
5974case " $build_configdirs " in
5975 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5976esac
5977
5978for ac_prog in flex lex
5979do
1c710c3c 5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5981set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5982echo "$as_me:$LINENO: checking for $ac_word" >&5
5983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5984if test "${ac_cv_prog_LEX+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5986else
5987 if test -n "$LEX"; then
5988 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5989else
1c710c3c
DJ
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_prog_LEX="$ac_prog"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001done
6002done
6003
2abefe3d
PB
6004fi
6005fi
1c710c3c 6006LEX=$ac_cv_prog_LEX
2abefe3d 6007if test -n "$LEX"; then
1c710c3c
DJ
6008 echo "$as_me:$LINENO: result: $LEX" >&5
6009echo "${ECHO_T}$LEX" >&6
2abefe3d 6010else
1c710c3c
DJ
6011 echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6
2abefe3d
PB
6013fi
6014
1c710c3c 6015 test -n "$LEX" && break
2abefe3d
PB
6016done
6017test -n "$LEX" || LEX="$MISSING flex"
6018
6019case " $build_configdirs " in
6020 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6021 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6022esac
6023
6024for ac_prog in flex
6025do
1c710c3c 6026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6027set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6028echo "$as_me:$LINENO: checking for $ac_word" >&5
6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030if test "${ac_cv_prog_FLEX+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6032else
6033 if test -n "$FLEX"; then
6034 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6035else
1c710c3c
DJ
6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_FLEX="$ac_prog"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047done
6048done
6049
2abefe3d
PB
6050fi
6051fi
1c710c3c 6052FLEX=$ac_cv_prog_FLEX
2abefe3d 6053if test -n "$FLEX"; then
1c710c3c
DJ
6054 echo "$as_me:$LINENO: result: $FLEX" >&5
6055echo "${ECHO_T}$FLEX" >&6
2abefe3d 6056else
1c710c3c
DJ
6057 echo "$as_me:$LINENO: result: no" >&5
6058echo "${ECHO_T}no" >&6
2abefe3d
PB
6059fi
6060
1c710c3c 6061 test -n "$FLEX" && break
2abefe3d
PB
6062done
6063test -n "$FLEX" || FLEX="$MISSING flex"
6064
6065case " $build_configdirs " in
6066 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6067esac
6068
6069for ac_prog in makeinfo
6070do
1c710c3c 6071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6072set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6073echo "$as_me:$LINENO: checking for $ac_word" >&5
6074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6075if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6077else
6078 if test -n "$MAKEINFO"; then
6079 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6080else
1c710c3c
DJ
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_MAKEINFO="$ac_prog"
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092done
6093done
6094
2abefe3d
PB
6095fi
6096fi
1c710c3c 6097MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6098if test -n "$MAKEINFO"; then
1c710c3c
DJ
6099 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6100echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6101else
1c710c3c
DJ
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
2abefe3d
PB
6104fi
6105
1c710c3c 6106 test -n "$MAKEINFO" && break
2abefe3d
PB
6107done
6108test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6109
6110case " $build_configdirs " in
6111 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6112 *)
6113
27b6c940 6114 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
6115 # higher, else we use the "missing" dummy.
6116 if ${MAKEINFO} --version \
27b6c940 6117 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
6118 :
6119 else
6120 MAKEINFO="$MISSING makeinfo"
6121 fi
6122 ;;
6123
6124esac
671aa708 6125
2abefe3d 6126# FIXME: expect and dejagnu may become build tools?
671aa708 6127
2abefe3d
PB
6128for ac_prog in expect
6129do
1c710c3c 6130 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6131set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6132echo "$as_me:$LINENO: checking for $ac_word" >&5
6133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6134if test "${ac_cv_prog_EXPECT+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6136else
6137 if test -n "$EXPECT"; then
6138 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6139else
1c710c3c
DJ
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_EXPECT="$ac_prog"
6148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152done
6153
2abefe3d
PB
6154fi
6155fi
1c710c3c 6156EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6157if test -n "$EXPECT"; then
1c710c3c
DJ
6158 echo "$as_me:$LINENO: result: $EXPECT" >&5
6159echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6160else
1c710c3c
DJ
6161 echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6
2abefe3d 6163fi
671aa708 6164
1c710c3c 6165 test -n "$EXPECT" && break
2abefe3d
PB
6166done
6167test -n "$EXPECT" || EXPECT="expect"
671aa708 6168
2abefe3d
PB
6169case " $configdirs " in
6170 *" expect "*)
6171 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6172 ;;
6173esac
671aa708 6174
2abefe3d
PB
6175for ac_prog in runtest
6176do
1c710c3c 6177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6178set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6179echo "$as_me:$LINENO: checking for $ac_word" >&5
6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6181if test "${ac_cv_prog_RUNTEST+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6183else
6184 if test -n "$RUNTEST"; then
6185 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6186else
1c710c3c
DJ
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194 ac_cv_prog_RUNTEST="$ac_prog"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199done
6200
2abefe3d
PB
6201fi
6202fi
1c710c3c 6203RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6204if test -n "$RUNTEST"; then
1c710c3c
DJ
6205 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6206echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6207else
1c710c3c
DJ
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
2abefe3d 6210fi
671aa708 6211
1c710c3c 6212 test -n "$RUNTEST" && break
2abefe3d
PB
6213done
6214test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6215
2abefe3d
PB
6216case " $configdirs " in
6217 *" dejagnu "*)
c394e891 6218 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6219 ;;
6220esac
671aa708
NN
6221
6222
671aa708 6223# Host tools.
ca9f4b81
AO
6224ncn_tool_prefix=
6225test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6226ncn_target_tool_prefix=
6227test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6228
278a7a38
AO
6229
6230
6231if test -n "$AR"; then
6232 ac_cv_prog_AR=$AR
6233elif test -n "$ac_cv_prog_AR"; then
6234 AR=$ac_cv_prog_AR
6235fi
6236
6237if test -n "$ac_cv_prog_AR"; then
6238 for ncn_progname in ar; do
6239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6240set dummy ${ncn_progname}; ac_word=$2
6241echo "$as_me:$LINENO: checking for $ac_word" >&5
6242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243if test "${ac_cv_prog_AR+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246 if test -n "$AR"; then
6247 ac_cv_prog_AR="$AR" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_AR="${ncn_progname}"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260done
6261done
6262
6263fi
6264fi
6265AR=$ac_cv_prog_AR
6266if test -n "$AR"; then
6267 echo "$as_me:$LINENO: result: $AR" >&5
6268echo "${ECHO_T}$AR" >&6
6269else
6270 echo "$as_me:$LINENO: result: no" >&5
6271echo "${ECHO_T}no" >&6
6272fi
6273
6274 done
6275fi
6276
6277for ncn_progname in ar; do
2693c0b0
PB
6278 if test -n "$ncn_tool_prefix"; then
6279 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6280set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6281echo "$as_me:$LINENO: checking for $ac_word" >&5
6282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6283if test "${ac_cv_prog_AR+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6285else
6286 if test -n "$AR"; then
6287 ac_cv_prog_AR="$AR" # Let the user override the test.
6288else
1c710c3c
DJ
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300done
6301done
6302
ca9f4b81
AO
6303fi
6304fi
1c710c3c 6305AR=$ac_cv_prog_AR
ca9f4b81 6306if test -n "$AR"; then
1c710c3c
DJ
6307 echo "$as_me:$LINENO: result: $AR" >&5
6308echo "${ECHO_T}$AR" >&6
ca9f4b81 6309else
1c710c3c
DJ
6310 echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
ca9f4b81
AO
6312fi
6313
2693c0b0
PB
6314 fi
6315 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6317set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6318echo "$as_me:$LINENO: checking for $ac_word" >&5
6319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6320if test "${ac_cv_prog_AR+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6322else
2693c0b0 6323 if test -n "$AR"; then
af71363e
AS
6324 ac_cv_prog_AR="$AR" # Let the user override the test.
6325else
1c710c3c
DJ
6326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327for as_dir in $PATH
6328do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333 ac_cv_prog_AR="${ncn_progname}"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337done
6338done
6339
ca9f4b81
AO
6340fi
6341fi
1c710c3c 6342AR=$ac_cv_prog_AR
2693c0b0 6343if test -n "$AR"; then
1c710c3c
DJ
6344 echo "$as_me:$LINENO: result: $AR" >&5
6345echo "${ECHO_T}$AR" >&6
ca9f4b81 6346else
1c710c3c
DJ
6347 echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6
ca9f4b81 6349fi
1c710c3c 6350
2693c0b0
PB
6351 fi
6352 test -n "$ac_cv_prog_AR" && break
6353done
6354
6355if test -z "$ac_cv_prog_AR" ; then
6356 set dummy ar
6357 if test $build = $host ; then
6358 AR="$2"
ca9f4b81 6359 else
2693c0b0 6360 AR="${ncn_tool_prefix}$2"
ca9f4b81 6361 fi
ca9f4b81
AO
6362fi
6363
278a7a38
AO
6364
6365
6366if test -n "$AS"; then
6367 ac_cv_prog_AS=$AS
6368elif test -n "$ac_cv_prog_AS"; then
6369 AS=$ac_cv_prog_AS
6370fi
6371
6372if test -n "$ac_cv_prog_AS"; then
6373 for ncn_progname in as; do
6374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6375set dummy ${ncn_progname}; ac_word=$2
6376echo "$as_me:$LINENO: checking for $ac_word" >&5
6377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6378if test "${ac_cv_prog_AS+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 if test -n "$AS"; then
6382 ac_cv_prog_AS="$AS" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391 ac_cv_prog_AS="${ncn_progname}"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6394 fi
6395done
6396done
6397
6398fi
6399fi
6400AS=$ac_cv_prog_AS
6401if test -n "$AS"; then
6402 echo "$as_me:$LINENO: result: $AS" >&5
6403echo "${ECHO_T}$AS" >&6
6404else
6405 echo "$as_me:$LINENO: result: no" >&5
6406echo "${ECHO_T}no" >&6
6407fi
6408
6409 done
6410fi
6411
6412for ncn_progname in as; do
2693c0b0
PB
6413 if test -n "$ncn_tool_prefix"; then
6414 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6415set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6416echo "$as_me:$LINENO: checking for $ac_word" >&5
6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6418if test "${ac_cv_prog_AS+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6420else
6421 if test -n "$AS"; then
6422 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6423else
1c710c3c
DJ
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435done
6436done
6437
ca9f4b81
AO
6438fi
6439fi
1c710c3c 6440AS=$ac_cv_prog_AS
ca9f4b81 6441if test -n "$AS"; then
1c710c3c
DJ
6442 echo "$as_me:$LINENO: result: $AS" >&5
6443echo "${ECHO_T}$AS" >&6
ca9f4b81 6444else
1c710c3c
DJ
6445 echo "$as_me:$LINENO: result: no" >&5
6446echo "${ECHO_T}no" >&6
ca9f4b81
AO
6447fi
6448
2693c0b0
PB
6449 fi
6450 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6452set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6453echo "$as_me:$LINENO: checking for $ac_word" >&5
6454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6455if test "${ac_cv_prog_AS+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6457else
2693c0b0
PB
6458 if test -n "$AS"; then
6459 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6460else
1c710c3c
DJ
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_AS="${ncn_progname}"
6469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472done
6473done
6474
ca9f4b81
AO
6475fi
6476fi
1c710c3c 6477AS=$ac_cv_prog_AS
2693c0b0 6478if test -n "$AS"; then
1c710c3c
DJ
6479 echo "$as_me:$LINENO: result: $AS" >&5
6480echo "${ECHO_T}$AS" >&6
ca9f4b81 6481else
1c710c3c
DJ
6482 echo "$as_me:$LINENO: result: no" >&5
6483echo "${ECHO_T}no" >&6
ca9f4b81 6484fi
1c710c3c 6485
2693c0b0
PB
6486 fi
6487 test -n "$ac_cv_prog_AS" && break
6488done
6489
6490if test -z "$ac_cv_prog_AS" ; then
6491 set dummy as
6492 if test $build = $host ; then
6493 AS="$2"
ca9f4b81 6494 else
2693c0b0 6495 AS="${ncn_tool_prefix}$2"
ca9f4b81 6496 fi
ca9f4b81
AO
6497fi
6498
278a7a38
AO
6499
6500
6501if test -n "$DLLTOOL"; then
6502 ac_cv_prog_DLLTOOL=$DLLTOOL
6503elif test -n "$ac_cv_prog_DLLTOOL"; then
6504 DLLTOOL=$ac_cv_prog_DLLTOOL
6505fi
6506
6507if test -n "$ac_cv_prog_DLLTOOL"; then
6508 for ncn_progname in dlltool; do
6509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6510set dummy ${ncn_progname}; ac_word=$2
6511echo "$as_me:$LINENO: checking for $ac_word" >&5
6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6513if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515else
6516 if test -n "$DLLTOOL"; then
6517 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_DLLTOOL="${ncn_progname}"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531done
6532
6533fi
6534fi
6535DLLTOOL=$ac_cv_prog_DLLTOOL
6536if test -n "$DLLTOOL"; then
6537 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6538echo "${ECHO_T}$DLLTOOL" >&6
6539else
6540 echo "$as_me:$LINENO: result: no" >&5
6541echo "${ECHO_T}no" >&6
6542fi
6543
6544 done
6545fi
6546
6547for ncn_progname in dlltool; do
2693c0b0
PB
6548 if test -n "$ncn_tool_prefix"; then
6549 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6550set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6551echo "$as_me:$LINENO: checking for $ac_word" >&5
6552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6553if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6555else
6556 if test -n "$DLLTOOL"; then
6557 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6558else
1c710c3c
DJ
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570done
6571done
6572
ca9f4b81
AO
6573fi
6574fi
1c710c3c 6575DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6576if test -n "$DLLTOOL"; then
1c710c3c
DJ
6577 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6578echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6579else
1c710c3c
DJ
6580 echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
ca9f4b81
AO
6582fi
6583
2693c0b0
PB
6584 fi
6585 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6587set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6588echo "$as_me:$LINENO: checking for $ac_word" >&5
6589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6590if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6592else
2693c0b0
PB
6593 if test -n "$DLLTOOL"; then
6594 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6595else
1c710c3c
DJ
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_DLLTOOL="${ncn_progname}"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607done
6608done
6609
ca9f4b81
AO
6610fi
6611fi
1c710c3c 6612DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6613if test -n "$DLLTOOL"; then
1c710c3c
DJ
6614 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6615echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6616else
1c710c3c
DJ
6617 echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6
ca9f4b81 6619fi
1c710c3c 6620
2693c0b0
PB
6621 fi
6622 test -n "$ac_cv_prog_DLLTOOL" && break
6623done
6624
6625if test -z "$ac_cv_prog_DLLTOOL" ; then
6626 set dummy dlltool
6627 if test $build = $host ; then
6628 DLLTOOL="$2"
ca9f4b81 6629 else
2693c0b0 6630 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6631 fi
ca9f4b81
AO
6632fi
6633
278a7a38
AO
6634
6635
6636if test -n "$LD"; then
6637 ac_cv_prog_LD=$LD
6638elif test -n "$ac_cv_prog_LD"; then
6639 LD=$ac_cv_prog_LD
6640fi
6641
6642if test -n "$ac_cv_prog_LD"; then
6643 for ncn_progname in ld; do
6644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6645set dummy ${ncn_progname}; ac_word=$2
6646echo "$as_me:$LINENO: checking for $ac_word" >&5
6647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6648if test "${ac_cv_prog_LD+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651 if test -n "$LD"; then
6652 ac_cv_prog_LD="$LD" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661 ac_cv_prog_LD="${ncn_progname}"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665done
6666done
6667
6668fi
6669fi
6670LD=$ac_cv_prog_LD
6671if test -n "$LD"; then
6672 echo "$as_me:$LINENO: result: $LD" >&5
6673echo "${ECHO_T}$LD" >&6
6674else
6675 echo "$as_me:$LINENO: result: no" >&5
6676echo "${ECHO_T}no" >&6
6677fi
6678
6679 done
6680fi
6681
6682for ncn_progname in ld; do
2693c0b0
PB
6683 if test -n "$ncn_tool_prefix"; then
6684 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6685set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6686echo "$as_me:$LINENO: checking for $ac_word" >&5
6687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6688if test "${ac_cv_prog_LD+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6690else
6691 if test -n "$LD"; then
6692 ac_cv_prog_LD="$LD" # Let the user override the test.
6693else
1c710c3c
DJ
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706done
6707
ca9f4b81
AO
6708fi
6709fi
1c710c3c 6710LD=$ac_cv_prog_LD
ca9f4b81 6711if test -n "$LD"; then
1c710c3c
DJ
6712 echo "$as_me:$LINENO: result: $LD" >&5
6713echo "${ECHO_T}$LD" >&6
ca9f4b81 6714else
1c710c3c
DJ
6715 echo "$as_me:$LINENO: result: no" >&5
6716echo "${ECHO_T}no" >&6
ca9f4b81
AO
6717fi
6718
2693c0b0
PB
6719 fi
6720 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6722set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6723echo "$as_me:$LINENO: checking for $ac_word" >&5
6724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6725if test "${ac_cv_prog_LD+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6727else
2693c0b0
PB
6728 if test -n "$LD"; then
6729 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6730else
1c710c3c
DJ
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_LD="${ncn_progname}"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743done
6744
ca9f4b81
AO
6745fi
6746fi
1c710c3c 6747LD=$ac_cv_prog_LD
2693c0b0 6748if test -n "$LD"; then
1c710c3c
DJ
6749 echo "$as_me:$LINENO: result: $LD" >&5
6750echo "${ECHO_T}$LD" >&6
ca9f4b81 6751else
1c710c3c
DJ
6752 echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6
ca9f4b81 6754fi
1c710c3c 6755
2693c0b0
PB
6756 fi
6757 test -n "$ac_cv_prog_LD" && break
6758done
6759
6760if test -z "$ac_cv_prog_LD" ; then
6761 set dummy ld
6762 if test $build = $host ; then
6763 LD="$2"
ca9f4b81 6764 else
2693c0b0 6765 LD="${ncn_tool_prefix}$2"
ca9f4b81 6766 fi
ca9f4b81
AO
6767fi
6768
278a7a38
AO
6769
6770
6771if test -n "$LIPO"; then
6772 ac_cv_prog_LIPO=$LIPO
6773elif test -n "$ac_cv_prog_LIPO"; then
6774 LIPO=$ac_cv_prog_LIPO
6775fi
6776
6777if test -n "$ac_cv_prog_LIPO"; then
6778 for ncn_progname in lipo; do
6779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6780set dummy ${ncn_progname}; ac_word=$2
6781echo "$as_me:$LINENO: checking for $ac_word" >&5
6782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6783if test "${ac_cv_prog_LIPO+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 if test -n "$LIPO"; then
6787 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_LIPO="${ncn_progname}"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800done
6801done
6802
6803fi
6804fi
6805LIPO=$ac_cv_prog_LIPO
6806if test -n "$LIPO"; then
6807 echo "$as_me:$LINENO: result: $LIPO" >&5
6808echo "${ECHO_T}$LIPO" >&6
6809else
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
6812fi
6813
6814 done
6815fi
6816
6817for ncn_progname in lipo; do
2abefe3d
PB
6818 if test -n "$ncn_tool_prefix"; then
6819 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6820set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6821echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6823if test "${ac_cv_prog_LIPO+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6825else
6826 if test -n "$LIPO"; then
6827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6828else
1c710c3c
DJ
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
6842
2abefe3d
PB
6843fi
6844fi
1c710c3c 6845LIPO=$ac_cv_prog_LIPO
2abefe3d 6846if test -n "$LIPO"; then
1c710c3c
DJ
6847 echo "$as_me:$LINENO: result: $LIPO" >&5
6848echo "${ECHO_T}$LIPO" >&6
2abefe3d 6849else
1c710c3c
DJ
6850 echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6
2abefe3d
PB
6852fi
6853
6854 fi
6855 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6857set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6858echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6860if test "${ac_cv_prog_LIPO+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6862else
6863 if test -n "$LIPO"; then
6864 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6865else
1c710c3c
DJ
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_LIPO="${ncn_progname}"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878done
6879
2abefe3d
PB
6880fi
6881fi
1c710c3c 6882LIPO=$ac_cv_prog_LIPO
2abefe3d 6883if test -n "$LIPO"; then
1c710c3c
DJ
6884 echo "$as_me:$LINENO: result: $LIPO" >&5
6885echo "${ECHO_T}$LIPO" >&6
2abefe3d 6886else
1c710c3c
DJ
6887 echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
2abefe3d 6889fi
1c710c3c 6890
2abefe3d
PB
6891 fi
6892 test -n "$ac_cv_prog_LIPO" && break
6893done
6894
6895if test -z "$ac_cv_prog_LIPO" ; then
6896 set dummy lipo
6897 if test $build = $host ; then
6898 LIPO="$2"
6899 else
6900 LIPO="${ncn_tool_prefix}$2"
6901 fi
6902fi
6903
278a7a38
AO
6904
6905
6906if test -n "$NM"; then
6907 ac_cv_prog_NM=$NM
6908elif test -n "$ac_cv_prog_NM"; then
6909 NM=$ac_cv_prog_NM
6910fi
6911
6912if test -n "$ac_cv_prog_NM"; then
6913 for ncn_progname in nm; do
6914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6915set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6916echo "$as_me:$LINENO: checking for $ac_word" >&5
6917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6918if test "${ac_cv_prog_NM+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6920else
6921 if test -n "$NM"; then
6922 ac_cv_prog_NM="$NM" # Let the user override the test.
6923else
1c710c3c
DJ
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6931 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
6932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935done
6936done
6937
ca9f4b81
AO
6938fi
6939fi
1c710c3c 6940NM=$ac_cv_prog_NM
ca9f4b81 6941if test -n "$NM"; then
1c710c3c
DJ
6942 echo "$as_me:$LINENO: result: $NM" >&5
6943echo "${ECHO_T}$NM" >&6
ca9f4b81 6944else
1c710c3c
DJ
6945 echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6
ca9f4b81
AO
6947fi
6948
278a7a38
AO
6949 done
6950fi
6951
6952for ncn_progname in nm; do
6953 if test -n "$ncn_tool_prefix"; then
6954 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6955set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6956echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958if test "${ac_cv_prog_NM+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6960else
2693c0b0
PB
6961 if test -n "$NM"; then
6962 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 6963else
1c710c3c
DJ
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6971 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976done
6977
ca9f4b81
AO
6978fi
6979fi
1c710c3c 6980NM=$ac_cv_prog_NM
2693c0b0 6981if test -n "$NM"; then
1c710c3c
DJ
6982 echo "$as_me:$LINENO: result: $NM" >&5
6983echo "${ECHO_T}$NM" >&6
ca9f4b81 6984else
1c710c3c
DJ
6985 echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6
ca9f4b81 6987fi
1c710c3c 6988
2693c0b0 6989 fi
278a7a38
AO
6990 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6992set dummy ${ncn_progname}; ac_word=$2
6993echo "$as_me:$LINENO: checking for $ac_word" >&5
6994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6995if test "${ac_cv_prog_NM+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998 if test -n "$NM"; then
6999 ac_cv_prog_NM="$NM" # Let the user override the test.
7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_NM="${ncn_progname}"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012done
7013done
7014
7015fi
7016fi
7017NM=$ac_cv_prog_NM
7018if test -n "$NM"; then
7019 echo "$as_me:$LINENO: result: $NM" >&5
7020echo "${ECHO_T}$NM" >&6
7021else
7022 echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6
7024fi
7025
7026 fi
7027 test -n "$ac_cv_prog_NM" && break
7028done
7029
7030if test -z "$ac_cv_prog_NM" ; then
7031 set dummy nm
7032 if test $build = $host ; then
7033 NM="$2"
7034 else
7035 NM="${ncn_tool_prefix}$2"
7036 fi
7037fi
7038
7039
7040
7041if test -n "$RANLIB"; then
7042 ac_cv_prog_RANLIB=$RANLIB
7043elif test -n "$ac_cv_prog_RANLIB"; then
7044 RANLIB=$ac_cv_prog_RANLIB
7045fi
7046
7047if test -n "$ac_cv_prog_RANLIB"; then
7048 for ncn_progname in ranlib; do
7049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7050set dummy ${ncn_progname}; ac_word=$2
7051echo "$as_me:$LINENO: checking for $ac_word" >&5
7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7053if test "${ac_cv_prog_RANLIB+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055else
7056 if test -n "$RANLIB"; then
7057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7058else
7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_RANLIB="${ncn_progname}"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7069 fi
7070done
7071done
7072
7073fi
7074fi
7075RANLIB=$ac_cv_prog_RANLIB
7076if test -n "$RANLIB"; then
7077 echo "$as_me:$LINENO: result: $RANLIB" >&5
7078echo "${ECHO_T}$RANLIB" >&6
7079else
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082fi
7083
7084 done
7085fi
ca9f4b81 7086
278a7a38 7087for ncn_progname in ranlib; do
2693c0b0
PB
7088 if test -n "$ncn_tool_prefix"; then
7089 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7090set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7091echo "$as_me:$LINENO: checking for $ac_word" >&5
7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7093if test "${ac_cv_prog_RANLIB+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7095else
7096 if test -n "$RANLIB"; then
7097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7098else
1c710c3c
DJ
7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110done
7111done
7112
ca9f4b81
AO
7113fi
7114fi
1c710c3c 7115RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7116if test -n "$RANLIB"; then
1c710c3c
DJ
7117 echo "$as_me:$LINENO: result: $RANLIB" >&5
7118echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7119else
1c710c3c
DJ
7120 echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6
ca9f4b81
AO
7122fi
7123
2693c0b0
PB
7124 fi
7125 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7127set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7128echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7130if test "${ac_cv_prog_RANLIB+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7132else
2693c0b0
PB
7133 if test -n "$RANLIB"; then
7134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7135else
1c710c3c
DJ
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_RANLIB="${ncn_progname}"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147done
7148done
7149
ca9f4b81
AO
7150fi
7151fi
1c710c3c 7152RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7153if test -n "$RANLIB"; then
1c710c3c
DJ
7154 echo "$as_me:$LINENO: result: $RANLIB" >&5
7155echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7156else
1c710c3c
DJ
7157 echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6
ca9f4b81 7159fi
1c710c3c 7160
ca9f4b81 7161 fi
2693c0b0
PB
7162 test -n "$ac_cv_prog_RANLIB" && break
7163done
7164
7165if test -z "$ac_cv_prog_RANLIB" ; then
7166 RANLIB=":"
ca9f4b81
AO
7167fi
7168
278a7a38
AO
7169
7170
7171if test -n "$STRIP"; then
7172 ac_cv_prog_STRIP=$STRIP
7173elif test -n "$ac_cv_prog_STRIP"; then
7174 STRIP=$ac_cv_prog_STRIP
7175fi
7176
7177if test -n "$ac_cv_prog_STRIP"; then
7178 for ncn_progname in strip; do
7179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7180set dummy ${ncn_progname}; ac_word=$2
7181echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183if test "${ac_cv_prog_STRIP+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186 if test -n "$STRIP"; then
7187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_STRIP="${ncn_progname}"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200done
7201done
7202
7203fi
7204fi
7205STRIP=$ac_cv_prog_STRIP
7206if test -n "$STRIP"; then
7207 echo "$as_me:$LINENO: result: $STRIP" >&5
7208echo "${ECHO_T}$STRIP" >&6
7209else
7210 echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6
7212fi
7213
7214 done
7215fi
7216
7217for ncn_progname in strip; do
2abefe3d
PB
7218 if test -n "$ncn_tool_prefix"; then
7219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7220set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7221echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7223if test "${ac_cv_prog_STRIP+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7225else
7226 if test -n "$STRIP"; then
7227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7228else
1c710c3c
DJ
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240done
7241done
7242
2abefe3d
PB
7243fi
7244fi
1c710c3c 7245STRIP=$ac_cv_prog_STRIP
2abefe3d 7246if test -n "$STRIP"; then
1c710c3c
DJ
7247 echo "$as_me:$LINENO: result: $STRIP" >&5
7248echo "${ECHO_T}$STRIP" >&6
2abefe3d 7249else
1c710c3c
DJ
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
2abefe3d
PB
7252fi
7253
7254 fi
7255 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7257set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7258echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7260if test "${ac_cv_prog_STRIP+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7262else
7263 if test -n "$STRIP"; then
7264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7265else
1c710c3c
DJ
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_STRIP="${ncn_progname}"
7274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7276 fi
7277done
7278done
7279
2abefe3d
PB
7280fi
7281fi
1c710c3c 7282STRIP=$ac_cv_prog_STRIP
2abefe3d 7283if test -n "$STRIP"; then
1c710c3c
DJ
7284 echo "$as_me:$LINENO: result: $STRIP" >&5
7285echo "${ECHO_T}$STRIP" >&6
2abefe3d 7286else
1c710c3c
DJ
7287 echo "$as_me:$LINENO: result: no" >&5
7288echo "${ECHO_T}no" >&6
2abefe3d 7289fi
1c710c3c 7290
2abefe3d
PB
7291 fi
7292 test -n "$ac_cv_prog_STRIP" && break
7293done
7294
7295if test -z "$ac_cv_prog_STRIP" ; then
7296 STRIP=":"
7297fi
7298
278a7a38
AO
7299
7300
7301if test -n "$WINDRES"; then
7302 ac_cv_prog_WINDRES=$WINDRES
7303elif test -n "$ac_cv_prog_WINDRES"; then
7304 WINDRES=$ac_cv_prog_WINDRES
7305fi
7306
7307if test -n "$ac_cv_prog_WINDRES"; then
7308 for ncn_progname in windres; do
7309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7310set dummy ${ncn_progname}; ac_word=$2
7311echo "$as_me:$LINENO: checking for $ac_word" >&5
7312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313if test "${ac_cv_prog_WINDRES+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315else
7316 if test -n "$WINDRES"; then
7317 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_WINDRES="${ncn_progname}"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330done
7331done
7332
7333fi
7334fi
7335WINDRES=$ac_cv_prog_WINDRES
7336if test -n "$WINDRES"; then
7337 echo "$as_me:$LINENO: result: $WINDRES" >&5
7338echo "${ECHO_T}$WINDRES" >&6
7339else
7340 echo "$as_me:$LINENO: result: no" >&5
7341echo "${ECHO_T}no" >&6
7342fi
7343
7344 done
7345fi
7346
7347for ncn_progname in windres; do
2693c0b0
PB
7348 if test -n "$ncn_tool_prefix"; then
7349 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7350set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7351echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353if test "${ac_cv_prog_WINDRES+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7355else
7356 if test -n "$WINDRES"; then
7357 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7358else
1c710c3c
DJ
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370done
7371done
7372
ca9f4b81
AO
7373fi
7374fi
1c710c3c 7375WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7376if test -n "$WINDRES"; then
1c710c3c
DJ
7377 echo "$as_me:$LINENO: result: $WINDRES" >&5
7378echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7379else
1c710c3c
DJ
7380 echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6
ca9f4b81
AO
7382fi
7383
2693c0b0
PB
7384 fi
7385 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7387set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7388echo "$as_me:$LINENO: checking for $ac_word" >&5
7389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7390if test "${ac_cv_prog_WINDRES+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7392else
2693c0b0
PB
7393 if test -n "$WINDRES"; then
7394 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7395else
1c710c3c
DJ
7396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_WINDRES="${ncn_progname}"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407done
7408done
7409
ca9f4b81
AO
7410fi
7411fi
1c710c3c 7412WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7413if test -n "$WINDRES"; then
1c710c3c
DJ
7414 echo "$as_me:$LINENO: result: $WINDRES" >&5
7415echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7416else
1c710c3c
DJ
7417 echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6
ca9f4b81 7419fi
1c710c3c 7420
2693c0b0
PB
7421 fi
7422 test -n "$ac_cv_prog_WINDRES" && break
7423done
7424
7425if test -z "$ac_cv_prog_WINDRES" ; then
7426 set dummy windres
7427 if test $build = $host ; then
7428 WINDRES="$2"
ca9f4b81 7429 else
2693c0b0 7430 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7431 fi
ca9f4b81
AO
7432fi
7433
278a7a38
AO
7434
7435
7436if test -n "$OBJCOPY"; then
7437 ac_cv_prog_OBJCOPY=$OBJCOPY
7438elif test -n "$ac_cv_prog_OBJCOPY"; then
7439 OBJCOPY=$ac_cv_prog_OBJCOPY
7440fi
7441
7442if test -n "$ac_cv_prog_OBJCOPY"; then
7443 for ncn_progname in objcopy; do
7444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7445set dummy ${ncn_progname}; ac_word=$2
7446echo "$as_me:$LINENO: checking for $ac_word" >&5
7447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7448if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451 if test -n "$OBJCOPY"; then
7452 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_OBJCOPY="${ncn_progname}"
7462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465done
7466done
7467
7468fi
7469fi
7470OBJCOPY=$ac_cv_prog_OBJCOPY
7471if test -n "$OBJCOPY"; then
7472 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7473echo "${ECHO_T}$OBJCOPY" >&6
7474else
7475 echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
7477fi
7478
7479 done
7480fi
7481
7482for ncn_progname in objcopy; do
2693c0b0
PB
7483 if test -n "$ncn_tool_prefix"; then
7484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7486echo "$as_me:$LINENO: checking for $ac_word" >&5
7487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7490else
7491 if test -n "$OBJCOPY"; then
7492 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7493else
1c710c3c
DJ
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506done
7507
ca9f4b81
AO
7508fi
7509fi
1c710c3c 7510OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7511if test -n "$OBJCOPY"; then
1c710c3c
DJ
7512 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7513echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7514else
1c710c3c
DJ
7515 echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
ca9f4b81
AO
7517fi
7518
2693c0b0
PB
7519 fi
7520 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7522set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7523echo "$as_me:$LINENO: checking for $ac_word" >&5
7524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7525if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7527else
2693c0b0
PB
7528 if test -n "$OBJCOPY"; then
7529 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7530else
1c710c3c
DJ
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_OBJCOPY="${ncn_progname}"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542done
7543done
7544
ca9f4b81
AO
7545fi
7546fi
1c710c3c 7547OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7548if test -n "$OBJCOPY"; then
1c710c3c
DJ
7549 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7550echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7551else
1c710c3c
DJ
7552 echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6
ca9f4b81 7554fi
1c710c3c 7555
2693c0b0
PB
7556 fi
7557 test -n "$ac_cv_prog_OBJCOPY" && break
7558done
7559
7560if test -z "$ac_cv_prog_OBJCOPY" ; then
7561 set dummy objcopy
7562 if test $build = $host ; then
7563 OBJCOPY="$2"
ca9f4b81 7564 else
2693c0b0 7565 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7566 fi
ca9f4b81
AO
7567fi
7568
278a7a38
AO
7569
7570
7571if test -n "$OBJDUMP"; then
7572 ac_cv_prog_OBJDUMP=$OBJDUMP
7573elif test -n "$ac_cv_prog_OBJDUMP"; then
7574 OBJDUMP=$ac_cv_prog_OBJDUMP
7575fi
7576
7577if test -n "$ac_cv_prog_OBJDUMP"; then
7578 for ncn_progname in objdump; do
7579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7580set dummy ${ncn_progname}; ac_word=$2
7581echo "$as_me:$LINENO: checking for $ac_word" >&5
7582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7583if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586 if test -n "$OBJDUMP"; then
7587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596 ac_cv_prog_OBJDUMP="${ncn_progname}"
7597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600done
7601done
7602
7603fi
7604fi
7605OBJDUMP=$ac_cv_prog_OBJDUMP
7606if test -n "$OBJDUMP"; then
7607 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7608echo "${ECHO_T}$OBJDUMP" >&6
7609else
7610 echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6
7612fi
7613
7614 done
7615fi
7616
7617for ncn_progname in objdump; do
2693c0b0
PB
7618 if test -n "$ncn_tool_prefix"; then
7619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7620set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7621echo "$as_me:$LINENO: checking for $ac_word" >&5
7622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7623if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7625else
7626 if test -n "$OBJDUMP"; then
7627 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7628else
1c710c3c
DJ
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640done
7641done
7642
ca9f4b81
AO
7643fi
7644fi
1c710c3c 7645OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7646if test -n "$OBJDUMP"; then
1c710c3c
DJ
7647 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7648echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7649else
1c710c3c
DJ
7650 echo "$as_me:$LINENO: result: no" >&5
7651echo "${ECHO_T}no" >&6
ca9f4b81
AO
7652fi
7653
2693c0b0
PB
7654 fi
7655 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7657set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7658echo "$as_me:$LINENO: checking for $ac_word" >&5
7659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7662else
2693c0b0
PB
7663 if test -n "$OBJDUMP"; then
7664 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7665else
1c710c3c
DJ
7666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667for as_dir in $PATH
7668do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673 ac_cv_prog_OBJDUMP="${ncn_progname}"
7674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2
7676 fi
7677done
7678done
7679
ca9f4b81
AO
7680fi
7681fi
1c710c3c 7682OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7683if test -n "$OBJDUMP"; then
1c710c3c
DJ
7684 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7685echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7686else
1c710c3c
DJ
7687 echo "$as_me:$LINENO: result: no" >&5
7688echo "${ECHO_T}no" >&6
ca9f4b81 7689fi
1c710c3c 7690
2693c0b0
PB
7691 fi
7692 test -n "$ac_cv_prog_OBJDUMP" && break
7693done
7694
7695if test -z "$ac_cv_prog_OBJDUMP" ; then
7696 set dummy objdump
7697 if test $build = $host ; then
7698 OBJDUMP="$2"
ca9f4b81 7699 else
2693c0b0 7700 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7701 fi
ca9f4b81
AO
7702fi
7703
671aa708
NN
7704
7705
7706
7707
7708
7709
2abefe3d 7710# Target tools.
1c710c3c 7711
e8b05380
PB
7712# Check whether --with-build-time-tools or --without-build-time-tools was given.
7713if test "${with_build_time_tools+set}" = set; then
7714 withval="$with_build_time_tools"
7715 case x"$withval" in
7716 x/*) ;;
7717 *)
7718 with_build_time_tools=
1c710c3c
DJ
7719 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7720echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7721 ;;
7722 esac
ca9f4b81 7723else
e8b05380 7724 with_build_time_tools=
1c710c3c 7725fi;
ca9f4b81 7726
278a7a38
AO
7727
7728
7729if test -n "$CC_FOR_TARGET"; then
7730 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7731elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7732 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7733fi
7734
7735if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7736 for ncn_progname in cc gcc; do
7737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7738set dummy ${ncn_progname}; ac_word=$2
7739echo "$as_me:$LINENO: checking for $ac_word" >&5
7740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744 if test -n "$CC_FOR_TARGET"; then
7745 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759done
7760
7761fi
7762fi
7763CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7764if test -n "$CC_FOR_TARGET"; then
7765 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7766echo "${ECHO_T}$CC_FOR_TARGET" >&6
7767else
7768 echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
7770fi
7771
7772 done
7773fi
7774
7775if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7776 for ncn_progname in cc gcc; do
1c710c3c
DJ
7777 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7778echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7779 if test -x $with_build_time_tools/${ncn_progname}; then
7780 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
72a7ab82 7783 break
e8b05380 7784 else
1c710c3c
DJ
7785 echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
72a7ab82
AP
7787 fi
7788 done
4de997d1
PB
7789fi
7790
e8b05380
PB
7791if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7792 for ncn_progname in cc gcc; do
7793 if test -n "$ncn_target_tool_prefix"; then
7794 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7795set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7796echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7800else
7801 if test -n "$CC_FOR_TARGET"; then
7802 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7803else
1c710c3c
DJ
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7814 fi
7815done
7816done
7817
4de997d1
PB
7818fi
7819fi
1c710c3c 7820CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 7821if test -n "$CC_FOR_TARGET"; then
1c710c3c
DJ
7822 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7823echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 7824else
1c710c3c
DJ
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
4de997d1
PB
7827fi
7828
e8b05380
PB
7829 fi
7830 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7832set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7833echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7835if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7837else
2693c0b0
PB
7838 if test -n "$CC_FOR_TARGET"; then
7839 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 7840else
1c710c3c
DJ
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852done
7853done
7854
4de997d1
PB
7855fi
7856fi
1c710c3c 7857CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 7858if test -n "$CC_FOR_TARGET"; then
1c710c3c
DJ
7859 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7860echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 7861else
1c710c3c
DJ
7862 echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
4de997d1 7864fi
1c710c3c 7865
e8b05380
PB
7866 fi
7867 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7868 done
7869fi
1c710c3c 7870
2693c0b0
PB
7871if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7872 set dummy cc gcc
7873 if test $build = $target ; then
7874 CC_FOR_TARGET="$2"
4de997d1 7875 else
2693c0b0 7876 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 7877 fi
4de997d1
PB
7878fi
7879
278a7a38
AO
7880
7881
7882if test -n "$CXX_FOR_TARGET"; then
7883 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
7884elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7885 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7886fi
7887
7888if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7889 for ncn_progname in c++ g++ cxx gxx; do
7890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7891set dummy ${ncn_progname}; ac_word=$2
7892echo "$as_me:$LINENO: checking for $ac_word" >&5
7893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7894if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 if test -n "$CXX_FOR_TARGET"; then
7898 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7899else
7900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911done
7912done
7913
7914fi
7915fi
7916CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7917if test -n "$CXX_FOR_TARGET"; then
7918 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7919echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7920else
7921 echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6
7923fi
7924
7925 done
7926fi
7927
7928if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7929 for ncn_progname in c++ g++ cxx gxx; do
1c710c3c
DJ
7930 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7931echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7932 if test -x $with_build_time_tools/${ncn_progname}; then
7933 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7934 echo "$as_me:$LINENO: result: yes" >&5
7935echo "${ECHO_T}yes" >&6
e8b05380
PB
7936 break
7937 else
1c710c3c
DJ
7938 echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6
e8b05380
PB
7940 fi
7941 done
7942fi
7943
7944if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7945 for ncn_progname in c++ g++ cxx gxx; do
7946 if test -n "$ncn_target_tool_prefix"; then
7947 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7948set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7949echo "$as_me:$LINENO: checking for $ac_word" >&5
7950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7953else
7954 if test -n "$CXX_FOR_TARGET"; then
7955 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7956else
1c710c3c
DJ
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968done
7969done
7970
4de997d1
PB
7971fi
7972fi
1c710c3c 7973CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 7974if test -n "$CXX_FOR_TARGET"; then
1c710c3c
DJ
7975 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7976echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 7977else
1c710c3c
DJ
7978 echo "$as_me:$LINENO: result: no" >&5
7979echo "${ECHO_T}no" >&6
4de997d1
PB
7980fi
7981
e8b05380
PB
7982 fi
7983 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7985set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7986echo "$as_me:$LINENO: checking for $ac_word" >&5
7987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7988if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7990else
2693c0b0
PB
7991 if test -n "$CXX_FOR_TARGET"; then
7992 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 7993else
1c710c3c
DJ
7994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995for as_dir in $PATH
7996do
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8001 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8004 fi
8005done
8006done
8007
4de997d1
PB
8008fi
8009fi
1c710c3c 8010CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8011if test -n "$CXX_FOR_TARGET"; then
1c710c3c
DJ
8012 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8013echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8014else
1c710c3c
DJ
8015 echo "$as_me:$LINENO: result: no" >&5
8016echo "${ECHO_T}no" >&6
4de997d1 8017fi
1c710c3c 8018
e8b05380
PB
8019 fi
8020 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8021 done
8022fi
1c710c3c 8023
2693c0b0
PB
8024if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8025 set dummy c++ g++ cxx gxx
8026 if test $build = $target ; then
8027 CXX_FOR_TARGET="$2"
4de997d1 8028 else
2693c0b0 8029 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8030 fi
ca9f4b81
AO
8031fi
8032
278a7a38
AO
8033
8034
8035if test -n "$GCC_FOR_TARGET"; then
8036 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8037elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8038 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8039fi
8040
8041if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8042 for ncn_progname in gcc; do
8043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8044set dummy ${ncn_progname}; ac_word=$2
8045echo "$as_me:$LINENO: checking for $ac_word" >&5
8046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8047if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049else
8050 if test -n "$GCC_FOR_TARGET"; then
8051 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8052else
8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054for as_dir in $PATH
8055do
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064done
8065done
8066
8067fi
8068fi
8069GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8070if test -n "$GCC_FOR_TARGET"; then
8071 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8072echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8073else
8074 echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6
8076fi
8077
8078 done
8079fi
8080
8081if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8082 for ncn_progname in gcc; do
1c710c3c
DJ
8083 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8084echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8085 if test -x $with_build_time_tools/${ncn_progname}; then
8086 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8087 echo "$as_me:$LINENO: result: yes" >&5
8088echo "${ECHO_T}yes" >&6
e8b05380
PB
8089 break
8090 else
1c710c3c
DJ
8091 echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
e8b05380
PB
8093 fi
8094 done
8095fi
8096
8097if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8098 for ncn_progname in gcc; do
8099 if test -n "$ncn_target_tool_prefix"; then
8100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8101set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8102echo "$as_me:$LINENO: checking for $ac_word" >&5
8103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8104if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8106else
e8b05380
PB
8107 if test -n "$GCC_FOR_TARGET"; then
8108 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8109else
1c710c3c
DJ
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121done
8122done
8123
ca9f4b81
AO
8124fi
8125fi
1c710c3c 8126GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8127if test -n "$GCC_FOR_TARGET"; then
1c710c3c
DJ
8128 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8129echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8130else
1c710c3c
DJ
8131 echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6
ca9f4b81
AO
8133fi
8134
e8b05380
PB
8135 fi
8136 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8138set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8139echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8141if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8143else
e8b05380
PB
8144 if test -n "$GCC_FOR_TARGET"; then
8145 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8146else
1c710c3c
DJ
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8157 fi
8158done
8159done
8160
ca9f4b81
AO
8161fi
8162fi
1c710c3c 8163GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8164if test -n "$GCC_FOR_TARGET"; then
1c710c3c
DJ
8165 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8166echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8167else
1c710c3c
DJ
8168 echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6
ca9f4b81 8170fi
1c710c3c 8171
e8b05380
PB
8172 fi
8173 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8174 done
8175fi
1c710c3c 8176
e8b05380
PB
8177if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8178 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8179fi
8180
278a7a38
AO
8181
8182
8183if test -n "$GCJ_FOR_TARGET"; then
8184 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8185elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8186 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8187fi
8188
8189if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8190 for ncn_progname in gcj; do
8191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8192set dummy ${ncn_progname}; ac_word=$2
8193echo "$as_me:$LINENO: checking for $ac_word" >&5
8194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8195if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8197else
8198 if test -n "$GCJ_FOR_TARGET"; then
8199 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8200else
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212done
8213done
8214
8215fi
8216fi
8217GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8218if test -n "$GCJ_FOR_TARGET"; then
8219 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8220echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8221else
8222 echo "$as_me:$LINENO: result: no" >&5
8223echo "${ECHO_T}no" >&6
8224fi
8225
8226 done
8227fi
8228
8229if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8230 for ncn_progname in gcj; do
1c710c3c
DJ
8231 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8232echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8233 if test -x $with_build_time_tools/${ncn_progname}; then
8234 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8235 echo "$as_me:$LINENO: result: yes" >&5
8236echo "${ECHO_T}yes" >&6
e8b05380
PB
8237 break
8238 else
1c710c3c
DJ
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
e8b05380
PB
8241 fi
8242 done
8243fi
8244
8245if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8246 for ncn_progname in gcj; do
8247 if test -n "$ncn_target_tool_prefix"; then
8248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8249set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8250echo "$as_me:$LINENO: checking for $ac_word" >&5
8251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8252if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8254else
fb0103e5
RG
8255 if test -n "$GCJ_FOR_TARGET"; then
8256 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8257else
1c710c3c
DJ
8258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259for as_dir in $PATH
8260do
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8265 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 break 2
8268 fi
8269done
8270done
8271
e8b05380
PB
8272fi
8273fi
278a7a38
AO
8274GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8275if test -n "$GCJ_FOR_TARGET"; then
8276 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8277echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8278else
8279 echo "$as_me:$LINENO: result: no" >&5
8280echo "${ECHO_T}no" >&6
8281fi
8282
8283 fi
8284 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8286set dummy ${ncn_progname}; ac_word=$2
8287echo "$as_me:$LINENO: checking for $ac_word" >&5
8288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8289if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 if test -n "$GCJ_FOR_TARGET"; then
8293 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8294else
8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306done
8307done
8308
8309fi
8310fi
8311GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8312if test -n "$GCJ_FOR_TARGET"; then
8313 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8314echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8315else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318fi
8319
8320 fi
8321 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8322 done
8323fi
8324
8325if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8326 set dummy gcj
8327 if test $build = $target ; then
8328 GCJ_FOR_TARGET="$2"
8329 else
8330 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8331 fi
8332fi
8333
8334
8335
8336if test -n "$GFORTRAN_FOR_TARGET"; then
8337 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8338elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8339 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8340fi
8341
278a7a38
AO
8342if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8343 for ncn_progname in gfortran; do
8344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8345set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8346echo "$as_me:$LINENO: checking for $ac_word" >&5
8347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8348if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8349 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8350else
278a7a38
AO
8351 if test -n "$GFORTRAN_FOR_TARGET"; then
8352 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8353else
1c710c3c
DJ
8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355for as_dir in $PATH
8356do
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8361 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 break 2
8364 fi
8365done
8366done
8367
e8b05380
PB
8368fi
8369fi
278a7a38
AO
8370GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8371if test -n "$GFORTRAN_FOR_TARGET"; then
8372 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8373echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8374else
1c710c3c
DJ
8375 echo "$as_me:$LINENO: result: no" >&5
8376echo "${ECHO_T}no" >&6
e8b05380 8377fi
1c710c3c 8378
e8b05380
PB
8379 done
8380fi
1c710c3c 8381
278a7a38 8382if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8383 for ncn_progname in gfortran; do
1c710c3c
DJ
8384 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8385echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8386 if test -x $with_build_time_tools/${ncn_progname}; then
8387 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8388 echo "$as_me:$LINENO: result: yes" >&5
8389echo "${ECHO_T}yes" >&6
e8b05380
PB
8390 break
8391 else
1c710c3c
DJ
8392 echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
e8b05380
PB
8394 fi
8395 done
8396fi
8397
8398if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8399 for ncn_progname in gfortran; do
8400 if test -n "$ncn_target_tool_prefix"; then
8401 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8402set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8403echo "$as_me:$LINENO: checking for $ac_word" >&5
8404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8405if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8407else
8408 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8409 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8410else
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422done
8423done
8424
e8b05380
PB
8425fi
8426fi
1c710c3c 8427GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8428if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8429 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8430echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8431else
1c710c3c
DJ
8432 echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6
e8b05380
PB
8434fi
8435
8436 fi
8437 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8439set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8440echo "$as_me:$LINENO: checking for $ac_word" >&5
8441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8442if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8444else
8445 if test -n "$GFORTRAN_FOR_TARGET"; then
8446 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8447else
1c710c3c
DJ
8448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8455 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8458 fi
8459done
8460done
8461
e8b05380
PB
8462fi
8463fi
1c710c3c 8464GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8465if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8466 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8467echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8468else
1c710c3c
DJ
8469 echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6
e8b05380 8471fi
1c710c3c 8472
e8b05380
PB
8473 fi
8474 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8475 done
8476fi
1c710c3c 8477
e8b05380
PB
8478if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8479 set dummy gfortran
2693c0b0 8480 if test $build = $target ; then
e8b05380 8481 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8482 else
e8b05380
PB
8483 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8484 fi
8485fi
8486
8487
8488
e8b05380
PB
8489cat > conftest.c << \EOF
8490#ifdef __GNUC__
8491 gcc_yay;
8492#endif
8493EOF
8494if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8495 have_gcc_for_target=yes
8496else
8497 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8498 have_gcc_for_target=no
8499fi
8500rm conftest.c
8501
8502
8503
8504
8505if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8506 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8507 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8508echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8509 if test -x $with_build_time_tools/ar; then
8510 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8511 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
1c710c3c
DJ
8512 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8513echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8514 else
1c710c3c
DJ
8515 echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
d1f8db0c 8517 fi
e8b05380
PB
8518 elif test $build != $host && test $have_gcc_for_target = yes; then
8519 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8520 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
8521 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8522 fi
8523fi
3e19841a 8524if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8525 # Extract the first word of "ar", so it can be a program name with args.
8526set dummy ar; ac_word=$2
1c710c3c
DJ
8527echo "$as_me:$LINENO: checking for $ac_word" >&5
8528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8529if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8531else
1c710c3c
DJ
8532 case $AR_FOR_TARGET in
8533 [\\/]* | ?:[\\/]*)
e8b05380
PB
8534 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8535 ;;
e8b05380 8536 *)
1c710c3c
DJ
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $gcc_cv_tool_dirs
8539do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548done
8549done
8550
e8b05380
PB
8551 ;;
8552esac
8553fi
1c710c3c
DJ
8554AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8555
e8b05380 8556if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
8557 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8558echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8559else
1c710c3c
DJ
8560 echo "$as_me:$LINENO: result: no" >&5
8561echo "${ECHO_T}no" >&6
4de997d1
PB
8562fi
8563
e8b05380
PB
8564fi
8565if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8566
8567
8568if test -n "$AR_FOR_TARGET"; then
8569 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8570elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8571 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8572fi
8573
8574if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8575 for ncn_progname in ar; do
8576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8577set dummy ${ncn_progname}; ac_word=$2
8578echo "$as_me:$LINENO: checking for $ac_word" >&5
8579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8580if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583 if test -n "$AR_FOR_TARGET"; then
8584 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8585else
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8596 fi
8597done
8598done
8599
8600fi
8601fi
8602AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8603if test -n "$AR_FOR_TARGET"; then
8604 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8605echo "${ECHO_T}$AR_FOR_TARGET" >&6
8606else
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
8609fi
8610
8611 done
8612fi
8613
8614if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8615 for ncn_progname in ar; do
1c710c3c
DJ
8616 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8617echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8618 if test -x $with_build_time_tools/${ncn_progname}; then
8619 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8620 echo "$as_me:$LINENO: result: yes" >&5
8621echo "${ECHO_T}yes" >&6
e8b05380
PB
8622 break
8623 else
1c710c3c
DJ
8624 echo "$as_me:$LINENO: result: no" >&5
8625echo "${ECHO_T}no" >&6
e8b05380
PB
8626 fi
8627 done
8628fi
8629
8630if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8631 for ncn_progname in ar; do
8632 if test -n "$ncn_target_tool_prefix"; then
8633 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8634set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8635echo "$as_me:$LINENO: checking for $ac_word" >&5
8636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8637if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8639else
e8b05380
PB
8640 if test -n "$AR_FOR_TARGET"; then
8641 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8642else
1c710c3c
DJ
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654done
8655done
8656
4de997d1
PB
8657fi
8658fi
1c710c3c 8659AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8660if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
8661 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8662echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8663else
1c710c3c
DJ
8664 echo "$as_me:$LINENO: result: no" >&5
8665echo "${ECHO_T}no" >&6
4de997d1
PB
8666fi
8667
e8b05380
PB
8668 fi
8669 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8671set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8672echo "$as_me:$LINENO: checking for $ac_word" >&5
8673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8674if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8676else
8677 if test -n "$AR_FOR_TARGET"; then
8678 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8679else
1c710c3c
DJ
8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681for as_dir in $PATH
8682do
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8687 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 break 2
8690 fi
8691done
8692done
8693
e8b05380
PB
8694fi
8695fi
1c710c3c 8696AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8697if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
8698 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8699echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8700else
1c710c3c
DJ
8701 echo "$as_me:$LINENO: result: no" >&5
8702echo "${ECHO_T}no" >&6
e8b05380 8703fi
1c710c3c 8704
e8b05380
PB
8705 fi
8706 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8707 done
8708fi
1c710c3c 8709
e8b05380
PB
8710if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8711 set dummy ar
8712 if test $build = $target ; then
8713 AR_FOR_TARGET="$2"
8714 else
8715 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8716 fi
e8b05380
PB
8717fi
8718
d1f8db0c
PB
8719else
8720 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8721fi
8722
8723
8724
8725
8726if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8727 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8728 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8729echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8730 if test -x $with_build_time_tools/as; then
8731 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8732 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
1c710c3c
DJ
8733 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8734echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 8735 else
1c710c3c
DJ
8736 echo "$as_me:$LINENO: result: no" >&5
8737echo "${ECHO_T}no" >&6
d1f8db0c 8738 fi
e8b05380
PB
8739 elif test $build != $host && test $have_gcc_for_target = yes; then
8740 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8741 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
8742 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8743 fi
8744fi
3e19841a 8745if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8746 # Extract the first word of "as", so it can be a program name with args.
8747set dummy as; ac_word=$2
1c710c3c
DJ
8748echo "$as_me:$LINENO: checking for $ac_word" >&5
8749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8750if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8752else
1c710c3c
DJ
8753 case $AS_FOR_TARGET in
8754 [\\/]* | ?:[\\/]*)
e8b05380
PB
8755 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8756 ;;
e8b05380 8757 *)
1c710c3c
DJ
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759for as_dir in $gcc_cv_tool_dirs
8760do
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8768 fi
8769done
8770done
8771
e8b05380
PB
8772 ;;
8773esac
8774fi
1c710c3c
DJ
8775AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8776
e8b05380 8777if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
8778 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8779echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 8780else
1c710c3c
DJ
8781 echo "$as_me:$LINENO: result: no" >&5
8782echo "${ECHO_T}no" >&6
e8b05380
PB
8783fi
8784
8785fi
8786if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
8787
8788
8789if test -n "$AS_FOR_TARGET"; then
8790 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8791elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8792 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8793fi
8794
8795if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8796 for ncn_progname in as; do
8797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8798set dummy ${ncn_progname}; ac_word=$2
8799echo "$as_me:$LINENO: checking for $ac_word" >&5
8800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8801if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803else
8804 if test -n "$AS_FOR_TARGET"; then
8805 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8806else
8807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808for as_dir in $PATH
8809do
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8817 fi
8818done
8819done
8820
8821fi
8822fi
8823AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8824if test -n "$AS_FOR_TARGET"; then
8825 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8826echo "${ECHO_T}$AS_FOR_TARGET" >&6
8827else
8828 echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
8830fi
8831
8832 done
8833fi
8834
8835if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8836 for ncn_progname in as; do
1c710c3c
DJ
8837 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8838echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8839 if test -x $with_build_time_tools/${ncn_progname}; then
8840 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8841 echo "$as_me:$LINENO: result: yes" >&5
8842echo "${ECHO_T}yes" >&6
e8b05380
PB
8843 break
8844 else
1c710c3c
DJ
8845 echo "$as_me:$LINENO: result: no" >&5
8846echo "${ECHO_T}no" >&6
e8b05380
PB
8847 fi
8848 done
8849fi
8850
8851if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8852 for ncn_progname in as; do
8853 if test -n "$ncn_target_tool_prefix"; then
8854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8855set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8856echo "$as_me:$LINENO: checking for $ac_word" >&5
8857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8858if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8860else
8861 if test -n "$AS_FOR_TARGET"; then
8862 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8863else
1c710c3c
DJ
8864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865for as_dir in $PATH
8866do
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8874 fi
8875done
8876done
8877
e8b05380
PB
8878fi
8879fi
1c710c3c 8880AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 8881if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
8882 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8883echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 8884else
1c710c3c
DJ
8885 echo "$as_me:$LINENO: result: no" >&5
8886echo "${ECHO_T}no" >&6
e8b05380
PB
8887fi
8888
8889 fi
8890 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
8891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8892set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8893echo "$as_me:$LINENO: checking for $ac_word" >&5
8894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8895if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8897else
e8b05380
PB
8898 if test -n "$AS_FOR_TARGET"; then
8899 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 8900else
1c710c3c
DJ
8901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902for as_dir in $PATH
8903do
8904 IFS=$as_save_IFS
8905 test -z "$as_dir" && as_dir=.
8906 for ac_exec_ext in '' $ac_executable_extensions; do
8907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8908 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8910 break 2
8911 fi
8912done
8913done
8914
4de997d1
PB
8915fi
8916fi
1c710c3c 8917AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 8918if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
8919 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8920echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 8921else
1c710c3c
DJ
8922 echo "$as_me:$LINENO: result: no" >&5
8923echo "${ECHO_T}no" >&6
4de997d1 8924fi
1c710c3c 8925
e8b05380
PB
8926 fi
8927 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
8928 done
8929fi
1c710c3c 8930
e8b05380
PB
8931if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
8932 set dummy as
8933 if test $build = $target ; then
8934 AS_FOR_TARGET="$2"
8935 else
8936 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8937 fi
e8b05380 8938fi
2693c0b0 8939
d1f8db0c
PB
8940else
8941 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
8942fi
8943
e8b05380
PB
8944
8945
8946
8947if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
8948 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8949 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
8950echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8951 if test -x $with_build_time_tools/dlltool; then
8952 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
8953 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
1c710c3c
DJ
8954 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
8955echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 8956 else
1c710c3c
DJ
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
d1f8db0c 8959 fi
e8b05380
PB
8960 elif test $build != $host && test $have_gcc_for_target = yes; then
8961 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
8962 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
8963 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8964 fi
8965fi
3e19841a 8966if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8967 # Extract the first word of "dlltool", so it can be a program name with args.
8968set dummy dlltool; ac_word=$2
1c710c3c
DJ
8969echo "$as_me:$LINENO: checking for $ac_word" >&5
8970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8971if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8973else
1c710c3c
DJ
8974 case $DLLTOOL_FOR_TARGET in
8975 [\\/]* | ?:[\\/]*)
e8b05380
PB
8976 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
8977 ;;
e8b05380 8978 *)
1c710c3c
DJ
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $gcc_cv_tool_dirs
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990done
8991done
8992
e8b05380
PB
8993 ;;
8994esac
4de997d1 8995fi
1c710c3c
DJ
8996DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8997
e8b05380 8998if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
8999 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9000echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9001else
1c710c3c
DJ
9002 echo "$as_me:$LINENO: result: no" >&5
9003echo "${ECHO_T}no" >&6
4de997d1
PB
9004fi
9005
e8b05380
PB
9006fi
9007if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9008
9009
9010if test -n "$DLLTOOL_FOR_TARGET"; then
9011 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9012elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9013 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9014fi
9015
9016if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9017 for ncn_progname in dlltool; do
9018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9019set dummy ${ncn_progname}; ac_word=$2
9020echo "$as_me:$LINENO: checking for $ac_word" >&5
9021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9022if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024else
9025 if test -n "$DLLTOOL_FOR_TARGET"; then
9026 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9027else
9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029for as_dir in $PATH
9030do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9035 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9038 fi
9039done
9040done
9041
9042fi
9043fi
9044DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9045if test -n "$DLLTOOL_FOR_TARGET"; then
9046 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9047echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9048else
9049 echo "$as_me:$LINENO: result: no" >&5
9050echo "${ECHO_T}no" >&6
9051fi
9052
9053 done
9054fi
9055
9056if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9057 for ncn_progname in dlltool; do
1c710c3c
DJ
9058 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9059echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9060 if test -x $with_build_time_tools/${ncn_progname}; then
9061 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9062 echo "$as_me:$LINENO: result: yes" >&5
9063echo "${ECHO_T}yes" >&6
e8b05380
PB
9064 break
9065 else
1c710c3c
DJ
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
e8b05380
PB
9068 fi
9069 done
9070fi
9071
9072if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9073 for ncn_progname in dlltool; do
9074 if test -n "$ncn_target_tool_prefix"; then
9075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9076set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9077echo "$as_me:$LINENO: checking for $ac_word" >&5
9078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9079if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9081else
e8b05380
PB
9082 if test -n "$DLLTOOL_FOR_TARGET"; then
9083 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9084else
1c710c3c
DJ
9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096done
9097done
9098
4de997d1
PB
9099fi
9100fi
1c710c3c 9101DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9102if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
9103 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9104echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9105else
1c710c3c
DJ
9106 echo "$as_me:$LINENO: result: no" >&5
9107echo "${ECHO_T}no" >&6
4de997d1 9108fi
4de997d1 9109
e8b05380
PB
9110 fi
9111 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9113set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9114echo "$as_me:$LINENO: checking for $ac_word" >&5
9115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9116if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9118else
e8b05380
PB
9119 if test -n "$DLLTOOL_FOR_TARGET"; then
9120 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9121else
1c710c3c
DJ
9122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9132 fi
9133done
9134done
9135
4de997d1
PB
9136fi
9137fi
1c710c3c 9138DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9139if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
9140 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9141echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9142else
1c710c3c
DJ
9143 echo "$as_me:$LINENO: result: no" >&5
9144echo "${ECHO_T}no" >&6
4de997d1 9145fi
1c710c3c 9146
e8b05380
PB
9147 fi
9148 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9149 done
9150fi
1c710c3c 9151
e8b05380
PB
9152if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9153 set dummy dlltool
9154 if test $build = $target ; then
9155 DLLTOOL_FOR_TARGET="$2"
9156 else
9157 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9158 fi
9159fi
9160
d1f8db0c
PB
9161else
9162 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9163fi
9164
4de997d1 9165
e8b05380
PB
9166
9167
9168if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9169 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9170 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9171echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9172 if test -x $with_build_time_tools/ld; then
9173 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9174 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
1c710c3c
DJ
9175 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9176echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9177 else
1c710c3c
DJ
9178 echo "$as_me:$LINENO: result: no" >&5
9179echo "${ECHO_T}no" >&6
d1f8db0c 9180 fi
e8b05380
PB
9181 elif test $build != $host && test $have_gcc_for_target = yes; then
9182 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9183 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9184 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9185 fi
e8b05380 9186fi
3e19841a 9187if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9188 # Extract the first word of "ld", so it can be a program name with args.
9189set dummy ld; ac_word=$2
1c710c3c
DJ
9190echo "$as_me:$LINENO: checking for $ac_word" >&5
9191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9192if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9194else
1c710c3c
DJ
9195 case $LD_FOR_TARGET in
9196 [\\/]* | ?:[\\/]*)
e8b05380
PB
9197 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9198 ;;
e8b05380 9199 *)
1c710c3c
DJ
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201for as_dir in $gcc_cv_tool_dirs
9202do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9210 fi
9211done
9212done
9213
e8b05380
PB
9214 ;;
9215esac
4de997d1 9216fi
1c710c3c
DJ
9217LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9218
e8b05380 9219if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
9220 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9221echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9222else
1c710c3c
DJ
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
4de997d1 9225fi
2693c0b0 9226
e8b05380
PB
9227fi
9228if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9229
9230
9231if test -n "$LD_FOR_TARGET"; then
9232 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9233elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9234 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9235fi
9236
9237if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9238 for ncn_progname in ld; do
9239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9240set dummy ${ncn_progname}; ac_word=$2
9241echo "$as_me:$LINENO: checking for $ac_word" >&5
9242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9243if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9245else
9246 if test -n "$LD_FOR_TARGET"; then
9247 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9248else
9249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250for as_dir in $PATH
9251do
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 break 2
9259 fi
9260done
9261done
9262
9263fi
9264fi
9265LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9266if test -n "$LD_FOR_TARGET"; then
9267 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9268echo "${ECHO_T}$LD_FOR_TARGET" >&6
9269else
9270 echo "$as_me:$LINENO: result: no" >&5
9271echo "${ECHO_T}no" >&6
9272fi
9273
9274 done
9275fi
9276
9277if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9278 for ncn_progname in ld; do
1c710c3c
DJ
9279 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9280echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9281 if test -x $with_build_time_tools/${ncn_progname}; then
9282 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9283 echo "$as_me:$LINENO: result: yes" >&5
9284echo "${ECHO_T}yes" >&6
e8b05380
PB
9285 break
9286 else
1c710c3c
DJ
9287 echo "$as_me:$LINENO: result: no" >&5
9288echo "${ECHO_T}no" >&6
e8b05380
PB
9289 fi
9290 done
ca9f4b81
AO
9291fi
9292
e8b05380
PB
9293if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9294 for ncn_progname in ld; do
9295 if test -n "$ncn_target_tool_prefix"; then
9296 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9297set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9298echo "$as_me:$LINENO: checking for $ac_word" >&5
9299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9300if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9302else
4de997d1
PB
9303 if test -n "$LD_FOR_TARGET"; then
9304 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9305else
1c710c3c
DJ
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9313 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9315 break 2
9316 fi
9317done
9318done
9319
ca9f4b81
AO
9320fi
9321fi
1c710c3c 9322LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9323if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
9324 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9325echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9326else
1c710c3c
DJ
9327 echo "$as_me:$LINENO: result: no" >&5
9328echo "${ECHO_T}no" >&6
ca9f4b81
AO
9329fi
9330
e8b05380
PB
9331 fi
9332 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9334set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9335echo "$as_me:$LINENO: checking for $ac_word" >&5
9336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9337if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9339else
2693c0b0
PB
9340 if test -n "$LD_FOR_TARGET"; then
9341 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9342else
1c710c3c
DJ
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 break 2
9353 fi
9354done
9355done
9356
ca9f4b81
AO
9357fi
9358fi
1c710c3c 9359LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9360if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
9361 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9362echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9363else
1c710c3c
DJ
9364 echo "$as_me:$LINENO: result: no" >&5
9365echo "${ECHO_T}no" >&6
ca9f4b81 9366fi
1c710c3c 9367
e8b05380
PB
9368 fi
9369 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9370 done
9371fi
1c710c3c 9372
2693c0b0
PB
9373if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9374 set dummy ld
9375 if test $build = $target ; then
9376 LD_FOR_TARGET="$2"
ca9f4b81 9377 else
2693c0b0 9378 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9379 fi
ca9f4b81
AO
9380fi
9381
d1f8db0c
PB
9382else
9383 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9384fi
9385
9386
9387
9388
9389if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9390 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9391 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9392echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9393 if test -x $with_build_time_tools/lipo; then
9394 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9395 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
1c710c3c
DJ
9396 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9397echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9398 else
1c710c3c
DJ
9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
d1f8db0c 9401 fi
e8b05380
PB
9402 elif test $build != $host && test $have_gcc_for_target = yes; then
9403 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9404 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
9405 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9406 fi
9407fi
278a7a38
AO
9408if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9409 # Extract the first word of "lipo", so it can be a program name with args.
9410set dummy lipo; ac_word=$2
9411echo "$as_me:$LINENO: checking for $ac_word" >&5
9412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9413if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415else
9416 case $LIPO_FOR_TARGET in
9417 [\\/]* | ?:[\\/]*)
9418 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9419 ;;
9420 *)
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422for as_dir in $gcc_cv_tool_dirs
9423do
9424 IFS=$as_save_IFS
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
9427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9428 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 break 2
9431 fi
9432done
9433done
9434
9435 ;;
9436esac
9437fi
9438LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9439
9440if test -n "$LIPO_FOR_TARGET"; then
9441 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9442echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9443else
9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
9446fi
9447
9448fi
9449if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9450
9451
9452if test -n "$LIPO_FOR_TARGET"; then
9453 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9454elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9455 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9456fi
9457
9458if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9459 for ncn_progname in lipo; do
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9462echo "$as_me:$LINENO: checking for $ac_word" >&5
9463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9464if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9465 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9466else
278a7a38
AO
9467 if test -n "$LIPO_FOR_TARGET"; then
9468 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9469else
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
1c710c3c
DJ
9472do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9477 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9480 fi
9481done
9482done
9483
e8b05380 9484fi
278a7a38
AO
9485fi
9486LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9487if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
9488 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9489echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9490else
1c710c3c
DJ
9491 echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
e8b05380
PB
9493fi
9494
278a7a38 9495 done
e8b05380 9496fi
278a7a38
AO
9497
9498if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9499 for ncn_progname in lipo; do
1c710c3c
DJ
9500 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9501echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9502 if test -x $with_build_time_tools/${ncn_progname}; then
9503 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
e8b05380
PB
9506 break
9507 else
1c710c3c
DJ
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
e8b05380
PB
9510 fi
9511 done
9512fi
9513
9514if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9515 for ncn_progname in lipo; do
9516 if test -n "$ncn_target_tool_prefix"; then
9517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9518set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9519echo "$as_me:$LINENO: checking for $ac_word" >&5
9520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9521if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9523else
9524 if test -n "$LIPO_FOR_TARGET"; then
9525 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9526else
1c710c3c
DJ
9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9537 fi
9538done
9539done
9540
040b1c5a
GK
9541fi
9542fi
1c710c3c 9543LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9544if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
9545 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9546echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9547else
1c710c3c
DJ
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
040b1c5a
GK
9550fi
9551
e8b05380
PB
9552 fi
9553 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9555set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9556echo "$as_me:$LINENO: checking for $ac_word" >&5
9557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9558if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9560else
9561 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9562 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9563else
1c710c3c
DJ
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9574 fi
9575done
9576done
9577
040b1c5a
GK
9578fi
9579fi
1c710c3c 9580LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9581if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
9582 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9583echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9584else
1c710c3c
DJ
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
040b1c5a 9587fi
1c710c3c 9588
e8b05380
PB
9589 fi
9590 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9591 done
9592fi
1c710c3c 9593
040b1c5a
GK
9594if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9595 set dummy lipo
9596 if test $build = $target ; then
9597 LIPO_FOR_TARGET="$2"
9598 else
9599 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9600 fi
9601fi
9602
d1f8db0c
PB
9603else
9604 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9605fi
9606
9607
9608
9609
9610if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9611 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9612 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9613echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9614 if test -x $with_build_time_tools/nm; then
9615 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9616 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
1c710c3c
DJ
9617 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9618echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9619 else
1c710c3c
DJ
9620 echo "$as_me:$LINENO: result: no" >&5
9621echo "${ECHO_T}no" >&6
d1f8db0c 9622 fi
e8b05380
PB
9623 elif test $build != $host && test $have_gcc_for_target = yes; then
9624 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9625 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
9626 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9627 fi
9628fi
3e19841a 9629if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9630 # Extract the first word of "nm", so it can be a program name with args.
9631set dummy nm; ac_word=$2
1c710c3c
DJ
9632echo "$as_me:$LINENO: checking for $ac_word" >&5
9633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9634if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9636else
1c710c3c
DJ
9637 case $NM_FOR_TARGET in
9638 [\\/]* | ?:[\\/]*)
e8b05380
PB
9639 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9640 ;;
e8b05380 9641 *)
1c710c3c
DJ
9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643for as_dir in $gcc_cv_tool_dirs
9644do
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
9647 for ac_exec_ext in '' $ac_executable_extensions; do
9648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9649 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 break 2
9652 fi
9653done
9654done
9655
e8b05380
PB
9656 ;;
9657esac
9658fi
1c710c3c
DJ
9659NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9660
e8b05380 9661if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
9662 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9663echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9664else
1c710c3c
DJ
9665 echo "$as_me:$LINENO: result: no" >&5
9666echo "${ECHO_T}no" >&6
e8b05380
PB
9667fi
9668
9669fi
9670if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9671
9672
9673if test -n "$NM_FOR_TARGET"; then
9674 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9675elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9676 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9677fi
9678
9679if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9680 for ncn_progname in nm; do
9681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9682set dummy ${ncn_progname}; ac_word=$2
9683echo "$as_me:$LINENO: checking for $ac_word" >&5
9684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9685if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687else
9688 if test -n "$NM_FOR_TARGET"; then
9689 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9690else
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9701 fi
9702done
9703done
9704
9705fi
9706fi
9707NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9708if test -n "$NM_FOR_TARGET"; then
9709 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9710echo "${ECHO_T}$NM_FOR_TARGET" >&6
9711else
9712 echo "$as_me:$LINENO: result: no" >&5
9713echo "${ECHO_T}no" >&6
9714fi
9715
9716 done
9717fi
9718
9719if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9720 for ncn_progname in nm; do
1c710c3c
DJ
9721 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9722echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9723 if test -x $with_build_time_tools/${ncn_progname}; then
9724 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9725 echo "$as_me:$LINENO: result: yes" >&5
9726echo "${ECHO_T}yes" >&6
e8b05380
PB
9727 break
9728 else
1c710c3c
DJ
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
e8b05380
PB
9731 fi
9732 done
9733fi
9734
9735if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9736 for ncn_progname in nm; do
9737 if test -n "$ncn_target_tool_prefix"; then
9738 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9739set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9740echo "$as_me:$LINENO: checking for $ac_word" >&5
9741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9742if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9744else
4de997d1
PB
9745 if test -n "$NM_FOR_TARGET"; then
9746 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9747else
1c710c3c
DJ
9748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749for as_dir in $PATH
9750do
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9755 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 break 2
9758 fi
9759done
9760done
9761
ca9f4b81
AO
9762fi
9763fi
1c710c3c 9764NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 9765if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
9766 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9767echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9768else
1c710c3c
DJ
9769 echo "$as_me:$LINENO: result: no" >&5
9770echo "${ECHO_T}no" >&6
ca9f4b81
AO
9771fi
9772
e8b05380
PB
9773 fi
9774 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9776set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9777echo "$as_me:$LINENO: checking for $ac_word" >&5
9778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9779if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9781else
2693c0b0
PB
9782 if test -n "$NM_FOR_TARGET"; then
9783 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9784else
1c710c3c
DJ
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 break 2
9795 fi
9796done
9797done
9798
ca9f4b81
AO
9799fi
9800fi
1c710c3c 9801NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 9802if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
9803 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9804echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9805else
1c710c3c
DJ
9806 echo "$as_me:$LINENO: result: no" >&5
9807echo "${ECHO_T}no" >&6
ca9f4b81 9808fi
1c710c3c 9809
e8b05380
PB
9810 fi
9811 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9812 done
9813fi
1c710c3c 9814
2693c0b0
PB
9815if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9816 set dummy nm
9817 if test $build = $target ; then
9818 NM_FOR_TARGET="$2"
ca9f4b81 9819 else
2693c0b0 9820 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9821 fi
ca9f4b81
AO
9822fi
9823
d1f8db0c
PB
9824else
9825 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
9826fi
9827
9828
9829
9830
9831if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9832 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9833 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9834echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9835 if test -x $with_build_time_tools/objdump; then
9836 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9837 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
1c710c3c
DJ
9838 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9839echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 9840 else
1c710c3c
DJ
9841 echo "$as_me:$LINENO: result: no" >&5
9842echo "${ECHO_T}no" >&6
d1f8db0c 9843 fi
e8b05380
PB
9844 elif test $build != $host && test $have_gcc_for_target = yes; then
9845 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
9846 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
9847 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9848 fi
9849fi
3e19841a 9850if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9851 # Extract the first word of "objdump", so it can be a program name with args.
9852set dummy objdump; ac_word=$2
1c710c3c
DJ
9853echo "$as_me:$LINENO: checking for $ac_word" >&5
9854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9855if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9857else
1c710c3c
DJ
9858 case $OBJDUMP_FOR_TARGET in
9859 [\\/]* | ?:[\\/]*)
e8b05380
PB
9860 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
9861 ;;
e8b05380 9862 *)
1c710c3c
DJ
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864for as_dir in $gcc_cv_tool_dirs
9865do
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9870 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9873 fi
9874done
9875done
9876
e8b05380
PB
9877 ;;
9878esac
9879fi
1c710c3c
DJ
9880OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
9881
e8b05380 9882if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
9883 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9884echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 9885else
1c710c3c
DJ
9886 echo "$as_me:$LINENO: result: no" >&5
9887echo "${ECHO_T}no" >&6
e8b05380
PB
9888fi
9889
9890fi
9891if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
9892
9893
9894if test -n "$OBJDUMP_FOR_TARGET"; then
9895 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9896elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9897 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9898fi
9899
9900if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9901 for ncn_progname in objdump; do
9902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9903set dummy ${ncn_progname}; ac_word=$2
9904echo "$as_me:$LINENO: checking for $ac_word" >&5
9905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9906if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908else
9909 if test -n "$OBJDUMP_FOR_TARGET"; then
9910 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9911else
9912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $PATH
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
9920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923done
9924done
9925
9926fi
9927fi
9928OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9929if test -n "$OBJDUMP_FOR_TARGET"; then
9930 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9931echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9932else
9933 echo "$as_me:$LINENO: result: no" >&5
9934echo "${ECHO_T}no" >&6
9935fi
9936
9937 done
9938fi
9939
9940if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9941 for ncn_progname in objdump; do
1c710c3c
DJ
9942 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9943echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9944 if test -x $with_build_time_tools/${ncn_progname}; then
9945 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9946 echo "$as_me:$LINENO: result: yes" >&5
9947echo "${ECHO_T}yes" >&6
e8b05380
PB
9948 break
9949 else
1c710c3c
DJ
9950 echo "$as_me:$LINENO: result: no" >&5
9951echo "${ECHO_T}no" >&6
e8b05380
PB
9952 fi
9953 done
9954fi
9955
9956if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9957 for ncn_progname in objdump; do
9958 if test -n "$ncn_target_tool_prefix"; then
9959 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9960set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9961echo "$as_me:$LINENO: checking for $ac_word" >&5
9962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9963if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
9965else
9966 if test -n "$OBJDUMP_FOR_TARGET"; then
9967 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9968else
1c710c3c
DJ
9969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970for as_dir in $PATH
9971do
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9976 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 break 2
9979 fi
9980done
9981done
9982
d739199a
DJ
9983fi
9984fi
1c710c3c 9985OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 9986if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
9987 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9988echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 9989else
1c710c3c
DJ
9990 echo "$as_me:$LINENO: result: no" >&5
9991echo "${ECHO_T}no" >&6
d739199a
DJ
9992fi
9993
e8b05380
PB
9994 fi
9995 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
9996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 9997set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9998echo "$as_me:$LINENO: checking for $ac_word" >&5
9999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10000if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10002else
10003 if test -n "$OBJDUMP_FOR_TARGET"; then
10004 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10005else
1c710c3c
DJ
10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007for as_dir in $PATH
10008do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10013 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017done
10018done
10019
d739199a
DJ
10020fi
10021fi
1c710c3c 10022OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10023if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
10024 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10025echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10026else
1c710c3c
DJ
10027 echo "$as_me:$LINENO: result: no" >&5
10028echo "${ECHO_T}no" >&6
d739199a 10029fi
1c710c3c 10030
e8b05380
PB
10031 fi
10032 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10033 done
10034fi
1c710c3c 10035
d739199a
DJ
10036if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10037 set dummy objdump
10038 if test $build = $target ; then
10039 OBJDUMP_FOR_TARGET="$2"
10040 else
10041 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10042 fi
10043fi
10044
d1f8db0c
PB
10045else
10046 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10047fi
10048
10049
10050
10051
10052if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10053 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
10054 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10055echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10056 if test -x $with_build_time_tools/ranlib; then
10057 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10058 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
1c710c3c
DJ
10059 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10060echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10061 else
1c710c3c
DJ
10062 echo "$as_me:$LINENO: result: no" >&5
10063echo "${ECHO_T}no" >&6
d1f8db0c 10064 fi
e8b05380
PB
10065 elif test $build != $host && test $have_gcc_for_target = yes; then
10066 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10067 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10068 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10069 fi
10070fi
3e19841a 10071if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10072 # Extract the first word of "ranlib", so it can be a program name with args.
10073set dummy ranlib; ac_word=$2
1c710c3c
DJ
10074echo "$as_me:$LINENO: checking for $ac_word" >&5
10075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10076if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10078else
1c710c3c
DJ
10079 case $RANLIB_FOR_TARGET in
10080 [\\/]* | ?:[\\/]*)
e8b05380
PB
10081 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10082 ;;
e8b05380 10083 *)
1c710c3c
DJ
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $gcc_cv_tool_dirs
10086do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10094 fi
10095done
10096done
10097
e8b05380
PB
10098 ;;
10099esac
10100fi
1c710c3c
DJ
10101RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10102
e8b05380 10103if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
10104 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10105echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10106else
1c710c3c
DJ
10107 echo "$as_me:$LINENO: result: no" >&5
10108echo "${ECHO_T}no" >&6
e8b05380
PB
10109fi
10110
10111fi
10112if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10113
10114
10115if test -n "$RANLIB_FOR_TARGET"; then
10116 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10117elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10118 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10119fi
10120
10121if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10122 for ncn_progname in ranlib; do
10123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10124set dummy ${ncn_progname}; ac_word=$2
10125echo "$as_me:$LINENO: checking for $ac_word" >&5
10126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10127if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129else
10130 if test -n "$RANLIB_FOR_TARGET"; then
10131 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10132else
10133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134for as_dir in $PATH
10135do
10136 IFS=$as_save_IFS
10137 test -z "$as_dir" && as_dir=.
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10140 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10142 break 2
10143 fi
10144done
10145done
10146
10147fi
10148fi
10149RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10150if test -n "$RANLIB_FOR_TARGET"; then
10151 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10152echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10153else
10154 echo "$as_me:$LINENO: result: no" >&5
10155echo "${ECHO_T}no" >&6
10156fi
10157
10158 done
10159fi
10160
10161if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10162 for ncn_progname in ranlib; do
1c710c3c
DJ
10163 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10164echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10165 if test -x $with_build_time_tools/${ncn_progname}; then
10166 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
10167 echo "$as_me:$LINENO: result: yes" >&5
10168echo "${ECHO_T}yes" >&6
e8b05380
PB
10169 break
10170 else
1c710c3c
DJ
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
e8b05380
PB
10173 fi
10174 done
10175fi
10176
10177if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10178 for ncn_progname in ranlib; do
10179 if test -n "$ncn_target_tool_prefix"; then
10180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10181set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
10182echo "$as_me:$LINENO: checking for $ac_word" >&5
10183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10184if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10186else
4de997d1
PB
10187 if test -n "$RANLIB_FOR_TARGET"; then
10188 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10189else
1c710c3c
DJ
10190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191for as_dir in $PATH
10192do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10197 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 break 2
10200 fi
10201done
10202done
10203
ca9f4b81
AO
10204fi
10205fi
1c710c3c 10206RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10207if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
10208 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10209echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10210else
1c710c3c
DJ
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
ca9f4b81
AO
10213fi
10214
e8b05380
PB
10215 fi
10216 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10218set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
10219echo "$as_me:$LINENO: checking for $ac_word" >&5
10220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10221if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10223else
2693c0b0
PB
10224 if test -n "$RANLIB_FOR_TARGET"; then
10225 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10226else
1c710c3c
DJ
10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $PATH
10229do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 break 2
10237 fi
10238done
10239done
10240
ca9f4b81
AO
10241fi
10242fi
1c710c3c 10243RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10244if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
10245 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10246echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10247else
1c710c3c
DJ
10248 echo "$as_me:$LINENO: result: no" >&5
10249echo "${ECHO_T}no" >&6
ca9f4b81 10250fi
1c710c3c 10251
e8b05380
PB
10252 fi
10253 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10254 done
10255fi
1c710c3c 10256
e8b05380
PB
10257if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10258 set dummy ranlib
10259 if test $build = $target ; then
10260 RANLIB_FOR_TARGET="$2"
10261 else
10262 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10263 fi
e8b05380 10264fi
2693c0b0 10265
d1f8db0c
PB
10266else
10267 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10268fi
10269
e8b05380
PB
10270
10271
10272
10273if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10274 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
10275 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10276echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10277 if test -x $with_build_time_tools/strip; then
10278 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10279 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
1c710c3c
DJ
10280 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10281echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10282 else
1c710c3c
DJ
10283 echo "$as_me:$LINENO: result: no" >&5
10284echo "${ECHO_T}no" >&6
d1f8db0c 10285 fi
e8b05380
PB
10286 elif test $build != $host && test $have_gcc_for_target = yes; then
10287 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10288 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10289 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10290 fi
10291fi
3e19841a 10292if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10293 # Extract the first word of "strip", so it can be a program name with args.
10294set dummy strip; ac_word=$2
1c710c3c
DJ
10295echo "$as_me:$LINENO: checking for $ac_word" >&5
10296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10297if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10299else
1c710c3c
DJ
10300 case $STRIP_FOR_TARGET in
10301 [\\/]* | ?:[\\/]*)
e8b05380
PB
10302 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10303 ;;
e8b05380 10304 *)
1c710c3c
DJ
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $gcc_cv_tool_dirs
10307do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10312 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 break 2
10315 fi
10316done
10317done
10318
e8b05380
PB
10319 ;;
10320esac
10321fi
1c710c3c
DJ
10322STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10323
e8b05380 10324if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10325 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10326echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10327else
1c710c3c
DJ
10328 echo "$as_me:$LINENO: result: no" >&5
10329echo "${ECHO_T}no" >&6
e8b05380
PB
10330fi
10331
10332fi
10333if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10334
10335
10336if test -n "$STRIP_FOR_TARGET"; then
10337 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10338elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10339 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10340fi
10341
10342if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10343 for ncn_progname in strip; do
10344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10345set dummy ${ncn_progname}; ac_word=$2
10346echo "$as_me:$LINENO: checking for $ac_word" >&5
10347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 if test -n "$STRIP_FOR_TARGET"; then
10352 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10353else
10354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $PATH
10356do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365done
10366done
10367
10368fi
10369fi
10370STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10371if test -n "$STRIP_FOR_TARGET"; then
10372 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10373echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10374else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377fi
10378
10379 done
10380fi
10381
10382if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10383 for ncn_progname in strip; do
1c710c3c
DJ
10384 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10385echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10386 if test -x $with_build_time_tools/${ncn_progname}; then
10387 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
10388 echo "$as_me:$LINENO: result: yes" >&5
10389echo "${ECHO_T}yes" >&6
e8b05380
PB
10390 break
10391 else
1c710c3c
DJ
10392 echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6
e8b05380
PB
10394 fi
10395 done
10396fi
10397
10398if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10399 for ncn_progname in strip; do
10400 if test -n "$ncn_target_tool_prefix"; then
10401 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10402set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
10403echo "$as_me:$LINENO: checking for $ac_word" >&5
10404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10405if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10407else
10408 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10409 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10410else
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422done
10423done
10424
040b1c5a
GK
10425fi
10426fi
1c710c3c 10427STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10428if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10429 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10430echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10431else
1c710c3c
DJ
10432 echo "$as_me:$LINENO: result: no" >&5
10433echo "${ECHO_T}no" >&6
040b1c5a
GK
10434fi
10435
e8b05380
PB
10436 fi
10437 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10439set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
10440echo "$as_me:$LINENO: checking for $ac_word" >&5
10441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10442if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10444else
10445 if test -n "$STRIP_FOR_TARGET"; then
10446 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10447else
1c710c3c
DJ
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10458 fi
10459done
10460done
10461
040b1c5a
GK
10462fi
10463fi
1c710c3c 10464STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10465if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10466 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10467echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10468else
1c710c3c
DJ
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
040b1c5a 10471fi
1c710c3c 10472
e8b05380
PB
10473 fi
10474 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10475 done
10476fi
1c710c3c 10477
040b1c5a
GK
10478if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10479 set dummy strip
10480 if test $build = $target ; then
10481 STRIP_FOR_TARGET="$2"
10482 else
10483 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10484 fi
10485fi
10486
d1f8db0c
PB
10487else
10488 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10489fi
10490
10491
10492
10493
10494if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10495 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
10496 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10497echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10498 if test -x $with_build_time_tools/windres; then
10499 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10500 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
1c710c3c
DJ
10501 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10502echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10503 else
1c710c3c
DJ
10504 echo "$as_me:$LINENO: result: no" >&5
10505echo "${ECHO_T}no" >&6
d1f8db0c 10506 fi
e8b05380
PB
10507 elif test $build != $host && test $have_gcc_for_target = yes; then
10508 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10509 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
10510 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10511 fi
10512fi
3e19841a 10513if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10514 # Extract the first word of "windres", so it can be a program name with args.
10515set dummy windres; ac_word=$2
1c710c3c
DJ
10516echo "$as_me:$LINENO: checking for $ac_word" >&5
10517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10518if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10520else
1c710c3c
DJ
10521 case $WINDRES_FOR_TARGET in
10522 [\\/]* | ?:[\\/]*)
e8b05380
PB
10523 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10524 ;;
e8b05380 10525 *)
1c710c3c
DJ
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527for as_dir in $gcc_cv_tool_dirs
10528do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537done
10538done
10539
e8b05380
PB
10540 ;;
10541esac
10542fi
1c710c3c
DJ
10543WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10544
e8b05380 10545if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
10546 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10547echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10548else
1c710c3c
DJ
10549 echo "$as_me:$LINENO: result: no" >&5
10550echo "${ECHO_T}no" >&6
e8b05380
PB
10551fi
10552
10553fi
10554if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10555
10556
10557if test -n "$WINDRES_FOR_TARGET"; then
10558 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10559elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10560 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10561fi
10562
10563if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10564 for ncn_progname in windres; do
10565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10566set dummy ${ncn_progname}; ac_word=$2
10567echo "$as_me:$LINENO: checking for $ac_word" >&5
10568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10569if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571else
10572 if test -n "$WINDRES_FOR_TARGET"; then
10573 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10574else
10575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576for as_dir in $PATH
10577do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 break 2
10585 fi
10586done
10587done
10588
10589fi
10590fi
10591WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10592if test -n "$WINDRES_FOR_TARGET"; then
10593 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10594echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10595else
10596 echo "$as_me:$LINENO: result: no" >&5
10597echo "${ECHO_T}no" >&6
10598fi
10599
10600 done
10601fi
10602
10603if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10604 for ncn_progname in windres; do
1c710c3c
DJ
10605 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10606echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10607 if test -x $with_build_time_tools/${ncn_progname}; then
10608 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
10609 echo "$as_me:$LINENO: result: yes" >&5
10610echo "${ECHO_T}yes" >&6
e8b05380
PB
10611 break
10612 else
1c710c3c
DJ
10613 echo "$as_me:$LINENO: result: no" >&5
10614echo "${ECHO_T}no" >&6
e8b05380
PB
10615 fi
10616 done
10617fi
10618
10619if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10620 for ncn_progname in windres; do
10621 if test -n "$ncn_target_tool_prefix"; then
10622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10623set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
10624echo "$as_me:$LINENO: checking for $ac_word" >&5
10625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10626if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10628else
4de997d1
PB
10629 if test -n "$WINDRES_FOR_TARGET"; then
10630 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10631else
1c710c3c
DJ
10632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633for as_dir in $PATH
10634do
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10642 fi
10643done
10644done
10645
ca9f4b81
AO
10646fi
10647fi
1c710c3c 10648WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10649if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
10650 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10651echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10652else
1c710c3c
DJ
10653 echo "$as_me:$LINENO: result: no" >&5
10654echo "${ECHO_T}no" >&6
ca9f4b81
AO
10655fi
10656
e8b05380
PB
10657 fi
10658 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10660set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
10661echo "$as_me:$LINENO: checking for $ac_word" >&5
10662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10663if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10665else
2693c0b0
PB
10666 if test -n "$WINDRES_FOR_TARGET"; then
10667 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10668else
1c710c3c
DJ
10669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670for as_dir in $PATH
10671do
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10679 fi
10680done
10681done
10682
ca9f4b81
AO
10683fi
10684fi
1c710c3c 10685WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10686if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
10687 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10688echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10689else
1c710c3c
DJ
10690 echo "$as_me:$LINENO: result: no" >&5
10691echo "${ECHO_T}no" >&6
ca9f4b81 10692fi
1c710c3c 10693
e8b05380
PB
10694 fi
10695 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10696 done
10697fi
1c710c3c 10698
2693c0b0
PB
10699if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10700 set dummy windres
10701 if test $build = $target ; then
10702 WINDRES_FOR_TARGET="$2"
ca9f4b81 10703 else
2693c0b0 10704 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10705 fi
ca9f4b81
AO
10706fi
10707
d1f8db0c
PB
10708else
10709 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10710fi
10711
4977bab6 10712
2abefe3d
PB
10713RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
10714
1c710c3c
DJ
10715echo "$as_me:$LINENO: checking where to find the target ar" >&5
10716echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 10717if test "x${build}" != "x${host}" ; then
e8b05380
PB
10718 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10719 # We already found the complete path
172e41aa
AS
10720 ac_dir=`dirname $AR_FOR_TARGET`
10721 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10722echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
10723 else
10724 # Canadian cross, just use what we found
1c710c3c
DJ
10725 echo "$as_me:$LINENO: result: pre-installed" >&5
10726echo "${ECHO_T}pre-installed" >&6
e8b05380 10727 fi
2abefe3d
PB
10728else
10729 ok=yes
10730 case " ${configdirs} " in
10731 *" binutils "*) ;;
10732 *) ok=no ;;
10733 esac
1c710c3c 10734
2abefe3d
PB
10735 if test $ok = yes; then
10736 # An in-tree tool is available and we can use it
10737 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
1c710c3c
DJ
10738 echo "$as_me:$LINENO: result: just compiled" >&5
10739echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10740 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10741 # We already found the complete path
172e41aa
AS
10742 ac_dir=`dirname $AR_FOR_TARGET`
10743 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10744echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
10745 elif test "x$target" = "x$host"; then
10746 # We can use an host tool
10747 AR_FOR_TARGET='$(AR)'
1c710c3c
DJ
10748 echo "$as_me:$LINENO: result: host tool" >&5
10749echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10750 else
10751 # We need a cross tool
1c710c3c
DJ
10752 echo "$as_me:$LINENO: result: pre-installed" >&5
10753echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10754 fi
10755fi
0b0dc272 10756
1c710c3c
DJ
10757echo "$as_me:$LINENO: checking where to find the target as" >&5
10758echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 10759if test "x${build}" != "x${host}" ; then
e8b05380
PB
10760 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10761 # We already found the complete path
172e41aa
AS
10762 ac_dir=`dirname $AS_FOR_TARGET`
10763 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10764echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
10765 else
10766 # Canadian cross, just use what we found
1c710c3c
DJ
10767 echo "$as_me:$LINENO: result: pre-installed" >&5
10768echo "${ECHO_T}pre-installed" >&6
e8b05380 10769 fi
2abefe3d
PB
10770else
10771 ok=yes
10772 case " ${configdirs} " in
10773 *" gas "*) ;;
10774 *) ok=no ;;
10775 esac
1c710c3c 10776
2abefe3d
PB
10777 if test $ok = yes; then
10778 # An in-tree tool is available and we can use it
10779 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
1c710c3c
DJ
10780 echo "$as_me:$LINENO: result: just compiled" >&5
10781echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10782 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10783 # We already found the complete path
172e41aa
AS
10784 ac_dir=`dirname $AS_FOR_TARGET`
10785 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10786echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
10787 elif test "x$target" = "x$host"; then
10788 # We can use an host tool
10789 AS_FOR_TARGET='$(AS)'
1c710c3c
DJ
10790 echo "$as_me:$LINENO: result: host tool" >&5
10791echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10792 else
10793 # We need a cross tool
1c710c3c
DJ
10794 echo "$as_me:$LINENO: result: pre-installed" >&5
10795echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10796 fi
10797fi
0b0dc272 10798
1c710c3c
DJ
10799echo "$as_me:$LINENO: checking where to find the target cc" >&5
10800echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 10801if test "x${build}" != "x${host}" ; then
e8b05380
PB
10802 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10803 # We already found the complete path
172e41aa
AS
10804 ac_dir=`dirname $CC_FOR_TARGET`
10805 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10806echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
10807 else
10808 # Canadian cross, just use what we found
1c710c3c
DJ
10809 echo "$as_me:$LINENO: result: pre-installed" >&5
10810echo "${ECHO_T}pre-installed" >&6
e8b05380 10811 fi
2abefe3d
PB
10812else
10813 ok=yes
10814 case " ${configdirs} " in
10815 *" gcc "*) ;;
10816 *) ok=no ;;
10817 esac
1c710c3c 10818
2abefe3d
PB
10819 if test $ok = yes; then
10820 # An in-tree tool is available and we can use it
10821 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
10822 echo "$as_me:$LINENO: result: just compiled" >&5
10823echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10824 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10825 # We already found the complete path
172e41aa
AS
10826 ac_dir=`dirname $CC_FOR_TARGET`
10827 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10828echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
10829 elif test "x$target" = "x$host"; then
10830 # We can use an host tool
10831 CC_FOR_TARGET='$(CC)'
1c710c3c
DJ
10832 echo "$as_me:$LINENO: result: host tool" >&5
10833echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10834 else
10835 # We need a cross tool
1c710c3c
DJ
10836 echo "$as_me:$LINENO: result: pre-installed" >&5
10837echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10838 fi
10839fi
0b0dc272 10840
1c710c3c
DJ
10841echo "$as_me:$LINENO: checking where to find the target c++" >&5
10842echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 10843if test "x${build}" != "x${host}" ; then
e8b05380
PB
10844 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10845 # We already found the complete path
172e41aa
AS
10846 ac_dir=`dirname $CXX_FOR_TARGET`
10847 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10848echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
10849 else
10850 # Canadian cross, just use what we found
1c710c3c
DJ
10851 echo "$as_me:$LINENO: result: pre-installed" >&5
10852echo "${ECHO_T}pre-installed" >&6
e8b05380 10853 fi
2abefe3d
PB
10854else
10855 ok=yes
10856 case " ${configdirs} " in
10857 *" gcc "*) ;;
10858 *) ok=no ;;
10859 esac
10860 case ,${enable_languages}, in
10861 *,c++,*) ;;
10862 *) ok=no ;;
10863 esac
10864 if test $ok = yes; then
10865 # An in-tree tool is available and we can use it
10866 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
10867 echo "$as_me:$LINENO: result: just compiled" >&5
10868echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10869 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10870 # We already found the complete path
172e41aa
AS
10871 ac_dir=`dirname $CXX_FOR_TARGET`
10872 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10873echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
10874 elif test "x$target" = "x$host"; then
10875 # We can use an host tool
10876 CXX_FOR_TARGET='$(CXX)'
1c710c3c
DJ
10877 echo "$as_me:$LINENO: result: host tool" >&5
10878echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10879 else
10880 # We need a cross tool
1c710c3c
DJ
10881 echo "$as_me:$LINENO: result: pre-installed" >&5
10882echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10883 fi
10884fi
0b0dc272 10885
1c710c3c
DJ
10886echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
10887echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 10888if test "x${build}" != "x${host}" ; then
e8b05380
PB
10889 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10890 # We already found the complete path
172e41aa
AS
10891 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
10892 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10893echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
10894 else
10895 # Canadian cross, just use what we found
1c710c3c
DJ
10896 echo "$as_me:$LINENO: result: pre-installed" >&5
10897echo "${ECHO_T}pre-installed" >&6
e8b05380 10898 fi
2abefe3d
PB
10899else
10900 ok=yes
10901 case " ${configdirs} " in
10902 *" gcc "*) ;;
10903 *) ok=no ;;
10904 esac
10905 case ,${enable_languages}, in
10906 *,c++,*) ;;
10907 *) ok=no ;;
10908 esac
10909 if test $ok = yes; then
10910 # An in-tree tool is available and we can use it
10911 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
10912 echo "$as_me:$LINENO: result: just compiled" >&5
10913echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10914 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10915 # We already found the complete path
172e41aa
AS
10916 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
10917 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10918echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
10919 elif test "x$target" = "x$host"; then
10920 # We can use an host tool
10921 RAW_CXX_FOR_TARGET='$(CXX)'
1c710c3c
DJ
10922 echo "$as_me:$LINENO: result: host tool" >&5
10923echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10924 else
10925 # We need a cross tool
1c710c3c
DJ
10926 echo "$as_me:$LINENO: result: pre-installed" >&5
10927echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10928 fi
10929fi
0b0dc272 10930
1c710c3c
DJ
10931echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
10932echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 10933if test "x${build}" != "x${host}" ; then
e8b05380
PB
10934 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10935 # We already found the complete path
172e41aa
AS
10936 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
10937 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10938echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
10939 else
10940 # Canadian cross, just use what we found
1c710c3c
DJ
10941 echo "$as_me:$LINENO: result: pre-installed" >&5
10942echo "${ECHO_T}pre-installed" >&6
e8b05380 10943 fi
2abefe3d
PB
10944else
10945 ok=yes
10946 case " ${configdirs} " in
10947 *" binutils "*) ;;
10948 *) ok=no ;;
10949 esac
1c710c3c 10950
2abefe3d
PB
10951 if test $ok = yes; then
10952 # An in-tree tool is available and we can use it
10953 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
1c710c3c
DJ
10954 echo "$as_me:$LINENO: result: just compiled" >&5
10955echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10956 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10957 # We already found the complete path
172e41aa
AS
10958 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
10959 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10960echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
10961 elif test "x$target" = "x$host"; then
10962 # We can use an host tool
10963 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
1c710c3c
DJ
10964 echo "$as_me:$LINENO: result: host tool" >&5
10965echo "${ECHO_T}host tool" >&6
2abefe3d
PB
10966 else
10967 # We need a cross tool
1c710c3c
DJ
10968 echo "$as_me:$LINENO: result: pre-installed" >&5
10969echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
10970 fi
10971fi
0b0dc272 10972
1c710c3c
DJ
10973echo "$as_me:$LINENO: checking where to find the target gcc" >&5
10974echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 10975if test "x${build}" != "x${host}" ; then
e8b05380
PB
10976 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10977 # We already found the complete path
172e41aa
AS
10978 ac_dir=`dirname $GCC_FOR_TARGET`
10979 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10980echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
10981 else
10982 # Canadian cross, just use what we found
1c710c3c
DJ
10983 echo "$as_me:$LINENO: result: pre-installed" >&5
10984echo "${ECHO_T}pre-installed" >&6
e8b05380 10985 fi
2abefe3d
PB
10986else
10987 ok=yes
10988 case " ${configdirs} " in
10989 *" gcc "*) ;;
10990 *) ok=no ;;
10991 esac
1c710c3c 10992
2abefe3d
PB
10993 if test $ok = yes; then
10994 # An in-tree tool is available and we can use it
10995 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
10996 echo "$as_me:$LINENO: result: just compiled" >&5
10997echo "${ECHO_T}just compiled" >&6
e8b05380
PB
10998 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10999 # We already found the complete path
172e41aa
AS
11000 ac_dir=`dirname $GCC_FOR_TARGET`
11001 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11002echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11003 elif test "x$target" = "x$host"; then
11004 # We can use an host tool
11005 GCC_FOR_TARGET='$()'
1c710c3c
DJ
11006 echo "$as_me:$LINENO: result: host tool" >&5
11007echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11008 else
11009 # We need a cross tool
1c710c3c
DJ
11010 echo "$as_me:$LINENO: result: pre-installed" >&5
11011echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11012 fi
11013fi
0b0dc272 11014
1c710c3c
DJ
11015echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11016echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11017if test "x${build}" != "x${host}" ; then
e8b05380
PB
11018 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11019 # We already found the complete path
172e41aa
AS
11020 ac_dir=`dirname $GCJ_FOR_TARGET`
11021 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11022echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11023 else
11024 # Canadian cross, just use what we found
1c710c3c
DJ
11025 echo "$as_me:$LINENO: result: pre-installed" >&5
11026echo "${ECHO_T}pre-installed" >&6
e8b05380 11027 fi
2abefe3d
PB
11028else
11029 ok=yes
11030 case " ${configdirs} " in
11031 *" gcc "*) ;;
11032 *) ok=no ;;
11033 esac
11034 case ,${enable_languages}, in
11035 *,java,*) ;;
11036 *) ok=no ;;
11037 esac
11038 if test $ok = yes; then
11039 # An in-tree tool is available and we can use it
11040 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
11041 echo "$as_me:$LINENO: result: just compiled" >&5
11042echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11043 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11044 # We already found the complete path
172e41aa
AS
11045 ac_dir=`dirname $GCJ_FOR_TARGET`
11046 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11047echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11048 elif test "x$target" = "x$host"; then
11049 # We can use an host tool
11050 GCJ_FOR_TARGET='$(GCJ)'
1c710c3c
DJ
11051 echo "$as_me:$LINENO: result: host tool" >&5
11052echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11053 else
11054 # We need a cross tool
1c710c3c
DJ
11055 echo "$as_me:$LINENO: result: pre-installed" >&5
11056echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11057 fi
11058fi
0b0dc272 11059
1c710c3c
DJ
11060echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11061echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11062if test "x${build}" != "x${host}" ; then
e8b05380
PB
11063 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11064 # We already found the complete path
172e41aa
AS
11065 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11066 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11067echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11068 else
11069 # Canadian cross, just use what we found
1c710c3c
DJ
11070 echo "$as_me:$LINENO: result: pre-installed" >&5
11071echo "${ECHO_T}pre-installed" >&6
e8b05380 11072 fi
2abefe3d
PB
11073else
11074 ok=yes
11075 case " ${configdirs} " in
11076 *" gcc "*) ;;
11077 *) ok=no ;;
11078 esac
11079 case ,${enable_languages}, in
11080 *,fortran,*) ;;
11081 *) ok=no ;;
11082 esac
11083 if test $ok = yes; then
11084 # An in-tree tool is available and we can use it
11085 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
11086 echo "$as_me:$LINENO: result: just compiled" >&5
11087echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11088 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11089 # We already found the complete path
172e41aa
AS
11090 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11091 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11092echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11093 elif test "x$target" = "x$host"; then
11094 # We can use an host tool
11095 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
1c710c3c
DJ
11096 echo "$as_me:$LINENO: result: host tool" >&5
11097echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11098 else
11099 # We need a cross tool
1c710c3c
DJ
11100 echo "$as_me:$LINENO: result: pre-installed" >&5
11101echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11102 fi
11103fi
0b0dc272 11104
1c710c3c
DJ
11105echo "$as_me:$LINENO: checking where to find the target ld" >&5
11106echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11107if test "x${build}" != "x${host}" ; then
e8b05380
PB
11108 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11109 # We already found the complete path
172e41aa
AS
11110 ac_dir=`dirname $LD_FOR_TARGET`
11111 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11112echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11113 else
11114 # Canadian cross, just use what we found
1c710c3c
DJ
11115 echo "$as_me:$LINENO: result: pre-installed" >&5
11116echo "${ECHO_T}pre-installed" >&6
e8b05380 11117 fi
2abefe3d
PB
11118else
11119 ok=yes
11120 case " ${configdirs} " in
11121 *" ld "*) ;;
11122 *) ok=no ;;
11123 esac
1c710c3c 11124
2abefe3d
PB
11125 if test $ok = yes; then
11126 # An in-tree tool is available and we can use it
11127 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
1c710c3c
DJ
11128 echo "$as_me:$LINENO: result: just compiled" >&5
11129echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11130 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11131 # We already found the complete path
172e41aa
AS
11132 ac_dir=`dirname $LD_FOR_TARGET`
11133 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11134echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11135 elif test "x$target" = "x$host"; then
11136 # We can use an host tool
11137 LD_FOR_TARGET='$(LD)'
1c710c3c
DJ
11138 echo "$as_me:$LINENO: result: host tool" >&5
11139echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11140 else
11141 # We need a cross tool
1c710c3c
DJ
11142 echo "$as_me:$LINENO: result: pre-installed" >&5
11143echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11144 fi
11145fi
0b0dc272 11146
1c710c3c
DJ
11147echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11148echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11149if test "x${build}" != "x${host}" ; then
e8b05380
PB
11150 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11151 # We already found the complete path
172e41aa
AS
11152 ac_dir=`dirname $LIPO_FOR_TARGET`
11153 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11154echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11155 else
11156 # Canadian cross, just use what we found
1c710c3c
DJ
11157 echo "$as_me:$LINENO: result: pre-installed" >&5
11158echo "${ECHO_T}pre-installed" >&6
e8b05380 11159 fi
2abefe3d 11160else
e8b05380
PB
11161 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11162 # We already found the complete path
172e41aa
AS
11163 ac_dir=`dirname $LIPO_FOR_TARGET`
11164 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11165echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11166 elif test "x$target" = "x$host"; then
2abefe3d
PB
11167 # We can use an host tool
11168 LIPO_FOR_TARGET='$(LIPO)'
1c710c3c
DJ
11169 echo "$as_me:$LINENO: result: host tool" >&5
11170echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11171 else
11172 # We need a cross tool
1c710c3c
DJ
11173 echo "$as_me:$LINENO: result: pre-installed" >&5
11174echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11175 fi
11176fi
0b0dc272 11177
1c710c3c
DJ
11178echo "$as_me:$LINENO: checking where to find the target nm" >&5
11179echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11180if test "x${build}" != "x${host}" ; then
e8b05380
PB
11181 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11182 # We already found the complete path
172e41aa
AS
11183 ac_dir=`dirname $NM_FOR_TARGET`
11184 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11185echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11186 else
11187 # Canadian cross, just use what we found
1c710c3c
DJ
11188 echo "$as_me:$LINENO: result: pre-installed" >&5
11189echo "${ECHO_T}pre-installed" >&6
e8b05380 11190 fi
2abefe3d
PB
11191else
11192 ok=yes
11193 case " ${configdirs} " in
11194 *" binutils "*) ;;
11195 *) ok=no ;;
11196 esac
1c710c3c 11197
2abefe3d
PB
11198 if test $ok = yes; then
11199 # An in-tree tool is available and we can use it
11200 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
1c710c3c
DJ
11201 echo "$as_me:$LINENO: result: just compiled" >&5
11202echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11203 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11204 # We already found the complete path
172e41aa
AS
11205 ac_dir=`dirname $NM_FOR_TARGET`
11206 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11207echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11208 elif test "x$target" = "x$host"; then
11209 # We can use an host tool
11210 NM_FOR_TARGET='$(NM)'
1c710c3c
DJ
11211 echo "$as_me:$LINENO: result: host tool" >&5
11212echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11213 else
11214 # We need a cross tool
1c710c3c
DJ
11215 echo "$as_me:$LINENO: result: pre-installed" >&5
11216echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11217 fi
11218fi
0b0dc272 11219
1c710c3c
DJ
11220echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11221echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11222if test "x${build}" != "x${host}" ; then
e8b05380
PB
11223 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11224 # We already found the complete path
172e41aa
AS
11225 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11226 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11227echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11228 else
11229 # Canadian cross, just use what we found
1c710c3c
DJ
11230 echo "$as_me:$LINENO: result: pre-installed" >&5
11231echo "${ECHO_T}pre-installed" >&6
e8b05380 11232 fi
2abefe3d
PB
11233else
11234 ok=yes
11235 case " ${configdirs} " in
11236 *" binutils "*) ;;
11237 *) ok=no ;;
11238 esac
1c710c3c 11239
2abefe3d
PB
11240 if test $ok = yes; then
11241 # An in-tree tool is available and we can use it
11242 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
1c710c3c
DJ
11243 echo "$as_me:$LINENO: result: just compiled" >&5
11244echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11245 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11246 # We already found the complete path
172e41aa
AS
11247 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11248 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11249echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11250 elif test "x$target" = "x$host"; then
11251 # We can use an host tool
11252 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
1c710c3c
DJ
11253 echo "$as_me:$LINENO: result: host tool" >&5
11254echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11255 else
11256 # We need a cross tool
1c710c3c
DJ
11257 echo "$as_me:$LINENO: result: pre-installed" >&5
11258echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11259 fi
11260fi
0b0dc272 11261
1c710c3c
DJ
11262echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11263echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11264if test "x${build}" != "x${host}" ; then
e8b05380
PB
11265 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11266 # We already found the complete path
172e41aa
AS
11267 ac_dir=`dirname $RANLIB_FOR_TARGET`
11268 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11269echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11270 else
11271 # Canadian cross, just use what we found
1c710c3c
DJ
11272 echo "$as_me:$LINENO: result: pre-installed" >&5
11273echo "${ECHO_T}pre-installed" >&6
e8b05380 11274 fi
2abefe3d
PB
11275else
11276 ok=yes
11277 case " ${configdirs} " in
11278 *" binutils "*) ;;
11279 *) ok=no ;;
11280 esac
1c710c3c 11281
2abefe3d
PB
11282 if test $ok = yes; then
11283 # An in-tree tool is available and we can use it
11284 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
1c710c3c
DJ
11285 echo "$as_me:$LINENO: result: just compiled" >&5
11286echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11287 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11288 # We already found the complete path
172e41aa
AS
11289 ac_dir=`dirname $RANLIB_FOR_TARGET`
11290 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11291echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11292 elif test "x$target" = "x$host"; then
11293 # We can use an host tool
11294 RANLIB_FOR_TARGET='$(RANLIB)'
1c710c3c
DJ
11295 echo "$as_me:$LINENO: result: host tool" >&5
11296echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11297 else
11298 # We need a cross tool
1c710c3c
DJ
11299 echo "$as_me:$LINENO: result: pre-installed" >&5
11300echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11301 fi
11302fi
0b0dc272 11303
1c710c3c
DJ
11304echo "$as_me:$LINENO: checking where to find the target strip" >&5
11305echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11306if test "x${build}" != "x${host}" ; then
e8b05380
PB
11307 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11308 # We already found the complete path
172e41aa
AS
11309 ac_dir=`dirname $STRIP_FOR_TARGET`
11310 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11311echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11312 else
11313 # Canadian cross, just use what we found
1c710c3c
DJ
11314 echo "$as_me:$LINENO: result: pre-installed" >&5
11315echo "${ECHO_T}pre-installed" >&6
e8b05380 11316 fi
2abefe3d
PB
11317else
11318 ok=yes
11319 case " ${configdirs} " in
11320 *" binutils "*) ;;
11321 *) ok=no ;;
11322 esac
1c710c3c 11323
2abefe3d
PB
11324 if test $ok = yes; then
11325 # An in-tree tool is available and we can use it
11326 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
1c710c3c
DJ
11327 echo "$as_me:$LINENO: result: just compiled" >&5
11328echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11329 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11330 # We already found the complete path
172e41aa
AS
11331 ac_dir=`dirname $STRIP_FOR_TARGET`
11332 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11333echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11334 elif test "x$target" = "x$host"; then
11335 # We can use an host tool
11336 STRIP_FOR_TARGET='$(STRIP)'
1c710c3c
DJ
11337 echo "$as_me:$LINENO: result: host tool" >&5
11338echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11339 else
11340 # We need a cross tool
1c710c3c
DJ
11341 echo "$as_me:$LINENO: result: pre-installed" >&5
11342echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11343 fi
11344fi
0b0dc272 11345
1c710c3c
DJ
11346echo "$as_me:$LINENO: checking where to find the target windres" >&5
11347echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11348if test "x${build}" != "x${host}" ; then
e8b05380
PB
11349 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11350 # We already found the complete path
172e41aa
AS
11351 ac_dir=`dirname $WINDRES_FOR_TARGET`
11352 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11353echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11354 else
11355 # Canadian cross, just use what we found
1c710c3c
DJ
11356 echo "$as_me:$LINENO: result: pre-installed" >&5
11357echo "${ECHO_T}pre-installed" >&6
e8b05380 11358 fi
2abefe3d
PB
11359else
11360 ok=yes
11361 case " ${configdirs} " in
11362 *" binutils "*) ;;
11363 *) ok=no ;;
11364 esac
1c710c3c 11365
2abefe3d
PB
11366 if test $ok = yes; then
11367 # An in-tree tool is available and we can use it
11368 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
1c710c3c
DJ
11369 echo "$as_me:$LINENO: result: just compiled" >&5
11370echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11371 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11372 # We already found the complete path
172e41aa
AS
11373 ac_dir=`dirname $WINDRES_FOR_TARGET`
11374 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11375echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11376 elif test "x$target" = "x$host"; then
11377 # We can use an host tool
11378 WINDRES_FOR_TARGET='$(WINDRES)'
1c710c3c
DJ
11379 echo "$as_me:$LINENO: result: host tool" >&5
11380echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11381 else
11382 # We need a cross tool
1c710c3c
DJ
11383 echo "$as_me:$LINENO: result: pre-installed" >&5
11384echo "${ECHO_T}pre-installed" >&6
2abefe3d 11385 fi
671aa708 11386fi
be912515
NN
11387
11388
11389
2abefe3d 11390
0b0dc272 11391
671aa708
NN
11392# Certain tools may need extra flags.
11393AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11394RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11395NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11396
2abefe3d
PB
11397# When building target libraries, except in a Canadian cross, we use
11398# the same toolchain as the compiler we just built.
11399COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11400COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11401COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11402if test $host = $build; then
11403 case " $configdirs " in
11404 *" gcc "*)
11405 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11406 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11407 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11408 ;;
11409 esac
11410fi
11411
11412
11413
11414
11415
1c710c3c
DJ
11416echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11417echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
ee03dc5e
AO
11418# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11419if test "${enable_maintainer_mode+set}" = set; then
11420 enableval="$enable_maintainer_mode"
11421 USE_MAINTAINER_MODE=$enableval
11422else
11423 USE_MAINTAINER_MODE=no
1c710c3c
DJ
11424fi;
11425echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11426echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11427
11428
11429if test "$USE_MAINTAINER_MODE" = yes; then
11430 MAINTAINER_MODE_TRUE=
11431 MAINTAINER_MODE_FALSE='#'
11432else
11433 MAINTAINER_MODE_TRUE='#'
11434 MAINTAINER_MODE_FALSE=
1c710c3c 11435fi
ee03dc5e
AO
11436MAINT=$MAINTAINER_MODE_TRUE
11437
2805b53a
NN
11438# ---------------------
11439# GCC bootstrap support
11440# ---------------------
11441
11442# Stage specific cflags for build.
11443stage1_cflags="-g"
11444case $build in
11445 vax-*-*)
11446 case ${GCC} in
11447 yes) stage1_cflags="-g -Wa,-J" ;;
11448 *) stage1_cflags="-g -J" ;;
11449 esac ;;
2805b53a
NN
11450esac
11451
0b50988a
EB
11452# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11453if test "$GCC" = yes; then
11454 saved_CFLAGS="$CFLAGS"
11455
11456 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11457 CFLAGS="$CFLAGS -fkeep-inline-functions"
1c710c3c
DJ
11458 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11459echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11461/* confdefs.h. */
11462_ACEOF
11463cat confdefs.h >>conftest.$ac_ext
11464cat >>conftest.$ac_ext <<_ACEOF
11465/* end confdefs.h. */
11466
11467int
11468main ()
11469{
11470
11471 ;
11472 return 0;
11473}
11474_ACEOF
11475rm -f conftest.$ac_objext
11476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11477 (eval $ac_compile) 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_c_werror_flag"
11485 || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 echo "$as_me:$LINENO: result: yes" >&5
11498echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503echo "$as_me:$LINENO: result: no" >&5
11504echo "${ECHO_T}no" >&6
11505fi
11506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
11507
11508 CFLAGS="$saved_CFLAGS"
11509fi
11510
11511
2805b53a 11512
8efea775
PB
11513# Enable --enable-checking in stage1 of the compiler.
11514# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11515if test "${enable_stage1_checking+set}" = set; then
11516 enableval="$enable_stage1_checking"
11517 stage1_checking=--enable-checking=${enable_stage1_checking}
11518else
11519 if test "x$enable_checking" = xno; then
11520 stage1_checking=--enable-checking
11521else
11522 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11523fi
1c710c3c 11524fi;
8efea775
PB
11525
11526
2805b53a 11527# Enable -Werror in bootstrap stage2 and later.
2805b53a
NN
11528# Check whether --enable-werror or --disable-werror was given.
11529if test "${enable_werror+set}" = set; then
11530 enableval="$enable_werror"
1c710c3c 11531
2805b53a 11532else
416cfb5e 11533 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 11534 enable_werror=yes
88fceb68
PB
11535else
11536 enable_werror=no
11537fi
1c710c3c 11538fi;
09a9c095
NN
11539case ${enable_werror} in
11540 yes) stage2_werror_flag="--enable-werror-always" ;;
11541 *) stage2_werror_flag="" ;;
2805b53a
NN
11542esac
11543
11544
32845532 11545# Flags needed to enable html installing and building
1c710c3c 11546
32845532
CD
11547# Check whether --with-datarootdir or --without-datarootdir was given.
11548if test "${with_datarootdir+set}" = set; then
11549 withval="$with_datarootdir"
11550 datarootdir="\${prefix}/${withval}"
11551else
11552 datarootdir="\${prefix}/share"
1c710c3c 11553fi;
32845532
CD
11554
11555
11556# Check whether --with-docdir or --without-docdir was given.
11557if test "${with_docdir+set}" = set; then
11558 withval="$with_docdir"
11559 docdir="\${prefix}/${withval}"
11560else
11561 docdir="\${datarootdir}/doc"
1c710c3c 11562fi;
32845532
CD
11563
11564
9c4d2493
BM
11565# Check whether --with-pdfdir or --without-pdfdir was given.
11566if test "${with_pdfdir+set}" = set; then
11567 withval="$with_pdfdir"
11568 pdfdir="\${prefix}/${withval}"
11569else
11570 pdfdir="\${docdir}"
11571fi;
11572
11573
32845532
CD
11574# Check whether --with-htmldir or --without-htmldir was given.
11575if test "${with_htmldir+set}" = set; then
11576 withval="$with_htmldir"
11577 htmldir="\${prefix}/${withval}"
11578else
11579 htmldir="\${docdir}"
1c710c3c 11580fi;
32845532
CD
11581
11582
11583
11584
11585
172e41aa 11586
1c710c3c
DJ
11587 ac_config_files="$ac_config_files Makefile"
11588cat >confcache <<\_ACEOF
671aa708
NN
11589# This file is a shell script that caches the results of configure
11590# tests run on this system so they can be shared between configure
1c710c3c
DJ
11591# scripts and configure runs, see configure's option --config-cache.
11592# It is not useful on other systems. If it contains results you don't
11593# want to keep, you may remove or edit it.
671aa708 11594#
1c710c3c
DJ
11595# config.status only pays attention to the cache file if you give it
11596# the --recheck option to rerun configure.
671aa708 11597#
1c710c3c
DJ
11598# `ac_cv_env_foo' variables (set or unset) will be overridden when
11599# loading this file, other *unset* `ac_cv_foo' will be assigned the
11600# following values.
11601
11602_ACEOF
11603
671aa708
NN
11604# The following way of writing the cache mishandles newlines in values,
11605# but we know of no workaround that is simple, portable, and efficient.
11606# So, don't put newlines in cache variables' values.
11607# Ultrix sh set writes to stderr and can't be redirected directly,
11608# and sets the high bit in the cache file unless we assign to the vars.
1c710c3c
DJ
11609{
11610 (set) 2>&1 |
11611 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11612 *ac_space=\ *)
11613 # `set' does not quote correctly, so add quotes (double-quote
11614 # substitution turns \\\\ into \\, and sed turns \\ into \).
11615 sed -n \
11616 "s/'/'\\\\''/g;
11617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11618 ;;
11619 *)
11620 # `set' quotes correctly as required by POSIX, so do not add quotes.
11621 sed -n \
11622 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11623 ;;
11624 esac;
11625} |
11626 sed '
11627 t clear
11628 : clear
11629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11630 t end
11631 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11632 : end' >>confcache
11633if diff $cache_file confcache >/dev/null 2>&1; then :; else
671aa708 11634 if test -w $cache_file; then
1c710c3c
DJ
11635 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11636 cat confcache >$cache_file
671aa708
NN
11637 else
11638 echo "not updating unwritable cache $cache_file"
11639 fi
4977bab6 11640fi
671aa708 11641rm -f confcache
79c06341 11642
671aa708
NN
11643test "x$prefix" = xNONE && prefix=$ac_default_prefix
11644# Let make expand exec_prefix.
11645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 11646
1c710c3c
DJ
11647# VPATH may cause trouble with some makes, so we remove $(srcdir),
11648# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11649# trailing colons and then remove the whole line if VPATH becomes empty
11650# (actually we leave an empty line to preserve line numbers).
671aa708 11651if test "x$srcdir" = x.; then
1c710c3c
DJ
11652 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11653s/:*\$(srcdir):*/:/;
11654s/:*\${srcdir}:*/:/;
11655s/:*@srcdir@:*/:/;
11656s/^\([^=]*=[ ]*\):*/\1/;
11657s/:*$//;
11658s/^[^=]*=[ ]*$//;
11659}'
671aa708 11660fi
79c06341 11661
671aa708
NN
11662# Transform confdefs.h into DEFS.
11663# Protect against shell expansion while executing Makefile rules.
11664# Protect against Makefile macro expansion.
1c710c3c
DJ
11665#
11666# If the first sed substitution is executed (which looks for macros that
11667# take arguments), then we branch to the quote section. Otherwise,
11668# look for a macro that doesn't take arguments.
11669cat >confdef2opt.sed <<\_ACEOF
11670t clear
11671: clear
11672s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11673t quote
11674s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11675t quote
11676d
11677: quote
11678s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11679s,\[,\\&,g
11680s,\],\\&,g
11681s,\$,$$,g
11682p
11683_ACEOF
11684# We use echo to avoid assuming a particular line-breaking character.
11685# The extra dot is to prevent the shell from consuming trailing
11686# line-breaks from the sub-command output. A line-break within
11687# single-quotes doesn't work because, if this script is created in a
11688# platform that uses two characters for line-breaks (e.g., DOS), tr
11689# would break.
11690ac_LF_and_DOT=`echo; echo .`
11691DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11692rm -f confdef2opt.sed
11693
11694
11695ac_libobjs=
11696ac_ltlibobjs=
11697for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11698 # 1. Remove the extension, and $U if already installed.
11699 ac_i=`echo "$ac_i" |
11700 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11701 # 2. Add them.
11702 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11703 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11704done
11705LIBOBJS=$ac_libobjs
fb0103e5 11706
1c710c3c 11707LTLIBOBJS=$ac_ltlibobjs
0b0dc272 11708
af71363e 11709
1c710c3c
DJ
11710
11711: ${CONFIG_STATUS=./config.status}
11712ac_clean_files_save=$ac_clean_files
11713ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11714{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11715echo "$as_me: creating $CONFIG_STATUS" >&6;}
11716cat >$CONFIG_STATUS <<_ACEOF
11717#! $SHELL
11718# Generated by $as_me.
671aa708 11719# Run this file to recreate the current configuration.
671aa708 11720# Compiler output produced by configure, useful for debugging
1c710c3c 11721# configure, is in config.log if it exists.
0b0dc272 11722
1c710c3c
DJ
11723debug=false
11724ac_cs_recheck=false
11725ac_cs_silent=false
11726SHELL=\${CONFIG_SHELL-$SHELL}
11727_ACEOF
11728
11729cat >>$CONFIG_STATUS <<\_ACEOF
11730## --------------------- ##
11731## M4sh Initialization. ##
11732## --------------------- ##
11733
11734# Be Bourne compatible
11735if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11736 emulate sh
11737 NULLCMD=:
11738 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11739 # is contrary to our usage. Disable this feature.
11740 alias -g '${1+"$@"}'='"$@"'
11741elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11742 set -o posix
11743fi
11744DUALCASE=1; export DUALCASE # for MKS sh
11745
11746# Support unset when possible.
11747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11748 as_unset=unset
11749else
11750 as_unset=false
11751fi
11752
11753
11754# Work around bugs in pre-3.0 UWIN ksh.
11755$as_unset ENV MAIL MAILPATH
11756PS1='$ '
11757PS2='> '
11758PS4='+ '
11759
11760# NLS nuisances.
11761for as_var in \
11762 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11763 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11764 LC_TELEPHONE LC_TIME
11765do
11766 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11767 eval $as_var=C; export $as_var
11768 else
11769 $as_unset $as_var
11770 fi
11771done
11772
11773# Required to use basename.
11774if expr a : '\(a\)' >/dev/null 2>&1; then
11775 as_expr=expr
11776else
11777 as_expr=false
11778fi
11779
11780if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11781 as_basename=basename
11782else
11783 as_basename=false
11784fi
11785
11786
11787# Name of the executable.
11788as_me=`$as_basename "$0" ||
11789$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11790 X"$0" : 'X\(//\)$' \| \
11791 X"$0" : 'X\(/\)$' \| \
11792 . : '\(.\)' 2>/dev/null ||
11793echo X/"$0" |
11794 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11795 /^X\/\(\/\/\)$/{ s//\1/; q; }
11796 /^X\/\(\/\).*/{ s//\1/; q; }
11797 s/.*/./; q'`
11798
11799
11800# PATH needs CR, and LINENO needs CR and PATH.
11801# Avoid depending upon Character Ranges.
11802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11805as_cr_digits='0123456789'
11806as_cr_alnum=$as_cr_Letters$as_cr_digits
11807
11808# The user is always right.
11809if test "${PATH_SEPARATOR+set}" != set; then
11810 echo "#! /bin/sh" >conf$$.sh
11811 echo "exit 0" >>conf$$.sh
11812 chmod +x conf$$.sh
11813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11814 PATH_SEPARATOR=';'
11815 else
11816 PATH_SEPARATOR=:
11817 fi
11818 rm -f conf$$.sh
11819fi
11820
11821
11822 as_lineno_1=$LINENO
11823 as_lineno_2=$LINENO
11824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11825 test "x$as_lineno_1" != "x$as_lineno_2" &&
11826 test "x$as_lineno_3" = "x$as_lineno_2" || {
11827 # Find who we are. Look in the path if we contain no path at all
11828 # relative or not.
11829 case $0 in
11830 *[\\/]* ) as_myself=$0 ;;
11831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832for as_dir in $PATH
11833do
11834 IFS=$as_save_IFS
11835 test -z "$as_dir" && as_dir=.
11836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11837done
11838
11839 ;;
11840 esac
11841 # We did not find ourselves, most probably we were run as `sh COMMAND'
11842 # in which case we are not to be found in the path.
11843 if test "x$as_myself" = x; then
11844 as_myself=$0
11845 fi
11846 if test ! -f "$as_myself"; then
11847 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11848echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11849 { (exit 1); exit 1; }; }
11850 fi
11851 case $CONFIG_SHELL in
11852 '')
11853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11855do
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
11858 for as_base in sh bash ksh sh5; do
11859 case $as_dir in
11860 /*)
11861 if ("$as_dir/$as_base" -c '
11862 as_lineno_1=$LINENO
11863 as_lineno_2=$LINENO
11864 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11865 test "x$as_lineno_1" != "x$as_lineno_2" &&
11866 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11867 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11868 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11869 CONFIG_SHELL=$as_dir/$as_base
11870 export CONFIG_SHELL
11871 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11872 fi;;
11873 esac
11874 done
11875done
11876;;
11877 esac
11878
11879 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11880 # uniformly replaced by the line number. The first 'sed' inserts a
11881 # line-number line before each line; the second 'sed' does the real
11882 # work. The second script uses 'N' to pair each line-number line
11883 # with the numbered line, and appends trailing '-' during
11884 # substitution so that $LINENO is not a special case at line end.
11885 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11886 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11887 sed '=' <$as_myself |
11888 sed '
11889 N
11890 s,$,-,
11891 : loop
11892 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11893 t loop
11894 s,-$,,
11895 s,^['$as_cr_digits']*\n,,
11896 ' >$as_me.lineno &&
11897 chmod +x $as_me.lineno ||
11898 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11899echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11900 { (exit 1); exit 1; }; }
11901
11902 # Don't try to exec as it changes $[0], causing all sort of problems
11903 # (the dirname of $[0] is not the place where we might find the
11904 # original and so on. Autoconf is especially sensible to this).
11905 . ./$as_me.lineno
11906 # Exit status is that of the last command.
11907 exit
11908}
11909
11910
11911case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11912 *c*,-n*) ECHO_N= ECHO_C='
11913' ECHO_T=' ' ;;
11914 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11915 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11916esac
11917
11918if expr a : '\(a\)' >/dev/null 2>&1; then
11919 as_expr=expr
11920else
11921 as_expr=false
11922fi
11923
11924rm -f conf$$ conf$$.exe conf$$.file
11925echo >conf$$.file
11926if ln -s conf$$.file conf$$ 2>/dev/null; then
11927 # We could just check for DJGPP; but this test a) works b) is more generic
11928 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11929 if test -f conf$$.exe; then
11930 # Don't use ln at all; we don't have any links
11931 as_ln_s='cp -p'
11932 else
11933 as_ln_s='ln -s'
11934 fi
11935elif ln conf$$.file conf$$ 2>/dev/null; then
11936 as_ln_s=ln
11937else
11938 as_ln_s='cp -p'
11939fi
11940rm -f conf$$ conf$$.exe conf$$.file
11941
11942if mkdir -p . 2>/dev/null; then
11943 as_mkdir_p=:
11944else
11945 test -d ./-p && rmdir ./-p
11946 as_mkdir_p=false
11947fi
11948
11949as_executable_p="test -f"
11950
11951# Sed expression to map a string onto a valid CPP name.
11952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11953
11954# Sed expression to map a string onto a valid variable name.
11955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11956
11957
11958# IFS
11959# We need space, tab and new line, in precisely that order.
11960as_nl='
11961'
11962IFS=" $as_nl"
11963
11964# CDPATH.
11965$as_unset CDPATH
11966
11967exec 6>&1
11968
11969# Open the log real soon, to keep \$[0] and so on meaningful, and to
11970# report actual input values of CONFIG_FILES etc. instead of their
11971# values after options handling. Logging --version etc. is OK.
11972exec 5>>config.log
11973{
11974 echo
11975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11976## Running $as_me. ##
11977_ASBOX
11978} >&5
11979cat >&5 <<_CSEOF
11980
11981This file was extended by $as_me, which was
11982generated by GNU Autoconf 2.59. Invocation command line was
11983
11984 CONFIG_FILES = $CONFIG_FILES
11985 CONFIG_HEADERS = $CONFIG_HEADERS
11986 CONFIG_LINKS = $CONFIG_LINKS
11987 CONFIG_COMMANDS = $CONFIG_COMMANDS
11988 $ $0 $@
11989
11990_CSEOF
11991echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11992echo >&5
11993_ACEOF
11994
11995# Files that config.status was made for.
11996if test -n "$ac_config_files"; then
11997 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11998fi
11999
12000if test -n "$ac_config_headers"; then
12001 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12002fi
12003
12004if test -n "$ac_config_links"; then
12005 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12006fi
12007
12008if test -n "$ac_config_commands"; then
12009 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12010fi
12011
12012cat >>$CONFIG_STATUS <<\_ACEOF
12013
12014ac_cs_usage="\
12015\`$as_me' instantiates files from templates according to the
12016current configuration.
12017
12018Usage: $0 [OPTIONS] [FILE]...
12019
12020 -h, --help print this help, then exit
12021 -V, --version print version number, then exit
12022 -q, --quiet do not print progress messages
12023 -d, --debug don't remove temporary files
12024 --recheck update $as_me by reconfiguring in the same conditions
12025 --file=FILE[:TEMPLATE]
12026 instantiate the configuration file FILE
12027
12028Configuration files:
12029$config_files
12030
12031Report bugs to <bug-autoconf@gnu.org>."
12032_ACEOF
12033
12034cat >>$CONFIG_STATUS <<_ACEOF
12035ac_cs_version="\\
12036config.status
12037configured by $0, generated by GNU Autoconf 2.59,
12038 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12039
12040Copyright (C) 2003 Free Software Foundation, Inc.
12041This config.status script is free software; the Free Software Foundation
12042gives unlimited permission to copy, distribute and modify it."
12043srcdir=$srcdir
12044INSTALL="$INSTALL"
12045_ACEOF
12046
12047cat >>$CONFIG_STATUS <<\_ACEOF
12048# If no file are specified by the user, then we need to provide default
12049# value. By we need to know if files were specified by the user.
12050ac_need_defaults=:
12051while test $# != 0
a4b9e93e 12052do
1c710c3c
DJ
12053 case $1 in
12054 --*=*)
12055 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12056 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12057 ac_shift=:
12058 ;;
12059 -*)
12060 ac_option=$1
12061 ac_optarg=$2
12062 ac_shift=shift
12063 ;;
12064 *) # This is not an option, so the user has probably given explicit
12065 # arguments.
12066 ac_option=$1
12067 ac_need_defaults=false;;
12068 esac
12069
12070 case $ac_option in
12071 # Handling of the options.
12072_ACEOF
12073cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c
DJ
12075 ac_cs_recheck=: ;;
12076 --version | --vers* | -V )
12077 echo "$ac_cs_version"; exit 0 ;;
12078 --he | --h)
12079 # Conflict between --help and --header
12080 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12081Try \`$0 --help' for more information." >&5
12082echo "$as_me: error: ambiguous option: $1
12083Try \`$0 --help' for more information." >&2;}
12084 { (exit 1); exit 1; }; };;
12085 --help | --hel | -h )
12086 echo "$ac_cs_usage"; exit 0 ;;
12087 --debug | --d* | -d )
12088 debug=: ;;
12089 --file | --fil | --fi | --f )
12090 $ac_shift
12091 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12092 ac_need_defaults=false;;
12093 --header | --heade | --head | --hea )
12094 $ac_shift
12095 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12096 ac_need_defaults=false;;
12097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12099 ac_cs_silent=: ;;
12100
12101 # This is an error.
12102 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12103Try \`$0 --help' for more information." >&5
12104echo "$as_me: error: unrecognized option: $1
12105Try \`$0 --help' for more information." >&2;}
12106 { (exit 1); exit 1; }; } ;;
12107
12108 *) ac_config_targets="$ac_config_targets $1" ;;
12109
0b0dc272 12110 esac
1c710c3c 12111 shift
0b0dc272
AM
12112done
12113
1c710c3c 12114ac_configure_extra_args=
0b0dc272 12115
1c710c3c
DJ
12116if $ac_cs_silent; then
12117 exec 6>/dev/null
12118 ac_configure_extra_args="$ac_configure_extra_args --silent"
12119fi
0b0dc272 12120
1c710c3c
DJ
12121_ACEOF
12122cat >>$CONFIG_STATUS <<_ACEOF
12123if \$ac_cs_recheck; then
12124 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12125 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12126fi
12127
12128_ACEOF
12129
12130
12131
12132
12133
12134cat >>$CONFIG_STATUS <<\_ACEOF
12135for ac_config_target in $ac_config_targets
12136do
12137 case "$ac_config_target" in
12138 # Handling of arguments.
12139 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12140 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12141echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12142 { (exit 1); exit 1; }; };;
12143 esac
12144done
12145
12146# If the user did not use the arguments to specify the items to instantiate,
12147# then the envvar interface is used. Set only those that are not.
12148# We use the long form for the default assignment because of an extremely
12149# bizarre bug on SunOS 4.1.3.
12150if $ac_need_defaults; then
12151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12152fi
12153
12154# Have a temporary directory for convenience. Make it in the build tree
12155# simply because there is no reason to put it here, and in addition,
12156# creating and moving files from /tmp can sometimes cause problems.
12157# Create a temporary directory, and hook for its removal unless debugging.
12158$debug ||
12159{
12160 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12161 trap '{ (exit 1); exit 1; }' 1 2 13 15
12162}
12163
12164# Create a (secure) tmp directory for tmp files.
12165
12166{
12167 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12168 test -n "$tmp" && test -d "$tmp"
12169} ||
12170{
12171 tmp=./confstat$$-$RANDOM
12172 (umask 077 && mkdir $tmp)
12173} ||
12174{
12175 echo "$me: cannot create a temporary directory in ." >&2
12176 { (exit 1); exit 1; }
12177}
12178
12179_ACEOF
12180
12181cat >>$CONFIG_STATUS <<_ACEOF
12182
12183#
12184# CONFIG_FILES section.
12185#
12186
12187# No need to generate the scripts if there are no CONFIG_FILES.
12188# This happens for instance when ./config.status config.h
12189if test -n "\$CONFIG_FILES"; then
12190 # Protect against being on the right side of a sed subst in config.status.
12191 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12192 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12193s,@SHELL@,$SHELL,;t t
12194s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12195s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12196s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12197s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12198s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12199s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12200s,@exec_prefix@,$exec_prefix,;t t
12201s,@prefix@,$prefix,;t t
12202s,@program_transform_name@,$program_transform_name,;t t
12203s,@bindir@,$bindir,;t t
12204s,@sbindir@,$sbindir,;t t
12205s,@libexecdir@,$libexecdir,;t t
12206s,@datadir@,$datadir,;t t
12207s,@sysconfdir@,$sysconfdir,;t t
12208s,@sharedstatedir@,$sharedstatedir,;t t
12209s,@localstatedir@,$localstatedir,;t t
12210s,@libdir@,$libdir,;t t
12211s,@includedir@,$includedir,;t t
12212s,@oldincludedir@,$oldincludedir,;t t
12213s,@infodir@,$infodir,;t t
12214s,@mandir@,$mandir,;t t
12215s,@build_alias@,$build_alias,;t t
12216s,@host_alias@,$host_alias,;t t
12217s,@target_alias@,$target_alias,;t t
12218s,@DEFS@,$DEFS,;t t
12219s,@ECHO_C@,$ECHO_C,;t t
12220s,@ECHO_N@,$ECHO_N,;t t
12221s,@ECHO_T@,$ECHO_T,;t t
12222s,@LIBS@,$LIBS,;t t
12223s,@build@,$build,;t t
12224s,@build_cpu@,$build_cpu,;t t
12225s,@build_vendor@,$build_vendor,;t t
12226s,@build_os@,$build_os,;t t
12227s,@build_noncanonical@,$build_noncanonical,;t t
12228s,@host_noncanonical@,$host_noncanonical,;t t
12229s,@target_noncanonical@,$target_noncanonical,;t t
12230s,@host@,$host,;t t
12231s,@host_cpu@,$host_cpu,;t t
12232s,@host_vendor@,$host_vendor,;t t
12233s,@host_os@,$host_os,;t t
12234s,@target@,$target,;t t
12235s,@target_cpu@,$target_cpu,;t t
12236s,@target_vendor@,$target_vendor,;t t
12237s,@target_os@,$target_os,;t t
12238s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12239s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12240s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12241s,@LN@,$LN,;t t
12242s,@LN_S@,$LN_S,;t t
12243s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12244s,@build_libsubdir@,$build_libsubdir,;t t
12245s,@build_subdir@,$build_subdir,;t t
12246s,@host_subdir@,$host_subdir,;t t
12247s,@target_subdir@,$target_subdir,;t t
12248s,@CC@,$CC,;t t
12249s,@CFLAGS@,$CFLAGS,;t t
12250s,@LDFLAGS@,$LDFLAGS,;t t
12251s,@CPPFLAGS@,$CPPFLAGS,;t t
12252s,@ac_ct_CC@,$ac_ct_CC,;t t
12253s,@EXEEXT@,$EXEEXT,;t t
12254s,@OBJEXT@,$OBJEXT,;t t
c3a86da9
DJ
12255s,@CXX@,$CXX,;t t
12256s,@CXXFLAGS@,$CXXFLAGS,;t t
12257s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1c710c3c
DJ
12258s,@GNATBIND@,$GNATBIND,;t t
12259s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12260s,@GNATMAKE@,$GNATMAKE,;t t
12261s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12262s,@do_compare@,$do_compare,;t t
12263s,@gmplibs@,$gmplibs,;t t
12264s,@gmpinc@,$gmpinc,;t t
12265s,@stage1_languages@,$stage1_languages,;t t
12266s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12267s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12268s,@tooldir@,$tooldir,;t t
12269s,@build_tooldir@,$build_tooldir,;t t
12270s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12271s,@GDB_TK@,$GDB_TK,;t t
12272s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12273s,@build_configargs@,$build_configargs,;t t
12274s,@build_configdirs@,$build_configdirs,;t t
12275s,@host_configargs@,$host_configargs,;t t
12276s,@configdirs@,$configdirs,;t t
12277s,@target_configargs@,$target_configargs,;t t
12278s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12279s,@config_shell@,$config_shell,;t t
12280s,@YACC@,$YACC,;t t
12281s,@BISON@,$BISON,;t t
12282s,@M4@,$M4,;t t
12283s,@LEX@,$LEX,;t t
12284s,@FLEX@,$FLEX,;t t
12285s,@MAKEINFO@,$MAKEINFO,;t t
12286s,@EXPECT@,$EXPECT,;t t
12287s,@RUNTEST@,$RUNTEST,;t t
12288s,@AR@,$AR,;t t
12289s,@AS@,$AS,;t t
12290s,@DLLTOOL@,$DLLTOOL,;t t
12291s,@LD@,$LD,;t t
12292s,@LIPO@,$LIPO,;t t
12293s,@NM@,$NM,;t t
12294s,@RANLIB@,$RANLIB,;t t
12295s,@STRIP@,$STRIP,;t t
12296s,@WINDRES@,$WINDRES,;t t
12297s,@OBJCOPY@,$OBJCOPY,;t t
12298s,@OBJDUMP@,$OBJDUMP,;t t
1c710c3c 12299s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
1c710c3c
DJ
12300s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12301s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12302s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12303s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12304s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12305s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12306s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12307s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12308s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12309s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12310s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12311s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12312s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12313s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12314s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12315s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12316s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12317s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12318s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12319s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12320s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12321s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12322s,@MAINT@,$MAINT,;t t
12323s,@stage1_cflags@,$stage1_cflags,;t t
12324s,@stage1_checking@,$stage1_checking,;t t
12325s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12326s,@datarootdir@,$datarootdir,;t t
12327s,@docdir@,$docdir,;t t
9c4d2493 12328s,@pdfdir@,$pdfdir,;t t
1c710c3c
DJ
12329s,@htmldir@,$htmldir,;t t
12330s,@LIBOBJS@,$LIBOBJS,;t t
12331s,@LTLIBOBJS@,$LTLIBOBJS,;t t
671aa708 12332/@serialization_dependencies@/r $serialization_dependencies
1c710c3c 12333s,@serialization_dependencies@,,;t t
671aa708 12334/@host_makefile_frag@/r $host_makefile_frag
1c710c3c 12335s,@host_makefile_frag@,,;t t
671aa708 12336/@target_makefile_frag@/r $target_makefile_frag
1c710c3c 12337s,@target_makefile_frag@,,;t t
671aa708 12338/@alphaieee_frag@/r $alphaieee_frag
1c710c3c 12339s,@alphaieee_frag@,,;t t
671aa708 12340/@ospace_frag@/r $ospace_frag
1c710c3c 12341s,@ospace_frag@,,;t t
671aa708 12342CEOF
79c06341 12343
1c710c3c
DJ
12344_ACEOF
12345
12346 cat >>$CONFIG_STATUS <<\_ACEOF
12347 # Split the substitutions into bite-sized pieces for seds with
12348 # small command number limits, like on Digital OSF/1 and HP-UX.
12349 ac_max_sed_lines=48
12350 ac_sed_frag=1 # Number of current file.
12351 ac_beg=1 # First line for current file.
12352 ac_end=$ac_max_sed_lines # Line after last line for current file.
12353 ac_more_lines=:
12354 ac_sed_cmds=
12355 while $ac_more_lines; do
12356 if test $ac_beg -gt 1; then
12357 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12358 else
12359 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12360 fi
12361 if test ! -s $tmp/subs.frag; then
12362 ac_more_lines=false
671aa708 12363 else
1c710c3c
DJ
12364 # The purpose of the label and of the branching condition is to
12365 # speed up the sed processing (if there are no `@' at all, there
12366 # is no need to browse any of the substitutions).
12367 # These are the two extra sed commands mentioned above.
12368 (echo ':t
12369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12370 if test -z "$ac_sed_cmds"; then
12371 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12372 else
12373 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12374 fi
12375 ac_sed_frag=`expr $ac_sed_frag + 1`
12376 ac_beg=$ac_end
12377 ac_end=`expr $ac_end + $ac_max_sed_lines`
671aa708 12378 fi
1c710c3c
DJ
12379 done
12380 if test -z "$ac_sed_cmds"; then
12381 ac_sed_cmds=cat
4977bab6 12382 fi
1c710c3c 12383fi # test -n "$CONFIG_FILES"
79c06341 12384
1c710c3c
DJ
12385_ACEOF
12386cat >>$CONFIG_STATUS <<\_ACEOF
12387for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
671aa708 12388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1c710c3c
DJ
12389 case $ac_file in
12390 - | *:- | *:-:* ) # input from stdin
12391 cat >$tmp/stdin
12392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12396 * ) ac_file_in=$ac_file.in ;;
671aa708 12397 esac
79c06341 12398
1c710c3c
DJ
12399 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12401$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12402 X"$ac_file" : 'X\(//\)[^/]' \| \
12403 X"$ac_file" : 'X\(//\)$' \| \
12404 X"$ac_file" : 'X\(/\)' \| \
12405 . : '\(.\)' 2>/dev/null ||
12406echo X"$ac_file" |
12407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12409 /^X\(\/\/\)$/{ s//\1/; q; }
12410 /^X\(\/\).*/{ s//\1/; q; }
12411 s/.*/./; q'`
12412 { if $as_mkdir_p; then
12413 mkdir -p "$ac_dir"
af71363e 12414 else
1c710c3c
DJ
12415 as_dir="$ac_dir"
12416 as_dirs=
12417 while test ! -d "$as_dir"; do
12418 as_dirs="$as_dir $as_dirs"
12419 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12420$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12421 X"$as_dir" : 'X\(//\)[^/]' \| \
12422 X"$as_dir" : 'X\(//\)$' \| \
12423 X"$as_dir" : 'X\(/\)' \| \
12424 . : '\(.\)' 2>/dev/null ||
12425echo X"$as_dir" |
12426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12428 /^X\(\/\/\)$/{ s//\1/; q; }
12429 /^X\(\/\).*/{ s//\1/; q; }
12430 s/.*/./; q'`
12431 done
12432 test ! -n "$as_dirs" || mkdir $as_dirs
12433 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12434echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12435 { (exit 1); exit 1; }; }; }
12436
12437 ac_builddir=.
0b0dc272 12438
1c710c3c
DJ
12439if test "$ac_dir" != .; then
12440 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12441 # A "../" for each directory in $ac_dir_suffix.
12442 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12443else
12444 ac_dir_suffix= ac_top_builddir=
12445fi
12446
12447case $srcdir in
12448 .) # No --srcdir option. We are building in place.
12449 ac_srcdir=.
12450 if test -z "$ac_top_builddir"; then
12451 ac_top_srcdir=.
12452 else
12453 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12454 fi ;;
12455 [\\/]* | ?:[\\/]* ) # Absolute path.
12456 ac_srcdir=$srcdir$ac_dir_suffix;
12457 ac_top_srcdir=$srcdir ;;
671aa708 12458 *) # Relative path.
1c710c3c
DJ
12459 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12460 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12461esac
a4b9e93e 12462
1c710c3c
DJ
12463# Do not use `cd foo && pwd` to compute absolute paths, because
12464# the directories may not exist.
12465case `pwd` in
12466.) ac_abs_builddir="$ac_dir";;
12467*)
12468 case "$ac_dir" in
12469 .) ac_abs_builddir=`pwd`;;
12470 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12471 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12472 esac;;
12473esac
12474case $ac_abs_builddir in
12475.) ac_abs_top_builddir=${ac_top_builddir}.;;
12476*)
12477 case ${ac_top_builddir}. in
12478 .) ac_abs_top_builddir=$ac_abs_builddir;;
12479 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12480 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12481 esac;;
12482esac
12483case $ac_abs_builddir in
12484.) ac_abs_srcdir=$ac_srcdir;;
12485*)
12486 case $ac_srcdir in
12487 .) ac_abs_srcdir=$ac_abs_builddir;;
12488 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12489 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12490 esac;;
12491esac
12492case $ac_abs_builddir in
12493.) ac_abs_top_srcdir=$ac_top_srcdir;;
12494*)
12495 case $ac_top_srcdir in
12496 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12497 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12498 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12499 esac;;
12500esac
0b0dc272 12501
1c710c3c
DJ
12502
12503 case $INSTALL in
12504 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12505 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 12506 esac
79c06341 12507
1c710c3c
DJ
12508 if test x"$ac_file" != x-; then
12509 { echo "$as_me:$LINENO: creating $ac_file" >&5
12510echo "$as_me: creating $ac_file" >&6;}
12511 rm -f "$ac_file"
12512 fi
12513 # Let's still pretend it is `configure' which instantiates (i.e., don't
12514 # use $as_me), people would be surprised to read:
12515 # /* config.h. Generated by config.status. */
12516 if test x"$ac_file" = x-; then
12517 configure_input=
12518 else
12519 configure_input="$ac_file. "
12520 fi
12521 configure_input=$configure_input"Generated from `echo $ac_file_in |
12522 sed 's,.*/,,'` by configure."
12523
12524 # First look for the input files in the build tree, otherwise in the
12525 # src tree.
12526 ac_file_inputs=`IFS=:
12527 for f in $ac_file_in; do
12528 case $f in
12529 -) echo $tmp/stdin ;;
12530 [\\/$]*)
12531 # Absolute (can't be DOS-style, as IFS=:)
12532 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12533echo "$as_me: error: cannot find input file: $f" >&2;}
12534 { (exit 1); exit 1; }; }
12535 echo "$f";;
12536 *) # Relative
12537 if test -f "$f"; then
12538 # Build tree
12539 echo "$f"
12540 elif test -f "$srcdir/$f"; then
12541 # Source tree
12542 echo "$srcdir/$f"
12543 else
12544 # /dev/null tree
12545 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12546echo "$as_me: error: cannot find input file: $f" >&2;}
12547 { (exit 1); exit 1; }; }
12548 fi;;
12549 esac
12550 done` || { (exit 1); exit 1; }
12551_ACEOF
12552cat >>$CONFIG_STATUS <<_ACEOF
12553 sed "$ac_vpsub
12554$extrasub
12555_ACEOF
12556cat >>$CONFIG_STATUS <<\_ACEOF
12557:t
12558/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12559s,@configure_input@,$configure_input,;t t
12560s,@srcdir@,$ac_srcdir,;t t
12561s,@abs_srcdir@,$ac_abs_srcdir,;t t
12562s,@top_srcdir@,$ac_top_srcdir,;t t
12563s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12564s,@builddir@,$ac_builddir,;t t
12565s,@abs_builddir@,$ac_abs_builddir,;t t
12566s,@top_builddir@,$ac_top_builddir,;t t
12567s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12568s,@INSTALL@,$ac_INSTALL,;t t
12569" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12570 rm -f $tmp/stdin
12571 if test x"$ac_file" != x-; then
12572 mv $tmp/out $ac_file
12573 else
12574 cat $tmp/out
12575 rm -f $tmp/out
12576 fi
79c06341 12577
1c710c3c
DJ
12578done
12579_ACEOF
79c06341 12580
1c710c3c 12581cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 12582
1c710c3c
DJ
12583{ (exit 0); exit 0; }
12584_ACEOF
671aa708 12585chmod +x $CONFIG_STATUS
1c710c3c
DJ
12586ac_clean_files=$ac_clean_files_save
12587
12588
12589# configure is writing to config.log, and then calls config.status.
12590# config.status does its own redirection, appending to config.log.
12591# Unfortunately, on DOS this fails, as config.log is still kept open
12592# by configure, so config.status won't be able to write to it; its
12593# output is simply discarded. So we exec the FD to /dev/null,
12594# effectively closing config.log, so it can be properly (re)opened and
12595# appended to by config.status. When coming back to configure, we
12596# need to make the FD available again.
12597if test "$no_create" != yes; then
12598 ac_cs_success=:
12599 ac_config_status_args=
12600 test "$silent" = yes &&
12601 ac_config_status_args="$ac_config_status_args --quiet"
12602 exec 5>/dev/null
12603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12604 exec 5>>config.log
12605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12606 # would make configure fail if this is the last instruction.
12607 $ac_cs_success || { (exit 1); exit 1; }
12608fi
79c06341 12609