Add new binutils target: moxie
[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#
20135e4c 5# Copyright (C) 2003, 2008 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"
e28c595f 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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 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 ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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'
7a283e07 277ac_pwd=`pwd`
a0da8069
NN
278
279# Initialize some variables set by options.
c6b750e1
DJ
280ac_init_help=
281ac_init_version=false
a0da8069
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
c6b750e1 284cache_file=/dev/null
a0da8069 285exec_prefix=NONE
a0da8069 286no_create=
a0da8069
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
a0da8069
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
c6b750e1
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
252b5132 316
a0da8069
NN
317ac_prev=
318for ac_option
319do
a0da8069
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
252b5132 326
c6b750e1 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
c6b750e1 331 case $ac_option in
a0da8069
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 336 bindir=$ac_optarg ;;
a0da8069
NN
337
338 -build | --build | --buil | --bui | --bu)
c6b750e1 339 ac_prev=build_alias ;;
a0da8069 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 341 build_alias=$ac_optarg ;;
a0da8069
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
a0da8069
NN
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
c6b750e1 357 datadir=$ac_optarg ;;
a0da8069
NN
358
359 -disable-* | --disable-*)
c6b750e1 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 361 # Reject names that are not valid shell variable names.
c6b750e1
DJ
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
a0da8069
NN
367
368 -enable-* | --enable-*)
c6b750e1 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 370 # Reject names that are not valid shell variable names.
c6b750e1
DJ
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
377 *) ac_optarg=yes ;;
378 esac
c6b750e1 379 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
c6b750e1 388 exec_prefix=$ac_optarg ;;
a0da8069
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
c6b750e1
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
a0da8069
NN
400
401 -host | --host | --hos | --ho)
c6b750e1 402 ac_prev=host_alias ;;
a0da8069 403 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 404 host_alias=$ac_optarg ;;
a0da8069
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 411 includedir=$ac_optarg ;;
a0da8069
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 416 infodir=$ac_optarg ;;
a0da8069
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 421 libdir=$ac_optarg ;;
a0da8069
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
c6b750e1 428 libexecdir=$ac_optarg ;;
a0da8069
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 437 localstatedir=$ac_optarg ;;
a0da8069
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 442 mandir=$ac_optarg ;;
a0da8069
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 449 | --no-cr | --no-c | -n)
a0da8069
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 463 oldincludedir=$ac_optarg ;;
a0da8069
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 468 prefix=$ac_optarg ;;
a0da8069
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 475 program_prefix=$ac_optarg ;;
a0da8069
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 482 program_suffix=$ac_optarg ;;
a0da8069
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 499 program_transform_name=$ac_optarg ;;
a0da8069
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
c6b750e1 509 sbindir=$ac_optarg ;;
a0da8069
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
c6b750e1 520 sharedstatedir=$ac_optarg ;;
a0da8069
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
c6b750e1 525 site=$ac_optarg ;;
a0da8069
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 530 srcdir=$ac_optarg ;;
a0da8069
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 537 sysconfdir=$ac_optarg ;;
a0da8069
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 540 ac_prev=target_alias ;;
a0da8069 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 542 target_alias=$ac_optarg ;;
a0da8069
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
c6b750e1
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
a0da8069
NN
549
550 -with-* | --with-*)
c6b750e1 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 552 # Reject names that are not valid shell variable names.
c6b750e1
DJ
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
a0da8069 556 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
559 *) ac_optarg=yes ;;
560 esac
c6b750e1 561 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
562
563 -without-* | --without-*)
c6b750e1 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 565 # Reject names that are not valid shell variable names.
c6b750e1
DJ
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
a0da8069
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 581 x_includes=$ac_optarg ;;
a0da8069
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 588 x_libraries=$ac_optarg ;;
a0da8069 589
c6b750e1
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
a0da8069
NN
593 ;;
594
c6b750e1
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
a0da8069 605 *)
c6b750e1
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
c6b750e1
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
a0da8069 620fi
a0da8069 621
c6b750e1
DJ
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
a0da8069 632
c6b750e1
DJ
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 636do
c6b750e1
DJ
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
a0da8069
NN
642 esac
643done
644
c6b750e1
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
376a0e54 651
c6b750e1
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
a0da8069 667
a0da8069
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
c6b750e1
DJ
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
a0da8069
NN
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
a0da8069 696 else
c6b750e1
DJ
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
9cc8ae67
PB
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
c6b750e1
DJ
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
883_ACEOF
884
885 cat <<_ACEOF
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
a0da8069 926fi
a0da8069 927
c6b750e1
DJ
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 935 --enable-gold use gold instead of ld
521ec477
DD
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
e28c595f
JM
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
521ec477 940 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 941 stage1. Mostly useful for compiler development.
521ec477
DD
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
c6b750e1 947 sub-packages for the host, target or build
521ec477 948 machine, or all sub-packages
c6b750e1
DJ
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
521ec477
DD
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
c6b750e1
DJ
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
521ec477
DD
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
521ec477
DD
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
972 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
973 when linking with PPL
e28c595f
JM
974 --with-ppl=PATH Specify prefix directory for the installed PPL package
975 Equivalent to --with-ppl-include=PATH/include
976 plus --with-ppl-lib=PATH/lib
977 --with-ppl-include=PATH Specify directory for installed PPL include files
978 --with-ppl-lib=PATH Specify the directory for the installed PPL library
979 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
980 Equivalent to --with-cloog-include=PATH/include
981 plus --with-cloog-lib=PATH/lib
982 --with-cloog-include=PATH Specify directory for installed CLooG include files
983 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
521ec477 984 --with-build-sysroot=SYSROOT
c6b750e1 985 use sysroot as the system root during the build
8a6ee3ab
JM
986 --with-debug-prefix-map='A=B C=D ...'
987 map A to B, C to D ... in debug information
521ec477 988 --with-build-time-tools=PATH
c6b750e1 989 use given path to find target tools during the build
521ec477
DD
990 --with-datarootdir use datarootdir as the data root directory.
991 --with-docdir install documentation in this directory.
992 --with-pdfdir install pdf in this directory.
993 --with-htmldir install html in this directory.
c6b750e1
DJ
994
995Some influential environment variables:
996 CC C compiler command
997 CFLAGS C compiler flags
998 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
999 nonstandard directory <lib dir>
1000 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1001 headers in a nonstandard directory <include dir>
18f6b6ee
PB
1002 CXX C++ compiler command
1003 CXXFLAGS C++ compiler flags
9a819804
AO
1004 AR AR for the host
1005 AS AS for the host
1006 DLLTOOL DLLTOOL for the host
1007 LD LD for the host
1008 LIPO LIPO for the host
1009 NM NM for the host
1010 RANLIB RANLIB for the host
1011 STRIP STRIP for the host
1012 WINDRES WINDRES for the host
0c24b341 1013 WINDMC WINDMC for the host
9a819804
AO
1014 OBJCOPY OBJCOPY for the host
1015 OBJDUMP OBJDUMP for the host
1016 CC_FOR_TARGET
1017 CC for the target
1018 CXX_FOR_TARGET
1019 CXX for the target
1020 GCC_FOR_TARGET
1021 GCC for the target
1022 GCJ_FOR_TARGET
1023 GCJ for the target
1024 GFORTRAN_FOR_TARGET
1025 GFORTRAN for the target
1026 AR_FOR_TARGET
1027 AR for the target
1028 AS_FOR_TARGET
1029 AS for the target
1030 DLLTOOL_FOR_TARGET
1031 DLLTOOL for the target
1032 LD_FOR_TARGET
1033 LD for the target
1034 LIPO_FOR_TARGET
1035 LIPO for the target
1036 NM_FOR_TARGET
1037 NM for the target
1038 OBJDUMP_FOR_TARGET
1039 OBJDUMP for the target
1040 RANLIB_FOR_TARGET
1041 RANLIB for the target
1042 STRIP_FOR_TARGET
1043 STRIP for the target
1044 WINDRES_FOR_TARGET
1045 WINDRES for the target
0c24b341
NC
1046 WINDMC_FOR_TARGET
1047 WINDMC for the target
c6b750e1
DJ
1048
1049Use these variables to override the choices made by `configure' or to help
1050it to find libraries and programs with nonstandard names/locations.
1051
1052_ACEOF
1053fi
1054
1055if test "$ac_init_help" = "recursive"; then
1056 # If there are subdirs, report their specific --help.
1057 ac_popdir=`pwd`
1058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1059 test -d $ac_dir || continue
1060 ac_builddir=.
1061
1062if test "$ac_dir" != .; then
1063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1064 # A "../" for each directory in $ac_dir_suffix.
1065 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066else
1067 ac_dir_suffix= ac_top_builddir=
1068fi
1069
1070case $srcdir in
1071 .) # No --srcdir option. We are building in place.
1072 ac_srcdir=.
1073 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=.
1075 else
1076 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 fi ;;
1078 [\\/]* | ?:[\\/]* ) # Absolute path.
1079 ac_srcdir=$srcdir$ac_dir_suffix;
1080 ac_top_srcdir=$srcdir ;;
1081 *) # Relative path.
1082 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084esac
1085
1086# Do not use `cd foo && pwd` to compute absolute paths, because
1087# the directories may not exist.
1088case `pwd` in
1089.) ac_abs_builddir="$ac_dir";;
1090*)
1091 case "$ac_dir" in
1092 .) ac_abs_builddir=`pwd`;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1094 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_builddir=${ac_top_builddir}.;;
1099*)
1100 case ${ac_top_builddir}. in
1101 .) ac_abs_top_builddir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1103 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_srcdir=$ac_srcdir;;
1108*)
1109 case $ac_srcdir in
1110 .) ac_abs_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1112 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_srcdir=$ac_top_srcdir;;
1117*)
1118 case $ac_top_srcdir in
1119 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1121 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122 esac;;
1123esac
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
1134 test -f $ac_srcdir/configure.in; then
1135 echo
1136 $ac_configure --help
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 fi
1140 cd $ac_popdir
1141 done
1142fi
1143
1144test -n "$ac_init_help" && exit 0
1145if $ac_init_version; then
1146 cat <<\_ACEOF
1147
1148Copyright (C) 2003 Free Software Foundation, Inc.
1149This configure script is free software; the Free Software Foundation
1150gives unlimited permission to copy, distribute and modify it.
1151_ACEOF
1152 exit 0
1153fi
1154exec 5>config.log
1155cat >&5 <<_ACEOF
1156This file contains any messages produced by compilers while
1157running configure, to aid debugging if configure makes a mistake.
1158
1159It was created by $as_me, which was
1160generated by GNU Autoconf 2.59. Invocation command line was
1161
1162 $ $0 $@
1163
1164_ACEOF
1165{
1166cat <<_ASUNAME
1167## --------- ##
1168## Platform. ##
1169## --------- ##
1170
1171hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
1177/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179
1180/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1181/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1182/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1184/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1185/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1186/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187
1188_ASUNAME
1189
1190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191for as_dir in $PATH
1192do
1193 IFS=$as_save_IFS
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1196done
1197
1198} >&5
1199
1200cat >&5 <<_ACEOF
1201
1202
1203## ----------- ##
1204## Core tests. ##
1205## ----------- ##
1206
1207_ACEOF
1208
1209
1210# Keep a trace of the command line.
1211# Strip out --no-create and --no-recursion so they do not pile up.
1212# Strip out --silent because we don't want to record it for future runs.
1213# Also quote any args containing shell meta-characters.
1214# Make two passes to allow for proper duplicate-argument suppression.
1215ac_configure_args=
1216ac_configure_args0=
1217ac_configure_args1=
1218ac_sep=
1219ac_must_keep_next=false
1220for ac_pass in 1 2
1221do
1222 for ac_arg
1223 do
1224 case $ac_arg in
1225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 continue ;;
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 esac
1232 case $ac_pass in
1233 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 2)
1235 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236 if test $ac_must_keep_next = true; then
1237 ac_must_keep_next=false # Got value, back to normal.
1238 else
1239 case $ac_arg in
1240 *=* | --config-cache | -C | -disable-* | --disable-* \
1241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243 | -with-* | --with-* | -without-* | --without-* | --x)
1244 case "$ac_configure_args0 " in
1245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 esac
1247 ;;
1248 -* ) ac_must_keep_next=true ;;
1249 esac
1250 fi
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1253 ac_sep=" "
1254 ;;
1255 esac
1256 done
1257done
1258$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260
1261# When interrupted or exit'd, cleanup temporary files, and complete
1262# config.log. We remove comments because anyway the quotes in there
1263# would cause problems or look ugly.
1264# WARNING: Be sure not to use single quotes in there, as some shells,
1265# such as our DU 5.0 friend, will then `close' the trap.
1266trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1268 {
1269 echo
1270
1271 cat <<\_ASBOX
1272## ---------------- ##
1273## Cache variables. ##
1274## ---------------- ##
1275_ASBOX
1276 echo
1277 # The following way of writing the cache mishandles newlines in values,
1278{
1279 (set) 2>&1 |
1280 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 *ac_space=\ *)
1282 sed -n \
1283 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 ;;
1286 *)
1287 sed -n \
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 ;;
1290 esac;
1291}
1292 echo
1293
1294 cat <<\_ASBOX
1295## ----------------- ##
1296## Output variables. ##
1297## ----------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_vars
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306
1307 if test -n "$ac_subst_files"; then
1308 cat <<\_ASBOX
1309## ------------- ##
1310## Output files. ##
1311## ------------- ##
1312_ASBOX
1313 echo
1314 for ac_var in $ac_subst_files
1315 do
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1320 fi
1321
1322 if test -s confdefs.h; then
1323 cat <<\_ASBOX
1324## ----------- ##
1325## confdefs.h. ##
1326## ----------- ##
1327_ASBOX
1328 echo
1329 sed "/^$/d" confdefs.h | sort
1330 echo
1331 fi
1332 test "$ac_signal" != 0 &&
1333 echo "$as_me: caught signal $ac_signal"
1334 echo "$as_me: exit $exit_status"
1335 } >&5
1336 rm -f core *.core &&
1337 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 exit $exit_status
1339 ' 0
1340for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342done
1343ac_signal=0
1344
1345# confdefs.h avoids OS command line length limits that DEFS can exceed.
1346rm -rf conftest* confdefs.h
1347# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348echo >confdefs.h
1349
1350# Predefined preprocessor variables.
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_NAME "$PACKAGE_NAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_VERSION "$PACKAGE_VERSION"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_STRING "$PACKAGE_STRING"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374_ACEOF
1375
1376
1377# Let the site file select an alternate cache file if it wants to.
a0da8069 1378# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1379if test -z "$CONFIG_SITE"; then
1380 if test "x$prefix" != xNONE; then
1381 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 else
1383 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1384 fi
1385fi
1386for ac_site_file in $CONFIG_SITE; do
1387 if test -r "$ac_site_file"; then
c6b750e1
DJ
1388 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1391 . "$ac_site_file"
1392 fi
1393done
1394
1395if test -r "$cache_file"; then
c6b750e1
DJ
1396 # Some versions of bash will fail to source /dev/null (special
1397 # files actually), so we avoid doing that.
1398 if test -f "$cache_file"; then
1399 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400echo "$as_me: loading cache $cache_file" >&6;}
1401 case $cache_file in
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1404 esac
1405 fi
a0da8069 1406else
c6b750e1
DJ
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408echo "$as_me: creating cache $cache_file" >&6;}
1409 >$cache_file
1410fi
1411
1412# Check that the precious variables saved in the cache have kept the same
1413# value.
1414ac_cache_corrupted=false
1415for ac_var in `(set) 2>&1 |
1416 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418 eval ac_new_set=\$ac_env_${ac_var}_set
1419 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420 eval ac_new_val="\$ac_env_${ac_var}_value"
1421 case $ac_old_set,$ac_new_set in
1422 set,)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,set)
1427 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1430 ,);;
1431 *)
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1433 # differences in whitespace do not lead to failure.
1434 ac_old_val_w=`echo x $ac_old_val`
1435 ac_new_val_w=`echo x $ac_new_val`
1436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1439 ac_cache_corrupted=:
1440 else
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1444 fi
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1449 fi;;
1450 esac
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 esac
1462 fi
1463done
1464if $ac_cache_corrupted; then
7a283e07
RW
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
a0da8069
NN
1472fi
1473
1474ac_ext=c
a0da8069 1475ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
a0da8069
NN
1492
1493
75778ec4 1494
c6b750e1 1495
7a283e07
RW
1496
1497
1498
c6b750e1
DJ
1499
1500
1501
5b553f7e
RW
1502
1503progname=$0
1504# if PWD already has a value, it is probably wrong.
1505if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1506
1507# Export original configure arguments for use by sub-configures.
1508# Quote arguments with shell meta charatcers.
1509TOPLEVEL_CONFIGURE_ARGUMENTS=
1510set -- "$progname" "$@"
1511for ac_arg
1512do
1513 case "$ac_arg" in
1514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1515 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1516 # if the argument is of the form -foo=baz, quote the baz part only
1517 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1518 *) ;;
1519 esac
1520 # Add the quoted argument to the list.
1521 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1522done
1523if test "$silent" = yes; then
1524 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1525fi
1526# Remove the initial space we just introduced and, as these will be
1527# expanded by make, quote '$'.
1528TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1529
c6b750e1
DJ
1530
1531# Find the build, host, and target systems.
a0da8069 1532ac_aux_dir=
315b3b02 1533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1534 if test -f $ac_dir/install-sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break
1538 elif test -f $ac_dir/install.sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 break
c6b750e1
DJ
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
a0da8069
NN
1546 fi
1547done
1548if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
a0da8069 1552fi
c6b750e1
DJ
1553ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1556
c6b750e1
DJ
1557# Make sure we can run config.sub.
1558$ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563echo "$as_me:$LINENO: checking build system type" >&5
1564echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_build_alias=$build_alias
1569test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571test -z "$ac_cv_build_alias" &&
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
1575ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582echo "${ECHO_T}$ac_cv_build" >&6
1583build=$ac_cv_build
1584build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1587
a0da8069 1588
c6b750e1
DJ
1589 case ${build_alias} in
1590 "") build_noncanonical=${build} ;;
1591 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1592esac
1593
1594
cac3d6c4 1595
c6b750e1
DJ
1596 case ${host_alias} in
1597 "") host_noncanonical=${build_noncanonical} ;;
1598 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1599esac
1600
cac3d6c4 1601
c6b750e1
DJ
1602
1603 case ${target_alias} in
1604 "") target_noncanonical=${host_noncanonical} ;;
1605 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1606esac
1607
cac3d6c4 1608
c6b750e1
DJ
1609
1610
1611test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1612 test "$program_prefix$program_suffix$program_transform_name" = \
1613 NONENONEs,x,x, &&
c6b750e1 1614 program_transform_name=s,y,y,
cac3d6c4 1615
c6b750e1
DJ
1616echo "$as_me:$LINENO: checking host system type" >&5
1617echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1620else
c6b750e1
DJ
1621 ac_cv_host_alias=$host_alias
1622test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631echo "${ECHO_T}$ac_cv_host" >&6
1632host=$ac_cv_host
1633host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638echo "$as_me:$LINENO: checking target system type" >&5
1639echo $ECHO_N "checking target system type... $ECHO_C" >&6
1640if test "${ac_cv_target+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 ac_cv_target_alias=$target_alias
1644test "x$ac_cv_target_alias" = "x" &&
1645 ac_cv_target_alias=$ac_cv_host_alias
1646ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1648echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1649 { (exit 1); exit 1; }; }
1650
cac3d6c4 1651fi
c6b750e1
DJ
1652echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1653echo "${ECHO_T}$ac_cv_target" >&6
1654target=$ac_cv_target
1655target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658
1659
1660# The aliases save the names the user supplied, while $host etc.
1661# will get canonicalized.
1662test -n "$target_alias" &&
1663 test "$program_prefix$program_suffix$program_transform_name" = \
1664 NONENONEs,x,x, &&
1665 program_prefix=${target_alias}-
a0da8069 1666test "$program_prefix" != NONE &&
c6b750e1 1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1668# Use a double $ so make ignores it.
1669test "$program_suffix" != NONE &&
c6b750e1
DJ
1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671# Double any \ or $. echo might interpret backslashes.
1672# By default was `s,x,x', remove it if useless.
1673cat <<\_ACEOF >conftest.sed
1674s/[\\$]/&&/g;s/;s,x,x,$//
1675_ACEOF
1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677rm conftest.sed
cac3d6c4 1678
a0da8069
NN
1679
1680
e5c3f801
NN
1681# Get 'install' or 'install-sh' and its variants.
1682# Find a good install program. We prefer a C program (faster),
1683# so one script is as good as another. But avoid the broken or
1684# incompatible versions:
1685# SysV /etc/install, /usr/sbin/install
1686# SunOS /usr/etc/install
1687# IRIX /sbin/install
1688# AIX /bin/install
c6b750e1 1689# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1693# OS/2's system install, which has a completely different semantic
e5c3f801 1694# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1695# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1696echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1697echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1698if test -z "$INSTALL"; then
c6b750e1
DJ
1699if test "${ac_cv_path_install+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 # Account for people who put trailing slashes in PATH elements.
1708case $as_dir/ in
1709 ./ | .// | /cC/* | \
1710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1712 /usr/ucb/* ) ;;
1713 *)
1714 # OSF1 and SCO ODT 3.0 have their own names for install.
1715 # Don't use installbsd from OSF since it installs stuff as root
1716 # by default.
1717 for ac_prog in ginstall scoinst install; do
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1720 if test $ac_prog = install &&
c6b750e1 1721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1722 # AIX install. It has an incompatible calling convention.
1723 :
c6b750e1
DJ
1724 elif test $ac_prog = install &&
1725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # program-specific install script used by HP pwplus--don't use.
1727 :
e5c3f801 1728 else
58c85be7
RW
1729 rm -rf conftest.one conftest.two conftest.dir
1730 echo one > conftest.one
1731 echo two > conftest.two
1732 mkdir conftest.dir
1733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1734 test -s conftest.one && test -s conftest.two &&
1735 test -s conftest.dir/conftest.one &&
1736 test -s conftest.dir/conftest.two
1737 then
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739 break 3
1740 fi
e5c3f801
NN
1741 fi
1742 fi
1743 done
c6b750e1
DJ
1744 done
1745 ;;
1746esac
1747done
1748
58c85be7 1749rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1750
1751fi
1752 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1753 INSTALL=$ac_cv_path_install
e5c3f801 1754 else
58c85be7
RW
1755 # As a last resort, use the slow shell script. Don't cache a
1756 # value for INSTALL within a source directory, because that will
e5c3f801 1757 # break other packages using the cache if that directory is
58c85be7 1758 # removed, or if the value is a relative name.
c6b750e1 1759 INSTALL=$ac_install_sh
e5c3f801
NN
1760 fi
1761fi
c6b750e1
DJ
1762echo "$as_me:$LINENO: result: $INSTALL" >&5
1763echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1764
1765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766# It thinks the first close brace ends the variable substitution.
1767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768
c6b750e1 1769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1770
1771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772
c6b750e1
DJ
1773echo "$as_me:$LINENO: checking whether ln works" >&5
1774echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1775if test "${acx_cv_prog_LN+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1777else
1778 rm -f conftestdata_t
1779echo >conftestdata_f
1780if ln conftestdata_f conftestdata_t 2>/dev/null
1781then
1782 acx_cv_prog_LN=ln
1783else
1784 acx_cv_prog_LN=no
1785fi
1786rm -f conftestdata_f conftestdata_t
1787
1788fi
1789if test $acx_cv_prog_LN = no; then
1790 LN="cp"
c6b750e1
DJ
1791 echo "$as_me:$LINENO: result: no, using $LN" >&5
1792echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1793else
1794 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1795 echo "$as_me:$LINENO: result: yes" >&5
1796echo "${ECHO_T}yes" >&6
656fdd47
PB
1797fi
1798
c6b750e1
DJ
1799echo "$as_me:$LINENO: checking whether ln -s works" >&5
1800echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1801LN_S=$as_ln_s
1802if test "$LN_S" = "ln -s"; then
1803 echo "$as_me:$LINENO: result: yes" >&5
1804echo "${ECHO_T}yes" >&6
cac3d6c4 1805else
c6b750e1
DJ
1806 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1807echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1808fi
1809
e5c3f801 1810
252b5132 1811### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1812### If we are on Windows, search for the shell. This will permit people
1813### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1814### without also having to set CONFIG_SHELL. This code will work when
1815### using bash, which sets OSTYPE.
1816case "${OSTYPE}" in
1817*win32*)
a0da8069
NN
1818 if test x${CONFIG_SHELL} = x ; then
1819 if test ! -f /bin/sh ; then
1820 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1821 CONFIG_SHELL=${SHELL}
1822 export CONFIG_SHELL
1823 else
1824 for prog in sh sh.exe bash bash.exe; do
1825 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1826 for dir in $PATH; do
1827 test -z "$dir" && dir=.
1828 if test -f $dir/$prog; then
1829 CONFIG_SHELL=$dir/$prog
1830 export CONFIG_SHELL
1831 break
1832 fi
1833 done
1834 IFS="$save_ifs"
1835 test -n "${CONFIG_SHELL}" && break
1836 done
1837 fi
1838 fi
1839 fi
1840 ;;
1841esac
1842
1843config_shell=${CONFIG_SHELL-/bin/sh}
1844
a0da8069 1845moveifchange=${srcdir}/move-if-change
252b5132 1846
0fdbe983
DJ
1847srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1848
1849# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1850# a relative path.
1851if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1852 INSTALL="${srcpwd}/install-sh -c"
1853fi
1854
a0da8069
NN
1855# Set srcdir to "." if that's what it is.
1856# This is important for multilib support.
1857pwd=`${PWDCMD-pwd}`
a0da8069
NN
1858if test "${pwd}" = "${srcpwd}" ; then
1859 srcdir=.
252b5132
RH
1860fi
1861
a0da8069 1862topsrcdir=$srcpwd
252b5132 1863
a0da8069 1864extra_host_args=
afefada0 1865
a0da8069
NN
1866### To add a new directory to the tree, first choose whether it is a target
1867### or a host dependent tool. Then put it into the appropriate list
1868### (library or tools, host or target), doing a dependency sort.
252b5132 1869
c6b750e1 1870# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1871# configdirs, or target_configdirs; see the serialization section below.
252b5132 1872
c6b750e1
DJ
1873# Dependency sorting is only needed when *configuration* must be done in
1874# a particular order. In all cases a dependency should be specified in
a0da8069 1875# the Makefile, whether or not it's implicitly specified here.
252b5132 1876
a0da8069
NN
1877# Double entries in build_configdirs, configdirs, or target_configdirs may
1878# cause circular dependencies and break everything horribly.
252b5132 1879
6a9cf61e
PB
1880# these library is used by various programs built for the build
1881# environment
1882#
1883build_libs="build-libiberty"
1884
1885# these tools are built for the build environment
ee025550 1886build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1887
a0da8069
NN
1888# these libraries are used by various programs built for the host environment
1889#
dc448a7b 1890host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog libiconv"
a0da8069 1891
a0da8069
NN
1892# these tools are built for the host environment
1893# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1894# know that we are building the simulator.
1895# binutils, gas and ld appear in that order because it makes sense to run
1896# "make check" in that particular order.
93f9b408 1897# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1898host_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
1899
1900# libgcj represents the runtime libraries only used by gcj.
1901libgcj="target-libffi \
a0da8069
NN
1902 target-zlib \
1903 target-qthreads \
1904 target-libjava"
1905
1906# these libraries are built for the target environment, and are built after
1907# the host libraries and the host tools (which may be a cross compiler)
1908#
b1299c4e
DJ
1909target_libraries="target-libgcc \
1910 target-libiberty \
a0da8069
NN
1911 target-libgloss \
1912 target-newlib \
cff87f51 1913 target-libgomp \
b9459e83 1914 target-libstdc++-v3 \
4b1cb4fe 1915 target-libmudflap \
bb780410 1916 target-libssp \
4b1cb4fe 1917 target-libgfortran \
4f0ef2d8 1918 target-boehm-gc \
83326456 1919 ${libgcj} \
a2592b1b 1920 target-libobjc \
cff87f51 1921 target-libada"
a0da8069 1922
9c14acb8
NN
1923# these tools are built using the target libraries, and are intended to
1924# run only in the target environment
a0da8069 1925#
9c14acb8 1926# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1927# list belongs in this list. those programs are also very likely
1928# candidates for the "native_only" list which follows
1929#
a3dd767d 1930target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1931
a0da8069 1932################################################################################
252b5132 1933
a0da8069
NN
1934## All tools belong in one of the four categories, and are assigned above
1935## We assign ${configdirs} this way to remove all embedded newlines. This
1936## is important because configure will choke if they ever get through.
1937## ${configdirs} is directories we build using the host tools.
1938## ${target_configdirs} is directories we build using the target tools.
a0da8069 1939configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1940target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1941build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1942
9cc8ae67
PB
1943
1944
a0da8069 1945################################################################################
252b5132 1946
a0da8069 1947srcname="gnu development package"
252b5132 1948
a0da8069
NN
1949# This gets set non-empty for some net releases of packages.
1950appdirs=""
252b5132 1951
a0da8069
NN
1952# Define is_cross_compiler to save on calls to 'test'.
1953is_cross_compiler=
1954if test x"${host}" = x"${target}" ; then
1955 is_cross_compiler=no
252b5132 1956else
a0da8069 1957 is_cross_compiler=yes
c6b750e1 1958fi
252b5132 1959
9175bfc0 1960# Find the build and target subdir names.
dd12c3a8 1961
66a79c16
DJ
1962# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1963# have matching libraries, they should use host libraries: Makefile.tpl
1964# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1965# However, they still use the build modules, because the corresponding
1966# host modules (e.g. bison) are only built for the host when bootstrap
1967# finishes. So:
1968# - build_subdir is where we find build modules, and never changes.
1969# - build_libsubdir is where we find build libraries, and can be overridden.
1970
1971# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1972build_subdir="build-${build_noncanonical}"
c6b750e1 1973
66a79c16
DJ
1974# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1975if test "${with_build_libsubdir+set}" = set; then
1976 withval="$with_build_libsubdir"
1977 build_libsubdir="$withval"
1978else
1979 build_libsubdir="$build_subdir"
c6b750e1 1980fi;
b00612cc
PB
1981# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1982if ( test $srcdir = . && test -d gcc ) \
1983 || test -d $srcdir/../host-${host_noncanonical}; then
1984 host_subdir="host-${host_noncanonical}"
1985else
1986 host_subdir=.
1987fi
dd12c3a8
NN
1988# No prefix.
1989target_subdir=${target_noncanonical}
c6b750e1 1990
252b5132 1991
a0da8069
NN
1992# Skipdirs are removed silently.
1993skipdirs=
1994# Noconfigdirs are removed loudly.
1995noconfigdirs=""
252b5132 1996
a0da8069
NN
1997use_gnu_ld=
1998# Make sure we don't let GNU ld be added if we didn't want it.
1999if test x$with_gnu_ld = xno ; then
2000 use_gnu_ld=no
93f9b408 2001 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2002fi
2003
a0da8069
NN
2004use_gnu_as=
2005# Make sure we don't let GNU as be added if we didn't want it.
2006if test x$with_gnu_as = xno ; then
2007 use_gnu_as=no
2008 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2009fi
2010
c6b750e1 2011# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2012# it's not even worth trying to configure, much less build, that tool.
252b5132 2013
a0da8069
NN
2014case ${with_x} in
2015 yes | "") ;; # the default value for this tree is that X11 is available
2016 no)
675c6968 2017 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2018 # We won't be able to build gdbtk without X.
c6b750e1 2019 enable_gdbtk=no
a0da8069
NN
2020 ;;
2021 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2022esac
252b5132 2023
a0da8069 2024# Some tools are only suitable for building in a "native" situation.
c6b750e1 2025# Remove these if host!=target.
701628f5 2026native_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 2027
a0da8069
NN
2028# Similarly, some are only suitable for cross toolchains.
2029# Remove these if host=target.
2030cross_only="target-libgloss target-newlib target-opcodes"
2031
2032case $is_cross_compiler in
2033 no) skipdirs="${skipdirs} ${cross_only}" ;;
2034 yes) skipdirs="${skipdirs} ${native_only}" ;;
2035esac
252b5132 2036
a0da8069
NN
2037# If both --with-headers and --with-libs are specified, default to
2038# --without-newlib.
32be62b5
RS
2039if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2040 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2041 if test x"${with_newlib}" = x ; then
2042 with_newlib=no
2043 fi
252b5132
RH
2044fi
2045
a0da8069
NN
2046# Recognize --with-newlib/--without-newlib.
2047case ${with_newlib} in
2048 no) skipdirs="${skipdirs} target-newlib" ;;
2049 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2050esac
252b5132 2051
93f9b408
ILT
2052# Handle --enable-gold.
2053
2054# Check whether --enable-gold or --disable-gold was given.
2055if test "${enable_gold+set}" = set; then
2056 enableval="$enable_gold"
2057 ENABLE_GOLD=$enableval
2058else
2059 ENABLE_GOLD=no
2060fi;
2061if test "${ENABLE_GOLD}" = "yes"; then
2062 # Check for ELF target.
2063 is_elf=no
2064 case "${target}" in
2065 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2066 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2067 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2068 case "${target}" in
2069 *-*-linux*aout* | *-*-linux*oldld*)
2070 ;;
2071 *)
2072 is_elf=yes
2073 ;;
2074 esac
2075 esac
2076
2077 if test "$is_elf" = "yes"; then
2078 # Check for target supported by gold.
2079 case "${target}" in
310213e8 2080 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
93f9b408
ILT
2081 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2082 ;;
2083 esac
2084 fi
2085fi
2086
a0da8069 2087# Configure extra directories which are host specific
252b5132 2088
a0da8069
NN
2089case "${host}" in
2090 *-cygwin*)
2091 configdirs="$configdirs libtermcap" ;;
2092esac
252b5132 2093
59f7ec45
HPN
2094# A target can indicate whether a language isn't supported for some reason.
2095# Only spaces may be used in this macro; not newlines or tabs.
2096unsupported_languages=
2097
c6b750e1 2098# Remove more programs from consideration, based on the host or
a0da8069
NN
2099# target this usually means that a port of the program doesn't
2100# exist yet.
252b5132 2101
a0da8069
NN
2102case "${host}" in
2103 hppa*64*-*-*)
2104 noconfigdirs="$noconfigdirs byacc"
2105 ;;
ec11bdc6 2106 i[3456789]86-*-vsta)
675c6968 2107 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2108 ;;
ec11bdc6 2109 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2110 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2111 ;;
2d1e8239
NC
2112 x86_64-*-mingw*)
2113 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2114 ;;
ec11bdc6 2115 i[3456789]86-*-mingw32*)
675c6968 2116 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2117 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2118 ;;
ec11bdc6 2119 i[3456789]86-*-beos*)
675c6968 2120 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2121 ;;
a0da8069 2122 *-*-cygwin*)
a92834c8 2123 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2124 ;;
2125 *-*-netbsd*)
a92834c8 2126 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2127 ;;
2128 ppc*-*-pe)
675c6968 2129 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2130 ;;
2131 powerpc-*-beos*)
675c6968 2132 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2133 ;;
a0da8069 2134esac
252b5132 2135
4b1cb4fe 2136
a2592b1b
DD
2137# Check whether --enable-libada or --disable-libada was given.
2138if test "${enable_libada+set}" = set; then
2139 enableval="$enable_libada"
2140 ENABLE_LIBADA=$enableval
2141else
2142 ENABLE_LIBADA=yes
c6b750e1 2143fi;
a2592b1b 2144if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2145 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2146fi
2147
5f128533
KH
2148# Check whether --enable-libssp or --disable-libssp was given.
2149if test "${enable_libssp+set}" = set; then
2150 enableval="$enable_libssp"
2151 ENABLE_LIBSSP=$enableval
2152else
2153 ENABLE_LIBSSP=yes
c6b750e1 2154fi;
5f128533 2155
a0da8069
NN
2156# Save it here so that, even in case of --enable-libgcj, if the Java
2157# front-end isn't enabled, we still get libgcj disabled.
2158libgcj_saved=$libgcj
2159case $enable_libgcj in
2160yes)
2161 # If we reset it here, it won't get added to noconfigdirs in the
2162 # target-specific build rules, so it will be forcibly enabled
2163 # (unless the Java language itself isn't enabled).
2164 libgcj=
2165 ;;
2166no)
2167 # Make sure we get it printed in the list of not supported target libs.
2168 noconfigdirs="$noconfigdirs ${libgcj}"
2169 ;;
2170esac
252b5132 2171
4b1cb4fe 2172
a6df5a19
PB
2173# Disable libmudflap on some systems.
2174if test x$enable_libmudflap = x ; then
3e707e94 2175 case "${target}" in
29383458 2176 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2177 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2178 ;;
2179 *-*-freebsd*)
2180 # Enable libmudflap by default in FreeBSD.
2181 ;;
2182 *)
2183 # Disable it by default everywhere else.
2184 noconfigdirs="$noconfigdirs target-libmudflap"
2185 ;;
2186 esac
a6df5a19 2187fi
4b1cb4fe 2188
a6df5a19
PB
2189# Disable libgomp on non POSIX hosted systems.
2190if test x$enable_libgomp = x ; then
b3ded179
PB
2191 # Enable libgomp by default on hosted POSIX systems.
2192 case "${target}" in
29383458 2193 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2194 ;;
2195 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2196 ;;
64ce424c 2197 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2198 ;;
2199 *-*-darwin* | *-*-aix*)
2200 ;;
2201 *)
2202 noconfigdirs="$noconfigdirs target-libgomp"
2203 ;;
2204 esac
a6df5a19 2205fi
b3ded179 2206
691bb5a1
DD
2207# Default libgloss CPU subdirectory.
2208libgloss_dir="$target_cpu"
4b1cb4fe 2209
a0da8069
NN
2210case "${target}" in
2211 *-*-chorusos)
54d1c879 2212 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2213 ;;
24741ab2 2214 powerpc-*-darwin*)
9d39db92 2215 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2216 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 2217 ;;
24741ab2 2218 i[3456789]86-*-darwin* | x86_64-*-darwin9*)
652dec25
TG
2219 noconfigdirs="$noconfigdirs ld gas gprof"
2220 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2221 ;;
04d1ab34 2222 *-*-darwin*)
d320aacb 2223 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2224 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2225 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2226 ;;
a0da8069 2227 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2228 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2229 ;;
de0b4a87 2230 *-*-freebsd*)
4b1cb4fe
DD
2231 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2232 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2233 && test -f /usr/local/include/gmp.h; then
2234 with_gmp=/usr/local
2235 fi
2236
2237 # Skip some stuff that's unsupported on some FreeBSD configurations.
2238 case "${target}" in
2239 i*86-*-*) ;;
2240 alpha*-*-*) ;;
2241 *)
54d1c879 2242 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2243 ;;
2244 esac
2245 ;;
f8a495c8
NC
2246 *-*-kaos*)
2247 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2248 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2249 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2250 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2251 noconfigdirs="$noconfigdirs target-libgloss"
2252 ;;
a0da8069
NN
2253 *-*-netbsd*)
2254 # Skip some stuff on all NetBSD configurations.
2255 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2256
2257 # Skip some stuff that's unsupported on some NetBSD configurations.
2258 case "${target}" in
2259 i*86-*-netbsdelf*) ;;
5b474aa8 2260 arm*-*-netbsdelf*) ;;
a0da8069 2261 *)
54d1c879 2262 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2263 ;;
2264 esac
2265 ;;
2a3124ca 2266 *-*-netware*)
54d1c879 2267 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2268 ;;
2269 *-*-rtems*)
54d1c879 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2271 ;;
1587117a
EC
2272 # The tpf target doesn't support gdb yet.
2273 *-*-tpf*)
54d1c879 2274 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2275 ;;
c1968181 2276 *-*-uclinux*)
54d1c879 2277 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2278 ;;
a0da8069 2279 *-*-vxworks*)
54d1c879 2280 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2281 ;;
2282 alpha*-dec-osf*)
2283 # ld works, but does not support shared libraries.
2284 # newlib is not 64 bit ready. I'm not sure about fileutils.
2285 # gas doesn't generate exception information.
2286 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2287 ;;
2288 alpha*-*-*vms*)
54d1c879 2289 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2290 ;;
2291 alpha*-*-linux*)
2292 # newlib is not 64 bit ready
2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2294 ;;
a0da8069
NN
2295 alpha*-*-*)
2296 # newlib is not 64 bit ready
54d1c879 2297 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2298 ;;
4a18bd6b 2299 am33_2.0-*-linux*)
54d1c879 2300 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2301 ;;
a0da8069 2302 sh-*-linux*)
54d1c879 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2304 ;;
a0da8069 2305 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2306 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2307 noconfigdirs="$noconfigdirs target-examples"
2308 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2309 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2310 noconfigdirs="$noconfigdirs expect dejagnu"
2311 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2312 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2313 noconfigdirs="$noconfigdirs target-newlib"
2314 case "${host}" in
2315 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2316 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2317 ;;
2318 esac
691bb5a1 2319 libgloss_dir=wince
a0da8069
NN
2320 ;;
2321 arc-*-*)
54d1c879 2322 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2323 ;;
caeba88f 2324 arm-semi-aof )
caeba88f 2325 ;;
a0da8069 2326 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2327 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2328 libgloss_dir=arm
a0da8069 2329 ;;
11b04d1f 2330 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2331 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2332 libgloss_dir=arm
a0da8069 2333 ;;
bd70a46f 2334 arm*-*-linux-gnueabi)
6d18b86b 2335 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2336 case ${with_newlib} in
2337 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2338 esac
691bb5a1 2339 libgloss_dir=arm
bd70a46f 2340 ;;
df4a6958 2341 arm*-*-symbianelf*)
54d1c879 2342 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2343 libgloss_dir=arm
df4a6958 2344 ;;
a0da8069 2345 arm-*-pe*)
54d1c879 2346 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2347 ;;
a0da8069 2348 thumb-*-coff)
54d1c879 2349 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2350 ;;
2351 thumb-*-elf)
54d1c879 2352 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2353 ;;
a0da8069 2354 thumb-*-pe)
54d1c879 2355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2356 ;;
2357 arm-*-riscix*)
54d1c879 2358 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2359 ;;
2360 avr-*-*)
266df637 2361 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2362 ;;
376a0e54 2363 bfin-*-*)
00d89675 2364 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2365 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2366 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2367 fi
2368 ;;
a0da8069 2369 c4x-*-* | tic4x-*-*)
54d1c879 2370 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2371 ;;
2372 c54x*-*-* | tic54x-*-*)
54d1c879 2373 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2374 ;;
52310858
NC
2375 cr16-*-*)
2376 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2377 ;;
c7e66c6d 2378 cris-*-* | crisv32-*-*)
59f7ec45 2379 unsupported_languages="$unsupported_languages java"
c7e66c6d 2380 case "${target}" in
2faa2958 2381 *-*-aout)
096f7d00 2382 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2383 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2384 *-*-elf)
5e818318 2385 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2386 *-*-linux*)
5e818318 2387 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2388 *)
096f7d00 2389 unsupported_languages="$unsupported_languages fortran"
54d1c879 2390 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2391 esac
691bb5a1 2392 libgloss_dir=cris
a0da8069 2393 ;;
3e707e94 2394 crx-*-*)
54d1c879 2395 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2396 ;;
a0da8069 2397 d10v-*-*)
54d1c879 2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2399 ;;
2400 d30v-*-*)
54d1c879 2401 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2402 ;;
691bb5a1
DD
2403 ep9312-*-elf | ep9312-*-coff)
2404 libgloss_dir=arm
2405 ;;
a0da8069 2406 fr30-*-elf*)
54d1c879 2407 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2408 ;;
2409 frv-*-*)
54d1c879 2410 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2411 ;;
20135e4c
NC
2412 moxie-*-*)
2413 noconfigdirs="$noconfigdirs ${libgcj}"
2414 noconfigdirs="$noconfigdirs gprof"
2415 ;;
a0da8069 2416 h8300*-*-*)
54d1c879 2417 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2418 ;;
2419 h8500-*-*)
54d1c879 2420 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2421 ;;
caeba88f 2422 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2423 ;;
a0da8069
NN
2424 hppa*64*-*-linux* | parisc*64*-*-linux*)
2425 # In this case, it's because the hppa64-linux target is for
2426 # the kernel only at this point and has no libc, and thus no
2427 # headers, crt*.o, etc., all of which are needed by these.
2428 noconfigdirs="$noconfigdirs target-zlib"
2429 ;;
5dcac624
DA
2430 parisc*-*-linux* | hppa*-*-linux*)
2431 ;;
a0da8069 2432 hppa*-*-*elf* | \
a0da8069
NN
2433 hppa*-*-lites* | \
2434 hppa*-*-openbsd* | \
2435 hppa*64*-*-*)
54d1c879 2436 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2437 ;;
2438 hppa*-hp-hpux11*)
2439 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2440 ;;
691bb5a1
DD
2441 hppa*-*-pro*)
2442 libgloss_dir=pa
2443 ;;
a0da8069
NN
2444 hppa*-*-*)
2445 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2446 # build on HP-UX 10.20.
54d1c879 2447 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2448 ;;
b07c2aad 2449 i960-*-*)
54d1c879 2450 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2451 ;;
a0da8069
NN
2452 ia64*-*-elf*)
2453 # No gdb support yet.
675c6968 2454 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2455 ;;
2456 ia64*-**-hpux*)
2457 # No gdb or ld support yet.
54d1c879 2458 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2459 ;;
19e99079
NC
2460 ia64*-*-*vms*)
2461 # No gdb or ld support yet.
2462 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2463 ;;
caeba88f 2464 i370-*-opened*)
caeba88f 2465 ;;
ec11bdc6 2466 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2467 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2468 libgloss_dir=i386
a0da8069 2469 ;;
ec11bdc6 2470 i[3456789]86-*-linux*)
a0da8069
NN
2471 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2472 # not build java stuff by default.
2473 case "${target}" in
2474 *-*-*libc1*)
54d1c879 2475 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2476 esac
2477
2478 # This section makes it possible to build newlib natively on linux.
2479 # If we are using a cross compiler then don't configure newlib.
2480 if test x${is_cross_compiler} != xno ; then
bba45b8b 2481 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2482 fi
2483 noconfigdirs="$noconfigdirs target-libgloss"
2484 # If we are not using a cross compiler, do configure newlib.
2485 # Note however, that newlib will only be configured in this situation
2486 # if the --with-newlib option has been given, because otherwise
2487 # 'target-newlib' will appear in skipdirs.
2488 ;;
ec11bdc6 2489 i[3456789]86-*-mingw32*)
45055374
CV
2490 target_configdirs="$target_configdirs target-winsup"
2491 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2492 ;;
2d1e8239
NC
2493 x86_64-*-mingw*)
2494 target_configdirs="$target_configdirs target-winsup"
2495 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2496 ;;
a0da8069
NN
2497 *-*-cygwin*)
2498 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2499 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2500 # always build newlib if winsup directory is present.
45055374 2501 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2502 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2503 elif test -d "$srcdir/newlib"; then
45055374 2504 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2505 fi
c6b750e1 2506 ;;
caeba88f
AL
2507 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2508 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2509 ;;
ec11bdc6 2510 i[3456789]86-*-pe)
54d1c879 2511 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2512 ;;
ec11bdc6 2513 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2514 # The linker does not yet know about weak symbols in COFF,
2515 # and is not configured to handle mixed ELF and COFF.
54d1c879 2516 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2517 ;;
ec11bdc6 2518 i[3456789]86-*-sco*)
54d1c879 2519 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2520 ;;
ec11bdc6 2521 i[3456789]86-*-solaris2*)
a0da8069
NN
2522 noconfigdirs="$noconfigdirs target-libgloss"
2523 ;;
ec11bdc6 2524 i[3456789]86-*-sysv4*)
54d1c879 2525 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2526 ;;
ec11bdc6 2527 i[3456789]86-*-beos*)
54d1c879 2528 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2529 ;;
b59bea8a 2530 i[3456789]86-*-rdos*)
2429c060
PB
2531 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2532 ;;
b07c2aad 2533 m32r-*-*)
54d1c879 2534 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2535 ;;
a0da8069 2536 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2537 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2538 libgloss_dir=m68hc11
a0da8069
NN
2539 ;;
2540 m68k-*-elf*)
54d1c879 2541 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2542 ;;
2543 m68k-*-coff*)
54d1c879 2544 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2545 ;;
691bb5a1
DD
2546 m68*-*-* | fido-*-*)
2547 libgloss_dir=m68k
2548 ;;
a0da8069
NN
2549 mcore-*-pe*)
2550 # The EPOC C++ environment does not support exceptions or rtti,
2551 # and so building libstdc++-v3 tends not to always work.
2552 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2553 ;;
2554 mmix-*-*)
59f7ec45 2555 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2556 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2557 ;;
2558 mn10200-*-*)
54d1c879 2559 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2560 ;;
2561 mn10300-*-*)
54d1c879 2562 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2563 ;;
4970f871 2564 mt-*-*)
cdb9b172
AH
2565 noconfigdirs="$noconfigdirs sim"
2566 ;;
a0da8069
NN
2567 powerpc-*-aix*)
2568 # copied from rs6000-*-* entry
54d1c879 2569 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2570 ;;
2571 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2572 target_configdirs="$target_configdirs target-winsup"
54d1c879 2573 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2574 # always build newlib.
2575 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2576 ;;
2577 # This is temporary until we can link against shared libraries
2578 powerpcle-*-solaris*)
54d1c879 2579 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2580 libgloss_dir=rs6000
a0da8069
NN
2581 ;;
2582 powerpc-*-beos*)
54d1c879 2583 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2584 ;;
a0da8069 2585 powerpc-*-eabi)
54d1c879 2586 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2587 libgloss_dir=rs6000
caeba88f
AL
2588 ;;
2589 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2590 libgloss_dir=rs6000
a0da8069 2591 ;;
a0da8069 2592 rs6000-*-lynxos*)
54d1c879 2593 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2594 ;;
2595 rs6000-*-aix*)
54d1c879 2596 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2597 ;;
2598 rs6000-*-*)
54d1c879 2599 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2600 ;;
2601 m68k-apollo-*)
54d1c879 2602 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2603 ;;
5bd8be13
RS
2604 mips*-sde-elf*)
2605 skipdirs="$skipdirs target-libiberty"
2606 noconfigdirs="$noconfigdirs ${libgcj}"
2607 if test x$with_newlib = xyes; then
2608 noconfigdirs="$noconfigdirs gprof"
2609 fi
2610 libgloss_dir=mips
2611 ;;
a0da8069 2612 mips*-*-irix5*)
54d1c879 2613 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2614 ;;
2615 mips*-*-irix6*)
a0da8069
NN
2616 # Linking libjava exceeds command-line length limits on at least
2617 # IRIX 6.2, but not on IRIX 6.5.
2618 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2619 # <oldham@codesourcery.com>
54d1c879 2620 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2621 ;;
a0da8069 2622 mips*-*-bsd*)
54d1c879 2623 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2624 ;;
a0da8069
NN
2625 mips*-*-linux*)
2626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2627 ;;
2628 mips*-*-*)
54d1c879 2629 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2630 libgloss_dir=mips
a0da8069
NN
2631 ;;
2632 romp-*-*)
54d1c879 2633 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2634 ;;
dbf85af7 2635 sh-*-* | sh64-*-*)
a0da8069 2636 case "${host}" in
ec11bdc6
DD
2637 i[3456789]86-*-vsta) ;; # don't add gprof back in
2638 i[3456789]86-*-go32*) ;; # don't add gprof back in
2639 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2640 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2641 esac
54d1c879 2642 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2643 ;;
691bb5a1
DD
2644 sparclet-*-aout* | sparc86x-*-*)
2645 libgloss_dir=sparc
2646 ;;
a0da8069 2647 sparc-*-elf*)
54d1c879 2648 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2649 ;;
2650 sparc64-*-elf*)
54d1c879 2651 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2652 libgloss_dir=sparc
a0da8069
NN
2653 ;;
2654 sparclite-*-*)
54d1c879 2655 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2656 libgloss_dir=sparc
a0da8069
NN
2657 ;;
2658 sparc-*-sunos4*)
54d1c879 2659 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2660 if test x${is_cross_compiler} != xno ; then
2661 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2662 else
2663 use_gnu_ld=no
2664 fi
2665 ;;
e3c770b1 2666 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2667 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2668 ;;
a0da8069
NN
2669 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2670 ;;
2671 v810-*-*)
54d1c879 2672 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2673 ;;
2674 v850-*-*)
54d1c879 2675 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2676 ;;
2677 v850e-*-*)
54d1c879 2678 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2679 ;;
2680 v850ea-*-*)
54d1c879 2681 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2682 ;;
2683 vax-*-vms)
54d1c879 2684 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2685 ;;
2686 vax-*-*)
54d1c879 2687 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2688 ;;
8b66833e 2689 xtensa*-*-*)
54d1c879 2690 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2691 ;;
a0da8069 2692 ip2k-*-*)
54d1c879 2693 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2694 ;;
29383458 2695 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
2696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2697 ;;
2698 *-*-lynxos*)
54d1c879 2699 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2700 ;;
a0da8069 2701 *-*-*)
54d1c879 2702 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2703 ;;
2704esac
252b5132 2705
a0da8069
NN
2706# If we aren't building newlib, then don't build libgloss, since libgloss
2707# depends upon some newlib header files.
2708case "${noconfigdirs}" in
2709 *target-libgloss*) ;;
2710 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2711esac
2712
a0da8069
NN
2713# Work in distributions that contain no compiler tools, like Autoconf.
2714tentative_cc=""
2715host_makefile_frag=/dev/null
2716if test -d ${srcdir}/config ; then
2717case "${host}" in
2718 m68k-hp-hpux*)
2719 # Avoid "too much defining" errors from HPUX compiler.
2720 tentative_cc="cc -Wp,-H256000"
2721 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2722 # If it's HP/UX ar, this should be harmless.
2723 RANLIB="ar ts"
2724 ;;
2725 m68k-apollo-sysv*)
2726 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2727 ;;
2728 m68k-apollo-bsd*)
2729 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2730 # chokes on bfd, the compiler won't let you assign integers to enums, and
2731 # other problems. Defining CC to gcc is a questionable way to say "don't use
2732 # the apollo compiler" (the preferred version of GCC could be called cc,
2733 # or whatever), but I'm not sure leaving CC as cc is any better...
2734 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2735 # Used to have BISON=yacc.
2736 tentative_cc=gcc
2737 ;;
2738 m88k-dg-dgux*)
2739 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2740 ;;
2741 m88k-harris-cxux*)
2742 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2743 tentative_cc="cc -Xa"
2744 host_makefile_frag="config/mh-cxux"
2745 ;;
2746 m88k-motorola-sysv*)
2747 ;;
2748 mips*-dec-ultrix*)
2749 tentative_cc="cc -Wf,-XNg1000"
2750 host_makefile_frag="config/mh-decstation"
2751 ;;
2752 mips*-nec-sysv4*)
2753 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2754 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2755 host_makefile_frag="config/mh-necv4"
2756 ;;
2757 mips*-sgi-irix4*)
2758 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2759 # environment. Also bump switch table size so that cp-parse will
2760 # compile. Bump string length limit so linker builds.
2761 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2762 ;;
2763 mips*-*-sysv4*)
2764 host_makefile_frag="config/mh-sysv4"
2765 ;;
2766 mips*-*-sysv*)
2767 # This is for a MIPS running RISC/os 4.52C.
2768
2769 # This is needed for GDB, but needs to be in the top-level make because
2770 # if a library is compiled with the bsd headers and gets linked with the
2771 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2772 # a different size).
2773 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2774 # known except to select the sysv environment. Could we use /proc instead?
2775 # These "sysv environments" and "bsd environments" often end up being a pain.
2776 #
2777 # This is not part of CFLAGS because perhaps not all C compilers have this
2778 # option.
2779 tentative_cc="cc -systype sysv"
2780 ;;
2781 i370-ibm-opened*)
2782 tentative_cc="c89"
2783 ;;
ec11bdc6 2784 i[3456789]86-*-sysv5*)
a0da8069
NN
2785 host_makefile_frag="config/mh-sysv5"
2786 ;;
ec11bdc6 2787 i[3456789]86-*-dgux*)
a0da8069
NN
2788 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2789 host_makefile_frag="config/mh-dgux386"
2790 ;;
ec11bdc6 2791 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2792 # The MetaWare compiler will generate a copyright message unless you
2793 # turn it off by adding the -Hnocopyr flag.
2794 tentative_cc="cc -Hnocopyr"
2795 ;;
ec11bdc6 2796 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2797 # for an NCR 3000 (i486/SVR4) system.
2798 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2799 # This compiler not only emits obnoxious copyright messages every time
2800 # you run it, but it chokes and dies on a whole bunch of GNU source
2801 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2802 tentative_cc="/usr/ccs/ATT/cc"
2803 host_makefile_frag="config/mh-ncr3000"
2804 ;;
ec11bdc6 2805 i[3456789]86-*-sco3.2v5*)
a0da8069 2806 ;;
ec11bdc6 2807 i[3456789]86-*-sco*)
a0da8069
NN
2808 # The native C compiler botches some simple uses of const. Unfortunately,
2809 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2810 tentative_cc="cc -Dconst="
2811 host_makefile_frag="config/mh-sco"
2812 ;;
ec11bdc6 2813 i[3456789]86-*-udk*)
a0da8069
NN
2814 host_makefile_frag="config/mh-sysv5"
2815 ;;
ec11bdc6 2816 i[3456789]86-*-solaris2*)
a0da8069
NN
2817 host_makefile_frag="config/mh-sysv4"
2818 ;;
ec11bdc6 2819 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2820 host_makefile_frag="config/mh-djgpp"
2821 ;;
2822 *-cygwin*)
e33b51a6
NC
2823
2824echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2825echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2826echo a >cygwin-cat-check
2827if test `cat cygwin-cat-check` == a ; then
8ade07e9 2828 rm cygwin-cat-check
e33b51a6
NC
2829 echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6
2831else
8ade07e9 2832 rm cygwin-cat-check
e33b51a6
NC
2833 echo "$as_me:$LINENO: result: no" >&5
2834echo "${ECHO_T}no" >&6
2835 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2836 Please either mount the build directory in binary mode or run the following
2837 commands before running any configure script:
2838set -o igncr
2839export SHELLOPTS
2840 " >&5
2841echo "$as_me: error: The cat command does not ignore carriage return characters.
2842 Please either mount the build directory in binary mode or run the following
2843 commands before running any configure script:
2844set -o igncr
2845export SHELLOPTS
2846 " >&2;}
2847 { (exit 1); exit 1; }; }
2848fi
e33b51a6 2849
a0da8069
NN
2850 host_makefile_frag="config/mh-cygwin"
2851 ;;
8a1599ab 2852 *-mingw*)
84e7906e 2853 host_makefile_frag="config/mh-mingw"
2d1e8239 2854 ;;
a0da8069
NN
2855 *-interix*)
2856 host_makefile_frag="config/mh-interix"
2857 ;;
2858 vax-*-ultrix2*)
2859 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2860 tentative_cc=gcc
2861 ;;
2862 *-*-solaris2*)
2863 host_makefile_frag="config/mh-solaris"
2864 ;;
2865 m68k-sun-sunos*)
2866 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2867 # without overflowing the jump tables (-J says to use a 32 bit table)
2868 tentative_cc="cc -J"
2869 ;;
da888c87 2870 hppa*-hp-hpux10*)
a0da8069 2871 tentative_cc="cc -Wp,-H256000"
da888c87 2872 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2873 ;;
da888c87
PB
2874 hppa*-hp-hpux* | hppa*-*-hiux*)
2875 tentative_cc="cc -Wp,-H256000"
2876 host_makefile_frag="config/mh-pa"
2877 ;;
2878 hppa*-*)
2879 host_makefile_frag="config/mh-pa"
2880 ;;
2881 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2882 tentative_cc="cc -Wp,-H256000"
2883 ;;
2884 rs6000-*-lynxos*)
2885 # /bin/cc is less than useful for our purposes. Always use GCC
2886 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2887 host_makefile_frag="config/mh-lynxrs6k"
2888 ;;
0df3d27f
PB
2889 powerpc-*-darwin*)
2890 host_makefile_frag="config/mh-ppc-darwin"
2891 ;;
f6d183c0
PB
2892 powerpc-*-aix*)
2893 host_makefile_frag="config/mh-ppc-aix"
2894 ;;
2895 rs6000-*-aix*)
2896 host_makefile_frag="config/mh-ppc-aix"
2897 ;;
a0da8069
NN
2898 *-*-lynxos*)
2899 # /bin/cc is less than useful for our purposes. Always use GCC
2900 tentative_cc="/bin/gcc"
2901 ;;
2902 *-*-sysv4*)
2903 host_makefile_frag="config/mh-sysv4"
2904 ;;
fe69863c
DD
2905 # This is placed last to prevent interfering with the cases above.
2906 i[3456789]86-*-*)
2907 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2908 host_makefile_frag="config/mh-x86omitfp"
2909 ;;
a0da8069
NN
2910esac
2911fi
2912
9e07f89d
NN
2913# If we aren't going to be using gcc, see if we can extract a definition
2914# of CC from the fragment.
2915# Actually, use the 'pre-extracted' version above.
2916if test -z "${CC}" && test "${build}" = "${host}" ; then
2917 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2918 found=
2919 for dir in $PATH; do
2920 test -z "$dir" && dir=.
2921 if test -f $dir/gcc; then
2922 found=yes
2923 break
2924 fi
2925 done
2926 IFS="$save_ifs"
2927 if test -z "${found}" && test -n "${tentative_cc}" ; then
2928 CC=$tentative_cc
2929 fi
2930fi
2931
2932if test "${build}" != "${host}" ; then
1576798e
PB
2933 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2934 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2935 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2936 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2937 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2938 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2939 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2940 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2941 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2942 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2943 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2944 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2945else
2946 AR_FOR_BUILD="\$(AR)"
2947 AS_FOR_BUILD="\$(AS)"
512b7dfb 2948 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2949 CXX_FOR_BUILD="\$(CXX)"
2950 GCJ_FOR_BUILD="\$(GCJ)"
2951 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2952 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2953 LD_FOR_BUILD="\$(LD)"
2954 NM_FOR_BUILD="\$(NM)"
2955 RANLIB_FOR_BUILD="\$(RANLIB)"
2956 WINDRES_FOR_BUILD="\$(WINDRES)"
2957 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2958fi
2959
2960ac_ext=c
c6b750e1
DJ
2961ac_cpp='$CPP $CPPFLAGS'
2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968echo "$as_me:$LINENO: checking for $ac_word" >&5
2969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2970if test "${ac_cv_prog_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987done
2988done
2989
2990fi
2991fi
2992CC=$ac_cv_prog_CC
2993if test -n "$CC"; then
2994 echo "$as_me:$LINENO: result: $CC" >&5
2995echo "${ECHO_T}$CC" >&6
2996else
2997 echo "$as_me:$LINENO: result: no" >&5
2998echo "${ECHO_T}no" >&6
2999fi
3000
3001fi
3002if test -z "$ac_cv_prog_CC"; then
3003 ac_ct_CC=$CC
6a9cf61e 3004 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3005set dummy gcc; ac_word=$2
c6b750e1
DJ
3006echo "$as_me:$LINENO: checking for $ac_word" >&5
3007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_ac_ct_CC="gcc"
3022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025done
3026done
3027
3028fi
3029fi
3030ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031if test -n "$ac_ct_CC"; then
3032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3033echo "${ECHO_T}$ac_ct_CC" >&6
3034else
3035 echo "$as_me:$LINENO: result: no" >&5
3036echo "${ECHO_T}no" >&6
3037fi
3038
3039 CC=$ac_ct_CC
3040else
3041 CC="$ac_cv_prog_CC"
3042fi
3043
3044if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047set dummy ${ac_tool_prefix}cc; ac_word=$2
3048echo "$as_me:$LINENO: checking for $ac_word" >&5
3049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3050if test "${ac_cv_prog_CC+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3052else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055else
c6b750e1
DJ
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_CC="${ac_tool_prefix}cc"
3064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067done
3068done
3069
9e07f89d
NN
3070fi
3071fi
c6b750e1 3072CC=$ac_cv_prog_CC
9e07f89d 3073if test -n "$CC"; then
c6b750e1
DJ
3074 echo "$as_me:$LINENO: result: $CC" >&5
3075echo "${ECHO_T}$CC" >&6
9e07f89d 3076else
c6b750e1
DJ
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
9e07f89d
NN
3079fi
3080
c6b750e1
DJ
3081fi
3082if test -z "$ac_cv_prog_CC"; then
3083 ac_ct_CC=$CC
3084 # Extract the first word of "cc", so it can be a program name with args.
3085set dummy cc; ac_word=$2
3086echo "$as_me:$LINENO: checking for $ac_word" >&5
3087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_CC="cc"
3102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106done
3107
3108fi
3109fi
3110ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111if test -n "$ac_ct_CC"; then
3112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3113echo "${ECHO_T}$ac_ct_CC" >&6
3114else
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117fi
3118
3119 CC=$ac_ct_CC
3120else
3121 CC="$ac_cv_prog_CC"
3122fi
3123
3124fi
9e07f89d
NN
3125if test -z "$CC"; then
3126 # Extract the first word of "cc", so it can be a program name with args.
3127set dummy cc; ac_word=$2
c6b750e1
DJ
3128echo "$as_me:$LINENO: checking for $ac_word" >&5
3129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3130if test "${ac_cv_prog_CC+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3132else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135else
9e07f89d 3136 ac_prog_rejected=no
c6b750e1
DJ
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3145 ac_prog_rejected=yes
3146 continue
3147 fi
3148 ac_cv_prog_CC="cc"
3149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152done
3153done
3154
9e07f89d
NN
3155if test $ac_prog_rejected = yes; then
3156 # We found a bogon in the path, so make sure we never use it.
3157 set dummy $ac_cv_prog_CC
3158 shift
c6b750e1 3159 if test $# != 0; then
9e07f89d
NN
3160 # We chose a different compiler from the bogus one.
3161 # However, it has the same basename, so the bogon will be chosen
3162 # first if we set CC to just the basename; use the full file name.
3163 shift
c6b750e1 3164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3165 fi
3166fi
3167fi
3168fi
c6b750e1 3169CC=$ac_cv_prog_CC
9e07f89d 3170if test -n "$CC"; then
c6b750e1
DJ
3171 echo "$as_me:$LINENO: result: $CC" >&5
3172echo "${ECHO_T}$CC" >&6
9e07f89d 3173else
c6b750e1
DJ
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
9e07f89d
NN
3176fi
3177
c6b750e1
DJ
3178fi
3179if test -z "$CC"; then
3180 if test -n "$ac_tool_prefix"; then
3181 for ac_prog in cl
3182 do
3183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3185echo "$as_me:$LINENO: checking for $ac_word" >&5
3186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187if test "${ac_cv_prog_CC+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3189else
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3192else
c6b750e1
DJ
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
376a0e54 3203 fi
c6b750e1
DJ
3204done
3205done
cac3d6c4 3206
c6b750e1
DJ
3207fi
3208fi
3209CC=$ac_cv_prog_CC
3210if test -n "$CC"; then
3211 echo "$as_me:$LINENO: result: $CC" >&5
3212echo "${ECHO_T}$CC" >&6
cac3d6c4 3213else
c6b750e1
DJ
3214 echo "$as_me:$LINENO: result: no" >&5
3215echo "${ECHO_T}no" >&6
9e07f89d 3216fi
cac3d6c4 3217
c6b750e1
DJ
3218 test -n "$CC" && break
3219 done
cac3d6c4 3220fi
c6b750e1
DJ
3221if test -z "$CC"; then
3222 ac_ct_CC=$CC
3223 for ac_prog in cl
3224do
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226set dummy $ac_prog; ac_word=$2
3227echo "$as_me:$LINENO: checking for $ac_word" >&5
3228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3231else
c6b750e1
DJ
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3234else
c6b750e1
DJ
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_ac_ct_CC="$ac_prog"
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246done
3247done
3248
cac3d6c4
CM
3249fi
3250fi
c6b750e1
DJ
3251ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252if test -n "$ac_ct_CC"; then
3253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3254echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3255else
c6b750e1
DJ
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
cac3d6c4 3258fi
376a0e54 3259
c6b750e1
DJ
3260 test -n "$ac_ct_CC" && break
3261done
3262
3263 CC=$ac_ct_CC
3264fi
3265
3266fi
3267
3268
7a283e07
RW
3269test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3270echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3272See \`config.log' for more details." >&5
3273echo "$as_me: error: no acceptable C compiler found in \$PATH
3274See \`config.log' for more details." >&2;}
7a283e07 3275 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3276
3277# Provide some information about the compiler.
3278echo "$as_me:$LINENO:" \
3279 "checking for C compiler version" >&5
3280ac_compiler=`set X $ac_compile; echo $2`
3281{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3282 (eval $ac_compiler --version </dev/null >&5) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3287 (eval $ac_compiler -v </dev/null >&5) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }
3291{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3292 (eval $ac_compiler -V </dev/null >&5) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }
3296
3297cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312ac_clean_files_save=$ac_clean_files
3313ac_clean_files="$ac_clean_files a.out a.exe b.out"
3314# Try to create an executable without -o first, disregard a.out.
3315# It will help us diagnose broken compilers, and finding out an intuition
3316# of exeext.
3317echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3318echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3319ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3320if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3321 (eval $ac_link_default) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # Find the output, starting from the most likely. This scheme is
3326# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3327# resort.
3328
3329# Be careful to initialize this variable, since it used to be cached.
3330# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3331ac_cv_exeext=
3332# b.out is created by i960 compilers.
3333for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3334do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3338 ;;
3339 conftest.$ac_ext )
3340 # This is the source file.
3341 ;;
3342 [ab].out )
3343 # We found the default executable, but exeext='' is most
3344 # certainly right.
3345 break;;
3346 *.* )
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 # FIXME: I believe we export ac_cv_exeext for Libtool,
3349 # but it would be cool to find out if it's true. Does anybody
3350 # maintain Libtool? --akim.
3351 export ac_cv_exeext
3352 break;;
3353 * )
3354 break;;
3355 esac
3356done
3357else
3358 echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
7a283e07
RW
3361{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3362echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3363{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3364See \`config.log' for more details." >&5
3365echo "$as_me: error: C compiler cannot create executables
3366See \`config.log' for more details." >&2;}
7a283e07 3367 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3368fi
3369
3370ac_exeext=$ac_cv_exeext
3371echo "$as_me:$LINENO: result: $ac_file" >&5
3372echo "${ECHO_T}$ac_file" >&6
3373
3374# Check the compiler produces executables we can run. If not, either
3375# the compiler is broken, or we cross compile.
3376echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3377echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3378# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3379# If not cross compiling, check that we can run a simple program.
3380if test "$cross_compiling" != yes; then
3381 if { ac_try='./$ac_file'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 cross_compiling=no
3388 else
3389 if test "$cross_compiling" = maybe; then
3390 cross_compiling=yes
3391 else
7a283e07
RW
3392 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3393echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3395If you meant to cross compile, use \`--host'.
3396See \`config.log' for more details." >&5
3397echo "$as_me: error: cannot run C compiled programs.
3398If you meant to cross compile, use \`--host'.
3399See \`config.log' for more details." >&2;}
7a283e07 3400 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3401 fi
3402 fi
3403fi
3404echo "$as_me:$LINENO: result: yes" >&5
3405echo "${ECHO_T}yes" >&6
3406
3407rm -f a.out a.exe conftest$ac_cv_exeext b.out
3408ac_clean_files=$ac_clean_files_save
3409# Check the compiler produces executables we can run. If not, either
3410# the compiler is broken, or we cross compile.
3411echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3412echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3413echo "$as_me:$LINENO: result: $cross_compiling" >&5
3414echo "${ECHO_T}$cross_compiling" >&6
3415
3416echo "$as_me:$LINENO: checking for suffix of executables" >&5
3417echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3419 (eval $ac_link) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; then
3423 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3424# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3425# work properly (i.e., refer to `conftest.exe'), while it won't with
3426# `rm'.
3427for ac_file in conftest.exe conftest conftest.*; do
3428 test -f "$ac_file" || continue
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 export ac_cv_exeext
3433 break;;
3434 * ) break;;
3435 esac
3436done
3437else
7a283e07
RW
3438 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3439echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3441See \`config.log' for more details." >&5
3442echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3443See \`config.log' for more details." >&2;}
7a283e07 3444 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3445fi
3446
3447rm -f conftest$ac_cv_exeext
3448echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3449echo "${ECHO_T}$ac_cv_exeext" >&6
3450
3451rm -f conftest.$ac_ext
3452EXEEXT=$ac_cv_exeext
3453ac_exeext=$EXEEXT
3454echo "$as_me:$LINENO: checking for suffix of object files" >&5
3455echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3456if test "${ac_cv_objext+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465
3466int
3467main ()
3468{
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.o conftest.obj
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; then
3480 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3481 case $ac_file in
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3483 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3484 break;;
3485 esac
3486done
cac3d6c4 3487else
c6b750e1
DJ
3488 echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
7a283e07
RW
3491{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3492echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3493{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3494See \`config.log' for more details." >&5
3495echo "$as_me: error: cannot compute suffix of object files: cannot compile
3496See \`config.log' for more details." >&2;}
7a283e07 3497 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3498fi
3499
3500rm -f conftest.$ac_cv_objext conftest.$ac_ext
3501fi
3502echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3503echo "${ECHO_T}$ac_cv_objext" >&6
3504OBJEXT=$ac_cv_objext
3505ac_objext=$OBJEXT
3506echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3507echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3508if test "${ac_cv_c_compiler_gnu+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511 cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
3517
3518int
3519main ()
3520{
3521#ifndef __GNUC__
3522 choke me
3523#endif
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 ac_compiler_gnu=yes
3552else
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556ac_compiler_gnu=no
3557fi
3558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560
3561fi
3562echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3563echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3564GCC=`test $ac_compiler_gnu = yes && echo yes`
3565ac_test_CFLAGS=${CFLAGS+set}
3566ac_save_CFLAGS=$CFLAGS
3567CFLAGS="-g"
3568echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3569echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3570if test "${ac_cv_prog_cc_g+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573 cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579
3580int
3581main ()
3582{
3583
3584 ;
3585 return 0;
3586}
3587_ACEOF
3588rm -f conftest.$ac_objext
3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
9e07f89d
NN
3610 ac_cv_prog_cc_g=yes
3611else
c6b750e1
DJ
3612 echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3614
c6b750e1 3615ac_cv_prog_cc_g=no
376a0e54 3616fi
c6b750e1
DJ
3617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618fi
3619echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3621if test "$ac_test_CFLAGS" = set; then
c6b750e1 3622 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3623elif test $ac_cv_prog_cc_g = yes; then
3624 if test "$GCC" = yes; then
3625 CFLAGS="-g -O2"
3626 else
3627 CFLAGS="-g"
3628 fi
3629else
3630 if test "$GCC" = yes; then
3631 CFLAGS="-O2"
3632 else
3633 CFLAGS=
3634 fi
3635fi
c6b750e1
DJ
3636echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3637echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3638if test "${ac_cv_prog_cc_stdc+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641 ac_cv_prog_cc_stdc=no
3642ac_save_CC=$CC
3643cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649#include <stdarg.h>
3650#include <stdio.h>
3651#include <sys/types.h>
3652#include <sys/stat.h>
3653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3654struct buf { int x; };
3655FILE * (*rcsopen) (struct buf *, struct stat *, int);
3656static char *e (p, i)
3657 char **p;
3658 int i;
3659{
3660 return p[i];
3661}
3662static char *f (char * (*g) (char **, int), char **p, ...)
3663{
3664 char *s;
3665 va_list v;
3666 va_start (v,p);
3667 s = g (p, va_arg (v,int));
3668 va_end (v);
3669 return s;
3670}
3671
3672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3673 function prototypes and stuff, but not '\xHH' hex character constants.
3674 These don't provoke an error unfortunately, instead are silently treated
3675 as 'x'. The following induces an error, until -std1 is added to get
3676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3677 array size at least. It's necessary to write '\x00'==0 to get something
3678 that's true only with -std1. */
3679int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3680
3681int test (int i, double x);
3682struct s1 {int (*f) (int a);};
3683struct s2 {int (*f) (double a);};
3684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685int argc;
3686char **argv;
3687int
3688main ()
3689{
3690return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695# Don't try gcc -ansi; that turns off useful extensions and
3696# breaks some systems' header files.
3697# AIX -qlanglvl=ansi
3698# Ultrix and OSF/1 -std1
3699# HP-UX 10.20 and later -Ae
3700# HP-UX older versions -Aa -D_HPUX_SOURCE
3701# SVR4 -Xc -D__EXTENSIONS__
3702for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3703do
3704 CC="$ac_save_CC $ac_arg"
3705 rm -f conftest.$ac_objext
3706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_cv_prog_cc_stdc=$ac_arg
3728break
3729else
3730 echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733fi
3734rm -f conftest.err conftest.$ac_objext
3735done
3736rm -f conftest.$ac_ext conftest.$ac_objext
3737CC=$ac_save_CC
3738
3739fi
3740
3741case "x$ac_cv_prog_cc_stdc" in
3742 x|xno)
3743 echo "$as_me:$LINENO: result: none needed" >&5
3744echo "${ECHO_T}none needed" >&6 ;;
3745 *)
3746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3747echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3748 CC="$CC $ac_cv_prog_cc_stdc" ;;
3749esac
3750
3751# Some people use a C++ compiler to compile C. Since we use `exit',
3752# in C++ we need to declare it. In case someone uses the same compiler
3753# for both compiling C and C++ we need to have the C++ compiler decide
3754# the declaration of exit, since it's the most demanding environment.
3755cat >conftest.$ac_ext <<_ACEOF
3756#ifndef __cplusplus
3757 choke me
3758#endif
3759_ACEOF
3760rm -f conftest.$ac_objext
3761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag"
3770 || test ! -s conftest.err'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; } &&
3776 { ac_try='test -s conftest.$ac_objext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 for ac_declaration in \
3783 '' \
3784 'extern "C" void std::exit (int) throw (); using std::exit;' \
3785 'extern "C" void std::exit (int); using std::exit;' \
3786 'extern "C" void exit (int) throw ();' \
3787 'extern "C" void exit (int);' \
3788 'void exit (int);'
3789do
3790 cat >conftest.$ac_ext <<_ACEOF
3791/* confdefs.h. */
3792_ACEOF
3793cat confdefs.h >>conftest.$ac_ext
3794cat >>conftest.$ac_ext <<_ACEOF
3795/* end confdefs.h. */
3796$ac_declaration
3797#include <stdlib.h>
3798int
3799main ()
3800{
3801exit (42);
3802 ;
3803 return 0;
3804}
3805_ACEOF
3806rm -f conftest.$ac_objext
3807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 :
3829else
3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833continue
3834fi
3835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3836 cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h. */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h. */
3842$ac_declaration
3843int
3844main ()
3845{
3846exit (42);
3847 ;
3848 return 0;
3849}
3850_ACEOF
3851rm -f conftest.$ac_objext
3852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try='test -z "$ac_c_werror_flag"
3861 || test ! -s conftest.err'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; } &&
3867 { ac_try='test -s conftest.$ac_objext'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
3873 break
3874else
3875 echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878fi
3879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3880done
3881rm -f conftest*
3882if test -n "$ac_declaration"; then
3883 echo '#ifdef __cplusplus' >>confdefs.h
3884 echo $ac_declaration >>confdefs.h
3885 echo '#endif' >>confdefs.h
3886fi
3887
3888else
3889 echo "$as_me: failed program was:" >&5
3890sed 's/^/| /' conftest.$ac_ext >&5
3891
3892fi
3893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894ac_ext=c
3895ac_cpp='$CPP $CPPFLAGS'
3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3899
18f6b6ee
PB
3900ac_ext=cc
3901ac_cpp='$CXXCPP $CPPFLAGS'
3902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3905if test -n "$ac_tool_prefix"; then
3906 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3907 do
3908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910echo "$as_me:$LINENO: checking for $ac_word" >&5
3911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912if test "${ac_cv_prog_CXX+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915 if test -n "$CXX"; then
3916 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929done
3930done
512b7dfb 3931
18f6b6ee
PB
3932fi
3933fi
3934CXX=$ac_cv_prog_CXX
3935if test -n "$CXX"; then
3936 echo "$as_me:$LINENO: result: $CXX" >&5
3937echo "${ECHO_T}$CXX" >&6
3938else
3939 echo "$as_me:$LINENO: result: no" >&5
3940echo "${ECHO_T}no" >&6
3941fi
3942
3943 test -n "$CXX" && break
3944 done
3945fi
3946if test -z "$CXX"; then
3947 ac_ct_CXX=$CXX
3948 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3949do
3950 # Extract the first word of "$ac_prog", so it can be a program name with args.
3951set dummy $ac_prog; ac_word=$2
3952echo "$as_me:$LINENO: checking for $ac_word" >&5
3953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957 if test -n "$ac_ct_CXX"; then
3958 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_ac_ct_CXX="$ac_prog"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
512b7dfb 3970 fi
18f6b6ee
PB
3971done
3972done
512b7dfb 3973
18f6b6ee
PB
3974fi
3975fi
3976ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3977if test -n "$ac_ct_CXX"; then
3978 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3979echo "${ECHO_T}$ac_ct_CXX" >&6
3980else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983fi
3984
3985 test -n "$ac_ct_CXX" && break
3986done
3987test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3988
3989 CXX=$ac_ct_CXX
3990fi
3991
3992
3993# Provide some information about the compiler.
3994echo "$as_me:$LINENO:" \
3995 "checking for C++ compiler version" >&5
3996ac_compiler=`set X $ac_compile; echo $2`
3997{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3998 (eval $ac_compiler --version </dev/null >&5) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }
4002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4003 (eval $ac_compiler -v </dev/null >&5) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }
4007{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4008 (eval $ac_compiler -V </dev/null >&5) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }
4012
4013echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4014echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4015if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h. */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h. */
4024
4025int
4026main ()
4027{
4028#ifndef __GNUC__
4029 choke me
4030#endif
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036rm -f conftest.$ac_objext
4037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_compiler_gnu=yes
4059else
4060 echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063ac_compiler_gnu=no
4064fi
4065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4067
4068fi
4069echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4070echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4071GXX=`test $ac_compiler_gnu = yes && echo yes`
4072ac_test_CXXFLAGS=${CXXFLAGS+set}
4073ac_save_CXXFLAGS=$CXXFLAGS
4074CXXFLAGS="-g"
4075echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4076echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4077if test "${ac_cv_prog_cxx_g+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080 cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h. */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h. */
4086
4087int
4088main ()
4089{
4090
4091 ;
4092 return 0;
4093}
4094_ACEOF
4095rm -f conftest.$ac_objext
4096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_cxx_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_prog_cxx_g=yes
4118else
4119 echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122ac_cv_prog_cxx_g=no
4123fi
4124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125fi
4126echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4127echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4128if test "$ac_test_CXXFLAGS" = set; then
4129 CXXFLAGS=$ac_save_CXXFLAGS
4130elif test $ac_cv_prog_cxx_g = yes; then
4131 if test "$GXX" = yes; then
4132 CXXFLAGS="-g -O2"
4133 else
4134 CXXFLAGS="-g"
4135 fi
4136else
4137 if test "$GXX" = yes; then
4138 CXXFLAGS="-O2"
4139 else
4140 CXXFLAGS=
4141 fi
4142fi
4143for ac_declaration in \
4144 '' \
4145 'extern "C" void std::exit (int) throw (); using std::exit;' \
4146 'extern "C" void std::exit (int); using std::exit;' \
4147 'extern "C" void exit (int) throw ();' \
4148 'extern "C" void exit (int);' \
4149 'void exit (int);'
4150do
4151 cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157$ac_declaration
4158#include <stdlib.h>
4159int
4160main ()
4161{
4162exit (42);
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext
4168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -z "$ac_cxx_werror_flag"
4177 || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 :
4190else
4191 echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194continue
4195fi
4196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197 cat >conftest.$ac_ext <<_ACEOF
4198/* confdefs.h. */
4199_ACEOF
4200cat confdefs.h >>conftest.$ac_ext
4201cat >>conftest.$ac_ext <<_ACEOF
4202/* end confdefs.h. */
4203$ac_declaration
4204int
4205main ()
4206{
4207exit (42);
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212rm -f conftest.$ac_objext
4213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_cxx_werror_flag"
4222 || test ! -s conftest.err'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 break
4235else
4236 echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239fi
4240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241done
4242rm -f conftest*
4243if test -n "$ac_declaration"; then
4244 echo '#ifdef __cplusplus' >>confdefs.h
4245 echo $ac_declaration >>confdefs.h
4246 echo '#endif' >>confdefs.h
4247fi
4248
4249ac_ext=c
4250ac_cpp='$CPP $CPPFLAGS'
4251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254
4255
4256# We must set the default linker to the linker used by gcc for the correct
4257# operation of libtool. If LD is not defined and we are using gcc, try to
4258# set the LD default to the ld used by gcc.
4259if test -z "$LD"; then
4260 if test "$GCC" = yes; then
4261 case $build in
4262 *-*-mingw*)
4263 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4264 *)
4265 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4266 esac
4267 case $gcc_prog_ld in
4268 # Accept absolute paths.
4269 [\\/]* | [A-Za-z]:[\\/]*)
4270 LD="$gcc_prog_ld" ;;
4271 esac
4272 fi
512b7dfb
PB
4273fi
4274
4275
4276
4277
c6b750e1 4278if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4279 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4280set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4281echo "$as_me:$LINENO: checking for $ac_word" >&5
4282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4283if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4284 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4285else
512b7dfb
PB
4286 if test -n "$GNATBIND"; then
4287 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4288else
c6b750e1
DJ
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4296 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300done
4301done
4302
9e07f89d
NN
4303fi
4304fi
512b7dfb
PB
4305GNATBIND=$ac_cv_prog_GNATBIND
4306if test -n "$GNATBIND"; then
4307 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4308echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4309else
c6b750e1
DJ
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
9e07f89d
NN
4312fi
4313
c6b750e1 4314fi
512b7dfb
PB
4315if test -z "$ac_cv_prog_GNATBIND"; then
4316 ac_ct_GNATBIND=$GNATBIND
4317 # Extract the first word of "gnatbind", so it can be a program name with args.
4318set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4319echo "$as_me:$LINENO: checking for $ac_word" >&5
4320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4321if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4322 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4323else
512b7dfb
PB
4324 if test -n "$ac_ct_GNATBIND"; then
4325 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4326else
c6b750e1
DJ
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4334 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338done
4339done
4340
512b7dfb 4341 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4342fi
4343fi
512b7dfb
PB
4344ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4345if test -n "$ac_ct_GNATBIND"; then
4346 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4347echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4348else
c6b750e1
DJ
4349 echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6
9e07f89d
NN
4351fi
4352
512b7dfb 4353 GNATBIND=$ac_ct_GNATBIND
24ff9987 4354else
512b7dfb 4355 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4356fi
4357
7df2cd5d 4358if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4359 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4360set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4361echo "$as_me:$LINENO: checking for $ac_word" >&5
4362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4363if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
512b7dfb
PB
4366 if test -n "$GNATMAKE"; then
4367 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4376 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381done
4382
4383fi
4384fi
512b7dfb
PB
4385GNATMAKE=$ac_cv_prog_GNATMAKE
4386if test -n "$GNATMAKE"; then
4387 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4388echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4389else
4390 echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6
4392fi
4393
4394fi
512b7dfb
PB
4395if test -z "$ac_cv_prog_GNATMAKE"; then
4396 ac_ct_GNATMAKE=$GNATMAKE
4397 # Extract the first word of "gnatmake", so it can be a program name with args.
4398set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4399echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4401if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
512b7dfb
PB
4404 if test -n "$ac_ct_GNATMAKE"; then
4405 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4414 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418done
4419done
4420
512b7dfb 4421 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4422fi
4423fi
512b7dfb
PB
4424ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4425if test -n "$ac_ct_GNATMAKE"; then
4426 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4427echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4428else
4429 echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6
4431fi
4432
512b7dfb 4433 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4434else
512b7dfb 4435 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4436fi
4437
c6b750e1
DJ
4438echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4439echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4440if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4442else
4443 cat >conftest.adb <<EOF
4444procedure conftest is begin null; end conftest;
4445EOF
4446acx_cv_cc_gcc_supports_ada=no
4447# There is a bug in old released versions of GCC which causes the
4448# driver to exit successfully when the appropriate language module
4449# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4450# Therefore we must check for the error message as well as an
4451# unsuccessful exit.
b8908782
DD
4452# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4453# given a .adb file, but produce no object file. So we must check
4454# if an object file was really produced to guard against this.
9e07f89d 4455errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4456if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4457 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4458fi
4459rm -f conftest.*
4460fi
c6b750e1
DJ
4461echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4462echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4463
512b7dfb 4464if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4465 have_gnat=yes
4466else
4467 have_gnat=no
4468fi
4469
c6b750e1
DJ
4470echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4471echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4472if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4474else
4475 echo abfoo >t1
4476 echo cdfoo >t2
4477 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4478 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4479 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4480 :
4481 else
4482 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4483 fi
4484 fi
b8908782
DD
4485 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4486 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4487 :
b8908782
DD
4488 else
4489 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4490 fi
4491 fi
4492 rm t1 t2
4493
4494fi
c6b750e1
DJ
4495echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4496echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4497do_compare="$gcc_cv_prog_cmp_skip"
4498
4499
9e07f89d 4500
11b04d1f 4501# Check for GMP and MPFR
4b900473 4502gmplibs="-lmpfr -lgmp"
4b1cb4fe 4503gmpinc=
4b900473
PB
4504have_gmp=no
4505
11b04d1f
DD
4506# Specify a location for mpfr
4507# check for this first so it ends up on the link line before gmp.
c6b750e1 4508
11b04d1f
DD
4509# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4510if test "${with_mpfr_dir+set}" = set; then
4511 withval="$with_mpfr_dir"
c6b750e1
DJ
4512 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4513Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4514echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4515Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4516 { (exit 1); exit 1; }; }
4517fi;
11b04d1f
DD
4518
4519
11b04d1f
DD
4520# Check whether --with-mpfr or --without-mpfr was given.
4521if test "${with_mpfr+set}" = set; then
4522 withval="$with_mpfr"
c6b750e1
DJ
4523
4524fi;
11b04d1f 4525
8a0d8a5c
PB
4526# Check whether --with-mpfr_include or --without-mpfr_include was given.
4527if test "${with_mpfr_include+set}" = set; then
4528 withval="$with_mpfr_include"
c6b750e1
DJ
4529
4530fi;
8a0d8a5c
PB
4531
4532# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4533if test "${with_mpfr_lib+set}" = set; then
4534 withval="$with_mpfr_lib"
8a0d8a5c 4535
c6b750e1 4536fi;
11b04d1f
DD
4537
4538if test "x$with_mpfr" != x; then
4539 gmplibs="-L$with_mpfr/lib $gmplibs"
4540 gmpinc="-I$with_mpfr/include"
4541fi
8a0d8a5c
PB
4542if test "x$with_mpfr_include" != x; then
4543 gmpinc="-I$with_mpfr_include"
4544fi
4545if test "x$with_mpfr_lib" != x; then
4546 gmplibs="-L$with_mpfr_lib $gmplibs"
4547fi
4b900473
PB
4548if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4549 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4550 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4551 # Do not test the mpfr version. Assume that it is sufficient, since
4552 # it is in the source tree, and the library has not been built yet
4553 # but it would be included on the link line in the version check below
4554 # hence making the test fail.
4555 have_gmp=yes
4556fi
11b04d1f 4557
4b1cb4fe 4558# Specify a location for gmp
c6b750e1 4559
4b1cb4fe
DD
4560# Check whether --with-gmp-dir or --without-gmp-dir was given.
4561if test "${with_gmp_dir+set}" = set; then
4562 withval="$with_gmp_dir"
c6b750e1
DJ
4563 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4564Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4565echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4566Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4567 { (exit 1); exit 1; }; }
4568fi;
4b1cb4fe
DD
4569
4570
4b1cb4fe
DD
4571# Check whether --with-gmp or --without-gmp was given.
4572if test "${with_gmp+set}" = set; then
4573 withval="$with_gmp"
c6b750e1
DJ
4574
4575fi;
4b1cb4fe 4576
8a0d8a5c
PB
4577# Check whether --with-gmp_include or --without-gmp_include was given.
4578if test "${with_gmp_include+set}" = set; then
4579 withval="$with_gmp_include"
c6b750e1
DJ
4580
4581fi;
8a0d8a5c
PB
4582
4583# Check whether --with-gmp_lib or --without-gmp_lib was given.
4584if test "${with_gmp_lib+set}" = set; then
4585 withval="$with_gmp_lib"
8a0d8a5c 4586
c6b750e1 4587fi;
8a0d8a5c 4588
4b1cb4fe 4589
11b04d1f
DD
4590if test "x$with_gmp" != x; then
4591 gmplibs="-L$with_gmp/lib $gmplibs"
4592 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4593fi
8a0d8a5c
PB
4594if test "x$with_gmp_include" != x; then
4595 gmpinc="-I$with_gmp_include $gmpinc"
4596fi
4597if test "x$with_gmp_lib" != x; then
4598 gmplibs="-L$with_gmp_lib $gmplibs"
4599fi
4b900473
PB
4600if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4601 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4602 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4603 # Do not test the gmp version. Assume that it is sufficient, since
4604 # it is in the source tree, and the library has not been built yet
4605 # but it would be included on the link line in the version check below
4606 # hence making the test fail.
4607 have_gmp=yes
4608fi
4b1cb4fe 4609
ceb92e78 4610if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4611 have_gmp=yes
4612 saved_CFLAGS="$CFLAGS"
4613 CFLAGS="$CFLAGS $gmpinc"
4614 # Check GMP actually works
c6b750e1
DJ
4615 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4616echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4617
4618cat >conftest.$ac_ext <<_ACEOF
4619/* confdefs.h. */
4620_ACEOF
4621cat confdefs.h >>conftest.$ac_ext
4622cat >>conftest.$ac_ext <<_ACEOF
4623/* end confdefs.h. */
4b1cb4fe 4624#include "gmp.h"
c6b750e1
DJ
4625int
4626main ()
4627{
4b1cb4fe 4628
ef699244 4629 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
4630 choke me
4631 #endif
c6b750e1
DJ
4632
4633 ;
4634 return 0;
4635}
4636_ACEOF
4637rm -f conftest.$ac_objext
4638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639 (eval $ac_compile) 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -z "$ac_c_werror_flag"
4647 || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 echo "$as_me:$LINENO: result: yes" >&5
4660echo "${ECHO_T}yes" >&6
4661else
4662 echo "$as_me: failed program was:" >&5
4663sed 's/^/| /' conftest.$ac_ext >&5
4664
4665echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6; have_gmp=no
4667fi
4668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4669
4b900473
PB
4670 if test x"$have_gmp" = xyes; then
4671 saved_LIBS="$LIBS"
4672 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4673 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4674echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4675 cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h. */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h. */
9b134994 4681#include <gmp.h>
4b900473 4682 #include <mpfr.h>
c6b750e1
DJ
4683int
4684main ()
4685{
9b134994 4686
ef699244 4687 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
4688 choke me
4689 #endif
a3ca38d2
DD
4690 mpfr_t n;
4691 mpfr_t x;
4b900473 4692 int t;
a3ca38d2
DD
4693 mpfr_init (n);
4694 mpfr_init (x);
4b900473
PB
4695 mpfr_atan2 (n, n, x, GMP_RNDN);
4696 mpfr_erfc (n, x, GMP_RNDN);
4697 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4698
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703rm -f conftest.$ac_objext conftest$ac_exeext
4704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4705 (eval $ac_link) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 cat >conftest.$ac_ext <<_ACEOF
4726/* confdefs.h. */
4727_ACEOF
4728cat confdefs.h >>conftest.$ac_ext
4729cat >>conftest.$ac_ext <<_ACEOF
4730/* end confdefs.h. */
4b1cb4fe 4731#include <gmp.h>
4b900473 4732 #include <mpfr.h>
c6b750e1
DJ
4733int
4734main ()
4735{
9dbaa842 4736
e28c595f 4737 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
4738 choke me
4739 #endif
4740 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
4746rm -f conftest.$ac_objext conftest$ac_exeext
4747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748 (eval $ac_link) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -z "$ac_c_werror_flag"
4756 || test ! -s conftest.err'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try='test -s conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 echo "$as_me:$LINENO: result: yes" >&5
4769echo "${ECHO_T}yes" >&6
4770else
4771 echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4775echo "${ECHO_T}buggy but acceptable" >&6
4776fi
4777rm -f conftest.err conftest.$ac_objext \
4778 conftest$ac_exeext conftest.$ac_ext
4779else
4780 echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6; have_gmp=no
4785fi
4786rm -f conftest.err conftest.$ac_objext \
4787 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4788 LIBS="$saved_LIBS"
4789 fi
4790 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4791
4b900473 4792 if test x$have_gmp != xyes; then
ef699244 4793 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
c6b750e1
DJ
4794Try the --with-gmp and/or --with-mpfr options to specify their locations.
4795Copies of these libraries' source code can be found at their respective
4796hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4797See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4798If you obtained GMP and/or MPFR from a vendor distribution package, make
4799sure that you have installed both the libraries and the header files.
4800They may be located in separate packages." >&5
ef699244 4801echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
4802Try the --with-gmp and/or --with-mpfr options to specify their locations.
4803Copies of these libraries' source code can be found at their respective
4804hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4805See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4806If you obtained GMP and/or MPFR from a vendor distribution package, make
4807sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4808They may be located in separate packages." >&2;}
4809 { (exit 1); exit 1; }; }
4b900473 4810 fi
9dbaa842
DD
4811fi
4812
11b04d1f 4813# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4814
4815
4816
29383458
JM
4817# Allow host libstdc++ to be specified for static linking with PPL.
4818
4819# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
4820if test "${with_host_libstdcxx+set}" = set; then
4821 withval="$with_host_libstdcxx"
4822
4823fi;
4824
4825case $with_host_libstdcxx in
4826 no|yes)
4827 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
4828echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
4829 { (exit 1); exit 1; }; }
4830 ;;
4831esac
e28c595f
JM
4832
4833# Check for PPL
4834ppl_major_version=0
4835ppl_minor_version=10
29383458 4836ppllibs=" -lppl_c -lppl -lgmpxx $with_host_libstdcxx "
e28c595f
JM
4837pplinc=
4838
4839
4840# Check whether --with-ppl or --without-ppl was given.
4841if test "${with_ppl+set}" = set; then
4842 withval="$with_ppl"
4843
4844fi;
4845
4846# Check whether --with-ppl_include or --without-ppl_include was given.
4847if test "${with_ppl_include+set}" = set; then
4848 withval="$with_ppl_include"
4849
4850fi;
4851
4852# Check whether --with-ppl_lib or --without-ppl_lib was given.
4853if test "${with_ppl_lib+set}" = set; then
4854 withval="$with_ppl_lib"
4855
4856fi;
4857
29383458
JM
4858case $with_ppl in
4859 no)
4860 ppllibs=
4861 ;;
4862 *)
4863 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4864 pplinc="-I$with_ppl/include $pplinc"
4865 LIBS="$ppllibs $LIBS"
4866 ;;
4867esac
e28c595f
JM
4868if test "x$with_ppl_include" != x; then
4869 pplinc="-I$with_ppl_include $pplinc"
4870fi
4871if test "x$with_ppl_lib" != x; then
29383458 4872 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
e28c595f
JM
4873 LIBS="$ppllibs $LIBS"
4874fi
4875if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
29383458 4876 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '"$with_host_libstdcxx "
e28c595f
JM
4877 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4878 LIBS="$ppllibs $LIBS"
4879fi
4880
4881# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4882if test "${enable_ppl_version_check+set}" = set; then
4883 enableval="$enable_ppl_version_check"
4884 ENABLE_PPL_CHECK=$enableval
4885else
4886 ENABLE_PPL_CHECK=yes
4887fi;
4888
4889if test "${ENABLE_PPL_CHECK}" = "yes"; then
4890 saved_CFLAGS="$CFLAGS"
4891 CFLAGS="$CFLAGS $pplinc $gmpinc"
4892 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4893echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4894 cat >conftest.$ac_ext <<_ACEOF
4895/* confdefs.h. */
4896_ACEOF
4897cat confdefs.h >>conftest.$ac_ext
4898cat >>conftest.$ac_ext <<_ACEOF
4899/* end confdefs.h. */
4900#include "ppl_c.h"
4901int
4902main ()
4903{
4904
4905 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4906 choke me
4907 #endif
4908
4909 ;
4910 return 0;
4911}
4912_ACEOF
4913rm -f conftest.$ac_objext
4914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>conftest.er1
4916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_c_werror_flag"
4923 || test ! -s conftest.err'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 (eval $ac_try) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 echo "$as_me:$LINENO: result: yes" >&5
4936echo "${ECHO_T}yes" >&6
4937else
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
4943fi
4944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945 CFLAGS="$saved_CFLAGS"
4946fi
4947
4948# Flags needed for PPL
4949
4950
4951
4952
4953# Check for CLOOG
4954clooglibs=" -lcloog "
4955clooginc=" -DCLOOG_PPL_BACKEND "
4956
4957
4958# Check whether --with-cloog or --without-cloog was given.
4959if test "${with_cloog+set}" = set; then
4960 withval="$with_cloog"
4961
4962fi;
4963
4964# Check whether --with-cloog_include or --without-cloog_include was given.
4965if test "${with_cloog_include+set}" = set; then
4966 withval="$with_cloog_include"
4967
4968fi;
4969
4970# Check whether --with-cloog_lib or --without-cloog_lib was given.
4971if test "${with_cloog_lib+set}" = set; then
4972 withval="$with_cloog_lib"
4973
4974fi;
4975
29383458
JM
4976case $with_cloog in
4977 no)
4978 clooglibs=
4979 clooginc=
4980 ;;
4981 *)
4982 clooglibs="-L$with_cloog/lib -lcloog"
4983 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4984 LIBS="$clooglibs $LIBS"
4985 ;;
4986esac
e28c595f
JM
4987if test "x$with_cloog_include" != x; then
4988 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4989fi
4990if test "x$with_cloog_lib" != x; then
4991 clooglibs="-L$with_cloog_lib -lcloog"
4992 LIBS="$clooglibs $LIBS"
4993fi
4994if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4995 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
4996 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
4997 LIBS="$clooglibs $LIBS"
4998fi
4999
5000# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5001if test "${enable_cloog_version_check+set}" = set; then
5002 enableval="$enable_cloog_version_check"
5003 ENABLE_CLOOG_CHECK=$enableval
5004else
5005 ENABLE_CLOOG_CHECK=yes
5006fi;
5007
5008if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5009 saved_CFLAGS="$CFLAGS"
5010 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5011 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5012echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5013 cat >conftest.$ac_ext <<_ACEOF
5014/* confdefs.h. */
5015_ACEOF
5016cat confdefs.h >>conftest.$ac_ext
5017cat >>conftest.$ac_ext <<_ACEOF
5018/* end confdefs.h. */
5019#include "cloog/cloog.h"
5020int
5021main ()
5022{
5023
5024 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5025 choke me
5026 #endif
5027
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032rm -f conftest.$ac_objext
5033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6
5056else
5057 echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5062fi
5063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5064 CFLAGS="$saved_CFLAGS"
5065fi
5066
5067# Flags needed for CLOOG
5068
5069
5070
5071
947f426e 5072# By default, C is the only stage 1 language.
9b134994 5073stage1_languages=,c,
1d39f329 5074
9e07f89d
NN
5075# Figure out what language subdirectories are present.
5076# Look if the user specified --enable-languages="..."; if not, use
5077# the environment variable $LANGUAGES if defined. $LANGUAGES might
5078# go away some day.
5079# NB: embedded tabs in this IF block -- do not untabify
5080if test -d ${srcdir}/gcc; then
5081 if test x"${enable_languages+set}" != xset; then
5082 if test x"${LANGUAGES+set}" = xset; then
5083 enable_languages="${LANGUAGES}"
5084 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5085 else
5086 enable_languages=all
5087 fi
5088 else
5089 if test x"${enable_languages}" = x ||
5090 test x"${enable_languages}" = xyes;
5091 then
5092 echo configure.in: --enable-languages needs at least one language argument 1>&2
5093 exit 1
5094 fi
5095 fi
5096 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5097
096f7d00
DE
5098 # 'f95' is the old name for the 'fortran' language. We issue a warning
5099 # and make the substitution.
5100 case ,${enable_languages}, in
5101 *,f95,*)
5102 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5103 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5104 ;;
5105 esac
5106
9e07f89d
NN
5107 # First scan to see if an enabled language requires some other language.
5108 # We assume that a given config-lang.in will list all the language
5109 # front ends it requires, even if some are required indirectly.
5110 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5111 case ${lang_frag} in
5112 ..) ;;
5113 # The odd quoting in the next line works around
5114 # an apparent bug in bash 1.12 on linux.
5115 ${srcdir}/gcc/[*]/config-lang.in) ;;
5116 *)
5117 # From the config-lang.in, get $language, $lang_requires
5118 language=
5119 lang_requires=
5120 . ${lang_frag}
5121 for other in ${lang_requires} ; do
5122 case ,${enable_languages}, in
5123 *,$other,*) ;;
5124 *,all,*) ;;
5125 *,$language,*)
5126 echo " \`$other' language required by \`$language'; enabling" 1>&2
5127 enable_languages="${enable_languages},${other}"
5128 ;;
5129 esac
5130 done
5131 ;;
5132 esac
5133 done
5134
9b134994 5135 new_enable_languages=,c,
9e07f89d 5136 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5137 potential_languages=,c,
9e07f89d
NN
5138
5139 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5140 case ${lang_frag} in
5141 ..) ;;
5142 # The odd quoting in the next line works around
5143 # an apparent bug in bash 1.12 on linux.
5144 ${srcdir}/gcc/[*]/config-lang.in) ;;
5145 *)
c6b750e1 5146 # From the config-lang.in, get $language, $target_libs,
1d39f329 5147 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5148 language=
5149 target_libs=
5150 lang_dirs=
64ce424c 5151 subdir_requires=
9b134994
PB
5152 boot_language=no
5153 build_by_default=yes
9e07f89d 5154 . ${lang_frag}
9b134994
PB
5155 if test x${language} = x; then
5156 echo "${lang_frag} doesn't set \$language." 1>&2
5157 exit 1
5158 fi
5159
5160 case ,${enable_languages}, in
5161 *,${language},*)
9e07f89d
NN
5162 # Language was explicitly selected; include it.
5163 add_this_lang=yes
5164 ;;
9b134994
PB
5165 *,all,*)
5166 # 'all' was selected, select it if it is a default language
5167 add_this_lang=${build_by_default}
9e07f89d
NN
5168 ;;
5169 *)
5170 add_this_lang=no
5171 ;;
5172 esac
4b1cb4fe 5173
64ce424c 5174 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5175 for i in $subdir_requires; do
3d3adb43 5176 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5177 case ,${enable_languages}, in
5178 *,${language},*)
5179 # Specifically requested language; tell them.
c6b750e1
DJ
5180 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5181echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5182 { (exit 1); exit 1; }; }
64ce424c
PB
5183 ;;
5184 *)
5185 # Silently disable.
9b134994 5186 add_this_lang=unsupported
64ce424c
PB
5187 ;;
5188 esac
5189 done
5190
9b134994
PB
5191 # Disable Ada if no preexisting GNAT is available.
5192 case ,${enable_languages},:${language}:${have_gnat} in
5193 *,${language},*:ada:no)
5194 # Specifically requested language; tell them.
c6b750e1
DJ
5195 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5196echo "$as_me: error: GNAT is required to build $language" >&2;}
5197 { (exit 1); exit 1; }; }
9b134994
PB
5198 ;;
5199 *:ada:no)
5200 # Silently disable.
5201 add_this_lang=unsupported
5202 ;;
5203 esac
5204
59f7ec45
HPN
5205 # Disable a language that is unsupported by the target.
5206 case " $unsupported_languages " in
5207 *" $language "*)
9b134994 5208 add_this_lang=unsupported
59f7ec45
HPN
5209 ;;
5210 esac
5211
4b1cb4fe 5212 case $add_this_lang in
9b134994 5213 unsupported)
9e07f89d 5214 # Remove language-dependent dirs.
1d39f329
NN
5215 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5216 ;;
9b134994
PB
5217 no)
5218 # Remove language-dependent dirs; still show language as supported.
5219 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5220 potential_languages="${potential_languages}${language},"
5221 ;;
5222 yes)
5223 new_enable_languages="${new_enable_languages}${language},"
5224 potential_languages="${potential_languages}${language},"
1d39f329
NN
5225 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5226 case ${boot_language} in
5227 yes)
4fa63067 5228 # Add to (comma-separated) list of stage 1 languages.
9b134994 5229 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
5230 ;;
5231 esac
5232 ;;
9e07f89d
NN
5233 esac
5234 ;;
5235 esac
5236 done
5237
9b134994
PB
5238 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5239if test "${enable_stage1_languages+set}" = set; then
5240 enableval="$enable_stage1_languages"
5241 case ,${enable_stage1_languages}, in
5242 ,no,|,,)
5243 # Set it to something that will have no effect in the loop below
5244 enable_stage1_languages=c ;;
5245 ,yes,)
5246 enable_stage1_languages=`echo $new_enable_languages | \
5247 sed -e "s/^,//" -e "s/,$//" ` ;;
5248 *,all,*)
5249 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5250 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5251 esac
5252
5253 # Add "good" languages from enable_stage1_languages to stage1_languages,
5254 # while "bad" languages go in missing_languages. Leave no duplicates.
5255 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5256 case $potential_languages in
5257 *,$i,*)
5258 case $stage1_languages in
5259 *,$i,*) ;;
5260 *) stage1_languages="$stage1_languages$i," ;;
5261 esac ;;
5262 *)
5263 case $missing_languages in
5264 *,$i,*) ;;
5265 *) missing_languages="$missing_languages$i," ;;
5266 esac ;;
5267 esac
5268 done
c6b750e1 5269fi;
9b134994
PB
5270
5271 # Remove leading/trailing commas that were added for simplicity
5272 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5273 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5274 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5275 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5276
9e07f89d 5277 if test "x$missing_languages" != x; then
c6b750e1 5278 { { echo "$as_me:$LINENO: error:
27258dd4 5279The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5280Supported languages are: ${potential_languages}" >&5
5281echo "$as_me: error:
5282The following requested languages could not be built: ${missing_languages}
5283Supported languages are: ${potential_languages}" >&2;}
5284 { (exit 1); exit 1; }; }
9e07f89d 5285 fi
9e07f89d
NN
5286 if test "x$new_enable_languages" != "x$enable_languages"; then
5287 echo The following languages will be built: ${new_enable_languages}
9b134994 5288 enable_languages="$new_enable_languages"
9e07f89d 5289 fi
9b134994 5290
c6b750e1 5291
81ec575a 5292 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5293fi
5294
a6df5a19
PB
5295# Handle --disable-<component> generically.
5296for dir in $configdirs $build_configdirs $target_configdirs ; do
5297 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5298 varname=`echo $dirname | sed -e s/+/_/g`
5299 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5300 noconfigdirs="$noconfigdirs $dir"
5301 fi
5302done
5303
4f0ef2d8
CD
5304# Check for Boehm's garbage collector
5305# Check whether --enable-objc-gc or --disable-objc-gc was given.
5306if test "${enable_objc_gc+set}" = set; then
5307 enableval="$enable_objc_gc"
5308 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5309 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5310 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5311echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5312 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5313 ;;
5314esac
c6b750e1 5315fi;
4f0ef2d8
CD
5316
5317# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5318case ,${enable_languages},:${enable_objc_gc} in
5319 *,objc,*:yes)
4f0ef2d8
CD
5320 # Keep target-boehm-gc if requested for Objective-C.
5321 ;;
4f0ef2d8 5322 *)
d42c4017
DA
5323 # Otherwise remove target-boehm-gc depending on target-libjava.
5324 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5325 noconfigdirs="$noconfigdirs target-boehm-gc"
5326 fi
4f0ef2d8
CD
5327 ;;
5328esac
5329
caeba88f
AL
5330# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5331# $build_configdirs and $target_configdirs.
9e07f89d
NN
5332# If we have the source for $noconfigdirs entries, add them to $notsupp.
5333
5334notsupp=""
5335for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5336 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5337 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5338 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5339 if test -r $srcdir/$dirname/configure ; then
5340 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5341 true
5342 else
5343 notsupp="$notsupp $dir"
5344 fi
5345 fi
5346 fi
caeba88f
AL
5347 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5348 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5349 if test -r $srcdir/$dirname/configure ; then
5350 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5351 true
5352 else
5353 notsupp="$notsupp $dir"
5354 fi
5355 fi
5356 fi
9e07f89d
NN
5357 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5358 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5359 if test -r $srcdir/$dirname/configure ; then
5360 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5361 true
5362 else
5363 notsupp="$notsupp $dir"
5364 fi
5365 fi
5366 fi
5367done
5368
5369# Sometimes the tools are distributed with libiberty but with no other
5370# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5371# Don't let libgcc imply libiberty either.
9e07f89d 5372if test -n "${target_configdirs}" ; then
f86e35b8 5373 libgcc=
9e07f89d
NN
5374 others=
5375 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5376 if test "$i" = "libgcc"; then
5377 libgcc=target-libgcc
5378 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5379 if test -r $srcdir/$i/configure ; then
5380 others=yes;
5381 break;
5382 fi
5383 fi
5384 done
5385 if test -z "${others}" ; then
f86e35b8 5386 target_configdirs=$libgcc
9e07f89d
NN
5387 fi
5388fi
5389
5390# Quietly strip out all directories which aren't configurable in this tree.
5391# This relies on all configurable subdirectories being autoconfiscated, which
5392# is now the case.
6a9cf61e
PB
5393build_configdirs_all="$build_configdirs"
5394build_configdirs=
5395for i in ${build_configdirs_all} ; do
c6b750e1 5396 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5397 if test -f ${srcdir}/$j/configure ; then
5398 build_configdirs="${build_configdirs} $i"
5399 fi
5400done
5401
9e07f89d
NN
5402configdirs_all="$configdirs"
5403configdirs=
5404for i in ${configdirs_all} ; do
5405 if test -f ${srcdir}/$i/configure ; then
5406 configdirs="${configdirs} $i"
5407 fi
5408done
6a9cf61e 5409
9e07f89d
NN
5410target_configdirs_all="$target_configdirs"
5411target_configdirs=
5412for i in ${target_configdirs_all} ; do
c6b750e1 5413 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5414 if test -f ${srcdir}/$j/configure ; then
5415 target_configdirs="${target_configdirs} $i"
5416 fi
5417done
5418
5419# Produce a warning message for the subdirs we can't configure.
5420# This isn't especially interesting in the Cygnus tree, but in the individual
5421# FSF releases, it's important to let people know when their machine isn't
5422# supported by the one or two programs in a package.
5423
5424if test -n "${notsupp}" && test -z "${norecursion}" ; then
5425 # If $appdirs is non-empty, at least one of those directories must still
5426 # be configured, or we error out. (E.g., if the gas release supports a
5427 # specified target in some subdirs but not the gas subdir, we shouldn't
5428 # pretend that all is well.)
5429 if test -n "$appdirs" ; then
5430 for dir in $appdirs ; do
5431 if test -r $dir/Makefile.in ; then
5432 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5433 appdirs=""
5434 break
5435 fi
6a9cf61e 5436 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5437 appdirs=""
5438 break
5439 fi
5440 fi
5441 done
5442 if test -n "$appdirs" ; then
5443 echo "*** This configuration is not supported by this package." 1>&2
5444 exit 1
5445 fi
5446 fi
5447 # Okay, some application will build, or we don't care to check. Still
5448 # notify of subdirs not getting built.
5449 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5450 echo " ${notsupp}" 1>&2
5451 echo " (Any other directories should still work fine.)" 1>&2
5452fi
5453
5454case "$host" in
5455 *msdosdjgpp*)
5456 enable_gdbtk=no ;;
5457esac
5458
18f6b6ee
PB
5459# To find our prefix, in gcc_cv_tool_prefix.
5460
5461# The user is always right.
5462if test "${PATH_SEPARATOR+set}" != set; then
5463 echo "#! /bin/sh" >conf$$.sh
5464 echo "exit 0" >>conf$$.sh
5465 chmod +x conf$$.sh
5466 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5467 PATH_SEPARATOR=';'
5468 else
5469 PATH_SEPARATOR=:
5470 fi
5471 rm -f conf$$.sh
5472fi
5473
5474
5475
5476if test "x$exec_prefix" = xNONE; then
5477 if test "x$prefix" = xNONE; then
5478 gcc_cv_tool_prefix=$ac_default_prefix
5479 else
5480 gcc_cv_tool_prefix=$prefix
5481 fi
5482else
5483 gcc_cv_tool_prefix=$exec_prefix
5484fi
5485
5486# If there is no compiler in the tree, use the PATH only. In any
5487# case, if there is no compiler in the tree nobody should use
5488# AS_FOR_TARGET and LD_FOR_TARGET.
5489if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5490 gcc_version=`cat $srcdir/gcc/BASE-VER`
5491 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5492 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5493 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5494 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5495 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5496 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5497else
5498 gcc_cv_tool_dirs=
5499fi
5500
5501if test x$build = x$target && test -n "$md_exec_prefix"; then
5502 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5503fi
5504
5505
5506
9e07f89d
NN
5507copy_dirs=
5508
c6b750e1 5509
a19b6204
MM
5510# Check whether --with-build-sysroot or --without-build-sysroot was given.
5511if test "${with_build_sysroot+set}" = set; then
5512 withval="$with_build_sysroot"
5513 if test x"$withval" != x ; then
5514 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5515 fi
5516else
5517 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5518fi;
a19b6204
MM
5519
5520
8a6ee3ab
JM
5521
5522# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5523if test "${with_debug_prefix_map+set}" = set; then
5524 withval="$with_debug_prefix_map"
5525 if test x"$withval" != x; then
5526 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5527 for debug_map in $withval; do
5528 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5529 done
5530 fi
5531else
5532 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5533fi;
5534
5535
7f6ef0c0
PB
5536# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5537# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5538# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5539# We want to ensure that TARGET libraries (which we know are built with
5540# gcc) are built with "-O2 -g", so include those options when setting
5541# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5542if test "x$CFLAGS_FOR_TARGET" = x; then
5543 CFLAGS_FOR_TARGET=$CFLAGS
5544 case " $CFLAGS " in
5545 *" -O2 "*) ;;
5546 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5547 esac
5548 case " $CFLAGS " in
5549 *" -g "* | *" -g3 "*) ;;
5550 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5551 esac
5552fi
5553
5554
5555if test "x$CXXFLAGS_FOR_TARGET" = x; then
5556 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5557 case " $CXXFLAGS " in
5558 *" -O2 "*) ;;
5559 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5560 esac
5561 case " $CXXFLAGS " in
5562 *" -g "* | *" -g3 "*) ;;
5563 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5564 esac
5565fi
5566
5567
9e07f89d
NN
5568# Handle --with-headers=XXX. If the value is not "yes", the contents of
5569# the named directory are copied to $(tooldir)/sys-include.
5570if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5571 if test x${is_cross_compiler} = xno ; then
5572 echo 1>&2 '***' --with-headers is only supported when cross compiling
5573 exit 1
5574 fi
5575 if test x"${with_headers}" != xyes ; then
18f6b6ee 5576 x=${gcc_cv_tool_prefix}
c6b750e1 5577 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5578 fi
5579fi
5580
5581# Handle --with-libs=XXX. If the value is not "yes", the contents of
5582# the name directories are copied to $(tooldir)/lib. Multiple directories
5583# are permitted.
5584if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5585 if test x${is_cross_compiler} = xno ; then
5586 echo 1>&2 '***' --with-libs is only supported when cross compiling
5587 exit 1
5588 fi
5589 if test x"${with_libs}" != xyes ; then
5590 # Copy the libraries in reverse order, so that files in the first named
5591 # library override files in subsequent libraries.
18f6b6ee 5592 x=${gcc_cv_tool_prefix}
9e07f89d 5593 for l in ${with_libs}; do
c6b750e1 5594 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5595 done
5596 fi
5597fi
5598
2429c060
PB
5599# Set with_gnu_as and with_gnu_ld as appropriate.
5600#
5601# This is done by determining whether or not the appropriate directory
5602# is available, and by checking whether or not specific configurations
5603# have requested that this magic not happen.
c6b750e1
DJ
5604#
5605# The command line options always override the explicit settings in
2429c060
PB
5606# configure.in, and the settings in configure.in override this magic.
5607#
c6b750e1 5608# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5609# want to do that, then you should use the --without-gnu-as and
5610# --without-gnu-ld options for the configure script.
5611
5612if test x${use_gnu_as} = x &&
5613 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5614 with_gnu_as=yes
5615 extra_host_args="$extra_host_args --with-gnu-as"
5616fi
5617
5618if test x${use_gnu_ld} = x &&
93f9b408 5619 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5620 with_gnu_ld=yes
5621 extra_host_args="$extra_host_args --with-gnu-ld"
5622fi
5623
5624# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5625# can detect this case.
5626
5627if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5628 with_newlib=yes
5629 extra_host_args="$extra_host_args --with-newlib"
5630fi
5631
9e07f89d
NN
5632# Handle ${copy_dirs}
5633set fnord ${copy_dirs}
5634shift
5635while test $# != 0 ; do
5636 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5637 :
5638 else
5639 echo Copying $1 to $2
5640
5641 # Use the install script to create the directory and all required
5642 # parent directories.
5643 if test -d $2 ; then
5644 :
5645 else
5646 echo >config.temp
5647 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5648 fi
5649
5650 # Copy the directory, assuming we have tar.
5651 # FIXME: Should we use B in the second tar? Not all systems support it.
5652 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5653
5654 # It is the responsibility of the user to correctly adjust all
5655 # symlinks. If somebody can figure out how to handle them correctly
5656 # here, feel free to add the code.
5657
5658 echo $1 > $2/COPIED
5659 fi
5660 shift; shift
5661done
5662
2429c060
PB
5663# Determine a target-dependent exec_prefix that the installed
5664# gcc will search in. Keep this list sorted by triplet, with
5665# the *-*-osname triplets last.
5666md_exec_prefix=
5667case "${target}" in
5668 alpha*-*-*vms*)
5669 md_exec_prefix=/gnu/lib/gcc-lib
5670 ;;
521ec477 5671 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5672 md_exec_prefix=/dev/env/DJDIR/bin
5673 ;;
521ec477 5674 i[34567]86-*-sco3.2v5*)
2429c060
PB
5675 if test $with_gnu_as = yes; then
5676 md_exec_prefix=/usr/gnu/bin
5677 else
5678 md_exec_prefix=/usr/ccs/bin/elf
5679 fi
5680 ;;
5681
5682 mn10300-*-* | \
5683 powerpc-*-chorusos* | \
5684 powerpc*-*-eabi* | \
5685 powerpc*-*-sysv* | \
5686 powerpc*-*-kaos* | \
5687 s390x-ibm-tpf*)
5688 md_exec_prefix=/usr/ccs/bin
5689 ;;
5690 sparc64-*-elf*)
5691 ;;
5692 v850*-*-*)
5693 md_exec_prefix=/usr/ccs/bin
5694 ;;
8b66833e 5695 xtensa*-*-elf*)
2429c060
PB
5696 ;;
5697
5698 *-*-beos* | \
5699 *-*-elf* | \
5700 *-*-hpux* | \
5701 *-*-netware* | \
5702 *-*-nto-qnx* | \
5703 *-*-rtems* | \
5704 *-*-solaris2* | \
521ec477 5705 *-*-sysv[45]* | \
2429c060
PB
5706 *-*-vxworks* | \
5707 *-wrs-windiss)
5708 md_exec_prefix=/usr/ccs/bin
5709 ;;
5710esac
5711
a0da8069
NN
5712extra_arflags_for_target=
5713extra_nmflags_for_target=
5714extra_ranlibflags_for_target=
5715target_makefile_frag=/dev/null
5716case "${target}" in
4e206d7e
DB
5717 mep*-*-*)
5718 target_makefile_frag="config/mt-mep"
5719 ;;
77d7106f
AM
5720 spu-*-*)
5721 target_makefile_frag="config/mt-spu"
5722 ;;
429acdec
RS
5723 mips*-sde-elf*)
5724 target_makefile_frag="config/mt-sde"
5725 ;;
f3b1e08e
RS
5726 mipsisa*-*-elfoabi*)
5727 target_makefile_frag="config/mt-mips-elfoabi"
5728 ;;
e7c8859c
RS
5729 mips*-*-*linux* | mips*-*-gnu*)
5730 target_makefile_frag="config/mt-mips-gnu"
5731 ;;
2a3124ca 5732 *-*-netware*)
a0da8069
NN
5733 target_makefile_frag="config/mt-netware"
5734 ;;
29383458 5735 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 5736 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5737 ;;
5738 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5739 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5740 # commands to handle both 32-bit and 64-bit objects. These flags are
5741 # harmless if we're using GNU nm or ar.
5742 extra_arflags_for_target=" -X32_64"
5743 extra_nmflags_for_target=" -B -X32_64"
5744 ;;
5745 *-*-darwin*)
5746 # ranlib from Darwin requires the -c flag to look at common symbols.
5747 extra_ranlibflags_for_target=" -c"
5748 ;;
5749 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5750 target_makefile_frag="config/mt-wince"
5751 ;;
5752esac
5753
5754alphaieee_frag=/dev/null
5755case $target in
5756 alpha*-*-*)
5757 # This just makes sure to use the -mieee option to build target libs.
5758 # This should probably be set individually by each library.
5759 alphaieee_frag="config/mt-alphaieee"
5760 ;;
5761esac
5762
5763# If --enable-target-optspace always use -Os instead of -O2 to build
5764# the target libraries, similarly if it is not specified, use -Os
5765# on selected platforms.
5766ospace_frag=/dev/null
5767case "${enable_target_optspace}:${target}" in
5768 yes:*)
5769 ospace_frag="config/mt-ospace"
5770 ;;
5771 :d30v-*)
5772 ospace_frag="config/mt-d30v"
5773 ;;
5774 :m32r-* | :d10v-* | :fr30-*)
5775 ospace_frag="config/mt-ospace"
5776 ;;
5777 no:* | :*)
5778 ;;
5779 *)
5780 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5781 ;;
5782esac
5783
a0da8069
NN
5784# Default to using --with-stabs for certain targets.
5785if test x${with_stabs} = x ; then
5786 case "${target}" in
e31d1ea3 5787 mips*-*-irix[56]*)
a0da8069
NN
5788 ;;
5789 mips*-*-* | alpha*-*-osf*)
5790 with_stabs=yes;
5791 extra_host_args="${extra_host_args} --with-stabs"
5792 ;;
5793 esac
5794fi
5795
5796# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5797# them automatically.
5798case "${host}" in
c6b750e1 5799 hppa*64*-*-hpux11*)
a0da8069
NN
5800 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5801 ;;
5802esac
5803
a0da8069
NN
5804# Some systems (e.g., one of the i386-aix systems the gas testers are
5805# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5806tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5807build_tooldir=${tooldir}
5808
a0da8069
NN
5809# Create a .gdbinit file which runs the one in srcdir
5810# and tells GDB to look there for source files.
5811
5812if test -r ${srcdir}/.gdbinit ; then
5813 case ${srcdir} in
5814 .) ;;
5815 *) cat > ./.gdbinit <<EOF
5816# ${NO_EDIT}
5817dir ${srcdir}
5818dir .
5819source ${srcdir}/.gdbinit
5820EOF
5821 ;;
5822 esac
5823fi
5824
a0da8069
NN
5825# Make sure that the compiler is able to generate an executable. If it
5826# can't, we are probably in trouble. We don't care whether we can run the
5827# executable--we might be using a cross compiler--we only care whether it
5828# can be created. At this point the main configure script has set CC.
5829we_are_ok=no
5830echo "int main () { return 0; }" > conftest.c
5831${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5832if test $? = 0 ; then
5833 if test -s conftest || test -s conftest.exe ; then
5834 we_are_ok=yes
5835 fi
c6b750e1 5836fi
a0da8069
NN
5837case $we_are_ok in
5838 no)
5839 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5840 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5841 rm -f conftest*
5842 exit 1
5843 ;;
5844esac
5845rm -f conftest*
5846
5847# The Solaris /usr/ucb/cc compiler does not appear to work.
5848case "${host}" in
5849 sparc-sun-solaris2*)
5850 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5851 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5852 could_use=
5853 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5854 if test -d /opt/cygnus/bin ; then
5855 if test "$could_use" = "" ; then
5856 could_use="/opt/cygnus/bin"
5857 else
5858 could_use="$could_use or /opt/cygnus/bin"
5859 fi
5860 fi
5861 if test "$could_use" = "" ; then
5862 echo "Warning: compilation may fail because you're using"
5863 echo "/usr/ucb/cc. You should change your PATH or CC "
5864 echo "variable and rerun configure."
5865 else
5866 echo "Warning: compilation may fail because you're using"
5867 echo "/usr/ucb/cc, when you should use the C compiler from"
5868 echo "$could_use. You should change your"
5869 echo "PATH or CC variable and rerun configure."
5870 fi
5871 fi
5872 ;;
5873esac
5874
3bbd2f8f 5875# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
5876case "${host}" in
5877 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5878 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 5879 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
5880 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5881esac
5882
3bbd2f8f 5883# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
5884# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5885# built executables to PATH.
3bbd2f8f
AL
5886if test "$RPATH_ENVVAR" = PATH; then
5887 GCC_SHLIB_SUBDIR=/shlib
5888else
5889 GCC_SHLIB_SUBDIR=
5890fi
5891
a0da8069
NN
5892# Record target_configdirs and the configure arguments for target and
5893# build configuration in Makefile.
5894target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5895build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5896
a0da8069
NN
5897# Determine whether gdb needs tk/tcl or not.
5898# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5899# and in that case we want gdb to be built without tk. Ugh!
5900# In fact I believe gdb is the *only* package directly dependent on tk,
5901# so we should be able to put the 'maybe's in unconditionally and
5902# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5903# 100% sure that that's safe though.
c180f501 5904
675c6968 5905gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5906case "$enable_gdbtk" in
5907 no)
5908 GDB_TK="" ;;
c180f501
AC
5909 yes)
5910 GDB_TK="${gdb_tk}" ;;
a0da8069 5911 *)
c180f501
AC
5912 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5913 # distro. Eventually someone will fix this and move Insight, nee
5914 # gdbtk to a separate directory.
5915 if test -d ${srcdir}/gdb/gdbtk ; then
5916 GDB_TK="${gdb_tk}"
5917 else
5918 GDB_TK=""
5919 fi
5920 ;;
a0da8069 5921esac
907be67c
DJ
5922CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5923INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5924
6bd3dfaa 5925# Strip out unwanted targets.
dd12c3a8
NN
5926
5927# While at that, we remove Makefiles if we were started for recursive
5928# configuration, so that the top-level Makefile reconfigures them,
5929# like we used to do when configure itself was recursive.
dd12c3a8 5930
6bd3dfaa
PB
5931# Loop over modules. $extrasub must be used with care, limiting as
5932# much as possible the usage of range addresses. That's because autoconf
5933# splits the sed script to overcome limits in the number of commands,
5934# and relying on carefully-timed sed passes may turn out to be very hard
5935# to maintain later. In this particular case, you just have to be careful
5936# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5937
319cab08
PB
5938# Check whether --enable-bootstrap or --disable-bootstrap was given.
5939if test "${enable_bootstrap+set}" = set; then
5940 enableval="$enable_bootstrap"
c6b750e1 5941
319cab08 5942else
9cb3fa6f 5943 enable_bootstrap=default
c6b750e1 5944fi;
319cab08 5945
9cb3fa6f
PB
5946# Issue errors and warnings for invalid/strange bootstrap combinations.
5947case "$configdirs" in
5948 *gcc*) have_compiler=yes ;;
5949 *) have_compiler=no ;;
5950esac
5951
5952case "$have_compiler:$host:$target:$enable_bootstrap" in
5953 *:*:*:no) ;;
5954
0aed8855 5955 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5956 # and we are in a native configuration.
5957 yes:$build:$build:default)
0aed8855 5958 enable_bootstrap=yes ;;
9cb3fa6f
PB
5959
5960 *:*:*:default)
5961 enable_bootstrap=no ;;
5962
5963 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5964 yes:$build:$build:yes)
9cb3fa6f
PB
5965 ;;
5966
5967 # Other configurations, but we have a compiler. Assume the user knows
5968 # what he's doing.
80911fe1 5969 yes:*:*:yes)
c6b750e1
DJ
5970 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5971echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5972 ;;
5973
5974 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5975 no:*:*:yes)
c6b750e1
DJ
5976 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5977echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5978 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5979
5980 # Fail if wrong command line
5981 *)
c6b750e1
DJ
5982 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5983echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5984 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5985 ;;
5986esac
5987
5988# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5989case "$enable_bootstrap" in
5990 yes)
498d4a71 5991 bootstrap_suffix=bootstrap ;;
319cab08 5992 no)
498d4a71 5993 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5994esac
5995
6a9cf61e 5996for module in ${build_configdirs} ; do
498d4a71
CF
5997 if test -z "${no_recursion}" \
5998 && test -f ${build_subdir}/${module}/Makefile; then
5999 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6000 rm -f ${build_subdir}/${module}/Makefile
6001 fi
6002 extrasub="$extrasub
6003/^@if build-$module\$/d
6004/^@endif build-$module\$/d
6005/^@if build-$module-$bootstrap_suffix\$/d
6006/^@endif build-$module-$bootstrap_suffix\$/d"
6007done
6008for module in ${configdirs} ; do
80911fe1 6009 if test -z "${no_recursion}"; then
8cf39b1b 6010 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6011 if test -f ${file}; then
6012 echo 1>&2 "*** removing ${file} to force reconfigure"
6013 rm -f ${file}
6014 fi
6015 done
498d4a71
CF
6016 fi
6017 extrasub="$extrasub
6018/^@if $module\$/d
6019/^@endif $module\$/d
6020/^@if $module-$bootstrap_suffix\$/d
6021/^@endif $module-$bootstrap_suffix\$/d"
6022done
6023for module in ${target_configdirs} ; do
6024 if test -z "${no_recursion}" \
6025 && test -f ${target_subdir}/${module}/Makefile; then
6026 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6027 rm -f ${target_subdir}/${module}/Makefile
6028 fi
6029 extrasub="$extrasub
6030/^@if target-$module\$/d
6031/^@endif target-$module\$/d
6032/^@if target-$module-$bootstrap_suffix\$/d
6033/^@endif target-$module-$bootstrap_suffix\$/d"
6034done
6035
6bd3dfaa
PB
6036extrasub="$extrasub
6037/^@if /,/^@endif /d"
a0da8069
NN
6038
6039# Create the serialization dependencies. This uses a temporary file.
6040
e6bfb94a
AO
6041# Check whether --enable-serial-configure or --disable-serial-configure was given.
6042if test "${enable_serial_configure+set}" = set; then
6043 enableval="$enable_serial_configure"
e6bfb94a 6044
c6b750e1 6045fi;
e6bfb94a 6046
1047cb91
DD
6047case ${enable_serial_configure} in
6048 yes)
6049 enable_serial_build_configure=yes
6050 enable_serial_host_configure=yes
6051 enable_serial_target_configure=yes
6052 ;;
6053esac
6054
a0da8069
NN
6055# These force 'configure's to be done one at a time, to avoid problems
6056# with contention over a shared config.cache.
6057rm -f serdep.tmp
e6bfb94a 6058echo '# serdep.tmp' > serdep.tmp
a0da8069 6059olditem=
1047cb91 6060test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6061for item in ${build_configdirs} ; do
6062 case ${olditem} in
6063 "") ;;
e6bfb94a 6064 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6065 esac
6066 olditem=${item}
6067done
6068olditem=
1047cb91 6069test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6070for item in ${configdirs} ; do
6071 case ${olditem} in
6072 "") ;;
e6bfb94a 6073 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6074 esac
6075 olditem=${item}
6076done
6077olditem=
1047cb91 6078test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6079for item in ${target_configdirs} ; do
6080 case ${olditem} in
6081 "") ;;
e6bfb94a 6082 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6083 esac
6084 olditem=${item}
6085done
6086serialization_dependencies=serdep.tmp
6087
6088
e6bfb94a 6089# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6090# target, nonopt, and variable assignments. These are the ones we
6091# might not want to pass down to subconfigures. Also strip
6092# program-prefix, program-suffix, and program-transform-name, so that
6093# we can pass down a consistent program-transform-name.
6094baseargs=
6095keep_next=no
6096skip_next=no
6097eval "set -- $ac_configure_args"
18f6b6ee
PB
6098for ac_arg
6099do
c6b750e1
DJ
6100 if test X"$skip_next" = X"yes"; then
6101 skip_next=no
6102 continue
6103 fi
6104 if test X"$keep_next" = X"yes"; then
6105 case $ac_arg in
6106 *\'*)
6107 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6108 esac
6109 baseargs="$baseargs '$ac_arg'"
6110 keep_next=no
6111 continue
6112 fi
6113
6114 # Handle separated arguments. Based on the logic generated by
6115 # autoconf 2.59.
6116 case $ac_arg in
6117 *=* | --config-cache | -C | -disable-* | --disable-* \
6118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6120 | -with-* | --with-* | -without-* | --without-* | --x)
6121 separate_arg=no
6122 ;;
6123 -*)
6124 separate_arg=yes
6125 ;;
6126 *)
6127 separate_arg=no
6128 ;;
6129 esac
6130
6131 case "$ac_arg" in
6132 --no*)
6133 continue
6134 ;;
6135 --c* | \
6136 --sr* | \
6137 --ho* | \
6138 --bu* | \
6139 --t* | \
6140 --program-* | \
6141 -cache_file* | \
6142 -srcdir* | \
6143 -host* | \
6144 -build* | \
6145 -target* | \
6146 -program-prefix* | \
6147 -program-suffix* | \
6148 -program-transform-name* )
6149 skip_next=$separate_arg
6150 continue
6151 ;;
6152 -*)
6153 # An option. Add it.
6154 case $ac_arg in
6155 *\'*)
6156 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6157 esac
6158 baseargs="$baseargs '$ac_arg'"
6159 keep_next=$separate_arg
6160 ;;
6161 *)
6162 # Either a variable assignment, or a nonopt (triplet). Don't
6163 # pass it down; let the Makefile handle this.
6164 continue
6165 ;;
6166 esac
6167done
6168# Remove the initial space we just introduced and, as these will be
6169# expanded by make, quote '$'.
6170baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6171
f27d4f92
DJ
6172# Add in --program-transform-name, after --program-prefix and
6173# --program-suffix have been applied to it. Autoconf has already
6174# doubled dollar signs and backslashes in program_transform_name; we want
6175# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6176# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6177# Also, because we want to override the logic in subdir configure scripts to
6178# choose program_transform_name, replace any s,x,x, with s,y,y,.
6179sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6180${program_transform_name}
6181EOF_SED
6182gcc_transform_name=`cat conftestsed.out`
6183rm -f conftestsed.out
6184baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6185if test "$silent" = yes; then
6186 baseargs="$baseargs --silent"
6187fi
f27d4f92 6188
a0da8069
NN
6189# For the build-side libraries, we just need to pretend we're native,
6190# and not use the same cache file. Multilibs are neither needed nor
6191# desired.
4b900473 6192build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6193
6194# For host modules, accept cache file option, or specification as blank.
6195case "${cache_file}" in
6196"") # empty
6197 cache_file_option="" ;;
6198/* | [A-Za-z]:[\\/]* ) # absolute path
6199 cache_file_option="--cache-file=${cache_file}" ;;
6200*) # relative path
6201 cache_file_option="--cache-file=../${cache_file}" ;;
6202esac
6203
82252c06
NN
6204# Host dirs don't like to share a cache file either, horribly enough.
6205# This seems to be due to autoconf 2.5x stupidity.
4b900473 6206host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6207
6208target_configargs=${baseargs}
6209
6210# Passing a --with-cross-host argument lets the target libraries know
6211# whether they are being built with a cross-compiler or being built
6212# native. However, it would be better to use other mechanisms to make the
6213# sorts of decisions they want to make on this basis. Please consider
6214# this option to be deprecated. FIXME.
6215if test x${is_cross_compiler} = xyes ; then
c6b750e1 6216 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6217fi
6218
6219# Default to --enable-multilib.
6220if test x${enable_multilib} = x ; then
6221 target_configargs="--enable-multilib ${target_configargs}"
6222fi
6223
6224# Pass --with-newlib if appropriate. Note that target_configdirs has
6225# changed from the earlier setting of with_newlib.
6226if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6227 target_configargs="--with-newlib ${target_configargs}"
6228fi
6229
95036d20
NN
6230# Different target subdirs use different values of certain variables
6231# (notably CXX). Worse, multilibs use *lots* of different values.
6232# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6233# it doesn't automatically accept command-line overrides of them.
6234# This means it's not safe for target subdirs to share a cache file,
6235# which is disgusting, but there you have it. Hopefully this can be
6236# fixed in future. It's still worthwhile to use a cache file for each
6237# directory. I think.
6238
ae380b45
MS
6239# Pass the appropriate --build, --host, --target and --cache-file arguments.
6240# We need to pass --target, as newer autoconf's requires consistency
6241# for target_alias and gcc doesn't manage it consistently.
4b900473 6242target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6243
a0da8069
NN
6244FLAGS_FOR_TARGET=
6245case " $target_configdirs " in
6246 *" newlib "*)
6247 case " $target_configargs " in
6248 *" --with-newlib "*)
6249 case "$target" in
6250 *-cygwin*)
564b43e5 6251 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
6252 esac
6253
6254 # If we're not building GCC, don't discard standard headers.
6255 if test -d ${srcdir}/gcc; then
6256 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6257
6258 if test "${build}" != "${host}"; then
6259 # On Canadian crosses, CC_FOR_TARGET will have already been set
6260 # by `configure', so we won't have an opportunity to add -Bgcc/
6261 # to it. This is right: we don't want to search that directory
6262 # for binaries, but we want the header files in there, so add
6263 # them explicitly.
b00612cc 6264 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6265
6266 # Someone might think of using the pre-installed headers on
6267 # Canadian crosses, in case the installed compiler is not fully
6268 # compatible with the compiler being built. In this case, it
6269 # would be better to flag an error than risking having
6270 # incompatible object files being constructed. We can't
6271 # guarantee that an error will be flagged, but let's hope the
6272 # compiler will do it, when presented with incompatible header
6273 # files.
6274 fi
6275 fi
6276
6277 case "${target}-${is_cross_compiler}" in
ec11bdc6 6278 i[3456789]86-*-linux*-no)
a0da8069
NN
6279 # Here host == target, so we don't need to build gcc,
6280 # so we don't want to discard standard headers.
6281 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6282 ;;
6283 *)
6284 # If we're building newlib, use its generic headers last, but search
6285 # for any libc-related directories first (so make it the last -B
6286 # switch).
6287 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
6288
6289 # If we're building libgloss, find the startup file, simulator library
6290 # and linker script.
6291 case " $target_configdirs " in
6292 *" libgloss "*)
6293 # Look for startup file, simulator library and maybe linker script.
6294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6295 # Look for libnosys.a in case the target needs it.
6296 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6297 # Most targets have the linker script in the source directory.
6298 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6299 ;;
6300 esac
a0da8069
NN
6301 ;;
6302 esac
6303 ;;
6304 esac
6305 ;;
6306esac
45055374
CV
6307case "$target" in
6308*-mingw*)
6309 # Can't be handled as Cygwin above since Mingw does not use newlib.
6310 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' ;;
6311esac
a0da8069 6312
5fbad20a
DD
6313# Allow the user to override the flags for
6314# our build compiler if desired.
c66487f8
NC
6315if test x"${build}" = x"${host}" ; then
6316 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6317 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6318 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6319fi
5fbad20a 6320
a0da8069
NN
6321# On Canadian crosses, we'll be searching the right directories for
6322# the previously-installed cross compiler, so don't bother to add
6323# flags for directories within the install tree of the compiler
6324# being built; programs in there won't even run.
6325if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6326 # Search for pre-installed headers if nothing else fits.
bba45b8b 6327 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
6328fi
6329
6330if test "x${use_gnu_ld}" = x &&
6331 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6332 # Arrange for us to find uninstalled linker scripts.
b00612cc 6333 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6334fi
6335
a481dbb7
DD
6336# Search for other target-specific linker scripts and such.
6337case "${target}" in
4e206d7e
DB
6338 mep*)
6339 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6340 ;;
6341esac
6342
a0da8069 6343# Makefile fragments.
3e707e94
PB
6344for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6345do
6346 eval fragval=\$$frag
6347 if test $fragval != /dev/null; then
6348 eval $frag=${srcdir}/$fragval
6349 fi
6350done
a0da8069
NN
6351
6352
6353
6354
6355
6356# Miscellanea: directories, flags, etc.
6357
6358
6359
6360
6361
6362
6363
3bbd2f8f 6364
6a9cf61e 6365# Build module lists & subconfigure args.
a0da8069
NN
6366
6367
6368
be01d343
PB
6369# Host module lists & subconfigure args.
6370
6371
6372
6373# Target module lists & subconfigure args.
6374
6375
6376
6377# Build tools.
6378
6379
6380
1576798e
PB
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
be01d343
PB
6395# Generate default definitions for YACC, M4, LEX and other programs that run
6396# on the build machine. These are used if the Makefile can't locate these
6397# programs in objdir.
6398MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6399
6400for ac_prog in 'bison -y' byacc yacc
6401do
c6b750e1 6402 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6403set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6404echo "$as_me:$LINENO: checking for $ac_word" >&5
6405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6406if test "${ac_cv_prog_YACC+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6408else
6409 if test -n "$YACC"; then
6410 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6411else
c6b750e1
DJ
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419 ac_cv_prog_YACC="$ac_prog"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423done
6424done
6425
be01d343
PB
6426fi
6427fi
c6b750e1 6428YACC=$ac_cv_prog_YACC
be01d343 6429if test -n "$YACC"; then
c6b750e1
DJ
6430 echo "$as_me:$LINENO: result: $YACC" >&5
6431echo "${ECHO_T}$YACC" >&6
be01d343 6432else
c6b750e1
DJ
6433 echo "$as_me:$LINENO: result: no" >&5
6434echo "${ECHO_T}no" >&6
be01d343
PB
6435fi
6436
c6b750e1 6437 test -n "$YACC" && break
be01d343
PB
6438done
6439test -n "$YACC" || YACC="$MISSING bison -y"
6440
6441case " $build_configdirs " in
6442 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6443 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6444esac
6445
6446for ac_prog in bison
6447do
c6b750e1 6448 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6449set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6450echo "$as_me:$LINENO: checking for $ac_word" >&5
6451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6452if test "${ac_cv_prog_BISON+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6454else
6455 if test -n "$BISON"; then
6456 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6457else
c6b750e1
DJ
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_BISON="$ac_prog"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469done
6470done
6471
be01d343
PB
6472fi
6473fi
c6b750e1 6474BISON=$ac_cv_prog_BISON
be01d343 6475if test -n "$BISON"; then
c6b750e1
DJ
6476 echo "$as_me:$LINENO: result: $BISON" >&5
6477echo "${ECHO_T}$BISON" >&6
be01d343 6478else
c6b750e1
DJ
6479 echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
be01d343
PB
6481fi
6482
c6b750e1 6483 test -n "$BISON" && break
be01d343
PB
6484done
6485test -n "$BISON" || BISON="$MISSING bison"
6486
6487case " $build_configdirs " in
6488 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6489esac
6490
6491for ac_prog in gm4 gnum4 m4
6492do
c6b750e1 6493 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6494set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6495echo "$as_me:$LINENO: checking for $ac_word" >&5
6496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6497if test "${ac_cv_prog_M4+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6499else
6500 if test -n "$M4"; then
6501 ac_cv_prog_M4="$M4" # Let the user override the test.
6502else
c6b750e1
DJ
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_M4="$ac_prog"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515done
6516
be01d343
PB
6517fi
6518fi
c6b750e1 6519M4=$ac_cv_prog_M4
be01d343 6520if test -n "$M4"; then
c6b750e1
DJ
6521 echo "$as_me:$LINENO: result: $M4" >&5
6522echo "${ECHO_T}$M4" >&6
be01d343 6523else
c6b750e1
DJ
6524 echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6
be01d343
PB
6526fi
6527
c6b750e1 6528 test -n "$M4" && break
be01d343
PB
6529done
6530test -n "$M4" || M4="$MISSING m4"
6531
6532case " $build_configdirs " in
6533 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6534esac
6535
6536for ac_prog in flex lex
6537do
c6b750e1 6538 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6539set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6540echo "$as_me:$LINENO: checking for $ac_word" >&5
6541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6542if test "${ac_cv_prog_LEX+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6544else
6545 if test -n "$LEX"; then
6546 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6547else
c6b750e1
DJ
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_LEX="$ac_prog"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559done
6560done
6561
be01d343
PB
6562fi
6563fi
c6b750e1 6564LEX=$ac_cv_prog_LEX
be01d343 6565if test -n "$LEX"; then
c6b750e1
DJ
6566 echo "$as_me:$LINENO: result: $LEX" >&5
6567echo "${ECHO_T}$LEX" >&6
be01d343 6568else
c6b750e1
DJ
6569 echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6
be01d343
PB
6571fi
6572
c6b750e1 6573 test -n "$LEX" && break
be01d343
PB
6574done
6575test -n "$LEX" || LEX="$MISSING flex"
6576
6577case " $build_configdirs " in
6578 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6579 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6580esac
6581
6582for ac_prog in flex
6583do
c6b750e1 6584 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6585set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6586echo "$as_me:$LINENO: checking for $ac_word" >&5
6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6588if test "${ac_cv_prog_FLEX+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6590else
6591 if test -n "$FLEX"; then
6592 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6593else
c6b750e1
DJ
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_FLEX="$ac_prog"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605done
6606done
6607
be01d343
PB
6608fi
6609fi
c6b750e1 6610FLEX=$ac_cv_prog_FLEX
be01d343 6611if test -n "$FLEX"; then
c6b750e1
DJ
6612 echo "$as_me:$LINENO: result: $FLEX" >&5
6613echo "${ECHO_T}$FLEX" >&6
be01d343 6614else
c6b750e1
DJ
6615 echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6
be01d343
PB
6617fi
6618
c6b750e1 6619 test -n "$FLEX" && break
be01d343
PB
6620done
6621test -n "$FLEX" || FLEX="$MISSING flex"
6622
6623case " $build_configdirs " in
6624 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6625esac
6626
6627for ac_prog in makeinfo
6628do
c6b750e1 6629 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6630set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6631echo "$as_me:$LINENO: checking for $ac_word" >&5
6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6635else
6636 if test -n "$MAKEINFO"; then
6637 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6638else
c6b750e1
DJ
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_MAKEINFO="$ac_prog"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650done
6651done
6652
be01d343
PB
6653fi
6654fi
c6b750e1 6655MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6656if test -n "$MAKEINFO"; then
c6b750e1
DJ
6657 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6658echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6659else
c6b750e1
DJ
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
be01d343
PB
6662fi
6663
c6b750e1 6664 test -n "$MAKEINFO" && break
be01d343
PB
6665done
6666test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6667
6668case " $build_configdirs " in
6669 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6670 *)
6671
10ad8ef3 6672 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
6673 # higher, else we use the "missing" dummy.
6674 if ${MAKEINFO} --version \
10ad8ef3 6675 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6676 :
6677 else
6678 MAKEINFO="$MISSING makeinfo"
6679 fi
6680 ;;
6681
6682esac
a0da8069 6683
be01d343 6684# FIXME: expect and dejagnu may become build tools?
a0da8069 6685
be01d343
PB
6686for ac_prog in expect
6687do
c6b750e1 6688 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6689set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6690echo "$as_me:$LINENO: checking for $ac_word" >&5
6691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6692if test "${ac_cv_prog_EXPECT+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6694else
6695 if test -n "$EXPECT"; then
6696 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6697else
c6b750e1
DJ
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705 ac_cv_prog_EXPECT="$ac_prog"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710done
6711
be01d343
PB
6712fi
6713fi
c6b750e1 6714EXPECT=$ac_cv_prog_EXPECT
be01d343 6715if test -n "$EXPECT"; then
c6b750e1
DJ
6716 echo "$as_me:$LINENO: result: $EXPECT" >&5
6717echo "${ECHO_T}$EXPECT" >&6
be01d343 6718else
c6b750e1
DJ
6719 echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6
be01d343 6721fi
a0da8069 6722
c6b750e1 6723 test -n "$EXPECT" && break
be01d343
PB
6724done
6725test -n "$EXPECT" || EXPECT="expect"
a0da8069 6726
be01d343
PB
6727case " $configdirs " in
6728 *" expect "*)
6729 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6730 ;;
6731esac
a0da8069 6732
be01d343
PB
6733for ac_prog in runtest
6734do
c6b750e1 6735 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6736set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6737echo "$as_me:$LINENO: checking for $ac_word" >&5
6738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6739if test "${ac_cv_prog_RUNTEST+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6741else
6742 if test -n "$RUNTEST"; then
6743 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6744else
c6b750e1
DJ
6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_RUNTEST="$ac_prog"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756done
6757done
6758
be01d343
PB
6759fi
6760fi
c6b750e1 6761RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6762if test -n "$RUNTEST"; then
c6b750e1
DJ
6763 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6764echo "${ECHO_T}$RUNTEST" >&6
be01d343 6765else
c6b750e1
DJ
6766 echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
be01d343 6768fi
a0da8069 6769
c6b750e1 6770 test -n "$RUNTEST" && break
be01d343
PB
6771done
6772test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6773
be01d343
PB
6774case " $configdirs " in
6775 *" dejagnu "*)
6b89cc21 6776 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6777 ;;
6778esac
a0da8069
NN
6779
6780
a0da8069 6781# Host tools.
859789af
AC
6782ncn_tool_prefix=
6783test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6784ncn_target_tool_prefix=
6785test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6786
9a819804
AO
6787
6788
6789if test -n "$AR"; then
6790 ac_cv_prog_AR=$AR
6791elif test -n "$ac_cv_prog_AR"; then
6792 AR=$ac_cv_prog_AR
6793fi
6794
6795if test -n "$ac_cv_prog_AR"; then
6796 for ncn_progname in ar; do
6797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6798set dummy ${ncn_progname}; ac_word=$2
6799echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6801if test "${ac_cv_prog_AR+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804 if test -n "$AR"; then
6805 ac_cv_prog_AR="$AR" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_AR="${ncn_progname}"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819done
6820
6821fi
6822fi
6823AR=$ac_cv_prog_AR
6824if test -n "$AR"; then
6825 echo "$as_me:$LINENO: result: $AR" >&5
6826echo "${ECHO_T}$AR" >&6
6827else
6828 echo "$as_me:$LINENO: result: no" >&5
6829echo "${ECHO_T}no" >&6
6830fi
6831
6832 done
6833fi
6834
6835for ncn_progname in ar; do
05cbd757
PB
6836 if test -n "$ncn_tool_prefix"; then
6837 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6838set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6839echo "$as_me:$LINENO: checking for $ac_word" >&5
6840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6841if test "${ac_cv_prog_AR+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6843else
6844 if test -n "$AR"; then
6845 ac_cv_prog_AR="$AR" # Let the user override the test.
6846else
c6b750e1
DJ
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858done
6859done
6860
859789af
AC
6861fi
6862fi
c6b750e1 6863AR=$ac_cv_prog_AR
859789af 6864if test -n "$AR"; then
c6b750e1
DJ
6865 echo "$as_me:$LINENO: result: $AR" >&5
6866echo "${ECHO_T}$AR" >&6
859789af 6867else
c6b750e1
DJ
6868 echo "$as_me:$LINENO: result: no" >&5
6869echo "${ECHO_T}no" >&6
859789af
AC
6870fi
6871
05cbd757
PB
6872 fi
6873 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6875set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6876echo "$as_me:$LINENO: checking for $ac_word" >&5
6877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878if test "${ac_cv_prog_AR+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6880else
05cbd757
PB
6881 if test -n "$AR"; then
6882 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6883else
c6b750e1
DJ
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_AR="${ncn_progname}"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895done
6896done
6897
859789af
AC
6898fi
6899fi
c6b750e1 6900AR=$ac_cv_prog_AR
05cbd757 6901if test -n "$AR"; then
c6b750e1
DJ
6902 echo "$as_me:$LINENO: result: $AR" >&5
6903echo "${ECHO_T}$AR" >&6
859789af 6904else
c6b750e1
DJ
6905 echo "$as_me:$LINENO: result: no" >&5
6906echo "${ECHO_T}no" >&6
859789af 6907fi
c6b750e1 6908
05cbd757
PB
6909 fi
6910 test -n "$ac_cv_prog_AR" && break
6911done
6912
6913if test -z "$ac_cv_prog_AR" ; then
6914 set dummy ar
6915 if test $build = $host ; then
6916 AR="$2"
859789af 6917 else
05cbd757 6918 AR="${ncn_tool_prefix}$2"
859789af 6919 fi
859789af
AC
6920fi
6921
9a819804
AO
6922
6923
6924if test -n "$AS"; then
6925 ac_cv_prog_AS=$AS
6926elif test -n "$ac_cv_prog_AS"; then
6927 AS=$ac_cv_prog_AS
6928fi
6929
6930if test -n "$ac_cv_prog_AS"; then
6931 for ncn_progname in as; do
6932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6933set dummy ${ncn_progname}; ac_word=$2
6934echo "$as_me:$LINENO: checking for $ac_word" >&5
6935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6936if test "${ac_cv_prog_AS+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939 if test -n "$AS"; then
6940 ac_cv_prog_AS="$AS" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_AS="${ncn_progname}"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954done
6955
6956fi
6957fi
6958AS=$ac_cv_prog_AS
6959if test -n "$AS"; then
6960 echo "$as_me:$LINENO: result: $AS" >&5
6961echo "${ECHO_T}$AS" >&6
6962else
6963 echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6
6965fi
6966
6967 done
6968fi
6969
6970for ncn_progname in as; do
05cbd757
PB
6971 if test -n "$ncn_tool_prefix"; then
6972 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6973set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6974echo "$as_me:$LINENO: checking for $ac_word" >&5
6975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6976if test "${ac_cv_prog_AS+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6978else
6979 if test -n "$AS"; then
6980 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993done
6994done
6995
859789af
AC
6996fi
6997fi
c6b750e1 6998AS=$ac_cv_prog_AS
859789af 6999if test -n "$AS"; then
c6b750e1
DJ
7000 echo "$as_me:$LINENO: result: $AS" >&5
7001echo "${ECHO_T}$AS" >&6
859789af 7002else
c6b750e1
DJ
7003 echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6
859789af
AC
7005fi
7006
05cbd757
PB
7007 fi
7008 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7010set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7011echo "$as_me:$LINENO: checking for $ac_word" >&5
7012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7013if test "${ac_cv_prog_AS+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7015else
05cbd757
PB
7016 if test -n "$AS"; then
7017 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7018else
c6b750e1
DJ
7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026 ac_cv_prog_AS="${ncn_progname}"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7029 fi
7030done
7031done
7032
859789af
AC
7033fi
7034fi
c6b750e1 7035AS=$ac_cv_prog_AS
05cbd757 7036if test -n "$AS"; then
c6b750e1
DJ
7037 echo "$as_me:$LINENO: result: $AS" >&5
7038echo "${ECHO_T}$AS" >&6
859789af 7039else
c6b750e1
DJ
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
859789af 7042fi
c6b750e1 7043
05cbd757
PB
7044 fi
7045 test -n "$ac_cv_prog_AS" && break
7046done
7047
7048if test -z "$ac_cv_prog_AS" ; then
7049 set dummy as
7050 if test $build = $host ; then
7051 AS="$2"
859789af 7052 else
05cbd757 7053 AS="${ncn_tool_prefix}$2"
859789af 7054 fi
859789af
AC
7055fi
7056
9a819804
AO
7057
7058
7059if test -n "$DLLTOOL"; then
7060 ac_cv_prog_DLLTOOL=$DLLTOOL
7061elif test -n "$ac_cv_prog_DLLTOOL"; then
7062 DLLTOOL=$ac_cv_prog_DLLTOOL
7063fi
7064
7065if test -n "$ac_cv_prog_DLLTOOL"; then
7066 for ncn_progname in dlltool; do
7067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7068set dummy ${ncn_progname}; ac_word=$2
7069echo "$as_me:$LINENO: checking for $ac_word" >&5
7070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7071if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else
7074 if test -n "$DLLTOOL"; then
7075 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7076else
7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_DLLTOOL="${ncn_progname}"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088done
7089done
7090
7091fi
7092fi
7093DLLTOOL=$ac_cv_prog_DLLTOOL
7094if test -n "$DLLTOOL"; then
7095 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7096echo "${ECHO_T}$DLLTOOL" >&6
7097else
7098 echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6
7100fi
7101
7102 done
7103fi
7104
7105for ncn_progname in dlltool; do
05cbd757
PB
7106 if test -n "$ncn_tool_prefix"; then
7107 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7108set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7109echo "$as_me:$LINENO: checking for $ac_word" >&5
7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7113else
7114 if test -n "$DLLTOOL"; then
7115 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7116else
c6b750e1
DJ
7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129done
7130
859789af
AC
7131fi
7132fi
c6b750e1 7133DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7134if test -n "$DLLTOOL"; then
c6b750e1
DJ
7135 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7136echo "${ECHO_T}$DLLTOOL" >&6
859789af 7137else
c6b750e1
DJ
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
859789af
AC
7140fi
7141
05cbd757
PB
7142 fi
7143 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7145set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7146echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7150else
05cbd757
PB
7151 if test -n "$DLLTOOL"; then
7152 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7153else
c6b750e1
DJ
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_DLLTOOL="${ncn_progname}"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165done
7166done
7167
859789af
AC
7168fi
7169fi
c6b750e1 7170DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7171if test -n "$DLLTOOL"; then
c6b750e1
DJ
7172 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7173echo "${ECHO_T}$DLLTOOL" >&6
859789af 7174else
c6b750e1
DJ
7175 echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6
859789af 7177fi
c6b750e1 7178
05cbd757
PB
7179 fi
7180 test -n "$ac_cv_prog_DLLTOOL" && break
7181done
7182
7183if test -z "$ac_cv_prog_DLLTOOL" ; then
7184 set dummy dlltool
7185 if test $build = $host ; then
7186 DLLTOOL="$2"
859789af 7187 else
05cbd757 7188 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7189 fi
859789af
AC
7190fi
7191
9a819804
AO
7192
7193
7194if test -n "$LD"; then
7195 ac_cv_prog_LD=$LD
7196elif test -n "$ac_cv_prog_LD"; then
7197 LD=$ac_cv_prog_LD
7198fi
7199
7200if test -n "$ac_cv_prog_LD"; then
7201 for ncn_progname in ld; do
7202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7203set dummy ${ncn_progname}; ac_word=$2
7204echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7206if test "${ac_cv_prog_LD+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 if test -n "$LD"; then
7210 ac_cv_prog_LD="$LD" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_LD="${ncn_progname}"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224done
7225
7226fi
7227fi
7228LD=$ac_cv_prog_LD
7229if test -n "$LD"; then
7230 echo "$as_me:$LINENO: result: $LD" >&5
7231echo "${ECHO_T}$LD" >&6
7232else
7233 echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6
7235fi
7236
7237 done
7238fi
7239
7240for ncn_progname in ld; do
05cbd757
PB
7241 if test -n "$ncn_tool_prefix"; then
7242 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7243set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7244echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7246if test "${ac_cv_prog_LD+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7248else
7249 if test -n "$LD"; then
7250 ac_cv_prog_LD="$LD" # Let the user override the test.
7251else
c6b750e1
DJ
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264done
7265
859789af
AC
7266fi
7267fi
c6b750e1 7268LD=$ac_cv_prog_LD
859789af 7269if test -n "$LD"; then
c6b750e1
DJ
7270 echo "$as_me:$LINENO: result: $LD" >&5
7271echo "${ECHO_T}$LD" >&6
859789af 7272else
c6b750e1
DJ
7273 echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6
859789af
AC
7275fi
7276
05cbd757
PB
7277 fi
7278 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7280set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7281echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7283if test "${ac_cv_prog_LD+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7285else
05cbd757
PB
7286 if test -n "$LD"; then
7287 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7288else
c6b750e1
DJ
7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_LD="${ncn_progname}"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300done
7301done
7302
859789af
AC
7303fi
7304fi
c6b750e1 7305LD=$ac_cv_prog_LD
05cbd757 7306if test -n "$LD"; then
c6b750e1
DJ
7307 echo "$as_me:$LINENO: result: $LD" >&5
7308echo "${ECHO_T}$LD" >&6
859789af 7309else
c6b750e1
DJ
7310 echo "$as_me:$LINENO: result: no" >&5
7311echo "${ECHO_T}no" >&6
859789af 7312fi
c6b750e1 7313
05cbd757
PB
7314 fi
7315 test -n "$ac_cv_prog_LD" && break
7316done
7317
7318if test -z "$ac_cv_prog_LD" ; then
7319 set dummy ld
7320 if test $build = $host ; then
7321 LD="$2"
859789af 7322 else
05cbd757 7323 LD="${ncn_tool_prefix}$2"
859789af 7324 fi
859789af
AC
7325fi
7326
9a819804
AO
7327
7328
7329if test -n "$LIPO"; then
7330 ac_cv_prog_LIPO=$LIPO
7331elif test -n "$ac_cv_prog_LIPO"; then
7332 LIPO=$ac_cv_prog_LIPO
7333fi
7334
7335if test -n "$ac_cv_prog_LIPO"; then
7336 for ncn_progname in lipo; do
7337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7338set dummy ${ncn_progname}; ac_word=$2
7339echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341if test "${ac_cv_prog_LIPO+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344 if test -n "$LIPO"; then
7345 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_LIPO="${ncn_progname}"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358done
7359done
7360
7361fi
7362fi
7363LIPO=$ac_cv_prog_LIPO
7364if test -n "$LIPO"; then
7365 echo "$as_me:$LINENO: result: $LIPO" >&5
7366echo "${ECHO_T}$LIPO" >&6
7367else
7368 echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6
7370fi
7371
7372 done
7373fi
7374
7375for ncn_progname in lipo; do
be01d343
PB
7376 if test -n "$ncn_tool_prefix"; then
7377 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7378set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7379echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381if test "${ac_cv_prog_LIPO+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7383else
7384 if test -n "$LIPO"; then
7385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7386else
c6b750e1
DJ
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398done
7399done
7400
be01d343
PB
7401fi
7402fi
c6b750e1 7403LIPO=$ac_cv_prog_LIPO
be01d343 7404if test -n "$LIPO"; then
c6b750e1
DJ
7405 echo "$as_me:$LINENO: result: $LIPO" >&5
7406echo "${ECHO_T}$LIPO" >&6
be01d343 7407else
c6b750e1
DJ
7408 echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6
be01d343
PB
7410fi
7411
7412 fi
7413 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7415set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7416echo "$as_me:$LINENO: checking for $ac_word" >&5
7417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7418if test "${ac_cv_prog_LIPO+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7420else
7421 if test -n "$LIPO"; then
7422 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7423else
c6b750e1
DJ
7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431 ac_cv_prog_LIPO="${ncn_progname}"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7434 fi
7435done
7436done
7437
be01d343
PB
7438fi
7439fi
c6b750e1 7440LIPO=$ac_cv_prog_LIPO
be01d343 7441if test -n "$LIPO"; then
c6b750e1
DJ
7442 echo "$as_me:$LINENO: result: $LIPO" >&5
7443echo "${ECHO_T}$LIPO" >&6
be01d343 7444else
c6b750e1
DJ
7445 echo "$as_me:$LINENO: result: no" >&5
7446echo "${ECHO_T}no" >&6
be01d343 7447fi
c6b750e1 7448
be01d343
PB
7449 fi
7450 test -n "$ac_cv_prog_LIPO" && break
7451done
7452
7453if test -z "$ac_cv_prog_LIPO" ; then
7454 set dummy lipo
7455 if test $build = $host ; then
7456 LIPO="$2"
7457 else
7458 LIPO="${ncn_tool_prefix}$2"
7459 fi
7460fi
7461
9a819804
AO
7462
7463
7464if test -n "$NM"; then
7465 ac_cv_prog_NM=$NM
7466elif test -n "$ac_cv_prog_NM"; then
7467 NM=$ac_cv_prog_NM
7468fi
7469
7470if test -n "$ac_cv_prog_NM"; then
7471 for ncn_progname in nm; do
7472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7473set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7474echo "$as_me:$LINENO: checking for $ac_word" >&5
7475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7476if test "${ac_cv_prog_NM+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7478else
7479 if test -n "$NM"; then
7480 ac_cv_prog_NM="$NM" # Let the user override the test.
7481else
c6b750e1
DJ
7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483for as_dir in $PATH
7484do
7485 IFS=$as_save_IFS
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7489 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 break 2
7492 fi
7493done
7494done
7495
859789af
AC
7496fi
7497fi
c6b750e1 7498NM=$ac_cv_prog_NM
859789af 7499if test -n "$NM"; then
c6b750e1
DJ
7500 echo "$as_me:$LINENO: result: $NM" >&5
7501echo "${ECHO_T}$NM" >&6
859789af 7502else
c6b750e1
DJ
7503 echo "$as_me:$LINENO: result: no" >&5
7504echo "${ECHO_T}no" >&6
859789af
AC
7505fi
7506
9a819804
AO
7507 done
7508fi
7509
7510for ncn_progname in nm; do
7511 if test -n "$ncn_tool_prefix"; then
7512 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7513set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7514echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516if test "${ac_cv_prog_NM+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7518else
05cbd757
PB
7519 if test -n "$NM"; then
7520 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7521else
c6b750e1
DJ
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7529 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534done
7535
859789af
AC
7536fi
7537fi
c6b750e1 7538NM=$ac_cv_prog_NM
05cbd757 7539if test -n "$NM"; then
c6b750e1
DJ
7540 echo "$as_me:$LINENO: result: $NM" >&5
7541echo "${ECHO_T}$NM" >&6
859789af 7542else
c6b750e1
DJ
7543 echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
859789af 7545fi
c6b750e1 7546
05cbd757 7547 fi
9a819804
AO
7548 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7550set dummy ${ncn_progname}; ac_word=$2
7551echo "$as_me:$LINENO: checking for $ac_word" >&5
7552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553if test "${ac_cv_prog_NM+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556 if test -n "$NM"; then
7557 ac_cv_prog_NM="$NM" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_NM="${ncn_progname}"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570done
7571done
7572
7573fi
7574fi
7575NM=$ac_cv_prog_NM
7576if test -n "$NM"; then
7577 echo "$as_me:$LINENO: result: $NM" >&5
7578echo "${ECHO_T}$NM" >&6
7579else
7580 echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6
7582fi
7583
7584 fi
7585 test -n "$ac_cv_prog_NM" && break
7586done
7587
7588if test -z "$ac_cv_prog_NM" ; then
7589 set dummy nm
7590 if test $build = $host ; then
7591 NM="$2"
7592 else
7593 NM="${ncn_tool_prefix}$2"
7594 fi
7595fi
7596
7597
7598
7599if test -n "$RANLIB"; then
7600 ac_cv_prog_RANLIB=$RANLIB
7601elif test -n "$ac_cv_prog_RANLIB"; then
7602 RANLIB=$ac_cv_prog_RANLIB
7603fi
7604
7605if test -n "$ac_cv_prog_RANLIB"; then
7606 for ncn_progname in ranlib; do
7607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7608set dummy ${ncn_progname}; ac_word=$2
7609echo "$as_me:$LINENO: checking for $ac_word" >&5
7610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7611if test "${ac_cv_prog_RANLIB+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614 if test -n "$RANLIB"; then
7615 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_RANLIB="${ncn_progname}"
7625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628done
7629done
7630
7631fi
7632fi
7633RANLIB=$ac_cv_prog_RANLIB
7634if test -n "$RANLIB"; then
7635 echo "$as_me:$LINENO: result: $RANLIB" >&5
7636echo "${ECHO_T}$RANLIB" >&6
7637else
7638 echo "$as_me:$LINENO: result: no" >&5
7639echo "${ECHO_T}no" >&6
7640fi
7641
7642 done
7643fi
859789af 7644
9a819804 7645for ncn_progname in ranlib; do
05cbd757
PB
7646 if test -n "$ncn_tool_prefix"; then
7647 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7648set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7649echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7651if test "${ac_cv_prog_RANLIB+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7653else
7654 if test -n "$RANLIB"; then
7655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7656else
c6b750e1
DJ
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668done
7669done
7670
859789af
AC
7671fi
7672fi
c6b750e1 7673RANLIB=$ac_cv_prog_RANLIB
859789af 7674if test -n "$RANLIB"; then
c6b750e1
DJ
7675 echo "$as_me:$LINENO: result: $RANLIB" >&5
7676echo "${ECHO_T}$RANLIB" >&6
859789af 7677else
c6b750e1
DJ
7678 echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
859789af
AC
7680fi
7681
05cbd757
PB
7682 fi
7683 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7685set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7686echo "$as_me:$LINENO: checking for $ac_word" >&5
7687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7688if test "${ac_cv_prog_RANLIB+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7690else
05cbd757
PB
7691 if test -n "$RANLIB"; then
7692 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7693else
c6b750e1
DJ
7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695for as_dir in $PATH
7696do
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_RANLIB="${ncn_progname}"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7704 fi
7705done
7706done
7707
859789af
AC
7708fi
7709fi
c6b750e1 7710RANLIB=$ac_cv_prog_RANLIB
05cbd757 7711if test -n "$RANLIB"; then
c6b750e1
DJ
7712 echo "$as_me:$LINENO: result: $RANLIB" >&5
7713echo "${ECHO_T}$RANLIB" >&6
859789af 7714else
c6b750e1
DJ
7715 echo "$as_me:$LINENO: result: no" >&5
7716echo "${ECHO_T}no" >&6
859789af 7717fi
c6b750e1 7718
859789af 7719 fi
05cbd757
PB
7720 test -n "$ac_cv_prog_RANLIB" && break
7721done
7722
7723if test -z "$ac_cv_prog_RANLIB" ; then
7724 RANLIB=":"
859789af
AC
7725fi
7726
9a819804
AO
7727
7728
7729if test -n "$STRIP"; then
7730 ac_cv_prog_STRIP=$STRIP
7731elif test -n "$ac_cv_prog_STRIP"; then
7732 STRIP=$ac_cv_prog_STRIP
7733fi
7734
7735if test -n "$ac_cv_prog_STRIP"; then
7736 for ncn_progname in strip; do
7737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7738set dummy ${ncn_progname}; ac_word=$2
7739echo "$as_me:$LINENO: checking for $ac_word" >&5
7740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741if test "${ac_cv_prog_STRIP+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744 if test -n "$STRIP"; then
7745 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_STRIP="${ncn_progname}"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759done
7760
7761fi
7762fi
7763STRIP=$ac_cv_prog_STRIP
7764if test -n "$STRIP"; then
7765 echo "$as_me:$LINENO: result: $STRIP" >&5
7766echo "${ECHO_T}$STRIP" >&6
7767else
7768 echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
7770fi
7771
7772 done
7773fi
7774
7775for ncn_progname in strip; do
be01d343
PB
7776 if test -n "$ncn_tool_prefix"; then
7777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7778set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7779echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781if test "${ac_cv_prog_STRIP+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7783else
7784 if test -n "$STRIP"; then
7785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7786else
c6b750e1
DJ
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798done
7799done
7800
be01d343
PB
7801fi
7802fi
c6b750e1 7803STRIP=$ac_cv_prog_STRIP
be01d343 7804if test -n "$STRIP"; then
c6b750e1
DJ
7805 echo "$as_me:$LINENO: result: $STRIP" >&5
7806echo "${ECHO_T}$STRIP" >&6
be01d343 7807else
c6b750e1
DJ
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
be01d343
PB
7810fi
7811
7812 fi
7813 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7815set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7816echo "$as_me:$LINENO: checking for $ac_word" >&5
7817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7818if test "${ac_cv_prog_STRIP+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7820else
7821 if test -n "$STRIP"; then
7822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7823else
c6b750e1
DJ
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_STRIP="${ncn_progname}"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835done
7836done
7837
be01d343
PB
7838fi
7839fi
c6b750e1 7840STRIP=$ac_cv_prog_STRIP
be01d343 7841if test -n "$STRIP"; then
c6b750e1
DJ
7842 echo "$as_me:$LINENO: result: $STRIP" >&5
7843echo "${ECHO_T}$STRIP" >&6
be01d343 7844else
c6b750e1
DJ
7845 echo "$as_me:$LINENO: result: no" >&5
7846echo "${ECHO_T}no" >&6
be01d343 7847fi
c6b750e1 7848
be01d343
PB
7849 fi
7850 test -n "$ac_cv_prog_STRIP" && break
7851done
7852
7853if test -z "$ac_cv_prog_STRIP" ; then
7854 STRIP=":"
7855fi
7856
9a819804
AO
7857
7858
7859if test -n "$WINDRES"; then
7860 ac_cv_prog_WINDRES=$WINDRES
7861elif test -n "$ac_cv_prog_WINDRES"; then
7862 WINDRES=$ac_cv_prog_WINDRES
7863fi
7864
7865if test -n "$ac_cv_prog_WINDRES"; then
7866 for ncn_progname in windres; do
7867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7868set dummy ${ncn_progname}; ac_word=$2
7869echo "$as_me:$LINENO: checking for $ac_word" >&5
7870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7871if test "${ac_cv_prog_WINDRES+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873else
7874 if test -n "$WINDRES"; then
7875 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7876else
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_WINDRES="${ncn_progname}"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888done
7889done
7890
7891fi
7892fi
7893WINDRES=$ac_cv_prog_WINDRES
7894if test -n "$WINDRES"; then
7895 echo "$as_me:$LINENO: result: $WINDRES" >&5
7896echo "${ECHO_T}$WINDRES" >&6
7897else
7898 echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6
7900fi
7901
7902 done
7903fi
7904
7905for ncn_progname in windres; do
05cbd757
PB
7906 if test -n "$ncn_tool_prefix"; then
7907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7908set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7909echo "$as_me:$LINENO: checking for $ac_word" >&5
7910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7911if test "${ac_cv_prog_WINDRES+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7913else
7914 if test -n "$WINDRES"; then
7915 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7916else
c6b750e1
DJ
7917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7927 fi
7928done
7929done
7930
859789af
AC
7931fi
7932fi
c6b750e1 7933WINDRES=$ac_cv_prog_WINDRES
859789af 7934if test -n "$WINDRES"; then
c6b750e1
DJ
7935 echo "$as_me:$LINENO: result: $WINDRES" >&5
7936echo "${ECHO_T}$WINDRES" >&6
859789af 7937else
c6b750e1
DJ
7938 echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6
859789af
AC
7940fi
7941
05cbd757
PB
7942 fi
7943 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7945set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7946echo "$as_me:$LINENO: checking for $ac_word" >&5
7947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7948if test "${ac_cv_prog_WINDRES+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7950else
05cbd757
PB
7951 if test -n "$WINDRES"; then
7952 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7953else
c6b750e1
DJ
7954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955for as_dir in $PATH
7956do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961 ac_cv_prog_WINDRES="${ncn_progname}"
7962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965done
7966done
7967
859789af
AC
7968fi
7969fi
c6b750e1 7970WINDRES=$ac_cv_prog_WINDRES
05cbd757 7971if test -n "$WINDRES"; then
c6b750e1
DJ
7972 echo "$as_me:$LINENO: result: $WINDRES" >&5
7973echo "${ECHO_T}$WINDRES" >&6
859789af 7974else
c6b750e1
DJ
7975 echo "$as_me:$LINENO: result: no" >&5
7976echo "${ECHO_T}no" >&6
859789af 7977fi
c6b750e1 7978
05cbd757
PB
7979 fi
7980 test -n "$ac_cv_prog_WINDRES" && break
7981done
7982
7983if test -z "$ac_cv_prog_WINDRES" ; then
7984 set dummy windres
7985 if test $build = $host ; then
7986 WINDRES="$2"
859789af 7987 else
05cbd757 7988 WINDRES="${ncn_tool_prefix}$2"
859789af 7989 fi
859789af
AC
7990fi
7991
9a819804
AO
7992
7993
0c24b341
NC
7994if test -n "$WINDMC"; then
7995 ac_cv_prog_WINDMC=$WINDMC
7996elif test -n "$ac_cv_prog_WINDMC"; then
7997 WINDMC=$ac_cv_prog_WINDMC
7998fi
7999
8000if test -n "$ac_cv_prog_WINDMC"; then
8001 for ncn_progname in windmc; do
8002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8003set dummy ${ncn_progname}; ac_word=$2
8004echo "$as_me:$LINENO: checking for $ac_word" >&5
8005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8006if test "${ac_cv_prog_WINDMC+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009 if test -n "$WINDMC"; then
8010 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8011else
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_WINDMC="${ncn_progname}"
8020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023done
8024done
8025
8026fi
8027fi
8028WINDMC=$ac_cv_prog_WINDMC
8029if test -n "$WINDMC"; then
8030 echo "$as_me:$LINENO: result: $WINDMC" >&5
8031echo "${ECHO_T}$WINDMC" >&6
8032else
8033 echo "$as_me:$LINENO: result: no" >&5
8034echo "${ECHO_T}no" >&6
8035fi
8036
8037 done
8038fi
8039
8040for ncn_progname in windmc; do
8041 if test -n "$ncn_tool_prefix"; then
8042 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8043set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8044echo "$as_me:$LINENO: checking for $ac_word" >&5
8045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8046if test "${ac_cv_prog_WINDMC+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048else
8049 if test -n "$WINDMC"; then
8050 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 break 2
8062 fi
8063done
8064done
8065
8066fi
8067fi
8068WINDMC=$ac_cv_prog_WINDMC
8069if test -n "$WINDMC"; then
8070 echo "$as_me:$LINENO: result: $WINDMC" >&5
8071echo "${ECHO_T}$WINDMC" >&6
8072else
8073 echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075fi
8076
8077 fi
8078 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8080set dummy ${ncn_progname}; ac_word=$2
8081echo "$as_me:$LINENO: checking for $ac_word" >&5
8082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8083if test "${ac_cv_prog_WINDMC+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8085else
8086 if test -n "$WINDMC"; then
8087 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096 ac_cv_prog_WINDMC="${ncn_progname}"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100done
8101done
8102
8103fi
8104fi
8105WINDMC=$ac_cv_prog_WINDMC
8106if test -n "$WINDMC"; then
8107 echo "$as_me:$LINENO: result: $WINDMC" >&5
8108echo "${ECHO_T}$WINDMC" >&6
8109else
8110 echo "$as_me:$LINENO: result: no" >&5
8111echo "${ECHO_T}no" >&6
8112fi
8113
8114 fi
8115 test -n "$ac_cv_prog_WINDMC" && break
8116done
8117
8118if test -z "$ac_cv_prog_WINDMC" ; then
8119 set dummy windmc
8120 if test $build = $host ; then
8121 WINDMC="$2"
8122 else
8123 WINDMC="${ncn_tool_prefix}$2"
8124 fi
8125fi
8126
8127
8128
9a819804
AO
8129if test -n "$OBJCOPY"; then
8130 ac_cv_prog_OBJCOPY=$OBJCOPY
8131elif test -n "$ac_cv_prog_OBJCOPY"; then
8132 OBJCOPY=$ac_cv_prog_OBJCOPY
8133fi
8134
8135if test -n "$ac_cv_prog_OBJCOPY"; then
8136 for ncn_progname in objcopy; do
8137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8138set dummy ${ncn_progname}; ac_word=$2
8139echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8141if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 if test -n "$OBJCOPY"; then
8145 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154 ac_cv_prog_OBJCOPY="${ncn_progname}"
8155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8157 fi
8158done
8159done
8160
8161fi
8162fi
8163OBJCOPY=$ac_cv_prog_OBJCOPY
8164if test -n "$OBJCOPY"; then
8165 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8166echo "${ECHO_T}$OBJCOPY" >&6
8167else
8168 echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6
8170fi
8171
8172 done
8173fi
8174
8175for ncn_progname in objcopy; do
05cbd757
PB
8176 if test -n "$ncn_tool_prefix"; then
8177 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8178set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8179echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8183else
8184 if test -n "$OBJCOPY"; then
8185 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8186else
c6b750e1
DJ
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198done
8199done
8200
859789af
AC
8201fi
8202fi
c6b750e1 8203OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8204if test -n "$OBJCOPY"; then
c6b750e1
DJ
8205 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8206echo "${ECHO_T}$OBJCOPY" >&6
859789af 8207else
c6b750e1
DJ
8208 echo "$as_me:$LINENO: result: no" >&5
8209echo "${ECHO_T}no" >&6
859789af
AC
8210fi
8211
05cbd757
PB
8212 fi
8213 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8215set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8216echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8218if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8220else
05cbd757
PB
8221 if test -n "$OBJCOPY"; then
8222 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8223else
c6b750e1
DJ
8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_OBJCOPY="${ncn_progname}"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8234 fi
8235done
8236done
8237
859789af
AC
8238fi
8239fi
c6b750e1 8240OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8241if test -n "$OBJCOPY"; then
c6b750e1
DJ
8242 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8243echo "${ECHO_T}$OBJCOPY" >&6
859789af 8244else
c6b750e1
DJ
8245 echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6
859789af 8247fi
c6b750e1 8248
05cbd757
PB
8249 fi
8250 test -n "$ac_cv_prog_OBJCOPY" && break
8251done
8252
8253if test -z "$ac_cv_prog_OBJCOPY" ; then
8254 set dummy objcopy
8255 if test $build = $host ; then
8256 OBJCOPY="$2"
859789af 8257 else
05cbd757 8258 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8259 fi
859789af
AC
8260fi
8261
9a819804
AO
8262
8263
8264if test -n "$OBJDUMP"; then
8265 ac_cv_prog_OBJDUMP=$OBJDUMP
8266elif test -n "$ac_cv_prog_OBJDUMP"; then
8267 OBJDUMP=$ac_cv_prog_OBJDUMP
8268fi
8269
8270if test -n "$ac_cv_prog_OBJDUMP"; then
8271 for ncn_progname in objdump; do
8272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8273set dummy ${ncn_progname}; ac_word=$2
8274echo "$as_me:$LINENO: checking for $ac_word" >&5
8275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8276if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279 if test -n "$OBJDUMP"; then
8280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_OBJDUMP="${ncn_progname}"
8290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8292 fi
8293done
8294done
8295
8296fi
8297fi
8298OBJDUMP=$ac_cv_prog_OBJDUMP
8299if test -n "$OBJDUMP"; then
8300 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8301echo "${ECHO_T}$OBJDUMP" >&6
8302else
8303 echo "$as_me:$LINENO: result: no" >&5
8304echo "${ECHO_T}no" >&6
8305fi
8306
8307 done
8308fi
8309
8310for ncn_progname in objdump; do
05cbd757
PB
8311 if test -n "$ncn_tool_prefix"; then
8312 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8313set dummy ${ncn_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_OBJDUMP+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8318else
8319 if test -n "$OBJDUMP"; then
8320 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
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_OBJDUMP="${ncn_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
859789af
AC
8336fi
8337fi
c6b750e1 8338OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8339if test -n "$OBJDUMP"; then
c6b750e1
DJ
8340 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8341echo "${ECHO_T}$OBJDUMP" >&6
859789af 8342else
c6b750e1
DJ
8343 echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6
859789af
AC
8345fi
8346
05cbd757
PB
8347 fi
8348 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
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_OBJDUMP+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8355else
05cbd757
PB
8356 if test -n "$OBJDUMP"; then
8357 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 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_OBJDUMP="${ncn_progname}"
8367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370done
8371done
8372
859789af
AC
8373fi
8374fi
c6b750e1 8375OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8376if test -n "$OBJDUMP"; then
c6b750e1
DJ
8377 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8378echo "${ECHO_T}$OBJDUMP" >&6
859789af 8379else
c6b750e1
DJ
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
859789af 8382fi
c6b750e1 8383
05cbd757
PB
8384 fi
8385 test -n "$ac_cv_prog_OBJDUMP" && break
8386done
8387
8388if test -z "$ac_cv_prog_OBJDUMP" ; then
8389 set dummy objdump
8390 if test $build = $host ; then
8391 OBJDUMP="$2"
859789af 8392 else
05cbd757 8393 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8394 fi
859789af
AC
8395fi
8396
a0da8069
NN
8397
8398
8399
8400
8401
be01d343 8402# Target tools.
c6b750e1 8403
2429c060
PB
8404# Check whether --with-build-time-tools or --without-build-time-tools was given.
8405if test "${with_build_time_tools+set}" = set; then
8406 withval="$with_build_time_tools"
8407 case x"$withval" in
8408 x/*) ;;
8409 *)
8410 with_build_time_tools=
c6b750e1
DJ
8411 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8412echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8413 ;;
8414 esac
859789af 8415else
2429c060 8416 with_build_time_tools=
c6b750e1 8417fi;
859789af 8418
9a819804
AO
8419
8420
8421if test -n "$CC_FOR_TARGET"; then
8422 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8423elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8424 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8425fi
8426
8427if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8428 for ncn_progname in cc gcc; do
8429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8430set dummy ${ncn_progname}; ac_word=$2
8431echo "$as_me:$LINENO: checking for $ac_word" >&5
8432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8433if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435else
8436 if test -n "$CC_FOR_TARGET"; then
8437 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8438else
8439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8446 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450done
8451done
8452
8453fi
8454fi
8455CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8456if test -n "$CC_FOR_TARGET"; then
8457 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8458echo "${ECHO_T}$CC_FOR_TARGET" >&6
8459else
8460 echo "$as_me:$LINENO: result: no" >&5
8461echo "${ECHO_T}no" >&6
8462fi
8463
8464 done
8465fi
8466
8467if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8468 for ncn_progname in cc gcc; do
c6b750e1
DJ
8469 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8470echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8471 if test -x $with_build_time_tools/${ncn_progname}; then
8472 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8473 echo "$as_me:$LINENO: result: yes" >&5
8474echo "${ECHO_T}yes" >&6
cac3d6c4 8475 break
2429c060 8476 else
c6b750e1
DJ
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
cac3d6c4
CM
8479 fi
8480 done
55db4b87
PB
8481fi
8482
2429c060
PB
8483if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8484 for ncn_progname in cc gcc; do
8485 if test -n "$ncn_target_tool_prefix"; then
8486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8487set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8488echo "$as_me:$LINENO: checking for $ac_word" >&5
8489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8490if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8492else
8493 if test -n "$CC_FOR_TARGET"; then
8494 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8495else
c6b750e1
DJ
8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497for as_dir in $PATH
8498do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507done
8508done
8509
55db4b87
PB
8510fi
8511fi
c6b750e1 8512CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8513if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8514 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8515echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8516else
c6b750e1
DJ
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
55db4b87
PB
8519fi
8520
2429c060
PB
8521 fi
8522 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8524set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8525echo "$as_me:$LINENO: checking for $ac_word" >&5
8526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8527if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8529else
05cbd757
PB
8530 if test -n "$CC_FOR_TARGET"; then
8531 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8532else
c6b750e1
DJ
8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8543 fi
8544done
8545done
8546
55db4b87
PB
8547fi
8548fi
c6b750e1 8549CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8550if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8551 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8552echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8553else
c6b750e1
DJ
8554 echo "$as_me:$LINENO: result: no" >&5
8555echo "${ECHO_T}no" >&6
55db4b87 8556fi
c6b750e1 8557
2429c060
PB
8558 fi
8559 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8560 done
8561fi
c6b750e1 8562
05cbd757
PB
8563if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8564 set dummy cc gcc
8565 if test $build = $target ; then
8566 CC_FOR_TARGET="$2"
55db4b87 8567 else
05cbd757 8568 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8569 fi
d3f5afc4
MS
8570else
8571 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8572fi
8573
9a819804
AO
8574
8575
8576if test -n "$CXX_FOR_TARGET"; then
8577 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8578elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8579 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8580fi
8581
8582if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8583 for ncn_progname in c++ g++ cxx gxx; do
8584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8585set dummy ${ncn_progname}; ac_word=$2
8586echo "$as_me:$LINENO: checking for $ac_word" >&5
8587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8588if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591 if test -n "$CXX_FOR_TARGET"; then
8592 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8593else
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606done
8607
8608fi
8609fi
8610CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8611if test -n "$CXX_FOR_TARGET"; then
8612 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8613echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8614else
8615 echo "$as_me:$LINENO: result: no" >&5
8616echo "${ECHO_T}no" >&6
8617fi
8618
8619 done
8620fi
8621
8622if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8623 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8624 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8625echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8626 if test -x $with_build_time_tools/${ncn_progname}; then
8627 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8628 echo "$as_me:$LINENO: result: yes" >&5
8629echo "${ECHO_T}yes" >&6
2429c060
PB
8630 break
8631 else
c6b750e1
DJ
8632 echo "$as_me:$LINENO: result: no" >&5
8633echo "${ECHO_T}no" >&6
2429c060
PB
8634 fi
8635 done
8636fi
8637
8638if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8639 for ncn_progname in c++ g++ cxx gxx; do
8640 if test -n "$ncn_target_tool_prefix"; then
8641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8642set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8643echo "$as_me:$LINENO: checking for $ac_word" >&5
8644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8645if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8647else
8648 if test -n "$CXX_FOR_TARGET"; then
8649 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8650else
c6b750e1
DJ
8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8658 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 break 2
8661 fi
8662done
8663done
8664
55db4b87
PB
8665fi
8666fi
c6b750e1 8667CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8668if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8669 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8670echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8671else
c6b750e1
DJ
8672 echo "$as_me:$LINENO: result: no" >&5
8673echo "${ECHO_T}no" >&6
55db4b87
PB
8674fi
8675
2429c060
PB
8676 fi
8677 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8679set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8680echo "$as_me:$LINENO: checking for $ac_word" >&5
8681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8682if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8684else
05cbd757
PB
8685 if test -n "$CXX_FOR_TARGET"; then
8686 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8687else
c6b750e1
DJ
8688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 break 2
8698 fi
8699done
8700done
8701
55db4b87
PB
8702fi
8703fi
c6b750e1 8704CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8705if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8706 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8707echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8708else
c6b750e1
DJ
8709 echo "$as_me:$LINENO: result: no" >&5
8710echo "${ECHO_T}no" >&6
55db4b87 8711fi
c6b750e1 8712
2429c060
PB
8713 fi
8714 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8715 done
8716fi
c6b750e1 8717
05cbd757
PB
8718if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8719 set dummy c++ g++ cxx gxx
8720 if test $build = $target ; then
8721 CXX_FOR_TARGET="$2"
55db4b87 8722 else
05cbd757 8723 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8724 fi
d3f5afc4
MS
8725else
8726 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8727fi
8728
9a819804
AO
8729
8730
8731if test -n "$GCC_FOR_TARGET"; then
8732 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8733elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8734 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8735fi
8736
8737if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8738 for ncn_progname in gcc; do
8739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8740set dummy ${ncn_progname}; ac_word=$2
8741echo "$as_me:$LINENO: checking for $ac_word" >&5
8742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8743if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745else
8746 if test -n "$GCC_FOR_TARGET"; then
8747 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8748else
8749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750for as_dir in $PATH
8751do
8752 IFS=$as_save_IFS
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 break 2
8759 fi
8760done
8761done
8762
8763fi
8764fi
8765GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8766if test -n "$GCC_FOR_TARGET"; then
8767 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8768echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8769else
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772fi
8773
8774 done
8775fi
8776
8777if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8778 for ncn_progname in gcc; do
c6b750e1
DJ
8779 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8780echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8781 if test -x $with_build_time_tools/${ncn_progname}; then
8782 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8783 echo "$as_me:$LINENO: result: yes" >&5
8784echo "${ECHO_T}yes" >&6
2429c060
PB
8785 break
8786 else
c6b750e1
DJ
8787 echo "$as_me:$LINENO: result: no" >&5
8788echo "${ECHO_T}no" >&6
2429c060
PB
8789 fi
8790 done
8791fi
8792
8793if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8794 for ncn_progname in gcc; do
8795 if test -n "$ncn_target_tool_prefix"; then
8796 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8797set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8798echo "$as_me:$LINENO: checking for $ac_word" >&5
8799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8800if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8802else
2429c060
PB
8803 if test -n "$GCC_FOR_TARGET"; then
8804 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8805else
c6b750e1
DJ
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8816 fi
8817done
8818done
8819
55db4b87
PB
8820fi
8821fi
c6b750e1 8822GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8823if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8824 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8825echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8826else
c6b750e1
DJ
8827 echo "$as_me:$LINENO: result: no" >&5
8828echo "${ECHO_T}no" >&6
55db4b87
PB
8829fi
8830
2429c060
PB
8831 fi
8832 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8834set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8835echo "$as_me:$LINENO: checking for $ac_word" >&5
8836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8837if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8839else
05cbd757
PB
8840 if test -n "$GCC_FOR_TARGET"; then
8841 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8842else
c6b750e1
DJ
8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844for as_dir in $PATH
8845do
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8850 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 break 2
8853 fi
8854done
8855done
8856
55db4b87
PB
8857fi
8858fi
c6b750e1 8859GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8860if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8861 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8862echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8863else
c6b750e1
DJ
8864 echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6
55db4b87 8866fi
c6b750e1 8867
2429c060
PB
8868 fi
8869 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8870 done
8871fi
c6b750e1 8872
05cbd757
PB
8873if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8874 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8875else
8876 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8877fi
8878
9a819804
AO
8879
8880
8881if test -n "$GCJ_FOR_TARGET"; then
8882 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8883elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8884 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8885fi
8886
8887if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8888 for ncn_progname in gcj; do
8889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8890set dummy ${ncn_progname}; ac_word=$2
8891echo "$as_me:$LINENO: checking for $ac_word" >&5
8892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8893if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896 if test -n "$GCJ_FOR_TARGET"; then
8897 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8898else
8899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900for as_dir in $PATH
8901do
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8906 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8909 fi
8910done
8911done
8912
8913fi
8914fi
8915GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8916if test -n "$GCJ_FOR_TARGET"; then
8917 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8918echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8919else
8920 echo "$as_me:$LINENO: result: no" >&5
8921echo "${ECHO_T}no" >&6
8922fi
8923
8924 done
8925fi
8926
8927if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8928 for ncn_progname in gcj; do
c6b750e1
DJ
8929 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8930echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8931 if test -x $with_build_time_tools/${ncn_progname}; then
8932 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8933 echo "$as_me:$LINENO: result: yes" >&5
8934echo "${ECHO_T}yes" >&6
2429c060
PB
8935 break
8936 else
c6b750e1
DJ
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
2429c060
PB
8939 fi
8940 done
8941fi
8942
8943if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8944 for ncn_progname in gcj; do
8945 if test -n "$ncn_target_tool_prefix"; then
8946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8947set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8948echo "$as_me:$LINENO: checking for $ac_word" >&5
8949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8950if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8952else
8953 if test -n "$GCJ_FOR_TARGET"; then
8954 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8955else
c6b750e1
DJ
8956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957for as_dir in $PATH
8958do
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8963 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 break 2
8966 fi
8967done
8968done
8969
55db4b87
PB
8970fi
8971fi
9a819804
AO
8972GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8973if test -n "$GCJ_FOR_TARGET"; then
8974 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8975echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8976else
8977 echo "$as_me:$LINENO: result: no" >&5
8978echo "${ECHO_T}no" >&6
8979fi
8980
8981 fi
8982 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8984set dummy ${ncn_progname}; ac_word=$2
8985echo "$as_me:$LINENO: checking for $ac_word" >&5
8986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8987if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989else
8990 if test -n "$GCJ_FOR_TARGET"; then
8991 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8992else
8993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994for as_dir in $PATH
8995do
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9003 fi
9004done
9005done
9006
9007fi
9008fi
9009GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9010if test -n "$GCJ_FOR_TARGET"; then
9011 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9012echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9013else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016fi
9017
9018 fi
9019 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9020 done
9021fi
9022
9023if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9024 set dummy gcj
9025 if test $build = $target ; then
9026 GCJ_FOR_TARGET="$2"
9027 else
9028 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9029 fi
d3f5afc4
MS
9030else
9031 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9032fi
9033
9034
9035
9036if test -n "$GFORTRAN_FOR_TARGET"; then
9037 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9038elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9039 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9040fi
9041
9a819804
AO
9042if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9043 for ncn_progname in gfortran; do
9044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9045set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9046echo "$as_me:$LINENO: checking for $ac_word" >&5
9047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9048if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 9049 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9050else
9a819804
AO
9051 if test -n "$GFORTRAN_FOR_TARGET"; then
9052 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9053else
c6b750e1
DJ
9054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055for as_dir in $PATH
9056do
9057 IFS=$as_save_IFS
9058 test -z "$as_dir" && as_dir=.
9059 for ac_exec_ext in '' $ac_executable_extensions; do
9060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9061 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9063 break 2
9064 fi
9065done
9066done
9067
55db4b87
PB
9068fi
9069fi
9a819804
AO
9070GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9071if test -n "$GFORTRAN_FOR_TARGET"; then
9072 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9073echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9074else
c6b750e1
DJ
9075 echo "$as_me:$LINENO: result: no" >&5
9076echo "${ECHO_T}no" >&6
55db4b87 9077fi
c6b750e1 9078
2429c060
PB
9079 done
9080fi
c6b750e1 9081
9a819804 9082if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9083 for ncn_progname in gfortran; do
c6b750e1
DJ
9084 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9085echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9086 if test -x $with_build_time_tools/${ncn_progname}; then
9087 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9088 echo "$as_me:$LINENO: result: yes" >&5
9089echo "${ECHO_T}yes" >&6
2429c060
PB
9090 break
9091 else
c6b750e1
DJ
9092 echo "$as_me:$LINENO: result: no" >&5
9093echo "${ECHO_T}no" >&6
2429c060
PB
9094 fi
9095 done
9096fi
9097
9098if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9099 for ncn_progname in gfortran; do
9100 if test -n "$ncn_target_tool_prefix"; then
9101 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9102set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9103echo "$as_me:$LINENO: checking for $ac_word" >&5
9104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9105if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9107else
9108 if test -n "$GFORTRAN_FOR_TARGET"; then
9109 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9110else
c6b750e1
DJ
9111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112for as_dir in $PATH
9113do
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9118 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122done
9123done
9124
55db4b87
PB
9125fi
9126fi
c6b750e1 9127GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9128if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9129 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9130echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9131else
c6b750e1
DJ
9132 echo "$as_me:$LINENO: result: no" >&5
9133echo "${ECHO_T}no" >&6
55db4b87
PB
9134fi
9135
2429c060
PB
9136 fi
9137 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9139set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9140echo "$as_me:$LINENO: checking for $ac_word" >&5
9141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9142if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9144else
05cbd757 9145 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9146 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9147else
9148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149for as_dir in $PATH
9150do
9151 IFS=$as_save_IFS
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9155 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 break 2
9158 fi
9159done
9160done
9161
55db4b87
PB
9162fi
9163fi
c6b750e1 9164GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9165if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9166 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9167echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9168else
c6b750e1
DJ
9169 echo "$as_me:$LINENO: result: no" >&5
9170echo "${ECHO_T}no" >&6
55db4b87 9171fi
c6b750e1 9172
2429c060
PB
9173 fi
9174 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9175 done
9176fi
c6b750e1 9177
05cbd757
PB
9178if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9179 set dummy gfortran
9180 if test $build = $target ; then
9181 GFORTRAN_FOR_TARGET="$2"
55db4b87 9182 else
05cbd757 9183 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9184 fi
d3f5afc4
MS
9185else
9186 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9187fi
9188
2429c060
PB
9189
9190
2429c060
PB
9191cat > conftest.c << \EOF
9192#ifdef __GNUC__
9193 gcc_yay;
9194#endif
9195EOF
9196if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9197 have_gcc_for_target=yes
859789af 9198else
2429c060
PB
9199 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9200 have_gcc_for_target=no
859789af 9201fi
2429c060
PB
9202rm conftest.c
9203
9204
9205
859789af 9206
2429c060
PB
9207if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9208 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9209 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9210echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9211 if test -x $with_build_time_tools/ar; then
9212 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9213 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
9214 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9215echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 9216 else
c6b750e1
DJ
9217 echo "$as_me:$LINENO: result: no" >&5
9218echo "${ECHO_T}no" >&6
3a35eeb3 9219 fi
2429c060
PB
9220 elif test $build != $host && test $have_gcc_for_target = yes; then
9221 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9222 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9223 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9224 fi
2429c060 9225fi
c6b750e1 9226if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9227 # Extract the first word of "ar", so it can be a program name with args.
9228set dummy ar; ac_word=$2
c6b750e1
DJ
9229echo "$as_me:$LINENO: checking for $ac_word" >&5
9230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9231if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9233else
c6b750e1
DJ
9234 case $AR_FOR_TARGET in
9235 [\\/]* | ?:[\\/]*)
2429c060
PB
9236 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9237 ;;
2429c060 9238 *)
c6b750e1
DJ
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240for as_dir in $gcc_cv_tool_dirs
9241do
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9246 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 break 2
9249 fi
9250done
9251done
9252
2429c060
PB
9253 ;;
9254esac
859789af 9255fi
c6b750e1
DJ
9256AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9257
2429c060 9258if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9259 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9260echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 9261else
c6b750e1
DJ
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
859789af 9264fi
05cbd757 9265
2429c060
PB
9266fi
9267if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9268
9269
9270if test -n "$AR_FOR_TARGET"; then
9271 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9272elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9273 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9274fi
9275
9276if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9277 for ncn_progname in ar; do
9278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9279set dummy ${ncn_progname}; ac_word=$2
9280echo "$as_me:$LINENO: checking for $ac_word" >&5
9281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9282if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284else
9285 if test -n "$AR_FOR_TARGET"; then
9286 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9287else
9288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289for as_dir in $PATH
9290do
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9295 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9298 fi
9299done
9300done
9301
9302fi
9303fi
9304AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9305if test -n "$AR_FOR_TARGET"; then
9306 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9307echo "${ECHO_T}$AR_FOR_TARGET" >&6
9308else
9309 echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
9311fi
9312
9313 done
9314fi
9315
9316if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9317 for ncn_progname in ar; do
c6b750e1
DJ
9318 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9319echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9320 if test -x $with_build_time_tools/${ncn_progname}; then
9321 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9322 echo "$as_me:$LINENO: result: yes" >&5
9323echo "${ECHO_T}yes" >&6
2429c060
PB
9324 break
9325 else
c6b750e1
DJ
9326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
2429c060
PB
9328 fi
9329 done
859789af
AC
9330fi
9331
2429c060
PB
9332if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9333 for ncn_progname in ar; do
9334 if test -n "$ncn_target_tool_prefix"; then
9335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9336set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9337echo "$as_me:$LINENO: checking for $ac_word" >&5
9338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9339if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9341else
2429c060
PB
9342 if test -n "$AR_FOR_TARGET"; then
9343 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9344else
c6b750e1
DJ
9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346for as_dir in $PATH
9347do
9348 IFS=$as_save_IFS
9349 test -z "$as_dir" && as_dir=.
9350 for ac_exec_ext in '' $ac_executable_extensions; do
9351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9352 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9354 break 2
9355 fi
9356done
9357done
9358
7e0f7140
GK
9359fi
9360fi
c6b750e1 9361AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9362if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9363 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9364echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9365else
c6b750e1
DJ
9366 echo "$as_me:$LINENO: result: no" >&5
9367echo "${ECHO_T}no" >&6
7e0f7140
GK
9368fi
9369
2429c060
PB
9370 fi
9371 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9373set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9374echo "$as_me:$LINENO: checking for $ac_word" >&5
9375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9376if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9378else
2429c060
PB
9379 if test -n "$AR_FOR_TARGET"; then
9380 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9381else
c6b750e1
DJ
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9389 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9392 fi
9393done
9394done
9395
7e0f7140
GK
9396fi
9397fi
c6b750e1 9398AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9399if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9400 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9401echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9402else
c6b750e1
DJ
9403 echo "$as_me:$LINENO: result: no" >&5
9404echo "${ECHO_T}no" >&6
7e0f7140 9405fi
c6b750e1 9406
2429c060
PB
9407 fi
9408 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9409 done
9410fi
c6b750e1 9411
2429c060
PB
9412if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9413 set dummy ar
7e0f7140 9414 if test $build = $target ; then
2429c060 9415 AR_FOR_TARGET="$2"
7e0f7140 9416 else
2429c060 9417 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9418 fi
d3f5afc4
MS
9419else
9420 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9421fi
9422
3a35eeb3
PB
9423else
9424 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9425fi
9426
9427
9428
9429
9430if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9431 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9432 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9433echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9434 if test -x $with_build_time_tools/as; then
9435 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9436 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9437 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9438echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9439 else
c6b750e1
DJ
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
3a35eeb3 9442 fi
2429c060
PB
9443 elif test $build != $host && test $have_gcc_for_target = yes; then
9444 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9445 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9446 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9447 fi
9448fi
c6b750e1 9449if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9450 # Extract the first word of "as", so it can be a program name with args.
9451set dummy as; ac_word=$2
c6b750e1
DJ
9452echo "$as_me:$LINENO: checking for $ac_word" >&5
9453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9454if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9456else
c6b750e1
DJ
9457 case $AS_FOR_TARGET in
9458 [\\/]* | ?:[\\/]*)
2429c060
PB
9459 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9460 ;;
2429c060 9461 *)
c6b750e1
DJ
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $gcc_cv_tool_dirs
9464do
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9472 fi
9473done
9474done
9475
2429c060
PB
9476 ;;
9477esac
9478fi
c6b750e1
DJ
9479AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9480
2429c060 9481if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9482 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9483echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9484else
c6b750e1
DJ
9485 echo "$as_me:$LINENO: result: no" >&5
9486echo "${ECHO_T}no" >&6
2429c060
PB
9487fi
9488
9489fi
9490if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9491
9492
9493if test -n "$AS_FOR_TARGET"; then
9494 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9495elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9496 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9497fi
9498
9499if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9500 for ncn_progname in as; do
9501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9502set dummy ${ncn_progname}; ac_word=$2
9503echo "$as_me:$LINENO: checking for $ac_word" >&5
9504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9505if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507else
9508 if test -n "$AS_FOR_TARGET"; then
9509 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9510else
9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 break 2
9521 fi
9522done
9523done
9524
9525fi
9526fi
9527AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9528if test -n "$AS_FOR_TARGET"; then
9529 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9530echo "${ECHO_T}$AS_FOR_TARGET" >&6
9531else
9532 echo "$as_me:$LINENO: result: no" >&5
9533echo "${ECHO_T}no" >&6
9534fi
9535
9536 done
9537fi
9538
9539if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9540 for ncn_progname in as; do
c6b750e1
DJ
9541 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9542echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9543 if test -x $with_build_time_tools/${ncn_progname}; then
9544 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9545 echo "$as_me:$LINENO: result: yes" >&5
9546echo "${ECHO_T}yes" >&6
2429c060
PB
9547 break
9548 else
c6b750e1
DJ
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
2429c060
PB
9551 fi
9552 done
9553fi
9554
9555if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9556 for ncn_progname in as; do
9557 if test -n "$ncn_target_tool_prefix"; then
9558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9559set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9560echo "$as_me:$LINENO: checking for $ac_word" >&5
9561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9562if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9564else
9565 if test -n "$AS_FOR_TARGET"; then
9566 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9567else
c6b750e1
DJ
9568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569for as_dir in $PATH
9570do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9578 fi
9579done
9580done
9581
2429c060
PB
9582fi
9583fi
c6b750e1 9584AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9585if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9586 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9587echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9588else
c6b750e1
DJ
9589 echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6
2429c060
PB
9591fi
9592
9593 fi
9594 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9597echo "$as_me:$LINENO: checking for $ac_word" >&5
9598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9599if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9601else
9602 if test -n "$AS_FOR_TARGET"; then
9603 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9604else
c6b750e1
DJ
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9615 fi
9616done
9617done
9618
2429c060
PB
9619fi
9620fi
c6b750e1 9621AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9622if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9623 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9624echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9625else
c6b750e1
DJ
9626 echo "$as_me:$LINENO: result: no" >&5
9627echo "${ECHO_T}no" >&6
2429c060 9628fi
c6b750e1 9629
2429c060
PB
9630 fi
9631 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9632 done
9633fi
c6b750e1 9634
2429c060
PB
9635if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9636 set dummy as
9637 if test $build = $target ; then
9638 AS_FOR_TARGET="$2"
9639 else
9640 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9641 fi
d3f5afc4
MS
9642else
9643 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9644fi
9645
3a35eeb3
PB
9646else
9647 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9648fi
9649
9650
9651
9652
9653if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9654 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9655 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9656echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9657 if test -x $with_build_time_tools/dlltool; then
9658 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9659 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9660 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9661echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9662 else
c6b750e1
DJ
9663 echo "$as_me:$LINENO: result: no" >&5
9664echo "${ECHO_T}no" >&6
3a35eeb3 9665 fi
2429c060
PB
9666 elif test $build != $host && test $have_gcc_for_target = yes; then
9667 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9668 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9669 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9670 fi
9671fi
c6b750e1 9672if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9673 # Extract the first word of "dlltool", so it can be a program name with args.
9674set dummy dlltool; ac_word=$2
c6b750e1
DJ
9675echo "$as_me:$LINENO: checking for $ac_word" >&5
9676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9677if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9679else
c6b750e1
DJ
9680 case $DLLTOOL_FOR_TARGET in
9681 [\\/]* | ?:[\\/]*)
2429c060
PB
9682 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9683 ;;
2429c060 9684 *)
c6b750e1
DJ
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686for as_dir in $gcc_cv_tool_dirs
9687do
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9695 fi
9696done
9697done
9698
2429c060
PB
9699 ;;
9700esac
9701fi
c6b750e1
DJ
9702DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9703
2429c060 9704if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9705 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9706echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9707else
c6b750e1
DJ
9708 echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6
2429c060
PB
9710fi
9711
9712fi
9713if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9714
9715
9716if test -n "$DLLTOOL_FOR_TARGET"; then
9717 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9718elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9719 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9720fi
9721
9722if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9723 for ncn_progname in dlltool; do
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725set dummy ${ncn_progname}; ac_word=$2
9726echo "$as_me:$LINENO: checking for $ac_word" >&5
9727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9728if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730else
9731 if test -n "$DLLTOOL_FOR_TARGET"; then
9732 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9733else
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9744 fi
9745done
9746done
9747
9748fi
9749fi
9750DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9751if test -n "$DLLTOOL_FOR_TARGET"; then
9752 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9753echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9754else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757fi
9758
9759 done
9760fi
9761
9762if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9763 for ncn_progname in dlltool; do
c6b750e1
DJ
9764 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9765echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9766 if test -x $with_build_time_tools/${ncn_progname}; then
9767 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9768 echo "$as_me:$LINENO: result: yes" >&5
9769echo "${ECHO_T}yes" >&6
2429c060
PB
9770 break
9771 else
c6b750e1
DJ
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
2429c060
PB
9774 fi
9775 done
9776fi
9777
9778if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9779 for ncn_progname in dlltool; do
9780 if test -n "$ncn_target_tool_prefix"; then
9781 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9782set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9783echo "$as_me:$LINENO: checking for $ac_word" >&5
9784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9785if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9787else
9788 if test -n "$DLLTOOL_FOR_TARGET"; then
9789 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9790else
c6b750e1
DJ
9791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792for as_dir in $PATH
9793do
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9798 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 break 2
9801 fi
9802done
9803done
9804
2429c060
PB
9805fi
9806fi
c6b750e1 9807DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9808if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9809 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9810echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9811else
c6b750e1
DJ
9812 echo "$as_me:$LINENO: result: no" >&5
9813echo "${ECHO_T}no" >&6
2429c060
PB
9814fi
9815
9816 fi
9817 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9819set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9820echo "$as_me:$LINENO: checking for $ac_word" >&5
9821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9822if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9824else
9825 if test -n "$DLLTOOL_FOR_TARGET"; then
9826 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9827else
c6b750e1
DJ
9828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829for as_dir in $PATH
9830do
9831 IFS=$as_save_IFS
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9835 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 break 2
9838 fi
9839done
9840done
9841
2429c060
PB
9842fi
9843fi
c6b750e1 9844DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9845if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9846 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9847echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9848else
c6b750e1
DJ
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
2429c060 9851fi
c6b750e1 9852
2429c060
PB
9853 fi
9854 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9855 done
9856fi
c6b750e1 9857
2429c060
PB
9858if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9859 set dummy dlltool
9860 if test $build = $target ; then
9861 DLLTOOL_FOR_TARGET="$2"
9862 else
9863 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9864 fi
d3f5afc4
MS
9865else
9866 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9867fi
9868
3a35eeb3
PB
9869else
9870 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9871fi
9872
9873
9874
9875
9876if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9877 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9878 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9879echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9880 if test -x $with_build_time_tools/ld; then
9881 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9882 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9883 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9884echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9885 else
c6b750e1
DJ
9886 echo "$as_me:$LINENO: result: no" >&5
9887echo "${ECHO_T}no" >&6
3a35eeb3 9888 fi
2429c060
PB
9889 elif test $build != $host && test $have_gcc_for_target = yes; then
9890 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9891 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9892 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9893 fi
9894fi
c6b750e1 9895if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9896 # Extract the first word of "ld", so it can be a program name with args.
9897set dummy ld; ac_word=$2
c6b750e1
DJ
9898echo "$as_me:$LINENO: checking for $ac_word" >&5
9899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9900if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9902else
c6b750e1
DJ
9903 case $LD_FOR_TARGET in
9904 [\\/]* | ?:[\\/]*)
2429c060
PB
9905 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9906 ;;
2429c060 9907 *)
c6b750e1
DJ
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $gcc_cv_tool_dirs
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9915 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 break 2
9918 fi
9919done
9920done
9921
2429c060
PB
9922 ;;
9923esac
9924fi
c6b750e1
DJ
9925LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9926
2429c060 9927if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9928 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9929echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9930else
c6b750e1
DJ
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
2429c060
PB
9933fi
9934
9935fi
9936if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9937
9938
9939if test -n "$LD_FOR_TARGET"; then
9940 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9941elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9942 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9943fi
9944
9945if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9946 for ncn_progname in ld; do
9947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9948set dummy ${ncn_progname}; ac_word=$2
9949echo "$as_me:$LINENO: checking for $ac_word" >&5
9950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9951if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 if test -n "$LD_FOR_TARGET"; then
9955 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969done
9970
9971fi
9972fi
9973LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9974if test -n "$LD_FOR_TARGET"; then
9975 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9976echo "${ECHO_T}$LD_FOR_TARGET" >&6
9977else
9978 echo "$as_me:$LINENO: result: no" >&5
9979echo "${ECHO_T}no" >&6
9980fi
9981
9982 done
9983fi
9984
9985if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9986 for ncn_progname in ld; do
c6b750e1
DJ
9987 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9988echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9989 if test -x $with_build_time_tools/${ncn_progname}; then
9990 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9991 echo "$as_me:$LINENO: result: yes" >&5
9992echo "${ECHO_T}yes" >&6
2429c060
PB
9993 break
9994 else
c6b750e1
DJ
9995 echo "$as_me:$LINENO: result: no" >&5
9996echo "${ECHO_T}no" >&6
2429c060
PB
9997 fi
9998 done
9999fi
10000
10001if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10002 for ncn_progname in ld; do
10003 if test -n "$ncn_target_tool_prefix"; then
10004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10005set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10006echo "$as_me:$LINENO: checking for $ac_word" >&5
10007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10008if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10010else
10011 if test -n "$LD_FOR_TARGET"; then
10012 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10013else
c6b750e1
DJ
10014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10015for as_dir in $PATH
10016do
10017 IFS=$as_save_IFS
10018 test -z "$as_dir" && as_dir=.
10019 for ac_exec_ext in '' $ac_executable_extensions; do
10020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10021 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10023 break 2
10024 fi
10025done
10026done
10027
2429c060
PB
10028fi
10029fi
c6b750e1 10030LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10031if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10032 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10033echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10034else
c6b750e1
DJ
10035 echo "$as_me:$LINENO: result: no" >&5
10036echo "${ECHO_T}no" >&6
2429c060
PB
10037fi
10038
10039 fi
10040 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10042set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10043echo "$as_me:$LINENO: checking for $ac_word" >&5
10044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10045if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10047else
10048 if test -n "$LD_FOR_TARGET"; then
10049 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10050else
c6b750e1
DJ
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062done
10063done
10064
2429c060
PB
10065fi
10066fi
c6b750e1 10067LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10068if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10069 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10070echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10071else
c6b750e1
DJ
10072 echo "$as_me:$LINENO: result: no" >&5
10073echo "${ECHO_T}no" >&6
2429c060 10074fi
c6b750e1 10075
2429c060
PB
10076 fi
10077 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10078 done
10079fi
c6b750e1 10080
2429c060
PB
10081if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10082 set dummy ld
10083 if test $build = $target ; then
10084 LD_FOR_TARGET="$2"
10085 else
10086 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10087 fi
d3f5afc4
MS
10088else
10089 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10090fi
10091
3a35eeb3
PB
10092else
10093 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10094fi
10095
10096
10097
10098
10099if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10100 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10101 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10102echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10103 if test -x $with_build_time_tools/lipo; then
10104 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10105 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
10106 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10107echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 10108 else
c6b750e1
DJ
10109 echo "$as_me:$LINENO: result: no" >&5
10110echo "${ECHO_T}no" >&6
3a35eeb3 10111 fi
2429c060
PB
10112 elif test $build != $host && test $have_gcc_for_target = yes; then
10113 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10114 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10115 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10116 fi
10117fi
9a819804
AO
10118if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10119 # Extract the first word of "lipo", so it can be a program name with args.
10120set dummy lipo; ac_word=$2
10121echo "$as_me:$LINENO: checking for $ac_word" >&5
10122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10123if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126 case $LIPO_FOR_TARGET in
10127 [\\/]* | ?:[\\/]*)
10128 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10129 ;;
10130 *)
10131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132for as_dir in $gcc_cv_tool_dirs
10133do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 break 2
10141 fi
10142done
10143done
10144
10145 ;;
10146esac
10147fi
10148LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10149
10150if test -n "$LIPO_FOR_TARGET"; then
10151 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10152echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10153else
10154 echo "$as_me:$LINENO: result: no" >&5
10155echo "${ECHO_T}no" >&6
10156fi
10157
10158fi
10159if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10160
10161
10162if test -n "$LIPO_FOR_TARGET"; then
10163 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10164elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10165 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10166fi
10167
10168if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10169 for ncn_progname in lipo; do
10170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10171set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10172echo "$as_me:$LINENO: checking for $ac_word" >&5
10173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 10174if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 10175 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10176else
9a819804
AO
10177 if test -n "$LIPO_FOR_TARGET"; then
10178 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10179else
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
c6b750e1
DJ
10182do
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10187 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
10188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 break 2
10190 fi
10191done
10192done
10193
2429c060 10194fi
9a819804
AO
10195fi
10196LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10197if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10198 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10199echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10200else
c6b750e1
DJ
10201 echo "$as_me:$LINENO: result: no" >&5
10202echo "${ECHO_T}no" >&6
2429c060
PB
10203fi
10204
9a819804 10205 done
2429c060 10206fi
9a819804
AO
10207
10208if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10209 for ncn_progname in lipo; do
c6b750e1
DJ
10210 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10211echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10212 if test -x $with_build_time_tools/${ncn_progname}; then
10213 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10214 echo "$as_me:$LINENO: result: yes" >&5
10215echo "${ECHO_T}yes" >&6
2429c060
PB
10216 break
10217 else
c6b750e1
DJ
10218 echo "$as_me:$LINENO: result: no" >&5
10219echo "${ECHO_T}no" >&6
2429c060
PB
10220 fi
10221 done
10222fi
10223
10224if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10225 for ncn_progname in lipo; do
10226 if test -n "$ncn_target_tool_prefix"; then
10227 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10228set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10229echo "$as_me:$LINENO: checking for $ac_word" >&5
10230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10231if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10233else
10234 if test -n "$LIPO_FOR_TARGET"; then
10235 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10236else
c6b750e1
DJ
10237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 break 2
10247 fi
10248done
10249done
10250
2429c060
PB
10251fi
10252fi
c6b750e1 10253LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10254if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10255 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10256echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10257else
c6b750e1
DJ
10258 echo "$as_me:$LINENO: result: no" >&5
10259echo "${ECHO_T}no" >&6
2429c060
PB
10260fi
10261
10262 fi
10263 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10265set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10266echo "$as_me:$LINENO: checking for $ac_word" >&5
10267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10268if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10270else
10271 if test -n "$LIPO_FOR_TARGET"; then
10272 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10273else
c6b750e1
DJ
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10284 fi
10285done
10286done
10287
2429c060
PB
10288fi
10289fi
c6b750e1 10290LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10291if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10292 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10293echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10294else
c6b750e1
DJ
10295 echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
2429c060 10297fi
c6b750e1 10298
2429c060
PB
10299 fi
10300 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10301 done
10302fi
c6b750e1 10303
2429c060
PB
10304if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10305 set dummy lipo
10306 if test $build = $target ; then
10307 LIPO_FOR_TARGET="$2"
10308 else
10309 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10310 fi
d3f5afc4
MS
10311else
10312 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10313fi
10314
3a35eeb3
PB
10315else
10316 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10317fi
10318
10319
10320
10321
10322if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10323 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10324 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10325echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10326 if test -x $with_build_time_tools/nm; then
10327 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10328 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10329 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10330echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10331 else
c6b750e1
DJ
10332 echo "$as_me:$LINENO: result: no" >&5
10333echo "${ECHO_T}no" >&6
3a35eeb3 10334 fi
2429c060
PB
10335 elif test $build != $host && test $have_gcc_for_target = yes; then
10336 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10337 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10338 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10339 fi
10340fi
c6b750e1 10341if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10342 # Extract the first word of "nm", so it can be a program name with args.
10343set dummy nm; ac_word=$2
c6b750e1
DJ
10344echo "$as_me:$LINENO: checking for $ac_word" >&5
10345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10346if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10348else
c6b750e1
DJ
10349 case $NM_FOR_TARGET in
10350 [\\/]* | ?:[\\/]*)
2429c060
PB
10351 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10352 ;;
2429c060 10353 *)
c6b750e1
DJ
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $gcc_cv_tool_dirs
10356do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365done
10366done
10367
2429c060
PB
10368 ;;
10369esac
10370fi
c6b750e1
DJ
10371NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10372
2429c060 10373if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10374 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10375echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10376else
c6b750e1
DJ
10377 echo "$as_me:$LINENO: result: no" >&5
10378echo "${ECHO_T}no" >&6
2429c060
PB
10379fi
10380
10381fi
10382if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10383
10384
10385if test -n "$NM_FOR_TARGET"; then
10386 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10387elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10388 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10389fi
10390
10391if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10392 for ncn_progname in nm; do
10393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10394set dummy ${ncn_progname}; ac_word=$2
10395echo "$as_me:$LINENO: checking for $ac_word" >&5
10396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399else
10400 if test -n "$NM_FOR_TARGET"; then
10401 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10402else
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415done
10416
10417fi
10418fi
10419NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10420if test -n "$NM_FOR_TARGET"; then
10421 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10422echo "${ECHO_T}$NM_FOR_TARGET" >&6
10423else
10424 echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
10426fi
10427
10428 done
10429fi
10430
10431if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10432 for ncn_progname in nm; do
c6b750e1
DJ
10433 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10434echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10435 if test -x $with_build_time_tools/${ncn_progname}; then
10436 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10437 echo "$as_me:$LINENO: result: yes" >&5
10438echo "${ECHO_T}yes" >&6
2429c060
PB
10439 break
10440 else
c6b750e1
DJ
10441 echo "$as_me:$LINENO: result: no" >&5
10442echo "${ECHO_T}no" >&6
2429c060
PB
10443 fi
10444 done
10445fi
10446
10447if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10448 for ncn_progname in nm; do
10449 if test -n "$ncn_target_tool_prefix"; then
10450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10452echo "$as_me:$LINENO: checking for $ac_word" >&5
10453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10454if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10456else
55db4b87
PB
10457 if test -n "$NM_FOR_TARGET"; then
10458 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10459else
c6b750e1
DJ
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10470 fi
10471done
10472done
10473
859789af
AC
10474fi
10475fi
c6b750e1 10476NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10477if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10478 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10479echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10480else
c6b750e1
DJ
10481 echo "$as_me:$LINENO: result: no" >&5
10482echo "${ECHO_T}no" >&6
859789af
AC
10483fi
10484
2429c060
PB
10485 fi
10486 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10488set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10489echo "$as_me:$LINENO: checking for $ac_word" >&5
10490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10491if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10493else
05cbd757
PB
10494 if test -n "$NM_FOR_TARGET"; then
10495 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10496else
c6b750e1
DJ
10497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498for as_dir in $PATH
10499do
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10506 break 2
10507 fi
10508done
10509done
10510
859789af
AC
10511fi
10512fi
c6b750e1 10513NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10514if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10515 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10516echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10517else
c6b750e1
DJ
10518 echo "$as_me:$LINENO: result: no" >&5
10519echo "${ECHO_T}no" >&6
859789af 10520fi
c6b750e1 10521
2429c060
PB
10522 fi
10523 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10524 done
10525fi
c6b750e1 10526
05cbd757
PB
10527if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10528 set dummy nm
10529 if test $build = $target ; then
10530 NM_FOR_TARGET="$2"
859789af 10531 else
05cbd757 10532 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10533 fi
d3f5afc4
MS
10534else
10535 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10536fi
10537
3a35eeb3
PB
10538else
10539 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10540fi
10541
10542
10543
10544
10545if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10546 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10547 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10548echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10549 if test -x $with_build_time_tools/objdump; then
10550 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10551 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10552 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10553echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10554 else
c6b750e1
DJ
10555 echo "$as_me:$LINENO: result: no" >&5
10556echo "${ECHO_T}no" >&6
3a35eeb3 10557 fi
2429c060
PB
10558 elif test $build != $host && test $have_gcc_for_target = yes; then
10559 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10560 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10561 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10562 fi
10563fi
c6b750e1 10564if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10565 # Extract the first word of "objdump", so it can be a program name with args.
10566set dummy objdump; ac_word=$2
c6b750e1
DJ
10567echo "$as_me:$LINENO: checking for $ac_word" >&5
10568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10569if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10571else
c6b750e1
DJ
10572 case $OBJDUMP_FOR_TARGET in
10573 [\\/]* | ?:[\\/]*)
2429c060
PB
10574 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10575 ;;
2429c060 10576 *)
c6b750e1
DJ
10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $gcc_cv_tool_dirs
10579do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588done
10589done
10590
2429c060
PB
10591 ;;
10592esac
10593fi
c6b750e1
DJ
10594OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10595
2429c060 10596if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10597 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10598echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10599else
c6b750e1
DJ
10600 echo "$as_me:$LINENO: result: no" >&5
10601echo "${ECHO_T}no" >&6
2429c060
PB
10602fi
10603
10604fi
10605if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10606
10607
10608if test -n "$OBJDUMP_FOR_TARGET"; then
10609 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10610elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10611 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10612fi
10613
10614if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10615 for ncn_progname in objdump; do
10616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10617set dummy ${ncn_progname}; ac_word=$2
10618echo "$as_me:$LINENO: checking for $ac_word" >&5
10619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10620if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 if test -n "$OBJDUMP_FOR_TARGET"; then
10624 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639
10640fi
10641fi
10642OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10643if test -n "$OBJDUMP_FOR_TARGET"; then
10644 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10645echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10646else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649fi
10650
10651 done
10652fi
10653
10654if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10655 for ncn_progname in objdump; do
c6b750e1
DJ
10656 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10657echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10658 if test -x $with_build_time_tools/${ncn_progname}; then
10659 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10660 echo "$as_me:$LINENO: result: yes" >&5
10661echo "${ECHO_T}yes" >&6
2429c060
PB
10662 break
10663 else
c6b750e1
DJ
10664 echo "$as_me:$LINENO: result: no" >&5
10665echo "${ECHO_T}no" >&6
2429c060
PB
10666 fi
10667 done
10668fi
10669
10670if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10671 for ncn_progname in objdump; do
10672 if test -n "$ncn_target_tool_prefix"; then
10673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10674set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10675echo "$as_me:$LINENO: checking for $ac_word" >&5
10676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10677if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10679else
10680 if test -n "$OBJDUMP_FOR_TARGET"; then
10681 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10682else
c6b750e1
DJ
10683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684for as_dir in $PATH
10685do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10693 fi
10694done
10695done
10696
5ae72758
DJ
10697fi
10698fi
c6b750e1 10699OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10700if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10701 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10702echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10703else
c6b750e1
DJ
10704 echo "$as_me:$LINENO: result: no" >&5
10705echo "${ECHO_T}no" >&6
5ae72758
DJ
10706fi
10707
2429c060
PB
10708 fi
10709 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10711set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10712echo "$as_me:$LINENO: checking for $ac_word" >&5
10713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10714if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10716else
10717 if test -n "$OBJDUMP_FOR_TARGET"; then
10718 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10719else
c6b750e1
DJ
10720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721for as_dir in $PATH
10722do
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10730 fi
10731done
10732done
10733
5ae72758
DJ
10734fi
10735fi
c6b750e1 10736OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10737if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10738 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10739echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10740else
c6b750e1
DJ
10741 echo "$as_me:$LINENO: result: no" >&5
10742echo "${ECHO_T}no" >&6
5ae72758 10743fi
c6b750e1 10744
2429c060
PB
10745 fi
10746 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10747 done
10748fi
c6b750e1 10749
5ae72758
DJ
10750if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10751 set dummy objdump
10752 if test $build = $target ; then
10753 OBJDUMP_FOR_TARGET="$2"
10754 else
10755 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10756 fi
d3f5afc4
MS
10757else
10758 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10759fi
10760
3a35eeb3
PB
10761else
10762 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10763fi
10764
10765
10766
10767
10768if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10769 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10770 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10771echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10772 if test -x $with_build_time_tools/ranlib; then
10773 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10774 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10775 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10776echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10777 else
c6b750e1
DJ
10778 echo "$as_me:$LINENO: result: no" >&5
10779echo "${ECHO_T}no" >&6
3a35eeb3 10780 fi
2429c060
PB
10781 elif test $build != $host && test $have_gcc_for_target = yes; then
10782 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10783 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10784 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10785 fi
10786fi
c6b750e1 10787if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10788 # Extract the first word of "ranlib", so it can be a program name with args.
10789set dummy ranlib; ac_word=$2
c6b750e1
DJ
10790echo "$as_me:$LINENO: checking for $ac_word" >&5
10791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10794else
c6b750e1
DJ
10795 case $RANLIB_FOR_TARGET in
10796 [\\/]* | ?:[\\/]*)
2429c060
PB
10797 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10798 ;;
2429c060 10799 *)
c6b750e1
DJ
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $gcc_cv_tool_dirs
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811done
10812done
10813
2429c060
PB
10814 ;;
10815esac
10816fi
c6b750e1
DJ
10817RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10818
2429c060 10819if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10820 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10821echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10822else
c6b750e1
DJ
10823 echo "$as_me:$LINENO: result: no" >&5
10824echo "${ECHO_T}no" >&6
2429c060
PB
10825fi
10826
10827fi
10828if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10829
10830
10831if test -n "$RANLIB_FOR_TARGET"; then
10832 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10833elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10834 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10835fi
10836
10837if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10838 for ncn_progname in ranlib; do
10839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10840set dummy ${ncn_progname}; ac_word=$2
10841echo "$as_me:$LINENO: checking for $ac_word" >&5
10842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10843if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 if test -n "$RANLIB_FOR_TARGET"; then
10847 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10848else
10849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850for as_dir in $PATH
10851do
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10856 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10859 fi
10860done
10861done
10862
10863fi
10864fi
10865RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10866if test -n "$RANLIB_FOR_TARGET"; then
10867 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10868echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10869else
10870 echo "$as_me:$LINENO: result: no" >&5
10871echo "${ECHO_T}no" >&6
10872fi
10873
10874 done
10875fi
10876
10877if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10878 for ncn_progname in ranlib; do
c6b750e1
DJ
10879 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10880echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10881 if test -x $with_build_time_tools/${ncn_progname}; then
10882 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10883 echo "$as_me:$LINENO: result: yes" >&5
10884echo "${ECHO_T}yes" >&6
2429c060
PB
10885 break
10886 else
c6b750e1
DJ
10887 echo "$as_me:$LINENO: result: no" >&5
10888echo "${ECHO_T}no" >&6
2429c060
PB
10889 fi
10890 done
10891fi
10892
10893if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10894 for ncn_progname in ranlib; do
10895 if test -n "$ncn_target_tool_prefix"; then
10896 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10897set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10898echo "$as_me:$LINENO: checking for $ac_word" >&5
10899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10900if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10902else
55db4b87
PB
10903 if test -n "$RANLIB_FOR_TARGET"; then
10904 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10905else
c6b750e1
DJ
10906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907for as_dir in $PATH
10908do
10909 IFS=$as_save_IFS
10910 test -z "$as_dir" && as_dir=.
10911 for ac_exec_ext in '' $ac_executable_extensions; do
10912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10913 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 break 2
10916 fi
10917done
10918done
10919
859789af
AC
10920fi
10921fi
c6b750e1 10922RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10923if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10924 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10925echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10926else
c6b750e1
DJ
10927 echo "$as_me:$LINENO: result: no" >&5
10928echo "${ECHO_T}no" >&6
859789af
AC
10929fi
10930
2429c060
PB
10931 fi
10932 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10934set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10935echo "$as_me:$LINENO: checking for $ac_word" >&5
10936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10937if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10939else
05cbd757
PB
10940 if test -n "$RANLIB_FOR_TARGET"; then
10941 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10942else
c6b750e1
DJ
10943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944for as_dir in $PATH
10945do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10953 fi
10954done
10955done
10956
859789af
AC
10957fi
10958fi
c6b750e1 10959RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10960if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10961 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10962echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10963else
c6b750e1
DJ
10964 echo "$as_me:$LINENO: result: no" >&5
10965echo "${ECHO_T}no" >&6
859789af 10966fi
c6b750e1 10967
2429c060
PB
10968 fi
10969 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10970 done
10971fi
c6b750e1 10972
2429c060
PB
10973if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10974 set dummy ranlib
10975 if test $build = $target ; then
10976 RANLIB_FOR_TARGET="$2"
10977 else
10978 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10979 fi
d3f5afc4
MS
10980else
10981 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10982fi
05cbd757 10983
3a35eeb3
PB
10984else
10985 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10986fi
10987
2429c060
PB
10988
10989
10990
10991if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10992 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10993 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10994echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10995 if test -x $with_build_time_tools/strip; then
10996 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10997 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10998 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10999echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 11000 else
c6b750e1
DJ
11001 echo "$as_me:$LINENO: result: no" >&5
11002echo "${ECHO_T}no" >&6
3a35eeb3 11003 fi
2429c060
PB
11004 elif test $build != $host && test $have_gcc_for_target = yes; then
11005 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11006 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11007 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11008 fi
11009fi
c6b750e1 11010if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11011 # Extract the first word of "strip", so it can be a program name with args.
11012set dummy strip; ac_word=$2
c6b750e1
DJ
11013echo "$as_me:$LINENO: checking for $ac_word" >&5
11014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11015if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11017else
c6b750e1
DJ
11018 case $STRIP_FOR_TARGET in
11019 [\\/]* | ?:[\\/]*)
2429c060
PB
11020 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11021 ;;
2429c060 11022 *)
c6b750e1
DJ
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $gcc_cv_tool_dirs
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11033 fi
11034done
11035done
11036
2429c060
PB
11037 ;;
11038esac
11039fi
c6b750e1
DJ
11040STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11041
2429c060 11042if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11043 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11044echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 11045else
c6b750e1
DJ
11046 echo "$as_me:$LINENO: result: no" >&5
11047echo "${ECHO_T}no" >&6
2429c060
PB
11048fi
11049
11050fi
11051if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11052
11053
11054if test -n "$STRIP_FOR_TARGET"; then
11055 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11056elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11057 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11058fi
11059
11060if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11061 for ncn_progname in strip; do
11062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11063set dummy ${ncn_progname}; ac_word=$2
11064echo "$as_me:$LINENO: checking for $ac_word" >&5
11065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11066if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068else
11069 if test -n "$STRIP_FOR_TARGET"; then
11070 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11071else
11072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in $PATH
11074do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11082 fi
11083done
11084done
11085
11086fi
11087fi
11088STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11089if test -n "$STRIP_FOR_TARGET"; then
11090 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11091echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11092else
11093 echo "$as_me:$LINENO: result: no" >&5
11094echo "${ECHO_T}no" >&6
11095fi
11096
11097 done
11098fi
11099
11100if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11101 for ncn_progname in strip; do
c6b750e1
DJ
11102 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11103echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11104 if test -x $with_build_time_tools/${ncn_progname}; then
11105 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11106 echo "$as_me:$LINENO: result: yes" >&5
11107echo "${ECHO_T}yes" >&6
2429c060
PB
11108 break
11109 else
c6b750e1
DJ
11110 echo "$as_me:$LINENO: result: no" >&5
11111echo "${ECHO_T}no" >&6
2429c060
PB
11112 fi
11113 done
11114fi
11115
11116if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11117 for ncn_progname in strip; do
11118 if test -n "$ncn_target_tool_prefix"; then
11119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11120set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11121echo "$as_me:$LINENO: checking for $ac_word" >&5
11122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11123if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11125else
11126 if test -n "$STRIP_FOR_TARGET"; then
11127 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11128else
11129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130for as_dir in $PATH
11131do
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11136 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 break 2
11139 fi
11140done
11141done
11142
7e0f7140
GK
11143fi
11144fi
c6b750e1 11145STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11146if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11147 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11148echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11149else
c6b750e1
DJ
11150 echo "$as_me:$LINENO: result: no" >&5
11151echo "${ECHO_T}no" >&6
7e0f7140
GK
11152fi
11153
2429c060
PB
11154 fi
11155 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11157set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11158echo "$as_me:$LINENO: checking for $ac_word" >&5
11159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11160if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11162else
11163 if test -n "$STRIP_FOR_TARGET"; then
11164 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11165else
c6b750e1
DJ
11166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167for as_dir in $PATH
11168do
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11176 fi
11177done
11178done
11179
7e0f7140
GK
11180fi
11181fi
c6b750e1 11182STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11183if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11184 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11185echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11186else
c6b750e1
DJ
11187 echo "$as_me:$LINENO: result: no" >&5
11188echo "${ECHO_T}no" >&6
7e0f7140 11189fi
c6b750e1 11190
2429c060
PB
11191 fi
11192 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11193 done
11194fi
c6b750e1 11195
7e0f7140
GK
11196if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11197 set dummy strip
11198 if test $build = $target ; then
11199 STRIP_FOR_TARGET="$2"
11200 else
11201 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11202 fi
d3f5afc4
MS
11203else
11204 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11205fi
11206
3a35eeb3
PB
11207else
11208 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11209fi
11210
11211
11212
11213
11214if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11215 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11216 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11217echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11218 if test -x $with_build_time_tools/windres; then
11219 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11220 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
11221 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11222echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 11223 else
c6b750e1
DJ
11224 echo "$as_me:$LINENO: result: no" >&5
11225echo "${ECHO_T}no" >&6
3a35eeb3 11226 fi
2429c060
PB
11227 elif test $build != $host && test $have_gcc_for_target = yes; then
11228 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
11229 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11230 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
11231 fi
11232fi
c6b750e1 11233if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11234 # Extract the first word of "windres", so it can be a program name with args.
11235set dummy windres; ac_word=$2
c6b750e1
DJ
11236echo "$as_me:$LINENO: checking for $ac_word" >&5
11237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11238if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11240else
c6b750e1
DJ
11241 case $WINDRES_FOR_TARGET in
11242 [\\/]* | ?:[\\/]*)
2429c060
PB
11243 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11244 ;;
2429c060 11245 *)
c6b750e1
DJ
11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $gcc_cv_tool_dirs
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257done
11258done
11259
2429c060
PB
11260 ;;
11261esac
11262fi
c6b750e1
DJ
11263WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11264
2429c060 11265if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11266 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11267echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 11268else
c6b750e1
DJ
11269 echo "$as_me:$LINENO: result: no" >&5
11270echo "${ECHO_T}no" >&6
2429c060
PB
11271fi
11272
11273fi
11274if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11275
11276
11277if test -n "$WINDRES_FOR_TARGET"; then
11278 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11279elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11280 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11281fi
11282
11283if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11284 for ncn_progname in windres; do
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286set dummy ${ncn_progname}; ac_word=$2
11287echo "$as_me:$LINENO: checking for $ac_word" >&5
11288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11289if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291else
11292 if test -n "$WINDRES_FOR_TARGET"; then
11293 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11294else
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306done
11307done
11308
11309fi
11310fi
11311WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11312if test -n "$WINDRES_FOR_TARGET"; then
11313 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11314echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11315else
11316 echo "$as_me:$LINENO: result: no" >&5
11317echo "${ECHO_T}no" >&6
11318fi
11319
11320 done
11321fi
11322
11323if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11324 for ncn_progname in windres; do
c6b750e1
DJ
11325 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11326echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11327 if test -x $with_build_time_tools/${ncn_progname}; then
11328 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11329 echo "$as_me:$LINENO: result: yes" >&5
11330echo "${ECHO_T}yes" >&6
2429c060
PB
11331 break
11332 else
c6b750e1
DJ
11333 echo "$as_me:$LINENO: result: no" >&5
11334echo "${ECHO_T}no" >&6
2429c060
PB
11335 fi
11336 done
11337fi
11338
11339if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11340 for ncn_progname in windres; do
11341 if test -n "$ncn_target_tool_prefix"; then
11342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11343set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11344echo "$as_me:$LINENO: checking for $ac_word" >&5
11345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11348else
55db4b87
PB
11349 if test -n "$WINDRES_FOR_TARGET"; then
11350 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11351else
c6b750e1
DJ
11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363done
11364done
11365
859789af
AC
11366fi
11367fi
c6b750e1 11368WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11369if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11370 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11371echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11372else
c6b750e1
DJ
11373 echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6
859789af
AC
11375fi
11376
2429c060
PB
11377 fi
11378 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11380set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11381echo "$as_me:$LINENO: checking for $ac_word" >&5
11382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11383if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11385else
05cbd757
PB
11386 if test -n "$WINDRES_FOR_TARGET"; then
11387 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11388else
c6b750e1
DJ
11389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390for as_dir in $PATH
11391do
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11396 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11399 fi
11400done
11401done
11402
859789af
AC
11403fi
11404fi
c6b750e1 11405WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11406if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11407 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11408echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11409else
c6b750e1
DJ
11410 echo "$as_me:$LINENO: result: no" >&5
11411echo "${ECHO_T}no" >&6
859789af 11412fi
c6b750e1 11413
2429c060
PB
11414 fi
11415 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11416 done
11417fi
c6b750e1 11418
05cbd757
PB
11419if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11420 set dummy windres
11421 if test $build = $target ; then
11422 WINDRES_FOR_TARGET="$2"
859789af 11423 else
05cbd757 11424 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11425 fi
d3f5afc4
MS
11426else
11427 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11428fi
11429
3a35eeb3
PB
11430else
11431 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11432fi
11433
852e5f18 11434
0c24b341
NC
11435
11436
11437if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11438 if test -n "$with_build_time_tools"; then
11439 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11440echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11441 if test -x $with_build_time_tools/windmc; then
11442 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11443 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11444 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11445echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11446 else
11447 echo "$as_me:$LINENO: result: no" >&5
11448echo "${ECHO_T}no" >&6
11449 fi
11450 elif test $build != $host && test $have_gcc_for_target = yes; then
11451 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11452 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11453 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11454 fi
11455fi
11456if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11457 # Extract the first word of "windmc", so it can be a program name with args.
11458set dummy windmc; ac_word=$2
11459echo "$as_me:$LINENO: checking for $ac_word" >&5
11460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11461if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463else
11464 case $WINDMC_FOR_TARGET in
11465 [\\/]* | ?:[\\/]*)
11466 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11467 ;;
11468 *)
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470for as_dir in $gcc_cv_tool_dirs
11471do
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 break 2
11479 fi
11480done
11481done
11482
11483 ;;
11484esac
11485fi
11486WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11487
11488if test -n "$WINDMC_FOR_TARGET"; then
11489 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11490echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11491else
11492 echo "$as_me:$LINENO: result: no" >&5
11493echo "${ECHO_T}no" >&6
11494fi
11495
11496fi
11497if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11498
11499
11500if test -n "$WINDMC_FOR_TARGET"; then
11501 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11502elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11503 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11504fi
11505
11506if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11507 for ncn_progname in windmc; do
11508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11509set dummy ${ncn_progname}; ac_word=$2
11510echo "$as_me:$LINENO: checking for $ac_word" >&5
11511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11512if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514else
11515 if test -n "$WINDMC_FOR_TARGET"; then
11516 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11517else
11518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519for as_dir in $PATH
11520do
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11525 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11528 fi
11529done
11530done
11531
11532fi
11533fi
11534WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11535if test -n "$WINDMC_FOR_TARGET"; then
11536 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11537echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11538else
11539 echo "$as_me:$LINENO: result: no" >&5
11540echo "${ECHO_T}no" >&6
11541fi
11542
11543 done
11544fi
11545
11546if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11547 for ncn_progname in windmc; do
11548 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11549echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11550 if test -x $with_build_time_tools/${ncn_progname}; then
11551 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11552 echo "$as_me:$LINENO: result: yes" >&5
11553echo "${ECHO_T}yes" >&6
11554 break
11555 else
11556 echo "$as_me:$LINENO: result: no" >&5
11557echo "${ECHO_T}no" >&6
11558 fi
11559 done
11560fi
11561
11562if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11563 for ncn_progname in windmc; do
11564 if test -n "$ncn_target_tool_prefix"; then
11565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11567echo "$as_me:$LINENO: checking for $ac_word" >&5
11568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11569if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571else
11572 if test -n "$WINDMC_FOR_TARGET"; then
11573 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11574else
11575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $PATH
11577do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11582 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11585 fi
11586done
11587done
11588
11589fi
11590fi
11591WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11592if test -n "$WINDMC_FOR_TARGET"; then
11593 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11594echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11595else
11596 echo "$as_me:$LINENO: result: no" >&5
11597echo "${ECHO_T}no" >&6
11598fi
11599
11600 fi
11601 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11603set dummy ${ncn_progname}; ac_word=$2
11604echo "$as_me:$LINENO: checking for $ac_word" >&5
11605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11606if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608else
11609 if test -n "$WINDMC_FOR_TARGET"; then
11610 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11611else
11612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11619 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11621 break 2
11622 fi
11623done
11624done
11625
11626fi
11627fi
11628WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11629if test -n "$WINDMC_FOR_TARGET"; then
11630 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11631echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11632else
11633 echo "$as_me:$LINENO: result: no" >&5
11634echo "${ECHO_T}no" >&6
11635fi
11636
11637 fi
11638 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11639 done
11640fi
11641
11642if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11643 set dummy windmc
11644 if test $build = $target ; then
11645 WINDMC_FOR_TARGET="$2"
11646 else
11647 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11648 fi
11649else
11650 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11651fi
11652
11653else
11654 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11655fi
11656
11657
be01d343
PB
11658RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11659
c6b750e1
DJ
11660echo "$as_me:$LINENO: checking where to find the target ar" >&5
11661echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11662if test "x${build}" != "x${host}" ; then
2429c060
PB
11663 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11664 # We already found the complete path
b8025f34
AS
11665 ac_dir=`dirname $AR_FOR_TARGET`
11666 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11667echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11668 else
11669 # Canadian cross, just use what we found
c6b750e1
DJ
11670 echo "$as_me:$LINENO: result: pre-installed" >&5
11671echo "${ECHO_T}pre-installed" >&6
2429c060 11672 fi
be01d343
PB
11673else
11674 ok=yes
11675 case " ${configdirs} " in
11676 *" binutils "*) ;;
11677 *) ok=no ;;
11678 esac
c6b750e1 11679
be01d343
PB
11680 if test $ok = yes; then
11681 # An in-tree tool is available and we can use it
11682 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11683 echo "$as_me:$LINENO: result: just compiled" >&5
11684echo "${ECHO_T}just compiled" >&6
2429c060
PB
11685 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11686 # We already found the complete path
b8025f34
AS
11687 ac_dir=`dirname $AR_FOR_TARGET`
11688 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11689echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11690 elif test "x$target" = "x$host"; then
11691 # We can use an host tool
11692 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11693 echo "$as_me:$LINENO: result: host tool" >&5
11694echo "${ECHO_T}host tool" >&6
be01d343
PB
11695 else
11696 # We need a cross tool
c6b750e1
DJ
11697 echo "$as_me:$LINENO: result: pre-installed" >&5
11698echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11699 fi
11700fi
4b900473 11701
c6b750e1
DJ
11702echo "$as_me:$LINENO: checking where to find the target as" >&5
11703echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11704if test "x${build}" != "x${host}" ; then
2429c060
PB
11705 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11706 # We already found the complete path
b8025f34
AS
11707 ac_dir=`dirname $AS_FOR_TARGET`
11708 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11709echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11710 else
11711 # Canadian cross, just use what we found
c6b750e1
DJ
11712 echo "$as_me:$LINENO: result: pre-installed" >&5
11713echo "${ECHO_T}pre-installed" >&6
2429c060 11714 fi
be01d343
PB
11715else
11716 ok=yes
11717 case " ${configdirs} " in
11718 *" gas "*) ;;
11719 *) ok=no ;;
11720 esac
c6b750e1 11721
be01d343
PB
11722 if test $ok = yes; then
11723 # An in-tree tool is available and we can use it
11724 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11725 echo "$as_me:$LINENO: result: just compiled" >&5
11726echo "${ECHO_T}just compiled" >&6
2429c060
PB
11727 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11728 # We already found the complete path
b8025f34
AS
11729 ac_dir=`dirname $AS_FOR_TARGET`
11730 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11731echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11732 elif test "x$target" = "x$host"; then
11733 # We can use an host tool
11734 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11735 echo "$as_me:$LINENO: result: host tool" >&5
11736echo "${ECHO_T}host tool" >&6
be01d343
PB
11737 else
11738 # We need a cross tool
c6b750e1
DJ
11739 echo "$as_me:$LINENO: result: pre-installed" >&5
11740echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11741 fi
11742fi
4b900473 11743
c6b750e1
DJ
11744echo "$as_me:$LINENO: checking where to find the target cc" >&5
11745echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11746if test "x${build}" != "x${host}" ; then
2429c060
PB
11747 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11748 # We already found the complete path
b8025f34
AS
11749 ac_dir=`dirname $CC_FOR_TARGET`
11750 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11751echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11752 else
11753 # Canadian cross, just use what we found
c6b750e1
DJ
11754 echo "$as_me:$LINENO: result: pre-installed" >&5
11755echo "${ECHO_T}pre-installed" >&6
2429c060 11756 fi
be01d343
PB
11757else
11758 ok=yes
11759 case " ${configdirs} " in
11760 *" gcc "*) ;;
11761 *) ok=no ;;
11762 esac
c6b750e1 11763
be01d343
PB
11764 if test $ok = yes; then
11765 # An in-tree tool is available and we can use it
11766 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11767 echo "$as_me:$LINENO: result: just compiled" >&5
11768echo "${ECHO_T}just compiled" >&6
2429c060
PB
11769 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11770 # We already found the complete path
b8025f34
AS
11771 ac_dir=`dirname $CC_FOR_TARGET`
11772 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11773echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11774 elif test "x$target" = "x$host"; then
11775 # We can use an host tool
11776 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11777 echo "$as_me:$LINENO: result: host tool" >&5
11778echo "${ECHO_T}host tool" >&6
be01d343
PB
11779 else
11780 # We need a cross tool
c6b750e1
DJ
11781 echo "$as_me:$LINENO: result: pre-installed" >&5
11782echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11783 fi
11784fi
4b900473 11785
c6b750e1
DJ
11786echo "$as_me:$LINENO: checking where to find the target c++" >&5
11787echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11788if test "x${build}" != "x${host}" ; then
2429c060
PB
11789 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11790 # We already found the complete path
b8025f34
AS
11791 ac_dir=`dirname $CXX_FOR_TARGET`
11792 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11793echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11794 else
11795 # Canadian cross, just use what we found
c6b750e1
DJ
11796 echo "$as_me:$LINENO: result: pre-installed" >&5
11797echo "${ECHO_T}pre-installed" >&6
2429c060 11798 fi
be01d343
PB
11799else
11800 ok=yes
11801 case " ${configdirs} " in
11802 *" gcc "*) ;;
11803 *) ok=no ;;
11804 esac
11805 case ,${enable_languages}, in
11806 *,c++,*) ;;
11807 *) ok=no ;;
11808 esac
11809 if test $ok = yes; then
11810 # An in-tree tool is available and we can use it
11811 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
11812 echo "$as_me:$LINENO: result: just compiled" >&5
11813echo "${ECHO_T}just compiled" >&6
2429c060
PB
11814 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11815 # We already found the complete path
b8025f34
AS
11816 ac_dir=`dirname $CXX_FOR_TARGET`
11817 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11818echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11819 elif test "x$target" = "x$host"; then
11820 # We can use an host tool
11821 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11822 echo "$as_me:$LINENO: result: host tool" >&5
11823echo "${ECHO_T}host tool" >&6
be01d343
PB
11824 else
11825 # We need a cross tool
c6b750e1
DJ
11826 echo "$as_me:$LINENO: result: pre-installed" >&5
11827echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11828 fi
11829fi
4b900473 11830
c6b750e1
DJ
11831echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11832echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11833if test "x${build}" != "x${host}" ; then
2429c060
PB
11834 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11835 # We already found the complete path
b8025f34
AS
11836 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11837 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11838echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11839 else
11840 # Canadian cross, just use what we found
c6b750e1
DJ
11841 echo "$as_me:$LINENO: result: pre-installed" >&5
11842echo "${ECHO_T}pre-installed" >&6
2429c060 11843 fi
be01d343
PB
11844else
11845 ok=yes
11846 case " ${configdirs} " in
11847 *" gcc "*) ;;
11848 *) ok=no ;;
11849 esac
11850 case ,${enable_languages}, in
11851 *,c++,*) ;;
11852 *) ok=no ;;
11853 esac
11854 if test $ok = yes; then
11855 # An in-tree tool is available and we can use it
11856 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
11857 echo "$as_me:$LINENO: result: just compiled" >&5
11858echo "${ECHO_T}just compiled" >&6
2429c060
PB
11859 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11860 # We already found the complete path
b8025f34
AS
11861 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11862 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11863echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11864 elif test "x$target" = "x$host"; then
11865 # We can use an host tool
11866 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11867 echo "$as_me:$LINENO: result: host tool" >&5
11868echo "${ECHO_T}host tool" >&6
be01d343
PB
11869 else
11870 # We need a cross tool
c6b750e1
DJ
11871 echo "$as_me:$LINENO: result: pre-installed" >&5
11872echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11873 fi
11874fi
4b900473 11875
c6b750e1
DJ
11876echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11877echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11878if test "x${build}" != "x${host}" ; then
2429c060
PB
11879 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11880 # We already found the complete path
b8025f34
AS
11881 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11882 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11883echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11884 else
11885 # Canadian cross, just use what we found
c6b750e1
DJ
11886 echo "$as_me:$LINENO: result: pre-installed" >&5
11887echo "${ECHO_T}pre-installed" >&6
2429c060 11888 fi
be01d343
PB
11889else
11890 ok=yes
11891 case " ${configdirs} " in
11892 *" binutils "*) ;;
11893 *) ok=no ;;
11894 esac
c6b750e1 11895
be01d343
PB
11896 if test $ok = yes; then
11897 # An in-tree tool is available and we can use it
11898 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11899 echo "$as_me:$LINENO: result: just compiled" >&5
11900echo "${ECHO_T}just compiled" >&6
2429c060
PB
11901 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11902 # We already found the complete path
b8025f34
AS
11903 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11904 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11905echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11906 elif test "x$target" = "x$host"; then
11907 # We can use an host tool
11908 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11909 echo "$as_me:$LINENO: result: host tool" >&5
11910echo "${ECHO_T}host tool" >&6
be01d343
PB
11911 else
11912 # We need a cross tool
c6b750e1
DJ
11913 echo "$as_me:$LINENO: result: pre-installed" >&5
11914echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11915 fi
11916fi
4b900473 11917
c6b750e1
DJ
11918echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11919echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11920if test "x${build}" != "x${host}" ; then
2429c060
PB
11921 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11922 # We already found the complete path
b8025f34
AS
11923 ac_dir=`dirname $GCC_FOR_TARGET`
11924 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11925echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11926 else
11927 # Canadian cross, just use what we found
c6b750e1
DJ
11928 echo "$as_me:$LINENO: result: pre-installed" >&5
11929echo "${ECHO_T}pre-installed" >&6
2429c060 11930 fi
be01d343
PB
11931else
11932 ok=yes
11933 case " ${configdirs} " in
11934 *" gcc "*) ;;
11935 *) ok=no ;;
11936 esac
c6b750e1 11937
be01d343
PB
11938 if test $ok = yes; then
11939 # An in-tree tool is available and we can use it
11940 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11941 echo "$as_me:$LINENO: result: just compiled" >&5
11942echo "${ECHO_T}just compiled" >&6
2429c060
PB
11943 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11944 # We already found the complete path
b8025f34
AS
11945 ac_dir=`dirname $GCC_FOR_TARGET`
11946 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11947echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11948 elif test "x$target" = "x$host"; then
11949 # We can use an host tool
11950 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11951 echo "$as_me:$LINENO: result: host tool" >&5
11952echo "${ECHO_T}host tool" >&6
be01d343
PB
11953 else
11954 # We need a cross tool
c6b750e1
DJ
11955 echo "$as_me:$LINENO: result: pre-installed" >&5
11956echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11957 fi
11958fi
4b900473 11959
c6b750e1
DJ
11960echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11961echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11962if test "x${build}" != "x${host}" ; then
2429c060
PB
11963 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11964 # We already found the complete path
b8025f34
AS
11965 ac_dir=`dirname $GCJ_FOR_TARGET`
11966 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11967echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11968 else
11969 # Canadian cross, just use what we found
c6b750e1
DJ
11970 echo "$as_me:$LINENO: result: pre-installed" >&5
11971echo "${ECHO_T}pre-installed" >&6
2429c060 11972 fi
be01d343
PB
11973else
11974 ok=yes
11975 case " ${configdirs} " in
11976 *" gcc "*) ;;
11977 *) ok=no ;;
11978 esac
11979 case ,${enable_languages}, in
11980 *,java,*) ;;
11981 *) ok=no ;;
11982 esac
11983 if test $ok = yes; then
11984 # An in-tree tool is available and we can use it
11985 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11986 echo "$as_me:$LINENO: result: just compiled" >&5
11987echo "${ECHO_T}just compiled" >&6
2429c060
PB
11988 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11989 # We already found the complete path
b8025f34
AS
11990 ac_dir=`dirname $GCJ_FOR_TARGET`
11991 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11992echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11993 elif test "x$target" = "x$host"; then
11994 # We can use an host tool
11995 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11996 echo "$as_me:$LINENO: result: host tool" >&5
11997echo "${ECHO_T}host tool" >&6
be01d343
PB
11998 else
11999 # We need a cross tool
c6b750e1
DJ
12000 echo "$as_me:$LINENO: result: pre-installed" >&5
12001echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12002 fi
12003fi
4b900473 12004
c6b750e1
DJ
12005echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12006echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 12007if test "x${build}" != "x${host}" ; then
2429c060
PB
12008 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12009 # We already found the complete path
b8025f34
AS
12010 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12011 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12012echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12013 else
12014 # Canadian cross, just use what we found
c6b750e1
DJ
12015 echo "$as_me:$LINENO: result: pre-installed" >&5
12016echo "${ECHO_T}pre-installed" >&6
2429c060 12017 fi
be01d343
PB
12018else
12019 ok=yes
12020 case " ${configdirs} " in
12021 *" gcc "*) ;;
12022 *) ok=no ;;
12023 esac
12024 case ,${enable_languages}, in
12025 *,fortran,*) ;;
12026 *) ok=no ;;
12027 esac
12028 if test $ok = yes; then
12029 # An in-tree tool is available and we can use it
12030 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12031 echo "$as_me:$LINENO: result: just compiled" >&5
12032echo "${ECHO_T}just compiled" >&6
2429c060
PB
12033 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12034 # We already found the complete path
b8025f34
AS
12035 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12036 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12037echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12038 elif test "x$target" = "x$host"; then
12039 # We can use an host tool
12040 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
12041 echo "$as_me:$LINENO: result: host tool" >&5
12042echo "${ECHO_T}host tool" >&6
be01d343
PB
12043 else
12044 # We need a cross tool
c6b750e1
DJ
12045 echo "$as_me:$LINENO: result: pre-installed" >&5
12046echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12047 fi
12048fi
4b900473 12049
c6b750e1
DJ
12050echo "$as_me:$LINENO: checking where to find the target ld" >&5
12051echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 12052if test "x${build}" != "x${host}" ; then
2429c060
PB
12053 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12054 # We already found the complete path
b8025f34
AS
12055 ac_dir=`dirname $LD_FOR_TARGET`
12056 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12057echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12058 else
12059 # Canadian cross, just use what we found
c6b750e1
DJ
12060 echo "$as_me:$LINENO: result: pre-installed" >&5
12061echo "${ECHO_T}pre-installed" >&6
2429c060 12062 fi
be01d343
PB
12063else
12064 ok=yes
12065 case " ${configdirs} " in
12066 *" ld "*) ;;
12067 *) ok=no ;;
12068 esac
c6b750e1 12069
be01d343
PB
12070 if test $ok = yes; then
12071 # An in-tree tool is available and we can use it
12072 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
12073 echo "$as_me:$LINENO: result: just compiled" >&5
12074echo "${ECHO_T}just compiled" >&6
2429c060
PB
12075 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12076 # We already found the complete path
b8025f34
AS
12077 ac_dir=`dirname $LD_FOR_TARGET`
12078 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12079echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12080 elif test "x$target" = "x$host"; then
12081 # We can use an host tool
12082 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
12083 echo "$as_me:$LINENO: result: host tool" >&5
12084echo "${ECHO_T}host tool" >&6
be01d343
PB
12085 else
12086 # We need a cross tool
c6b750e1
DJ
12087 echo "$as_me:$LINENO: result: pre-installed" >&5
12088echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12089 fi
12090fi
4b900473 12091
c6b750e1
DJ
12092echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12093echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 12094if test "x${build}" != "x${host}" ; then
2429c060
PB
12095 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12096 # We already found the complete path
b8025f34
AS
12097 ac_dir=`dirname $LIPO_FOR_TARGET`
12098 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12099echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12100 else
12101 # Canadian cross, just use what we found
c6b750e1
DJ
12102 echo "$as_me:$LINENO: result: pre-installed" >&5
12103echo "${ECHO_T}pre-installed" >&6
2429c060 12104 fi
be01d343 12105else
2429c060
PB
12106 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12107 # We already found the complete path
b8025f34
AS
12108 ac_dir=`dirname $LIPO_FOR_TARGET`
12109 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12110echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 12111 elif test "x$target" = "x$host"; then
be01d343
PB
12112 # We can use an host tool
12113 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
12114 echo "$as_me:$LINENO: result: host tool" >&5
12115echo "${ECHO_T}host tool" >&6
be01d343
PB
12116 else
12117 # We need a cross tool
c6b750e1
DJ
12118 echo "$as_me:$LINENO: result: pre-installed" >&5
12119echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12120 fi
12121fi
4b900473 12122
c6b750e1
DJ
12123echo "$as_me:$LINENO: checking where to find the target nm" >&5
12124echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 12125if test "x${build}" != "x${host}" ; then
2429c060
PB
12126 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12127 # We already found the complete path
b8025f34
AS
12128 ac_dir=`dirname $NM_FOR_TARGET`
12129 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12130echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12131 else
12132 # Canadian cross, just use what we found
c6b750e1
DJ
12133 echo "$as_me:$LINENO: result: pre-installed" >&5
12134echo "${ECHO_T}pre-installed" >&6
2429c060 12135 fi
be01d343
PB
12136else
12137 ok=yes
12138 case " ${configdirs} " in
12139 *" binutils "*) ;;
12140 *) ok=no ;;
12141 esac
c6b750e1 12142
be01d343
PB
12143 if test $ok = yes; then
12144 # An in-tree tool is available and we can use it
12145 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
12146 echo "$as_me:$LINENO: result: just compiled" >&5
12147echo "${ECHO_T}just compiled" >&6
2429c060
PB
12148 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12149 # We already found the complete path
b8025f34
AS
12150 ac_dir=`dirname $NM_FOR_TARGET`
12151 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12152echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12153 elif test "x$target" = "x$host"; then
12154 # We can use an host tool
12155 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
12156 echo "$as_me:$LINENO: result: host tool" >&5
12157echo "${ECHO_T}host tool" >&6
be01d343
PB
12158 else
12159 # We need a cross tool
c6b750e1
DJ
12160 echo "$as_me:$LINENO: result: pre-installed" >&5
12161echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12162 fi
12163fi
4b900473 12164
c6b750e1
DJ
12165echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12166echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 12167if test "x${build}" != "x${host}" ; then
2429c060
PB
12168 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12169 # We already found the complete path
b8025f34
AS
12170 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12171 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12172echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12173 else
12174 # Canadian cross, just use what we found
c6b750e1
DJ
12175 echo "$as_me:$LINENO: result: pre-installed" >&5
12176echo "${ECHO_T}pre-installed" >&6
2429c060 12177 fi
be01d343
PB
12178else
12179 ok=yes
12180 case " ${configdirs} " in
12181 *" binutils "*) ;;
12182 *) ok=no ;;
12183 esac
c6b750e1 12184
be01d343
PB
12185 if test $ok = yes; then
12186 # An in-tree tool is available and we can use it
12187 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
12188 echo "$as_me:$LINENO: result: just compiled" >&5
12189echo "${ECHO_T}just compiled" >&6
2429c060
PB
12190 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12191 # We already found the complete path
b8025f34
AS
12192 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12193 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12194echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12195 elif test "x$target" = "x$host"; then
12196 # We can use an host tool
12197 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
12198 echo "$as_me:$LINENO: result: host tool" >&5
12199echo "${ECHO_T}host tool" >&6
be01d343
PB
12200 else
12201 # We need a cross tool
c6b750e1
DJ
12202 echo "$as_me:$LINENO: result: pre-installed" >&5
12203echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12204 fi
12205fi
4b900473 12206
c6b750e1
DJ
12207echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12208echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 12209if test "x${build}" != "x${host}" ; then
2429c060
PB
12210 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12211 # We already found the complete path
b8025f34
AS
12212 ac_dir=`dirname $RANLIB_FOR_TARGET`
12213 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12214echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12215 else
12216 # Canadian cross, just use what we found
c6b750e1
DJ
12217 echo "$as_me:$LINENO: result: pre-installed" >&5
12218echo "${ECHO_T}pre-installed" >&6
2429c060 12219 fi
be01d343
PB
12220else
12221 ok=yes
12222 case " ${configdirs} " in
12223 *" binutils "*) ;;
12224 *) ok=no ;;
12225 esac
c6b750e1 12226
be01d343
PB
12227 if test $ok = yes; then
12228 # An in-tree tool is available and we can use it
12229 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
12230 echo "$as_me:$LINENO: result: just compiled" >&5
12231echo "${ECHO_T}just compiled" >&6
2429c060
PB
12232 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12233 # We already found the complete path
b8025f34
AS
12234 ac_dir=`dirname $RANLIB_FOR_TARGET`
12235 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12236echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12237 elif test "x$target" = "x$host"; then
12238 # We can use an host tool
12239 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
12240 echo "$as_me:$LINENO: result: host tool" >&5
12241echo "${ECHO_T}host tool" >&6
be01d343
PB
12242 else
12243 # We need a cross tool
c6b750e1
DJ
12244 echo "$as_me:$LINENO: result: pre-installed" >&5
12245echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12246 fi
12247fi
4b900473 12248
c6b750e1
DJ
12249echo "$as_me:$LINENO: checking where to find the target strip" >&5
12250echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 12251if test "x${build}" != "x${host}" ; then
2429c060
PB
12252 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12253 # We already found the complete path
b8025f34
AS
12254 ac_dir=`dirname $STRIP_FOR_TARGET`
12255 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12256echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12257 else
12258 # Canadian cross, just use what we found
c6b750e1
DJ
12259 echo "$as_me:$LINENO: result: pre-installed" >&5
12260echo "${ECHO_T}pre-installed" >&6
2429c060 12261 fi
be01d343
PB
12262else
12263 ok=yes
12264 case " ${configdirs} " in
12265 *" binutils "*) ;;
12266 *) ok=no ;;
12267 esac
c6b750e1 12268
be01d343
PB
12269 if test $ok = yes; then
12270 # An in-tree tool is available and we can use it
12271 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
12272 echo "$as_me:$LINENO: result: just compiled" >&5
12273echo "${ECHO_T}just compiled" >&6
2429c060
PB
12274 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12275 # We already found the complete path
b8025f34
AS
12276 ac_dir=`dirname $STRIP_FOR_TARGET`
12277 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12278echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12279 elif test "x$target" = "x$host"; then
12280 # We can use an host tool
12281 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
12282 echo "$as_me:$LINENO: result: host tool" >&5
12283echo "${ECHO_T}host tool" >&6
be01d343
PB
12284 else
12285 # We need a cross tool
c6b750e1
DJ
12286 echo "$as_me:$LINENO: result: pre-installed" >&5
12287echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12288 fi
12289fi
4b900473 12290
c6b750e1
DJ
12291echo "$as_me:$LINENO: checking where to find the target windres" >&5
12292echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12293if test "x${build}" != "x${host}" ; then
2429c060
PB
12294 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12295 # We already found the complete path
b8025f34
AS
12296 ac_dir=`dirname $WINDRES_FOR_TARGET`
12297 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12298echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12299 else
12300 # Canadian cross, just use what we found
c6b750e1
DJ
12301 echo "$as_me:$LINENO: result: pre-installed" >&5
12302echo "${ECHO_T}pre-installed" >&6
2429c060 12303 fi
be01d343
PB
12304else
12305 ok=yes
12306 case " ${configdirs} " in
12307 *" binutils "*) ;;
12308 *) ok=no ;;
12309 esac
c6b750e1 12310
be01d343
PB
12311 if test $ok = yes; then
12312 # An in-tree tool is available and we can use it
12313 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12314 echo "$as_me:$LINENO: result: just compiled" >&5
12315echo "${ECHO_T}just compiled" >&6
2429c060
PB
12316 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12317 # We already found the complete path
b8025f34
AS
12318 ac_dir=`dirname $WINDRES_FOR_TARGET`
12319 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12320echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12321 elif test "x$target" = "x$host"; then
12322 # We can use an host tool
12323 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12324 echo "$as_me:$LINENO: result: host tool" >&5
12325echo "${ECHO_T}host tool" >&6
be01d343
PB
12326 else
12327 # We need a cross tool
c6b750e1
DJ
12328 echo "$as_me:$LINENO: result: pre-installed" >&5
12329echo "${ECHO_T}pre-installed" >&6
be01d343 12330 fi
a0da8069 12331fi
54752a6b 12332
0c24b341
NC
12333echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12334echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12335if test "x${build}" != "x${host}" ; then
12336 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12337 # We already found the complete path
12338 ac_dir=`dirname $WINDMC_FOR_TARGET`
12339 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12340echo "${ECHO_T}pre-installed in $ac_dir" >&6
12341 else
12342 # Canadian cross, just use what we found
12343 echo "$as_me:$LINENO: result: pre-installed" >&5
12344echo "${ECHO_T}pre-installed" >&6
12345 fi
12346else
12347 ok=yes
12348 case " ${configdirs} " in
12349 *" binutils "*) ;;
12350 *) ok=no ;;
12351 esac
12352
12353 if test $ok = yes; then
12354 # An in-tree tool is available and we can use it
12355 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12356 echo "$as_me:$LINENO: result: just compiled" >&5
12357echo "${ECHO_T}just compiled" >&6
12358 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12359 # We already found the complete path
12360 ac_dir=`dirname $WINDMC_FOR_TARGET`
12361 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12362echo "${ECHO_T}pre-installed in $ac_dir" >&6
12363 elif test "x$target" = "x$host"; then
12364 # We can use an host tool
12365 WINDMC_FOR_TARGET='$(WINDMC)'
12366 echo "$as_me:$LINENO: result: host tool" >&5
12367echo "${ECHO_T}host tool" >&6
12368 else
12369 # We need a cross tool
12370 echo "$as_me:$LINENO: result: pre-installed" >&5
12371echo "${ECHO_T}pre-installed" >&6
12372 fi
12373fi
12374
54752a6b
NN
12375
12376
be01d343 12377
4b900473 12378
a0da8069
NN
12379# Certain tools may need extra flags.
12380AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12381RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12382NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12383
be01d343
PB
12384# When building target libraries, except in a Canadian cross, we use
12385# the same toolchain as the compiler we just built.
12386COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12387COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12388COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12389if test $host = $build; then
12390 case " $configdirs " in
12391 *" gcc "*)
12392 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12393 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12394 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12395 ;;
12396 esac
12397fi
12398
12399
12400
12401
12402
c6b750e1
DJ
12403echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12404echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12405# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12406if test "${enable_maintainer_mode+set}" = set; then
12407 enableval="$enable_maintainer_mode"
12408 USE_MAINTAINER_MODE=$enableval
12409else
12410 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12411fi;
12412echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12413echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12414
12415
12416if test "$USE_MAINTAINER_MODE" = yes; then
12417 MAINTAINER_MODE_TRUE=
12418 MAINTAINER_MODE_FALSE='#'
12419else
12420 MAINTAINER_MODE_TRUE='#'
12421 MAINTAINER_MODE_FALSE=
c6b750e1 12422fi
3d5e36ae
AO
12423MAINT=$MAINTAINER_MODE_TRUE
12424
1d39f329
NN
12425# ---------------------
12426# GCC bootstrap support
12427# ---------------------
12428
12429# Stage specific cflags for build.
12430stage1_cflags="-g"
12431case $build in
12432 vax-*-*)
12433 case ${GCC} in
12434 yes) stage1_cflags="-g -Wa,-J" ;;
12435 *) stage1_cflags="-g -J" ;;
12436 esac ;;
1d39f329
NN
12437esac
12438
1d89b610
PB
12439# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12440if test "$GCC" = yes; then
12441 saved_CFLAGS="$CFLAGS"
12442
12443 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12444 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12445 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12446echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12447 cat >conftest.$ac_ext <<_ACEOF
12448/* confdefs.h. */
12449_ACEOF
12450cat confdefs.h >>conftest.$ac_ext
12451cat >>conftest.$ac_ext <<_ACEOF
12452/* end confdefs.h. */
12453
2038f525
PB
12454#if (__GNUC__ < 3) \
12455 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12456 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12457#error http://gcc.gnu.org/PR29382
12458#endif
12459
c6b750e1
DJ
12460int
12461main ()
12462{
12463
12464 ;
12465 return 0;
12466}
12467_ACEOF
12468rm -f conftest.$ac_objext
12469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest.$ac_objext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 echo "$as_me:$LINENO: result: yes" >&5
12491echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12492else
12493 echo "$as_me: failed program was:" >&5
12494sed 's/^/| /' conftest.$ac_ext >&5
12495
12496echo "$as_me:$LINENO: result: no" >&5
12497echo "${ECHO_T}no" >&6
12498fi
12499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12500
12501 CFLAGS="$saved_CFLAGS"
12502fi
12503
12504
1d39f329 12505
8a0d8a5c
PB
12506# Enable --enable-checking in stage1 of the compiler.
12507# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12508if test "${enable_stage1_checking+set}" = set; then
12509 enableval="$enable_stage1_checking"
12510 stage1_checking=--enable-checking=${enable_stage1_checking}
12511else
5566c1fa 12512 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12513 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12514else
5566c1fa 12515 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12516fi
c6b750e1 12517fi;
8a0d8a5c
PB
12518
12519
1d39f329 12520# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12521# Check whether --enable-werror or --disable-werror was given.
12522if test "${enable_werror+set}" = set; then
12523 enableval="$enable_werror"
c6b750e1 12524
1d39f329 12525else
a0323144 12526 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12527 enable_werror=yes
79fcd0ec
PB
12528else
12529 enable_werror=no
12530fi
c6b750e1 12531fi;
1a6f2dc7
NN
12532case ${enable_werror} in
12533 yes) stage2_werror_flag="--enable-werror-always" ;;
12534 *) stage2_werror_flag="" ;;
1d39f329
NN
12535esac
12536
12537
108a6f8e 12538# Flags needed to enable html installing and building
c6b750e1 12539
108a6f8e
CD
12540# Check whether --with-datarootdir or --without-datarootdir was given.
12541if test "${with_datarootdir+set}" = set; then
12542 withval="$with_datarootdir"
12543 datarootdir="\${prefix}/${withval}"
12544else
12545 datarootdir="\${prefix}/share"
c6b750e1 12546fi;
108a6f8e
CD
12547
12548
12549# Check whether --with-docdir or --without-docdir was given.
12550if test "${with_docdir+set}" = set; then
12551 withval="$with_docdir"
12552 docdir="\${prefix}/${withval}"
12553else
12554 docdir="\${datarootdir}/doc"
c6b750e1 12555fi;
108a6f8e
CD
12556
12557
a3ca38d2
DD
12558# Check whether --with-pdfdir or --without-pdfdir was given.
12559if test "${with_pdfdir+set}" = set; then
12560 withval="$with_pdfdir"
12561 pdfdir="\${prefix}/${withval}"
12562else
12563 pdfdir="\${docdir}"
12564fi;
12565
12566
108a6f8e
CD
12567# Check whether --with-htmldir or --without-htmldir was given.
12568if test "${with_htmldir+set}" = set; then
12569 withval="$with_htmldir"
12570 htmldir="\${prefix}/${withval}"
12571else
12572 htmldir="\${docdir}"
c6b750e1 12573fi;
108a6f8e
CD
12574
12575
12576
12577
12578
b8025f34 12579
c6b750e1
DJ
12580 ac_config_files="$ac_config_files Makefile"
12581cat >confcache <<\_ACEOF
a0da8069
NN
12582# This file is a shell script that caches the results of configure
12583# tests run on this system so they can be shared between configure
c6b750e1
DJ
12584# scripts and configure runs, see configure's option --config-cache.
12585# It is not useful on other systems. If it contains results you don't
12586# want to keep, you may remove or edit it.
a0da8069 12587#
c6b750e1
DJ
12588# config.status only pays attention to the cache file if you give it
12589# the --recheck option to rerun configure.
a0da8069 12590#
c6b750e1
DJ
12591# `ac_cv_env_foo' variables (set or unset) will be overridden when
12592# loading this file, other *unset* `ac_cv_foo' will be assigned the
12593# following values.
12594
12595_ACEOF
12596
a0da8069
NN
12597# The following way of writing the cache mishandles newlines in values,
12598# but we know of no workaround that is simple, portable, and efficient.
12599# So, don't put newlines in cache variables' values.
12600# Ultrix sh set writes to stderr and can't be redirected directly,
12601# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12602{
12603 (set) 2>&1 |
12604 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12605 *ac_space=\ *)
12606 # `set' does not quote correctly, so add quotes (double-quote
12607 # substitution turns \\\\ into \\, and sed turns \\ into \).
12608 sed -n \
12609 "s/'/'\\\\''/g;
12610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12611 ;;
12612 *)
12613 # `set' quotes correctly as required by POSIX, so do not add quotes.
12614 sed -n \
12615 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12616 ;;
12617 esac;
12618} |
12619 sed '
12620 t clear
12621 : clear
12622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12623 t end
12624 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12625 : end' >>confcache
12626if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12627 if test -w $cache_file; then
c6b750e1
DJ
12628 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12629 cat confcache >$cache_file
a0da8069
NN
12630 else
12631 echo "not updating unwritable cache $cache_file"
12632 fi
852e5f18 12633fi
a0da8069 12634rm -f confcache
852e5f18 12635
a0da8069
NN
12636test "x$prefix" = xNONE && prefix=$ac_default_prefix
12637# Let make expand exec_prefix.
12638test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12639
c6b750e1
DJ
12640# VPATH may cause trouble with some makes, so we remove $(srcdir),
12641# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12642# trailing colons and then remove the whole line if VPATH becomes empty
12643# (actually we leave an empty line to preserve line numbers).
a0da8069 12644if test "x$srcdir" = x.; then
c6b750e1
DJ
12645 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12646s/:*\$(srcdir):*/:/;
12647s/:*\${srcdir}:*/:/;
12648s/:*@srcdir@:*/:/;
12649s/^\([^=]*=[ ]*\):*/\1/;
12650s/:*$//;
12651s/^[^=]*=[ ]*$//;
12652}'
a0da8069 12653fi
252b5132 12654
a0da8069
NN
12655# Transform confdefs.h into DEFS.
12656# Protect against shell expansion while executing Makefile rules.
12657# Protect against Makefile macro expansion.
c6b750e1
DJ
12658#
12659# If the first sed substitution is executed (which looks for macros that
12660# take arguments), then we branch to the quote section. Otherwise,
12661# look for a macro that doesn't take arguments.
12662cat >confdef2opt.sed <<\_ACEOF
12663t clear
12664: clear
12665s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12666t quote
12667s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12668t quote
12669d
12670: quote
12671s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12672s,\[,\\&,g
12673s,\],\\&,g
12674s,\$,$$,g
12675p
12676_ACEOF
12677# We use echo to avoid assuming a particular line-breaking character.
12678# The extra dot is to prevent the shell from consuming trailing
12679# line-breaks from the sub-command output. A line-break within
12680# single-quotes doesn't work because, if this script is created in a
12681# platform that uses two characters for line-breaks (e.g., DOS), tr
12682# would break.
12683ac_LF_and_DOT=`echo; echo .`
12684DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12685rm -f confdef2opt.sed
12686
12687
12688ac_libobjs=
12689ac_ltlibobjs=
12690for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12691 # 1. Remove the extension, and $U if already installed.
12692 ac_i=`echo "$ac_i" |
12693 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12694 # 2. Add them.
12695 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12696 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12697done
12698LIBOBJS=$ac_libobjs
852e5f18 12699
c6b750e1 12700LTLIBOBJS=$ac_ltlibobjs
376a0e54 12701
cac3d6c4 12702
c6b750e1
DJ
12703
12704: ${CONFIG_STATUS=./config.status}
12705ac_clean_files_save=$ac_clean_files
12706ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12707{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12708echo "$as_me: creating $CONFIG_STATUS" >&6;}
12709cat >$CONFIG_STATUS <<_ACEOF
12710#! $SHELL
12711# Generated by $as_me.
a0da8069 12712# Run this file to recreate the current configuration.
a0da8069 12713# Compiler output produced by configure, useful for debugging
c6b750e1 12714# configure, is in config.log if it exists.
376a0e54 12715
c6b750e1
DJ
12716debug=false
12717ac_cs_recheck=false
12718ac_cs_silent=false
12719SHELL=\${CONFIG_SHELL-$SHELL}
12720_ACEOF
12721
12722cat >>$CONFIG_STATUS <<\_ACEOF
12723## --------------------- ##
12724## M4sh Initialization. ##
12725## --------------------- ##
12726
12727# Be Bourne compatible
12728if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12729 emulate sh
12730 NULLCMD=:
12731 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12732 # is contrary to our usage. Disable this feature.
12733 alias -g '${1+"$@"}'='"$@"'
12734elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12735 set -o posix
12736fi
12737DUALCASE=1; export DUALCASE # for MKS sh
12738
12739# Support unset when possible.
12740if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12741 as_unset=unset
12742else
12743 as_unset=false
12744fi
12745
12746
12747# Work around bugs in pre-3.0 UWIN ksh.
12748$as_unset ENV MAIL MAILPATH
12749PS1='$ '
12750PS2='> '
12751PS4='+ '
12752
12753# NLS nuisances.
12754for as_var in \
12755 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12756 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12757 LC_TELEPHONE LC_TIME
12758do
12759 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12760 eval $as_var=C; export $as_var
12761 else
12762 $as_unset $as_var
12763 fi
12764done
12765
12766# Required to use basename.
12767if expr a : '\(a\)' >/dev/null 2>&1; then
12768 as_expr=expr
12769else
12770 as_expr=false
12771fi
12772
12773if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12774 as_basename=basename
12775else
12776 as_basename=false
12777fi
12778
12779
12780# Name of the executable.
12781as_me=`$as_basename "$0" ||
12782$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12783 X"$0" : 'X\(//\)$' \| \
12784 X"$0" : 'X\(/\)$' \| \
12785 . : '\(.\)' 2>/dev/null ||
12786echo X/"$0" |
12787 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12788 /^X\/\(\/\/\)$/{ s//\1/; q; }
12789 /^X\/\(\/\).*/{ s//\1/; q; }
12790 s/.*/./; q'`
12791
12792
12793# PATH needs CR, and LINENO needs CR and PATH.
12794# Avoid depending upon Character Ranges.
12795as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12796as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12797as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12798as_cr_digits='0123456789'
12799as_cr_alnum=$as_cr_Letters$as_cr_digits
12800
12801# The user is always right.
12802if test "${PATH_SEPARATOR+set}" != set; then
12803 echo "#! /bin/sh" >conf$$.sh
12804 echo "exit 0" >>conf$$.sh
12805 chmod +x conf$$.sh
12806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12807 PATH_SEPARATOR=';'
12808 else
12809 PATH_SEPARATOR=:
12810 fi
12811 rm -f conf$$.sh
12812fi
12813
12814
12815 as_lineno_1=$LINENO
12816 as_lineno_2=$LINENO
12817 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12818 test "x$as_lineno_1" != "x$as_lineno_2" &&
12819 test "x$as_lineno_3" = "x$as_lineno_2" || {
12820 # Find who we are. Look in the path if we contain no path at all
12821 # relative or not.
12822 case $0 in
12823 *[\\/]* ) as_myself=$0 ;;
12824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12830done
12831
12832 ;;
12833 esac
12834 # We did not find ourselves, most probably we were run as `sh COMMAND'
12835 # in which case we are not to be found in the path.
12836 if test "x$as_myself" = x; then
12837 as_myself=$0
12838 fi
12839 if test ! -f "$as_myself"; then
12840 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12841echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12842 { (exit 1); exit 1; }; }
12843 fi
12844 case $CONFIG_SHELL in
12845 '')
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12848do
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 for as_base in sh bash ksh sh5; do
12852 case $as_dir in
12853 /*)
12854 if ("$as_dir/$as_base" -c '
12855 as_lineno_1=$LINENO
12856 as_lineno_2=$LINENO
12857 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12858 test "x$as_lineno_1" != "x$as_lineno_2" &&
12859 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12860 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12861 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12862 CONFIG_SHELL=$as_dir/$as_base
12863 export CONFIG_SHELL
12864 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12865 fi;;
12866 esac
12867 done
12868done
12869;;
12870 esac
12871
12872 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12873 # uniformly replaced by the line number. The first 'sed' inserts a
12874 # line-number line before each line; the second 'sed' does the real
12875 # work. The second script uses 'N' to pair each line-number line
12876 # with the numbered line, and appends trailing '-' during
12877 # substitution so that $LINENO is not a special case at line end.
12878 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12879 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12880 sed '=' <$as_myself |
12881 sed '
12882 N
12883 s,$,-,
12884 : loop
12885 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12886 t loop
12887 s,-$,,
12888 s,^['$as_cr_digits']*\n,,
12889 ' >$as_me.lineno &&
12890 chmod +x $as_me.lineno ||
12891 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12892echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12893 { (exit 1); exit 1; }; }
12894
12895 # Don't try to exec as it changes $[0], causing all sort of problems
12896 # (the dirname of $[0] is not the place where we might find the
12897 # original and so on. Autoconf is especially sensible to this).
12898 . ./$as_me.lineno
12899 # Exit status is that of the last command.
12900 exit
12901}
12902
12903
12904case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12905 *c*,-n*) ECHO_N= ECHO_C='
12906' ECHO_T=' ' ;;
12907 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12908 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12909esac
12910
12911if expr a : '\(a\)' >/dev/null 2>&1; then
12912 as_expr=expr
12913else
12914 as_expr=false
12915fi
12916
12917rm -f conf$$ conf$$.exe conf$$.file
12918echo >conf$$.file
12919if ln -s conf$$.file conf$$ 2>/dev/null; then
12920 # We could just check for DJGPP; but this test a) works b) is more generic
12921 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12922 if test -f conf$$.exe; then
12923 # Don't use ln at all; we don't have any links
12924 as_ln_s='cp -p'
12925 else
12926 as_ln_s='ln -s'
12927 fi
12928elif ln conf$$.file conf$$ 2>/dev/null; then
12929 as_ln_s=ln
12930else
12931 as_ln_s='cp -p'
12932fi
12933rm -f conf$$ conf$$.exe conf$$.file
12934
12935if mkdir -p . 2>/dev/null; then
12936 as_mkdir_p=:
12937else
12938 test -d ./-p && rmdir ./-p
12939 as_mkdir_p=false
12940fi
12941
12942as_executable_p="test -f"
12943
12944# Sed expression to map a string onto a valid CPP name.
12945as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12946
12947# Sed expression to map a string onto a valid variable name.
12948as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12949
12950
12951# IFS
12952# We need space, tab and new line, in precisely that order.
12953as_nl='
12954'
12955IFS=" $as_nl"
12956
12957# CDPATH.
12958$as_unset CDPATH
12959
12960exec 6>&1
12961
12962# Open the log real soon, to keep \$[0] and so on meaningful, and to
12963# report actual input values of CONFIG_FILES etc. instead of their
12964# values after options handling. Logging --version etc. is OK.
12965exec 5>>config.log
12966{
12967 echo
12968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12969## Running $as_me. ##
12970_ASBOX
12971} >&5
12972cat >&5 <<_CSEOF
12973
12974This file was extended by $as_me, which was
12975generated by GNU Autoconf 2.59. Invocation command line was
12976
12977 CONFIG_FILES = $CONFIG_FILES
12978 CONFIG_HEADERS = $CONFIG_HEADERS
12979 CONFIG_LINKS = $CONFIG_LINKS
12980 CONFIG_COMMANDS = $CONFIG_COMMANDS
12981 $ $0 $@
12982
12983_CSEOF
12984echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12985echo >&5
12986_ACEOF
12987
12988# Files that config.status was made for.
12989if test -n "$ac_config_files"; then
12990 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12991fi
12992
12993if test -n "$ac_config_headers"; then
12994 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12995fi
12996
12997if test -n "$ac_config_links"; then
12998 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12999fi
13000
13001if test -n "$ac_config_commands"; then
13002 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13003fi
13004
13005cat >>$CONFIG_STATUS <<\_ACEOF
13006
13007ac_cs_usage="\
13008\`$as_me' instantiates files from templates according to the
13009current configuration.
13010
13011Usage: $0 [OPTIONS] [FILE]...
13012
13013 -h, --help print this help, then exit
13014 -V, --version print version number, then exit
13015 -q, --quiet do not print progress messages
13016 -d, --debug don't remove temporary files
13017 --recheck update $as_me by reconfiguring in the same conditions
13018 --file=FILE[:TEMPLATE]
13019 instantiate the configuration file FILE
13020
13021Configuration files:
13022$config_files
13023
13024Report bugs to <bug-autoconf@gnu.org>."
13025_ACEOF
13026
13027cat >>$CONFIG_STATUS <<_ACEOF
13028ac_cs_version="\\
13029config.status
13030configured by $0, generated by GNU Autoconf 2.59,
13031 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13032
13033Copyright (C) 2003 Free Software Foundation, Inc.
13034This config.status script is free software; the Free Software Foundation
13035gives unlimited permission to copy, distribute and modify it."
13036srcdir=$srcdir
13037INSTALL="$INSTALL"
13038_ACEOF
13039
13040cat >>$CONFIG_STATUS <<\_ACEOF
13041# If no file are specified by the user, then we need to provide default
13042# value. By we need to know if files were specified by the user.
13043ac_need_defaults=:
13044while test $# != 0
a0da8069 13045do
c6b750e1
DJ
13046 case $1 in
13047 --*=*)
13048 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13049 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13050 ac_shift=:
13051 ;;
13052 -*)
13053 ac_option=$1
13054 ac_optarg=$2
13055 ac_shift=shift
13056 ;;
13057 *) # This is not an option, so the user has probably given explicit
13058 # arguments.
13059 ac_option=$1
13060 ac_need_defaults=false;;
13061 esac
13062
13063 case $ac_option in
13064 # Handling of the options.
13065_ACEOF
13066cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 13067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
13068 ac_cs_recheck=: ;;
13069 --version | --vers* | -V )
13070 echo "$ac_cs_version"; exit 0 ;;
13071 --he | --h)
13072 # Conflict between --help and --header
13073 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13074Try \`$0 --help' for more information." >&5
13075echo "$as_me: error: ambiguous option: $1
13076Try \`$0 --help' for more information." >&2;}
13077 { (exit 1); exit 1; }; };;
13078 --help | --hel | -h )
13079 echo "$ac_cs_usage"; exit 0 ;;
13080 --debug | --d* | -d )
13081 debug=: ;;
13082 --file | --fil | --fi | --f )
13083 $ac_shift
13084 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13085 ac_need_defaults=false;;
13086 --header | --heade | --head | --hea )
13087 $ac_shift
13088 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13089 ac_need_defaults=false;;
13090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13092 ac_cs_silent=: ;;
13093
13094 # This is an error.
13095 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13096Try \`$0 --help' for more information." >&5
13097echo "$as_me: error: unrecognized option: $1
13098Try \`$0 --help' for more information." >&2;}
13099 { (exit 1); exit 1; }; } ;;
13100
13101 *) ac_config_targets="$ac_config_targets $1" ;;
13102
376a0e54 13103 esac
c6b750e1 13104 shift
376a0e54
CM
13105done
13106
c6b750e1 13107ac_configure_extra_args=
376a0e54 13108
c6b750e1
DJ
13109if $ac_cs_silent; then
13110 exec 6>/dev/null
13111 ac_configure_extra_args="$ac_configure_extra_args --silent"
13112fi
376a0e54 13113
c6b750e1
DJ
13114_ACEOF
13115cat >>$CONFIG_STATUS <<_ACEOF
13116if \$ac_cs_recheck; then
13117 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13118 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13119fi
13120
13121_ACEOF
13122
13123
13124
13125
13126
13127cat >>$CONFIG_STATUS <<\_ACEOF
13128for ac_config_target in $ac_config_targets
13129do
13130 case "$ac_config_target" in
13131 # Handling of arguments.
13132 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13133 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13134echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13135 { (exit 1); exit 1; }; };;
13136 esac
13137done
13138
13139# If the user did not use the arguments to specify the items to instantiate,
13140# then the envvar interface is used. Set only those that are not.
13141# We use the long form for the default assignment because of an extremely
13142# bizarre bug on SunOS 4.1.3.
13143if $ac_need_defaults; then
13144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13145fi
13146
13147# Have a temporary directory for convenience. Make it in the build tree
13148# simply because there is no reason to put it here, and in addition,
13149# creating and moving files from /tmp can sometimes cause problems.
13150# Create a temporary directory, and hook for its removal unless debugging.
13151$debug ||
13152{
13153 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13154 trap '{ (exit 1); exit 1; }' 1 2 13 15
13155}
13156
13157# Create a (secure) tmp directory for tmp files.
13158
13159{
13160 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13161 test -n "$tmp" && test -d "$tmp"
13162} ||
13163{
13164 tmp=./confstat$$-$RANDOM
13165 (umask 077 && mkdir $tmp)
13166} ||
13167{
13168 echo "$me: cannot create a temporary directory in ." >&2
13169 { (exit 1); exit 1; }
13170}
13171
13172_ACEOF
13173
13174cat >>$CONFIG_STATUS <<_ACEOF
13175
13176#
13177# CONFIG_FILES section.
13178#
13179
13180# No need to generate the scripts if there are no CONFIG_FILES.
13181# This happens for instance when ./config.status config.h
13182if test -n "\$CONFIG_FILES"; then
13183 # Protect against being on the right side of a sed subst in config.status.
13184 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13185 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13186s,@SHELL@,$SHELL,;t t
13187s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13188s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13189s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13190s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13191s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13192s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13193s,@exec_prefix@,$exec_prefix,;t t
13194s,@prefix@,$prefix,;t t
13195s,@program_transform_name@,$program_transform_name,;t t
13196s,@bindir@,$bindir,;t t
13197s,@sbindir@,$sbindir,;t t
13198s,@libexecdir@,$libexecdir,;t t
13199s,@datadir@,$datadir,;t t
13200s,@sysconfdir@,$sysconfdir,;t t
13201s,@sharedstatedir@,$sharedstatedir,;t t
13202s,@localstatedir@,$localstatedir,;t t
13203s,@libdir@,$libdir,;t t
13204s,@includedir@,$includedir,;t t
13205s,@oldincludedir@,$oldincludedir,;t t
13206s,@infodir@,$infodir,;t t
13207s,@mandir@,$mandir,;t t
13208s,@build_alias@,$build_alias,;t t
13209s,@host_alias@,$host_alias,;t t
13210s,@target_alias@,$target_alias,;t t
13211s,@DEFS@,$DEFS,;t t
13212s,@ECHO_C@,$ECHO_C,;t t
13213s,@ECHO_N@,$ECHO_N,;t t
13214s,@ECHO_T@,$ECHO_T,;t t
13215s,@LIBS@,$LIBS,;t t
5b553f7e 13216s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
13217s,@build@,$build,;t t
13218s,@build_cpu@,$build_cpu,;t t
13219s,@build_vendor@,$build_vendor,;t t
13220s,@build_os@,$build_os,;t t
13221s,@build_noncanonical@,$build_noncanonical,;t t
13222s,@host_noncanonical@,$host_noncanonical,;t t
13223s,@target_noncanonical@,$target_noncanonical,;t t
13224s,@host@,$host,;t t
13225s,@host_cpu@,$host_cpu,;t t
13226s,@host_vendor@,$host_vendor,;t t
13227s,@host_os@,$host_os,;t t
13228s,@target@,$target,;t t
13229s,@target_cpu@,$target_cpu,;t t
13230s,@target_vendor@,$target_vendor,;t t
13231s,@target_os@,$target_os,;t t
13232s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13233s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13234s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13235s,@LN@,$LN,;t t
13236s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
13237s,@build_libsubdir@,$build_libsubdir,;t t
13238s,@build_subdir@,$build_subdir,;t t
13239s,@host_subdir@,$host_subdir,;t t
13240s,@target_subdir@,$target_subdir,;t t
13241s,@CC@,$CC,;t t
13242s,@CFLAGS@,$CFLAGS,;t t
13243s,@LDFLAGS@,$LDFLAGS,;t t
13244s,@CPPFLAGS@,$CPPFLAGS,;t t
13245s,@ac_ct_CC@,$ac_ct_CC,;t t
13246s,@EXEEXT@,$EXEEXT,;t t
13247s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
13248s,@CXX@,$CXX,;t t
13249s,@CXXFLAGS@,$CXXFLAGS,;t t
13250s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
13251s,@GNATBIND@,$GNATBIND,;t t
13252s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
13253s,@GNATMAKE@,$GNATMAKE,;t t
13254s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
13255s,@do_compare@,$do_compare,;t t
13256s,@gmplibs@,$gmplibs,;t t
13257s,@gmpinc@,$gmpinc,;t t
e28c595f
JM
13258s,@ppllibs@,$ppllibs,;t t
13259s,@pplinc@,$pplinc,;t t
13260s,@clooglibs@,$clooglibs,;t t
13261s,@clooginc@,$clooginc,;t t
c6b750e1
DJ
13262s,@stage1_languages@,$stage1_languages,;t t
13263s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 13264s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
13265s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13266s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1 13267s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3bbd2f8f 13268s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
c6b750e1
DJ
13269s,@tooldir@,$tooldir,;t t
13270s,@build_tooldir@,$build_tooldir,;t t
13271s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13272s,@GDB_TK@,$GDB_TK,;t t
13273s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13274s,@build_configargs@,$build_configargs,;t t
13275s,@build_configdirs@,$build_configdirs,;t t
13276s,@host_configargs@,$host_configargs,;t t
13277s,@configdirs@,$configdirs,;t t
13278s,@target_configargs@,$target_configargs,;t t
1576798e
PB
13279s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13280s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 13281s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
13282s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13283s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13284s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13285s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13286s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13287s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13288s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13289s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13290s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13291s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13292s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13293s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
13294s,@config_shell@,$config_shell,;t t
13295s,@YACC@,$YACC,;t t
13296s,@BISON@,$BISON,;t t
13297s,@M4@,$M4,;t t
13298s,@LEX@,$LEX,;t t
13299s,@FLEX@,$FLEX,;t t
13300s,@MAKEINFO@,$MAKEINFO,;t t
13301s,@EXPECT@,$EXPECT,;t t
13302s,@RUNTEST@,$RUNTEST,;t t
13303s,@AR@,$AR,;t t
13304s,@AS@,$AS,;t t
13305s,@DLLTOOL@,$DLLTOOL,;t t
13306s,@LD@,$LD,;t t
13307s,@LIPO@,$LIPO,;t t
13308s,@NM@,$NM,;t t
13309s,@RANLIB@,$RANLIB,;t t
13310s,@STRIP@,$STRIP,;t t
13311s,@WINDRES@,$WINDRES,;t t
0c24b341 13312s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13313s,@OBJCOPY@,$OBJCOPY,;t t
13314s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13315s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13316s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13317s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13318s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13319s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13320s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13321s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13322s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13323s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13324s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13325s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13326s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13327s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13328s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13329s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13330s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13331s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13332s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13333s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13334s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13335s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13336s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13337s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13338s,@MAINT@,$MAINT,;t t
13339s,@stage1_cflags@,$stage1_cflags,;t t
13340s,@stage1_checking@,$stage1_checking,;t t
13341s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13342s,@datarootdir@,$datarootdir,;t t
13343s,@docdir@,$docdir,;t t
a3ca38d2 13344s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13345s,@htmldir@,$htmldir,;t t
13346s,@LIBOBJS@,$LIBOBJS,;t t
13347s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13348/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13349s,@serialization_dependencies@,,;t t
a0da8069 13350/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13351s,@host_makefile_frag@,,;t t
a0da8069 13352/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13353s,@target_makefile_frag@,,;t t
a0da8069 13354/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13355s,@alphaieee_frag@,,;t t
a0da8069 13356/@ospace_frag@/r $ospace_frag
c6b750e1 13357s,@ospace_frag@,,;t t
a0da8069 13358CEOF
252b5132 13359
c6b750e1
DJ
13360_ACEOF
13361
13362 cat >>$CONFIG_STATUS <<\_ACEOF
13363 # Split the substitutions into bite-sized pieces for seds with
13364 # small command number limits, like on Digital OSF/1 and HP-UX.
13365 ac_max_sed_lines=48
13366 ac_sed_frag=1 # Number of current file.
13367 ac_beg=1 # First line for current file.
13368 ac_end=$ac_max_sed_lines # Line after last line for current file.
13369 ac_more_lines=:
13370 ac_sed_cmds=
13371 while $ac_more_lines; do
13372 if test $ac_beg -gt 1; then
13373 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13374 else
13375 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13376 fi
13377 if test ! -s $tmp/subs.frag; then
13378 ac_more_lines=false
a0da8069 13379 else
c6b750e1
DJ
13380 # The purpose of the label and of the branching condition is to
13381 # speed up the sed processing (if there are no `@' at all, there
13382 # is no need to browse any of the substitutions).
13383 # These are the two extra sed commands mentioned above.
13384 (echo ':t
13385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13386 if test -z "$ac_sed_cmds"; then
13387 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13388 else
13389 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13390 fi
13391 ac_sed_frag=`expr $ac_sed_frag + 1`
13392 ac_beg=$ac_end
13393 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13394 fi
c6b750e1
DJ
13395 done
13396 if test -z "$ac_sed_cmds"; then
13397 ac_sed_cmds=cat
852e5f18 13398 fi
c6b750e1 13399fi # test -n "$CONFIG_FILES"
cac3d6c4 13400
c6b750e1
DJ
13401_ACEOF
13402cat >>$CONFIG_STATUS <<\_ACEOF
13403for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13404 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13405 case $ac_file in
13406 - | *:- | *:-:* ) # input from stdin
13407 cat >$tmp/stdin
13408 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13409 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13410 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13411 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13412 * ) ac_file_in=$ac_file.in ;;
a0da8069 13413 esac
252b5132 13414
c6b750e1
DJ
13415 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13416 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13418 X"$ac_file" : 'X\(//\)[^/]' \| \
13419 X"$ac_file" : 'X\(//\)$' \| \
13420 X"$ac_file" : 'X\(/\)' \| \
13421 . : '\(.\)' 2>/dev/null ||
13422echo X"$ac_file" |
13423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13425 /^X\(\/\/\)$/{ s//\1/; q; }
13426 /^X\(\/\).*/{ s//\1/; q; }
13427 s/.*/./; q'`
13428 { if $as_mkdir_p; then
13429 mkdir -p "$ac_dir"
cac3d6c4 13430 else
c6b750e1
DJ
13431 as_dir="$ac_dir"
13432 as_dirs=
13433 while test ! -d "$as_dir"; do
13434 as_dirs="$as_dir $as_dirs"
13435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13437 X"$as_dir" : 'X\(//\)[^/]' \| \
13438 X"$as_dir" : 'X\(//\)$' \| \
13439 X"$as_dir" : 'X\(/\)' \| \
13440 . : '\(.\)' 2>/dev/null ||
13441echo X"$as_dir" |
13442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13444 /^X\(\/\/\)$/{ s//\1/; q; }
13445 /^X\(\/\).*/{ s//\1/; q; }
13446 s/.*/./; q'`
13447 done
13448 test ! -n "$as_dirs" || mkdir $as_dirs
13449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13450echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13451 { (exit 1); exit 1; }; }; }
13452
13453 ac_builddir=.
252b5132 13454
c6b750e1
DJ
13455if test "$ac_dir" != .; then
13456 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13457 # A "../" for each directory in $ac_dir_suffix.
13458 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13459else
13460 ac_dir_suffix= ac_top_builddir=
13461fi
13462
13463case $srcdir in
13464 .) # No --srcdir option. We are building in place.
13465 ac_srcdir=.
13466 if test -z "$ac_top_builddir"; then
13467 ac_top_srcdir=.
13468 else
13469 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13470 fi ;;
13471 [\\/]* | ?:[\\/]* ) # Absolute path.
13472 ac_srcdir=$srcdir$ac_dir_suffix;
13473 ac_top_srcdir=$srcdir ;;
a0da8069 13474 *) # Relative path.
c6b750e1
DJ
13475 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13476 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13477esac
252b5132 13478
c6b750e1
DJ
13479# Do not use `cd foo && pwd` to compute absolute paths, because
13480# the directories may not exist.
13481case `pwd` in
13482.) ac_abs_builddir="$ac_dir";;
13483*)
13484 case "$ac_dir" in
13485 .) ac_abs_builddir=`pwd`;;
13486 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13487 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13488 esac;;
13489esac
13490case $ac_abs_builddir in
13491.) ac_abs_top_builddir=${ac_top_builddir}.;;
13492*)
13493 case ${ac_top_builddir}. in
13494 .) ac_abs_top_builddir=$ac_abs_builddir;;
13495 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13496 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13497 esac;;
13498esac
13499case $ac_abs_builddir in
13500.) ac_abs_srcdir=$ac_srcdir;;
13501*)
13502 case $ac_srcdir in
13503 .) ac_abs_srcdir=$ac_abs_builddir;;
13504 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13505 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13506 esac;;
13507esac
13508case $ac_abs_builddir in
13509.) ac_abs_top_srcdir=$ac_top_srcdir;;
13510*)
13511 case $ac_top_srcdir in
13512 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13513 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13514 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13515 esac;;
13516esac
252b5132 13517
c6b750e1
DJ
13518
13519 case $INSTALL in
13520 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13521 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13522 esac
252b5132 13523
c6b750e1
DJ
13524 if test x"$ac_file" != x-; then
13525 { echo "$as_me:$LINENO: creating $ac_file" >&5
13526echo "$as_me: creating $ac_file" >&6;}
13527 rm -f "$ac_file"
13528 fi
13529 # Let's still pretend it is `configure' which instantiates (i.e., don't
13530 # use $as_me), people would be surprised to read:
13531 # /* config.h. Generated by config.status. */
13532 if test x"$ac_file" = x-; then
13533 configure_input=
13534 else
13535 configure_input="$ac_file. "
13536 fi
13537 configure_input=$configure_input"Generated from `echo $ac_file_in |
13538 sed 's,.*/,,'` by configure."
13539
13540 # First look for the input files in the build tree, otherwise in the
13541 # src tree.
13542 ac_file_inputs=`IFS=:
13543 for f in $ac_file_in; do
13544 case $f in
13545 -) echo $tmp/stdin ;;
13546 [\\/$]*)
13547 # Absolute (can't be DOS-style, as IFS=:)
13548 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13549echo "$as_me: error: cannot find input file: $f" >&2;}
13550 { (exit 1); exit 1; }; }
13551 echo "$f";;
13552 *) # Relative
13553 if test -f "$f"; then
13554 # Build tree
13555 echo "$f"
13556 elif test -f "$srcdir/$f"; then
13557 # Source tree
13558 echo "$srcdir/$f"
13559 else
13560 # /dev/null tree
13561 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13562echo "$as_me: error: cannot find input file: $f" >&2;}
13563 { (exit 1); exit 1; }; }
13564 fi;;
13565 esac
13566 done` || { (exit 1); exit 1; }
13567_ACEOF
13568cat >>$CONFIG_STATUS <<_ACEOF
13569 sed "$ac_vpsub
13570$extrasub
13571_ACEOF
13572cat >>$CONFIG_STATUS <<\_ACEOF
13573:t
13574/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13575s,@configure_input@,$configure_input,;t t
13576s,@srcdir@,$ac_srcdir,;t t
13577s,@abs_srcdir@,$ac_abs_srcdir,;t t
13578s,@top_srcdir@,$ac_top_srcdir,;t t
13579s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13580s,@builddir@,$ac_builddir,;t t
13581s,@abs_builddir@,$ac_abs_builddir,;t t
13582s,@top_builddir@,$ac_top_builddir,;t t
13583s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13584s,@INSTALL@,$ac_INSTALL,;t t
13585" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13586 rm -f $tmp/stdin
13587 if test x"$ac_file" != x-; then
13588 mv $tmp/out $ac_file
13589 else
13590 cat $tmp/out
13591 rm -f $tmp/out
13592 fi
c148b4cb 13593
c6b750e1
DJ
13594done
13595_ACEOF
c148b4cb 13596
c6b750e1 13597cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13598
c6b750e1
DJ
13599{ (exit 0); exit 0; }
13600_ACEOF
c148b4cb 13601chmod +x $CONFIG_STATUS
c6b750e1
DJ
13602ac_clean_files=$ac_clean_files_save
13603
13604
13605# configure is writing to config.log, and then calls config.status.
13606# config.status does its own redirection, appending to config.log.
13607# Unfortunately, on DOS this fails, as config.log is still kept open
13608# by configure, so config.status won't be able to write to it; its
13609# output is simply discarded. So we exec the FD to /dev/null,
13610# effectively closing config.log, so it can be properly (re)opened and
13611# appended to by config.status. When coming back to configure, we
13612# need to make the FD available again.
13613if test "$no_create" != yes; then
13614 ac_cs_success=:
13615 ac_config_status_args=
13616 test "$silent" = yes &&
13617 ac_config_status_args="$ac_config_status_args --quiet"
13618 exec 5>/dev/null
13619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13620 exec 5>>config.log
13621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13622 # would make configure fail if this is the last instruction.
13623 $ac_cs_success || { (exit 1); exit 1; }
13624fi
c148b4cb 13625
This page took 1.187361 seconds and 4 git commands to generate.