Generate a GLOB_DAT reloc for a GOT32 reloc against a symbol defined
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
8a6ee3ab 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
880_ACEOF
881
882 cat <<_ACEOF
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
a0da8069 923fi
a0da8069 924
c6b750e1
DJ
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521ec477
DD
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 935 stage1. Mostly useful for compiler development.
521ec477
DD
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
c6b750e1 941 sub-packages for the host, target or build
521ec477 942 machine, or all sub-packages
c6b750e1
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
521ec477
DD
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
c6b750e1
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
521ec477
DD
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
521ec477
DD
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
c6b750e1 967 use sysroot as the system root during the build
8a6ee3ab
JM
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
521ec477 970 --with-build-time-tools=PATH
c6b750e1 971 use given path to find target tools during the build
521ec477
DD
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
c6b750e1
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
18f6b6ee
PB
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
9a819804
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
0c24b341 995 WINDMC WINDMC for the host
9a819804
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
0c24b341
NC
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
c6b750e1
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1043
1044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1051
1052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1105esac
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1121 fi
1122 cd $ac_popdir
1123 done
1124fi
1125
1126test -n "$ac_init_help" && exit 0
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
1130Copyright (C) 2003 Free Software Foundation, Inc.
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
1134 exit 0
1135fi
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
1142generated by GNU Autoconf 2.59. Invocation command line was
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
1200ac_sep=
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
1260{
1261 (set) 2>&1 |
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1264 sed -n \
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1268 *)
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1271 ;;
1272 esac;
1273}
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
1311 sed "/^$/d" confdefs.h | sort
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1320 exit $exit_status
1321 ' 0
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
a0da8069 1360# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1366 fi
1367fi
1368for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
c6b750e1
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
c6b750e1
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1386 esac
1387 fi
a0da8069 1388else
c6b750e1
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
a0da8069
NN
1443fi
1444
1445ac_ext=c
a0da8069 1446ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
a0da8069
NN
1463
1464
75778ec4 1465
c6b750e1
DJ
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
a0da8069 1472ac_aux_dir=
315b3b02 1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
c6b750e1
DJ
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
a0da8069
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
a0da8069 1492fi
c6b750e1
DJ
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1496
c6b750e1
DJ
1497# Make sure we can run config.sub.
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520fi
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1523build=$ac_cv_build
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1527
a0da8069 1528
c6b750e1
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1532esac
1533
1534
cac3d6c4 1535
c6b750e1
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1539esac
1540
cac3d6c4 1541
c6b750e1
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1546esac
1547
cac3d6c4 1548
c6b750e1
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
c6b750e1 1554 program_transform_name=s,y,y,
cac3d6c4 1555
c6b750e1
DJ
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1560else
c6b750e1
DJ
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1572host=$ac_cv_host
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
cac3d6c4 1591fi
c6b750e1
DJ
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1594target=$ac_cv_target
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
a0da8069 1606test "$program_prefix" != NONE &&
c6b750e1 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
c6b750e1
DJ
1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1617rm conftest.sed
cac3d6c4 1618
a0da8069
NN
1619
1620
e5c3f801
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
c6b750e1 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1633# OS/2's system install, which has a completely different semantic
e5c3f801 1634# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1637if test -z "$INSTALL"; then
c6b750e1
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1659 if test $ac_prog = install &&
c6b750e1 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
c6b750e1
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
e5c3f801 1667 else
c6b750e1
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
e5c3f801
NN
1670 fi
1671 fi
1672 done
c6b750e1
DJ
1673 done
1674 ;;
1675esac
1676done
1677
e5c3f801
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1681 INSTALL=$ac_cv_path_install
e5c3f801
NN
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
c6b750e1 1687 INSTALL=$ac_install_sh
e5c3f801
NN
1688 fi
1689fi
c6b750e1
DJ
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
c6b750e1 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
c6b750e1
DJ
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
c6b750e1
DJ
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1721else
1722 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
656fdd47
PB
1725fi
1726
c6b750e1
DJ
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
cac3d6c4 1733else
c6b750e1
DJ
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1736fi
1737
e5c3f801 1738
252b5132 1739### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
a0da8069
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
252b5132
RH
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
a0da8069 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1776
92f01d61
JM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
a4708fba
JM
1781for ac_arg
1782do
92f01d61 1783 case "$ac_arg" in
ffa8bd48 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
2444379b
BE
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
92f01d61
JM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1799
75205f78 1800
a0da8069 1801moveifchange=${srcdir}/move-if-change
252b5132 1802
0fdbe983
DJ
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
a0da8069
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
a0da8069
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
252b5132
RH
1816fi
1817
a0da8069 1818topsrcdir=$srcpwd
252b5132 1819
a0da8069 1820extra_host_args=
afefada0 1821
a0da8069
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
252b5132 1825
c6b750e1 1826# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1827# configdirs, or target_configdirs; see the serialization section below.
252b5132 1828
c6b750e1
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
a0da8069 1831# the Makefile, whether or not it's implicitly specified here.
252b5132 1832
a0da8069
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
252b5132 1835
6a9cf61e
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
ee025550 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1843
a0da8069
NN
1844# these libraries are used by various programs built for the host environment
1845#
4b900473 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1847
a0da8069
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
b00612cc 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
a0da8069
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
b1299c4e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
a0da8069
NN
1866 target-libgloss \
1867 target-newlib \
b9459e83 1868 target-libstdc++-v3 \
4b1cb4fe 1869 target-libmudflap \
bb780410 1870 target-libssp \
4b1cb4fe 1871 target-libgfortran \
4f0ef2d8 1872 target-boehm-gc \
83326456 1873 ${libgcj} \
a2592b1b 1874 target-libobjc \
b3ded179
PB
1875 target-libada \
1876 target-libgomp"
a0da8069 1877
9c14acb8
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
a0da8069 1880#
9c14acb8 1881# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
a3dd767d 1885target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1886
a0da8069 1887################################################################################
252b5132 1888
a0da8069
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
a0da8069 1894configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1896build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1897
a0da8069 1898################################################################################
252b5132 1899
a0da8069 1900srcname="gnu development package"
252b5132 1901
a0da8069
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
252b5132 1904
a0da8069
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
252b5132 1909else
a0da8069 1910 is_cross_compiler=yes
c6b750e1 1911fi
252b5132 1912
9175bfc0 1913# Find the build and target subdir names.
dd12c3a8 1914
66a79c16
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1925build_subdir="build-${build_noncanonical}"
c6b750e1 1926
66a79c16
DJ
1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1928if test "${with_build_libsubdir+set}" = set; then
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
1931else
1932 build_libsubdir="$build_subdir"
c6b750e1 1933fi;
b00612cc
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
dd12c3a8
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
c6b750e1 1943
252b5132 1944
a0da8069
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
252b5132 1949
a0da8069
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1955fi
1956
a0da8069
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1962fi
1963
c6b750e1 1964# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1965# it's not even worth trying to configure, much less build, that tool.
252b5132 1966
a0da8069
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
675c6968 1970 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1971 # We won't be able to build gdbtk without X.
c6b750e1 1972 enable_gdbtk=no
a0da8069
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
252b5132 1976
a0da8069 1977# Some tools are only suitable for building in a "native" situation.
c6b750e1 1978# Remove these if host!=target.
701628f5 1979native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 1980
a0da8069
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
252b5132 1989
a0da8069
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
32be62b5
RS
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
252b5132
RH
1997fi
1998
a0da8069
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
252b5132 2004
a0da8069 2005# Configure extra directories which are host specific
252b5132 2006
a0da8069
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
252b5132 2011
59f7ec45
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
c6b750e1 2016# Remove more programs from consideration, based on the host or
a0da8069
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
252b5132 2019
a0da8069
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
ec11bdc6 2024 i[3456789]86-*-vsta)
675c6968 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2026 ;;
ec11bdc6 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2029 ;;
2d1e8239
NC
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
ec11bdc6 2033 i[3456789]86-*-mingw32*)
675c6968 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2036 ;;
ec11bdc6 2037 i[3456789]86-*-beos*)
675c6968 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2039 ;;
a0da8069 2040 *-*-cygwin*)
a92834c8 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2042 ;;
2043 *-*-netbsd*)
a92834c8 2044 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2045 ;;
2046 ppc*-*-pe)
675c6968 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2048 ;;
2049 powerpc-*-beos*)
675c6968 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2051 ;;
a0da8069 2052esac
252b5132 2053
4b1cb4fe 2054
a2592b1b
DD
2055# Check whether --enable-libada or --disable-libada was given.
2056if test "${enable_libada+set}" = set; then
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
2059else
2060 ENABLE_LIBADA=yes
c6b750e1 2061fi;
a2592b1b 2062if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2063 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2064fi
2065
5f128533
KH
2066# Check whether --enable-libssp or --disable-libssp was given.
2067if test "${enable_libssp+set}" = set; then
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
2070else
2071 ENABLE_LIBSSP=yes
c6b750e1 2072fi;
5f128533 2073
a0da8069
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
252b5132 2089
4b1cb4fe 2090
a6df5a19
PB
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
3e707e94 2093 case "${target}" in
0ebe98fb 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2095 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2096 ;;
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
a6df5a19 2105fi
4b1cb4fe 2106
a6df5a19
PB
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
b3ded179
PB
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
64ce424c 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2116 ;;
2117 *-*-darwin* | *-*-aix*)
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
a6df5a19 2123fi
b3ded179 2124
691bb5a1
DD
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
4b1cb4fe 2127
a0da8069
NN
2128case "${target}" in
2129 *-*-chorusos)
54d1c879 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2131 ;;
790c0838 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2134 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2135 ;;
04d1ab34 2136 *-*-darwin*)
d320aacb 2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2138 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2139 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2140 ;;
a0da8069 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2143 ;;
de0b4a87 2144 *-*-freebsd*)
4b1cb4fe
DD
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
54d1c879 2156 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2157 ;;
2158 esac
2159 ;;
f8a495c8
NC
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
a0da8069
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
5b474aa8 2174 arm*-*-netbsdelf*) ;;
a0da8069 2175 *)
54d1c879 2176 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2177 ;;
2178 esac
2179 ;;
2a3124ca 2180 *-*-netware*)
54d1c879 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2182 ;;
2183 *-*-rtems*)
54d1c879 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2185 ;;
1587117a
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
54d1c879 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2189 ;;
c1968181 2190 *-*-uclinux*)
54d1c879 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2192 ;;
a0da8069 2193 *-*-vxworks*)
54d1c879 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
54d1c879 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
a0da8069
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
54d1c879 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2212 ;;
4a18bd6b 2213 am33_2.0-*-linux*)
54d1c879 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2215 ;;
a0da8069 2216 sh-*-linux*)
54d1c879 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2218 ;;
a0da8069 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2220 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2230 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2231 ;;
2232 esac
691bb5a1 2233 libgloss_dir=wince
a0da8069
NN
2234 ;;
2235 arc-*-*)
54d1c879 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2237 ;;
caeba88f 2238 arm-semi-aof )
caeba88f 2239 ;;
a0da8069 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2241 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2242 libgloss_dir=arm
a0da8069 2243 ;;
11b04d1f 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2246 libgloss_dir=arm
a0da8069 2247 ;;
bd70a46f 2248 arm*-*-linux-gnueabi)
6d18b86b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
691bb5a1 2254 libgloss_dir=arm
bd70a46f 2255 ;;
df4a6958 2256 arm*-*-symbianelf*)
54d1c879 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2258 libgloss_dir=arm
df4a6958 2259 ;;
a0da8069 2260 arm-*-pe*)
54d1c879 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2262 ;;
a0da8069 2263 thumb-*-coff)
54d1c879 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2265 ;;
2266 thumb-*-elf)
54d1c879 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2268 ;;
a0da8069 2269 thumb-*-pe)
54d1c879 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2271 ;;
2272 arm-*-riscix*)
54d1c879 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2274 ;;
2275 avr-*-*)
54d1c879 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2277 ;;
376a0e54 2278 bfin-*-*)
00d89675 2279 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2280 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
a0da8069 2284 c4x-*-* | tic4x-*-*)
54d1c879 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
54d1c879 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2289 ;;
c7e66c6d 2290 cris-*-* | crisv32-*-*)
59f7ec45 2291 unsupported_languages="$unsupported_languages java"
c7e66c6d 2292 case "${target}" in
2faa2958 2293 *-*-aout)
096f7d00 2294 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2296 *-*-elf)
096f7d00 2297 unsupported_languages="$unsupported_languages fortran"
5e818318 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2299 *-*-linux*)
5e818318 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2301 *)
096f7d00 2302 unsupported_languages="$unsupported_languages fortran"
54d1c879 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2304 esac
691bb5a1 2305 libgloss_dir=cris
a0da8069 2306 ;;
3e707e94 2307 crx-*-*)
54d1c879 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2309 ;;
a0da8069 2310 d10v-*-*)
54d1c879 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2312 ;;
2313 d30v-*-*)
54d1c879 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2315 ;;
691bb5a1
DD
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
a0da8069 2319 fr30-*-elf*)
54d1c879 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2321 ;;
2322 frv-*-*)
54d1c879 2323 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2324 ;;
2325 h8300*-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2327 ;;
2328 h8500-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2330 ;;
caeba88f 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2332 ;;
a0da8069
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
5dcac624
DA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
a0da8069 2341 hppa*-*-*elf* | \
a0da8069
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2346 ;;
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2349 ;;
691bb5a1
DD
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
a0da8069
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
54d1c879 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2357 ;;
b07c2aad 2358 i960-*-*)
54d1c879 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2360 ;;
a0da8069
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
675c6968 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
54d1c879 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2368 ;;
caeba88f 2369 i370-*-opened*)
caeba88f 2370 ;;
ec11bdc6 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2373 libgloss_dir=i386
a0da8069 2374 ;;
ec11bdc6 2375 i[3456789]86-*-linux*)
a0da8069
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
54d1c879 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
bba45b8b 2386 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
ec11bdc6 2394 i[3456789]86-*-mingw32*)
45055374
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2397 ;;
2d1e8239
NC
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2401 ;;
a0da8069
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2405 # always build newlib if winsup directory is present.
45055374 2406 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2408 elif test -d "$srcdir/newlib"; then
45055374 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2410 fi
c6b750e1 2411 ;;
caeba88f
AL
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2414 ;;
ec11bdc6 2415 i[3456789]86-*-pe)
54d1c879 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2417 ;;
ec11bdc6 2418 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
54d1c879 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2422 ;;
ec11bdc6 2423 i[3456789]86-*-sco*)
54d1c879 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2425 ;;
ec11bdc6 2426 i[3456789]86-*-solaris2*)
a0da8069
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
ec11bdc6 2429 i[3456789]86-*-sysv4*)
54d1c879 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2431 ;;
ec11bdc6 2432 i[3456789]86-*-beos*)
54d1c879 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2434 ;;
b59bea8a 2435 i[3456789]86-*-rdos*)
2429c060
PB
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
b07c2aad 2438 m32r-*-*)
54d1c879 2439 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2440 ;;
a0da8069 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2443 libgloss_dir=m68hc11
a0da8069
NN
2444 ;;
2445 m68k-*-elf*)
54d1c879 2446 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2447 ;;
2448 m68k-*-coff*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2450 ;;
691bb5a1
DD
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
a0da8069
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
59f7ec45 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2461 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2462 ;;
2463 mn10200-*-*)
54d1c879 2464 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2465 ;;
2466 mn10300-*-*)
54d1c879 2467 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2468 ;;
4970f871 2469 mt-*-*)
cdb9b172
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
a0da8069
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
54d1c879 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
54d1c879 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
54d1c879 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2485 libgloss_dir=rs6000
a0da8069
NN
2486 ;;
2487 powerpc-*-beos*)
54d1c879 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2489 ;;
a0da8069 2490 powerpc-*-eabi)
54d1c879 2491 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2492 libgloss_dir=rs6000
caeba88f
AL
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2495 libgloss_dir=rs6000
a0da8069 2496 ;;
a0da8069 2497 rs6000-*-lynxos*)
54d1c879 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2499 ;;
2500 rs6000-*-aix*)
54d1c879 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2502 ;;
2503 rs6000-*-*)
54d1c879 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2505 ;;
2506 m68k-apollo-*)
54d1c879 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2508 ;;
2509 mips*-*-irix5*)
54d1c879 2510 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2511 ;;
2512 mips*-*-irix6*)
a0da8069
NN
2513 # Linking libjava exceeds command-line length limits on at least
2514 # IRIX 6.2, but not on IRIX 6.5.
2515 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2516 # <oldham@codesourcery.com>
54d1c879 2517 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2518 ;;
a0da8069 2519 mips*-*-bsd*)
54d1c879 2520 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2521 ;;
1712ab83 2522 mips64*-*-linux*)
f3529cf1 2523 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2524 ;;
a0da8069
NN
2525 mips*-*-linux*)
2526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2527 ;;
2528 mips*-*-*)
54d1c879 2529 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2530 libgloss_dir=mips
a0da8069
NN
2531 ;;
2532 romp-*-*)
54d1c879 2533 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2534 ;;
dbf85af7 2535 sh-*-* | sh64-*-*)
a0da8069 2536 case "${host}" in
ec11bdc6
DD
2537 i[3456789]86-*-vsta) ;; # don't add gprof back in
2538 i[3456789]86-*-go32*) ;; # don't add gprof back in
2539 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2540 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2541 esac
54d1c879 2542 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2543 ;;
691bb5a1
DD
2544 sparclet-*-aout* | sparc86x-*-*)
2545 libgloss_dir=sparc
2546 ;;
a0da8069 2547 sparc-*-elf*)
54d1c879 2548 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2549 ;;
2550 sparc64-*-elf*)
54d1c879 2551 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2552 libgloss_dir=sparc
a0da8069
NN
2553 ;;
2554 sparclite-*-*)
54d1c879 2555 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2556 libgloss_dir=sparc
a0da8069
NN
2557 ;;
2558 sparc-*-sunos4*)
54d1c879 2559 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2560 if test x${is_cross_compiler} != xno ; then
2561 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2562 else
2563 use_gnu_ld=no
2564 fi
2565 ;;
e3c770b1 2566 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2567 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2568 ;;
a0da8069
NN
2569 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2570 ;;
2839fe5d
BE
2571 spu-*-*)
2572 skipdirs="target-libssp"
2573 ;;
a0da8069 2574 v810-*-*)
54d1c879 2575 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2576 ;;
2577 v850-*-*)
54d1c879 2578 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2579 ;;
2580 v850e-*-*)
54d1c879 2581 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2582 ;;
2583 v850ea-*-*)
54d1c879 2584 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2585 ;;
2586 vax-*-vms)
54d1c879 2587 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2588 ;;
2589 vax-*-*)
54d1c879 2590 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2591 ;;
fbd1054d 2592 xtensa-*-*)
54d1c879 2593 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2594 ;;
a0da8069 2595 ip2k-*-*)
54d1c879 2596 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2597 ;;
de0b4a87 2598 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2600 ;;
2601 *-*-lynxos*)
54d1c879 2602 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2603 ;;
a0da8069 2604 *-*-*)
54d1c879 2605 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2606 ;;
2607esac
252b5132 2608
a0da8069
NN
2609# If we aren't building newlib, then don't build libgloss, since libgloss
2610# depends upon some newlib header files.
2611case "${noconfigdirs}" in
2612 *target-libgloss*) ;;
2613 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2614esac
2615
a0da8069
NN
2616# Work in distributions that contain no compiler tools, like Autoconf.
2617tentative_cc=""
2618host_makefile_frag=/dev/null
2619if test -d ${srcdir}/config ; then
2620case "${host}" in
2621 m68k-hp-hpux*)
2622 # Avoid "too much defining" errors from HPUX compiler.
2623 tentative_cc="cc -Wp,-H256000"
2624 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2625 # If it's HP/UX ar, this should be harmless.
2626 RANLIB="ar ts"
2627 ;;
2628 m68k-apollo-sysv*)
2629 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2630 ;;
2631 m68k-apollo-bsd*)
2632 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2633 # chokes on bfd, the compiler won't let you assign integers to enums, and
2634 # other problems. Defining CC to gcc is a questionable way to say "don't use
2635 # the apollo compiler" (the preferred version of GCC could be called cc,
2636 # or whatever), but I'm not sure leaving CC as cc is any better...
2637 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2638 # Used to have BISON=yacc.
2639 tentative_cc=gcc
2640 ;;
2641 m88k-dg-dgux*)
2642 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2643 ;;
2644 m88k-harris-cxux*)
2645 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2646 tentative_cc="cc -Xa"
2647 host_makefile_frag="config/mh-cxux"
2648 ;;
2649 m88k-motorola-sysv*)
2650 ;;
2651 mips*-dec-ultrix*)
2652 tentative_cc="cc -Wf,-XNg1000"
2653 host_makefile_frag="config/mh-decstation"
2654 ;;
2655 mips*-nec-sysv4*)
2656 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2657 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2658 host_makefile_frag="config/mh-necv4"
2659 ;;
2660 mips*-sgi-irix4*)
2661 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2662 # environment. Also bump switch table size so that cp-parse will
2663 # compile. Bump string length limit so linker builds.
2664 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2665 ;;
2666 mips*-*-sysv4*)
2667 host_makefile_frag="config/mh-sysv4"
2668 ;;
2669 mips*-*-sysv*)
2670 # This is for a MIPS running RISC/os 4.52C.
2671
2672 # This is needed for GDB, but needs to be in the top-level make because
2673 # if a library is compiled with the bsd headers and gets linked with the
2674 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2675 # a different size).
2676 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2677 # known except to select the sysv environment. Could we use /proc instead?
2678 # These "sysv environments" and "bsd environments" often end up being a pain.
2679 #
2680 # This is not part of CFLAGS because perhaps not all C compilers have this
2681 # option.
2682 tentative_cc="cc -systype sysv"
2683 ;;
2684 i370-ibm-opened*)
2685 tentative_cc="c89"
2686 ;;
ec11bdc6 2687 i[3456789]86-*-sysv5*)
a0da8069
NN
2688 host_makefile_frag="config/mh-sysv5"
2689 ;;
ec11bdc6 2690 i[3456789]86-*-dgux*)
a0da8069
NN
2691 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2692 host_makefile_frag="config/mh-dgux386"
2693 ;;
ec11bdc6 2694 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2695 # The MetaWare compiler will generate a copyright message unless you
2696 # turn it off by adding the -Hnocopyr flag.
2697 tentative_cc="cc -Hnocopyr"
2698 ;;
ec11bdc6 2699 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2700 # for an NCR 3000 (i486/SVR4) system.
2701 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2702 # This compiler not only emits obnoxious copyright messages every time
2703 # you run it, but it chokes and dies on a whole bunch of GNU source
2704 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2705 tentative_cc="/usr/ccs/ATT/cc"
2706 host_makefile_frag="config/mh-ncr3000"
2707 ;;
ec11bdc6 2708 i[3456789]86-*-sco3.2v5*)
a0da8069 2709 ;;
ec11bdc6 2710 i[3456789]86-*-sco*)
a0da8069
NN
2711 # The native C compiler botches some simple uses of const. Unfortunately,
2712 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2713 tentative_cc="cc -Dconst="
2714 host_makefile_frag="config/mh-sco"
2715 ;;
ec11bdc6 2716 i[3456789]86-*-udk*)
a0da8069
NN
2717 host_makefile_frag="config/mh-sysv5"
2718 ;;
ec11bdc6 2719 i[3456789]86-*-solaris2*)
a0da8069
NN
2720 host_makefile_frag="config/mh-sysv4"
2721 ;;
ec11bdc6 2722 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2723 host_makefile_frag="config/mh-djgpp"
2724 ;;
2725 *-cygwin*)
2726 host_makefile_frag="config/mh-cygwin"
2727 ;;
2728 *-mingw32*)
84e7906e 2729 host_makefile_frag="config/mh-mingw"
a0da8069 2730 ;;
2d1e8239 2731 *-mingw64*)
84e7906e 2732 host_makefile_frag="config/mh-mingw"
2d1e8239 2733 ;;
a0da8069
NN
2734 *-interix*)
2735 host_makefile_frag="config/mh-interix"
2736 ;;
2737 vax-*-ultrix2*)
2738 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2739 tentative_cc=gcc
2740 ;;
2741 *-*-solaris2*)
2742 host_makefile_frag="config/mh-solaris"
2743 ;;
2744 m68k-sun-sunos*)
2745 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2746 # without overflowing the jump tables (-J says to use a 32 bit table)
2747 tentative_cc="cc -J"
2748 ;;
2749 *-hp-hpux*)
2750 tentative_cc="cc -Wp,-H256000"
2751 ;;
2752 *-*-hiux*)
2753 tentative_cc="cc -Wp,-H256000"
2754 ;;
2755 rs6000-*-lynxos*)
2756 # /bin/cc is less than useful for our purposes. Always use GCC
2757 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2758 host_makefile_frag="config/mh-lynxrs6k"
2759 ;;
0df3d27f
PB
2760 powerpc-*-darwin*)
2761 host_makefile_frag="config/mh-ppc-darwin"
2762 ;;
f6d183c0
PB
2763 powerpc-*-aix*)
2764 host_makefile_frag="config/mh-ppc-aix"
2765 ;;
2766 rs6000-*-aix*)
2767 host_makefile_frag="config/mh-ppc-aix"
2768 ;;
a0da8069
NN
2769 *-*-lynxos*)
2770 # /bin/cc is less than useful for our purposes. Always use GCC
2771 tentative_cc="/bin/gcc"
2772 ;;
2773 *-*-sysv4*)
2774 host_makefile_frag="config/mh-sysv4"
2775 ;;
fe69863c
DD
2776 # This is placed last to prevent interfering with the cases above.
2777 i[3456789]86-*-*)
2778 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2779 host_makefile_frag="config/mh-x86omitfp"
2780 ;;
a0da8069
NN
2781esac
2782fi
2783
9e07f89d
NN
2784# If we aren't going to be using gcc, see if we can extract a definition
2785# of CC from the fragment.
2786# Actually, use the 'pre-extracted' version above.
2787if test -z "${CC}" && test "${build}" = "${host}" ; then
2788 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2789 found=
2790 for dir in $PATH; do
2791 test -z "$dir" && dir=.
2792 if test -f $dir/gcc; then
2793 found=yes
2794 break
2795 fi
2796 done
2797 IFS="$save_ifs"
2798 if test -z "${found}" && test -n "${tentative_cc}" ; then
2799 CC=$tentative_cc
2800 fi
2801fi
2802
2803if test "${build}" != "${host}" ; then
9e07f89d 2804 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2805else
512b7dfb 2806 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2807fi
2808
2809ac_ext=c
c6b750e1
DJ
2810ac_cpp='$CPP $CPPFLAGS'
2811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817echo "$as_me:$LINENO: checking for $ac_word" >&5
2818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836done
2837done
2838
2839fi
2840fi
2841CC=$ac_cv_prog_CC
2842if test -n "$CC"; then
2843 echo "$as_me:$LINENO: result: $CC" >&5
2844echo "${ECHO_T}$CC" >&6
2845else
2846 echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6
2848fi
2849
2850fi
2851if test -z "$ac_cv_prog_CC"; then
2852 ac_ct_CC=$CC
6a9cf61e 2853 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2854set dummy gcc; ac_word=$2
c6b750e1
DJ
2855echo "$as_me:$LINENO: checking for $ac_word" >&5
2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_ac_ct_CC="gcc"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874done
2875done
2876
2877fi
2878fi
2879ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880if test -n "$ac_ct_CC"; then
2881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882echo "${ECHO_T}$ac_ct_CC" >&6
2883else
2884 echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6
2886fi
2887
2888 CC=$ac_ct_CC
2889else
2890 CC="$ac_cv_prog_CC"
2891fi
2892
2893if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896set dummy ${ac_tool_prefix}cc; ac_word=$2
2897echo "$as_me:$LINENO: checking for $ac_word" >&5
2898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2901else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
c6b750e1
DJ
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC="${ac_tool_prefix}cc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916done
2917done
2918
9e07f89d
NN
2919fi
2920fi
c6b750e1 2921CC=$ac_cv_prog_CC
9e07f89d 2922if test -n "$CC"; then
c6b750e1
DJ
2923 echo "$as_me:$LINENO: result: $CC" >&5
2924echo "${ECHO_T}$CC" >&6
9e07f89d 2925else
c6b750e1
DJ
2926 echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
9e07f89d
NN
2928fi
2929
c6b750e1
DJ
2930fi
2931if test -z "$ac_cv_prog_CC"; then
2932 ac_ct_CC=$CC
2933 # Extract the first word of "cc", so it can be a program name with args.
2934set dummy cc; ac_word=$2
2935echo "$as_me:$LINENO: checking for $ac_word" >&5
2936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942else
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_ac_ct_CC="cc"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954done
2955done
2956
2957fi
2958fi
2959ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960if test -n "$ac_ct_CC"; then
2961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962echo "${ECHO_T}$ac_ct_CC" >&6
2963else
2964 echo "$as_me:$LINENO: result: no" >&5
2965echo "${ECHO_T}no" >&6
2966fi
2967
2968 CC=$ac_ct_CC
2969else
2970 CC="$ac_cv_prog_CC"
2971fi
2972
2973fi
9e07f89d
NN
2974if test -z "$CC"; then
2975 # Extract the first word of "cc", so it can be a program name with args.
2976set dummy cc; ac_word=$2
c6b750e1
DJ
2977echo "$as_me:$LINENO: checking for $ac_word" >&5
2978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979if test "${ac_cv_prog_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2981else
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2984else
9e07f89d 2985 ac_prog_rejected=no
c6b750e1
DJ
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994 ac_prog_rejected=yes
2995 continue
2996 fi
2997 ac_cv_prog_CC="cc"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001done
3002done
3003
9e07f89d
NN
3004if test $ac_prog_rejected = yes; then
3005 # We found a bogon in the path, so make sure we never use it.
3006 set dummy $ac_cv_prog_CC
3007 shift
c6b750e1 3008 if test $# != 0; then
9e07f89d
NN
3009 # We chose a different compiler from the bogus one.
3010 # However, it has the same basename, so the bogon will be chosen
3011 # first if we set CC to just the basename; use the full file name.
3012 shift
c6b750e1 3013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3014 fi
3015fi
3016fi
3017fi
c6b750e1 3018CC=$ac_cv_prog_CC
9e07f89d 3019if test -n "$CC"; then
c6b750e1
DJ
3020 echo "$as_me:$LINENO: result: $CC" >&5
3021echo "${ECHO_T}$CC" >&6
9e07f89d 3022else
c6b750e1
DJ
3023 echo "$as_me:$LINENO: result: no" >&5
3024echo "${ECHO_T}no" >&6
9e07f89d
NN
3025fi
3026
c6b750e1
DJ
3027fi
3028if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in cl
3031 do
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034echo "$as_me:$LINENO: checking for $ac_word" >&5
3035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036if test "${ac_cv_prog_CC+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3038else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041else
c6b750e1
DJ
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
376a0e54 3052 fi
c6b750e1
DJ
3053done
3054done
cac3d6c4 3055
c6b750e1
DJ
3056fi
3057fi
3058CC=$ac_cv_prog_CC
3059if test -n "$CC"; then
3060 echo "$as_me:$LINENO: result: $CC" >&5
3061echo "${ECHO_T}$CC" >&6
cac3d6c4 3062else
c6b750e1
DJ
3063 echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
9e07f89d 3065fi
cac3d6c4 3066
c6b750e1
DJ
3067 test -n "$CC" && break
3068 done
cac3d6c4 3069fi
c6b750e1
DJ
3070if test -z "$CC"; then
3071 ac_ct_CC=$CC
3072 for ac_prog in cl
3073do
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075set dummy $ac_prog; ac_word=$2
3076echo "$as_me:$LINENO: checking for $ac_word" >&5
3077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3080else
c6b750e1
DJ
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3083else
c6b750e1
DJ
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095done
3096done
3097
cac3d6c4
CM
3098fi
3099fi
c6b750e1
DJ
3100ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101if test -n "$ac_ct_CC"; then
3102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3104else
c6b750e1
DJ
3105 echo "$as_me:$LINENO: result: no" >&5
3106echo "${ECHO_T}no" >&6
cac3d6c4 3107fi
376a0e54 3108
c6b750e1
DJ
3109 test -n "$ac_ct_CC" && break
3110done
3111
3112 CC=$ac_ct_CC
3113fi
3114
3115fi
3116
3117
3118test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3119See \`config.log' for more details." >&5
3120echo "$as_me: error: no acceptable C compiler found in \$PATH
3121See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }
3123
3124# Provide some information about the compiler.
3125echo "$as_me:$LINENO:" \
3126 "checking for C compiler version" >&5
3127ac_compiler=`set X $ac_compile; echo $2`
3128{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3129 (eval $ac_compiler --version </dev/null >&5) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3134 (eval $ac_compiler -v </dev/null >&5) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3139 (eval $ac_compiler -V </dev/null >&5) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143
3144cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150
3151int
3152main ()
3153{
3154
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159ac_clean_files_save=$ac_clean_files
3160ac_clean_files="$ac_clean_files a.out a.exe b.out"
3161# Try to create an executable without -o first, disregard a.out.
3162# It will help us diagnose broken compilers, and finding out an intuition
3163# of exeext.
3164echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3165echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3166ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3167if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3168 (eval $ac_link_default) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; then
3172 # Find the output, starting from the most likely. This scheme is
3173# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3174# resort.
3175
3176# Be careful to initialize this variable, since it used to be cached.
3177# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3178ac_cv_exeext=
3179# b.out is created by i960 compilers.
3180for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3181do
3182 test -f "$ac_file" || continue
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3185 ;;
3186 conftest.$ac_ext )
3187 # This is the source file.
3188 ;;
3189 [ab].out )
3190 # We found the default executable, but exeext='' is most
3191 # certainly right.
3192 break;;
3193 *.* )
3194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 # FIXME: I believe we export ac_cv_exeext for Libtool,
3196 # but it would be cool to find out if it's true. Does anybody
3197 # maintain Libtool? --akim.
3198 export ac_cv_exeext
3199 break;;
3200 * )
3201 break;;
3202 esac
3203done
3204else
3205 echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3209See \`config.log' for more details." >&5
3210echo "$as_me: error: C compiler cannot create executables
3211See \`config.log' for more details." >&2;}
3212 { (exit 77); exit 77; }; }
3213fi
3214
3215ac_exeext=$ac_cv_exeext
3216echo "$as_me:$LINENO: result: $ac_file" >&5
3217echo "${ECHO_T}$ac_file" >&6
3218
3219# Check the compiler produces executables we can run. If not, either
3220# the compiler is broken, or we cross compile.
3221echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3224# If not cross compiling, check that we can run a simple program.
3225if test "$cross_compiling" != yes; then
3226 if { ac_try='./$ac_file'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 cross_compiling=no
3233 else
3234 if test "$cross_compiling" = maybe; then
3235 cross_compiling=yes
3236 else
3237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3238If you meant to cross compile, use \`--host'.
3239See \`config.log' for more details." >&5
3240echo "$as_me: error: cannot run C compiled programs.
3241If you meant to cross compile, use \`--host'.
3242See \`config.log' for more details." >&2;}
3243 { (exit 1); exit 1; }; }
3244 fi
3245 fi
3246fi
3247echo "$as_me:$LINENO: result: yes" >&5
3248echo "${ECHO_T}yes" >&6
3249
3250rm -f a.out a.exe conftest$ac_cv_exeext b.out
3251ac_clean_files=$ac_clean_files_save
3252# Check the compiler produces executables we can run. If not, either
3253# the compiler is broken, or we cross compile.
3254echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3256echo "$as_me:$LINENO: result: $cross_compiling" >&5
3257echo "${ECHO_T}$cross_compiling" >&6
3258
3259echo "$as_me:$LINENO: checking for suffix of executables" >&5
3260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3262 (eval $ac_link) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; then
3266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3268# work properly (i.e., refer to `conftest.exe'), while it won't with
3269# `rm'.
3270for ac_file in conftest.exe conftest conftest.*; do
3271 test -f "$ac_file" || continue
3272 case $ac_file in
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 export ac_cv_exeext
3276 break;;
3277 * ) break;;
3278 esac
3279done
3280else
3281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3282See \`config.log' for more details." >&5
3283echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3284See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3286fi
3287
3288rm -f conftest$ac_cv_exeext
3289echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3290echo "${ECHO_T}$ac_cv_exeext" >&6
3291
3292rm -f conftest.$ac_ext
3293EXEEXT=$ac_cv_exeext
3294ac_exeext=$EXEEXT
3295echo "$as_me:$LINENO: checking for suffix of object files" >&5
3296echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3297if test "${ac_cv_objext+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300 cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315rm -f conftest.o conftest.obj
3316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; then
3321 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3322 case $ac_file in
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3325 break;;
3326 esac
3327done
cac3d6c4 3328else
c6b750e1
DJ
3329 echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3333See \`config.log' for more details." >&5
3334echo "$as_me: error: cannot compute suffix of object files: cannot compile
3335See \`config.log' for more details." >&2;}
3336 { (exit 1); exit 1; }; }
3337fi
3338
3339rm -f conftest.$ac_cv_objext conftest.$ac_ext
3340fi
3341echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3342echo "${ECHO_T}$ac_cv_objext" >&6
3343OBJEXT=$ac_cv_objext
3344ac_objext=$OBJEXT
3345echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3346echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3347if test "${ac_cv_c_compiler_gnu+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349else
3350 cat >conftest.$ac_ext <<_ACEOF
3351/* confdefs.h. */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h. */
3356
3357int
3358main ()
3359{
3360#ifndef __GNUC__
3361 choke me
3362#endif
3363
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368rm -f conftest.$ac_objext
3369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -z "$ac_c_werror_flag"
3378 || test ! -s conftest.err'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_compiler_gnu=yes
3391else
3392 echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395ac_compiler_gnu=no
3396fi
3397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398ac_cv_c_compiler_gnu=$ac_compiler_gnu
3399
3400fi
3401echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3402echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3403GCC=`test $ac_compiler_gnu = yes && echo yes`
3404ac_test_CFLAGS=${CFLAGS+set}
3405ac_save_CFLAGS=$CFLAGS
3406CFLAGS="-g"
3407echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3408echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3409if test "${ac_cv_prog_cc_g+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411else
3412 cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
3418
3419int
3420main ()
3421{
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427rm -f conftest.$ac_objext
3428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429 (eval $ac_compile) 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try='test -z "$ac_c_werror_flag"
3437 || test ! -s conftest.err'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; } &&
3443 { ac_try='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
9e07f89d
NN
3449 ac_cv_prog_cc_g=yes
3450else
c6b750e1
DJ
3451 echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3453
c6b750e1 3454ac_cv_prog_cc_g=no
376a0e54 3455fi
c6b750e1
DJ
3456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3459echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3460if test "$ac_test_CFLAGS" = set; then
c6b750e1 3461 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3462elif test $ac_cv_prog_cc_g = yes; then
3463 if test "$GCC" = yes; then
3464 CFLAGS="-g -O2"
3465 else
3466 CFLAGS="-g"
3467 fi
3468else
3469 if test "$GCC" = yes; then
3470 CFLAGS="-O2"
3471 else
3472 CFLAGS=
3473 fi
3474fi
c6b750e1
DJ
3475echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3476echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3477if test "${ac_cv_prog_cc_stdc+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480 ac_cv_prog_cc_stdc=no
3481ac_save_CC=$CC
3482cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h. */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h. */
3488#include <stdarg.h>
3489#include <stdio.h>
3490#include <sys/types.h>
3491#include <sys/stat.h>
3492/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493struct buf { int x; };
3494FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495static char *e (p, i)
3496 char **p;
3497 int i;
3498{
3499 return p[i];
3500}
3501static char *f (char * (*g) (char **, int), char **p, ...)
3502{
3503 char *s;
3504 va_list v;
3505 va_start (v,p);
3506 s = g (p, va_arg (v,int));
3507 va_end (v);
3508 return s;
3509}
3510
3511/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std1 is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std1. */
3518int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3519
3520int test (int i, double x);
3521struct s1 {int (*f) (int a);};
3522struct s2 {int (*f) (double a);};
3523int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524int argc;
3525char **argv;
3526int
3527main ()
3528{
3529return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3530 ;
3531 return 0;
3532}
3533_ACEOF
3534# Don't try gcc -ansi; that turns off useful extensions and
3535# breaks some systems' header files.
3536# AIX -qlanglvl=ansi
3537# Ultrix and OSF/1 -std1
3538# HP-UX 10.20 and later -Ae
3539# HP-UX older versions -Aa -D_HPUX_SOURCE
3540# SVR4 -Xc -D__EXTENSIONS__
3541for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3542do
3543 CC="$ac_save_CC $ac_arg"
3544 rm -f conftest.$ac_objext
3545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_c_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3566 ac_cv_prog_cc_stdc=$ac_arg
3567break
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572fi
3573rm -f conftest.err conftest.$ac_objext
3574done
3575rm -f conftest.$ac_ext conftest.$ac_objext
3576CC=$ac_save_CC
3577
3578fi
3579
3580case "x$ac_cv_prog_cc_stdc" in
3581 x|xno)
3582 echo "$as_me:$LINENO: result: none needed" >&5
3583echo "${ECHO_T}none needed" >&6 ;;
3584 *)
3585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3586echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3587 CC="$CC $ac_cv_prog_cc_stdc" ;;
3588esac
3589
3590# Some people use a C++ compiler to compile C. Since we use `exit',
3591# in C++ we need to declare it. In case someone uses the same compiler
3592# for both compiling C and C++ we need to have the C++ compiler decide
3593# the declaration of exit, since it's the most demanding environment.
3594cat >conftest.$ac_ext <<_ACEOF
3595#ifndef __cplusplus
3596 choke me
3597#endif
3598_ACEOF
3599rm -f conftest.$ac_objext
3600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 for ac_declaration in \
3622 '' \
3623 'extern "C" void std::exit (int) throw (); using std::exit;' \
3624 'extern "C" void std::exit (int); using std::exit;' \
3625 'extern "C" void exit (int) throw ();' \
3626 'extern "C" void exit (int);' \
3627 'void exit (int);'
3628do
3629 cat >conftest.$ac_ext <<_ACEOF
3630/* confdefs.h. */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h. */
3635$ac_declaration
3636#include <stdlib.h>
3637int
3638main ()
3639{
3640exit (42);
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645rm -f conftest.$ac_objext
3646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 :
3668else
3669 echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672continue
3673fi
3674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3675 cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h. */
3681$ac_declaration
3682int
3683main ()
3684{
3685exit (42);
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690rm -f conftest.$ac_objext
3691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692 (eval $ac_compile) 2>conftest.er1
3693 ac_status=$?
3694 grep -v '^ *+' conftest.er1 >conftest.err
3695 rm -f conftest.er1
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -z "$ac_c_werror_flag"
3700 || test ! -s conftest.err'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 break
3713else
3714 echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717fi
3718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719done
3720rm -f conftest*
3721if test -n "$ac_declaration"; then
3722 echo '#ifdef __cplusplus' >>confdefs.h
3723 echo $ac_declaration >>confdefs.h
3724 echo '#endif' >>confdefs.h
3725fi
3726
3727else
3728 echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731fi
3732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733ac_ext=c
3734ac_cpp='$CPP $CPPFLAGS'
3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3738
18f6b6ee
PB
3739ac_ext=cc
3740ac_cpp='$CXXCPP $CPPFLAGS'
3741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3744if test -n "$ac_tool_prefix"; then
3745 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3746 do
3747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3749echo "$as_me:$LINENO: checking for $ac_word" >&5
3750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751if test "${ac_cv_prog_CXX+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 if test -n "$CXX"; then
3755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3756else
3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768done
3769done
512b7dfb 3770
18f6b6ee
PB
3771fi
3772fi
3773CXX=$ac_cv_prog_CXX
3774if test -n "$CXX"; then
3775 echo "$as_me:$LINENO: result: $CXX" >&5
3776echo "${ECHO_T}$CXX" >&6
3777else
3778 echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6
3780fi
3781
3782 test -n "$CXX" && break
3783 done
3784fi
3785if test -z "$CXX"; then
3786 ac_ct_CXX=$CXX
3787 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3788do
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790set dummy $ac_prog; ac_word=$2
3791echo "$as_me:$LINENO: checking for $ac_word" >&5
3792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796 if test -n "$ac_ct_CXX"; then
3797 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ac_ct_CXX="$ac_prog"
3807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
512b7dfb 3809 fi
18f6b6ee
PB
3810done
3811done
512b7dfb 3812
18f6b6ee
PB
3813fi
3814fi
3815ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3816if test -n "$ac_ct_CXX"; then
3817 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3818echo "${ECHO_T}$ac_ct_CXX" >&6
3819else
3820 echo "$as_me:$LINENO: result: no" >&5
3821echo "${ECHO_T}no" >&6
3822fi
3823
3824 test -n "$ac_ct_CXX" && break
3825done
3826test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3827
3828 CXX=$ac_ct_CXX
3829fi
3830
3831
3832# Provide some information about the compiler.
3833echo "$as_me:$LINENO:" \
3834 "checking for C++ compiler version" >&5
3835ac_compiler=`set X $ac_compile; echo $2`
3836{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3837 (eval $ac_compiler --version </dev/null >&5) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }
3841{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3842 (eval $ac_compiler -v </dev/null >&5) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
3846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3847 (eval $ac_compiler -V </dev/null >&5) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
3851
3852echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3853echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3854if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857 cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h. */
3863
3864int
3865main ()
3866{
3867#ifndef __GNUC__
3868 choke me
3869#endif
3870
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875rm -f conftest.$ac_objext
3876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_cxx_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 (eval $ac_try) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_compiler_gnu=yes
3898else
3899 echo "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
3901
3902ac_compiler_gnu=no
3903fi
3904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3905ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3906
3907fi
3908echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3909echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3910GXX=`test $ac_compiler_gnu = yes && echo yes`
3911ac_test_CXXFLAGS=${CXXFLAGS+set}
3912ac_save_CXXFLAGS=$CXXFLAGS
3913CXXFLAGS="-g"
3914echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3915echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3916if test "${ac_cv_prog_cxx_g+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919 cat >conftest.$ac_ext <<_ACEOF
3920/* confdefs.h. */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
3924/* end confdefs.h. */
3925
3926int
3927main ()
3928{
3929
3930 ;
3931 return 0;
3932}
3933_ACEOF
3934rm -f conftest.$ac_objext
3935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } &&
3943 { ac_try='test -z "$ac_cxx_werror_flag"
3944 || test ! -s conftest.err'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 (eval $ac_try) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; } &&
3950 { ac_try='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_cv_prog_cxx_g=yes
3957else
3958 echo "$as_me: failed program was:" >&5
3959sed 's/^/| /' conftest.$ac_ext >&5
3960
3961ac_cv_prog_cxx_g=no
3962fi
3963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3964fi
3965echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3966echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3967if test "$ac_test_CXXFLAGS" = set; then
3968 CXXFLAGS=$ac_save_CXXFLAGS
3969elif test $ac_cv_prog_cxx_g = yes; then
3970 if test "$GXX" = yes; then
3971 CXXFLAGS="-g -O2"
3972 else
3973 CXXFLAGS="-g"
3974 fi
3975else
3976 if test "$GXX" = yes; then
3977 CXXFLAGS="-O2"
3978 else
3979 CXXFLAGS=
3980 fi
3981fi
3982for ac_declaration in \
3983 '' \
3984 'extern "C" void std::exit (int) throw (); using std::exit;' \
3985 'extern "C" void std::exit (int); using std::exit;' \
3986 'extern "C" void exit (int) throw ();' \
3987 'extern "C" void exit (int);' \
3988 'void exit (int);'
3989do
3990 cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h. */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h. */
3996$ac_declaration
3997#include <stdlib.h>
3998int
3999main ()
4000{
4001exit (42);
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext
4007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_cxx_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 :
4029else
4030 echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033continue
4034fi
4035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4036 cat >conftest.$ac_ext <<_ACEOF
4037/* confdefs.h. */
4038_ACEOF
4039cat confdefs.h >>conftest.$ac_ext
4040cat >>conftest.$ac_ext <<_ACEOF
4041/* end confdefs.h. */
4042$ac_declaration
4043int
4044main ()
4045{
4046exit (42);
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051rm -f conftest.$ac_objext
4052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_cxx_werror_flag"
4061 || test ! -s conftest.err'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 (eval $ac_try) 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; } &&
4067 { ac_try='test -s conftest.$ac_objext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 break
4074else
4075 echo "$as_me: failed program was:" >&5
4076sed 's/^/| /' conftest.$ac_ext >&5
4077
4078fi
4079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4080done
4081rm -f conftest*
4082if test -n "$ac_declaration"; then
4083 echo '#ifdef __cplusplus' >>confdefs.h
4084 echo $ac_declaration >>confdefs.h
4085 echo '#endif' >>confdefs.h
4086fi
4087
4088ac_ext=c
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094
4095# We must set the default linker to the linker used by gcc for the correct
4096# operation of libtool. If LD is not defined and we are using gcc, try to
4097# set the LD default to the ld used by gcc.
4098if test -z "$LD"; then
4099 if test "$GCC" = yes; then
4100 case $build in
4101 *-*-mingw*)
4102 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4103 *)
4104 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4105 esac
4106 case $gcc_prog_ld in
4107 # Accept absolute paths.
4108 [\\/]* | [A-Za-z]:[\\/]*)
4109 LD="$gcc_prog_ld" ;;
4110 esac
4111 fi
512b7dfb
PB
4112fi
4113
4114
4115
4116
c6b750e1 4117if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4118 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4119set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4120echo "$as_me:$LINENO: checking for $ac_word" >&5
4121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4122if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4123 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4124else
512b7dfb
PB
4125 if test -n "$GNATBIND"; then
4126 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4127else
c6b750e1
DJ
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4135 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139done
4140done
4141
9e07f89d
NN
4142fi
4143fi
512b7dfb
PB
4144GNATBIND=$ac_cv_prog_GNATBIND
4145if test -n "$GNATBIND"; then
4146 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4147echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4148else
c6b750e1
DJ
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
9e07f89d
NN
4151fi
4152
c6b750e1 4153fi
512b7dfb
PB
4154if test -z "$ac_cv_prog_GNATBIND"; then
4155 ac_ct_GNATBIND=$GNATBIND
4156 # Extract the first word of "gnatbind", so it can be a program name with args.
4157set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4160if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4161 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4162else
512b7dfb
PB
4163 if test -n "$ac_ct_GNATBIND"; then
4164 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4165else
c6b750e1
DJ
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4173 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177done
4178done
4179
512b7dfb 4180 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4181fi
4182fi
512b7dfb
PB
4183ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4184if test -n "$ac_ct_GNATBIND"; then
4185 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4186echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4187else
c6b750e1
DJ
4188 echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6
9e07f89d
NN
4190fi
4191
512b7dfb 4192 GNATBIND=$ac_ct_GNATBIND
24ff9987 4193else
512b7dfb 4194 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4195fi
4196
7df2cd5d 4197if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4198 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4199set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4200echo "$as_me:$LINENO: checking for $ac_word" >&5
4201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4202if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
512b7dfb
PB
4205 if test -n "$GNATMAKE"; then
4206 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4207else
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4215 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219done
4220done
4221
4222fi
4223fi
512b7dfb
PB
4224GNATMAKE=$ac_cv_prog_GNATMAKE
4225if test -n "$GNATMAKE"; then
4226 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4227echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4228else
4229 echo "$as_me:$LINENO: result: no" >&5
4230echo "${ECHO_T}no" >&6
4231fi
4232
4233fi
512b7dfb
PB
4234if test -z "$ac_cv_prog_GNATMAKE"; then
4235 ac_ct_GNATMAKE=$GNATMAKE
4236 # Extract the first word of "gnatmake", so it can be a program name with args.
4237set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4238echo "$as_me:$LINENO: checking for $ac_word" >&5
4239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4240if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
512b7dfb
PB
4243 if test -n "$ac_ct_GNATMAKE"; then
4244 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4245else
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4253 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257done
4258done
4259
512b7dfb 4260 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4261fi
4262fi
512b7dfb
PB
4263ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4264if test -n "$ac_ct_GNATMAKE"; then
4265 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4266echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4267else
4268 echo "$as_me:$LINENO: result: no" >&5
4269echo "${ECHO_T}no" >&6
4270fi
4271
512b7dfb 4272 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4273else
512b7dfb 4274 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4275fi
4276
c6b750e1
DJ
4277echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4278echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4279if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4281else
4282 cat >conftest.adb <<EOF
4283procedure conftest is begin null; end conftest;
4284EOF
4285acx_cv_cc_gcc_supports_ada=no
4286# There is a bug in old released versions of GCC which causes the
4287# driver to exit successfully when the appropriate language module
4288# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4289# Therefore we must check for the error message as well as an
4290# unsuccessful exit.
b8908782
DD
4291# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4292# given a .adb file, but produce no object file. So we must check
4293# if an object file was really produced to guard against this.
9e07f89d 4294errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4295if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4296 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4297fi
4298rm -f conftest.*
4299fi
c6b750e1
DJ
4300echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4301echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4302
512b7dfb 4303if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4304 have_gnat=yes
4305else
4306 have_gnat=no
4307fi
4308
c6b750e1
DJ
4309echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4310echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4311if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4313else
4314 echo abfoo >t1
4315 echo cdfoo >t2
4316 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4317 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4318 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4319 :
4320 else
4321 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4322 fi
4323 fi
b8908782
DD
4324 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4325 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4326 :
b8908782
DD
4327 else
4328 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4329 fi
4330 fi
4331 rm t1 t2
4332
4333fi
c6b750e1
DJ
4334echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4335echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4336do_compare="$gcc_cv_prog_cmp_skip"
4337
4338
9e07f89d 4339
11b04d1f 4340# Check for GMP and MPFR
4b900473 4341gmplibs="-lmpfr -lgmp"
4b1cb4fe 4342gmpinc=
4b900473
PB
4343have_gmp=no
4344
11b04d1f
DD
4345# Specify a location for mpfr
4346# check for this first so it ends up on the link line before gmp.
c6b750e1 4347
11b04d1f
DD
4348# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4349if test "${with_mpfr_dir+set}" = set; then
4350 withval="$with_mpfr_dir"
c6b750e1
DJ
4351 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4352Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4353echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4354Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4355 { (exit 1); exit 1; }; }
4356fi;
11b04d1f
DD
4357
4358
11b04d1f
DD
4359# Check whether --with-mpfr or --without-mpfr was given.
4360if test "${with_mpfr+set}" = set; then
4361 withval="$with_mpfr"
c6b750e1
DJ
4362
4363fi;
11b04d1f 4364
8a0d8a5c
PB
4365# Check whether --with-mpfr_include or --without-mpfr_include was given.
4366if test "${with_mpfr_include+set}" = set; then
4367 withval="$with_mpfr_include"
c6b750e1
DJ
4368
4369fi;
8a0d8a5c
PB
4370
4371# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4372if test "${with_mpfr_lib+set}" = set; then
4373 withval="$with_mpfr_lib"
8a0d8a5c 4374
c6b750e1 4375fi;
11b04d1f
DD
4376
4377if test "x$with_mpfr" != x; then
4378 gmplibs="-L$with_mpfr/lib $gmplibs"
4379 gmpinc="-I$with_mpfr/include"
4380fi
8a0d8a5c
PB
4381if test "x$with_mpfr_include" != x; then
4382 gmpinc="-I$with_mpfr_include"
4383fi
4384if test "x$with_mpfr_lib" != x; then
4385 gmplibs="-L$with_mpfr_lib $gmplibs"
4386fi
4b900473
PB
4387if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4388 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4389 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4390 # Do not test the mpfr version. Assume that it is sufficient, since
4391 # it is in the source tree, and the library has not been built yet
4392 # but it would be included on the link line in the version check below
4393 # hence making the test fail.
4394 have_gmp=yes
4395fi
11b04d1f 4396
4b1cb4fe 4397# Specify a location for gmp
c6b750e1 4398
4b1cb4fe
DD
4399# Check whether --with-gmp-dir or --without-gmp-dir was given.
4400if test "${with_gmp_dir+set}" = set; then
4401 withval="$with_gmp_dir"
c6b750e1
DJ
4402 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4403Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4404echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4405Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4406 { (exit 1); exit 1; }; }
4407fi;
4b1cb4fe
DD
4408
4409
4b1cb4fe
DD
4410# Check whether --with-gmp or --without-gmp was given.
4411if test "${with_gmp+set}" = set; then
4412 withval="$with_gmp"
c6b750e1
DJ
4413
4414fi;
4b1cb4fe 4415
8a0d8a5c
PB
4416# Check whether --with-gmp_include or --without-gmp_include was given.
4417if test "${with_gmp_include+set}" = set; then
4418 withval="$with_gmp_include"
c6b750e1
DJ
4419
4420fi;
8a0d8a5c
PB
4421
4422# Check whether --with-gmp_lib or --without-gmp_lib was given.
4423if test "${with_gmp_lib+set}" = set; then
4424 withval="$with_gmp_lib"
8a0d8a5c 4425
c6b750e1 4426fi;
8a0d8a5c 4427
4b1cb4fe 4428
11b04d1f
DD
4429if test "x$with_gmp" != x; then
4430 gmplibs="-L$with_gmp/lib $gmplibs"
4431 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4432fi
8a0d8a5c
PB
4433if test "x$with_gmp_include" != x; then
4434 gmpinc="-I$with_gmp_include $gmpinc"
4435fi
4436if test "x$with_gmp_lib" != x; then
4437 gmplibs="-L$with_gmp_lib $gmplibs"
4438fi
4b900473
PB
4439if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4440 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4441 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4442 # Do not test the gmp version. Assume that it is sufficient, since
4443 # it is in the source tree, and the library has not been built yet
4444 # but it would be included on the link line in the version check below
4445 # hence making the test fail.
4446 have_gmp=yes
4447fi
4b1cb4fe 4448
ceb92e78 4449if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4450 have_gmp=yes
4451 saved_CFLAGS="$CFLAGS"
4452 CFLAGS="$CFLAGS $gmpinc"
4453 # Check GMP actually works
c6b750e1
DJ
4454 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4455echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4456
4457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h. */
4b1cb4fe 4463#include "gmp.h"
c6b750e1
DJ
4464int
4465main ()
4466{
4b1cb4fe 4467
4b900473
PB
4468 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4469 choke me
4470 #endif
c6b750e1
DJ
4471
4472 ;
4473 return 0;
4474}
4475_ACEOF
4476rm -f conftest.$ac_objext
4477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>conftest.er1
4479 ac_status=$?
4480 grep -v '^ *+' conftest.er1 >conftest.err
4481 rm -f conftest.er1
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -z "$ac_c_werror_flag"
4486 || test ! -s conftest.err'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 echo "$as_me:$LINENO: result: yes" >&5
4499echo "${ECHO_T}yes" >&6
4500else
4501 echo "$as_me: failed program was:" >&5
4502sed 's/^/| /' conftest.$ac_ext >&5
4503
4504echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6; have_gmp=no
4506fi
4507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4508
4b900473
PB
4509 if test x"$have_gmp" = xyes; then
4510 saved_LIBS="$LIBS"
4511 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4512 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4513echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4514 cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
9b134994 4520#include <gmp.h>
4b900473 4521 #include <mpfr.h>
c6b750e1
DJ
4522int
4523main ()
4524{
9b134994 4525
4b900473
PB
4526 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4527 choke me
4528 #endif
a3ca38d2
DD
4529 mpfr_t n;
4530 mpfr_t x;
4b900473 4531 int t;
a3ca38d2
DD
4532 mpfr_init (n);
4533 mpfr_init (x);
4b900473
PB
4534 mpfr_atan2 (n, n, x, GMP_RNDN);
4535 mpfr_erfc (n, x, GMP_RNDN);
4536 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4537
4538 ;
4539 return 0;
4540}
4541_ACEOF
4542rm -f conftest.$ac_objext conftest$ac_exeext
4543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544 (eval $ac_link) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
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); }; } &&
4558 { ac_try='test -s conftest$ac_exeext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 cat >conftest.$ac_ext <<_ACEOF
4565/* confdefs.h. */
4566_ACEOF
4567cat confdefs.h >>conftest.$ac_ext
4568cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h. */
4b1cb4fe 4570#include <gmp.h>
4b900473 4571 #include <mpfr.h>
c6b750e1
DJ
4572int
4573main ()
4574{
9dbaa842 4575
4b900473
PB
4576 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4577 choke me
4578 #endif
4579 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4580
4581 ;
4582 return 0;
4583}
4584_ACEOF
4585rm -f conftest.$ac_objext conftest$ac_exeext
4586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587 (eval $ac_link) 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -z "$ac_c_werror_flag"
4595 || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest$ac_exeext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 echo "$as_me:$LINENO: result: yes" >&5
4608echo "${ECHO_T}yes" >&6
4609else
4610 echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4614echo "${ECHO_T}buggy but acceptable" >&6
4615fi
4616rm -f conftest.err conftest.$ac_objext \
4617 conftest$ac_exeext conftest.$ac_ext
4618else
4619 echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6; have_gmp=no
4624fi
4625rm -f conftest.err conftest.$ac_objext \
4626 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4627 LIBS="$saved_LIBS"
4628 fi
4629 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4630
4b900473 4631 if test x$have_gmp != xyes; then
c6b750e1
DJ
4632 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4633Try the --with-gmp and/or --with-mpfr options to specify their locations.
4634Copies of these libraries' source code can be found at their respective
4635hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4636See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4637If you obtained GMP and/or MPFR from a vendor distribution package, make
4638sure that you have installed both the libraries and the header files.
4639They may be located in separate packages." >&5
4640echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4641Try the --with-gmp and/or --with-mpfr options to specify their locations.
4642Copies of these libraries' source code can be found at their respective
4643hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4644See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4645If you obtained GMP and/or MPFR from a vendor distribution package, make
4646sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4647They may be located in separate packages." >&2;}
4648 { (exit 1); exit 1; }; }
4b900473 4649 fi
9dbaa842
DD
4650fi
4651
11b04d1f 4652# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4653
4654
4655
947f426e 4656# By default, C is the only stage 1 language.
9b134994 4657stage1_languages=,c,
1d39f329 4658
9e07f89d
NN
4659# Figure out what language subdirectories are present.
4660# Look if the user specified --enable-languages="..."; if not, use
4661# the environment variable $LANGUAGES if defined. $LANGUAGES might
4662# go away some day.
4663# NB: embedded tabs in this IF block -- do not untabify
4664if test -d ${srcdir}/gcc; then
4665 if test x"${enable_languages+set}" != xset; then
4666 if test x"${LANGUAGES+set}" = xset; then
4667 enable_languages="${LANGUAGES}"
4668 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4669 else
4670 enable_languages=all
4671 fi
4672 else
4673 if test x"${enable_languages}" = x ||
4674 test x"${enable_languages}" = xyes;
4675 then
4676 echo configure.in: --enable-languages needs at least one language argument 1>&2
4677 exit 1
4678 fi
4679 fi
4680 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4681
096f7d00
DE
4682 # 'f95' is the old name for the 'fortran' language. We issue a warning
4683 # and make the substitution.
4684 case ,${enable_languages}, in
4685 *,f95,*)
4686 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4687 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4688 ;;
4689 esac
4690
9e07f89d
NN
4691 # First scan to see if an enabled language requires some other language.
4692 # We assume that a given config-lang.in will list all the language
4693 # front ends it requires, even if some are required indirectly.
4694 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4695 case ${lang_frag} in
4696 ..) ;;
4697 # The odd quoting in the next line works around
4698 # an apparent bug in bash 1.12 on linux.
4699 ${srcdir}/gcc/[*]/config-lang.in) ;;
4700 *)
4701 # From the config-lang.in, get $language, $lang_requires
4702 language=
4703 lang_requires=
4704 . ${lang_frag}
4705 for other in ${lang_requires} ; do
4706 case ,${enable_languages}, in
4707 *,$other,*) ;;
4708 *,all,*) ;;
4709 *,$language,*)
4710 echo " \`$other' language required by \`$language'; enabling" 1>&2
4711 enable_languages="${enable_languages},${other}"
4712 ;;
4713 esac
4714 done
4715 ;;
4716 esac
4717 done
4718
9b134994 4719 new_enable_languages=,c,
9e07f89d 4720 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4721 potential_languages=,c,
9e07f89d
NN
4722
4723 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4724 case ${lang_frag} in
4725 ..) ;;
4726 # The odd quoting in the next line works around
4727 # an apparent bug in bash 1.12 on linux.
4728 ${srcdir}/gcc/[*]/config-lang.in) ;;
4729 *)
c6b750e1 4730 # From the config-lang.in, get $language, $target_libs,
1d39f329 4731 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4732 language=
4733 target_libs=
4734 lang_dirs=
64ce424c 4735 subdir_requires=
9b134994
PB
4736 boot_language=no
4737 build_by_default=yes
9e07f89d 4738 . ${lang_frag}
9b134994
PB
4739 if test x${language} = x; then
4740 echo "${lang_frag} doesn't set \$language." 1>&2
4741 exit 1
4742 fi
4743
4744 case ,${enable_languages}, in
4745 *,${language},*)
9e07f89d
NN
4746 # Language was explicitly selected; include it.
4747 add_this_lang=yes
4748 ;;
9b134994
PB
4749 *,all,*)
4750 # 'all' was selected, select it if it is a default language
4751 add_this_lang=${build_by_default}
9e07f89d
NN
4752 ;;
4753 *)
4754 add_this_lang=no
4755 ;;
4756 esac
4b1cb4fe 4757
64ce424c 4758 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4759 for i in $subdir_requires; do
3d3adb43 4760 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4761 case ,${enable_languages}, in
4762 *,${language},*)
4763 # Specifically requested language; tell them.
c6b750e1
DJ
4764 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4765echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4766 { (exit 1); exit 1; }; }
64ce424c
PB
4767 ;;
4768 *)
4769 # Silently disable.
9b134994 4770 add_this_lang=unsupported
64ce424c
PB
4771 ;;
4772 esac
4773 done
4774
9b134994
PB
4775 # Disable Ada if no preexisting GNAT is available.
4776 case ,${enable_languages},:${language}:${have_gnat} in
4777 *,${language},*:ada:no)
4778 # Specifically requested language; tell them.
c6b750e1
DJ
4779 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4780echo "$as_me: error: GNAT is required to build $language" >&2;}
4781 { (exit 1); exit 1; }; }
9b134994
PB
4782 ;;
4783 *:ada:no)
4784 # Silently disable.
4785 add_this_lang=unsupported
4786 ;;
4787 esac
4788
59f7ec45
HPN
4789 # Disable a language that is unsupported by the target.
4790 case " $unsupported_languages " in
4791 *" $language "*)
9b134994 4792 add_this_lang=unsupported
59f7ec45
HPN
4793 ;;
4794 esac
4795
4b1cb4fe 4796 case $add_this_lang in
9b134994 4797 unsupported)
9e07f89d 4798 # Remove language-dependent dirs.
1d39f329
NN
4799 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4800 ;;
9b134994
PB
4801 no)
4802 # Remove language-dependent dirs; still show language as supported.
4803 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4804 potential_languages="${potential_languages}${language},"
4805 ;;
4806 yes)
4807 new_enable_languages="${new_enable_languages}${language},"
4808 potential_languages="${potential_languages}${language},"
1d39f329
NN
4809 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4810 case ${boot_language} in
4811 yes)
4fa63067 4812 # Add to (comma-separated) list of stage 1 languages.
9b134994 4813 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4814 ;;
4815 esac
4816 ;;
9e07f89d
NN
4817 esac
4818 ;;
4819 esac
4820 done
4821
9b134994
PB
4822 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4823if test "${enable_stage1_languages+set}" = set; then
4824 enableval="$enable_stage1_languages"
4825 case ,${enable_stage1_languages}, in
4826 ,no,|,,)
4827 # Set it to something that will have no effect in the loop below
4828 enable_stage1_languages=c ;;
4829 ,yes,)
4830 enable_stage1_languages=`echo $new_enable_languages | \
4831 sed -e "s/^,//" -e "s/,$//" ` ;;
4832 *,all,*)
4833 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4834 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4835 esac
4836
4837 # Add "good" languages from enable_stage1_languages to stage1_languages,
4838 # while "bad" languages go in missing_languages. Leave no duplicates.
4839 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4840 case $potential_languages in
4841 *,$i,*)
4842 case $stage1_languages in
4843 *,$i,*) ;;
4844 *) stage1_languages="$stage1_languages$i," ;;
4845 esac ;;
4846 *)
4847 case $missing_languages in
4848 *,$i,*) ;;
4849 *) missing_languages="$missing_languages$i," ;;
4850 esac ;;
4851 esac
4852 done
c6b750e1 4853fi;
9b134994
PB
4854
4855 # Remove leading/trailing commas that were added for simplicity
4856 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4857 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4858 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4859 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4860
9e07f89d 4861 if test "x$missing_languages" != x; then
c6b750e1 4862 { { echo "$as_me:$LINENO: error:
27258dd4 4863The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4864Supported languages are: ${potential_languages}" >&5
4865echo "$as_me: error:
4866The following requested languages could not be built: ${missing_languages}
4867Supported languages are: ${potential_languages}" >&2;}
4868 { (exit 1); exit 1; }; }
9e07f89d 4869 fi
9e07f89d
NN
4870 if test "x$new_enable_languages" != "x$enable_languages"; then
4871 echo The following languages will be built: ${new_enable_languages}
9b134994 4872 enable_languages="$new_enable_languages"
9e07f89d 4873 fi
9b134994 4874
c6b750e1 4875
81ec575a 4876 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4877fi
4878
a6df5a19
PB
4879# Handle --disable-<component> generically.
4880for dir in $configdirs $build_configdirs $target_configdirs ; do
4881 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4882 if eval test x\${enable_${dirname}} "=" xno ; then
4883 noconfigdirs="$noconfigdirs $dir"
4884 fi
4885done
4886
4f0ef2d8
CD
4887# Check for Boehm's garbage collector
4888# Check whether --enable-objc-gc or --disable-objc-gc was given.
4889if test "${enable_objc_gc+set}" = set; then
4890 enableval="$enable_objc_gc"
4891 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4892 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4893 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4894echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4895 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4896 ;;
4897esac
c6b750e1 4898fi;
4f0ef2d8
CD
4899
4900# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4901case ,${enable_languages},:${enable_objc_gc} in
4902 *,objc,*:yes)
4f0ef2d8
CD
4903 # Keep target-boehm-gc if requested for Objective-C.
4904 ;;
4f0ef2d8 4905 *)
d42c4017
DA
4906 # Otherwise remove target-boehm-gc depending on target-libjava.
4907 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4908 noconfigdirs="$noconfigdirs target-boehm-gc"
4909 fi
4f0ef2d8
CD
4910 ;;
4911esac
4912
caeba88f
AL
4913# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4914# $build_configdirs and $target_configdirs.
9e07f89d
NN
4915# If we have the source for $noconfigdirs entries, add them to $notsupp.
4916
4917notsupp=""
4918for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4919 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4920 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4921 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4922 if test -r $srcdir/$dirname/configure ; then
4923 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4924 true
4925 else
4926 notsupp="$notsupp $dir"
4927 fi
4928 fi
4929 fi
caeba88f
AL
4930 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4931 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4932 if test -r $srcdir/$dirname/configure ; then
4933 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4934 true
4935 else
4936 notsupp="$notsupp $dir"
4937 fi
4938 fi
4939 fi
9e07f89d
NN
4940 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4941 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4942 if test -r $srcdir/$dirname/configure ; then
4943 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4944 true
4945 else
4946 notsupp="$notsupp $dir"
4947 fi
4948 fi
4949 fi
4950done
4951
4952# Sometimes the tools are distributed with libiberty but with no other
4953# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4954# Don't let libgcc imply libiberty either.
9e07f89d 4955if test -n "${target_configdirs}" ; then
f86e35b8 4956 libgcc=
9e07f89d
NN
4957 others=
4958 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4959 if test "$i" = "libgcc"; then
4960 libgcc=target-libgcc
4961 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4962 if test -r $srcdir/$i/configure ; then
4963 others=yes;
4964 break;
4965 fi
4966 fi
4967 done
4968 if test -z "${others}" ; then
f86e35b8 4969 target_configdirs=$libgcc
9e07f89d
NN
4970 fi
4971fi
4972
4973# Quietly strip out all directories which aren't configurable in this tree.
4974# This relies on all configurable subdirectories being autoconfiscated, which
4975# is now the case.
6a9cf61e
PB
4976build_configdirs_all="$build_configdirs"
4977build_configdirs=
4978for i in ${build_configdirs_all} ; do
c6b750e1 4979 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4980 if test -f ${srcdir}/$j/configure ; then
4981 build_configdirs="${build_configdirs} $i"
4982 fi
4983done
4984
9e07f89d
NN
4985configdirs_all="$configdirs"
4986configdirs=
4987for i in ${configdirs_all} ; do
4988 if test -f ${srcdir}/$i/configure ; then
4989 configdirs="${configdirs} $i"
4990 fi
4991done
6a9cf61e 4992
9e07f89d
NN
4993target_configdirs_all="$target_configdirs"
4994target_configdirs=
4995for i in ${target_configdirs_all} ; do
c6b750e1 4996 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4997 if test -f ${srcdir}/$j/configure ; then
4998 target_configdirs="${target_configdirs} $i"
4999 fi
5000done
5001
5002# Produce a warning message for the subdirs we can't configure.
5003# This isn't especially interesting in the Cygnus tree, but in the individual
5004# FSF releases, it's important to let people know when their machine isn't
5005# supported by the one or two programs in a package.
5006
5007if test -n "${notsupp}" && test -z "${norecursion}" ; then
5008 # If $appdirs is non-empty, at least one of those directories must still
5009 # be configured, or we error out. (E.g., if the gas release supports a
5010 # specified target in some subdirs but not the gas subdir, we shouldn't
5011 # pretend that all is well.)
5012 if test -n "$appdirs" ; then
5013 for dir in $appdirs ; do
5014 if test -r $dir/Makefile.in ; then
5015 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5016 appdirs=""
5017 break
5018 fi
6a9cf61e 5019 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5020 appdirs=""
5021 break
5022 fi
5023 fi
5024 done
5025 if test -n "$appdirs" ; then
5026 echo "*** This configuration is not supported by this package." 1>&2
5027 exit 1
5028 fi
5029 fi
5030 # Okay, some application will build, or we don't care to check. Still
5031 # notify of subdirs not getting built.
5032 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5033 echo " ${notsupp}" 1>&2
5034 echo " (Any other directories should still work fine.)" 1>&2
5035fi
5036
5037case "$host" in
5038 *msdosdjgpp*)
5039 enable_gdbtk=no ;;
5040esac
5041
18f6b6ee
PB
5042# To find our prefix, in gcc_cv_tool_prefix.
5043
5044# The user is always right.
5045if test "${PATH_SEPARATOR+set}" != set; then
5046 echo "#! /bin/sh" >conf$$.sh
5047 echo "exit 0" >>conf$$.sh
5048 chmod +x conf$$.sh
5049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5050 PATH_SEPARATOR=';'
5051 else
5052 PATH_SEPARATOR=:
5053 fi
5054 rm -f conf$$.sh
5055fi
5056
5057
5058
5059if test "x$exec_prefix" = xNONE; then
5060 if test "x$prefix" = xNONE; then
5061 gcc_cv_tool_prefix=$ac_default_prefix
5062 else
5063 gcc_cv_tool_prefix=$prefix
5064 fi
5065else
5066 gcc_cv_tool_prefix=$exec_prefix
5067fi
5068
5069# If there is no compiler in the tree, use the PATH only. In any
5070# case, if there is no compiler in the tree nobody should use
5071# AS_FOR_TARGET and LD_FOR_TARGET.
5072if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5073 gcc_version=`cat $srcdir/gcc/BASE-VER`
5074 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5077 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5078 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5079 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5080else
5081 gcc_cv_tool_dirs=
5082fi
5083
5084if test x$build = x$target && test -n "$md_exec_prefix"; then
5085 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5086fi
5087
5088
5089
9e07f89d
NN
5090copy_dirs=
5091
c6b750e1 5092
a19b6204
MM
5093# Check whether --with-build-sysroot or --without-build-sysroot was given.
5094if test "${with_build_sysroot+set}" = set; then
5095 withval="$with_build_sysroot"
5096 if test x"$withval" != x ; then
5097 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5098 fi
5099else
5100 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5101fi;
a19b6204
MM
5102
5103
8a6ee3ab
JM
5104
5105# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5106if test "${with_debug_prefix_map+set}" = set; then
5107 withval="$with_debug_prefix_map"
5108 if test x"$withval" != x; then
5109 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5110 for debug_map in $withval; do
5111 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5112 done
5113 fi
5114else
5115 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5116fi;
5117
5118
9e07f89d
NN
5119# Handle --with-headers=XXX. If the value is not "yes", the contents of
5120# the named directory are copied to $(tooldir)/sys-include.
5121if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5122 if test x${is_cross_compiler} = xno ; then
5123 echo 1>&2 '***' --with-headers is only supported when cross compiling
5124 exit 1
5125 fi
5126 if test x"${with_headers}" != xyes ; then
18f6b6ee 5127 x=${gcc_cv_tool_prefix}
c6b750e1 5128 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5129 fi
5130fi
5131
5132# Handle --with-libs=XXX. If the value is not "yes", the contents of
5133# the name directories are copied to $(tooldir)/lib. Multiple directories
5134# are permitted.
5135if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5136 if test x${is_cross_compiler} = xno ; then
5137 echo 1>&2 '***' --with-libs is only supported when cross compiling
5138 exit 1
5139 fi
5140 if test x"${with_libs}" != xyes ; then
5141 # Copy the libraries in reverse order, so that files in the first named
5142 # library override files in subsequent libraries.
18f6b6ee 5143 x=${gcc_cv_tool_prefix}
9e07f89d 5144 for l in ${with_libs}; do
c6b750e1 5145 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5146 done
5147 fi
5148fi
5149
2429c060
PB
5150# Set with_gnu_as and with_gnu_ld as appropriate.
5151#
5152# This is done by determining whether or not the appropriate directory
5153# is available, and by checking whether or not specific configurations
5154# have requested that this magic not happen.
c6b750e1
DJ
5155#
5156# The command line options always override the explicit settings in
2429c060
PB
5157# configure.in, and the settings in configure.in override this magic.
5158#
c6b750e1 5159# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5160# want to do that, then you should use the --without-gnu-as and
5161# --without-gnu-ld options for the configure script.
5162
5163if test x${use_gnu_as} = x &&
5164 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5165 with_gnu_as=yes
5166 extra_host_args="$extra_host_args --with-gnu-as"
5167fi
5168
5169if test x${use_gnu_ld} = x &&
5170 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5171 with_gnu_ld=yes
5172 extra_host_args="$extra_host_args --with-gnu-ld"
5173fi
5174
5175# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5176# can detect this case.
5177
5178if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5179 with_newlib=yes
5180 extra_host_args="$extra_host_args --with-newlib"
5181fi
5182
9e07f89d
NN
5183# Handle ${copy_dirs}
5184set fnord ${copy_dirs}
5185shift
5186while test $# != 0 ; do
5187 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5188 :
5189 else
5190 echo Copying $1 to $2
5191
5192 # Use the install script to create the directory and all required
5193 # parent directories.
5194 if test -d $2 ; then
5195 :
5196 else
5197 echo >config.temp
5198 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5199 fi
5200
5201 # Copy the directory, assuming we have tar.
5202 # FIXME: Should we use B in the second tar? Not all systems support it.
5203 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5204
5205 # It is the responsibility of the user to correctly adjust all
5206 # symlinks. If somebody can figure out how to handle them correctly
5207 # here, feel free to add the code.
5208
5209 echo $1 > $2/COPIED
5210 fi
5211 shift; shift
5212done
5213
2429c060
PB
5214# Determine a target-dependent exec_prefix that the installed
5215# gcc will search in. Keep this list sorted by triplet, with
5216# the *-*-osname triplets last.
5217md_exec_prefix=
5218case "${target}" in
5219 alpha*-*-*vms*)
5220 md_exec_prefix=/gnu/lib/gcc-lib
5221 ;;
521ec477 5222 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5223 md_exec_prefix=/dev/env/DJDIR/bin
5224 ;;
521ec477 5225 i[34567]86-*-sco3.2v5*)
2429c060
PB
5226 if test $with_gnu_as = yes; then
5227 md_exec_prefix=/usr/gnu/bin
5228 else
5229 md_exec_prefix=/usr/ccs/bin/elf
5230 fi
5231 ;;
5232
5233 mn10300-*-* | \
5234 powerpc-*-chorusos* | \
5235 powerpc*-*-eabi* | \
5236 powerpc*-*-sysv* | \
5237 powerpc*-*-kaos* | \
5238 s390x-ibm-tpf*)
5239 md_exec_prefix=/usr/ccs/bin
5240 ;;
5241 sparc64-*-elf*)
5242 ;;
5243 v850*-*-*)
5244 md_exec_prefix=/usr/ccs/bin
5245 ;;
5246 xtensa-*-elf*)
5247 ;;
5248
5249 *-*-beos* | \
5250 *-*-elf* | \
5251 *-*-hpux* | \
5252 *-*-netware* | \
5253 *-*-nto-qnx* | \
5254 *-*-rtems* | \
5255 *-*-solaris2* | \
521ec477 5256 *-*-sysv[45]* | \
2429c060
PB
5257 *-*-vxworks* | \
5258 *-wrs-windiss)
5259 md_exec_prefix=/usr/ccs/bin
5260 ;;
5261esac
5262
a0da8069
NN
5263extra_arflags_for_target=
5264extra_nmflags_for_target=
5265extra_ranlibflags_for_target=
5266target_makefile_frag=/dev/null
5267case "${target}" in
4e206d7e
DB
5268 mep*-*-*)
5269 target_makefile_frag="config/mt-mep"
5270 ;;
77d7106f
AM
5271 spu-*-*)
5272 target_makefile_frag="config/mt-spu"
5273 ;;
429acdec
RS
5274 mips*-sde-elf*)
5275 target_makefile_frag="config/mt-sde"
5276 ;;
2a3124ca 5277 *-*-netware*)
a0da8069
NN
5278 target_makefile_frag="config/mt-netware"
5279 ;;
3d6dfe0f
NN
5280 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5281 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5282 ;;
5283 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5284 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5285 # commands to handle both 32-bit and 64-bit objects. These flags are
5286 # harmless if we're using GNU nm or ar.
5287 extra_arflags_for_target=" -X32_64"
5288 extra_nmflags_for_target=" -B -X32_64"
5289 ;;
5290 *-*-darwin*)
5291 # ranlib from Darwin requires the -c flag to look at common symbols.
5292 extra_ranlibflags_for_target=" -c"
5293 ;;
5294 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5295 target_makefile_frag="config/mt-wince"
5296 ;;
5297esac
5298
5299alphaieee_frag=/dev/null
5300case $target in
5301 alpha*-*-*)
5302 # This just makes sure to use the -mieee option to build target libs.
5303 # This should probably be set individually by each library.
5304 alphaieee_frag="config/mt-alphaieee"
5305 ;;
5306esac
5307
5308# If --enable-target-optspace always use -Os instead of -O2 to build
5309# the target libraries, similarly if it is not specified, use -Os
5310# on selected platforms.
5311ospace_frag=/dev/null
5312case "${enable_target_optspace}:${target}" in
5313 yes:*)
5314 ospace_frag="config/mt-ospace"
5315 ;;
5316 :d30v-*)
5317 ospace_frag="config/mt-d30v"
5318 ;;
5319 :m32r-* | :d10v-* | :fr30-*)
5320 ospace_frag="config/mt-ospace"
5321 ;;
5322 no:* | :*)
5323 ;;
5324 *)
5325 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5326 ;;
5327esac
5328
a0da8069
NN
5329# Default to using --with-stabs for certain targets.
5330if test x${with_stabs} = x ; then
5331 case "${target}" in
e31d1ea3 5332 mips*-*-irix[56]*)
a0da8069
NN
5333 ;;
5334 mips*-*-* | alpha*-*-osf*)
5335 with_stabs=yes;
5336 extra_host_args="${extra_host_args} --with-stabs"
5337 ;;
5338 esac
5339fi
5340
5341# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5342# them automatically.
5343case "${host}" in
c6b750e1 5344 hppa*64*-*-hpux11*)
a0da8069
NN
5345 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5346 ;;
5347esac
5348
a0da8069
NN
5349# Some systems (e.g., one of the i386-aix systems the gas testers are
5350# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5351tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5352build_tooldir=${tooldir}
5353
a0da8069
NN
5354# Create a .gdbinit file which runs the one in srcdir
5355# and tells GDB to look there for source files.
5356
5357if test -r ${srcdir}/.gdbinit ; then
5358 case ${srcdir} in
5359 .) ;;
5360 *) cat > ./.gdbinit <<EOF
5361# ${NO_EDIT}
5362dir ${srcdir}
5363dir .
5364source ${srcdir}/.gdbinit
5365EOF
5366 ;;
5367 esac
5368fi
5369
a0da8069
NN
5370# Make sure that the compiler is able to generate an executable. If it
5371# can't, we are probably in trouble. We don't care whether we can run the
5372# executable--we might be using a cross compiler--we only care whether it
5373# can be created. At this point the main configure script has set CC.
5374we_are_ok=no
5375echo "int main () { return 0; }" > conftest.c
5376${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5377if test $? = 0 ; then
5378 if test -s conftest || test -s conftest.exe ; then
5379 we_are_ok=yes
5380 fi
c6b750e1 5381fi
a0da8069
NN
5382case $we_are_ok in
5383 no)
5384 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5385 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5386 rm -f conftest*
5387 exit 1
5388 ;;
5389esac
5390rm -f conftest*
5391
5392# The Solaris /usr/ucb/cc compiler does not appear to work.
5393case "${host}" in
5394 sparc-sun-solaris2*)
5395 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5396 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5397 could_use=
5398 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5399 if test -d /opt/cygnus/bin ; then
5400 if test "$could_use" = "" ; then
5401 could_use="/opt/cygnus/bin"
5402 else
5403 could_use="$could_use or /opt/cygnus/bin"
5404 fi
5405 fi
5406 if test "$could_use" = "" ; then
5407 echo "Warning: compilation may fail because you're using"
5408 echo "/usr/ucb/cc. You should change your PATH or CC "
5409 echo "variable and rerun configure."
5410 else
5411 echo "Warning: compilation may fail because you're using"
5412 echo "/usr/ucb/cc, when you should use the C compiler from"
5413 echo "$could_use. You should change your"
5414 echo "PATH or CC variable and rerun configure."
5415 fi
5416 fi
5417 ;;
5418esac
5419
a0da8069
NN
5420case "${host}" in
5421 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5422 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5423 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5424esac
5425
5426# Record target_configdirs and the configure arguments for target and
5427# build configuration in Makefile.
5428target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5429build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5430
a0da8069
NN
5431# Determine whether gdb needs tk/tcl or not.
5432# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5433# and in that case we want gdb to be built without tk. Ugh!
5434# In fact I believe gdb is the *only* package directly dependent on tk,
5435# so we should be able to put the 'maybe's in unconditionally and
5436# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5437# 100% sure that that's safe though.
c180f501 5438
675c6968 5439gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5440case "$enable_gdbtk" in
5441 no)
5442 GDB_TK="" ;;
c180f501
AC
5443 yes)
5444 GDB_TK="${gdb_tk}" ;;
a0da8069 5445 *)
c180f501
AC
5446 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5447 # distro. Eventually someone will fix this and move Insight, nee
5448 # gdbtk to a separate directory.
5449 if test -d ${srcdir}/gdb/gdbtk ; then
5450 GDB_TK="${gdb_tk}"
5451 else
5452 GDB_TK=""
5453 fi
5454 ;;
a0da8069 5455esac
907be67c
DJ
5456CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5457INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5458
6bd3dfaa 5459# Strip out unwanted targets.
dd12c3a8
NN
5460
5461# While at that, we remove Makefiles if we were started for recursive
5462# configuration, so that the top-level Makefile reconfigures them,
5463# like we used to do when configure itself was recursive.
dd12c3a8 5464
6bd3dfaa
PB
5465# Loop over modules. $extrasub must be used with care, limiting as
5466# much as possible the usage of range addresses. That's because autoconf
5467# splits the sed script to overcome limits in the number of commands,
5468# and relying on carefully-timed sed passes may turn out to be very hard
5469# to maintain later. In this particular case, you just have to be careful
5470# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5471
319cab08
PB
5472# Check whether --enable-bootstrap or --disable-bootstrap was given.
5473if test "${enable_bootstrap+set}" = set; then
5474 enableval="$enable_bootstrap"
c6b750e1 5475
319cab08 5476else
9cb3fa6f 5477 enable_bootstrap=default
c6b750e1 5478fi;
319cab08 5479
9cb3fa6f
PB
5480# Issue errors and warnings for invalid/strange bootstrap combinations.
5481case "$configdirs" in
5482 *gcc*) have_compiler=yes ;;
5483 *) have_compiler=no ;;
5484esac
5485
5486case "$have_compiler:$host:$target:$enable_bootstrap" in
5487 *:*:*:no) ;;
5488
0aed8855 5489 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5490 # and we are in a native configuration.
5491 yes:$build:$build:default)
0aed8855 5492 enable_bootstrap=yes ;;
9cb3fa6f
PB
5493
5494 *:*:*:default)
5495 enable_bootstrap=no ;;
5496
5497 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5498 yes:$build:$build:yes)
9cb3fa6f
PB
5499 ;;
5500
5501 # Other configurations, but we have a compiler. Assume the user knows
5502 # what he's doing.
80911fe1 5503 yes:*:*:yes)
c6b750e1
DJ
5504 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5505echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5506 ;;
5507
5508 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5509 no:*:*:yes)
c6b750e1
DJ
5510 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5511echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5512 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5513
5514 # Fail if wrong command line
5515 *)
c6b750e1
DJ
5516 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5517echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5518 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5519 ;;
5520esac
5521
5522# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5523case "$enable_bootstrap" in
5524 yes)
498d4a71 5525 bootstrap_suffix=bootstrap ;;
319cab08 5526 no)
498d4a71 5527 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5528esac
5529
6a9cf61e 5530for module in ${build_configdirs} ; do
498d4a71
CF
5531 if test -z "${no_recursion}" \
5532 && test -f ${build_subdir}/${module}/Makefile; then
5533 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5534 rm -f ${build_subdir}/${module}/Makefile
5535 fi
5536 extrasub="$extrasub
5537/^@if build-$module\$/d
5538/^@endif build-$module\$/d
5539/^@if build-$module-$bootstrap_suffix\$/d
5540/^@endif build-$module-$bootstrap_suffix\$/d"
5541done
5542for module in ${configdirs} ; do
80911fe1 5543 if test -z "${no_recursion}"; then
8cf39b1b 5544 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5545 if test -f ${file}; then
5546 echo 1>&2 "*** removing ${file} to force reconfigure"
5547 rm -f ${file}
5548 fi
5549 done
498d4a71
CF
5550 fi
5551 extrasub="$extrasub
5552/^@if $module\$/d
5553/^@endif $module\$/d
5554/^@if $module-$bootstrap_suffix\$/d
5555/^@endif $module-$bootstrap_suffix\$/d"
5556done
5557for module in ${target_configdirs} ; do
5558 if test -z "${no_recursion}" \
5559 && test -f ${target_subdir}/${module}/Makefile; then
5560 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5561 rm -f ${target_subdir}/${module}/Makefile
5562 fi
5563 extrasub="$extrasub
5564/^@if target-$module\$/d
5565/^@endif target-$module\$/d
5566/^@if target-$module-$bootstrap_suffix\$/d
5567/^@endif target-$module-$bootstrap_suffix\$/d"
5568done
5569
6bd3dfaa
PB
5570extrasub="$extrasub
5571/^@if /,/^@endif /d"
a0da8069
NN
5572
5573# Create the serialization dependencies. This uses a temporary file.
5574
e6bfb94a
AO
5575# Check whether --enable-serial-configure or --disable-serial-configure was given.
5576if test "${enable_serial_configure+set}" = set; then
5577 enableval="$enable_serial_configure"
e6bfb94a 5578
c6b750e1 5579fi;
e6bfb94a 5580
1047cb91
DD
5581case ${enable_serial_configure} in
5582 yes)
5583 enable_serial_build_configure=yes
5584 enable_serial_host_configure=yes
5585 enable_serial_target_configure=yes
5586 ;;
5587esac
5588
a0da8069
NN
5589# These force 'configure's to be done one at a time, to avoid problems
5590# with contention over a shared config.cache.
5591rm -f serdep.tmp
e6bfb94a 5592echo '# serdep.tmp' > serdep.tmp
a0da8069 5593olditem=
1047cb91 5594test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5595for item in ${build_configdirs} ; do
5596 case ${olditem} in
5597 "") ;;
e6bfb94a 5598 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5599 esac
5600 olditem=${item}
5601done
5602olditem=
1047cb91 5603test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5604for item in ${configdirs} ; do
5605 case ${olditem} in
5606 "") ;;
e6bfb94a 5607 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5608 esac
5609 olditem=${item}
5610done
5611olditem=
1047cb91 5612test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5613for item in ${target_configdirs} ; do
5614 case ${olditem} in
5615 "") ;;
e6bfb94a 5616 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5617 esac
5618 olditem=${item}
5619done
5620serialization_dependencies=serdep.tmp
5621
5622
e6bfb94a 5623# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5624# target, nonopt, and variable assignments. These are the ones we
5625# might not want to pass down to subconfigures. Also strip
5626# program-prefix, program-suffix, and program-transform-name, so that
5627# we can pass down a consistent program-transform-name.
5628baseargs=
5629keep_next=no
5630skip_next=no
5631eval "set -- $ac_configure_args"
18f6b6ee
PB
5632for ac_arg
5633do
c6b750e1
DJ
5634 if test X"$skip_next" = X"yes"; then
5635 skip_next=no
5636 continue
5637 fi
5638 if test X"$keep_next" = X"yes"; then
5639 case $ac_arg in
5640 *\'*)
5641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5642 esac
5643 baseargs="$baseargs '$ac_arg'"
5644 keep_next=no
5645 continue
5646 fi
5647
5648 # Handle separated arguments. Based on the logic generated by
5649 # autoconf 2.59.
5650 case $ac_arg in
5651 *=* | --config-cache | -C | -disable-* | --disable-* \
5652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5654 | -with-* | --with-* | -without-* | --without-* | --x)
5655 separate_arg=no
5656 ;;
5657 -*)
5658 separate_arg=yes
5659 ;;
5660 *)
5661 separate_arg=no
5662 ;;
5663 esac
5664
5665 case "$ac_arg" in
5666 --no*)
5667 continue
5668 ;;
5669 --c* | \
5670 --sr* | \
5671 --ho* | \
5672 --bu* | \
5673 --t* | \
5674 --program-* | \
5675 -cache_file* | \
5676 -srcdir* | \
5677 -host* | \
5678 -build* | \
5679 -target* | \
5680 -program-prefix* | \
5681 -program-suffix* | \
5682 -program-transform-name* )
5683 skip_next=$separate_arg
5684 continue
5685 ;;
5686 -*)
5687 # An option. Add it.
5688 case $ac_arg in
5689 *\'*)
5690 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5691 esac
5692 baseargs="$baseargs '$ac_arg'"
5693 keep_next=$separate_arg
5694 ;;
5695 *)
5696 # Either a variable assignment, or a nonopt (triplet). Don't
5697 # pass it down; let the Makefile handle this.
5698 continue
5699 ;;
5700 esac
5701done
5702# Remove the initial space we just introduced and, as these will be
5703# expanded by make, quote '$'.
5704baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5705
f27d4f92
DJ
5706# Add in --program-transform-name, after --program-prefix and
5707# --program-suffix have been applied to it. Autoconf has already
5708# doubled dollar signs and backslashes in program_transform_name; we want
5709# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5710# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5711# Also, because we want to override the logic in subdir configure scripts to
5712# choose program_transform_name, replace any s,x,x, with s,y,y,.
5713sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5714${program_transform_name}
5715EOF_SED
5716gcc_transform_name=`cat conftestsed.out`
5717rm -f conftestsed.out
5718baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5719if test "$silent" = yes; then
5720 baseargs="$baseargs --silent"
5721fi
f27d4f92 5722
a0da8069
NN
5723# For the build-side libraries, we just need to pretend we're native,
5724# and not use the same cache file. Multilibs are neither needed nor
5725# desired.
4b900473 5726build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5727
5728# For host modules, accept cache file option, or specification as blank.
5729case "${cache_file}" in
5730"") # empty
5731 cache_file_option="" ;;
5732/* | [A-Za-z]:[\\/]* ) # absolute path
5733 cache_file_option="--cache-file=${cache_file}" ;;
5734*) # relative path
5735 cache_file_option="--cache-file=../${cache_file}" ;;
5736esac
5737
82252c06
NN
5738# Host dirs don't like to share a cache file either, horribly enough.
5739# This seems to be due to autoconf 2.5x stupidity.
4b900473 5740host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5741
5742target_configargs=${baseargs}
5743
5744# Passing a --with-cross-host argument lets the target libraries know
5745# whether they are being built with a cross-compiler or being built
5746# native. However, it would be better to use other mechanisms to make the
5747# sorts of decisions they want to make on this basis. Please consider
5748# this option to be deprecated. FIXME.
5749if test x${is_cross_compiler} = xyes ; then
c6b750e1 5750 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5751fi
5752
5753# Default to --enable-multilib.
5754if test x${enable_multilib} = x ; then
5755 target_configargs="--enable-multilib ${target_configargs}"
5756fi
5757
5758# Pass --with-newlib if appropriate. Note that target_configdirs has
5759# changed from the earlier setting of with_newlib.
5760if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5761 target_configargs="--with-newlib ${target_configargs}"
5762fi
5763
95036d20
NN
5764# Different target subdirs use different values of certain variables
5765# (notably CXX). Worse, multilibs use *lots* of different values.
5766# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5767# it doesn't automatically accept command-line overrides of them.
5768# This means it's not safe for target subdirs to share a cache file,
5769# which is disgusting, but there you have it. Hopefully this can be
5770# fixed in future. It's still worthwhile to use a cache file for each
5771# directory. I think.
5772
ae380b45
MS
5773# Pass the appropriate --build, --host, --target and --cache-file arguments.
5774# We need to pass --target, as newer autoconf's requires consistency
5775# for target_alias and gcc doesn't manage it consistently.
4b900473 5776target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5777
a0da8069
NN
5778FLAGS_FOR_TARGET=
5779case " $target_configdirs " in
5780 *" newlib "*)
5781 case " $target_configargs " in
5782 *" --with-newlib "*)
5783 case "$target" in
5784 *-cygwin*)
564b43e5 5785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
5786 esac
5787
5788 # If we're not building GCC, don't discard standard headers.
5789 if test -d ${srcdir}/gcc; then
5790 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5791
5792 if test "${build}" != "${host}"; then
5793 # On Canadian crosses, CC_FOR_TARGET will have already been set
5794 # by `configure', so we won't have an opportunity to add -Bgcc/
5795 # to it. This is right: we don't want to search that directory
5796 # for binaries, but we want the header files in there, so add
5797 # them explicitly.
b00612cc 5798 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5799
5800 # Someone might think of using the pre-installed headers on
5801 # Canadian crosses, in case the installed compiler is not fully
5802 # compatible with the compiler being built. In this case, it
5803 # would be better to flag an error than risking having
5804 # incompatible object files being constructed. We can't
5805 # guarantee that an error will be flagged, but let's hope the
5806 # compiler will do it, when presented with incompatible header
5807 # files.
5808 fi
5809 fi
5810
5811 case "${target}-${is_cross_compiler}" in
ec11bdc6 5812 i[3456789]86-*-linux*-no)
a0da8069
NN
5813 # Here host == target, so we don't need to build gcc,
5814 # so we don't want to discard standard headers.
5815 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5816 ;;
5817 *)
5818 # If we're building newlib, use its generic headers last, but search
5819 # for any libc-related directories first (so make it the last -B
5820 # switch).
5821 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
5822
5823 # If we're building libgloss, find the startup file, simulator library
5824 # and linker script.
5825 case " $target_configdirs " in
5826 *" libgloss "*)
5827 # Look for startup file, simulator library and maybe linker script.
5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5829 # Look for libnosys.a in case the target needs it.
5830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5831 # Most targets have the linker script in the source directory.
5832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5833 ;;
5834 esac
a0da8069
NN
5835 ;;
5836 esac
5837 ;;
5838 esac
5839 ;;
5840esac
45055374
CV
5841case "$target" in
5842*-mingw*)
5843 # Can't be handled as Cygwin above since Mingw does not use newlib.
5844 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' ;;
5845esac
a0da8069 5846
5fbad20a
DD
5847# Allow the user to override the flags for
5848# our build compiler if desired.
5849CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5850
a0da8069
NN
5851# On Canadian crosses, we'll be searching the right directories for
5852# the previously-installed cross compiler, so don't bother to add
5853# flags for directories within the install tree of the compiler
5854# being built; programs in there won't even run.
5855if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5856 # Search for pre-installed headers if nothing else fits.
bba45b8b 5857 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
5858fi
5859
5860if test "x${use_gnu_ld}" = x &&
5861 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5862 # Arrange for us to find uninstalled linker scripts.
b00612cc 5863 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5864fi
5865
a481dbb7
DD
5866# Search for other target-specific linker scripts and such.
5867case "${target}" in
4e206d7e
DB
5868 mep*)
5869 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5870 ;;
5871esac
5872
a0da8069 5873# Makefile fragments.
3e707e94
PB
5874for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5875do
5876 eval fragval=\$$frag
5877 if test $fragval != /dev/null; then
5878 eval $frag=${srcdir}/$fragval
5879 fi
5880done
a0da8069
NN
5881
5882
5883
5884
5885
5886# Miscellanea: directories, flags, etc.
5887
5888
5889
5890
5891
5892
5893
6a9cf61e 5894# Build module lists & subconfigure args.
a0da8069
NN
5895
5896
5897
be01d343
PB
5898# Host module lists & subconfigure args.
5899
5900
5901
5902# Target module lists & subconfigure args.
5903
5904
5905
5906# Build tools.
5907
5908
5909
5910# Generate default definitions for YACC, M4, LEX and other programs that run
5911# on the build machine. These are used if the Makefile can't locate these
5912# programs in objdir.
5913MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5914
5915for ac_prog in 'bison -y' byacc yacc
5916do
c6b750e1 5917 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5918set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5919echo "$as_me:$LINENO: checking for $ac_word" >&5
5920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921if test "${ac_cv_prog_YACC+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5923else
5924 if test -n "$YACC"; then
5925 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5926else
c6b750e1
DJ
5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_YACC="$ac_prog"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938done
5939done
5940
be01d343
PB
5941fi
5942fi
c6b750e1 5943YACC=$ac_cv_prog_YACC
be01d343 5944if test -n "$YACC"; then
c6b750e1
DJ
5945 echo "$as_me:$LINENO: result: $YACC" >&5
5946echo "${ECHO_T}$YACC" >&6
be01d343 5947else
c6b750e1
DJ
5948 echo "$as_me:$LINENO: result: no" >&5
5949echo "${ECHO_T}no" >&6
be01d343
PB
5950fi
5951
c6b750e1 5952 test -n "$YACC" && break
be01d343
PB
5953done
5954test -n "$YACC" || YACC="$MISSING bison -y"
5955
5956case " $build_configdirs " in
5957 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5958 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5959esac
5960
5961for ac_prog in bison
5962do
c6b750e1 5963 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5964set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5965echo "$as_me:$LINENO: checking for $ac_word" >&5
5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5967if test "${ac_cv_prog_BISON+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5969else
5970 if test -n "$BISON"; then
5971 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5972else
c6b750e1
DJ
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980 ac_cv_prog_BISON="$ac_prog"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984done
5985done
5986
be01d343
PB
5987fi
5988fi
c6b750e1 5989BISON=$ac_cv_prog_BISON
be01d343 5990if test -n "$BISON"; then
c6b750e1
DJ
5991 echo "$as_me:$LINENO: result: $BISON" >&5
5992echo "${ECHO_T}$BISON" >&6
be01d343 5993else
c6b750e1
DJ
5994 echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
be01d343
PB
5996fi
5997
c6b750e1 5998 test -n "$BISON" && break
be01d343
PB
5999done
6000test -n "$BISON" || BISON="$MISSING bison"
6001
6002case " $build_configdirs " in
6003 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6004esac
6005
6006for ac_prog in gm4 gnum4 m4
6007do
c6b750e1 6008 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6009set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6010echo "$as_me:$LINENO: checking for $ac_word" >&5
6011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012if test "${ac_cv_prog_M4+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6014else
6015 if test -n "$M4"; then
6016 ac_cv_prog_M4="$M4" # Let the user override the test.
6017else
c6b750e1
DJ
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_M4="$ac_prog"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029done
6030done
6031
be01d343
PB
6032fi
6033fi
c6b750e1 6034M4=$ac_cv_prog_M4
be01d343 6035if test -n "$M4"; then
c6b750e1
DJ
6036 echo "$as_me:$LINENO: result: $M4" >&5
6037echo "${ECHO_T}$M4" >&6
be01d343 6038else
c6b750e1
DJ
6039 echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6
be01d343
PB
6041fi
6042
c6b750e1 6043 test -n "$M4" && break
be01d343
PB
6044done
6045test -n "$M4" || M4="$MISSING m4"
6046
6047case " $build_configdirs " in
6048 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6049esac
6050
6051for ac_prog in flex lex
6052do
c6b750e1 6053 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6054set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6055echo "$as_me:$LINENO: checking for $ac_word" >&5
6056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6057if test "${ac_cv_prog_LEX+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6059else
6060 if test -n "$LEX"; then
6061 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6062else
c6b750e1
DJ
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_LEX="$ac_prog"
6071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074done
6075done
6076
be01d343
PB
6077fi
6078fi
c6b750e1 6079LEX=$ac_cv_prog_LEX
be01d343 6080if test -n "$LEX"; then
c6b750e1
DJ
6081 echo "$as_me:$LINENO: result: $LEX" >&5
6082echo "${ECHO_T}$LEX" >&6
be01d343 6083else
c6b750e1
DJ
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
be01d343
PB
6086fi
6087
c6b750e1 6088 test -n "$LEX" && break
be01d343
PB
6089done
6090test -n "$LEX" || LEX="$MISSING flex"
6091
6092case " $build_configdirs " in
6093 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6094 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6095esac
6096
6097for ac_prog in flex
6098do
c6b750e1 6099 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6100set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6101echo "$as_me:$LINENO: checking for $ac_word" >&5
6102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103if test "${ac_cv_prog_FLEX+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6105else
6106 if test -n "$FLEX"; then
6107 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6108else
c6b750e1
DJ
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_FLEX="$ac_prog"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121done
6122
be01d343
PB
6123fi
6124fi
c6b750e1 6125FLEX=$ac_cv_prog_FLEX
be01d343 6126if test -n "$FLEX"; then
c6b750e1
DJ
6127 echo "$as_me:$LINENO: result: $FLEX" >&5
6128echo "${ECHO_T}$FLEX" >&6
be01d343 6129else
c6b750e1
DJ
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
be01d343
PB
6132fi
6133
c6b750e1 6134 test -n "$FLEX" && break
be01d343
PB
6135done
6136test -n "$FLEX" || FLEX="$MISSING flex"
6137
6138case " $build_configdirs " in
6139 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6140esac
6141
6142for ac_prog in makeinfo
6143do
c6b750e1 6144 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6145set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6146echo "$as_me:$LINENO: checking for $ac_word" >&5
6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6148if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6150else
6151 if test -n "$MAKEINFO"; then
6152 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6153else
c6b750e1
DJ
6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_MAKEINFO="$ac_prog"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165done
6166done
6167
be01d343
PB
6168fi
6169fi
c6b750e1 6170MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6171if test -n "$MAKEINFO"; then
c6b750e1
DJ
6172 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6173echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6174else
c6b750e1
DJ
6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
be01d343
PB
6177fi
6178
c6b750e1 6179 test -n "$MAKEINFO" && break
be01d343
PB
6180done
6181test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6182
6183case " $build_configdirs " in
6184 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6185 *)
6186
a4ef73e9 6187 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6188 # higher, else we use the "missing" dummy.
6189 if ${MAKEINFO} --version \
a4ef73e9 6190 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6191 :
6192 else
6193 MAKEINFO="$MISSING makeinfo"
6194 fi
6195 ;;
6196
6197esac
a0da8069 6198
be01d343 6199# FIXME: expect and dejagnu may become build tools?
a0da8069 6200
be01d343
PB
6201for ac_prog in expect
6202do
c6b750e1 6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6204set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6205echo "$as_me:$LINENO: checking for $ac_word" >&5
6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6207if test "${ac_cv_prog_EXPECT+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6209else
6210 if test -n "$EXPECT"; then
6211 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6212else
c6b750e1
DJ
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_EXPECT="$ac_prog"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224done
6225done
6226
be01d343
PB
6227fi
6228fi
c6b750e1 6229EXPECT=$ac_cv_prog_EXPECT
be01d343 6230if test -n "$EXPECT"; then
c6b750e1
DJ
6231 echo "$as_me:$LINENO: result: $EXPECT" >&5
6232echo "${ECHO_T}$EXPECT" >&6
be01d343 6233else
c6b750e1
DJ
6234 echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6
be01d343 6236fi
a0da8069 6237
c6b750e1 6238 test -n "$EXPECT" && break
be01d343
PB
6239done
6240test -n "$EXPECT" || EXPECT="expect"
a0da8069 6241
be01d343
PB
6242case " $configdirs " in
6243 *" expect "*)
6244 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6245 ;;
6246esac
a0da8069 6247
be01d343
PB
6248for ac_prog in runtest
6249do
c6b750e1 6250 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6251set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6252echo "$as_me:$LINENO: checking for $ac_word" >&5
6253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6254if test "${ac_cv_prog_RUNTEST+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6256else
6257 if test -n "$RUNTEST"; then
6258 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6259else
c6b750e1
DJ
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_RUNTEST="$ac_prog"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271done
6272done
6273
be01d343
PB
6274fi
6275fi
c6b750e1 6276RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6277if test -n "$RUNTEST"; then
c6b750e1
DJ
6278 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6279echo "${ECHO_T}$RUNTEST" >&6
be01d343 6280else
c6b750e1
DJ
6281 echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6
be01d343 6283fi
a0da8069 6284
c6b750e1 6285 test -n "$RUNTEST" && break
be01d343
PB
6286done
6287test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6288
be01d343
PB
6289case " $configdirs " in
6290 *" dejagnu "*)
6b89cc21 6291 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6292 ;;
6293esac
a0da8069
NN
6294
6295
a0da8069 6296# Host tools.
859789af
AC
6297ncn_tool_prefix=
6298test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6299ncn_target_tool_prefix=
6300test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6301
9a819804
AO
6302
6303
6304if test -n "$AR"; then
6305 ac_cv_prog_AR=$AR
6306elif test -n "$ac_cv_prog_AR"; then
6307 AR=$ac_cv_prog_AR
6308fi
6309
6310if test -n "$ac_cv_prog_AR"; then
6311 for ncn_progname in ar; do
6312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6313set dummy ${ncn_progname}; ac_word=$2
6314echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316if test "${ac_cv_prog_AR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319 if test -n "$AR"; then
6320 ac_cv_prog_AR="$AR" # Let the user override the test.
6321else
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_AR="${ncn_progname}"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333done
6334done
6335
6336fi
6337fi
6338AR=$ac_cv_prog_AR
6339if test -n "$AR"; then
6340 echo "$as_me:$LINENO: result: $AR" >&5
6341echo "${ECHO_T}$AR" >&6
6342else
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
6345fi
6346
6347 done
6348fi
6349
6350for ncn_progname in ar; do
05cbd757
PB
6351 if test -n "$ncn_tool_prefix"; then
6352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6353set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6354echo "$as_me:$LINENO: checking for $ac_word" >&5
6355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6356if test "${ac_cv_prog_AR+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6358else
6359 if test -n "$AR"; then
6360 ac_cv_prog_AR="$AR" # Let the user override the test.
6361else
c6b750e1
DJ
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373done
6374done
6375
859789af
AC
6376fi
6377fi
c6b750e1 6378AR=$ac_cv_prog_AR
859789af 6379if test -n "$AR"; then
c6b750e1
DJ
6380 echo "$as_me:$LINENO: result: $AR" >&5
6381echo "${ECHO_T}$AR" >&6
859789af 6382else
c6b750e1
DJ
6383 echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6
859789af
AC
6385fi
6386
05cbd757
PB
6387 fi
6388 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6390set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6391echo "$as_me:$LINENO: checking for $ac_word" >&5
6392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6393if test "${ac_cv_prog_AR+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6395else
05cbd757
PB
6396 if test -n "$AR"; then
6397 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6398else
c6b750e1
DJ
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406 ac_cv_prog_AR="${ncn_progname}"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411done
6412
859789af
AC
6413fi
6414fi
c6b750e1 6415AR=$ac_cv_prog_AR
05cbd757 6416if test -n "$AR"; then
c6b750e1
DJ
6417 echo "$as_me:$LINENO: result: $AR" >&5
6418echo "${ECHO_T}$AR" >&6
859789af 6419else
c6b750e1
DJ
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
859789af 6422fi
c6b750e1 6423
05cbd757
PB
6424 fi
6425 test -n "$ac_cv_prog_AR" && break
6426done
6427
6428if test -z "$ac_cv_prog_AR" ; then
6429 set dummy ar
6430 if test $build = $host ; then
6431 AR="$2"
859789af 6432 else
05cbd757 6433 AR="${ncn_tool_prefix}$2"
859789af 6434 fi
859789af
AC
6435fi
6436
9a819804
AO
6437
6438
6439if test -n "$AS"; then
6440 ac_cv_prog_AS=$AS
6441elif test -n "$ac_cv_prog_AS"; then
6442 AS=$ac_cv_prog_AS
6443fi
6444
6445if test -n "$ac_cv_prog_AS"; then
6446 for ncn_progname in as; do
6447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6448set dummy ${ncn_progname}; ac_word=$2
6449echo "$as_me:$LINENO: checking for $ac_word" >&5
6450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6451if test "${ac_cv_prog_AS+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453else
6454 if test -n "$AS"; then
6455 ac_cv_prog_AS="$AS" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_AS="${ncn_progname}"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468done
6469done
6470
6471fi
6472fi
6473AS=$ac_cv_prog_AS
6474if test -n "$AS"; then
6475 echo "$as_me:$LINENO: result: $AS" >&5
6476echo "${ECHO_T}$AS" >&6
6477else
6478 echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
6480fi
6481
6482 done
6483fi
6484
6485for ncn_progname in as; do
05cbd757
PB
6486 if test -n "$ncn_tool_prefix"; then
6487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6488set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6489echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491if test "${ac_cv_prog_AS+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6493else
6494 if test -n "$AS"; then
6495 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508done
6509done
6510
859789af
AC
6511fi
6512fi
c6b750e1 6513AS=$ac_cv_prog_AS
859789af 6514if test -n "$AS"; then
c6b750e1
DJ
6515 echo "$as_me:$LINENO: result: $AS" >&5
6516echo "${ECHO_T}$AS" >&6
859789af 6517else
c6b750e1
DJ
6518 echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6
859789af
AC
6520fi
6521
05cbd757
PB
6522 fi
6523 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6525set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6526echo "$as_me:$LINENO: checking for $ac_word" >&5
6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528if test "${ac_cv_prog_AS+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6530else
05cbd757
PB
6531 if test -n "$AS"; then
6532 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6533else
c6b750e1
DJ
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_AS="${ncn_progname}"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546done
6547
859789af
AC
6548fi
6549fi
c6b750e1 6550AS=$ac_cv_prog_AS
05cbd757 6551if test -n "$AS"; then
c6b750e1
DJ
6552 echo "$as_me:$LINENO: result: $AS" >&5
6553echo "${ECHO_T}$AS" >&6
859789af 6554else
c6b750e1
DJ
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
859789af 6557fi
c6b750e1 6558
05cbd757
PB
6559 fi
6560 test -n "$ac_cv_prog_AS" && break
6561done
6562
6563if test -z "$ac_cv_prog_AS" ; then
6564 set dummy as
6565 if test $build = $host ; then
6566 AS="$2"
859789af 6567 else
05cbd757 6568 AS="${ncn_tool_prefix}$2"
859789af 6569 fi
859789af
AC
6570fi
6571
9a819804
AO
6572
6573
6574if test -n "$DLLTOOL"; then
6575 ac_cv_prog_DLLTOOL=$DLLTOOL
6576elif test -n "$ac_cv_prog_DLLTOOL"; then
6577 DLLTOOL=$ac_cv_prog_DLLTOOL
6578fi
6579
6580if test -n "$ac_cv_prog_DLLTOOL"; then
6581 for ncn_progname in dlltool; do
6582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6583set dummy ${ncn_progname}; ac_word=$2
6584echo "$as_me:$LINENO: checking for $ac_word" >&5
6585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589 if test -n "$DLLTOOL"; then
6590 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6591else
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_DLLTOOL="${ncn_progname}"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603done
6604done
6605
6606fi
6607fi
6608DLLTOOL=$ac_cv_prog_DLLTOOL
6609if test -n "$DLLTOOL"; then
6610 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6611echo "${ECHO_T}$DLLTOOL" >&6
6612else
6613 echo "$as_me:$LINENO: result: no" >&5
6614echo "${ECHO_T}no" >&6
6615fi
6616
6617 done
6618fi
6619
6620for ncn_progname in dlltool; do
05cbd757
PB
6621 if test -n "$ncn_tool_prefix"; then
6622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6624echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6626if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6628else
6629 if test -n "$DLLTOOL"; then
6630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6631else
c6b750e1
DJ
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643done
6644done
6645
859789af
AC
6646fi
6647fi
c6b750e1 6648DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6649if test -n "$DLLTOOL"; then
c6b750e1
DJ
6650 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6651echo "${ECHO_T}$DLLTOOL" >&6
859789af 6652else
c6b750e1
DJ
6653 echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6
859789af
AC
6655fi
6656
05cbd757
PB
6657 fi
6658 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6660set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6661echo "$as_me:$LINENO: checking for $ac_word" >&5
6662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6663if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6665else
05cbd757
PB
6666 if test -n "$DLLTOOL"; then
6667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6668else
c6b750e1
DJ
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_DLLTOOL="${ncn_progname}"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6679 fi
6680done
6681done
6682
859789af
AC
6683fi
6684fi
c6b750e1 6685DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6686if test -n "$DLLTOOL"; then
c6b750e1
DJ
6687 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6688echo "${ECHO_T}$DLLTOOL" >&6
859789af 6689else
c6b750e1
DJ
6690 echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6
859789af 6692fi
c6b750e1 6693
05cbd757
PB
6694 fi
6695 test -n "$ac_cv_prog_DLLTOOL" && break
6696done
6697
6698if test -z "$ac_cv_prog_DLLTOOL" ; then
6699 set dummy dlltool
6700 if test $build = $host ; then
6701 DLLTOOL="$2"
859789af 6702 else
05cbd757 6703 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6704 fi
859789af
AC
6705fi
6706
9a819804
AO
6707
6708
6709if test -n "$LD"; then
6710 ac_cv_prog_LD=$LD
6711elif test -n "$ac_cv_prog_LD"; then
6712 LD=$ac_cv_prog_LD
6713fi
6714
6715if test -n "$ac_cv_prog_LD"; then
6716 for ncn_progname in ld; do
6717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6718set dummy ${ncn_progname}; ac_word=$2
6719echo "$as_me:$LINENO: checking for $ac_word" >&5
6720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6721if test "${ac_cv_prog_LD+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724 if test -n "$LD"; then
6725 ac_cv_prog_LD="$LD" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_LD="${ncn_progname}"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739done
6740
6741fi
6742fi
6743LD=$ac_cv_prog_LD
6744if test -n "$LD"; then
6745 echo "$as_me:$LINENO: result: $LD" >&5
6746echo "${ECHO_T}$LD" >&6
6747else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750fi
6751
6752 done
6753fi
6754
6755for ncn_progname in ld; do
05cbd757
PB
6756 if test -n "$ncn_tool_prefix"; then
6757 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6758set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6759echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6761if test "${ac_cv_prog_LD+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6763else
6764 if test -n "$LD"; then
6765 ac_cv_prog_LD="$LD" # Let the user override the test.
6766else
c6b750e1
DJ
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778done
6779done
6780
859789af
AC
6781fi
6782fi
c6b750e1 6783LD=$ac_cv_prog_LD
859789af 6784if test -n "$LD"; then
c6b750e1
DJ
6785 echo "$as_me:$LINENO: result: $LD" >&5
6786echo "${ECHO_T}$LD" >&6
859789af 6787else
c6b750e1
DJ
6788 echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6
859789af
AC
6790fi
6791
05cbd757
PB
6792 fi
6793 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6795set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6796echo "$as_me:$LINENO: checking for $ac_word" >&5
6797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6798if test "${ac_cv_prog_LD+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6800else
05cbd757
PB
6801 if test -n "$LD"; then
6802 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6803else
c6b750e1
DJ
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_LD="${ncn_progname}"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815done
6816done
6817
859789af
AC
6818fi
6819fi
c6b750e1 6820LD=$ac_cv_prog_LD
05cbd757 6821if test -n "$LD"; then
c6b750e1
DJ
6822 echo "$as_me:$LINENO: result: $LD" >&5
6823echo "${ECHO_T}$LD" >&6
859789af 6824else
c6b750e1
DJ
6825 echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6
859789af 6827fi
c6b750e1 6828
05cbd757
PB
6829 fi
6830 test -n "$ac_cv_prog_LD" && break
6831done
6832
6833if test -z "$ac_cv_prog_LD" ; then
6834 set dummy ld
6835 if test $build = $host ; then
6836 LD="$2"
859789af 6837 else
05cbd757 6838 LD="${ncn_tool_prefix}$2"
859789af 6839 fi
859789af
AC
6840fi
6841
9a819804
AO
6842
6843
6844if test -n "$LIPO"; then
6845 ac_cv_prog_LIPO=$LIPO
6846elif test -n "$ac_cv_prog_LIPO"; then
6847 LIPO=$ac_cv_prog_LIPO
6848fi
6849
6850if test -n "$ac_cv_prog_LIPO"; then
6851 for ncn_progname in lipo; do
6852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6853set dummy ${ncn_progname}; ac_word=$2
6854echo "$as_me:$LINENO: checking for $ac_word" >&5
6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856if test "${ac_cv_prog_LIPO+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859 if test -n "$LIPO"; then
6860 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_LIPO="${ncn_progname}"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873done
6874done
6875
6876fi
6877fi
6878LIPO=$ac_cv_prog_LIPO
6879if test -n "$LIPO"; then
6880 echo "$as_me:$LINENO: result: $LIPO" >&5
6881echo "${ECHO_T}$LIPO" >&6
6882else
6883 echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
6885fi
6886
6887 done
6888fi
6889
6890for ncn_progname in lipo; do
be01d343
PB
6891 if test -n "$ncn_tool_prefix"; then
6892 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6893set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6894echo "$as_me:$LINENO: checking for $ac_word" >&5
6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6896if test "${ac_cv_prog_LIPO+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6898else
6899 if test -n "$LIPO"; then
6900 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6901else
c6b750e1
DJ
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913done
6914done
6915
be01d343
PB
6916fi
6917fi
c6b750e1 6918LIPO=$ac_cv_prog_LIPO
be01d343 6919if test -n "$LIPO"; then
c6b750e1
DJ
6920 echo "$as_me:$LINENO: result: $LIPO" >&5
6921echo "${ECHO_T}$LIPO" >&6
be01d343 6922else
c6b750e1
DJ
6923 echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6
be01d343
PB
6925fi
6926
6927 fi
6928 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6930set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6931echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6933if test "${ac_cv_prog_LIPO+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6935else
6936 if test -n "$LIPO"; then
6937 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6938else
c6b750e1
DJ
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_LIPO="${ncn_progname}"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950done
6951done
6952
be01d343
PB
6953fi
6954fi
c6b750e1 6955LIPO=$ac_cv_prog_LIPO
be01d343 6956if test -n "$LIPO"; then
c6b750e1
DJ
6957 echo "$as_me:$LINENO: result: $LIPO" >&5
6958echo "${ECHO_T}$LIPO" >&6
be01d343 6959else
c6b750e1
DJ
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
be01d343 6962fi
c6b750e1 6963
be01d343
PB
6964 fi
6965 test -n "$ac_cv_prog_LIPO" && break
6966done
6967
6968if test -z "$ac_cv_prog_LIPO" ; then
6969 set dummy lipo
6970 if test $build = $host ; then
6971 LIPO="$2"
6972 else
6973 LIPO="${ncn_tool_prefix}$2"
6974 fi
6975fi
6976
9a819804
AO
6977
6978
6979if test -n "$NM"; then
6980 ac_cv_prog_NM=$NM
6981elif test -n "$ac_cv_prog_NM"; then
6982 NM=$ac_cv_prog_NM
6983fi
6984
6985if test -n "$ac_cv_prog_NM"; then
6986 for ncn_progname in nm; do
6987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6988set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6989echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6991if test "${ac_cv_prog_NM+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6993else
6994 if test -n "$NM"; then
6995 ac_cv_prog_NM="$NM" # Let the user override the test.
6996else
c6b750e1
DJ
6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7004 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008done
7009done
7010
859789af
AC
7011fi
7012fi
c6b750e1 7013NM=$ac_cv_prog_NM
859789af 7014if test -n "$NM"; then
c6b750e1
DJ
7015 echo "$as_me:$LINENO: result: $NM" >&5
7016echo "${ECHO_T}$NM" >&6
859789af 7017else
c6b750e1
DJ
7018 echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
859789af
AC
7020fi
7021
9a819804
AO
7022 done
7023fi
7024
7025for ncn_progname in nm; do
7026 if test -n "$ncn_tool_prefix"; then
7027 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7028set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7029echo "$as_me:$LINENO: checking for $ac_word" >&5
7030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7031if test "${ac_cv_prog_NM+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7033else
05cbd757
PB
7034 if test -n "$NM"; then
7035 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7036else
c6b750e1
DJ
7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7044 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048done
7049done
7050
859789af
AC
7051fi
7052fi
c6b750e1 7053NM=$ac_cv_prog_NM
05cbd757 7054if test -n "$NM"; then
c6b750e1
DJ
7055 echo "$as_me:$LINENO: result: $NM" >&5
7056echo "${ECHO_T}$NM" >&6
859789af 7057else
c6b750e1
DJ
7058 echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6
859789af 7060fi
c6b750e1 7061
05cbd757 7062 fi
9a819804
AO
7063 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7065set dummy ${ncn_progname}; ac_word=$2
7066echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068if test "${ac_cv_prog_NM+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 if test -n "$NM"; then
7072 ac_cv_prog_NM="$NM" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_NM="${ncn_progname}"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086done
7087
7088fi
7089fi
7090NM=$ac_cv_prog_NM
7091if test -n "$NM"; then
7092 echo "$as_me:$LINENO: result: $NM" >&5
7093echo "${ECHO_T}$NM" >&6
7094else
7095 echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6
7097fi
7098
7099 fi
7100 test -n "$ac_cv_prog_NM" && break
7101done
7102
7103if test -z "$ac_cv_prog_NM" ; then
7104 set dummy nm
7105 if test $build = $host ; then
7106 NM="$2"
7107 else
7108 NM="${ncn_tool_prefix}$2"
7109 fi
7110fi
7111
7112
7113
7114if test -n "$RANLIB"; then
7115 ac_cv_prog_RANLIB=$RANLIB
7116elif test -n "$ac_cv_prog_RANLIB"; then
7117 RANLIB=$ac_cv_prog_RANLIB
7118fi
7119
7120if test -n "$ac_cv_prog_RANLIB"; then
7121 for ncn_progname in ranlib; do
7122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7123set dummy ${ncn_progname}; ac_word=$2
7124echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7126if test "${ac_cv_prog_RANLIB+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129 if test -n "$RANLIB"; then
7130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_RANLIB="${ncn_progname}"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145
7146fi
7147fi
7148RANLIB=$ac_cv_prog_RANLIB
7149if test -n "$RANLIB"; then
7150 echo "$as_me:$LINENO: result: $RANLIB" >&5
7151echo "${ECHO_T}$RANLIB" >&6
7152else
7153 echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6
7155fi
7156
7157 done
7158fi
859789af 7159
9a819804 7160for ncn_progname in ranlib; do
05cbd757
PB
7161 if test -n "$ncn_tool_prefix"; then
7162 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7163set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7164echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7166if test "${ac_cv_prog_RANLIB+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7168else
7169 if test -n "$RANLIB"; then
7170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7171else
c6b750e1
DJ
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183done
7184done
7185
859789af
AC
7186fi
7187fi
c6b750e1 7188RANLIB=$ac_cv_prog_RANLIB
859789af 7189if test -n "$RANLIB"; then
c6b750e1
DJ
7190 echo "$as_me:$LINENO: result: $RANLIB" >&5
7191echo "${ECHO_T}$RANLIB" >&6
859789af 7192else
c6b750e1
DJ
7193 echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6
859789af
AC
7195fi
7196
05cbd757
PB
7197 fi
7198 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7200set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7201echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203if test "${ac_cv_prog_RANLIB+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7205else
05cbd757
PB
7206 if test -n "$RANLIB"; then
7207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7208else
c6b750e1
DJ
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_RANLIB="${ncn_progname}"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221done
7222
859789af
AC
7223fi
7224fi
c6b750e1 7225RANLIB=$ac_cv_prog_RANLIB
05cbd757 7226if test -n "$RANLIB"; then
c6b750e1
DJ
7227 echo "$as_me:$LINENO: result: $RANLIB" >&5
7228echo "${ECHO_T}$RANLIB" >&6
859789af 7229else
c6b750e1
DJ
7230 echo "$as_me:$LINENO: result: no" >&5
7231echo "${ECHO_T}no" >&6
859789af 7232fi
c6b750e1 7233
859789af 7234 fi
05cbd757
PB
7235 test -n "$ac_cv_prog_RANLIB" && break
7236done
7237
7238if test -z "$ac_cv_prog_RANLIB" ; then
7239 RANLIB=":"
859789af
AC
7240fi
7241
9a819804
AO
7242
7243
7244if test -n "$STRIP"; then
7245 ac_cv_prog_STRIP=$STRIP
7246elif test -n "$ac_cv_prog_STRIP"; then
7247 STRIP=$ac_cv_prog_STRIP
7248fi
7249
7250if test -n "$ac_cv_prog_STRIP"; then
7251 for ncn_progname in strip; do
7252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7253set dummy ${ncn_progname}; ac_word=$2
7254echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256if test "${ac_cv_prog_STRIP+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259 if test -n "$STRIP"; then
7260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_STRIP="${ncn_progname}"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274done
7275
7276fi
7277fi
7278STRIP=$ac_cv_prog_STRIP
7279if test -n "$STRIP"; then
7280 echo "$as_me:$LINENO: result: $STRIP" >&5
7281echo "${ECHO_T}$STRIP" >&6
7282else
7283 echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
7285fi
7286
7287 done
7288fi
7289
7290for ncn_progname in strip; do
be01d343
PB
7291 if test -n "$ncn_tool_prefix"; then
7292 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7293set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7294echo "$as_me:$LINENO: checking for $ac_word" >&5
7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296if test "${ac_cv_prog_STRIP+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7298else
7299 if test -n "$STRIP"; then
7300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7301else
c6b750e1
DJ
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313done
7314done
7315
be01d343
PB
7316fi
7317fi
c6b750e1 7318STRIP=$ac_cv_prog_STRIP
be01d343 7319if test -n "$STRIP"; then
c6b750e1
DJ
7320 echo "$as_me:$LINENO: result: $STRIP" >&5
7321echo "${ECHO_T}$STRIP" >&6
be01d343 7322else
c6b750e1
DJ
7323 echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
be01d343
PB
7325fi
7326
7327 fi
7328 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7330set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7331echo "$as_me:$LINENO: checking for $ac_word" >&5
7332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7333if test "${ac_cv_prog_STRIP+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7335else
7336 if test -n "$STRIP"; then
7337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7338else
c6b750e1
DJ
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_STRIP="${ncn_progname}"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350done
7351done
7352
be01d343
PB
7353fi
7354fi
c6b750e1 7355STRIP=$ac_cv_prog_STRIP
be01d343 7356if test -n "$STRIP"; then
c6b750e1
DJ
7357 echo "$as_me:$LINENO: result: $STRIP" >&5
7358echo "${ECHO_T}$STRIP" >&6
be01d343 7359else
c6b750e1
DJ
7360 echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6
be01d343 7362fi
c6b750e1 7363
be01d343
PB
7364 fi
7365 test -n "$ac_cv_prog_STRIP" && break
7366done
7367
7368if test -z "$ac_cv_prog_STRIP" ; then
7369 STRIP=":"
7370fi
7371
9a819804
AO
7372
7373
7374if test -n "$WINDRES"; then
7375 ac_cv_prog_WINDRES=$WINDRES
7376elif test -n "$ac_cv_prog_WINDRES"; then
7377 WINDRES=$ac_cv_prog_WINDRES
7378fi
7379
7380if test -n "$ac_cv_prog_WINDRES"; then
7381 for ncn_progname in windres; do
7382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7383set dummy ${ncn_progname}; ac_word=$2
7384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_prog_WINDRES+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389 if test -n "$WINDRES"; then
7390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_WINDRES="${ncn_progname}"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
7404done
7405
7406fi
7407fi
7408WINDRES=$ac_cv_prog_WINDRES
7409if test -n "$WINDRES"; then
7410 echo "$as_me:$LINENO: result: $WINDRES" >&5
7411echo "${ECHO_T}$WINDRES" >&6
7412else
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415fi
7416
7417 done
7418fi
7419
7420for ncn_progname in windres; do
05cbd757
PB
7421 if test -n "$ncn_tool_prefix"; then
7422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7423set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7424echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426if test "${ac_cv_prog_WINDRES+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7428else
7429 if test -n "$WINDRES"; then
7430 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7431else
c6b750e1
DJ
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443done
7444done
7445
859789af
AC
7446fi
7447fi
c6b750e1 7448WINDRES=$ac_cv_prog_WINDRES
859789af 7449if test -n "$WINDRES"; then
c6b750e1
DJ
7450 echo "$as_me:$LINENO: result: $WINDRES" >&5
7451echo "${ECHO_T}$WINDRES" >&6
859789af 7452else
c6b750e1
DJ
7453 echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6
859789af
AC
7455fi
7456
05cbd757
PB
7457 fi
7458 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7460set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7461echo "$as_me:$LINENO: checking for $ac_word" >&5
7462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463if test "${ac_cv_prog_WINDRES+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7465else
05cbd757
PB
7466 if test -n "$WINDRES"; then
7467 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7468else
c6b750e1
DJ
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_WINDRES="${ncn_progname}"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480done
7481done
7482
859789af
AC
7483fi
7484fi
c6b750e1 7485WINDRES=$ac_cv_prog_WINDRES
05cbd757 7486if test -n "$WINDRES"; then
c6b750e1
DJ
7487 echo "$as_me:$LINENO: result: $WINDRES" >&5
7488echo "${ECHO_T}$WINDRES" >&6
859789af 7489else
c6b750e1
DJ
7490 echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6
859789af 7492fi
c6b750e1 7493
05cbd757
PB
7494 fi
7495 test -n "$ac_cv_prog_WINDRES" && break
7496done
7497
7498if test -z "$ac_cv_prog_WINDRES" ; then
7499 set dummy windres
7500 if test $build = $host ; then
7501 WINDRES="$2"
859789af 7502 else
05cbd757 7503 WINDRES="${ncn_tool_prefix}$2"
859789af 7504 fi
859789af
AC
7505fi
7506
9a819804
AO
7507
7508
0c24b341
NC
7509if test -n "$WINDMC"; then
7510 ac_cv_prog_WINDMC=$WINDMC
7511elif test -n "$ac_cv_prog_WINDMC"; then
7512 WINDMC=$ac_cv_prog_WINDMC
7513fi
7514
7515if test -n "$ac_cv_prog_WINDMC"; then
7516 for ncn_progname in windmc; do
7517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7518set dummy ${ncn_progname}; ac_word=$2
7519echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7521if test "${ac_cv_prog_WINDMC+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524 if test -n "$WINDMC"; then
7525 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_WINDMC="${ncn_progname}"
7535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538done
7539done
7540
7541fi
7542fi
7543WINDMC=$ac_cv_prog_WINDMC
7544if test -n "$WINDMC"; then
7545 echo "$as_me:$LINENO: result: $WINDMC" >&5
7546echo "${ECHO_T}$WINDMC" >&6
7547else
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
7550fi
7551
7552 done
7553fi
7554
7555for ncn_progname in windmc; do
7556 if test -n "$ncn_tool_prefix"; then
7557 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7558set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7559echo "$as_me:$LINENO: checking for $ac_word" >&5
7560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7561if test "${ac_cv_prog_WINDMC+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564 if test -n "$WINDMC"; then
7565 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7566else
7567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568for as_dir in $PATH
7569do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578done
7579done
7580
7581fi
7582fi
7583WINDMC=$ac_cv_prog_WINDMC
7584if test -n "$WINDMC"; then
7585 echo "$as_me:$LINENO: result: $WINDMC" >&5
7586echo "${ECHO_T}$WINDMC" >&6
7587else
7588 echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
7590fi
7591
7592 fi
7593 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7595set dummy ${ncn_progname}; ac_word=$2
7596echo "$as_me:$LINENO: checking for $ac_word" >&5
7597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7598if test "${ac_cv_prog_WINDMC+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600else
7601 if test -n "$WINDMC"; then
7602 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7603else
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611 ac_cv_prog_WINDMC="${ncn_progname}"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615done
7616done
7617
7618fi
7619fi
7620WINDMC=$ac_cv_prog_WINDMC
7621if test -n "$WINDMC"; then
7622 echo "$as_me:$LINENO: result: $WINDMC" >&5
7623echo "${ECHO_T}$WINDMC" >&6
7624else
7625 echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6
7627fi
7628
7629 fi
7630 test -n "$ac_cv_prog_WINDMC" && break
7631done
7632
7633if test -z "$ac_cv_prog_WINDMC" ; then
7634 set dummy windmc
7635 if test $build = $host ; then
7636 WINDMC="$2"
7637 else
7638 WINDMC="${ncn_tool_prefix}$2"
7639 fi
7640fi
7641
7642
7643
9a819804
AO
7644if test -n "$OBJCOPY"; then
7645 ac_cv_prog_OBJCOPY=$OBJCOPY
7646elif test -n "$ac_cv_prog_OBJCOPY"; then
7647 OBJCOPY=$ac_cv_prog_OBJCOPY
7648fi
7649
7650if test -n "$ac_cv_prog_OBJCOPY"; then
7651 for ncn_progname in objcopy; do
7652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7653set dummy ${ncn_progname}; ac_word=$2
7654echo "$as_me:$LINENO: checking for $ac_word" >&5
7655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7656if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659 if test -n "$OBJCOPY"; then
7660 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7661else
7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_OBJCOPY="${ncn_progname}"
7670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673done
7674done
7675
7676fi
7677fi
7678OBJCOPY=$ac_cv_prog_OBJCOPY
7679if test -n "$OBJCOPY"; then
7680 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7681echo "${ECHO_T}$OBJCOPY" >&6
7682else
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
7685fi
7686
7687 done
7688fi
7689
7690for ncn_progname in objcopy; do
05cbd757
PB
7691 if test -n "$ncn_tool_prefix"; then
7692 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7693set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7694echo "$as_me:$LINENO: checking for $ac_word" >&5
7695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7696if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7698else
7699 if test -n "$OBJCOPY"; then
7700 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7701else
c6b750e1
DJ
7702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703for as_dir in $PATH
7704do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7712 fi
7713done
7714done
7715
859789af
AC
7716fi
7717fi
c6b750e1 7718OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7719if test -n "$OBJCOPY"; then
c6b750e1
DJ
7720 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7721echo "${ECHO_T}$OBJCOPY" >&6
859789af 7722else
c6b750e1
DJ
7723 echo "$as_me:$LINENO: result: no" >&5
7724echo "${ECHO_T}no" >&6
859789af
AC
7725fi
7726
05cbd757
PB
7727 fi
7728 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7730set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7731echo "$as_me:$LINENO: checking for $ac_word" >&5
7732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7733if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7735else
05cbd757
PB
7736 if test -n "$OBJCOPY"; then
7737 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7738else
c6b750e1
DJ
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_OBJCOPY="${ncn_progname}"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751done
7752
859789af
AC
7753fi
7754fi
c6b750e1 7755OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7756if test -n "$OBJCOPY"; then
c6b750e1
DJ
7757 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7758echo "${ECHO_T}$OBJCOPY" >&6
859789af 7759else
c6b750e1
DJ
7760 echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6
859789af 7762fi
c6b750e1 7763
05cbd757
PB
7764 fi
7765 test -n "$ac_cv_prog_OBJCOPY" && break
7766done
7767
7768if test -z "$ac_cv_prog_OBJCOPY" ; then
7769 set dummy objcopy
7770 if test $build = $host ; then
7771 OBJCOPY="$2"
859789af 7772 else
05cbd757 7773 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7774 fi
859789af
AC
7775fi
7776
9a819804
AO
7777
7778
7779if test -n "$OBJDUMP"; then
7780 ac_cv_prog_OBJDUMP=$OBJDUMP
7781elif test -n "$ac_cv_prog_OBJDUMP"; then
7782 OBJDUMP=$ac_cv_prog_OBJDUMP
7783fi
7784
7785if test -n "$ac_cv_prog_OBJDUMP"; then
7786 for ncn_progname in objdump; do
7787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7788set dummy ${ncn_progname}; ac_word=$2
7789echo "$as_me:$LINENO: checking for $ac_word" >&5
7790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7791if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 if test -n "$OBJDUMP"; then
7795 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7796else
7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_OBJDUMP="${ncn_progname}"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7807 fi
7808done
7809done
7810
7811fi
7812fi
7813OBJDUMP=$ac_cv_prog_OBJDUMP
7814if test -n "$OBJDUMP"; then
7815 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7816echo "${ECHO_T}$OBJDUMP" >&6
7817else
7818 echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6
7820fi
7821
7822 done
7823fi
7824
7825for ncn_progname in objdump; do
05cbd757
PB
7826 if test -n "$ncn_tool_prefix"; then
7827 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7828set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7829echo "$as_me:$LINENO: checking for $ac_word" >&5
7830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7831if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7833else
7834 if test -n "$OBJDUMP"; then
7835 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7836else
c6b750e1
DJ
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848done
7849done
7850
859789af
AC
7851fi
7852fi
c6b750e1 7853OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7854if test -n "$OBJDUMP"; then
c6b750e1
DJ
7855 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7856echo "${ECHO_T}$OBJDUMP" >&6
859789af 7857else
c6b750e1
DJ
7858 echo "$as_me:$LINENO: result: no" >&5
7859echo "${ECHO_T}no" >&6
859789af
AC
7860fi
7861
05cbd757
PB
7862 fi
7863 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7865set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7866echo "$as_me:$LINENO: checking for $ac_word" >&5
7867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7868if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7870else
05cbd757
PB
7871 if test -n "$OBJDUMP"; then
7872 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7873else
c6b750e1
DJ
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881 ac_cv_prog_OBJDUMP="${ncn_progname}"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7884 fi
7885done
7886done
7887
859789af
AC
7888fi
7889fi
c6b750e1 7890OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7891if test -n "$OBJDUMP"; then
c6b750e1
DJ
7892 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7893echo "${ECHO_T}$OBJDUMP" >&6
859789af 7894else
c6b750e1
DJ
7895 echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6
859789af 7897fi
c6b750e1 7898
05cbd757
PB
7899 fi
7900 test -n "$ac_cv_prog_OBJDUMP" && break
7901done
7902
7903if test -z "$ac_cv_prog_OBJDUMP" ; then
7904 set dummy objdump
7905 if test $build = $host ; then
7906 OBJDUMP="$2"
859789af 7907 else
05cbd757 7908 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7909 fi
859789af
AC
7910fi
7911
a0da8069
NN
7912
7913
7914
7915
7916
7917
be01d343 7918# Target tools.
c6b750e1 7919
2429c060
PB
7920# Check whether --with-build-time-tools or --without-build-time-tools was given.
7921if test "${with_build_time_tools+set}" = set; then
7922 withval="$with_build_time_tools"
7923 case x"$withval" in
7924 x/*) ;;
7925 *)
7926 with_build_time_tools=
c6b750e1
DJ
7927 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7928echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7929 ;;
7930 esac
859789af 7931else
2429c060 7932 with_build_time_tools=
c6b750e1 7933fi;
859789af 7934
9a819804
AO
7935
7936
7937if test -n "$CC_FOR_TARGET"; then
7938 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7939elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7940 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7941fi
7942
7943if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7944 for ncn_progname in cc gcc; do
7945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7946set dummy ${ncn_progname}; ac_word=$2
7947echo "$as_me:$LINENO: checking for $ac_word" >&5
7948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7949if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951else
7952 if test -n "$CC_FOR_TARGET"; then
7953 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7954else
7955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966done
7967done
7968
7969fi
7970fi
7971CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7972if test -n "$CC_FOR_TARGET"; then
7973 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7974echo "${ECHO_T}$CC_FOR_TARGET" >&6
7975else
7976 echo "$as_me:$LINENO: result: no" >&5
7977echo "${ECHO_T}no" >&6
7978fi
7979
7980 done
7981fi
7982
7983if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7984 for ncn_progname in cc gcc; do
c6b750e1
DJ
7985 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7986echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7987 if test -x $with_build_time_tools/${ncn_progname}; then
7988 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7989 echo "$as_me:$LINENO: result: yes" >&5
7990echo "${ECHO_T}yes" >&6
cac3d6c4 7991 break
2429c060 7992 else
c6b750e1
DJ
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
cac3d6c4
CM
7995 fi
7996 done
55db4b87
PB
7997fi
7998
2429c060
PB
7999if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8000 for ncn_progname in cc gcc; do
8001 if test -n "$ncn_target_tool_prefix"; then
8002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8003set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8004echo "$as_me:$LINENO: checking for $ac_word" >&5
8005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8006if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8008else
8009 if test -n "$CC_FOR_TARGET"; then
8010 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8011else
c6b750e1
DJ
8012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013for as_dir in $PATH
8014do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023done
8024done
8025
55db4b87
PB
8026fi
8027fi
c6b750e1 8028CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8029if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8030 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8031echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8032else
c6b750e1
DJ
8033 echo "$as_me:$LINENO: result: no" >&5
8034echo "${ECHO_T}no" >&6
55db4b87
PB
8035fi
8036
2429c060
PB
8037 fi
8038 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8040set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8041echo "$as_me:$LINENO: checking for $ac_word" >&5
8042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8043if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8045else
05cbd757
PB
8046 if test -n "$CC_FOR_TARGET"; then
8047 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8048else
c6b750e1
DJ
8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $PATH
8051do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060done
8061done
8062
55db4b87
PB
8063fi
8064fi
c6b750e1 8065CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8066if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8067 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8068echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8069else
c6b750e1
DJ
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
55db4b87 8072fi
c6b750e1 8073
2429c060
PB
8074 fi
8075 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8076 done
8077fi
c6b750e1 8078
05cbd757
PB
8079if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8080 set dummy cc gcc
8081 if test $build = $target ; then
8082 CC_FOR_TARGET="$2"
55db4b87 8083 else
05cbd757 8084 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8085 fi
d3f5afc4
MS
8086else
8087 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8088fi
8089
9a819804
AO
8090
8091
8092if test -n "$CXX_FOR_TARGET"; then
8093 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8094elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8095 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8096fi
8097
8098if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8099 for ncn_progname in c++ g++ cxx gxx; do
8100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8101set dummy ${ncn_progname}; ac_word=$2
8102echo "$as_me:$LINENO: checking for $ac_word" >&5
8103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8104if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107 if test -n "$CXX_FOR_TARGET"; then
8108 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8109else
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_CXX_FOR_TARGET="${ncn_progname}"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121done
8122done
8123
8124fi
8125fi
8126CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8127if test -n "$CXX_FOR_TARGET"; then
8128 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8129echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8130else
8131 echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6
8133fi
8134
8135 done
8136fi
8137
8138if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8139 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8140 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8141echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8142 if test -x $with_build_time_tools/${ncn_progname}; then
8143 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8144 echo "$as_me:$LINENO: result: yes" >&5
8145echo "${ECHO_T}yes" >&6
2429c060
PB
8146 break
8147 else
c6b750e1
DJ
8148 echo "$as_me:$LINENO: result: no" >&5
8149echo "${ECHO_T}no" >&6
2429c060
PB
8150 fi
8151 done
8152fi
8153
8154if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8155 for ncn_progname in c++ g++ cxx gxx; do
8156 if test -n "$ncn_target_tool_prefix"; then
8157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8158set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8159echo "$as_me:$LINENO: checking for $ac_word" >&5
8160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8161if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8163else
8164 if test -n "$CXX_FOR_TARGET"; then
8165 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8166else
c6b750e1
DJ
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178done
8179done
8180
55db4b87
PB
8181fi
8182fi
c6b750e1 8183CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8184if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8185 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8186echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8187else
c6b750e1
DJ
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
55db4b87
PB
8190fi
8191
2429c060
PB
8192 fi
8193 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8195set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8196echo "$as_me:$LINENO: checking for $ac_word" >&5
8197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8198if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8200else
05cbd757
PB
8201 if test -n "$CXX_FOR_TARGET"; then
8202 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8203else
c6b750e1
DJ
8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215done
8216done
8217
55db4b87
PB
8218fi
8219fi
c6b750e1 8220CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8221if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8222 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8223echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8224else
c6b750e1
DJ
8225 echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6
55db4b87 8227fi
c6b750e1 8228
2429c060
PB
8229 fi
8230 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8231 done
8232fi
c6b750e1 8233
05cbd757
PB
8234if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8235 set dummy c++ g++ cxx gxx
8236 if test $build = $target ; then
8237 CXX_FOR_TARGET="$2"
55db4b87 8238 else
05cbd757 8239 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8240 fi
d3f5afc4
MS
8241else
8242 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8243fi
8244
9a819804
AO
8245
8246
8247if test -n "$GCC_FOR_TARGET"; then
8248 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8249elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8250 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8251fi
8252
8253if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8254 for ncn_progname in gcc; do
8255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8256set dummy ${ncn_progname}; ac_word=$2
8257echo "$as_me:$LINENO: checking for $ac_word" >&5
8258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8259if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261else
8262 if test -n "$GCC_FOR_TARGET"; then
8263 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8264else
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276done
8277done
8278
8279fi
8280fi
8281GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8282if test -n "$GCC_FOR_TARGET"; then
8283 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8284echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8285else
8286 echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6
8288fi
8289
8290 done
8291fi
8292
8293if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8294 for ncn_progname in gcc; do
c6b750e1
DJ
8295 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8296echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8297 if test -x $with_build_time_tools/${ncn_progname}; then
8298 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8299 echo "$as_me:$LINENO: result: yes" >&5
8300echo "${ECHO_T}yes" >&6
2429c060
PB
8301 break
8302 else
c6b750e1
DJ
8303 echo "$as_me:$LINENO: result: no" >&5
8304echo "${ECHO_T}no" >&6
2429c060
PB
8305 fi
8306 done
8307fi
8308
8309if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8310 for ncn_progname in gcc; do
8311 if test -n "$ncn_target_tool_prefix"; then
8312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8313set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8314echo "$as_me:$LINENO: checking for $ac_word" >&5
8315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8316if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8318else
2429c060
PB
8319 if test -n "$GCC_FOR_TARGET"; then
8320 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8321else
c6b750e1
DJ
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333done
8334done
8335
55db4b87
PB
8336fi
8337fi
c6b750e1 8338GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8339if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8340 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8341echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8342else
c6b750e1
DJ
8343 echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6
55db4b87
PB
8345fi
8346
2429c060
PB
8347 fi
8348 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8350set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8351echo "$as_me:$LINENO: checking for $ac_word" >&5
8352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8353if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8355else
05cbd757
PB
8356 if test -n "$GCC_FOR_TARGET"; then
8357 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8358else
c6b750e1
DJ
8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370done
8371done
8372
55db4b87
PB
8373fi
8374fi
c6b750e1 8375GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8376if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8377 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8378echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8379else
c6b750e1
DJ
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
55db4b87 8382fi
c6b750e1 8383
2429c060
PB
8384 fi
8385 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8386 done
8387fi
c6b750e1 8388
05cbd757
PB
8389if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8390 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8391else
8392 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8393fi
8394
9a819804
AO
8395
8396
8397if test -n "$GCJ_FOR_TARGET"; then
8398 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8399elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8400 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8401fi
8402
8403if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8404 for ncn_progname in gcj; do
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
8407echo "$as_me:$LINENO: checking for $ac_word" >&5
8408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8409if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 if test -n "$GCJ_FOR_TARGET"; then
8413 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426done
8427done
8428
8429fi
8430fi
8431GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8432if test -n "$GCJ_FOR_TARGET"; then
8433 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8434echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8435else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438fi
8439
8440 done
8441fi
8442
8443if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8444 for ncn_progname in gcj; do
c6b750e1
DJ
8445 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8446echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8447 if test -x $with_build_time_tools/${ncn_progname}; then
8448 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8449 echo "$as_me:$LINENO: result: yes" >&5
8450echo "${ECHO_T}yes" >&6
2429c060
PB
8451 break
8452 else
c6b750e1
DJ
8453 echo "$as_me:$LINENO: result: no" >&5
8454echo "${ECHO_T}no" >&6
2429c060
PB
8455 fi
8456 done
8457fi
8458
8459if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8460 for ncn_progname in gcj; do
8461 if test -n "$ncn_target_tool_prefix"; then
8462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8463set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8464echo "$as_me:$LINENO: checking for $ac_word" >&5
8465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8466if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8468else
8469 if test -n "$GCJ_FOR_TARGET"; then
8470 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8471else
c6b750e1
DJ
8472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473for as_dir in $PATH
8474do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483done
8484done
8485
55db4b87
PB
8486fi
8487fi
9a819804
AO
8488GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8489if test -n "$GCJ_FOR_TARGET"; then
8490 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8491echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8492else
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
8495fi
8496
8497 fi
8498 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8500set dummy ${ncn_progname}; ac_word=$2
8501echo "$as_me:$LINENO: checking for $ac_word" >&5
8502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8503if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8505else
8506 if test -n "$GCJ_FOR_TARGET"; then
8507 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8508else
8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520done
8521done
8522
8523fi
8524fi
8525GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8526if test -n "$GCJ_FOR_TARGET"; then
8527 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8528echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8529else
8530 echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6
8532fi
8533
8534 fi
8535 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8536 done
8537fi
8538
8539if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8540 set dummy gcj
8541 if test $build = $target ; then
8542 GCJ_FOR_TARGET="$2"
8543 else
8544 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8545 fi
d3f5afc4
MS
8546else
8547 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8548fi
8549
8550
8551
8552if test -n "$GFORTRAN_FOR_TARGET"; then
8553 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8554elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8555 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8556fi
8557
9a819804
AO
8558if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8559 for ncn_progname in gfortran; do
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8561set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8562echo "$as_me:$LINENO: checking for $ac_word" >&5
8563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8564if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8565 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8566else
9a819804
AO
8567 if test -n "$GFORTRAN_FOR_TARGET"; then
8568 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8569else
c6b750e1
DJ
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8577 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581done
8582done
8583
55db4b87
PB
8584fi
8585fi
9a819804
AO
8586GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8587if test -n "$GFORTRAN_FOR_TARGET"; then
8588 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8589echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8590else
c6b750e1
DJ
8591 echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6
55db4b87 8593fi
c6b750e1 8594
2429c060
PB
8595 done
8596fi
c6b750e1 8597
9a819804 8598if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8599 for ncn_progname in gfortran; do
c6b750e1
DJ
8600 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8601echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8602 if test -x $with_build_time_tools/${ncn_progname}; then
8603 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
2429c060
PB
8606 break
8607 else
c6b750e1
DJ
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
2429c060
PB
8610 fi
8611 done
8612fi
8613
8614if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8615 for ncn_progname in gfortran; do
8616 if test -n "$ncn_target_tool_prefix"; then
8617 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8618set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8619echo "$as_me:$LINENO: checking for $ac_word" >&5
8620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8623else
8624 if test -n "$GFORTRAN_FOR_TARGET"; then
8625 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8626else
c6b750e1
DJ
8627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628for as_dir in $PATH
8629do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638done
8639done
8640
55db4b87
PB
8641fi
8642fi
c6b750e1 8643GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8644if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8645 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8646echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8647else
c6b750e1
DJ
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
55db4b87
PB
8650fi
8651
2429c060
PB
8652 fi
8653 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8655set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
8657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8660else
05cbd757 8661 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8662 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675done
8676done
8677
55db4b87
PB
8678fi
8679fi
c6b750e1 8680GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8681if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8682 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8683echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8684else
c6b750e1
DJ
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
55db4b87 8687fi
c6b750e1 8688
2429c060
PB
8689 fi
8690 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8691 done
8692fi
c6b750e1 8693
05cbd757
PB
8694if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8695 set dummy gfortran
8696 if test $build = $target ; then
8697 GFORTRAN_FOR_TARGET="$2"
55db4b87 8698 else
05cbd757 8699 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8700 fi
d3f5afc4
MS
8701else
8702 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8703fi
8704
2429c060
PB
8705
8706
2429c060
PB
8707cat > conftest.c << \EOF
8708#ifdef __GNUC__
8709 gcc_yay;
8710#endif
8711EOF
8712if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8713 have_gcc_for_target=yes
859789af 8714else
2429c060
PB
8715 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8716 have_gcc_for_target=no
859789af 8717fi
2429c060
PB
8718rm conftest.c
8719
8720
8721
859789af 8722
2429c060
PB
8723if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8724 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8725 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8726echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8727 if test -x $with_build_time_tools/ar; then
8728 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8729 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8730 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8731echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8732 else
c6b750e1
DJ
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
3a35eeb3 8735 fi
2429c060
PB
8736 elif test $build != $host && test $have_gcc_for_target = yes; then
8737 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8738 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8739 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8740 fi
2429c060 8741fi
c6b750e1 8742if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8743 # Extract the first word of "ar", so it can be a program name with args.
8744set dummy ar; ac_word=$2
c6b750e1
DJ
8745echo "$as_me:$LINENO: checking for $ac_word" >&5
8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8749else
c6b750e1
DJ
8750 case $AR_FOR_TARGET in
8751 [\\/]* | ?:[\\/]*)
2429c060
PB
8752 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8753 ;;
2429c060 8754 *)
c6b750e1
DJ
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756for as_dir in $gcc_cv_tool_dirs
8757do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8762 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 break 2
8765 fi
8766done
8767done
8768
2429c060
PB
8769 ;;
8770esac
859789af 8771fi
c6b750e1
DJ
8772AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8773
2429c060 8774if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8775 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8776echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8777else
c6b750e1
DJ
8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
859789af 8780fi
05cbd757 8781
2429c060
PB
8782fi
8783if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8784
8785
8786if test -n "$AR_FOR_TARGET"; then
8787 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8788elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8789 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8790fi
8791
8792if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8793 for ncn_progname in ar; do
8794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795set dummy ${ncn_progname}; ac_word=$2
8796echo "$as_me:$LINENO: checking for $ac_word" >&5
8797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8798if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801 if test -n "$AR_FOR_TARGET"; then
8802 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8803else
8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8811 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8814 fi
8815done
8816done
8817
8818fi
8819fi
8820AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8821if test -n "$AR_FOR_TARGET"; then
8822 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8823echo "${ECHO_T}$AR_FOR_TARGET" >&6
8824else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827fi
8828
8829 done
8830fi
8831
8832if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8833 for ncn_progname in ar; do
c6b750e1
DJ
8834 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8835echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8836 if test -x $with_build_time_tools/${ncn_progname}; then
8837 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8838 echo "$as_me:$LINENO: result: yes" >&5
8839echo "${ECHO_T}yes" >&6
2429c060
PB
8840 break
8841 else
c6b750e1
DJ
8842 echo "$as_me:$LINENO: result: no" >&5
8843echo "${ECHO_T}no" >&6
2429c060
PB
8844 fi
8845 done
859789af
AC
8846fi
8847
2429c060
PB
8848if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8849 for ncn_progname in ar; do
8850 if test -n "$ncn_target_tool_prefix"; then
8851 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8852set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8853echo "$as_me:$LINENO: checking for $ac_word" >&5
8854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8855if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8857else
2429c060
PB
8858 if test -n "$AR_FOR_TARGET"; then
8859 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8860else
c6b750e1
DJ
8861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862for as_dir in $PATH
8863do
8864 IFS=$as_save_IFS
8865 test -z "$as_dir" && as_dir=.
8866 for ac_exec_ext in '' $ac_executable_extensions; do
8867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8868 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8870 break 2
8871 fi
8872done
8873done
8874
7e0f7140
GK
8875fi
8876fi
c6b750e1 8877AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8878if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8879 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8880echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8881else
c6b750e1
DJ
8882 echo "$as_me:$LINENO: result: no" >&5
8883echo "${ECHO_T}no" >&6
7e0f7140
GK
8884fi
8885
2429c060
PB
8886 fi
8887 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8889set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8890echo "$as_me:$LINENO: checking for $ac_word" >&5
8891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8892if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8894else
2429c060
PB
8895 if test -n "$AR_FOR_TARGET"; then
8896 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8897else
c6b750e1
DJ
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8908 fi
8909done
8910done
8911
7e0f7140
GK
8912fi
8913fi
c6b750e1 8914AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8915if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8916 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8917echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8918else
c6b750e1
DJ
8919 echo "$as_me:$LINENO: result: no" >&5
8920echo "${ECHO_T}no" >&6
7e0f7140 8921fi
c6b750e1 8922
2429c060
PB
8923 fi
8924 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8925 done
8926fi
c6b750e1 8927
2429c060
PB
8928if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8929 set dummy ar
7e0f7140 8930 if test $build = $target ; then
2429c060 8931 AR_FOR_TARGET="$2"
7e0f7140 8932 else
2429c060 8933 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8934 fi
d3f5afc4
MS
8935else
8936 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8937fi
8938
3a35eeb3
PB
8939else
8940 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8941fi
8942
8943
8944
8945
8946if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8947 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8948 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8949echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8950 if test -x $with_build_time_tools/as; then
8951 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8952 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8953 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8954echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8955 else
c6b750e1
DJ
8956 echo "$as_me:$LINENO: result: no" >&5
8957echo "${ECHO_T}no" >&6
3a35eeb3 8958 fi
2429c060
PB
8959 elif test $build != $host && test $have_gcc_for_target = yes; then
8960 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8961 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8962 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8963 fi
8964fi
c6b750e1 8965if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8966 # Extract the first word of "as", so it can be a program name with args.
8967set dummy as; ac_word=$2
c6b750e1
DJ
8968echo "$as_me:$LINENO: checking for $ac_word" >&5
8969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8970if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8972else
c6b750e1
DJ
8973 case $AS_FOR_TARGET in
8974 [\\/]* | ?:[\\/]*)
2429c060
PB
8975 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8976 ;;
2429c060 8977 *)
c6b750e1
DJ
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $gcc_cv_tool_dirs
8980do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 break 2
8988 fi
8989done
8990done
8991
2429c060
PB
8992 ;;
8993esac
8994fi
c6b750e1
DJ
8995AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8996
2429c060 8997if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8998 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8999echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9000else
c6b750e1
DJ
9001 echo "$as_me:$LINENO: result: no" >&5
9002echo "${ECHO_T}no" >&6
2429c060
PB
9003fi
9004
9005fi
9006if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9007
9008
9009if test -n "$AS_FOR_TARGET"; then
9010 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9011elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9012 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9013fi
9014
9015if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9016 for ncn_progname in as; do
9017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9018set dummy ${ncn_progname}; ac_word=$2
9019echo "$as_me:$LINENO: checking for $ac_word" >&5
9020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024 if test -n "$AS_FOR_TARGET"; then
9025 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9026else
9027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028for as_dir in $PATH
9029do
9030 IFS=$as_save_IFS
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 break 2
9037 fi
9038done
9039done
9040
9041fi
9042fi
9043AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9044if test -n "$AS_FOR_TARGET"; then
9045 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9046echo "${ECHO_T}$AS_FOR_TARGET" >&6
9047else
9048 echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
9050fi
9051
9052 done
9053fi
9054
9055if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9056 for ncn_progname in as; do
c6b750e1
DJ
9057 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9058echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9059 if test -x $with_build_time_tools/${ncn_progname}; then
9060 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9061 echo "$as_me:$LINENO: result: yes" >&5
9062echo "${ECHO_T}yes" >&6
2429c060
PB
9063 break
9064 else
c6b750e1
DJ
9065 echo "$as_me:$LINENO: result: no" >&5
9066echo "${ECHO_T}no" >&6
2429c060
PB
9067 fi
9068 done
9069fi
9070
9071if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9072 for ncn_progname in as; do
9073 if test -n "$ncn_target_tool_prefix"; then
9074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9075set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9076echo "$as_me:$LINENO: checking for $ac_word" >&5
9077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9078if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9080else
9081 if test -n "$AS_FOR_TARGET"; then
9082 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9083else
c6b750e1
DJ
9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9091 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 break 2
9094 fi
9095done
9096done
9097
2429c060
PB
9098fi
9099fi
c6b750e1 9100AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9101if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9102 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9103echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9104else
c6b750e1
DJ
9105 echo "$as_me:$LINENO: result: no" >&5
9106echo "${ECHO_T}no" >&6
2429c060
PB
9107fi
9108
9109 fi
9110 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9112set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9113echo "$as_me:$LINENO: checking for $ac_word" >&5
9114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9115if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9117else
9118 if test -n "$AS_FOR_TARGET"; then
9119 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9120else
c6b750e1
DJ
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9131 fi
9132done
9133done
9134
2429c060
PB
9135fi
9136fi
c6b750e1 9137AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9138if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9139 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9140echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9141else
c6b750e1
DJ
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
2429c060 9144fi
c6b750e1 9145
2429c060
PB
9146 fi
9147 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9148 done
9149fi
c6b750e1 9150
2429c060
PB
9151if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9152 set dummy as
9153 if test $build = $target ; then
9154 AS_FOR_TARGET="$2"
9155 else
9156 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9157 fi
d3f5afc4
MS
9158else
9159 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9160fi
9161
3a35eeb3
PB
9162else
9163 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9164fi
9165
9166
9167
9168
9169if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9170 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9171 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9172echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9173 if test -x $with_build_time_tools/dlltool; then
9174 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9175 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9176 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9177echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9178 else
c6b750e1
DJ
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
3a35eeb3 9181 fi
2429c060
PB
9182 elif test $build != $host && test $have_gcc_for_target = yes; then
9183 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9184 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9185 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9186 fi
9187fi
c6b750e1 9188if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9189 # Extract the first word of "dlltool", so it can be a program name with args.
9190set dummy dlltool; ac_word=$2
c6b750e1
DJ
9191echo "$as_me:$LINENO: checking for $ac_word" >&5
9192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9193if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9195else
c6b750e1
DJ
9196 case $DLLTOOL_FOR_TARGET in
9197 [\\/]* | ?:[\\/]*)
2429c060
PB
9198 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9199 ;;
2429c060 9200 *)
c6b750e1
DJ
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202for as_dir in $gcc_cv_tool_dirs
9203do
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
9207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9208 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 break 2
9211 fi
9212done
9213done
9214
2429c060
PB
9215 ;;
9216esac
9217fi
c6b750e1
DJ
9218DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9219
2429c060 9220if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9221 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9222echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9223else
c6b750e1
DJ
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
2429c060
PB
9226fi
9227
9228fi
9229if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9230
9231
9232if test -n "$DLLTOOL_FOR_TARGET"; then
9233 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9234elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9235 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9236fi
9237
9238if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9239 for ncn_progname in dlltool; do
9240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9241set dummy ${ncn_progname}; ac_word=$2
9242echo "$as_me:$LINENO: checking for $ac_word" >&5
9243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9244if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9246else
9247 if test -n "$DLLTOOL_FOR_TARGET"; then
9248 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9249else
9250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251for as_dir in $PATH
9252do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9260 fi
9261done
9262done
9263
9264fi
9265fi
9266DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9267if test -n "$DLLTOOL_FOR_TARGET"; then
9268 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9269echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9270else
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
9273fi
9274
9275 done
9276fi
9277
9278if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9279 for ncn_progname in dlltool; do
c6b750e1
DJ
9280 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9281echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9282 if test -x $with_build_time_tools/${ncn_progname}; then
9283 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9284 echo "$as_me:$LINENO: result: yes" >&5
9285echo "${ECHO_T}yes" >&6
2429c060
PB
9286 break
9287 else
c6b750e1
DJ
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
2429c060
PB
9290 fi
9291 done
9292fi
9293
9294if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9295 for ncn_progname in dlltool; do
9296 if test -n "$ncn_target_tool_prefix"; then
9297 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9298set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9299echo "$as_me:$LINENO: checking for $ac_word" >&5
9300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9301if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9303else
9304 if test -n "$DLLTOOL_FOR_TARGET"; then
9305 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9306else
c6b750e1
DJ
9307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308for as_dir in $PATH
9309do
9310 IFS=$as_save_IFS
9311 test -z "$as_dir" && as_dir=.
9312 for ac_exec_ext in '' $ac_executable_extensions; do
9313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9314 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9316 break 2
9317 fi
9318done
9319done
9320
2429c060
PB
9321fi
9322fi
c6b750e1 9323DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9324if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9325 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9326echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9327else
c6b750e1
DJ
9328 echo "$as_me:$LINENO: result: no" >&5
9329echo "${ECHO_T}no" >&6
2429c060
PB
9330fi
9331
9332 fi
9333 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9335set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9336echo "$as_me:$LINENO: checking for $ac_word" >&5
9337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9338if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9340else
9341 if test -n "$DLLTOOL_FOR_TARGET"; then
9342 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9343else
c6b750e1
DJ
9344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345for as_dir in $PATH
9346do
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9351 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9354 fi
9355done
9356done
9357
2429c060
PB
9358fi
9359fi
c6b750e1 9360DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9361if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9362 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9363echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9364else
c6b750e1
DJ
9365 echo "$as_me:$LINENO: result: no" >&5
9366echo "${ECHO_T}no" >&6
2429c060 9367fi
c6b750e1 9368
2429c060
PB
9369 fi
9370 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9371 done
9372fi
c6b750e1 9373
2429c060
PB
9374if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9375 set dummy dlltool
9376 if test $build = $target ; then
9377 DLLTOOL_FOR_TARGET="$2"
9378 else
9379 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9380 fi
d3f5afc4
MS
9381else
9382 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9383fi
9384
3a35eeb3
PB
9385else
9386 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9387fi
9388
9389
9390
9391
9392if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9393 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9394 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9395echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9396 if test -x $with_build_time_tools/ld; then
9397 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9398 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9399 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9400echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9401 else
c6b750e1
DJ
9402 echo "$as_me:$LINENO: result: no" >&5
9403echo "${ECHO_T}no" >&6
3a35eeb3 9404 fi
2429c060
PB
9405 elif test $build != $host && test $have_gcc_for_target = yes; then
9406 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9407 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9408 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9409 fi
9410fi
c6b750e1 9411if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9412 # Extract the first word of "ld", so it can be a program name with args.
9413set dummy ld; ac_word=$2
c6b750e1
DJ
9414echo "$as_me:$LINENO: checking for $ac_word" >&5
9415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9416if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9418else
c6b750e1
DJ
9419 case $LD_FOR_TARGET in
9420 [\\/]* | ?:[\\/]*)
2429c060
PB
9421 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9422 ;;
2429c060 9423 *)
c6b750e1
DJ
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425for as_dir in $gcc_cv_tool_dirs
9426do
9427 IFS=$as_save_IFS
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9431 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9433 break 2
9434 fi
9435done
9436done
9437
2429c060
PB
9438 ;;
9439esac
9440fi
c6b750e1
DJ
9441LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9442
2429c060 9443if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9444 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9445echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9446else
c6b750e1
DJ
9447 echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6
2429c060
PB
9449fi
9450
9451fi
9452if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9453
9454
9455if test -n "$LD_FOR_TARGET"; then
9456 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9457elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9458 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9459fi
9460
9461if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9462 for ncn_progname in ld; do
9463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9464set dummy ${ncn_progname}; ac_word=$2
9465echo "$as_me:$LINENO: checking for $ac_word" >&5
9466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9467if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469else
9470 if test -n "$LD_FOR_TARGET"; then
9471 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9472else
9473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
9475do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9483 fi
9484done
9485done
9486
9487fi
9488fi
9489LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9490if test -n "$LD_FOR_TARGET"; then
9491 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9492echo "${ECHO_T}$LD_FOR_TARGET" >&6
9493else
9494 echo "$as_me:$LINENO: result: no" >&5
9495echo "${ECHO_T}no" >&6
9496fi
9497
9498 done
9499fi
9500
9501if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9502 for ncn_progname in ld; do
c6b750e1
DJ
9503 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9504echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9505 if test -x $with_build_time_tools/${ncn_progname}; then
9506 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
2429c060
PB
9509 break
9510 else
c6b750e1
DJ
9511 echo "$as_me:$LINENO: result: no" >&5
9512echo "${ECHO_T}no" >&6
2429c060
PB
9513 fi
9514 done
9515fi
9516
9517if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9518 for ncn_progname in ld; do
9519 if test -n "$ncn_target_tool_prefix"; then
9520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9522echo "$as_me:$LINENO: checking for $ac_word" >&5
9523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9524if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9526else
9527 if test -n "$LD_FOR_TARGET"; then
9528 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9529else
c6b750e1
DJ
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9540 fi
9541done
9542done
9543
2429c060
PB
9544fi
9545fi
c6b750e1 9546LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9547if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9548 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9549echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9550else
c6b750e1
DJ
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
2429c060
PB
9553fi
9554
9555 fi
9556 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9559echo "$as_me:$LINENO: checking for $ac_word" >&5
9560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9561if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9563else
9564 if test -n "$LD_FOR_TARGET"; then
9565 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9566else
c6b750e1
DJ
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9577 fi
9578done
9579done
9580
2429c060
PB
9581fi
9582fi
c6b750e1 9583LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9584if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9585 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9586echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9587else
c6b750e1
DJ
9588 echo "$as_me:$LINENO: result: no" >&5
9589echo "${ECHO_T}no" >&6
2429c060 9590fi
c6b750e1 9591
2429c060
PB
9592 fi
9593 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9594 done
9595fi
c6b750e1 9596
2429c060
PB
9597if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9598 set dummy ld
9599 if test $build = $target ; then
9600 LD_FOR_TARGET="$2"
9601 else
9602 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9603 fi
d3f5afc4
MS
9604else
9605 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9606fi
9607
3a35eeb3
PB
9608else
9609 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9610fi
9611
9612
9613
9614
9615if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9616 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9617 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9618echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9619 if test -x $with_build_time_tools/lipo; then
9620 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9621 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9622 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9623echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9624 else
c6b750e1
DJ
9625 echo "$as_me:$LINENO: result: no" >&5
9626echo "${ECHO_T}no" >&6
3a35eeb3 9627 fi
2429c060
PB
9628 elif test $build != $host && test $have_gcc_for_target = yes; then
9629 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9630 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9631 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9632 fi
9633fi
9a819804
AO
9634if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9635 # Extract the first word of "lipo", so it can be a program name with args.
9636set dummy lipo; ac_word=$2
9637echo "$as_me:$LINENO: checking for $ac_word" >&5
9638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9639if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641else
9642 case $LIPO_FOR_TARGET in
9643 [\\/]* | ?:[\\/]*)
9644 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9645 ;;
9646 *)
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $gcc_cv_tool_dirs
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9657 fi
9658done
9659done
9660
9661 ;;
9662esac
9663fi
9664LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9665
9666if test -n "$LIPO_FOR_TARGET"; then
9667 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9668echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9669else
9670 echo "$as_me:$LINENO: result: no" >&5
9671echo "${ECHO_T}no" >&6
9672fi
9673
9674fi
9675if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9676
9677
9678if test -n "$LIPO_FOR_TARGET"; then
9679 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9680elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9681 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9682fi
9683
9684if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9685 for ncn_progname in lipo; do
9686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9687set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9688echo "$as_me:$LINENO: checking for $ac_word" >&5
9689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9690if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9691 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9692else
9a819804
AO
9693 if test -n "$LIPO_FOR_TARGET"; then
9694 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9695else
9696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697for as_dir in $PATH
c6b750e1
DJ
9698do
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9703 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9706 fi
9707done
9708done
9709
2429c060 9710fi
9a819804
AO
9711fi
9712LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9713if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9714 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9715echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9716else
c6b750e1
DJ
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
2429c060
PB
9719fi
9720
9a819804 9721 done
2429c060 9722fi
9a819804
AO
9723
9724if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9725 for ncn_progname in lipo; do
c6b750e1
DJ
9726 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9727echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9728 if test -x $with_build_time_tools/${ncn_progname}; then
9729 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9730 echo "$as_me:$LINENO: result: yes" >&5
9731echo "${ECHO_T}yes" >&6
2429c060
PB
9732 break
9733 else
c6b750e1
DJ
9734 echo "$as_me:$LINENO: result: no" >&5
9735echo "${ECHO_T}no" >&6
2429c060
PB
9736 fi
9737 done
9738fi
9739
9740if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9741 for ncn_progname in lipo; do
9742 if test -n "$ncn_target_tool_prefix"; then
9743 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9744set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9745echo "$as_me:$LINENO: checking for $ac_word" >&5
9746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9747if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9749else
9750 if test -n "$LIPO_FOR_TARGET"; then
9751 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9752else
c6b750e1
DJ
9753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754for as_dir in $PATH
9755do
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 break 2
9763 fi
9764done
9765done
9766
2429c060
PB
9767fi
9768fi
c6b750e1 9769LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9770if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9771 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9772echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9773else
c6b750e1
DJ
9774 echo "$as_me:$LINENO: result: no" >&5
9775echo "${ECHO_T}no" >&6
2429c060
PB
9776fi
9777
9778 fi
9779 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9781set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9782echo "$as_me:$LINENO: checking for $ac_word" >&5
9783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9784if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9786else
9787 if test -n "$LIPO_FOR_TARGET"; then
9788 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9789else
c6b750e1
DJ
9790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791for as_dir in $PATH
9792do
9793 IFS=$as_save_IFS
9794 test -z "$as_dir" && as_dir=.
9795 for ac_exec_ext in '' $ac_executable_extensions; do
9796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9797 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9799 break 2
9800 fi
9801done
9802done
9803
2429c060
PB
9804fi
9805fi
c6b750e1 9806LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9807if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9808 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9809echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9810else
c6b750e1
DJ
9811 echo "$as_me:$LINENO: result: no" >&5
9812echo "${ECHO_T}no" >&6
2429c060 9813fi
c6b750e1 9814
2429c060
PB
9815 fi
9816 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9817 done
9818fi
c6b750e1 9819
2429c060
PB
9820if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9821 set dummy lipo
9822 if test $build = $target ; then
9823 LIPO_FOR_TARGET="$2"
9824 else
9825 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9826 fi
d3f5afc4
MS
9827else
9828 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9829fi
9830
3a35eeb3
PB
9831else
9832 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9833fi
9834
9835
9836
9837
9838if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9839 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9840 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9841echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9842 if test -x $with_build_time_tools/nm; then
9843 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9844 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9845 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9846echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9847 else
c6b750e1
DJ
9848 echo "$as_me:$LINENO: result: no" >&5
9849echo "${ECHO_T}no" >&6
3a35eeb3 9850 fi
2429c060
PB
9851 elif test $build != $host && test $have_gcc_for_target = yes; then
9852 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9853 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9854 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9855 fi
9856fi
c6b750e1 9857if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9858 # Extract the first word of "nm", so it can be a program name with args.
9859set dummy nm; ac_word=$2
c6b750e1
DJ
9860echo "$as_me:$LINENO: checking for $ac_word" >&5
9861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9862if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9864else
c6b750e1
DJ
9865 case $NM_FOR_TARGET in
9866 [\\/]* | ?:[\\/]*)
2429c060
PB
9867 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9868 ;;
2429c060 9869 *)
c6b750e1
DJ
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871for as_dir in $gcc_cv_tool_dirs
9872do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9880 fi
9881done
9882done
9883
2429c060
PB
9884 ;;
9885esac
9886fi
c6b750e1
DJ
9887NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9888
2429c060 9889if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9890 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9891echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9892else
c6b750e1
DJ
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
2429c060
PB
9895fi
9896
9897fi
9898if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9899
9900
9901if test -n "$NM_FOR_TARGET"; then
9902 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9903elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9904 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9905fi
9906
9907if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9908 for ncn_progname in nm; do
9909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9910set dummy ${ncn_progname}; ac_word=$2
9911echo "$as_me:$LINENO: checking for $ac_word" >&5
9912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9913if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915else
9916 if test -n "$NM_FOR_TARGET"; then
9917 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9918else
9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920for as_dir in $PATH
9921do
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9926 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9929 fi
9930done
9931done
9932
9933fi
9934fi
9935NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9936if test -n "$NM_FOR_TARGET"; then
9937 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9938echo "${ECHO_T}$NM_FOR_TARGET" >&6
9939else
9940 echo "$as_me:$LINENO: result: no" >&5
9941echo "${ECHO_T}no" >&6
9942fi
9943
9944 done
9945fi
9946
9947if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9948 for ncn_progname in nm; do
c6b750e1
DJ
9949 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9950echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9951 if test -x $with_build_time_tools/${ncn_progname}; then
9952 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9953 echo "$as_me:$LINENO: result: yes" >&5
9954echo "${ECHO_T}yes" >&6
2429c060
PB
9955 break
9956 else
c6b750e1
DJ
9957 echo "$as_me:$LINENO: result: no" >&5
9958echo "${ECHO_T}no" >&6
2429c060
PB
9959 fi
9960 done
9961fi
9962
9963if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9964 for ncn_progname in nm; do
9965 if test -n "$ncn_target_tool_prefix"; then
9966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9967set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9968echo "$as_me:$LINENO: checking for $ac_word" >&5
9969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9970if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9972else
55db4b87
PB
9973 if test -n "$NM_FOR_TARGET"; then
9974 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9975else
c6b750e1
DJ
9976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977for as_dir in $PATH
9978do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 break 2
9986 fi
9987done
9988done
9989
859789af
AC
9990fi
9991fi
c6b750e1 9992NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9993if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9994 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9995echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9996else
c6b750e1
DJ
9997 echo "$as_me:$LINENO: result: no" >&5
9998echo "${ECHO_T}no" >&6
859789af
AC
9999fi
10000
2429c060
PB
10001 fi
10002 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10004set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10005echo "$as_me:$LINENO: checking for $ac_word" >&5
10006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10007if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10009else
05cbd757
PB
10010 if test -n "$NM_FOR_TARGET"; then
10011 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10012else
c6b750e1
DJ
10013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014for as_dir in $PATH
10015do
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 break 2
10023 fi
10024done
10025done
10026
859789af
AC
10027fi
10028fi
c6b750e1 10029NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10030if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10031 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10032echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10033else
c6b750e1
DJ
10034 echo "$as_me:$LINENO: result: no" >&5
10035echo "${ECHO_T}no" >&6
859789af 10036fi
c6b750e1 10037
2429c060
PB
10038 fi
10039 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10040 done
10041fi
c6b750e1 10042
05cbd757
PB
10043if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10044 set dummy nm
10045 if test $build = $target ; then
10046 NM_FOR_TARGET="$2"
859789af 10047 else
05cbd757 10048 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10049 fi
d3f5afc4
MS
10050else
10051 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10052fi
10053
3a35eeb3
PB
10054else
10055 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10056fi
10057
10058
10059
10060
10061if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10062 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10063 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10064echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10065 if test -x $with_build_time_tools/objdump; then
10066 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10067 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10068 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10069echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10070 else
c6b750e1
DJ
10071 echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6
3a35eeb3 10073 fi
2429c060
PB
10074 elif test $build != $host && test $have_gcc_for_target = yes; then
10075 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10076 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10077 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10078 fi
10079fi
c6b750e1 10080if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10081 # Extract the first word of "objdump", so it can be a program name with args.
10082set dummy objdump; ac_word=$2
c6b750e1
DJ
10083echo "$as_me:$LINENO: checking for $ac_word" >&5
10084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10085if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10087else
c6b750e1
DJ
10088 case $OBJDUMP_FOR_TARGET in
10089 [\\/]* | ?:[\\/]*)
2429c060
PB
10090 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10091 ;;
2429c060 10092 *)
c6b750e1
DJ
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $gcc_cv_tool_dirs
10095do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10103 fi
10104done
10105done
10106
2429c060
PB
10107 ;;
10108esac
10109fi
c6b750e1
DJ
10110OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10111
2429c060 10112if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10113 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10114echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10115else
c6b750e1
DJ
10116 echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
2429c060
PB
10118fi
10119
10120fi
10121if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10122
10123
10124if test -n "$OBJDUMP_FOR_TARGET"; then
10125 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10126elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10127 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10128fi
10129
10130if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10131 for ncn_progname in objdump; do
10132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10133set dummy ${ncn_progname}; ac_word=$2
10134echo "$as_me:$LINENO: checking for $ac_word" >&5
10135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10136if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 if test -n "$OBJDUMP_FOR_TARGET"; then
10140 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10141else
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10149 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10151 break 2
10152 fi
10153done
10154done
10155
10156fi
10157fi
10158OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10159if test -n "$OBJDUMP_FOR_TARGET"; then
10160 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10161echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10162else
10163 echo "$as_me:$LINENO: result: no" >&5
10164echo "${ECHO_T}no" >&6
10165fi
10166
10167 done
10168fi
10169
10170if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10171 for ncn_progname in objdump; do
c6b750e1
DJ
10172 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10173echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10174 if test -x $with_build_time_tools/${ncn_progname}; then
10175 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10176 echo "$as_me:$LINENO: result: yes" >&5
10177echo "${ECHO_T}yes" >&6
2429c060
PB
10178 break
10179 else
c6b750e1
DJ
10180 echo "$as_me:$LINENO: result: no" >&5
10181echo "${ECHO_T}no" >&6
2429c060
PB
10182 fi
10183 done
10184fi
10185
10186if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10187 for ncn_progname in objdump; do
10188 if test -n "$ncn_target_tool_prefix"; then
10189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10190set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10191echo "$as_me:$LINENO: checking for $ac_word" >&5
10192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10193if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10195else
10196 if test -n "$OBJDUMP_FOR_TARGET"; then
10197 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10198else
c6b750e1
DJ
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210done
10211done
10212
5ae72758
DJ
10213fi
10214fi
c6b750e1 10215OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10216if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10217 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10218echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10219else
c6b750e1
DJ
10220 echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
5ae72758
DJ
10222fi
10223
2429c060
PB
10224 fi
10225 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10227set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10228echo "$as_me:$LINENO: checking for $ac_word" >&5
10229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10230if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10232else
10233 if test -n "$OBJDUMP_FOR_TARGET"; then
10234 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10235else
c6b750e1
DJ
10236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237for as_dir in $PATH
10238do
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10243 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10245 break 2
10246 fi
10247done
10248done
10249
5ae72758
DJ
10250fi
10251fi
c6b750e1 10252OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10253if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10254 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10255echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10256else
c6b750e1
DJ
10257 echo "$as_me:$LINENO: result: no" >&5
10258echo "${ECHO_T}no" >&6
5ae72758 10259fi
c6b750e1 10260
2429c060
PB
10261 fi
10262 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10263 done
10264fi
c6b750e1 10265
5ae72758
DJ
10266if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10267 set dummy objdump
10268 if test $build = $target ; then
10269 OBJDUMP_FOR_TARGET="$2"
10270 else
10271 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10272 fi
d3f5afc4
MS
10273else
10274 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10275fi
10276
3a35eeb3
PB
10277else
10278 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10279fi
10280
10281
10282
10283
10284if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10285 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10286 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10287echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10288 if test -x $with_build_time_tools/ranlib; then
10289 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10290 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10291 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10292echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10293 else
c6b750e1
DJ
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
3a35eeb3 10296 fi
2429c060
PB
10297 elif test $build != $host && test $have_gcc_for_target = yes; then
10298 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10299 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10300 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10301 fi
10302fi
c6b750e1 10303if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10304 # Extract the first word of "ranlib", so it can be a program name with args.
10305set dummy ranlib; ac_word=$2
c6b750e1
DJ
10306echo "$as_me:$LINENO: checking for $ac_word" >&5
10307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10308if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10310else
c6b750e1
DJ
10311 case $RANLIB_FOR_TARGET in
10312 [\\/]* | ?:[\\/]*)
2429c060
PB
10313 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10314 ;;
2429c060 10315 *)
c6b750e1
DJ
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317for as_dir in $gcc_cv_tool_dirs
10318do
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10326 fi
10327done
10328done
10329
2429c060
PB
10330 ;;
10331esac
10332fi
c6b750e1
DJ
10333RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10334
2429c060 10335if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10336 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10337echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10338else
c6b750e1
DJ
10339 echo "$as_me:$LINENO: result: no" >&5
10340echo "${ECHO_T}no" >&6
2429c060
PB
10341fi
10342
10343fi
10344if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10345
10346
10347if test -n "$RANLIB_FOR_TARGET"; then
10348 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10349elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10350 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10351fi
10352
10353if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10354 for ncn_progname in ranlib; do
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10356set dummy ${ncn_progname}; ac_word=$2
10357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362 if test -n "$RANLIB_FOR_TARGET"; then
10363 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10364else
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377done
10378
10379fi
10380fi
10381RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10382if test -n "$RANLIB_FOR_TARGET"; then
10383 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10384echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10385else
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
10388fi
10389
10390 done
10391fi
10392
10393if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10394 for ncn_progname in ranlib; do
c6b750e1
DJ
10395 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10396echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10397 if test -x $with_build_time_tools/${ncn_progname}; then
10398 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10399 echo "$as_me:$LINENO: result: yes" >&5
10400echo "${ECHO_T}yes" >&6
2429c060
PB
10401 break
10402 else
c6b750e1
DJ
10403 echo "$as_me:$LINENO: result: no" >&5
10404echo "${ECHO_T}no" >&6
2429c060
PB
10405 fi
10406 done
10407fi
10408
10409if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10410 for ncn_progname in ranlib; do
10411 if test -n "$ncn_target_tool_prefix"; then
10412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10413set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10414echo "$as_me:$LINENO: checking for $ac_word" >&5
10415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10416if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10418else
55db4b87
PB
10419 if test -n "$RANLIB_FOR_TARGET"; then
10420 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10421else
c6b750e1
DJ
10422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423for as_dir in $PATH
10424do
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10429 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10432 fi
10433done
10434done
10435
859789af
AC
10436fi
10437fi
c6b750e1 10438RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10439if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10440 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10441echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10442else
c6b750e1
DJ
10443 echo "$as_me:$LINENO: result: no" >&5
10444echo "${ECHO_T}no" >&6
859789af
AC
10445fi
10446
2429c060
PB
10447 fi
10448 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10450set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10451echo "$as_me:$LINENO: checking for $ac_word" >&5
10452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10453if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10455else
05cbd757
PB
10456 if test -n "$RANLIB_FOR_TARGET"; then
10457 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10458else
c6b750e1
DJ
10459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460for as_dir in $PATH
10461do
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10466 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10468 break 2
10469 fi
10470done
10471done
10472
859789af
AC
10473fi
10474fi
c6b750e1 10475RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10476if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10477 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10478echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10479else
c6b750e1
DJ
10480 echo "$as_me:$LINENO: result: no" >&5
10481echo "${ECHO_T}no" >&6
859789af 10482fi
c6b750e1 10483
2429c060
PB
10484 fi
10485 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10486 done
10487fi
c6b750e1 10488
2429c060
PB
10489if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10490 set dummy ranlib
10491 if test $build = $target ; then
10492 RANLIB_FOR_TARGET="$2"
10493 else
10494 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10495 fi
d3f5afc4
MS
10496else
10497 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10498fi
05cbd757 10499
3a35eeb3
PB
10500else
10501 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10502fi
10503
2429c060
PB
10504
10505
10506
10507if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10508 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10509 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10510echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10511 if test -x $with_build_time_tools/strip; then
10512 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10513 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10514 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10515echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10516 else
c6b750e1
DJ
10517 echo "$as_me:$LINENO: result: no" >&5
10518echo "${ECHO_T}no" >&6
3a35eeb3 10519 fi
2429c060
PB
10520 elif test $build != $host && test $have_gcc_for_target = yes; then
10521 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10522 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10523 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10524 fi
10525fi
c6b750e1 10526if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10527 # Extract the first word of "strip", so it can be a program name with args.
10528set dummy strip; ac_word=$2
c6b750e1
DJ
10529echo "$as_me:$LINENO: checking for $ac_word" >&5
10530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10531if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10533else
c6b750e1
DJ
10534 case $STRIP_FOR_TARGET in
10535 [\\/]* | ?:[\\/]*)
2429c060
PB
10536 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10537 ;;
2429c060 10538 *)
c6b750e1
DJ
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $gcc_cv_tool_dirs
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10549 fi
10550done
10551done
10552
2429c060
PB
10553 ;;
10554esac
10555fi
c6b750e1
DJ
10556STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10557
2429c060 10558if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10559 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10560echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10561else
c6b750e1
DJ
10562 echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6
2429c060
PB
10564fi
10565
10566fi
10567if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10568
10569
10570if test -n "$STRIP_FOR_TARGET"; then
10571 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10572elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10573 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10574fi
10575
10576if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10577 for ncn_progname in strip; do
10578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10579set dummy ${ncn_progname}; ac_word=$2
10580echo "$as_me:$LINENO: checking for $ac_word" >&5
10581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10582if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584else
10585 if test -n "$STRIP_FOR_TARGET"; then
10586 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10587else
10588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589for as_dir in $PATH
10590do
10591 IFS=$as_save_IFS
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 break 2
10598 fi
10599done
10600done
10601
10602fi
10603fi
10604STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10605if test -n "$STRIP_FOR_TARGET"; then
10606 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10607echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10608else
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
10611fi
10612
10613 done
10614fi
10615
10616if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10617 for ncn_progname in strip; do
c6b750e1
DJ
10618 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10619echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10620 if test -x $with_build_time_tools/${ncn_progname}; then
10621 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10622 echo "$as_me:$LINENO: result: yes" >&5
10623echo "${ECHO_T}yes" >&6
2429c060
PB
10624 break
10625 else
c6b750e1
DJ
10626 echo "$as_me:$LINENO: result: no" >&5
10627echo "${ECHO_T}no" >&6
2429c060
PB
10628 fi
10629 done
10630fi
10631
10632if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10633 for ncn_progname in strip; do
10634 if test -n "$ncn_target_tool_prefix"; then
10635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10636set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10637echo "$as_me:$LINENO: checking for $ac_word" >&5
10638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10639if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10641else
10642 if test -n "$STRIP_FOR_TARGET"; then
10643 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10644else
10645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646for as_dir in $PATH
10647do
10648 IFS=$as_save_IFS
10649 test -z "$as_dir" && as_dir=.
10650 for ac_exec_ext in '' $ac_executable_extensions; do
10651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10652 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10654 break 2
10655 fi
10656done
10657done
10658
7e0f7140
GK
10659fi
10660fi
c6b750e1 10661STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10662if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10663 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10664echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10665else
c6b750e1
DJ
10666 echo "$as_me:$LINENO: result: no" >&5
10667echo "${ECHO_T}no" >&6
7e0f7140
GK
10668fi
10669
2429c060
PB
10670 fi
10671 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10673set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10674echo "$as_me:$LINENO: checking for $ac_word" >&5
10675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10676if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10678else
10679 if test -n "$STRIP_FOR_TARGET"; then
10680 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10681else
c6b750e1
DJ
10682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683for as_dir in $PATH
10684do
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10692 fi
10693done
10694done
10695
7e0f7140
GK
10696fi
10697fi
c6b750e1 10698STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10699if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10700 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10701echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10702else
c6b750e1
DJ
10703 echo "$as_me:$LINENO: result: no" >&5
10704echo "${ECHO_T}no" >&6
7e0f7140 10705fi
c6b750e1 10706
2429c060
PB
10707 fi
10708 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10709 done
10710fi
c6b750e1 10711
7e0f7140
GK
10712if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10713 set dummy strip
10714 if test $build = $target ; then
10715 STRIP_FOR_TARGET="$2"
10716 else
10717 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10718 fi
d3f5afc4
MS
10719else
10720 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10721fi
10722
3a35eeb3
PB
10723else
10724 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10725fi
10726
10727
10728
10729
10730if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10731 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10732 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10733echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10734 if test -x $with_build_time_tools/windres; then
10735 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10736 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10737 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10738echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10739 else
c6b750e1
DJ
10740 echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6
3a35eeb3 10742 fi
2429c060
PB
10743 elif test $build != $host && test $have_gcc_for_target = yes; then
10744 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10745 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10746 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10747 fi
10748fi
c6b750e1 10749if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10750 # Extract the first word of "windres", so it can be a program name with args.
10751set dummy windres; ac_word=$2
c6b750e1
DJ
10752echo "$as_me:$LINENO: checking for $ac_word" >&5
10753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10754if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10756else
c6b750e1
DJ
10757 case $WINDRES_FOR_TARGET in
10758 [\\/]* | ?:[\\/]*)
2429c060
PB
10759 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10760 ;;
2429c060 10761 *)
c6b750e1
DJ
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763for as_dir in $gcc_cv_tool_dirs
10764do
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10769 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 break 2
10772 fi
10773done
10774done
10775
2429c060
PB
10776 ;;
10777esac
10778fi
c6b750e1
DJ
10779WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10780
2429c060 10781if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10782 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10783echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10784else
c6b750e1
DJ
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
2429c060
PB
10787fi
10788
10789fi
10790if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10791
10792
10793if test -n "$WINDRES_FOR_TARGET"; then
10794 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10795elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10796 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10797fi
10798
10799if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10800 for ncn_progname in windres; do
10801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10802set dummy ${ncn_progname}; ac_word=$2
10803echo "$as_me:$LINENO: checking for $ac_word" >&5
10804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10805if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807else
10808 if test -n "$WINDRES_FOR_TARGET"; then
10809 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10810else
10811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812for as_dir in $PATH
10813do
10814 IFS=$as_save_IFS
10815 test -z "$as_dir" && as_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 break 2
10821 fi
10822done
10823done
10824
10825fi
10826fi
10827WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10828if test -n "$WINDRES_FOR_TARGET"; then
10829 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10830echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10831else
10832 echo "$as_me:$LINENO: result: no" >&5
10833echo "${ECHO_T}no" >&6
10834fi
10835
10836 done
10837fi
10838
10839if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10840 for ncn_progname in windres; do
c6b750e1
DJ
10841 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10842echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10843 if test -x $with_build_time_tools/${ncn_progname}; then
10844 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10845 echo "$as_me:$LINENO: result: yes" >&5
10846echo "${ECHO_T}yes" >&6
2429c060
PB
10847 break
10848 else
c6b750e1
DJ
10849 echo "$as_me:$LINENO: result: no" >&5
10850echo "${ECHO_T}no" >&6
2429c060
PB
10851 fi
10852 done
10853fi
10854
10855if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10856 for ncn_progname in windres; do
10857 if test -n "$ncn_target_tool_prefix"; then
10858 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10859set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10860echo "$as_me:$LINENO: checking for $ac_word" >&5
10861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10862if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10864else
55db4b87
PB
10865 if test -n "$WINDRES_FOR_TARGET"; then
10866 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10867else
c6b750e1
DJ
10868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $PATH
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10875 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10878 fi
10879done
10880done
10881
859789af
AC
10882fi
10883fi
c6b750e1 10884WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10885if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10886 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10887echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10888else
c6b750e1
DJ
10889 echo "$as_me:$LINENO: result: no" >&5
10890echo "${ECHO_T}no" >&6
859789af
AC
10891fi
10892
2429c060
PB
10893 fi
10894 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10896set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10897echo "$as_me:$LINENO: checking for $ac_word" >&5
10898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10899if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10901else
05cbd757
PB
10902 if test -n "$WINDRES_FOR_TARGET"; then
10903 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10904else
c6b750e1
DJ
10905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906for as_dir in $PATH
10907do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10912 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916done
10917done
10918
859789af
AC
10919fi
10920fi
c6b750e1 10921WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10922if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10923 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10924echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10925else
c6b750e1
DJ
10926 echo "$as_me:$LINENO: result: no" >&5
10927echo "${ECHO_T}no" >&6
859789af 10928fi
c6b750e1 10929
2429c060
PB
10930 fi
10931 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10932 done
10933fi
c6b750e1 10934
05cbd757
PB
10935if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10936 set dummy windres
10937 if test $build = $target ; then
10938 WINDRES_FOR_TARGET="$2"
859789af 10939 else
05cbd757 10940 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10941 fi
d3f5afc4
MS
10942else
10943 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10944fi
10945
3a35eeb3
PB
10946else
10947 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10948fi
10949
852e5f18 10950
0c24b341
NC
10951
10952
10953if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10954 if test -n "$with_build_time_tools"; then
10955 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10956echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10957 if test -x $with_build_time_tools/windmc; then
10958 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10959 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10960 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10961echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10962 else
10963 echo "$as_me:$LINENO: result: no" >&5
10964echo "${ECHO_T}no" >&6
10965 fi
10966 elif test $build != $host && test $have_gcc_for_target = yes; then
10967 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10968 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10969 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10970 fi
10971fi
10972if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10973 # Extract the first word of "windmc", so it can be a program name with args.
10974set dummy windmc; ac_word=$2
10975echo "$as_me:$LINENO: checking for $ac_word" >&5
10976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10977if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979else
10980 case $WINDMC_FOR_TARGET in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10983 ;;
10984 *)
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986for as_dir in $gcc_cv_tool_dirs
10987do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10992 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10995 fi
10996done
10997done
10998
10999 ;;
11000esac
11001fi
11002WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11003
11004if test -n "$WINDMC_FOR_TARGET"; then
11005 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11006echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11007else
11008 echo "$as_me:$LINENO: result: no" >&5
11009echo "${ECHO_T}no" >&6
11010fi
11011
11012fi
11013if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11014
11015
11016if test -n "$WINDMC_FOR_TARGET"; then
11017 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11018elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11019 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11020fi
11021
11022if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11023 for ncn_progname in windmc; do
11024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11025set dummy ${ncn_progname}; ac_word=$2
11026echo "$as_me:$LINENO: checking for $ac_word" >&5
11027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11028if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030else
11031 if test -n "$WINDMC_FOR_TARGET"; then
11032 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11033else
11034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035for as_dir in $PATH
11036do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11041 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11044 fi
11045done
11046done
11047
11048fi
11049fi
11050WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11051if test -n "$WINDMC_FOR_TARGET"; then
11052 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11053echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11054else
11055 echo "$as_me:$LINENO: result: no" >&5
11056echo "${ECHO_T}no" >&6
11057fi
11058
11059 done
11060fi
11061
11062if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11063 for ncn_progname in windmc; do
11064 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11065echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11066 if test -x $with_build_time_tools/${ncn_progname}; then
11067 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11068 echo "$as_me:$LINENO: result: yes" >&5
11069echo "${ECHO_T}yes" >&6
11070 break
11071 else
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
11074 fi
11075 done
11076fi
11077
11078if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11079 for ncn_progname in windmc; do
11080 if test -n "$ncn_target_tool_prefix"; then
11081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11082set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11083echo "$as_me:$LINENO: checking for $ac_word" >&5
11084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11085if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087else
11088 if test -n "$WINDMC_FOR_TARGET"; then
11089 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11090else
11091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092for as_dir in $PATH
11093do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11101 fi
11102done
11103done
11104
11105fi
11106fi
11107WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11108if test -n "$WINDMC_FOR_TARGET"; then
11109 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11110echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11111else
11112 echo "$as_me:$LINENO: result: no" >&5
11113echo "${ECHO_T}no" >&6
11114fi
11115
11116 fi
11117 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11119set dummy ${ncn_progname}; ac_word=$2
11120echo "$as_me:$LINENO: checking for $ac_word" >&5
11121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11122if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 if test -n "$WINDMC_FOR_TARGET"; then
11126 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11127else
11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11137 break 2
11138 fi
11139done
11140done
11141
11142fi
11143fi
11144WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11145if test -n "$WINDMC_FOR_TARGET"; then
11146 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11147echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11148else
11149 echo "$as_me:$LINENO: result: no" >&5
11150echo "${ECHO_T}no" >&6
11151fi
11152
11153 fi
11154 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11155 done
11156fi
11157
11158if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11159 set dummy windmc
11160 if test $build = $target ; then
11161 WINDMC_FOR_TARGET="$2"
11162 else
11163 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11164 fi
11165else
11166 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11167fi
11168
11169else
11170 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11171fi
11172
11173
be01d343
PB
11174RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11175
c6b750e1
DJ
11176echo "$as_me:$LINENO: checking where to find the target ar" >&5
11177echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11178if test "x${build}" != "x${host}" ; then
2429c060
PB
11179 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11180 # We already found the complete path
b8025f34
AS
11181 ac_dir=`dirname $AR_FOR_TARGET`
11182 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11183echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11184 else
11185 # Canadian cross, just use what we found
c6b750e1
DJ
11186 echo "$as_me:$LINENO: result: pre-installed" >&5
11187echo "${ECHO_T}pre-installed" >&6
2429c060 11188 fi
be01d343
PB
11189else
11190 ok=yes
11191 case " ${configdirs} " in
11192 *" binutils "*) ;;
11193 *) ok=no ;;
11194 esac
c6b750e1 11195
be01d343
PB
11196 if test $ok = yes; then
11197 # An in-tree tool is available and we can use it
11198 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11199 echo "$as_me:$LINENO: result: just compiled" >&5
11200echo "${ECHO_T}just compiled" >&6
2429c060
PB
11201 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11202 # We already found the complete path
b8025f34
AS
11203 ac_dir=`dirname $AR_FOR_TARGET`
11204 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11205echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11206 elif test "x$target" = "x$host"; then
11207 # We can use an host tool
11208 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11209 echo "$as_me:$LINENO: result: host tool" >&5
11210echo "${ECHO_T}host tool" >&6
be01d343
PB
11211 else
11212 # We need a cross tool
c6b750e1
DJ
11213 echo "$as_me:$LINENO: result: pre-installed" >&5
11214echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11215 fi
11216fi
4b900473 11217
c6b750e1
DJ
11218echo "$as_me:$LINENO: checking where to find the target as" >&5
11219echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11220if test "x${build}" != "x${host}" ; then
2429c060
PB
11221 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11222 # We already found the complete path
b8025f34
AS
11223 ac_dir=`dirname $AS_FOR_TARGET`
11224 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11225echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11226 else
11227 # Canadian cross, just use what we found
c6b750e1
DJ
11228 echo "$as_me:$LINENO: result: pre-installed" >&5
11229echo "${ECHO_T}pre-installed" >&6
2429c060 11230 fi
be01d343
PB
11231else
11232 ok=yes
11233 case " ${configdirs} " in
11234 *" gas "*) ;;
11235 *) ok=no ;;
11236 esac
c6b750e1 11237
be01d343
PB
11238 if test $ok = yes; then
11239 # An in-tree tool is available and we can use it
11240 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11241 echo "$as_me:$LINENO: result: just compiled" >&5
11242echo "${ECHO_T}just compiled" >&6
2429c060
PB
11243 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11244 # We already found the complete path
b8025f34
AS
11245 ac_dir=`dirname $AS_FOR_TARGET`
11246 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11247echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11248 elif test "x$target" = "x$host"; then
11249 # We can use an host tool
11250 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11251 echo "$as_me:$LINENO: result: host tool" >&5
11252echo "${ECHO_T}host tool" >&6
be01d343
PB
11253 else
11254 # We need a cross tool
c6b750e1
DJ
11255 echo "$as_me:$LINENO: result: pre-installed" >&5
11256echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11257 fi
11258fi
4b900473 11259
c6b750e1
DJ
11260echo "$as_me:$LINENO: checking where to find the target cc" >&5
11261echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11262if test "x${build}" != "x${host}" ; then
2429c060
PB
11263 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11264 # We already found the complete path
b8025f34
AS
11265 ac_dir=`dirname $CC_FOR_TARGET`
11266 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11267echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11268 else
11269 # Canadian cross, just use what we found
c6b750e1
DJ
11270 echo "$as_me:$LINENO: result: pre-installed" >&5
11271echo "${ECHO_T}pre-installed" >&6
2429c060 11272 fi
be01d343
PB
11273else
11274 ok=yes
11275 case " ${configdirs} " in
11276 *" gcc "*) ;;
11277 *) ok=no ;;
11278 esac
c6b750e1 11279
be01d343
PB
11280 if test $ok = yes; then
11281 # An in-tree tool is available and we can use it
11282 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11283 echo "$as_me:$LINENO: result: just compiled" >&5
11284echo "${ECHO_T}just compiled" >&6
2429c060
PB
11285 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11286 # We already found the complete path
b8025f34
AS
11287 ac_dir=`dirname $CC_FOR_TARGET`
11288 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11289echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11290 elif test "x$target" = "x$host"; then
11291 # We can use an host tool
11292 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11293 echo "$as_me:$LINENO: result: host tool" >&5
11294echo "${ECHO_T}host tool" >&6
be01d343
PB
11295 else
11296 # We need a cross tool
c6b750e1
DJ
11297 echo "$as_me:$LINENO: result: pre-installed" >&5
11298echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11299 fi
11300fi
4b900473 11301
c6b750e1
DJ
11302echo "$as_me:$LINENO: checking where to find the target c++" >&5
11303echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11304if test "x${build}" != "x${host}" ; then
2429c060
PB
11305 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11306 # We already found the complete path
b8025f34
AS
11307 ac_dir=`dirname $CXX_FOR_TARGET`
11308 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11309echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11310 else
11311 # Canadian cross, just use what we found
c6b750e1
DJ
11312 echo "$as_me:$LINENO: result: pre-installed" >&5
11313echo "${ECHO_T}pre-installed" >&6
2429c060 11314 fi
be01d343
PB
11315else
11316 ok=yes
11317 case " ${configdirs} " in
11318 *" gcc "*) ;;
11319 *) ok=no ;;
11320 esac
11321 case ,${enable_languages}, in
11322 *,c++,*) ;;
11323 *) ok=no ;;
11324 esac
11325 if test $ok = yes; then
11326 # An in-tree tool is available and we can use it
11327 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
c6b750e1
DJ
11328 echo "$as_me:$LINENO: result: just compiled" >&5
11329echo "${ECHO_T}just compiled" >&6
2429c060
PB
11330 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11331 # We already found the complete path
b8025f34
AS
11332 ac_dir=`dirname $CXX_FOR_TARGET`
11333 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11334echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11335 elif test "x$target" = "x$host"; then
11336 # We can use an host tool
11337 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11338 echo "$as_me:$LINENO: result: host tool" >&5
11339echo "${ECHO_T}host tool" >&6
be01d343
PB
11340 else
11341 # We need a cross tool
c6b750e1
DJ
11342 echo "$as_me:$LINENO: result: pre-installed" >&5
11343echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11344 fi
11345fi
4b900473 11346
c6b750e1
DJ
11347echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11348echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11349if test "x${build}" != "x${host}" ; then
2429c060
PB
11350 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11351 # We already found the complete path
b8025f34
AS
11352 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11353 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11354echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11355 else
11356 # Canadian cross, just use what we found
c6b750e1
DJ
11357 echo "$as_me:$LINENO: result: pre-installed" >&5
11358echo "${ECHO_T}pre-installed" >&6
2429c060 11359 fi
be01d343
PB
11360else
11361 ok=yes
11362 case " ${configdirs} " in
11363 *" gcc "*) ;;
11364 *) ok=no ;;
11365 esac
11366 case ,${enable_languages}, in
11367 *,c++,*) ;;
11368 *) ok=no ;;
11369 esac
11370 if test $ok = yes; then
11371 # An in-tree tool is available and we can use it
11372 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
c6b750e1
DJ
11373 echo "$as_me:$LINENO: result: just compiled" >&5
11374echo "${ECHO_T}just compiled" >&6
2429c060
PB
11375 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11376 # We already found the complete path
b8025f34
AS
11377 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11378 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11379echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11380 elif test "x$target" = "x$host"; then
11381 # We can use an host tool
11382 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11383 echo "$as_me:$LINENO: result: host tool" >&5
11384echo "${ECHO_T}host tool" >&6
be01d343
PB
11385 else
11386 # We need a cross tool
c6b750e1
DJ
11387 echo "$as_me:$LINENO: result: pre-installed" >&5
11388echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11389 fi
11390fi
4b900473 11391
c6b750e1
DJ
11392echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11393echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11394if test "x${build}" != "x${host}" ; then
2429c060
PB
11395 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11396 # We already found the complete path
b8025f34
AS
11397 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11398 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11399echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11400 else
11401 # Canadian cross, just use what we found
c6b750e1
DJ
11402 echo "$as_me:$LINENO: result: pre-installed" >&5
11403echo "${ECHO_T}pre-installed" >&6
2429c060 11404 fi
be01d343
PB
11405else
11406 ok=yes
11407 case " ${configdirs} " in
11408 *" binutils "*) ;;
11409 *) ok=no ;;
11410 esac
c6b750e1 11411
be01d343
PB
11412 if test $ok = yes; then
11413 # An in-tree tool is available and we can use it
11414 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11415 echo "$as_me:$LINENO: result: just compiled" >&5
11416echo "${ECHO_T}just compiled" >&6
2429c060
PB
11417 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11418 # We already found the complete path
b8025f34
AS
11419 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11420 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11421echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11422 elif test "x$target" = "x$host"; then
11423 # We can use an host tool
11424 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11425 echo "$as_me:$LINENO: result: host tool" >&5
11426echo "${ECHO_T}host tool" >&6
be01d343
PB
11427 else
11428 # We need a cross tool
c6b750e1
DJ
11429 echo "$as_me:$LINENO: result: pre-installed" >&5
11430echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11431 fi
11432fi
4b900473 11433
c6b750e1
DJ
11434echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11435echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11436if test "x${build}" != "x${host}" ; then
2429c060
PB
11437 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11438 # We already found the complete path
b8025f34
AS
11439 ac_dir=`dirname $GCC_FOR_TARGET`
11440 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11441echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11442 else
11443 # Canadian cross, just use what we found
c6b750e1
DJ
11444 echo "$as_me:$LINENO: result: pre-installed" >&5
11445echo "${ECHO_T}pre-installed" >&6
2429c060 11446 fi
be01d343
PB
11447else
11448 ok=yes
11449 case " ${configdirs} " in
11450 *" gcc "*) ;;
11451 *) ok=no ;;
11452 esac
c6b750e1 11453
be01d343
PB
11454 if test $ok = yes; then
11455 # An in-tree tool is available and we can use it
11456 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11457 echo "$as_me:$LINENO: result: just compiled" >&5
11458echo "${ECHO_T}just compiled" >&6
2429c060
PB
11459 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11460 # We already found the complete path
b8025f34
AS
11461 ac_dir=`dirname $GCC_FOR_TARGET`
11462 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11463echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11464 elif test "x$target" = "x$host"; then
11465 # We can use an host tool
11466 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11467 echo "$as_me:$LINENO: result: host tool" >&5
11468echo "${ECHO_T}host tool" >&6
be01d343
PB
11469 else
11470 # We need a cross tool
c6b750e1
DJ
11471 echo "$as_me:$LINENO: result: pre-installed" >&5
11472echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11473 fi
11474fi
4b900473 11475
c6b750e1
DJ
11476echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11477echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11478if test "x${build}" != "x${host}" ; then
2429c060
PB
11479 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11480 # We already found the complete path
b8025f34
AS
11481 ac_dir=`dirname $GCJ_FOR_TARGET`
11482 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11483echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11484 else
11485 # Canadian cross, just use what we found
c6b750e1
DJ
11486 echo "$as_me:$LINENO: result: pre-installed" >&5
11487echo "${ECHO_T}pre-installed" >&6
2429c060 11488 fi
be01d343
PB
11489else
11490 ok=yes
11491 case " ${configdirs} " in
11492 *" gcc "*) ;;
11493 *) ok=no ;;
11494 esac
11495 case ,${enable_languages}, in
11496 *,java,*) ;;
11497 *) ok=no ;;
11498 esac
11499 if test $ok = yes; then
11500 # An in-tree tool is available and we can use it
11501 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11502 echo "$as_me:$LINENO: result: just compiled" >&5
11503echo "${ECHO_T}just compiled" >&6
2429c060
PB
11504 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11505 # We already found the complete path
b8025f34
AS
11506 ac_dir=`dirname $GCJ_FOR_TARGET`
11507 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11508echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11509 elif test "x$target" = "x$host"; then
11510 # We can use an host tool
11511 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11512 echo "$as_me:$LINENO: result: host tool" >&5
11513echo "${ECHO_T}host tool" >&6
be01d343
PB
11514 else
11515 # We need a cross tool
c6b750e1
DJ
11516 echo "$as_me:$LINENO: result: pre-installed" >&5
11517echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11518 fi
11519fi
4b900473 11520
c6b750e1
DJ
11521echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11522echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11523if test "x${build}" != "x${host}" ; then
2429c060
PB
11524 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11525 # We already found the complete path
b8025f34
AS
11526 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11527 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11528echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11529 else
11530 # Canadian cross, just use what we found
c6b750e1
DJ
11531 echo "$as_me:$LINENO: result: pre-installed" >&5
11532echo "${ECHO_T}pre-installed" >&6
2429c060 11533 fi
be01d343
PB
11534else
11535 ok=yes
11536 case " ${configdirs} " in
11537 *" gcc "*) ;;
11538 *) ok=no ;;
11539 esac
11540 case ,${enable_languages}, in
11541 *,fortran,*) ;;
11542 *) ok=no ;;
11543 esac
11544 if test $ok = yes; then
11545 # An in-tree tool is available and we can use it
11546 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11547 echo "$as_me:$LINENO: result: just compiled" >&5
11548echo "${ECHO_T}just compiled" >&6
2429c060
PB
11549 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11550 # We already found the complete path
b8025f34
AS
11551 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11552 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11553echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11554 elif test "x$target" = "x$host"; then
11555 # We can use an host tool
11556 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11557 echo "$as_me:$LINENO: result: host tool" >&5
11558echo "${ECHO_T}host tool" >&6
be01d343
PB
11559 else
11560 # We need a cross tool
c6b750e1
DJ
11561 echo "$as_me:$LINENO: result: pre-installed" >&5
11562echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11563 fi
11564fi
4b900473 11565
c6b750e1
DJ
11566echo "$as_me:$LINENO: checking where to find the target ld" >&5
11567echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11568if test "x${build}" != "x${host}" ; then
2429c060
PB
11569 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11570 # We already found the complete path
b8025f34
AS
11571 ac_dir=`dirname $LD_FOR_TARGET`
11572 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11573echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11574 else
11575 # Canadian cross, just use what we found
c6b750e1
DJ
11576 echo "$as_me:$LINENO: result: pre-installed" >&5
11577echo "${ECHO_T}pre-installed" >&6
2429c060 11578 fi
be01d343
PB
11579else
11580 ok=yes
11581 case " ${configdirs} " in
11582 *" ld "*) ;;
11583 *) ok=no ;;
11584 esac
c6b750e1 11585
be01d343
PB
11586 if test $ok = yes; then
11587 # An in-tree tool is available and we can use it
11588 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11589 echo "$as_me:$LINENO: result: just compiled" >&5
11590echo "${ECHO_T}just compiled" >&6
2429c060
PB
11591 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11592 # We already found the complete path
b8025f34
AS
11593 ac_dir=`dirname $LD_FOR_TARGET`
11594 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11595echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11596 elif test "x$target" = "x$host"; then
11597 # We can use an host tool
11598 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11599 echo "$as_me:$LINENO: result: host tool" >&5
11600echo "${ECHO_T}host tool" >&6
be01d343
PB
11601 else
11602 # We need a cross tool
c6b750e1
DJ
11603 echo "$as_me:$LINENO: result: pre-installed" >&5
11604echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11605 fi
11606fi
4b900473 11607
c6b750e1
DJ
11608echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11609echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11610if test "x${build}" != "x${host}" ; then
2429c060
PB
11611 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11612 # We already found the complete path
b8025f34
AS
11613 ac_dir=`dirname $LIPO_FOR_TARGET`
11614 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11615echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11616 else
11617 # Canadian cross, just use what we found
c6b750e1
DJ
11618 echo "$as_me:$LINENO: result: pre-installed" >&5
11619echo "${ECHO_T}pre-installed" >&6
2429c060 11620 fi
be01d343 11621else
2429c060
PB
11622 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11623 # We already found the complete path
b8025f34
AS
11624 ac_dir=`dirname $LIPO_FOR_TARGET`
11625 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11626echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11627 elif test "x$target" = "x$host"; then
be01d343
PB
11628 # We can use an host tool
11629 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11630 echo "$as_me:$LINENO: result: host tool" >&5
11631echo "${ECHO_T}host tool" >&6
be01d343
PB
11632 else
11633 # We need a cross tool
c6b750e1
DJ
11634 echo "$as_me:$LINENO: result: pre-installed" >&5
11635echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11636 fi
11637fi
4b900473 11638
c6b750e1
DJ
11639echo "$as_me:$LINENO: checking where to find the target nm" >&5
11640echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11641if test "x${build}" != "x${host}" ; then
2429c060
PB
11642 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11643 # We already found the complete path
b8025f34
AS
11644 ac_dir=`dirname $NM_FOR_TARGET`
11645 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11646echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11647 else
11648 # Canadian cross, just use what we found
c6b750e1
DJ
11649 echo "$as_me:$LINENO: result: pre-installed" >&5
11650echo "${ECHO_T}pre-installed" >&6
2429c060 11651 fi
be01d343
PB
11652else
11653 ok=yes
11654 case " ${configdirs} " in
11655 *" binutils "*) ;;
11656 *) ok=no ;;
11657 esac
c6b750e1 11658
be01d343
PB
11659 if test $ok = yes; then
11660 # An in-tree tool is available and we can use it
11661 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11662 echo "$as_me:$LINENO: result: just compiled" >&5
11663echo "${ECHO_T}just compiled" >&6
2429c060
PB
11664 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11665 # We already found the complete path
b8025f34
AS
11666 ac_dir=`dirname $NM_FOR_TARGET`
11667 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11668echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11669 elif test "x$target" = "x$host"; then
11670 # We can use an host tool
11671 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11672 echo "$as_me:$LINENO: result: host tool" >&5
11673echo "${ECHO_T}host tool" >&6
be01d343
PB
11674 else
11675 # We need a cross tool
c6b750e1
DJ
11676 echo "$as_me:$LINENO: result: pre-installed" >&5
11677echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11678 fi
11679fi
4b900473 11680
c6b750e1
DJ
11681echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11682echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11683if test "x${build}" != "x${host}" ; then
2429c060
PB
11684 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11685 # We already found the complete path
b8025f34
AS
11686 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11687 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11688echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11689 else
11690 # Canadian cross, just use what we found
c6b750e1
DJ
11691 echo "$as_me:$LINENO: result: pre-installed" >&5
11692echo "${ECHO_T}pre-installed" >&6
2429c060 11693 fi
be01d343
PB
11694else
11695 ok=yes
11696 case " ${configdirs} " in
11697 *" binutils "*) ;;
11698 *) ok=no ;;
11699 esac
c6b750e1 11700
be01d343
PB
11701 if test $ok = yes; then
11702 # An in-tree tool is available and we can use it
11703 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11704 echo "$as_me:$LINENO: result: just compiled" >&5
11705echo "${ECHO_T}just compiled" >&6
2429c060
PB
11706 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11707 # We already found the complete path
b8025f34
AS
11708 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11709 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11710echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11711 elif test "x$target" = "x$host"; then
11712 # We can use an host tool
11713 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11714 echo "$as_me:$LINENO: result: host tool" >&5
11715echo "${ECHO_T}host tool" >&6
be01d343
PB
11716 else
11717 # We need a cross tool
c6b750e1
DJ
11718 echo "$as_me:$LINENO: result: pre-installed" >&5
11719echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11720 fi
11721fi
4b900473 11722
c6b750e1
DJ
11723echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11724echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11725if test "x${build}" != "x${host}" ; then
2429c060
PB
11726 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11727 # We already found the complete path
b8025f34
AS
11728 ac_dir=`dirname $RANLIB_FOR_TARGET`
11729 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11730echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11731 else
11732 # Canadian cross, just use what we found
c6b750e1
DJ
11733 echo "$as_me:$LINENO: result: pre-installed" >&5
11734echo "${ECHO_T}pre-installed" >&6
2429c060 11735 fi
be01d343
PB
11736else
11737 ok=yes
11738 case " ${configdirs} " in
11739 *" binutils "*) ;;
11740 *) ok=no ;;
11741 esac
c6b750e1 11742
be01d343
PB
11743 if test $ok = yes; then
11744 # An in-tree tool is available and we can use it
11745 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11746 echo "$as_me:$LINENO: result: just compiled" >&5
11747echo "${ECHO_T}just compiled" >&6
2429c060
PB
11748 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11749 # We already found the complete path
b8025f34
AS
11750 ac_dir=`dirname $RANLIB_FOR_TARGET`
11751 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11752echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11753 elif test "x$target" = "x$host"; then
11754 # We can use an host tool
11755 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11756 echo "$as_me:$LINENO: result: host tool" >&5
11757echo "${ECHO_T}host tool" >&6
be01d343
PB
11758 else
11759 # We need a cross tool
c6b750e1
DJ
11760 echo "$as_me:$LINENO: result: pre-installed" >&5
11761echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11762 fi
11763fi
4b900473 11764
c6b750e1
DJ
11765echo "$as_me:$LINENO: checking where to find the target strip" >&5
11766echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11767if test "x${build}" != "x${host}" ; then
2429c060
PB
11768 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11769 # We already found the complete path
b8025f34
AS
11770 ac_dir=`dirname $STRIP_FOR_TARGET`
11771 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11772echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11773 else
11774 # Canadian cross, just use what we found
c6b750e1
DJ
11775 echo "$as_me:$LINENO: result: pre-installed" >&5
11776echo "${ECHO_T}pre-installed" >&6
2429c060 11777 fi
be01d343
PB
11778else
11779 ok=yes
11780 case " ${configdirs} " in
11781 *" binutils "*) ;;
11782 *) ok=no ;;
11783 esac
c6b750e1 11784
be01d343
PB
11785 if test $ok = yes; then
11786 # An in-tree tool is available and we can use it
11787 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11788 echo "$as_me:$LINENO: result: just compiled" >&5
11789echo "${ECHO_T}just compiled" >&6
2429c060
PB
11790 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11791 # We already found the complete path
b8025f34
AS
11792 ac_dir=`dirname $STRIP_FOR_TARGET`
11793 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11794echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11795 elif test "x$target" = "x$host"; then
11796 # We can use an host tool
11797 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11798 echo "$as_me:$LINENO: result: host tool" >&5
11799echo "${ECHO_T}host tool" >&6
be01d343
PB
11800 else
11801 # We need a cross tool
c6b750e1
DJ
11802 echo "$as_me:$LINENO: result: pre-installed" >&5
11803echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11804 fi
11805fi
4b900473 11806
c6b750e1
DJ
11807echo "$as_me:$LINENO: checking where to find the target windres" >&5
11808echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11809if test "x${build}" != "x${host}" ; then
2429c060
PB
11810 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11811 # We already found the complete path
b8025f34
AS
11812 ac_dir=`dirname $WINDRES_FOR_TARGET`
11813 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11814echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11815 else
11816 # Canadian cross, just use what we found
c6b750e1
DJ
11817 echo "$as_me:$LINENO: result: pre-installed" >&5
11818echo "${ECHO_T}pre-installed" >&6
2429c060 11819 fi
be01d343
PB
11820else
11821 ok=yes
11822 case " ${configdirs} " in
11823 *" binutils "*) ;;
11824 *) ok=no ;;
11825 esac
c6b750e1 11826
be01d343
PB
11827 if test $ok = yes; then
11828 # An in-tree tool is available and we can use it
11829 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11830 echo "$as_me:$LINENO: result: just compiled" >&5
11831echo "${ECHO_T}just compiled" >&6
2429c060
PB
11832 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11833 # We already found the complete path
b8025f34
AS
11834 ac_dir=`dirname $WINDRES_FOR_TARGET`
11835 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11836echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11837 elif test "x$target" = "x$host"; then
11838 # We can use an host tool
11839 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11840 echo "$as_me:$LINENO: result: host tool" >&5
11841echo "${ECHO_T}host tool" >&6
be01d343
PB
11842 else
11843 # We need a cross tool
c6b750e1
DJ
11844 echo "$as_me:$LINENO: result: pre-installed" >&5
11845echo "${ECHO_T}pre-installed" >&6
be01d343 11846 fi
a0da8069 11847fi
54752a6b 11848
0c24b341
NC
11849echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11850echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11851if test "x${build}" != "x${host}" ; then
11852 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11853 # We already found the complete path
11854 ac_dir=`dirname $WINDMC_FOR_TARGET`
11855 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11856echo "${ECHO_T}pre-installed in $ac_dir" >&6
11857 else
11858 # Canadian cross, just use what we found
11859 echo "$as_me:$LINENO: result: pre-installed" >&5
11860echo "${ECHO_T}pre-installed" >&6
11861 fi
11862else
11863 ok=yes
11864 case " ${configdirs} " in
11865 *" binutils "*) ;;
11866 *) ok=no ;;
11867 esac
11868
11869 if test $ok = yes; then
11870 # An in-tree tool is available and we can use it
11871 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11872 echo "$as_me:$LINENO: result: just compiled" >&5
11873echo "${ECHO_T}just compiled" >&6
11874 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11875 # We already found the complete path
11876 ac_dir=`dirname $WINDMC_FOR_TARGET`
11877 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11878echo "${ECHO_T}pre-installed in $ac_dir" >&6
11879 elif test "x$target" = "x$host"; then
11880 # We can use an host tool
11881 WINDMC_FOR_TARGET='$(WINDMC)'
11882 echo "$as_me:$LINENO: result: host tool" >&5
11883echo "${ECHO_T}host tool" >&6
11884 else
11885 # We need a cross tool
11886 echo "$as_me:$LINENO: result: pre-installed" >&5
11887echo "${ECHO_T}pre-installed" >&6
11888 fi
11889fi
11890
54752a6b
NN
11891
11892
be01d343 11893
4b900473 11894
a0da8069
NN
11895# Certain tools may need extra flags.
11896AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11897RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11898NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11899
be01d343
PB
11900# When building target libraries, except in a Canadian cross, we use
11901# the same toolchain as the compiler we just built.
11902COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11903COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11904COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11905if test $host = $build; then
11906 case " $configdirs " in
11907 *" gcc "*)
11908 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11909 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11910 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11911 ;;
11912 esac
11913fi
11914
11915
11916
11917
11918
c6b750e1
DJ
11919echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11920echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11921# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11922if test "${enable_maintainer_mode+set}" = set; then
11923 enableval="$enable_maintainer_mode"
11924 USE_MAINTAINER_MODE=$enableval
11925else
11926 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11927fi;
11928echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11929echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11930
11931
11932if test "$USE_MAINTAINER_MODE" = yes; then
11933 MAINTAINER_MODE_TRUE=
11934 MAINTAINER_MODE_FALSE='#'
11935else
11936 MAINTAINER_MODE_TRUE='#'
11937 MAINTAINER_MODE_FALSE=
c6b750e1 11938fi
3d5e36ae
AO
11939MAINT=$MAINTAINER_MODE_TRUE
11940
1d39f329
NN
11941# ---------------------
11942# GCC bootstrap support
11943# ---------------------
11944
11945# Stage specific cflags for build.
11946stage1_cflags="-g"
11947case $build in
11948 vax-*-*)
11949 case ${GCC} in
11950 yes) stage1_cflags="-g -Wa,-J" ;;
11951 *) stage1_cflags="-g -J" ;;
11952 esac ;;
1d39f329
NN
11953esac
11954
1d89b610
PB
11955# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11956if test "$GCC" = yes; then
11957 saved_CFLAGS="$CFLAGS"
11958
11959 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11960 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11961 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11962echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11963 cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
11969
2038f525
PB
11970#if (__GNUC__ < 3) \
11971 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11972 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11973#error http://gcc.gnu.org/PR29382
11974#endif
11975
c6b750e1
DJ
11976int
11977main ()
11978{
11979
11980 ;
11981 return 0;
11982}
11983_ACEOF
11984rm -f conftest.$ac_objext
11985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest.$ac_objext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 echo "$as_me:$LINENO: result: yes" >&5
12007echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12008else
12009 echo "$as_me: failed program was:" >&5
12010sed 's/^/| /' conftest.$ac_ext >&5
12011
12012echo "$as_me:$LINENO: result: no" >&5
12013echo "${ECHO_T}no" >&6
12014fi
12015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12016
12017 CFLAGS="$saved_CFLAGS"
12018fi
12019
12020
1d39f329 12021
8a0d8a5c
PB
12022# Enable --enable-checking in stage1 of the compiler.
12023# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12024if test "${enable_stage1_checking+set}" = set; then
12025 enableval="$enable_stage1_checking"
12026 stage1_checking=--enable-checking=${enable_stage1_checking}
12027else
12028 if test "x$enable_checking" = xno; then
2abc4e65 12029 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12030else
2abc4e65 12031 stage1_checking=--enable-checking=types${enable_checking+,}$enable_checking
8a0d8a5c 12032fi
c6b750e1 12033fi;
8a0d8a5c
PB
12034
12035
1d39f329 12036# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12037# Check whether --enable-werror or --disable-werror was given.
12038if test "${enable_werror+set}" = set; then
12039 enableval="$enable_werror"
c6b750e1 12040
1d39f329 12041else
a0323144 12042 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12043 enable_werror=yes
79fcd0ec
PB
12044else
12045 enable_werror=no
12046fi
c6b750e1 12047fi;
1a6f2dc7
NN
12048case ${enable_werror} in
12049 yes) stage2_werror_flag="--enable-werror-always" ;;
12050 *) stage2_werror_flag="" ;;
1d39f329
NN
12051esac
12052
12053
108a6f8e 12054# Flags needed to enable html installing and building
c6b750e1 12055
108a6f8e
CD
12056# Check whether --with-datarootdir or --without-datarootdir was given.
12057if test "${with_datarootdir+set}" = set; then
12058 withval="$with_datarootdir"
12059 datarootdir="\${prefix}/${withval}"
12060else
12061 datarootdir="\${prefix}/share"
c6b750e1 12062fi;
108a6f8e
CD
12063
12064
12065# Check whether --with-docdir or --without-docdir was given.
12066if test "${with_docdir+set}" = set; then
12067 withval="$with_docdir"
12068 docdir="\${prefix}/${withval}"
12069else
12070 docdir="\${datarootdir}/doc"
c6b750e1 12071fi;
108a6f8e
CD
12072
12073
a3ca38d2
DD
12074# Check whether --with-pdfdir or --without-pdfdir was given.
12075if test "${with_pdfdir+set}" = set; then
12076 withval="$with_pdfdir"
12077 pdfdir="\${prefix}/${withval}"
12078else
12079 pdfdir="\${docdir}"
12080fi;
12081
12082
108a6f8e
CD
12083# Check whether --with-htmldir or --without-htmldir was given.
12084if test "${with_htmldir+set}" = set; then
12085 withval="$with_htmldir"
12086 htmldir="\${prefix}/${withval}"
12087else
12088 htmldir="\${docdir}"
c6b750e1 12089fi;
108a6f8e
CD
12090
12091
12092
12093
12094
b8025f34 12095
c6b750e1
DJ
12096 ac_config_files="$ac_config_files Makefile"
12097cat >confcache <<\_ACEOF
a0da8069
NN
12098# This file is a shell script that caches the results of configure
12099# tests run on this system so they can be shared between configure
c6b750e1
DJ
12100# scripts and configure runs, see configure's option --config-cache.
12101# It is not useful on other systems. If it contains results you don't
12102# want to keep, you may remove or edit it.
a0da8069 12103#
c6b750e1
DJ
12104# config.status only pays attention to the cache file if you give it
12105# the --recheck option to rerun configure.
a0da8069 12106#
c6b750e1
DJ
12107# `ac_cv_env_foo' variables (set or unset) will be overridden when
12108# loading this file, other *unset* `ac_cv_foo' will be assigned the
12109# following values.
12110
12111_ACEOF
12112
a0da8069
NN
12113# The following way of writing the cache mishandles newlines in values,
12114# but we know of no workaround that is simple, portable, and efficient.
12115# So, don't put newlines in cache variables' values.
12116# Ultrix sh set writes to stderr and can't be redirected directly,
12117# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12118{
12119 (set) 2>&1 |
12120 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12121 *ac_space=\ *)
12122 # `set' does not quote correctly, so add quotes (double-quote
12123 # substitution turns \\\\ into \\, and sed turns \\ into \).
12124 sed -n \
12125 "s/'/'\\\\''/g;
12126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12127 ;;
12128 *)
12129 # `set' quotes correctly as required by POSIX, so do not add quotes.
12130 sed -n \
12131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12132 ;;
12133 esac;
12134} |
12135 sed '
12136 t clear
12137 : clear
12138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12139 t end
12140 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12141 : end' >>confcache
12142if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12143 if test -w $cache_file; then
c6b750e1
DJ
12144 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12145 cat confcache >$cache_file
a0da8069
NN
12146 else
12147 echo "not updating unwritable cache $cache_file"
12148 fi
852e5f18 12149fi
a0da8069 12150rm -f confcache
852e5f18 12151
a0da8069
NN
12152test "x$prefix" = xNONE && prefix=$ac_default_prefix
12153# Let make expand exec_prefix.
12154test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12155
c6b750e1
DJ
12156# VPATH may cause trouble with some makes, so we remove $(srcdir),
12157# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12158# trailing colons and then remove the whole line if VPATH becomes empty
12159# (actually we leave an empty line to preserve line numbers).
a0da8069 12160if test "x$srcdir" = x.; then
c6b750e1
DJ
12161 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12162s/:*\$(srcdir):*/:/;
12163s/:*\${srcdir}:*/:/;
12164s/:*@srcdir@:*/:/;
12165s/^\([^=]*=[ ]*\):*/\1/;
12166s/:*$//;
12167s/^[^=]*=[ ]*$//;
12168}'
a0da8069 12169fi
252b5132 12170
a0da8069
NN
12171# Transform confdefs.h into DEFS.
12172# Protect against shell expansion while executing Makefile rules.
12173# Protect against Makefile macro expansion.
c6b750e1
DJ
12174#
12175# If the first sed substitution is executed (which looks for macros that
12176# take arguments), then we branch to the quote section. Otherwise,
12177# look for a macro that doesn't take arguments.
12178cat >confdef2opt.sed <<\_ACEOF
12179t clear
12180: clear
12181s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12182t quote
12183s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12184t quote
12185d
12186: quote
12187s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12188s,\[,\\&,g
12189s,\],\\&,g
12190s,\$,$$,g
12191p
12192_ACEOF
12193# We use echo to avoid assuming a particular line-breaking character.
12194# The extra dot is to prevent the shell from consuming trailing
12195# line-breaks from the sub-command output. A line-break within
12196# single-quotes doesn't work because, if this script is created in a
12197# platform that uses two characters for line-breaks (e.g., DOS), tr
12198# would break.
12199ac_LF_and_DOT=`echo; echo .`
12200DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12201rm -f confdef2opt.sed
12202
12203
12204ac_libobjs=
12205ac_ltlibobjs=
12206for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12207 # 1. Remove the extension, and $U if already installed.
12208 ac_i=`echo "$ac_i" |
12209 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12210 # 2. Add them.
12211 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12212 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12213done
12214LIBOBJS=$ac_libobjs
852e5f18 12215
c6b750e1 12216LTLIBOBJS=$ac_ltlibobjs
376a0e54 12217
cac3d6c4 12218
c6b750e1
DJ
12219
12220: ${CONFIG_STATUS=./config.status}
12221ac_clean_files_save=$ac_clean_files
12222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12223{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12224echo "$as_me: creating $CONFIG_STATUS" >&6;}
12225cat >$CONFIG_STATUS <<_ACEOF
12226#! $SHELL
12227# Generated by $as_me.
a0da8069 12228# Run this file to recreate the current configuration.
a0da8069 12229# Compiler output produced by configure, useful for debugging
c6b750e1 12230# configure, is in config.log if it exists.
376a0e54 12231
c6b750e1
DJ
12232debug=false
12233ac_cs_recheck=false
12234ac_cs_silent=false
12235SHELL=\${CONFIG_SHELL-$SHELL}
12236_ACEOF
12237
12238cat >>$CONFIG_STATUS <<\_ACEOF
12239## --------------------- ##
12240## M4sh Initialization. ##
12241## --------------------- ##
12242
12243# Be Bourne compatible
12244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12245 emulate sh
12246 NULLCMD=:
12247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12248 # is contrary to our usage. Disable this feature.
12249 alias -g '${1+"$@"}'='"$@"'
12250elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12251 set -o posix
12252fi
12253DUALCASE=1; export DUALCASE # for MKS sh
12254
12255# Support unset when possible.
12256if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12257 as_unset=unset
12258else
12259 as_unset=false
12260fi
12261
12262
12263# Work around bugs in pre-3.0 UWIN ksh.
12264$as_unset ENV MAIL MAILPATH
12265PS1='$ '
12266PS2='> '
12267PS4='+ '
12268
12269# NLS nuisances.
12270for as_var in \
12271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12273 LC_TELEPHONE LC_TIME
12274do
12275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12276 eval $as_var=C; export $as_var
12277 else
12278 $as_unset $as_var
12279 fi
12280done
12281
12282# Required to use basename.
12283if expr a : '\(a\)' >/dev/null 2>&1; then
12284 as_expr=expr
12285else
12286 as_expr=false
12287fi
12288
12289if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12290 as_basename=basename
12291else
12292 as_basename=false
12293fi
12294
12295
12296# Name of the executable.
12297as_me=`$as_basename "$0" ||
12298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12299 X"$0" : 'X\(//\)$' \| \
12300 X"$0" : 'X\(/\)$' \| \
12301 . : '\(.\)' 2>/dev/null ||
12302echo X/"$0" |
12303 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12304 /^X\/\(\/\/\)$/{ s//\1/; q; }
12305 /^X\/\(\/\).*/{ s//\1/; q; }
12306 s/.*/./; q'`
12307
12308
12309# PATH needs CR, and LINENO needs CR and PATH.
12310# Avoid depending upon Character Ranges.
12311as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12312as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12313as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12314as_cr_digits='0123456789'
12315as_cr_alnum=$as_cr_Letters$as_cr_digits
12316
12317# The user is always right.
12318if test "${PATH_SEPARATOR+set}" != set; then
12319 echo "#! /bin/sh" >conf$$.sh
12320 echo "exit 0" >>conf$$.sh
12321 chmod +x conf$$.sh
12322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12323 PATH_SEPARATOR=';'
12324 else
12325 PATH_SEPARATOR=:
12326 fi
12327 rm -f conf$$.sh
12328fi
12329
12330
12331 as_lineno_1=$LINENO
12332 as_lineno_2=$LINENO
12333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12334 test "x$as_lineno_1" != "x$as_lineno_2" &&
12335 test "x$as_lineno_3" = "x$as_lineno_2" || {
12336 # Find who we are. Look in the path if we contain no path at all
12337 # relative or not.
12338 case $0 in
12339 *[\\/]* ) as_myself=$0 ;;
12340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341for as_dir in $PATH
12342do
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
12345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12346done
12347
12348 ;;
12349 esac
12350 # We did not find ourselves, most probably we were run as `sh COMMAND'
12351 # in which case we are not to be found in the path.
12352 if test "x$as_myself" = x; then
12353 as_myself=$0
12354 fi
12355 if test ! -f "$as_myself"; then
12356 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12357echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12358 { (exit 1); exit 1; }; }
12359 fi
12360 case $CONFIG_SHELL in
12361 '')
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for as_base in sh bash ksh sh5; do
12368 case $as_dir in
12369 /*)
12370 if ("$as_dir/$as_base" -c '
12371 as_lineno_1=$LINENO
12372 as_lineno_2=$LINENO
12373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12374 test "x$as_lineno_1" != "x$as_lineno_2" &&
12375 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12376 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12377 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12378 CONFIG_SHELL=$as_dir/$as_base
12379 export CONFIG_SHELL
12380 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12381 fi;;
12382 esac
12383 done
12384done
12385;;
12386 esac
12387
12388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12389 # uniformly replaced by the line number. The first 'sed' inserts a
12390 # line-number line before each line; the second 'sed' does the real
12391 # work. The second script uses 'N' to pair each line-number line
12392 # with the numbered line, and appends trailing '-' during
12393 # substitution so that $LINENO is not a special case at line end.
12394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12395 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12396 sed '=' <$as_myself |
12397 sed '
12398 N
12399 s,$,-,
12400 : loop
12401 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12402 t loop
12403 s,-$,,
12404 s,^['$as_cr_digits']*\n,,
12405 ' >$as_me.lineno &&
12406 chmod +x $as_me.lineno ||
12407 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12408echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12409 { (exit 1); exit 1; }; }
12410
12411 # Don't try to exec as it changes $[0], causing all sort of problems
12412 # (the dirname of $[0] is not the place where we might find the
12413 # original and so on. Autoconf is especially sensible to this).
12414 . ./$as_me.lineno
12415 # Exit status is that of the last command.
12416 exit
12417}
12418
12419
12420case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12421 *c*,-n*) ECHO_N= ECHO_C='
12422' ECHO_T=' ' ;;
12423 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12424 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12425esac
12426
12427if expr a : '\(a\)' >/dev/null 2>&1; then
12428 as_expr=expr
12429else
12430 as_expr=false
12431fi
12432
12433rm -f conf$$ conf$$.exe conf$$.file
12434echo >conf$$.file
12435if ln -s conf$$.file conf$$ 2>/dev/null; then
12436 # We could just check for DJGPP; but this test a) works b) is more generic
12437 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12438 if test -f conf$$.exe; then
12439 # Don't use ln at all; we don't have any links
12440 as_ln_s='cp -p'
12441 else
12442 as_ln_s='ln -s'
12443 fi
12444elif ln conf$$.file conf$$ 2>/dev/null; then
12445 as_ln_s=ln
12446else
12447 as_ln_s='cp -p'
12448fi
12449rm -f conf$$ conf$$.exe conf$$.file
12450
12451if mkdir -p . 2>/dev/null; then
12452 as_mkdir_p=:
12453else
12454 test -d ./-p && rmdir ./-p
12455 as_mkdir_p=false
12456fi
12457
12458as_executable_p="test -f"
12459
12460# Sed expression to map a string onto a valid CPP name.
12461as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12462
12463# Sed expression to map a string onto a valid variable name.
12464as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12465
12466
12467# IFS
12468# We need space, tab and new line, in precisely that order.
12469as_nl='
12470'
12471IFS=" $as_nl"
12472
12473# CDPATH.
12474$as_unset CDPATH
12475
12476exec 6>&1
12477
12478# Open the log real soon, to keep \$[0] and so on meaningful, and to
12479# report actual input values of CONFIG_FILES etc. instead of their
12480# values after options handling. Logging --version etc. is OK.
12481exec 5>>config.log
12482{
12483 echo
12484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12485## Running $as_me. ##
12486_ASBOX
12487} >&5
12488cat >&5 <<_CSEOF
12489
12490This file was extended by $as_me, which was
12491generated by GNU Autoconf 2.59. Invocation command line was
12492
12493 CONFIG_FILES = $CONFIG_FILES
12494 CONFIG_HEADERS = $CONFIG_HEADERS
12495 CONFIG_LINKS = $CONFIG_LINKS
12496 CONFIG_COMMANDS = $CONFIG_COMMANDS
12497 $ $0 $@
12498
12499_CSEOF
12500echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12501echo >&5
12502_ACEOF
12503
12504# Files that config.status was made for.
12505if test -n "$ac_config_files"; then
12506 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12507fi
12508
12509if test -n "$ac_config_headers"; then
12510 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12511fi
12512
12513if test -n "$ac_config_links"; then
12514 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12515fi
12516
12517if test -n "$ac_config_commands"; then
12518 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12519fi
12520
12521cat >>$CONFIG_STATUS <<\_ACEOF
12522
12523ac_cs_usage="\
12524\`$as_me' instantiates files from templates according to the
12525current configuration.
12526
12527Usage: $0 [OPTIONS] [FILE]...
12528
12529 -h, --help print this help, then exit
12530 -V, --version print version number, then exit
12531 -q, --quiet do not print progress messages
12532 -d, --debug don't remove temporary files
12533 --recheck update $as_me by reconfiguring in the same conditions
12534 --file=FILE[:TEMPLATE]
12535 instantiate the configuration file FILE
12536
12537Configuration files:
12538$config_files
12539
12540Report bugs to <bug-autoconf@gnu.org>."
12541_ACEOF
12542
12543cat >>$CONFIG_STATUS <<_ACEOF
12544ac_cs_version="\\
12545config.status
12546configured by $0, generated by GNU Autoconf 2.59,
12547 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12548
12549Copyright (C) 2003 Free Software Foundation, Inc.
12550This config.status script is free software; the Free Software Foundation
12551gives unlimited permission to copy, distribute and modify it."
12552srcdir=$srcdir
12553INSTALL="$INSTALL"
12554_ACEOF
12555
12556cat >>$CONFIG_STATUS <<\_ACEOF
12557# If no file are specified by the user, then we need to provide default
12558# value. By we need to know if files were specified by the user.
12559ac_need_defaults=:
12560while test $# != 0
a0da8069 12561do
c6b750e1
DJ
12562 case $1 in
12563 --*=*)
12564 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12565 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12566 ac_shift=:
12567 ;;
12568 -*)
12569 ac_option=$1
12570 ac_optarg=$2
12571 ac_shift=shift
12572 ;;
12573 *) # This is not an option, so the user has probably given explicit
12574 # arguments.
12575 ac_option=$1
12576 ac_need_defaults=false;;
12577 esac
12578
12579 case $ac_option in
12580 # Handling of the options.
12581_ACEOF
12582cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12584 ac_cs_recheck=: ;;
12585 --version | --vers* | -V )
12586 echo "$ac_cs_version"; exit 0 ;;
12587 --he | --h)
12588 # Conflict between --help and --header
12589 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12590Try \`$0 --help' for more information." >&5
12591echo "$as_me: error: ambiguous option: $1
12592Try \`$0 --help' for more information." >&2;}
12593 { (exit 1); exit 1; }; };;
12594 --help | --hel | -h )
12595 echo "$ac_cs_usage"; exit 0 ;;
12596 --debug | --d* | -d )
12597 debug=: ;;
12598 --file | --fil | --fi | --f )
12599 $ac_shift
12600 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12601 ac_need_defaults=false;;
12602 --header | --heade | --head | --hea )
12603 $ac_shift
12604 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12605 ac_need_defaults=false;;
12606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12608 ac_cs_silent=: ;;
12609
12610 # This is an error.
12611 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12612Try \`$0 --help' for more information." >&5
12613echo "$as_me: error: unrecognized option: $1
12614Try \`$0 --help' for more information." >&2;}
12615 { (exit 1); exit 1; }; } ;;
12616
12617 *) ac_config_targets="$ac_config_targets $1" ;;
12618
376a0e54 12619 esac
c6b750e1 12620 shift
376a0e54
CM
12621done
12622
c6b750e1 12623ac_configure_extra_args=
376a0e54 12624
c6b750e1
DJ
12625if $ac_cs_silent; then
12626 exec 6>/dev/null
12627 ac_configure_extra_args="$ac_configure_extra_args --silent"
12628fi
376a0e54 12629
c6b750e1
DJ
12630_ACEOF
12631cat >>$CONFIG_STATUS <<_ACEOF
12632if \$ac_cs_recheck; then
12633 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12634 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12635fi
12636
12637_ACEOF
12638
12639
12640
12641
12642
12643cat >>$CONFIG_STATUS <<\_ACEOF
12644for ac_config_target in $ac_config_targets
12645do
12646 case "$ac_config_target" in
12647 # Handling of arguments.
12648 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12649 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12650echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12651 { (exit 1); exit 1; }; };;
12652 esac
12653done
12654
12655# If the user did not use the arguments to specify the items to instantiate,
12656# then the envvar interface is used. Set only those that are not.
12657# We use the long form for the default assignment because of an extremely
12658# bizarre bug on SunOS 4.1.3.
12659if $ac_need_defaults; then
12660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12661fi
12662
12663# Have a temporary directory for convenience. Make it in the build tree
12664# simply because there is no reason to put it here, and in addition,
12665# creating and moving files from /tmp can sometimes cause problems.
12666# Create a temporary directory, and hook for its removal unless debugging.
12667$debug ||
12668{
12669 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12670 trap '{ (exit 1); exit 1; }' 1 2 13 15
12671}
12672
12673# Create a (secure) tmp directory for tmp files.
12674
12675{
12676 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12677 test -n "$tmp" && test -d "$tmp"
12678} ||
12679{
12680 tmp=./confstat$$-$RANDOM
12681 (umask 077 && mkdir $tmp)
12682} ||
12683{
12684 echo "$me: cannot create a temporary directory in ." >&2
12685 { (exit 1); exit 1; }
12686}
12687
12688_ACEOF
12689
12690cat >>$CONFIG_STATUS <<_ACEOF
12691
12692#
12693# CONFIG_FILES section.
12694#
12695
12696# No need to generate the scripts if there are no CONFIG_FILES.
12697# This happens for instance when ./config.status config.h
12698if test -n "\$CONFIG_FILES"; then
12699 # Protect against being on the right side of a sed subst in config.status.
12700 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12701 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12702s,@SHELL@,$SHELL,;t t
12703s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12704s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12705s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12706s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12707s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12708s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12709s,@exec_prefix@,$exec_prefix,;t t
12710s,@prefix@,$prefix,;t t
12711s,@program_transform_name@,$program_transform_name,;t t
12712s,@bindir@,$bindir,;t t
12713s,@sbindir@,$sbindir,;t t
12714s,@libexecdir@,$libexecdir,;t t
12715s,@datadir@,$datadir,;t t
12716s,@sysconfdir@,$sysconfdir,;t t
12717s,@sharedstatedir@,$sharedstatedir,;t t
12718s,@localstatedir@,$localstatedir,;t t
12719s,@libdir@,$libdir,;t t
12720s,@includedir@,$includedir,;t t
12721s,@oldincludedir@,$oldincludedir,;t t
12722s,@infodir@,$infodir,;t t
12723s,@mandir@,$mandir,;t t
12724s,@build_alias@,$build_alias,;t t
12725s,@host_alias@,$host_alias,;t t
12726s,@target_alias@,$target_alias,;t t
12727s,@DEFS@,$DEFS,;t t
12728s,@ECHO_C@,$ECHO_C,;t t
12729s,@ECHO_N@,$ECHO_N,;t t
12730s,@ECHO_T@,$ECHO_T,;t t
12731s,@LIBS@,$LIBS,;t t
12732s,@build@,$build,;t t
12733s,@build_cpu@,$build_cpu,;t t
12734s,@build_vendor@,$build_vendor,;t t
12735s,@build_os@,$build_os,;t t
12736s,@build_noncanonical@,$build_noncanonical,;t t
12737s,@host_noncanonical@,$host_noncanonical,;t t
12738s,@target_noncanonical@,$target_noncanonical,;t t
12739s,@host@,$host,;t t
12740s,@host_cpu@,$host_cpu,;t t
12741s,@host_vendor@,$host_vendor,;t t
12742s,@host_os@,$host_os,;t t
12743s,@target@,$target,;t t
12744s,@target_cpu@,$target_cpu,;t t
12745s,@target_vendor@,$target_vendor,;t t
12746s,@target_os@,$target_os,;t t
12747s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12748s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12749s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12750s,@LN@,$LN,;t t
12751s,@LN_S@,$LN_S,;t t
12752s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12753s,@build_libsubdir@,$build_libsubdir,;t t
12754s,@build_subdir@,$build_subdir,;t t
12755s,@host_subdir@,$host_subdir,;t t
12756s,@target_subdir@,$target_subdir,;t t
12757s,@CC@,$CC,;t t
12758s,@CFLAGS@,$CFLAGS,;t t
12759s,@LDFLAGS@,$LDFLAGS,;t t
12760s,@CPPFLAGS@,$CPPFLAGS,;t t
12761s,@ac_ct_CC@,$ac_ct_CC,;t t
12762s,@EXEEXT@,$EXEEXT,;t t
12763s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12764s,@CXX@,$CXX,;t t
12765s,@CXXFLAGS@,$CXXFLAGS,;t t
12766s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12767s,@GNATBIND@,$GNATBIND,;t t
12768s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12769s,@GNATMAKE@,$GNATMAKE,;t t
12770s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12771s,@do_compare@,$do_compare,;t t
12772s,@gmplibs@,$gmplibs,;t t
12773s,@gmpinc@,$gmpinc,;t t
12774s,@stage1_languages@,$stage1_languages,;t t
12775s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12776s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12777s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12778s,@tooldir@,$tooldir,;t t
12779s,@build_tooldir@,$build_tooldir,;t t
12780s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12781s,@GDB_TK@,$GDB_TK,;t t
12782s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12783s,@build_configargs@,$build_configargs,;t t
12784s,@build_configdirs@,$build_configdirs,;t t
12785s,@host_configargs@,$host_configargs,;t t
12786s,@configdirs@,$configdirs,;t t
12787s,@target_configargs@,$target_configargs,;t t
12788s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12789s,@config_shell@,$config_shell,;t t
12790s,@YACC@,$YACC,;t t
12791s,@BISON@,$BISON,;t t
12792s,@M4@,$M4,;t t
12793s,@LEX@,$LEX,;t t
12794s,@FLEX@,$FLEX,;t t
12795s,@MAKEINFO@,$MAKEINFO,;t t
12796s,@EXPECT@,$EXPECT,;t t
12797s,@RUNTEST@,$RUNTEST,;t t
12798s,@AR@,$AR,;t t
12799s,@AS@,$AS,;t t
12800s,@DLLTOOL@,$DLLTOOL,;t t
12801s,@LD@,$LD,;t t
12802s,@LIPO@,$LIPO,;t t
12803s,@NM@,$NM,;t t
12804s,@RANLIB@,$RANLIB,;t t
12805s,@STRIP@,$STRIP,;t t
12806s,@WINDRES@,$WINDRES,;t t
0c24b341 12807s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12808s,@OBJCOPY@,$OBJCOPY,;t t
12809s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12810s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12811s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12812s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12813s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12814s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12815s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12816s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12817s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12818s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12819s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12820s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12821s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12822s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12823s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12824s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12825s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12826s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12827s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12828s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12829s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12830s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12831s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12832s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12833s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12834s,@MAINT@,$MAINT,;t t
12835s,@stage1_cflags@,$stage1_cflags,;t t
12836s,@stage1_checking@,$stage1_checking,;t t
12837s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12838s,@datarootdir@,$datarootdir,;t t
12839s,@docdir@,$docdir,;t t
a3ca38d2 12840s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12841s,@htmldir@,$htmldir,;t t
12842s,@LIBOBJS@,$LIBOBJS,;t t
12843s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12844/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12845s,@serialization_dependencies@,,;t t
a0da8069 12846/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12847s,@host_makefile_frag@,,;t t
a0da8069 12848/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12849s,@target_makefile_frag@,,;t t
a0da8069 12850/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12851s,@alphaieee_frag@,,;t t
a0da8069 12852/@ospace_frag@/r $ospace_frag
c6b750e1 12853s,@ospace_frag@,,;t t
a0da8069 12854CEOF
252b5132 12855
c6b750e1
DJ
12856_ACEOF
12857
12858 cat >>$CONFIG_STATUS <<\_ACEOF
12859 # Split the substitutions into bite-sized pieces for seds with
12860 # small command number limits, like on Digital OSF/1 and HP-UX.
12861 ac_max_sed_lines=48
12862 ac_sed_frag=1 # Number of current file.
12863 ac_beg=1 # First line for current file.
12864 ac_end=$ac_max_sed_lines # Line after last line for current file.
12865 ac_more_lines=:
12866 ac_sed_cmds=
12867 while $ac_more_lines; do
12868 if test $ac_beg -gt 1; then
12869 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12870 else
12871 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12872 fi
12873 if test ! -s $tmp/subs.frag; then
12874 ac_more_lines=false
a0da8069 12875 else
c6b750e1
DJ
12876 # The purpose of the label and of the branching condition is to
12877 # speed up the sed processing (if there are no `@' at all, there
12878 # is no need to browse any of the substitutions).
12879 # These are the two extra sed commands mentioned above.
12880 (echo ':t
12881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12882 if test -z "$ac_sed_cmds"; then
12883 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12884 else
12885 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12886 fi
12887 ac_sed_frag=`expr $ac_sed_frag + 1`
12888 ac_beg=$ac_end
12889 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12890 fi
c6b750e1
DJ
12891 done
12892 if test -z "$ac_sed_cmds"; then
12893 ac_sed_cmds=cat
852e5f18 12894 fi
c6b750e1 12895fi # test -n "$CONFIG_FILES"
cac3d6c4 12896
c6b750e1
DJ
12897_ACEOF
12898cat >>$CONFIG_STATUS <<\_ACEOF
12899for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12901 case $ac_file in
12902 - | *:- | *:-:* ) # input from stdin
12903 cat >$tmp/stdin
12904 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12906 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12907 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12908 * ) ac_file_in=$ac_file.in ;;
a0da8069 12909 esac
252b5132 12910
c6b750e1
DJ
12911 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12912 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12914 X"$ac_file" : 'X\(//\)[^/]' \| \
12915 X"$ac_file" : 'X\(//\)$' \| \
12916 X"$ac_file" : 'X\(/\)' \| \
12917 . : '\(.\)' 2>/dev/null ||
12918echo X"$ac_file" |
12919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12921 /^X\(\/\/\)$/{ s//\1/; q; }
12922 /^X\(\/\).*/{ s//\1/; q; }
12923 s/.*/./; q'`
12924 { if $as_mkdir_p; then
12925 mkdir -p "$ac_dir"
cac3d6c4 12926 else
c6b750e1
DJ
12927 as_dir="$ac_dir"
12928 as_dirs=
12929 while test ! -d "$as_dir"; do
12930 as_dirs="$as_dir $as_dirs"
12931 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12932$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12933 X"$as_dir" : 'X\(//\)[^/]' \| \
12934 X"$as_dir" : 'X\(//\)$' \| \
12935 X"$as_dir" : 'X\(/\)' \| \
12936 . : '\(.\)' 2>/dev/null ||
12937echo X"$as_dir" |
12938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12940 /^X\(\/\/\)$/{ s//\1/; q; }
12941 /^X\(\/\).*/{ s//\1/; q; }
12942 s/.*/./; q'`
12943 done
12944 test ! -n "$as_dirs" || mkdir $as_dirs
12945 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12946echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12947 { (exit 1); exit 1; }; }; }
12948
12949 ac_builddir=.
252b5132 12950
c6b750e1
DJ
12951if test "$ac_dir" != .; then
12952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12953 # A "../" for each directory in $ac_dir_suffix.
12954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12955else
12956 ac_dir_suffix= ac_top_builddir=
12957fi
12958
12959case $srcdir in
12960 .) # No --srcdir option. We are building in place.
12961 ac_srcdir=.
12962 if test -z "$ac_top_builddir"; then
12963 ac_top_srcdir=.
12964 else
12965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12966 fi ;;
12967 [\\/]* | ?:[\\/]* ) # Absolute path.
12968 ac_srcdir=$srcdir$ac_dir_suffix;
12969 ac_top_srcdir=$srcdir ;;
a0da8069 12970 *) # Relative path.
c6b750e1
DJ
12971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12973esac
252b5132 12974
c6b750e1
DJ
12975# Do not use `cd foo && pwd` to compute absolute paths, because
12976# the directories may not exist.
12977case `pwd` in
12978.) ac_abs_builddir="$ac_dir";;
12979*)
12980 case "$ac_dir" in
12981 .) ac_abs_builddir=`pwd`;;
12982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12983 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12984 esac;;
12985esac
12986case $ac_abs_builddir in
12987.) ac_abs_top_builddir=${ac_top_builddir}.;;
12988*)
12989 case ${ac_top_builddir}. in
12990 .) ac_abs_top_builddir=$ac_abs_builddir;;
12991 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12992 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12993 esac;;
12994esac
12995case $ac_abs_builddir in
12996.) ac_abs_srcdir=$ac_srcdir;;
12997*)
12998 case $ac_srcdir in
12999 .) ac_abs_srcdir=$ac_abs_builddir;;
13000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13002 esac;;
13003esac
13004case $ac_abs_builddir in
13005.) ac_abs_top_srcdir=$ac_top_srcdir;;
13006*)
13007 case $ac_top_srcdir in
13008 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13009 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13010 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13011 esac;;
13012esac
252b5132 13013
c6b750e1
DJ
13014
13015 case $INSTALL in
13016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13017 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13018 esac
252b5132 13019
c6b750e1
DJ
13020 if test x"$ac_file" != x-; then
13021 { echo "$as_me:$LINENO: creating $ac_file" >&5
13022echo "$as_me: creating $ac_file" >&6;}
13023 rm -f "$ac_file"
13024 fi
13025 # Let's still pretend it is `configure' which instantiates (i.e., don't
13026 # use $as_me), people would be surprised to read:
13027 # /* config.h. Generated by config.status. */
13028 if test x"$ac_file" = x-; then
13029 configure_input=
13030 else
13031 configure_input="$ac_file. "
13032 fi
13033 configure_input=$configure_input"Generated from `echo $ac_file_in |
13034 sed 's,.*/,,'` by configure."
13035
13036 # First look for the input files in the build tree, otherwise in the
13037 # src tree.
13038 ac_file_inputs=`IFS=:
13039 for f in $ac_file_in; do
13040 case $f in
13041 -) echo $tmp/stdin ;;
13042 [\\/$]*)
13043 # Absolute (can't be DOS-style, as IFS=:)
13044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13045echo "$as_me: error: cannot find input file: $f" >&2;}
13046 { (exit 1); exit 1; }; }
13047 echo "$f";;
13048 *) # Relative
13049 if test -f "$f"; then
13050 # Build tree
13051 echo "$f"
13052 elif test -f "$srcdir/$f"; then
13053 # Source tree
13054 echo "$srcdir/$f"
13055 else
13056 # /dev/null tree
13057 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13058echo "$as_me: error: cannot find input file: $f" >&2;}
13059 { (exit 1); exit 1; }; }
13060 fi;;
13061 esac
13062 done` || { (exit 1); exit 1; }
13063_ACEOF
13064cat >>$CONFIG_STATUS <<_ACEOF
13065 sed "$ac_vpsub
13066$extrasub
13067_ACEOF
13068cat >>$CONFIG_STATUS <<\_ACEOF
13069:t
13070/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13071s,@configure_input@,$configure_input,;t t
13072s,@srcdir@,$ac_srcdir,;t t
13073s,@abs_srcdir@,$ac_abs_srcdir,;t t
13074s,@top_srcdir@,$ac_top_srcdir,;t t
13075s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13076s,@builddir@,$ac_builddir,;t t
13077s,@abs_builddir@,$ac_abs_builddir,;t t
13078s,@top_builddir@,$ac_top_builddir,;t t
13079s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13080s,@INSTALL@,$ac_INSTALL,;t t
13081" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13082 rm -f $tmp/stdin
13083 if test x"$ac_file" != x-; then
13084 mv $tmp/out $ac_file
13085 else
13086 cat $tmp/out
13087 rm -f $tmp/out
13088 fi
c148b4cb 13089
c6b750e1
DJ
13090done
13091_ACEOF
c148b4cb 13092
c6b750e1 13093cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13094
c6b750e1
DJ
13095{ (exit 0); exit 0; }
13096_ACEOF
c148b4cb 13097chmod +x $CONFIG_STATUS
c6b750e1
DJ
13098ac_clean_files=$ac_clean_files_save
13099
13100
13101# configure is writing to config.log, and then calls config.status.
13102# config.status does its own redirection, appending to config.log.
13103# Unfortunately, on DOS this fails, as config.log is still kept open
13104# by configure, so config.status won't be able to write to it; its
13105# output is simply discarded. So we exec the FD to /dev/null,
13106# effectively closing config.log, so it can be properly (re)opened and
13107# appended to by config.status. When coming back to configure, we
13108# need to make the FD available again.
13109if test "$no_create" != yes; then
13110 ac_cs_success=:
13111 ac_config_status_args=
13112 test "$silent" = yes &&
13113 ac_config_status_args="$ac_config_status_args --quiet"
13114 exec 5>/dev/null
13115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13116 exec 5>>config.log
13117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13118 # would make configure fail if this is the last instruction.
13119 $ac_cs_success || { (exit 1); exit 1; }
13120fi
c148b4cb 13121
This page took 1.118342 seconds and 4 git commands to generate.